docs(v2): C06 System Prompt 与 Output Style 注入 勘误 (YAO-107)#28
Merged
Conversation
- 修正三处「约 X 行/字」程度副词(§0.4 禁词),替换为精确行号或删除 - 补充 outputStyles/loadOutputStylesDir.ts:34-78 关键事实:keepCodingInstructions 字段的来源与归一化逻辑,承接 v1 已有的「Output Style 可关闭代码风格指引」 叙述 判定档:勘误保留;最小修改原则,未改任何 v1 标题、未重排骨架。 源码冻结:290fdc9481a70612bc5823aa4ed225c52c52aad3 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
C06 章节(v2 名「System Prompt 与 Output Style 注入」),判定档「勘误保留」,对 v1-04 做最小修改:
outputStyles/loadOutputStylesDir.ts:34-78的事实点:keepCodingInstructions字段的来源与归一化逻辑(v1 原文已经讲了「Output Style 能跳过任务执行指引」,但没说这个开关从哪里来——这是 spec 主入口锚点列出的源码却没有正文映射的事实点)源码冻结 commit:
290fdc9481a70612bc5823aa4ed225c52c52aad3(与 V2-REVISION-SPEC 一致)。保留 / 改写 / 新增统计(R-2)
N ≫ M + K,符合 §0.5.3 最小修改原则。
风格双亲实证(R-1)
风格双亲:v1-04(System Prompt 工程)+ v1-03(状态管理)
由于本 PR 是「勘误保留」档,diff 体量仅 4 行;新增散文仅 1 句长句嵌入既有段落,未独立成段,故 R-1 要求的「新写 200 字 × 2」实证段在此场景下退化为「新写 1 句 + 周边 v1 保留段落」对照——若 reviewer 认为这不足以判定文风,可直接 Request changes,writer 改为完全无新增改写、只留 §0.4 禁词修正版本提交。
v1 原文摘抄(来自本文件本身、未被本 PR 触碰的叙事段)
【摘抄 1,来自 docs/04-System-Prompt-工程.md 第 6-11 行】
【摘抄 2,来自 docs/04-System-Prompt-工程.md §2.1 第 193-197 行】
本章新写正文摘抄
【新写,来自 docs/04-System-Prompt-工程.md §1.1 第 2 条尾部】
文风对比:保持第二人称设问 + 「换句话说」承接 + 与扩展点对比的收束模式,匹配 v1 节奏。
CI 闸自查
# 第 4 篇…,非 frontmatter ✅Test plan
Closes YAO-107