Why Single-Prompt AI Fiction Breaks After Chapter 5 — and How a Git Story Bible + Audit Workflow Fixes It
I originally built CrewDesk for software teams, then tested it on a 100k-word open-source hard sci-fi serial — The Bubble Constant (10 of 18 chapters completed). Fiction turned out to be an unforgiving stress test for multi-agent architecture.
A long novel hits the exact same four failure modes as a large codebase:
- Continuity breaks after Chapter 5. Once early chapters roll out of context, a protagonist who broke his left wrist in Chapter 3 swings a sword two-handed in Chapter 9, and a three-day mountain trek shrinks to an afternoon walk.
- Self-review is blind. Asking the same model that just drafted a chapter to audit plot holes and AI clichés usually yields polite self-approval.
- Destructive rewrites or endless polishing. Letting one chat directly edit manuscript files flattens strong scenes; telling it to "revise until great" burns tokens in circles.
- Author attention gets buried in drafts. You want to spend judgment on plot turns and character arcs, not babysit intermediate tool traces.
The setup below applies four plain software-engineering habits — a single Git source of truth, role isolation, budgeted rework, and branch replay — to long-form writing.
1. Keep the Story Bible in a Git Wiki, Not a System Prompt
Stuffing tens of thousands of words of lore into a system prompt wrecks context focus; dumping drafts into an opaque vector DB surfaces abandoned ideas. Splitting canonical truth into four folders in a Git-backed Markdown Wiki (/wiki) keeps every change diffable and CAS-protected:
characters/: one page per lead with voice quirks, injuries/status, what the character knows vs. what only the reader knows, and active motives.timeline/: day-by-day chronology, travel times between locations, and chapter anchors.foreshadowing/: ledger of planted clues and whether each is open or resolved.world-rules/: hard constraints (physical rules, costs, institutional taboos).
The non-negotiable rule is separating canon from brainstorming: the Archivist may update /wiki only after the author approves a chapter. Unapproved ideas stay in chat or tracked requirements so abandoned subplots never leak into later chapters.

2. Four Isolated Roles With Code-Enforced Boundaries
Manuscripts live in a plain Git repo (drafts/ch-01.md, etc.), staffed by four roles with separate SOUL.md files:
| Role | Code Boundary | Responsibility |
|---|---|---|
| Editor-in-Chief (PA) | No bash or file-write tools | Brainstorms arcs, breaks down chapter goals into tracked Requirements; physically unable to touch your draft files while brainstorming "what if character B betrays them here?" |
| Chapter Writer | Worker (isolated branch) | Reads relevant Story Bible pages and drafts drafts/ch-N.md without touching main. |
| Continuity Editor | Second Worker (read-only on drafts) | Independently audits the draft against the Wiki: timeline math, character knowledge leaks, dropped clues, and AI prose clichés; outputs strict JSON (passed, issues, reason). |
| Archivist | Worker (post-approval only) | Extracts newly canonical facts, injuries, and resolved clues from approved chapters and patches the Wiki with chapter citations. |
3. Budgeted Rework DAG + Author Signoff + Rewind/Replay
Letting writer and editor bounce back and forth via prompts invites infinite loops. Encoding the pipeline as an acyclic workflow DAG with mandatory rework budgets (validated by @chengchenccc/workflow) bounds both loops:
{
"id": "novel-chapter-pipeline",
"edges": [
{ "from": "start", "to": "draft_chapter" },
{ "from": "draft_chapter", "to": "continuity_audit" },
{
"from": "continuity_audit",
"to": "draft_chapter",
"kind": "rework",
"when": { "==": [{ "var": "continuity_audit.output.passed" }, false] },
"budget": { "maxAttempts": 3, "onExhausted": "human" }
},
{
"from": "continuity_audit",
"to": "author_review",
"when": { "==": [{ "var": "continuity_audit.output.passed" }, true] }
},
{
"from": "author_review",
"to": "draft_chapter",
"kind": "rework",
"when": { "==": [{ "var": "author_review.output.decision" }, "revise"] },
"budget": { "maxAttempts": 5, "onExhausted": "human" }
},
{
"from": "author_review",
"to": "sync_story_bible",
"when": { "==": [{ "var": "author_review.output.decision" }, "approve"] }
},
{ "from": "sync_story_bible", "to": "publish_chapter" },
{ "from": "publish_chapter", "to": "done" }
]
}
When continuity fails, reason routes back to draft_chapter for up to 3 automatic attempts before pausing at a human budget gate. Once continuity passes, the run pauses at author_review and notifies the operator inbox to approve, revise, or hold.
When a chapter's logic holds but a climax scene lacks punch, Rewind / Replay forks the writer's run — letting you swap models or adjust tone instructions, compare two branches side by side, and merge the stronger take without losing the first draft.

4. Real Serial (The Bubble Constant): Adding a Visual Artist Worker Without Touching the Writing Team
Ten chapters into The Bubble Constant, I wanted consistent character sheets and key scene stills. Because each worker is isolated by its own SOUL.md and skills, adding a fifth Visual Concept worker required zero changes to the writing pipeline:
- Mounted an image-canvas CLI skill for the artist worker and pointed it at
STORY_BIBLE.mdandwiki/characters/*.md. - Generated 2K reference sheets for all 6 lead characters and recorded their locked canvas node IDs in
wiki/visual-bible.md. - Referenced those character nodes explicitly for key scenes so faces, outfits, and props stay consistent across chapters, archiving outputs under
assets/with links back to each character page.

Three key scene stills generated directly from those locked character nodes:



5. Three Honest Lessons After Ten Chapters
- Write prohibitions in
SOUL.md, not adjectives. Asking for "vivid literary prose" produces overwrought clichés; concrete bans ("never end paragraphs with moralizing summaries," "don't explain emotions right after an action beat") plus a cliché checklist for the auditor work far better. - Automated audits catch math, not soul. Independent editors excel at catching timeline arithmetic, forgotten injuries, and dropped clues, yet cannot judge whether a dramatic turn genuinely lands. That is why the author gate stays mandatory.
- Repeated revision loops can flatten voice. Three rounds of strict continuity fixes sometimes sand off vivid phrasing from draft one — explicit instructions to preserve voice plus Rewind/Replay comparisons against the initial draft help keep the prose alive.
Related Reading: