{ "schema_version": 2, "diagram_type": "workflow", "meta": { "title": "自动导演:从想法到完整小说(详细生产链)", "locale": "zh-CN", "quality_profile": "showcase", "views": [ { "id": "idea-contract", "label": "想法与全书契约", "focus": ["idea_direction", "story_contract", "world_generation", "character_generation"], "note": "从模糊想法、候选方向到故事宏观、Book Contract、世界观和角色资产。" }, { "id": "volume-outline", "label": "卷与章节规划", "focus": ["volume_planning", "chapter_structure", "chapter_refinement"], "note": "卷战略继续拆成节奏板、章节列表、章节细化、任务单和执行合同。" }, { "id": "chapter-production", "label": "章节生产与验收", "focus": ["chapter_refinement", "style_binding_resolution", "anti_ai_contract", "chapter_generation", "quality_review"], "note": "按章节任务解析写法绑定与反 AI 规则,编译为写作契约后生成正文;局部问题修复或记债,明确重规划才暂停等待恢复。" }, { "id": "style-contract", "label": "写法与反 AI 契约", "focus": ["chapter_refinement", "style_binding_resolution", "anti_ai_contract", "chapter_generation"], "note": "任务、章节、小说三级写法绑定按优先级合并;全局基线与写法专属反 AI 规则共同编译进章节提示。" }, { "id": "state-sync", "label": "写后信息同步", "focus": ["quality_review", "fact_state_commit", "ledger_character_sync", "novel_complete"], "note": "正文闭合后抽取章节事实,提交连续性状态,再同步伏笔账本和角色资源。" } ] }, "lanes": [ { "id": "creator", "label": "创作者与成品" }, { "id": "planning", "label": "全书规划与章节准备" }, { "id": "style", "label": "写法引擎与反 AI 契约" }, { "id": "production", "label": "逐章生产与写后同步" } ], "phases": [ { "id": "idea", "label": "方向与契约", "fromCol": 0, "toCol": 0 }, { "id": "assets", "label": "世界与角色", "fromCol": 1, "toCol": 2 }, { "id": "volume", "label": "卷规划", "fromCol": 3, "toCol": 3 }, { "id": "outline", "label": "章节结构与细化", "fromCol": 4, "toCol": 5, "variant": "emphasis" } ], "groups": [ { "id": "book_planning", "label": "书级规划链", "lane": "planning", "fromCol": 0, "toCol": 3 }, { "id": "chapter_planning", "label": "章节可执行化", "lane": "planning", "fromCol": 4, "toCol": 5, "variant": "emphasis" }, { "id": "style_contract", "label": "生成前约束编译", "lane": "style", "fromCol": 4, "toCol": 5, "variant": "security" }, { "id": "chapter_loop", "label": "每章闭环后进入下一章", "lane": "production", "fromCol": 2, "toCol": 5, "variant": "dashed" } ], "nodes": [ { "id": "idea_direction", "lane": "creator", "col": 0, "width": 96, "type": "frontend", "label": "输入想法并定向", "sublabel": "AI 候选、细化、确认" }, { "id": "story_contract", "lane": "planning", "col": 0, "width": 96, "type": "backend", "label": "故事宏观契约", "sublabel": "宏观故事 → 全书约束" }, { "id": "world_generation", "lane": "planning", "col": 1, "width": 92, "type": "cloud", "label": "生成世界观", "sublabel": "规则、地点与势力" }, { "id": "character_generation", "lane": "planning", "col": 2, "width": 96, "type": "cloud", "label": "生成角色", "sublabel": "档案、关系与状态" }, { "id": "volume_planning", "lane": "planning", "col": 3, "width": 96, "type": "backend", "label": "规划分卷", "sublabel": "卷目标、阶段与伏笔" }, { "id": "chapter_structure", "lane": "planning", "col": 4, "width": 96, "type": "backend", "label": "生成章节结构", "sublabel": "节奏板 → 章节表" }, { "id": "chapter_refinement", "lane": "planning", "col": 5, "width": 96, "type": "database", "label": "细化章节任务", "sublabel": "任务单、场景卡、合同" }, { "id": "style_binding_resolution", "lane": "style", "col": 4, "width": 88, "type": "cloud", "label": "解析写法绑定", "sublabel": "任务 > 章节 > 小说" }, { "id": "anti_ai_contract", "lane": "style", "col": 5, "width": 100, "type": "security", "label": "编译反 AI 契约", "sublabel": "全局基线 + 写法专属" }, { "id": "chapter_generation", "lane": "production", "col": 5, "width": 96, "type": "backend", "label": "生成章节正文", "sublabel": "装配上下文并存草稿" }, { "id": "quality_review", "lane": "production", "col": 4, "width": 104, "type": "security", "label": "验收与修复", "sublabel": "记债继续|重规划暂停" }, { "id": "fact_state_commit", "lane": "production", "col": 3, "width": 100, "type": "database", "label": "抽取并提交状态", "sublabel": "人物、关系与事件" }, { "id": "ledger_character_sync", "lane": "production", "col": 2, "width": 100, "type": "messagebus", "label": "同步伏笔与人物", "sublabel": "伏笔账本 → 角色资源" }, { "id": "novel_complete", "lane": "production", "col": 1, "width": 92, "type": "external", "label": "产出完整小说", "sublabel": "闭合后精修或导出" } ], "edges": [ { "from": "idea_direction", "to": "story_contract", "label": "确认方向并创建小说" }, { "from": "story_contract", "to": "world_generation", "label": "书级约束" }, { "from": "world_generation", "to": "character_generation", "label": "世界规则" }, { "from": "character_generation", "to": "volume_planning", "label": "角色资产" }, { "from": "volume_planning", "to": "chapter_structure", "label": "卷战略" }, { "from": "chapter_structure", "to": "chapter_refinement", "label": "章节清单" }, { "from": "chapter_refinement", "to": "style_binding_resolution", "label": "当前章节与任务写法" }, { "from": "style_binding_resolution", "to": "anti_ai_contract", "variant": "security" }, { "from": "anti_ai_contract", "to": "chapter_generation", "label": "注入写法、反 AI 与自检块", "variant": "security" }, { "from": "chapter_generation", "to": "quality_review", "label": "可用正文" }, { "from": "quality_review", "to": "fact_state_commit", "label": "通过或降级闭合" }, { "from": "fact_state_commit", "to": "ledger_character_sync", "label": "连续性状态" }, { "from": "ledger_character_sync", "to": "chapter_generation", "label": "还有计划章节", "role": "return", "variant": "dashed" }, { "from": "ledger_character_sync", "to": "novel_complete", "label": "全部章节闭合", "variant": "emphasis" } ], "mainPath": [ "idea_direction", "story_contract", "world_generation", "character_generation", "volume_planning", "chapter_structure", "chapter_refinement" ], "semanticChecks": { "allowedRoots": ["idea_direction"], "allowedTerminals": ["novel_complete"], "requiredEdges": [ { "from": "world_generation", "to": "character_generation" }, { "from": "character_generation", "to": "volume_planning" }, { "from": "chapter_structure", "to": "chapter_refinement" }, { "from": "chapter_refinement", "to": "style_binding_resolution" }, { "from": "style_binding_resolution", "to": "anti_ai_contract" }, { "from": "anti_ai_contract", "to": "chapter_generation" }, { "from": "quality_review", "to": "fact_state_commit" }, { "from": "fact_state_commit", "to": "ledger_character_sync" }, { "from": "ledger_character_sync", "to": "chapter_generation" }, { "from": "ledger_character_sync", "to": "novel_complete" } ], "requiredPaths": [ { "from": "idea_direction", "to": "novel_complete" } ] } }