docs(v2): C09 Thinking、Effort 与 Advisor 勘误 + PromptSuggestion 番外 (YAO-110)#31
Merged
Conversation
…-110) 判定档「勘误保留」。v1-08 主干(七大节 + 全景 + 设计模式)一字未动, 仅在「八、全景」与「九、可迁移的设计模式」之间插入一节番外, 补完 services/PromptSuggestion/promptSuggestion.ts 这一与本章三件套 (Thinking / Effort / Advisor)相邻、但 v1 未覆盖的子系统。 新写的角度落在「PromptSuggestion 为什么必须 fork 同参数 agent」—— 这是把 §二(thinkingClearLatched)和第 7 篇 Prompt Cache 前缀稳定 原则收束到一个具体功能上的最佳例证,也是 v2-spec §5/§6.2 要求 C09 整合 advisor + PromptSuggestion 的落点。 源码冻结 commit:290fdc9481a70612bc5823aa4ed225c52c52aad3 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
- SUGGESTION_PROMPT is appended as a user message (promptSuggestion.ts:319-321), not system-level prompt. - filters array in shouldFilterSuggestion has 12 entries (promptSuggestion.ts:367-446), not 11. Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
C09 章节(v2 名「Thinking、Effort 与 Advisor」),判定档「勘误保留」,对 v1-08 做最小修改:
补完 v2-spec §5/§6.2 锚点表里列出但 v1 没有正文映射的
services/PromptSuggestion/promptSuggestion.ts。新写角度:PromptSuggestion 为什么必须 fork 同参数 agent。它把 §二
(
thinkingClearLatched)与第 7 篇 Prompt Cache 「前缀稳定」原则收束到一个具体功能上,并通过 PR #18143 的复盘事实(effort 强降到 low 导致
cache write 45x 飙升、主对话命中率从 92.7% 跌到 61%)锁死结论。这也是
v2-spec 要求 C09 整合 advisor + PromptSuggestion 的落点。
源码冻结 commit:
290fdc9481a70612bc5823aa4ed225c52c52aad3。保留 / 改写 / 新增统计(R-2)
N ≫ M + K,符合 §0.5.3 最小修改原则。新增节明确标注「番外」,
不进入主目录层级感知,且未挤占 v1 节序号。
风格双亲实证(R-1)
风格双亲:v1-05(对话循环)+ v1-07(Prompt Cache)
挑这两章是因为番外节的核心是把"fork agent"与"cache 前缀稳定"两个机制
合龙——这正是这两章的当家叙事节奏。
v1 原文摘抄(来自本文件未被本 PR 触碰的叙事段)
【摘抄 1,来自 docs/08-Thinking-与推理控制.md §2.4 第 277-301 行附近】
【摘抄 2,来自 docs/08-Thinking-与推理控制.md §三 Effort 优先级链节】
本章新写正文摘抄
【新写 1,来自番外引子 + 番外.2「为什么 PromptSuggestion 必须用 fork 的同参数 agent」,对齐 head 正文
promptSuggestion.ts:319-321】【新写 2,来自番外.4「12 道过滤闸——别把模型的话冒充成用户的话」,对齐 head 正文
promptSuggestion.ts:367-446的 12 项 filters】文风对比:保持设问 + "为什么这么绕?" / "整个文件最值得划重点的是…"
这种 v1-05/v1-07 标志性的二阶设问节奏,匹配双亲文风。
CI 闸自查
# 第 8 篇…,非 frontmatter ✅Test plan
Closes YAO-110