Просмотр исходного кода

feat(v10): P2 — reviser craft rules + architect emotional wave design

Reviser (auto mode):
- Added 3 compact craft rules to both EN/ZH revision principles:
  emotion through action, character voice differentiation, escalation

Architect (volume outline generation):
- EN: Golden 5 chapters rule (paywall at ch6-8) + emotional wave design
- ZH: Added emotional wave design (tension curves, no 3+ consecutive
  same-mood chapters, daily chapters must serve mainline)

All 520 tests pass.
Ma 7 месяцев назад
Родитель
Сommit
71f89738c1
2 измененных файлов с 23 добавлено и 3 удалено
  1. 17 3
      packages/core/src/agents/architect.ts
  2. 6 0
      packages/core/src/agents/reviser.ts

+ 17 - 3
packages/core/src/agents/architect.ts

@@ -107,16 +107,30 @@ Core blurb principle:
     const volumeOutlinePrompt = resolvedLanguage === "en"
       ? `Volume plan. For each volume include: title, chapter range, core conflict, key turning points, and payoff goal
 
-### Golden First Three Chapters Rule
+### Golden First Five Chapters Rule (English platforms: paywall at ch6-8)
 - Chapter 1: throw the core conflict immediately; no large background dump
 - Chapter 2: show the core edge / ability / leverage that answers Chapter 1's pressure
-- Chapter 3: establish the first concrete short-term goal that gives readers a reason to continue`
+- Chapter 3: establish the first concrete short-term goal
+- Chapter 4: deliver the first MAJOR payoff — reward reader investment
+- Chapter 5: raise the stakes before paywall — strongest cliffhanger yet
+
+### Emotional Wave Design
+- Each volume must have a tension curve: build → peak → release → bigger build
+- Never plan 3+ consecutive high-tension chapters without a breathing chapter
+- Never plan 3+ consecutive quiet chapters without a complication or revelation
+- Daily/transition chapters must serve the main plot (plant hooks, advance relationships)`
       : `卷纲规划,每卷包含:卷名、章节范围、核心冲突、关键转折、收益目标
 
 ### 黄金三章法则(前三章必须遵循)
 - 第1章:抛出核心冲突(主角立即面临困境/危机/选择),禁止大段背景灌输
 - 第2章:展示金手指/核心能力(主角如何应对第1章的困境),让读者看到爽点预期
-- 第3章:明确短期目标(主角确立第一个具体可达成的目标),给读者追读理由`;
+- 第3章:明确短期目标(主角确立第一个具体可达成的目标),给读者追读理由
+
+### 情绪波形设计
+- 每卷必须有张力曲线:蓄压→爆发→释放→更大蓄压
+- 不得连续规划3章以上的高压章节而没有喘息章
+- 不得连续规划3章以上的平淡章节而没有冲突或揭秘
+- 日常/过渡章必须为主线服务(埋伏笔、推关系、建反差),禁止纯填充`;
 
     const bookRulesPrompt = resolvedLanguage === "en"
       ? `Generate book_rules.md as YAML frontmatter plus narrative guidance:

+ 6 - 0
packages/core/src/agents/reviser.ts

@@ -403,6 +403,9 @@ Revision principles:
 2. Hook status must stay in sync with the hooks board. If hook debt briefs are provided, preserve hook payoff scenes
 3. Do not alter the plot direction or core conflicts
 4. Preserve the original language style, rhythm, and pacing — do not compress transitional scenes or remove breathing room
+5. Emotion through action (never "he felt angry" — show it). Values through behavior, not slogans
+6. Different characters speak differently. No "everyone gasped in unison"
+7. Escalate: bad things stack, each worse than the last
 
 Output format:
 
@@ -443,6 +446,9 @@ REVISED_CONTENT——处理全章级问题(字数压缩、结构重组、节
 2. 伏笔状态必须与伏笔池同步。如果提供了 Hook Debt 简报,必须保留伏笔兑现段落
 3. 不改变剧情走向和核心冲突
 4. 保持原文的语言风格、节奏和呼吸——不要压缩过渡段、不要删掉减速段
+5. 情绪用动作外化(不写"他感到愤怒",写动作)。价值观通过行为传达
+6. 不同角色说话方式必须不同。禁止"众人齐声惊呼"
+7. 坏事叠坏事,每层比上一层过分
 
 输出格式: