← All posts

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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Novel studio pipeline: zero-write Editor PA, Chapter Writer, Continuity Editor with 3-attempt rework budget, Author Review gate, Archivist, and Git Story Bible Wiki

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.

CrewDesk Git Wiki UI organizing Story Bible pages with citations and structure checks

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:

RoleCode BoundaryResponsibility
Editor-in-Chief (PA)No bash or file-write toolsBrainstorms 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 WriterWorker (isolated branch)Reads relevant Story Bible pages and drafts drafts/ch-N.md without touching main.
Continuity EditorSecond 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).
ArchivistWorker (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.

Workflow DAG editor showing draft, continuity rework edge, author review gate, and publish step

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:

  1. Mounted an image-canvas CLI skill for the artist worker and pointed it at STORY_BIBLE.md and wiki/characters/*.md.
  2. Generated 2K reference sheets for all 6 lead characters and recorded their locked canvas node IDs in wiki/visual-bible.md.
  3. 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.

2K character sheets for the 6 leads of The Bubble Constant

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

Volume 2 Chapter 8 concept still: Lin Zhou and Su Man before a 24-GPU rig and five-screen topology display during a storm

Volume 3 Chapter 10 concept still: emerald flat-ring screen glowing amid red alerts as Zhou Ye grips Lin Zhou's shoulder and Su Man turns

Volume 3 Chapter 12 concept still: dawn at Lenghu plateau observatory as the four leads face the cosmic bubble-wall display

5. Three Honest Lessons After Ten Chapters

  1. 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.
  2. 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.
  3. 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:

Want to try it on your own machine?

Both CrewDesk and oma are MIT open source — run locally on Bun + SQLite in two commands.