Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.
Biz Novel Studio’s chapter execution is not “give the model a title and let it write.” It is a closed-loop chain from brief to body text, to audit repair and state backfill. Understanding this chain can help you locate the truly problematic link when encountering quality issues, rather than blindly clicking regenerate.
Chapter execution loop
What Is a Chapter Brief
A chapter brief is the contract for body-text generation, not a simple title. It comes from Auto Director’s Chapter Detailing (章节细化) phase, and usually contains:
Content
Role
Chapter goal
Explains what this chapter must advance
Carry over from previous chapter
Prevents the opening from detaching from existing facts
Lead to next chapter
Lets this chapter’s ending serve subsequent pacing
Scene cards
Specifies location, conflict, character actions, and scene order
Appearing characters
Limits this chapter’s figures, relationships, and available resources
Must payoff/setup
Manages reader promises and the foreshadowing ledger
Taboos and hard constraints
Prevents violating the book contract, world rules, and character states
If the brief is missing or too vague, body-text generation quality will usually be unstable. In this case, prioritize returning to chapter detailing, rather than temporarily adding a sentence of “write better” in the body-text input box.
Execution Entry Points
Chapter execution usually enters from two entry points:
Entry
Trigger Condition
Description
Auto Director Chapter Batch Ready (章节批次就绪)
Beat board, chapter list, and chapter detailing completed
User confirms or auto-approval enters chapter execution
Manual chapter execution
User initiates on the chapter page
Suitable for single-chapter rerun, model testing, or handling local chapters
Before execution, a chapter task must exist. The task comes from Chapter Detailing (章节细化), containing chapter goals, carry-over relationships, scene cards, characters, conflicts, and taboos.
Context Assembly: What Materials Are Prepared for the Model
Before body-text generation, the system aggregates multiple materials into a context package. This package determines what the model knows and does not know, directly affecting body-text quality.
1
This book's facts and planning
Book contract, macro story, volume window, fact ledger, foreshadowing ledger. These are the highest priority and cannot be overridden by external materials.
2
Character and world states
Current character goals, locations, relationships, abilities, available resources; this chapter’s related world rules, locations, and faction boundaries.
3
Style assets and Anti-AI Rules
Bound style profile, style rules, anti-template expression constraints. Control how body text is written and what not to write.
4
RAG recall materials
Construct queries based on the chapter task, and recall the most relevant material fragments from the knowledge base.
Why Chapters Cannot Rely Only on Prompts
Long-form novel subsequent chapters depend on already-occurred facts, character resources, reader promises, and world constraints. The chapter execution chain assembles these into a context package, avoiding reliance on temporary input for every chapter. Without this package, the model easily forgets previously planted foreshadowing, abilities the character just obtained, or world rule limitations.
Body-Text Generation and Audit
After the context package is prepared, the system enters body-text generation. After generation, it immediately enters audit, judging whether body text satisfies the chapter task.
Step
Input
Artifact
How to Handle Failure
Context assembly
Chapter task, book contract, characters, world, RAG, style, fact ledger
Context package
When key assets are missing, return to Director Follow-up or the novel page to supplement materials
Body-text generation
Context package, model routing, chapter goal
Body-text draft
Empty body text retries once; consecutive failures check model and task input
Audit
Draft, chapter task, context package
Audit report, pending issues, pass status
When acceptance judgment is unavailable, quality debt can be recorded
Quality Judgment Layers
Audit results are divided into multiple layers, with different impacts on the global chain:
Judgment Result
Meaning
Impact on Global Chain
accepted
Body text satisfies current task
Can continue to next chapter
continue_with_warning
Has issues but body text is usable
Record quality debt, continue subsequent chapters
local_patch_plan
Can be locally repaired
Attempt repair, then continue or record debt
patchable_obligation_gap
Local promise gap can be filled
Low-risk repair or record debt
defer_and_continue
Issue can be handled later
Explicitly record debt and continue
replan_required
Subsequent structure needs adjustment
Enter checkpoint, confirmed by user
stop_for_replan
Must stop and replan
Stop global chain, return to planning entry
Local quality debt does not equal global failure. As long as the chapter has usable body text, and the system does not explicitly require replanning, prioritize saving body text, recording debt, and allowing subsequent chapters to continue. This avoids a book repeatedly getting stuck because of a single chapter’s minor issue.
Repair and Quality Debt
Issues found by audit enter the repair chain. Repair is not an infinite loop; the current chain limits retry counts and records quality debt.
Situation
Recommended Handling
Minor logic or pacing issues
Allow light repair or record quality debt
Readable after repair but still has local issues
Record quality debt and continue subsequent chapters
Body text unavailable or empty
Retry generation, switch model if necessary
Chapter goal conflicts with outline
Return to chapter task or beat board to replan
Repair request would change subsequent structure
Enter Waiting for Replanning (等待重新规划), confirmed by user
What Is Quality Debt
Quality debt indicates the chapter has visible issues, but does not necessarily need to stop the whole book. Typical examples:
Local pacing is not strong enough
Individual foreshadowing hints are insufficient
A certain passage’s character tone needs later revision
The repair tool cannot stably anchor a certain paragraph
Quality debt is recorded, displayed, and followed up later, rather than default-blocking the global Auto Director. Only explicit replanning, unrecoverable generation failure, data risk, or security risk should stop the global chain.
State Backfill: Letting the Next Chapter Base on Latest Facts
After chapter execution completes, the system backfills new states into novel assets. This is the core mechanism that lets long-form writing continue.
Subsequent chapters’ character behavior boundaries
Fact ledger
Already-occurred events, irreversible results
Prevent subsequent repetition or violation of facts
Foreshadowing/promises
New setup, payoff, deferral, risk
Help subsequent chapters manage reader expectations
World state
Location, rule, faction changes
Affect scene and conflict reasonableness
Audit issues
Pending issues, quality debt
Enter subsequent repair and task prompts
How to Judge When Backfill Fails
Phenomenon
Possible Meaning
Recommended Action
Body text saved, but character state not updated
Character resource sync failed
Retry character resource sync, do not rewrite body text
Foreshadowing ledger not refreshed
Payoff ledger sync failed
Retry ledger sync, preserve body text
Chapter status still shows running
Backend task status not closed
Check whether Task Center is stale or failed
Next chapter context does not carry previous chapter facts
State submission not completed
First fix state submission, then execute next chapter
Audit report missing
Audit service failed or interrupted
Can preserve body text, re-audit later
Chapter body-text generation and state backfill are two different problems. When body text is already usable, prioritize fixing the backfill chain. Directly rewriting may create new factual forks.
How RAG and Knowledge Base Participate in Chapter Execution
Chapter execution recalls the knowledge base, book breakdown, style, and this book’s assets during context assembly. RAG materials are only part of the context and should not override the chapter brief.
Material Source Layers
Layer
Examples
Usage Principle
This book’s facts
Already-written chapters, fact ledger, character states, world states
Highest priority, cannot be overridden by external materials
This book’s planning
Book contract, macro story, volume strategy, chapter tasks
Guide next writing goals
User materials
Uploaded knowledge base, world samples, dedicated setting documents
Used to supplement facts and settings
Book breakdown conclusions
Reference work structure, selling points, character and style analysis
Migrate methods, do not copy plot
Style assets
Style rules, Anti-AI Rules, sample text features
Control expression methods
Temporary conversation
Creative Hub current round input
Can only affect current task; for long-term effect, must be persisted
How Chapter RAG Queries Are Constructed
The system does not directly search materials using chapter titles. It assembles queries based on the chapter task, containing novel title, chapter title, chapter goal, chapter expectation, this chapter’s must-advance content, target conflict, appearing characters, and structured outline. The closer the query is to this chapter’s goal, the easier the recall is to hit truly useful materials.
Retrieval Methods
Retrieval Method
Suitable Content
Common Issues
Vector retrieval
Semantically similar but differently worded materials, long documents, book breakdown conclusions
Cannot hit when documents are not indexed or vector library is unavailable
Text retrieval
Person names, place names, proper nouns, fixed terms
May miss when users do not write clear keywords
Hybrid recall
Needs both semantics and keywords
Needs reasonable document titles, chunking, and metadata
More recall is not always better. Stuffing irrelevant materials into context increases model noise. For long-form novels, accurately hitting the current chapter’s task is more important than recalling a large volume of materials at once.
Priority When Conflicts Occur
Conflict Scenario
Priority
RAG materials conflict with already-written chapters
Already-written chapters and fact ledger take priority
Book breakdown conclusions conflict with this book’s characters
This book’s character states take priority
World samples conflict with this book’s world
This book’s world takes priority
User’s current explicit instruction conflicts with old materials
Current instruction can trigger revision, but needs to be persisted before long-term effect
RAG’s goal is to let the system know more, not to give external materials the highest decision-making power.
How Batch Execution Advances
Chapter batches usually do not write only one chapter at a time. Batch execution saves state between each chapter and decides whether to continue to the next chapter.
Batch Node
System Action
User May See
Batch start
Read the chapter range from Chapter Batch Ready (章节批次就绪)
Chapter tasks enter queue or run
Single-chapter generation
Assemble context, generate body text, audit repair
Current chapter status changes
Single-chapter close
Save body text, backfill facts, characters, foreshadowing, and quality info
Chapter completes or completes with warning
Next-chapter preparation
Read previous chapter’s backfilled state
Next chapter’s context updates
Batch pause
Encounter checkpoint, failure, or need manual handling
Director Follow-up or chapter source page shows operation entry
Batch completion
All target chapters processed
Can continue next batch or view quality debt
If auto-approval is not authorized, the batch may pause at certain nodes waiting for confirmation. This is to let the user see risks, rather than the backend “not responding.”
This Book’s Issue Handling Rules
Each book can inherit global rules, or choose a set of issue handling plans in this book:
Plan
Auto-Processing Opportunity
When Local Issue Remains Unresolved After Handling
Prioritize completing the whole book
Up to 1 time
Preserve usable body text, record quality debt, and continue
Quality priority
Up to 1 time
Stop at a saved chapter boundary, waiting for explicit resume
Item-by-item rules can also choose auto-retry, remind then continue, pause processing, or end task. Save failure, data integrity risk, protected content, and other runtime safety issues will still prioritize protecting the work.
Manual pauses will not be automatically cleared by backend polling. When “quality priority” explicitly requests pause processing, the task retains a pending manual resume status. Backend polling, service restart, and worker recovery cannot confirm on behalf of the user; only after an explicit resume action is executed will the chapter chain continue.
Failure Modes and Recovery
Failure Mode
Symptom
Check First
Recommended Recovery
Context assembly failure
Error before chapter execution
Run History error, novel assets, chapter page
Supplement characters/world/chapter tasks, then return to chapter page and retry
Empty body text
Model returns empty content
Run History, model routing, chapter page
System retries once; consecutive failures switch model, then return to chapter page
Audit unavailable
acceptance gate unavailable
Chapter page, Task Center
Preserve body text, re-audit later
Repair failure
repair ticket failed
Task Center, chapter page
Attempt re-repair; if usable body text already exists, record quality debt
Replanning risk
Waiting for Replanning (等待重新规划)
Director Follow-up
Manually confirm replanning or accept risk and continue
State sync failure
Body text exists but state not backfilled
Run History, chapter page
Return to chapter page and retry sync; do not prioritize rewriting body text
Model balance or quota insufficient
Execution details show model-returned balance, quota, or rate-limit errors
Current execution page, Run History, model settings
Top up quota or switch model, then return to current execution page and resume from the first unfinished chapter
Manual Intervention Entry Points
What the User Wants to Do
Recommended Entry
Reason
Check whether body text is saved
Chapter page
Body-text facts are based on the chapter page
See why the backend stopped
Task Center
Failure, stale, queued, running are all here
Approve continue or replan
Director Follow-up
The next entry for checkpoints is here
Adjust chapter goals
Chapter task / chapter planning
Body-text generation reads the brief
Modify character states
Character page
Subsequent chapters read formal character assets
Check whether materials hit
Knowledge base recall test
Judge whether RAG can truly hit
Adjust style
Style Engine
Language style should enter context through style assets
Do not throw all problems at body-text rewriting. Body-text rewriting is suitable when body text is unavailable; task, asset, recall, and sync problems should return to the corresponding entry.
FAQ
Why can't a chapter just be given a title and let the model write?
Long-form novel subsequent chapters depend on already-occurred facts, character resources, reader promises, and world constraints. Without a brief and context package, the model easily forgets previous settings, violates character states, or misses foreshadowing. The chapter brief provides clear advancement goals, scene cards, and constraint boundaries, and is the contract for body-text quality.
Will quality debt affect subsequent chapters?
It will not directly block. Quality debt is recorded and then continues to advance subsequent chapters, but debt content will be referenced in subsequent audits and planning. If the debt involves structural issues, it may trigger a replanning suggestion later.
Will RAG recalled materials override this book's already-written content?
No. This book’s facts and the fact ledger are the highest priority. RAG materials are used to supplement settings and references, and cannot overturn content already written into the novel state. If recalled materials conflict with this book’s facts, the system will prioritize following this book’s facts.
When state sync fails, will the next chapter write based on old states?
If state is not backfilled, the next chapter’s context may lack this chapter’s latest facts. In this case, first fix the sync, then execute the next chapter, to avoid factual forks. When body text is already usable, there is no need to rewrite; only supplement the sync.
Is there a limit on single-chapter repair retries?
Yes, there is a limit. The current chain limits repair retry counts to avoid infinite loops. If low-risk repair cannot resolve, it records quality debt and continues; if it involves structural issues, it enters a checkpoint waiting for user confirmation.
Can I manually modify body text and then let the system continue?
Yes. You can manually modify body text on the chapter page. Modified content will become the fact source for subsequent chapters, but the system will not automatically reverse-sync to character states or the foreshadowing ledger. If the modification involves important fact changes, it is recommended to simultaneously check related assets.
Knowledge Base & RAG
Learn how materials are ingested, recalled, and participate in context assembly
Creative Production Pipeline
The complete three-layer chain from Idea Layer to Chapter Execution Layer
Auto Director
Learn about director phases, run modes, and checkpoint mechanisms
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Biz Novel Studio","description":"AI 小说创作工作台官方文档:从一句灵感,走向一本完整小说","colors":{"primary":"#16A34A"},"logo":{"light":"https://mintcdn.com/ai-novel-writing-assistant/EPaSP-_4jKaBdGvV/images/logo.svg?fit=max\u0026auto=format\u0026n=EPaSP-_4jKaBdGvV\u0026q=85\u0026s=46d743075cfdc9207d8e72dddacb3816","dark":"https://mintcdn.com/ai-novel-writing-assistant/EPaSP-_4jKaBdGvV/images/logo.svg?fit=max\u0026auto=format\u0026n=EPaSP-_4jKaBdGvV\u0026q=85\u0026s=46d743075cfdc9207d8e72dddacb3816"},"favicon":"https://mintcdn.com/ai-novel-writing-assistant/7vj_6BsfIDYV0gE1/favicon.svg?fit=max\u0026auto=format\u0026n=7vj_6BsfIDYV0gE1\u0026q=85\u0026s=12098b66b0b262a33bf09e2d4558228f","navbar":{"links":[{"href":"https://github.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant/releases","label":"下载"},{"href":"https://github.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant/issues","label":"问题反馈"}],"primary":{"type":"github","href":"https://github.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant"}},"footer":{"socials":{"github":"https://github.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant"},"links":[{"header":"开始","items":[{"label":"安装与启动","href":"/installation"},{"label":"快速开始","href":"/quickstart"},{"label":"第一本小说实战","href":"/guides/first-novel-walkthrough"}]},{"header":"社区","items":[{"label":"GitHub","href":"https://github.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant"},{"label":"问题反馈","href":"https://github.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant/issues"},{"label":"参与贡献","href":"/developers/contributing"}]},{"header":"更新","items":[{"label":"更新日志","href":"/changelog"},{"label":"路线图","href":"/roadmap"},{"label":"下载最新版","href":"https://github.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant/releases"}]}]},"seo":{"metatags":{"author":"ExplosiveCoderflome","keywords":"AI 小说,AI 写小说,AI 小说创作,长篇小说生成,短篇小说,小说写作助手,开源,Biz Novel Studio,AI-Novel-Writing-Assistant,AI Novel Writing Assistant,AI novel writing assistant","language":"zh-CN","og:locale":"zh_CN","theme-color":"#05080a","application-name":"Biz Novel Studio","og:site_name":"Biz Novel Studio","twitter:card":"summary_large_image"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"zh-Hans","default":true,"href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ai-novel-writing-assistant","hasAudioNarration":false,"actualSubdomain":"ai-novel-writing-assistant","customDomains":[],"gitSource":{"type":"github","owner":"explosivecoderflome","repo":"ai-novel-writing-assistant","deployBranch":"main","contentDirectory":"mintlify-docs","isPrivate":false,"mountPath":"","label":"","_id":"6af42d9d566700d04eef0454"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af72c53e766df7985e6a138","clientVersion":"0.0.4128","searchFilterCounts":[{"language":"zh-Hans","tag":"开始使用","count":9},{"language":"en","tag":"Get started","count":9},{"language":"zh-Hans","tag":"长篇与短篇创作","count":8},{"language":"en","tag":"Long and short fiction","count":8},{"language":"zh-Hans","tag":"世界、角色与写法","count":7},{"language":"en","tag":"Worlds, characters and style","count":7},{"language":"zh-Hans","tag":"帮助","count":5},{"language":"en","tag":"Help","count":5},{"language":"zh-Hans","tag":"开发者","count":4},{"language":"zh-Hans","tag":"资料与辅助","count":4},{"language":"en","tag":"Developers","count":4},{"language":"en","tag":"Research and assistance","count":4},{"language":"zh-Hans","tag":"衍生创作","count":2},{"language":"zh-Hans","tag":"创作原理","count":2},{"language":"zh-Hans","tag":"实战手册","count":2},{"language":"en","tag":"Adaptations","count":2},{"language":"en","tag":"How it works","count":2},{"language":"en","tag":"Playbooks","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html:has(.bnh[data-bn-theme]) #navbar,html:has(.bnh[data-bn-theme]) [data-layout-item=\"topbar\"]{box-shadow:none!important;border-color:transparent!important;transition:background-color .8s ease, color .8s ease, border-color .8s ease!important}html:has(.bnh[data-bn-theme]) #navbar div,html:has(.bnh[data-bn-theme]) #navbar nav,html:has(.bnh[data-bn-theme]) [data-layout-item=\"topbar\"] div{background-color:transparent!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important}html:has(.bnh[data-bn-theme]) #navbar a,html:has(.bnh[data-bn-theme]) #navbar button,html:has(.bnh[data-bn-theme]) #navbar span,html:has(.bnh[data-bn-theme]) #navbar svg{transition:color .3s ease, background-color .3s ease, border-color .3s ease, text-shadow .3s ease, fill .3s ease!important}html:has(.bnh[data-bn-theme]) #navbar::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:1px;pointer-events:none;transition:background .8s ease}html:has(.bnh[data-bn-theme]),html:has(.bnh[data-bn-theme]) body{transition:background-color .8s ease}html:has(.bnh[data-bn-theme]) #banner{display:none!important}html:has(.bnh[data-bn-theme=\"ink\"]),html:has(.bnh[data-bn-theme=\"ink\"]) body{background-color:#05080a!important}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar,html:has(.bnh[data-bn-theme=\"ink\"]) [data-layout-item=\"topbar\"]{background-color:#05080a!important;background-image:radial-gradient(1200px 420px at 20% 160%, rgba(22, 163, 74, .26), transparent 70%)!important;backdrop-filter:blur(12px) saturate(140%)!important;-webkit-backdrop-filter:blur(12px) saturate(140%)!important;color:#e5f6ea!important}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar::after{background:linear-gradient(90deg, transparent, rgba(74, 222, 128, .22), transparent)}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar a,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar button,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar span,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar svg{color:rgba(229, 246, 234, .78)!important}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar svg path[fill]:not([fill=\"none\"]){fill:currentColor!important}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar a:hover,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar button:hover,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar a:hover span,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar button:hover svg{color:#86efac!important;text-shadow:0 0 12px rgba(74, 222, 128, .7)}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar a[href=\"/\"],html:has(.bnh[data-bn-theme=\"ink\"]) #navbar a[href=\"/\"] *{color:#e5f6ea!important;font-weight:700;letter-spacing:.04em}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar [data-search-item=\"trigger\"],html:has(.bnh[data-bn-theme=\"ink\"]) #navbar #search-bar-entry,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar #assistant-entry,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar [data-layout-item=\"search-entry\"],html:has(.bnh[data-bn-theme=\"ink\"]) #navbar [data-layout-item=\"assistant-entry\"]{background-color:rgba(22, 163, 74, .08)!important;border:1px solid rgba(134, 239, 172, .28)!important;color:rgba(229, 246, 234, .7)!important;box-shadow:none!important}html:has(.bnh[data-bn-theme=\"ink\"]) #navbar [data-search-item=\"trigger\"]:hover,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar #search-bar-entry:hover,html:has(.bnh[data-bn-theme=\"ink\"]) #navbar #assistant-entry:hover{border-color:rgba(134, 239, 172, .6)!important;box-shadow:0 0 18px -4px rgba(34, 197, 94, .7)!important}html:has(.bnh[data-bn-theme=\"paper\"]),html:has(.bnh[data-bn-theme=\"paper\"]) body{background-color:#f3ede1!important}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar,html:has(.bnh[data-bn-theme=\"paper\"]) [data-layout-item=\"topbar\"]{background-color:#f3ede1!important;background-image:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'>\u003cfilter id='n'>\u003cfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/>\u003cfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .09 0'/>\u003c/filter>\u003crect width='100%' height='100%' filter='url(%23n)'/>\u003c/svg>\")!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;color:#1c1a17!important;font-family:\"Noto Serif SC\", \"Songti SC\", \"STSong\", serif!important}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar::after{background:linear-gradient(90deg, transparent, rgba(28, 26, 23, .14) 20%, rgba(28, 26, 23, .14) 80%, transparent)}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar a,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar button,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar span,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar svg{color:rgba(28, 26, 23, .78)!important;font-family:\"Noto Serif SC\", \"Songti SC\", \"STSong\", serif!important}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar svg path[fill]:not([fill=\"none\"]){fill:currentColor!important}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar a:hover,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar button:hover,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar a:hover span,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar button:hover svg{color:#b4382a!important}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar a[href=\"/\"],html:has(.bnh[data-bn-theme=\"paper\"]) #navbar a[href=\"/\"] *{color:#1c1a17!important;font-weight:700;letter-spacing:.06em}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar [data-search-item=\"trigger\"],html:has(.bnh[data-bn-theme=\"paper\"]) #navbar #search-bar-entry,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar #assistant-entry,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar [data-layout-item=\"search-entry\"],html:has(.bnh[data-bn-theme=\"paper\"]) #navbar [data-layout-item=\"assistant-entry\"]{background-color:#faf6ec!important;border:1px solid rgba(28, 26, 23, .3)!important;border-radius:4px!important;color:rgba(28, 26, 23, .65)!important;box-shadow:none!important}html:has(.bnh[data-bn-theme=\"paper\"]) #navbar [data-search-item=\"trigger\"]:hover,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar #search-bar-entry:hover,html:has(.bnh[data-bn-theme=\"paper\"]) #navbar #assistant-entry:hover{border-color:#b4382a!important}"}],"page":{"pagePath":"en/guides/chapter-execution","slug":"/en/guides/chapter-execution","pageMetadata":{"title":"Chapter Execution","description":"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.","sidebarTitle":"Chapter Execution","icon":"arrows-spin","keywords":["chapter execution","body text generation","chapter audit","state backfill","RAG recall","context assembly","quality debt","chapter repair","knowledge base"],"href":"/en/guides/chapter-execution"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,Frame,Heading,Info,OptimizedImage,Step,Steps,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Biz Novel Studio’s chapter execution is not “give the model a title and let it write.” It is a closed-loop chain from brief to body text, to audit repair and state backfill. Understanding this chain can help you locate the truly problematic link when encountering quality issues, rather than blindly clicking regenerate.`}),`\n`,_jsx(Frame,{caption:`Chapter execution loop`,children:_jsx(OptimizedImage,{src:`https://raw.githubusercontent.com/ExplosiveCoderflome/AI-Novel-Writing-Assistant/main/docs/public/flow/diagrams/chapter-execution-loop.svg`,alt:`Chapter execution loop`})}),`\n`,_jsx(Heading,{level:`2`,id:`what-is-a-chapter-brief`,children:`What Is a Chapter Brief`}),`\n`,_jsxs(_components.p,{children:[`A chapter brief is the contract for body-text generation, not a simple title. It comes from Auto Director’s `,_jsx(_components.strong,{children:`Chapter Detailing`}),` (章节细化) phase, and usually contains:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Content`}),_jsx(_components.th,{children:`Role`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Chapter goal`}),_jsx(_components.td,{children:`Explains what this chapter must advance`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Carry over from previous chapter`}),_jsx(_components.td,{children:`Prevents the opening from detaching from existing facts`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Lead to next chapter`}),_jsx(_components.td,{children:`Lets this chapter’s ending serve subsequent pacing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Scene cards`}),_jsx(_components.td,{children:`Specifies location, conflict, character actions, and scene order`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Appearing characters`}),_jsx(_components.td,{children:`Limits this chapter’s figures, relationships, and available resources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Must payoff/setup`}),_jsx(_components.td,{children:`Manages reader promises and the foreshadowing ledger`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Taboos and hard constraints`}),_jsx(_components.td,{children:`Prevents violating the book contract, world rules, and character states`})]})]})]}),`\n`,_jsx(_components.p,{children:`If the brief is missing or too vague, body-text generation quality will usually be unstable. In this case, prioritize returning to chapter detailing, rather than temporarily adding a sentence of “write better” in the body-text input box.`}),`\n`,_jsx(Heading,{level:`2`,id:`execution-entry-points`,children:`Execution Entry Points`}),`\n`,_jsx(_components.p,{children:`Chapter execution usually enters from two entry points:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Entry`}),_jsx(_components.th,{children:`Trigger Condition`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Auto Director `,_jsx(_components.strong,{children:`Chapter Batch Ready`}),` (章节批次就绪)`]}),_jsx(_components.td,{children:`Beat board, chapter list, and chapter detailing completed`}),_jsx(_components.td,{children:`User confirms or auto-approval enters chapter execution`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Manual chapter execution`}),_jsx(_components.td,{children:`User initiates on the chapter page`}),_jsx(_components.td,{children:`Suitable for single-chapter rerun, model testing, or handling local chapters`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Before execution, a chapter task must exist. The task comes from `,_jsx(_components.strong,{children:`Chapter Detailing`}),` (章节细化), containing chapter goals, carry-over relationships, scene cards, characters, conflicts, and taboos.`]}),`\n`,_jsx(Heading,{level:`2`,id:`context-assembly-what-materials-are-prepared-for-the-model`,children:`Context Assembly: What Materials Are Prepared for the Model`}),`\n`,_jsx(_components.p,{children:`Before body-text generation, the system aggregates multiple materials into a context package. This package determines what the model knows and does not know, directly affecting body-text quality.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`This book's facts and planning`,children:_jsx(_components.p,{children:`Book contract, macro story, volume window, fact ledger, foreshadowing ledger. These are the highest priority and cannot be overridden by external materials.`})}),_jsx(Step,{title:`Character and world states`,children:_jsx(_components.p,{children:`Current character goals, locations, relationships, abilities, available resources; this chapter’s related world rules, locations, and faction boundaries.`})}),_jsx(Step,{title:`Style assets and Anti-AI Rules`,children:_jsx(_components.p,{children:`Bound style profile, style rules, anti-template expression constraints. Control how body text is written and what not to write.`})}),_jsx(Step,{title:`RAG recall materials`,children:_jsx(_components.p,{children:`Construct queries based on the chapter task, and recall the most relevant material fragments from the knowledge base.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`why-chapters-cannot-rely-only-on-prompts`,children:`Why Chapters Cannot Rely Only on Prompts`}),`\n`,_jsx(_components.p,{children:`Long-form novel subsequent chapters depend on already-occurred facts, character resources, reader promises, and world constraints. The chapter execution chain assembles these into a context package, avoiding reliance on temporary input for every chapter. Without this package, the model easily forgets previously planted foreshadowing, abilities the character just obtained, or world rule limitations.`}),`\n`,_jsx(Heading,{level:`2`,id:`body-text-generation-and-audit`,children:`Body-Text Generation and Audit`}),`\n`,_jsx(_components.p,{children:`After the context package is prepared, the system enters body-text generation. After generation, it immediately enters audit, judging whether body text satisfies the chapter task.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Step`}),_jsx(_components.th,{children:`Input`}),_jsx(_components.th,{children:`Artifact`}),_jsx(_components.th,{children:`How to Handle Failure`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Context assembly`}),_jsx(_components.td,{children:`Chapter task, book contract, characters, world, RAG, style, fact ledger`}),_jsx(_components.td,{children:`Context package`}),_jsx(_components.td,{children:`When key assets are missing, return to Director Follow-up or the novel page to supplement materials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Body-text generation`}),_jsx(_components.td,{children:`Context package, model routing, chapter goal`}),_jsx(_components.td,{children:`Body-text draft`}),_jsx(_components.td,{children:`Empty body text retries once; consecutive failures check model and task input`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audit`}),_jsx(_components.td,{children:`Draft, chapter task, context package`}),_jsx(_components.td,{children:`Audit report, pending issues, pass status`}),_jsx(_components.td,{children:`When acceptance judgment is unavailable, quality debt can be recorded`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`quality-judgment-layers`,children:`Quality Judgment Layers`}),`\n`,_jsx(_components.p,{children:`Audit results are divided into multiple layers, with different impacts on the global chain:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Judgment Result`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`Impact on Global Chain`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`accepted`}),_jsx(_components.td,{children:`Body text satisfies current task`}),_jsx(_components.td,{children:`Can continue to next chapter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`continue_with_warning`}),_jsx(_components.td,{children:`Has issues but body text is usable`}),_jsx(_components.td,{children:`Record quality debt, continue subsequent chapters`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`local_patch_plan`}),_jsx(_components.td,{children:`Can be locally repaired`}),_jsx(_components.td,{children:`Attempt repair, then continue or record debt`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`patchable_obligation_gap`}),_jsx(_components.td,{children:`Local promise gap can be filled`}),_jsx(_components.td,{children:`Low-risk repair or record debt`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`defer_and_continue`}),_jsx(_components.td,{children:`Issue can be handled later`}),_jsx(_components.td,{children:`Explicitly record debt and continue`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`replan_required`}),_jsx(_components.td,{children:`Subsequent structure needs adjustment`}),_jsx(_components.td,{children:`Enter checkpoint, confirmed by user`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`stop_for_replan`}),_jsx(_components.td,{children:`Must stop and replan`}),_jsx(_components.td,{children:`Stop global chain, return to planning entry`})]})]})]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Local quality debt does not equal global failure. As long as the chapter has usable body text, and the system does not explicitly require replanning, prioritize saving body text, recording debt, and allowing subsequent chapters to continue. This avoids a book repeatedly getting stuck because of a single chapter’s minor issue.`})}),`\n`,_jsx(Heading,{level:`2`,id:`repair-and-quality-debt`,children:`Repair and Quality Debt`}),`\n`,_jsx(_components.p,{children:`Issues found by audit enter the repair chain. Repair is not an infinite loop; the current chain limits retry counts and records quality debt.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Situation`}),_jsx(_components.th,{children:`Recommended Handling`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Minor logic or pacing issues`}),_jsx(_components.td,{children:`Allow light repair or record quality debt`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Readable after repair but still has local issues`}),_jsx(_components.td,{children:`Record quality debt and continue subsequent chapters`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Body text unavailable or empty`}),_jsx(_components.td,{children:`Retry generation, switch model if necessary`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Chapter goal conflicts with outline`}),_jsx(_components.td,{children:`Return to chapter task or beat board to replan`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Repair request would change subsequent structure`}),_jsxs(_components.td,{children:[`Enter `,_jsx(_components.strong,{children:`Waiting for Replanning`}),` (等待重新规划), confirmed by user`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`what-is-quality-debt`,children:`What Is Quality Debt`}),`\n`,_jsx(_components.p,{children:`Quality debt indicates the chapter has visible issues, but does not necessarily need to stop the whole book. Typical examples:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Local pacing is not strong enough`}),`\n`,_jsx(_components.li,{children:`Individual foreshadowing hints are insufficient`}),`\n`,_jsx(_components.li,{children:`A certain passage’s character tone needs later revision`}),`\n`,_jsx(_components.li,{children:`The repair tool cannot stably anchor a certain paragraph`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Quality debt is recorded, displayed, and followed up later, rather than default-blocking the global Auto Director. Only explicit replanning, unrecoverable generation failure, data risk, or security risk should stop the global chain.`}),`\n`,_jsx(Heading,{level:`2`,id:`state-backfill-letting-the-next-chapter-base-on-latest-facts`,children:`State Backfill: Letting the Next Chapter Base on Latest Facts`}),`\n`,_jsx(_components.p,{children:`After chapter execution completes, the system backfills new states into novel assets. This is the core mechanism that lets long-form writing continue.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Backfill Object`}),_jsx(_components.th,{children:`Content`}),_jsx(_components.th,{children:`Impact`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Character state`}),_jsx(_components.td,{children:`Location, goal, relationship, ability, resource changes`}),_jsx(_components.td,{children:`Subsequent chapters’ character behavior boundaries`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Fact ledger`}),_jsx(_components.td,{children:`Already-occurred events, irreversible results`}),_jsx(_components.td,{children:`Prevent subsequent repetition or violation of facts`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Foreshadowing/promises`}),_jsx(_components.td,{children:`New setup, payoff, deferral, risk`}),_jsx(_components.td,{children:`Help subsequent chapters manage reader expectations`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`World state`}),_jsx(_components.td,{children:`Location, rule, faction changes`}),_jsx(_components.td,{children:`Affect scene and conflict reasonableness`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audit issues`}),_jsx(_components.td,{children:`Pending issues, quality debt`}),_jsx(_components.td,{children:`Enter subsequent repair and task prompts`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`how-to-judge-when-backfill-fails`,children:`How to Judge When Backfill Fails`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Phenomenon`}),_jsx(_components.th,{children:`Possible Meaning`}),_jsx(_components.th,{children:`Recommended Action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Body text saved, but character state not updated`}),_jsx(_components.td,{children:`Character resource sync failed`}),_jsx(_components.td,{children:`Retry character resource sync, do not rewrite body text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Foreshadowing ledger not refreshed`}),_jsx(_components.td,{children:`Payoff ledger sync failed`}),_jsx(_components.td,{children:`Retry ledger sync, preserve body text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Chapter status still shows running`}),_jsx(_components.td,{children:`Backend task status not closed`}),_jsx(_components.td,{children:`Check whether Task Center is stale or failed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Next chapter context does not carry previous chapter facts`}),_jsx(_components.td,{children:`State submission not completed`}),_jsx(_components.td,{children:`First fix state submission, then execute next chapter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audit report missing`}),_jsx(_components.td,{children:`Audit service failed or interrupted`}),_jsx(_components.td,{children:`Can preserve body text, re-audit later`})]})]})]}),`\n`,_jsx(_components.p,{children:`Chapter body-text generation and state backfill are two different problems. When body text is already usable, prioritize fixing the backfill chain. Directly rewriting may create new factual forks.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-rag-and-knowledge-base-participate-in-chapter-execution`,children:`How RAG and Knowledge Base Participate in Chapter Execution`}),`\n`,_jsx(_components.p,{children:`Chapter execution recalls the knowledge base, book breakdown, style, and this book’s assets during context assembly. RAG materials are only part of the context and should not override the chapter brief.`}),`\n`,_jsx(Heading,{level:`3`,id:`material-source-layers`,children:`Material Source Layers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Layer`}),_jsx(_components.th,{children:`Examples`}),_jsx(_components.th,{children:`Usage Principle`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`This book’s facts`}),_jsx(_components.td,{children:`Already-written chapters, fact ledger, character states, world states`}),_jsx(_components.td,{children:`Highest priority, cannot be overridden by external materials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`This book’s planning`}),_jsx(_components.td,{children:`Book contract, macro story, volume strategy, chapter tasks`}),_jsx(_components.td,{children:`Guide next writing goals`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`User materials`}),_jsx(_components.td,{children:`Uploaded knowledge base, world samples, dedicated setting documents`}),_jsx(_components.td,{children:`Used to supplement facts and settings`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Book breakdown conclusions`}),_jsx(_components.td,{children:`Reference work structure, selling points, character and style analysis`}),_jsx(_components.td,{children:`Migrate methods, do not copy plot`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Style assets`}),_jsx(_components.td,{children:`Style rules, Anti-AI Rules, sample text features`}),_jsx(_components.td,{children:`Control expression methods`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Temporary conversation`}),_jsx(_components.td,{children:`Creative Hub current round input`}),_jsx(_components.td,{children:`Can only affect current task; for long-term effect, must be persisted`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`how-chapter-rag-queries-are-constructed`,children:`How Chapter RAG Queries Are Constructed`}),`\n`,_jsx(_components.p,{children:`The system does not directly search materials using chapter titles. It assembles queries based on the chapter task, containing novel title, chapter title, chapter goal, chapter expectation, this chapter’s must-advance content, target conflict, appearing characters, and structured outline. The closer the query is to this chapter’s goal, the easier the recall is to hit truly useful materials.`}),`\n`,_jsx(Heading,{level:`3`,id:`retrieval-methods`,children:`Retrieval Methods`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Retrieval Method`}),_jsx(_components.th,{children:`Suitable Content`}),_jsx(_components.th,{children:`Common Issues`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Vector retrieval`}),_jsx(_components.td,{children:`Semantically similar but differently worded materials, long documents, book breakdown conclusions`}),_jsx(_components.td,{children:`Cannot hit when documents are not indexed or vector library is unavailable`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text retrieval`}),_jsx(_components.td,{children:`Person names, place names, proper nouns, fixed terms`}),_jsx(_components.td,{children:`May miss when users do not write clear keywords`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Hybrid recall`}),_jsx(_components.td,{children:`Needs both semantics and keywords`}),_jsx(_components.td,{children:`Needs reasonable document titles, chunking, and metadata`})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`More recall is not always better. Stuffing irrelevant materials into context increases model noise. For long-form novels, accurately hitting the current chapter’s task is more important than recalling a large volume of materials at once.`})}),`\n`,_jsx(Heading,{level:`3`,id:`priority-when-conflicts-occur`,children:`Priority When Conflicts Occur`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Conflict Scenario`}),_jsx(_components.th,{children:`Priority`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`RAG materials conflict with already-written chapters`}),_jsx(_components.td,{children:`Already-written chapters and fact ledger take priority`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Style rules conflict with chapter task`}),_jsx(_components.td,{children:`Chapter task takes priority; style rules adjust expression methods`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Book breakdown conclusions conflict with this book’s characters`}),_jsx(_components.td,{children:`This book’s character states take priority`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`World samples conflict with this book’s world`}),_jsx(_components.td,{children:`This book’s world takes priority`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`User’s current explicit instruction conflicts with old materials`}),_jsx(_components.td,{children:`Current instruction can trigger revision, but needs to be persisted before long-term effect`})]})]})]}),`\n`,_jsx(_components.p,{children:`RAG’s goal is to let the system know more, not to give external materials the highest decision-making power.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-batch-execution-advances`,children:`How Batch Execution Advances`}),`\n`,_jsx(_components.p,{children:`Chapter batches usually do not write only one chapter at a time. Batch execution saves state between each chapter and decides whether to continue to the next chapter.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Batch Node`}),_jsx(_components.th,{children:`System Action`}),_jsx(_components.th,{children:`User May See`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Batch start`}),_jsxs(_components.td,{children:[`Read the chapter range from `,_jsx(_components.strong,{children:`Chapter Batch Ready`}),` (章节批次就绪)`]}),_jsx(_components.td,{children:`Chapter tasks enter queue or run`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Single-chapter generation`}),_jsx(_components.td,{children:`Assemble context, generate body text, audit repair`}),_jsx(_components.td,{children:`Current chapter status changes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Single-chapter close`}),_jsx(_components.td,{children:`Save body text, backfill facts, characters, foreshadowing, and quality info`}),_jsx(_components.td,{children:`Chapter completes or completes with warning`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Next-chapter preparation`}),_jsx(_components.td,{children:`Read previous chapter’s backfilled state`}),_jsx(_components.td,{children:`Next chapter’s context updates`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Batch pause`}),_jsx(_components.td,{children:`Encounter checkpoint, failure, or need manual handling`}),_jsx(_components.td,{children:`Director Follow-up or chapter source page shows operation entry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Batch completion`}),_jsx(_components.td,{children:`All target chapters processed`}),_jsx(_components.td,{children:`Can continue next batch or view quality debt`})]})]})]}),`\n`,_jsx(_components.p,{children:`If auto-approval is not authorized, the batch may pause at certain nodes waiting for confirmation. This is to let the user see risks, rather than the backend “not responding.”`}),`\n`,_jsx(Heading,{level:`2`,id:`this-book’s-issue-handling-rules`,children:`This Book’s Issue Handling Rules`}),`\n`,_jsx(_components.p,{children:`Each book can inherit global rules, or choose a set of issue handling plans in this book:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Plan`}),_jsx(_components.th,{children:`Auto-Processing Opportunity`}),_jsx(_components.th,{children:`When Local Issue Remains Unresolved After Handling`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Prioritize completing the whole book`}),_jsx(_components.td,{children:`Up to 1 time`}),_jsx(_components.td,{children:`Preserve usable body text, record quality debt, and continue`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Quality priority`}),_jsx(_components.td,{children:`Up to 1 time`}),_jsx(_components.td,{children:`Stop at a saved chapter boundary, waiting for explicit resume`})]})]})]}),`\n`,_jsx(_components.p,{children:`Item-by-item rules can also choose auto-retry, remind then continue, pause processing, or end task. Save failure, data integrity risk, protected content, and other runtime safety issues will still prioritize protecting the work.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Manual pauses will not be automatically cleared by backend polling. When “quality priority” explicitly requests pause processing, the task retains a pending manual resume status. Backend polling, service restart, and worker recovery cannot confirm on behalf of the user; only after an explicit resume action is executed will the chapter chain continue.`})}),`\n`,_jsx(Heading,{level:`2`,id:`failure-modes-and-recovery`,children:`Failure Modes and Recovery`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Failure Mode`}),_jsx(_components.th,{children:`Symptom`}),_jsx(_components.th,{children:`Check First`}),_jsx(_components.th,{children:`Recommended Recovery`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Context assembly failure`}),_jsx(_components.td,{children:`Error before chapter execution`}),_jsx(_components.td,{children:`Run History error, novel assets, chapter page`}),_jsx(_components.td,{children:`Supplement characters/world/chapter tasks, then return to chapter page and retry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Empty body text`}),_jsx(_components.td,{children:`Model returns empty content`}),_jsx(_components.td,{children:`Run History, model routing, chapter page`}),_jsx(_components.td,{children:`System retries once; consecutive failures switch model, then return to chapter page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audit unavailable`}),_jsx(_components.td,{children:`acceptance gate unavailable`}),_jsx(_components.td,{children:`Chapter page, Task Center`}),_jsx(_components.td,{children:`Preserve body text, re-audit later`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Repair failure`}),_jsx(_components.td,{children:`repair ticket failed`}),_jsx(_components.td,{children:`Task Center, chapter page`}),_jsx(_components.td,{children:`Attempt re-repair; if usable body text already exists, record quality debt`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Replanning risk`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Waiting for Replanning`}),` (等待重新规划)`]}),_jsx(_components.td,{children:`Director Follow-up`}),_jsx(_components.td,{children:`Manually confirm replanning or accept risk and continue`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`State sync failure`}),_jsx(_components.td,{children:`Body text exists but state not backfilled`}),_jsx(_components.td,{children:`Run History, chapter page`}),_jsx(_components.td,{children:`Return to chapter page and retry sync; do not prioritize rewriting body text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model balance or quota insufficient`}),_jsx(_components.td,{children:`Execution details show model-returned balance, quota, or rate-limit errors`}),_jsx(_components.td,{children:`Current execution page, Run History, model settings`}),_jsx(_components.td,{children:`Top up quota or switch model, then return to current execution page and resume from the first unfinished chapter`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`manual-intervention-entry-points`,children:`Manual Intervention Entry Points`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`What the User Wants to Do`}),_jsx(_components.th,{children:`Recommended Entry`}),_jsx(_components.th,{children:`Reason`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Check whether body text is saved`}),_jsx(_components.td,{children:`Chapter page`}),_jsx(_components.td,{children:`Body-text facts are based on the chapter page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`See why the backend stopped`}),_jsx(_components.td,{children:`Task Center`}),_jsx(_components.td,{children:`Failure, stale, queued, running are all here`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Approve continue or replan`}),_jsx(_components.td,{children:`Director Follow-up`}),_jsx(_components.td,{children:`The next entry for checkpoints is here`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Adjust chapter goals`}),_jsx(_components.td,{children:`Chapter task / chapter planning`}),_jsx(_components.td,{children:`Body-text generation reads the brief`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Modify character states`}),_jsx(_components.td,{children:`Character page`}),_jsx(_components.td,{children:`Subsequent chapters read formal character assets`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Check whether materials hit`}),_jsx(_components.td,{children:`Knowledge base recall test`}),_jsx(_components.td,{children:`Judge whether RAG can truly hit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Adjust style`}),_jsx(_components.td,{children:`Style Engine`}),_jsx(_components.td,{children:`Language style should enter context through style assets`})]})]})]}),`\n`,_jsx(_components.p,{children:`Do not throw all problems at body-text rewriting. Body-text rewriting is suitable when body text is unavailable; task, asset, recall, and sync problems should return to the corresponding entry.`}),`\n`,_jsx(Heading,{level:`2`,id:`faq`,children:`FAQ`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Why can't a chapter just be given a title and let the model write?`,id:`why-cant-a-chapter-just-be-given-a-title-and-let-the-model-write`,children:_jsx(_components.p,{children:`Long-form novel subsequent chapters depend on already-occurred facts, character resources, reader promises, and world constraints. Without a brief and context package, the model easily forgets previous settings, violates character states, or misses foreshadowing. The chapter brief provides clear advancement goals, scene cards, and constraint boundaries, and is the contract for body-text quality.`})}),_jsx(Accordion,{title:`Will quality debt affect subsequent chapters?`,id:`will-quality-debt-affect-subsequent-chapters`,children:_jsx(_components.p,{children:`It will not directly block. Quality debt is recorded and then continues to advance subsequent chapters, but debt content will be referenced in subsequent audits and planning. If the debt involves structural issues, it may trigger a replanning suggestion later.`})}),_jsx(Accordion,{title:`Will RAG recalled materials override this book's already-written content?`,id:`will-rag-recalled-materials-override-this-books-already-written-content`,children:_jsx(_components.p,{children:`No. This book’s facts and the fact ledger are the highest priority. RAG materials are used to supplement settings and references, and cannot overturn content already written into the novel state. If recalled materials conflict with this book’s facts, the system will prioritize following this book’s facts.`})}),_jsx(Accordion,{title:`When state sync fails, will the next chapter write based on old states?`,id:`when-state-sync-fails-will-the-next-chapter-write-based-on-old-states`,children:_jsx(_components.p,{children:`If state is not backfilled, the next chapter’s context may lack this chapter’s latest facts. In this case, first fix the sync, then execute the next chapter, to avoid factual forks. When body text is already usable, there is no need to rewrite; only supplement the sync.`})}),_jsx(Accordion,{title:`Is there a limit on single-chapter repair retries?`,id:`is-there-a-limit-on-single-chapter-repair-retries`,children:_jsx(_components.p,{children:`Yes, there is a limit. The current chain limits repair retry counts to avoid infinite loops. If low-risk repair cannot resolve, it records quality debt and continues; if it involves structural issues, it enters a checkpoint waiting for user confirmation.`})}),_jsx(Accordion,{title:`Can I manually modify body text and then let the system continue?`,id:`can-i-manually-modify-body-text-and-then-let-the-system-continue`,children:_jsx(_components.p,{children:`Yes. You can manually modify body text on the chapter page. Modified content will become the fact source for subsequent chapters, but the system will not automatically reverse-sync to character states or the foreshadowing ledger. If the modification involves important fact changes, it is recommended to simultaneously check related assets.`})})]}),`\n`,_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`Knowledge Base \u0026 RAG`,icon:`database`,href:`/en/features/knowledge-base`,children:_jsx(_components.p,{children:`Learn how materials are ingested, recalled, and participate in context assembly`})}),_jsx(Card,{title:`Creative Production Pipeline`,icon:`diagram-project`,href:`/en/guides/production-pipeline`,children:_jsx(_components.p,{children:`The complete three-layer chain from Idea Layer to Chapter Execution Layer`})}),_jsx(Card,{title:`Auto Director`,icon:`wand-magic-sparkles`,href:`/en/features/auto-director`,children:_jsx(_components.p,{children:`Learn about director phases, run modes, and checkpoint mechanisms`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Chapter Execution","description":"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.","sidebarTitle":"Chapter Execution","icon":"arrows-spin","keywords":["chapter execution","body text generation","chapter audit","state backfill","RAG recall","context assembly","quality debt","chapter repair","knowledge base"],"href":"/en/guides/chapter-execution"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What Is a Chapter Brief","slug":"what-is-a-chapter-brief","depth":2,"children":[]},{"title":"Execution Entry Points","slug":"execution-entry-points","depth":2,"children":[]},{"title":"Context Assembly: What Materials Are Prepared for the Model","slug":"context-assembly-what-materials-are-prepared-for-the-model","depth":2,"children":[{"title":"Why Chapters Cannot Rely Only on Prompts","slug":"why-chapters-cannot-rely-only-on-prompts","depth":3,"children":[]}]},{"title":"Body-Text Generation and Audit","slug":"body-text-generation-and-audit","depth":2,"children":[{"title":"Quality Judgment Layers","slug":"quality-judgment-layers","depth":3,"children":[]}]},{"title":"Repair and Quality Debt","slug":"repair-and-quality-debt","depth":2,"children":[{"title":"What Is Quality Debt","slug":"what-is-quality-debt","depth":3,"children":[]}]},{"title":"State Backfill: Letting the Next Chapter Base on Latest Facts","slug":"state-backfill-letting-the-next-chapter-base-on-latest-facts","depth":2,"children":[{"title":"How to Judge When Backfill Fails","slug":"how-to-judge-when-backfill-fails","depth":3,"children":[]}]},{"title":"How RAG and Knowledge Base Participate in Chapter Execution","slug":"how-rag-and-knowledge-base-participate-in-chapter-execution","depth":2,"children":[{"title":"Material Source Layers","slug":"material-source-layers","depth":3,"children":[]},{"title":"How Chapter RAG Queries Are Constructed","slug":"how-chapter-rag-queries-are-constructed","depth":3,"children":[]},{"title":"Retrieval Methods","slug":"retrieval-methods","depth":3,"children":[]},{"title":"Priority When Conflicts Occur","slug":"priority-when-conflicts-occur","depth":3,"children":[]}]},{"title":"How Batch Execution Advances","slug":"how-batch-execution-advances","depth":2,"children":[]},{"title":"This Book’s Issue Handling Rules","slug":"this-book’s-issue-handling-rules","depth":2,"children":[]},{"title":"Failure Modes and Recovery","slug":"failure-modes-and-recovery","depth":2,"children":[]},{"title":"Manual Intervention Entry Points","slug":"manual-intervention-entry-points","depth":2,"children":[]},{"title":"FAQ","slug":"faq","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ai-novel-writing-assistant","siteName":"Biz Novel Studio","title":"Chapter Execution - Biz Novel Studio","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh-Hans":{"href":"/guides/chapter-execution","matchLevel":1},"en":{"href":"/en/guides/chapter-execution","matchLevel":0}}},"lastModified":"2026-11-13T14:54:28.090Z","originalFileLocation":"en/guides/chapter-execution.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.\">\u003cmeta data-mint-head name=\"keywords\" content=\"AI 小说,AI 写小说,AI 小说创作,长篇小说生成,短篇小说,小说写作助手,开源,Biz Novel Studio,AI-Novel-Writing-Assistant,AI Novel Writing Assistant,AI novel writing assistant\">\u003cmeta data-mint-head name=\"application-name\" content=\"Biz Novel Studio\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Chapter Execution - Biz Novel Studio\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Biz Novel Studio\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ai-novel-writing-assistant.mintlify.site/_mintlify/api/og/v2?division=How+it+works\u0026amp;title=Chapter+Execution\u0026amp;description=Understand+how+Biz+Novel+Studio+turns+a+chapter+brief+into+body+text%3A+context+assembly%2C+body-text+generation%2C+audit+repair%2C+state+backfill%2C+and+how+the+knowledg\u0026amp;theme=700e639a038127da6db8f4d5\u0026amp;signature=b95dff33ba20b15461c76f454948bb3d6d6ea660017d9c951fa521e23c1fc283\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Chapter Execution - Biz Novel Studio\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ai-novel-writing-assistant.mintlify.site/_mintlify/api/og/v2?division=How+it+works\u0026amp;title=Chapter+Execution\u0026amp;description=Understand+how+Biz+Novel+Studio+turns+a+chapter+brief+into+body+text%3A+context+assembly%2C+body-text+generation%2C+audit+repair%2C+state+backfill%2C+and+how+the+knowledg\u0026amp;theme=700e639a038127da6db8f4d5\u0026amp;signature=b95dff33ba20b15461c76f454948bb3d6d6ea660017d9c951fa521e23c1fc283\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ai-novel-writing-assistant/UBPqqM50SFmqeKPJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Biz Novel Studio\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003cmeta data-mint-head name=\"og:locale\" content=\"zh_CN\">\u003cmeta data-mint-head name=\"author\" content=\"ExplosiveCoderflome\">\u003cmeta data-mint-head name=\"language\" content=\"zh-CN\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#05080a\">\u003cmeta data-mint-head name=\"application-name\" content=\"Biz Novel Studio\">\u003clink data-mint-head rel=\"canonical\" href=\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/guides/chapter-execution.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://ai-novel-writing-assistant.mintlify.app/guides/chapter-execution\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://ai-novel-writing-assistant.mintlify.app/guides/chapter-execution\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/#organization\",\"name\":\"Biz Novel Studio\",\"url\":\"https://ai-novel-writing-assistant.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ai-novel-writing-assistant/EPaSP-_4jKaBdGvV/images/logo.svg?fit=max\u0026auto=format\u0026n=EPaSP-_4jKaBdGvV\u0026q=85\u0026s=46d743075cfdc9207d8e72dddacb3816\"}},{\"@type\":\"WebSite\",\"@id\":\"https://ai-novel-writing-assistant.mintlify.app#website\",\"name\":\"Biz Novel Studio\",\"url\":\"https://ai-novel-writing-assistant.mintlify.app\",\"publisher\":{\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution#webpage\",\"url\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution\",\"name\":\"Chapter Execution\",\"description\":\"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.\",\"dateModified\":\"2026-11-13T14:54:28.090Z\",\"isPartOf\":{\"@id\":\"https://ai-novel-writing-assistant.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"How it works\",\"item\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/production-pipeline\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chapter Execution\",\"item\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution#article\",\"headline\":\"Chapter Execution\",\"name\":\"Chapter Execution\",\"description\":\"Understand how Biz Novel Studio turns a chapter brief into body text: context assembly, body-text generation, audit repair, state backfill, and how the knowledge base and RAG materials participate in this process.\",\"url\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution\",\"mainEntityOfPage\":{\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/en/guides/chapter-execution#webpage\"},\"dateModified\":\"2026-11-13T14:54:28.090Z\",\"keywords\":\"chapter execution, body text generation, chapter audit, state backfill, RAG recall, context assembly, quality debt, chapter repair, knowledge base\",\"publisher\":{\"@id\":\"https://ai-novel-writing-assistant.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://ai-novel-writing-assistant.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Biz Novel Studio\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Biz Novel Studio\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/guides/chapter-execution.md","siteName":"Biz Novel Studio","nav":{"global":null,"languages":[{"language":"zh-Hans","default":true,"pages":[{"title":"zh-Hans","href":"/guides/chapter-execution"}]},{"language":"en","groups":[{"group":"Get started","pages":[{"title":"Biz Novel Studio","sidebarTitle":"Home","mode":"custom","href":"/en"},{"title":"Biz Novel Studio · AI Novel Writing Workbench","href":"/en/introduction"},{"title":"Installation","href":"/en/installation"},{"title":"Onboarding","href":"/en/onboarding"},{"title":"Quick Start","href":"/en/quickstart"},{"title":"From Inspiration to Chapter: Creation Flow Overview","sidebarTitle":"Creation Flow Overview","icon":"diagram-project","href":"/en/creation-flow"},{"title":"Hands-on: Writing the First 10 Chapters","sidebarTitle":"Hands-on: First 10 Chapters","icon":"graduation-cap","href":"/en/first-ten-chapters"},{"title":"Model Configuration","href":"/en/model-configuration"},{"title":"System Settings","icon":"sliders","href":"/en/system-settings"}]},{"group":"Playbooks","pages":[{"title":"Your First Novel Walkthrough","sidebarTitle":"Your First Novel Walkthrough","icon":"route","href":"/en/guides/first-novel-walkthrough"},{"title":"Recovery by Phase","sidebarTitle":"Recovery by Phase","icon":"life-ring","href":"/en/guides/recovery-by-phase"}]},{"group":"Long and short fiction","pages":[{"title":"Novels \u0026 Starting a Book","icon":"book-open","href":"/en/features/novels"},{"title":"Title Workshop","sidebarTitle":"Title Workshop","icon":"heading","href":"/en/features/title-workshop"},{"title":"Outline Workbench","sidebarTitle":"Outline Workbench","icon":"list-tree","href":"/en/features/outline-workbench"},{"title":"Auto Director V1/V2","icon":"wand-magic-sparkles","href":"/en/features/auto-director"},{"title":"Director Follow-up","sidebarTitle":"Director Follow-up","icon":"clapperboard","href":"/en/features/director-follow-up"},{"title":"Short Story Creation","icon":"feather","href":"/en/features/short-story"},{"title":"AI Usage and Token Caching","icon":"chart-bar","href":"/en/features/token-usage"},{"title":"Run History","sidebarTitle":"Run History","icon":"list-check","href":"/en/features/task-center"}]},{"group":"Worlds, characters and style","pages":[{"title":"World Library","icon":"globe","href":"/en/features/world-library"},{"title":"Genre Library","sidebarTitle":"Genre Library","icon":"layer-group","href":"/en/features/genre-library"},{"title":"Progression Modes","sidebarTitle":"Progression Modes","icon":"forward","href":"/en/features/progression-modes"},{"title":"Character Library","icon":"users","href":"/en/features/character-library"},{"title":"Style Engine","icon":"pen-nib","href":"/en/features/style-engine"},{"title":"Anti-AI Rules","icon":"ban","href":"/en/features/anti-ai-rules"},{"title":"Prompt Management","sidebarTitle":"Prompt Management","icon":"terminal","href":"/en/features/prompt-management"}]},{"group":"Research and assistance","pages":[{"title":"Book Breakdown Workbench","sidebarTitle":"Book Breakdown Workbench","icon":"book-open","href":"/en/features/book-analysis"},{"title":"Trending Genre Radar","sidebarTitle":"Trending Genre Radar","icon":"satellite-dish","href":"/en/features/market-radar"},{"title":"Knowledge Base and RAG","sidebarTitle":"Knowledge Base and RAG","icon":"database","href":"/en/features/knowledge-base"},{"title":"Creative Hub","sidebarTitle":"Creative Hub","icon":"compass","href":"/en/features/creative-hub"}]},{"group":"Adaptations","pages":[{"title":"Comic Workbench","icon":"images","href":"/en/features/comic-workspace"},{"title":"Short Drama Workbench","icon":"film","href":"/en/features/short-drama-workspace"}]},{"group":"How it works","pages":[{"title":"Creative Production Pipeline","description":"Understand Biz Novel Studio's three-layer production chain from idea to chapter: how the Idea Layer, Auto Director Layer, and Chapter Execution Layer connect, and why this layered design safeguards long-form quality.","sidebarTitle":"Creative Production Pipeline","icon":"diagram-project","href":"/en/guides/production-pipeline"},{"title":"Chapter Execution","sidebarTitle":"Chapter Execution","icon":"arrows-spin","href":"/en/guides/chapter-execution"}]},{"group":"Developers","pages":[{"title":"Architecture \u0026 Source Code","description":"Tech stack, directory structure, V1/V2 relationship, environment requirements, and common commands for Biz Novel Studio","icon":"sitemap","href":"/en/developers/architecture"},{"title":"Deployment Guide","sidebarTitle":"Deployment Guide","icon":"server","href":"/en/developers/deployment"},{"title":"Environment Variables","icon":"gear","href":"/en/developers/environment-variables"},{"title":"Contributing","icon":"code-pull-request","href":"/en/developers/contributing"}]},{"group":"Help","pages":[{"title":"Glossary","icon":"book","href":"/en/glossary"},{"title":"Frequently Asked Questions","href":"/en/faq"},{"title":"Troubleshooting","icon":"screwdriver-wrench","href":"/en/troubleshooting"},{"title":"Changelog","sidebarTitle":"Changelog","icon":"clock-rotate-left","href":"/en/changelog"},{"title":"Roadmap","sidebarTitle":"Roadmap","icon":"map","href":"/en/roadmap"}]}]}]},"basePath":"","title":"Chapter Execution - Biz Novel Studio","buildId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","deploymentId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-B90Qhg8r.js","DynamicMarkdown-DpAS3GCb.js","zoom-image-lightbox-9bQKnClW.js","lightbox-handle-r17bVUz3.js"]}