Sprint 56h: inject author_intent/closing_hook meta fields as template vars; expand chapter_snapshot; add LOCKED CLOSING HOOK support to PASS 0 and SELF-CHECK

This commit is contained in:
David Baity
2026-03-25 01:58:33 -04:00
parent dd33f6b8da
commit ca0e2fad89

View File

@@ -100,6 +100,15 @@ steps:
containing "## Voice Signatures" and copy it here. PASS 1 must write every containing "## Voice Signatures" and copy it here. PASS 1 must write every
character to their profile. character to their profile.
EDITORIAL OVERRIDES — apply these BEFORE writing any KEY BEATS:
{author_intent}
↑ If this line is not blank, it is a BINDING creative directive from the editor.
Include it verbatim in the draft prompt as: "AUTHOR'S INTENT: [text]"
PASS 1 must satisfy this intent completely.
{closing_hook}
↑ If this line is not blank, use it as the CLOSING HOOK instead of any outline hook.
Include it verbatim in the draft prompt as: "LOCKED CLOSING HOOK: [text]"
STEP 5 — CHECK LIVE CHARACTER STATE (if available): STEP 5 — CHECK LIVE CHARACTER STATE (if available):
Look in your RAG context for an asset called [character-state]. Look in your RAG context for an asset called [character-state].
If it exists — this is WHERE and WHO each character is RIGHT NOW. If it exists — this is WHERE and WHO each character is RIGHT NOW.
@@ -216,6 +225,10 @@ steps:
7. AUTHOR'S INTENT: Check the PASS 0 draft prompt ({steps[0].text}) for a line 7. AUTHOR'S INTENT: Check the PASS 0 draft prompt ({steps[0].text}) for a line
starting with "AUTHOR'S INTENT:". If present, confirm the completed chapter starting with "AUTHOR'S INTENT:". If present, confirm the completed chapter
satisfies that intent — note whether it was honored or partially missed. satisfies that intent — note whether it was honored or partially missed.
8. CLOSING HOOK LOCK: Check the PASS 0 draft prompt ({steps[0].text}) for a line
starting with "LOCKED CLOSING HOOK:". If present, verify the last paragraph of
the chapter uses that exact hook wording. If it's missing or paraphrased, add a
final paragraph that delivers the locked hook precisely.
ALLOWED CORRECTIONS: ALLOWED CORRECTIONS:
- Fix a wrong character name to match the canon name - Fix a wrong character name to match the canon name
@@ -243,6 +256,7 @@ steps:
5. WORD FLOOR: [check pass/fail — include word count] 5. WORD FLOOR: [check pass/fail — include word count]
6. OPENING HOOK: [check pass/fail or N/A] 6. OPENING HOOK: [check pass/fail or N/A]
7. AUTHOR'S INTENT: [honored / partially missed — note / N/A if no intent set] 7. AUTHOR'S INTENT: [honored / partially missed — note / N/A if no intent set]
8. CLOSING HOOK LOCK: [locked hook delivered / missing / N/A if not locked]
Then output the separator on its own line: Then output the separator on its own line:
---BEGIN CHAPTER--- ---BEGIN CHAPTER---