universal-dev-standards 6.8.0 → 6.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/bin/uds.js +12 -2
  2. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +14 -2
  3. package/bundled/ai/standards/adr-standards.ai.yaml +14 -2
  4. package/bundled/ai/standards/code-review.ai.yaml +13 -3
  5. package/bundled/ai/standards/commit-message.ai.yaml +8 -4
  6. package/bundled/ai/standards/deferred-item-exit.ai.yaml +225 -0
  7. package/bundled/ai/standards/feature-discovery-standards.ai.yaml +14 -2
  8. package/bundled/ai/standards/governance-layer.ai.yaml +128 -2
  9. package/bundled/ai/standards/logging.ai.yaml +2 -2
  10. package/bundled/ai/standards/retrospective-standards.ai.yaml +14 -2
  11. package/bundled/ai/standards/reverse-engineering-standards.ai.yaml +73 -2
  12. package/bundled/ai/standards/security-standards.ai.yaml +2 -2
  13. package/bundled/ai/standards/spec-driven-development.ai.yaml +14 -2
  14. package/bundled/ai/standards/tech-debt-standards.ai.yaml +87 -3
  15. package/bundled/ai/standards/turn-completion-integrity.ai.yaml +131 -0
  16. package/bundled/core/acceptance-criteria-traceability.md +5 -2
  17. package/bundled/core/adr-standards.md +26 -2
  18. package/bundled/core/agent-communication-protocol.md +8 -0
  19. package/bundled/core/branch-completion.md +8 -0
  20. package/bundled/core/change-batching-standards.md +8 -0
  21. package/bundled/core/code-review-checklist.md +5 -2
  22. package/bundled/core/context-aware-loading.md +1 -1
  23. package/bundled/core/deferred-item-exit.md +254 -0
  24. package/bundled/core/execution-history.md +8 -0
  25. package/bundled/core/feature-discovery-standards.md +5 -1
  26. package/bundled/core/governance-layer.md +114 -2
  27. package/bundled/core/pipeline-integration-standards.md +8 -0
  28. package/bundled/core/retrospective-standards.md +4 -2
  29. package/bundled/core/reverse-engineering-standards.md +81 -2
  30. package/bundled/core/spec-driven-development.md +8 -2
  31. package/bundled/core/tech-debt-standards.md +67 -8
  32. package/bundled/core/turn-completion-integrity.md +196 -0
  33. package/bundled/core/workflow-enforcement.md +8 -0
  34. package/bundled/core/workflow-state-protocol.md +8 -0
  35. package/bundled/hooks/check-dangerous-cmd.mjs +60 -0
  36. package/bundled/hooks/check-logging-standard.mjs +59 -0
  37. package/bundled/hooks/check-turn-completion.mjs +233 -0
  38. package/bundled/hooks/inject-standards.mjs +183 -0
  39. package/bundled/hooks/telemetry-wrapper.mjs +77 -0
  40. package/bundled/hooks/turn-completion/detect.mjs +99 -0
  41. package/bundled/hooks/turn-completion/locales/en.mjs +159 -0
  42. package/bundled/hooks/turn-completion/locales/zh-TW.mjs +166 -0
  43. package/bundled/hooks/validate-commit-msg.mjs +104 -0
  44. package/bundled/locales/zh-CN/CHANGELOG.md +73 -3
  45. package/bundled/locales/zh-CN/CLAUDE.md +1 -1
  46. package/bundled/locales/zh-CN/README.md +2 -2
  47. package/bundled/locales/zh-CN/SECURITY.md +1 -1
  48. package/bundled/locales/zh-CN/core/adr-standards.md +1 -1
  49. package/bundled/locales/zh-CN/core/agent-communication-protocol.md +7 -0
  50. package/bundled/locales/zh-CN/core/branch-completion.md +7 -0
  51. package/bundled/locales/zh-CN/core/change-batching-standards.md +7 -0
  52. package/bundled/locales/zh-CN/core/execution-history.md +7 -0
  53. package/bundled/locales/zh-CN/core/governance-layer.md +118 -6
  54. package/bundled/locales/zh-CN/core/pipeline-integration-standards.md +7 -0
  55. package/bundled/locales/zh-CN/core/retrospective-standards.md +1 -1
  56. package/bundled/locales/zh-CN/core/tech-debt-standards.md +71 -4
  57. package/bundled/locales/zh-CN/core/turn-completion-integrity.md +190 -0
  58. package/bundled/locales/zh-CN/core/workflow-enforcement.md +7 -0
  59. package/bundled/locales/zh-CN/core/workflow-state-protocol.md +7 -0
  60. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +8 -1
  61. package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +29 -68
  62. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +25 -15
  63. package/bundled/locales/zh-CN/docs/MIGRATION-v6.md +8 -4
  64. package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +1 -2
  65. package/bundled/locales/zh-CN/integrations/google-antigravity/{INSTRUCTIONS.md → AGENTS.md} +1 -1
  66. package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +3 -3
  67. package/bundled/locales/zh-CN/skills/atdd-assistant/SKILL.md +2 -0
  68. package/bundled/locales/zh-CN/skills/bdd-assistant/SKILL.md +2 -0
  69. package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +22 -12
  70. package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +12 -9
  71. package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +1 -0
  72. package/bundled/locales/zh-CN/skills/commands/brainstorm.md +17 -13
  73. package/bundled/locales/zh-CN/skills/commands/config.md +0 -1
  74. package/bundled/locales/zh-CN/skills/commands/init.md +1 -2
  75. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +2 -0
  76. package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +1 -0
  77. package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +2 -0
  78. package/bundled/locales/zh-CN/skills/observability-assistant/SKILL.md +1 -0
  79. package/bundled/locales/zh-CN/skills/project-structure-guide/SKILL.md +1 -0
  80. package/bundled/locales/zh-CN/skills/release-standards/SKILL.md +3 -0
  81. package/bundled/locales/zh-CN/skills/requirement-assistant/SKILL.md +2 -0
  82. package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +3 -0
  83. package/bundled/locales/zh-CN/skills/runbook-assistant/SKILL.md +1 -0
  84. package/bundled/locales/zh-CN/skills/slo-assistant/SKILL.md +1 -0
  85. package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +2 -0
  86. package/bundled/locales/zh-TW/CHANGELOG.md +74 -3
  87. package/bundled/locales/zh-TW/CLAUDE.md +1 -1
  88. package/bundled/locales/zh-TW/README.md +2 -2
  89. package/bundled/locales/zh-TW/SECURITY.md +1 -1
  90. package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +2 -0
  91. package/bundled/locales/zh-TW/core/adr-standards.md +26 -5
  92. package/bundled/locales/zh-TW/core/agent-communication-protocol.md +7 -0
  93. package/bundled/locales/zh-TW/core/branch-completion.md +7 -0
  94. package/bundled/locales/zh-TW/core/change-batching-standards.md +7 -0
  95. package/bundled/locales/zh-TW/core/code-review-checklist.md +2 -0
  96. package/bundled/locales/zh-TW/core/container-image-standards.md +2 -2
  97. package/bundled/locales/zh-TW/core/contract-testing-standards.md +2 -2
  98. package/bundled/locales/zh-TW/core/cross-flow-regression.md +8 -7
  99. package/bundled/locales/zh-TW/core/data-contract.md +2 -2
  100. package/bundled/locales/zh-TW/core/data-migration-testing.md +2 -2
  101. package/bundled/locales/zh-TW/core/data-pipeline.md +2 -2
  102. package/bundled/locales/zh-TW/core/deferred-item-exit.md +251 -0
  103. package/bundled/locales/zh-TW/core/documentation-writing-standards.md +228 -3
  104. package/bundled/locales/zh-TW/core/execution-history.md +7 -0
  105. package/bundled/locales/zh-TW/core/full-coverage-testing.md +15 -2
  106. package/bundled/locales/zh-TW/core/governance-layer.md +118 -5
  107. package/bundled/locales/zh-TW/core/iac-design-principles.md +2 -2
  108. package/bundled/locales/zh-TW/core/incident-response.md +2 -2
  109. package/bundled/locales/zh-TW/core/model-provenance.md +4 -2
  110. package/bundled/locales/zh-TW/core/pii-classification.md +42 -6
  111. package/bundled/locales/zh-TW/core/pipeline-integration-standards.md +7 -0
  112. package/bundled/locales/zh-TW/core/prd-standards.md +4 -2
  113. package/bundled/locales/zh-TW/core/product-metrics-standards.md +4 -2
  114. package/bundled/locales/zh-TW/core/release-readiness-gate.md +2 -2
  115. package/bundled/locales/zh-TW/core/resource-cost-boundary.md +2 -2
  116. package/bundled/locales/zh-TW/core/retrospective-standards.md +5 -3
  117. package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +83 -5
  118. package/bundled/locales/zh-TW/core/runbook.md +2 -2
  119. package/bundled/locales/zh-TW/core/schema-evolution.md +2 -2
  120. package/bundled/locales/zh-TW/core/secret-management-standards.md +2 -2
  121. package/bundled/locales/zh-TW/core/slo-sli.md +2 -2
  122. package/bundled/locales/zh-TW/core/spec-driven-development.md +2 -0
  123. package/bundled/locales/zh-TW/core/tech-debt-standards.md +71 -4
  124. package/bundled/locales/zh-TW/core/turn-completion-integrity.md +190 -0
  125. package/bundled/locales/zh-TW/core/user-journey-testing.md +2 -2
  126. package/bundled/locales/zh-TW/core/user-story-mapping.md +2 -2
  127. package/bundled/locales/zh-TW/core/verification-oracle.md +2 -2
  128. package/bundled/locales/zh-TW/core/workflow-enforcement.md +7 -0
  129. package/bundled/locales/zh-TW/core/workflow-state-protocol.md +7 -0
  130. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +8 -1
  131. package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +29 -68
  132. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +25 -15
  133. package/bundled/locales/zh-TW/docs/MIGRATION-v6.md +8 -4
  134. package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +1 -2
  135. package/bundled/locales/zh-TW/integrations/google-antigravity/{INSTRUCTIONS.md → AGENTS.md} +1 -1
  136. package/bundled/locales/zh-TW/integrations/google-antigravity/README.md +3 -3
  137. package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +1 -1
  138. package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +2 -0
  139. package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +2 -0
  140. package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +22 -12
  141. package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +12 -9
  142. package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -0
  143. package/bundled/locales/zh-TW/skills/commands/brainstorm.md +17 -13
  144. package/bundled/locales/zh-TW/skills/commands/config.md +0 -1
  145. package/bundled/locales/zh-TW/skills/commands/init.md +1 -2
  146. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +2 -0
  147. package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +2 -1
  148. package/bundled/locales/zh-TW/skills/dev-methodology/SKILL.md +2 -0
  149. package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +1 -1
  150. package/bundled/locales/zh-TW/skills/knowledge-graph/guide.md +2 -2
  151. package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +1 -1
  152. package/bundled/locales/zh-TW/skills/observability-assistant/SKILL.md +1 -0
  153. package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +1 -0
  154. package/bundled/locales/zh-TW/skills/project-structure-guide/SKILL.md +1 -0
  155. package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +3 -0
  156. package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +2 -0
  157. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +3 -0
  158. package/bundled/locales/zh-TW/skills/runbook-assistant/SKILL.md +1 -0
  159. package/bundled/locales/zh-TW/skills/slo-assistant/SKILL.md +1 -0
  160. package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +2 -0
  161. package/bundled/skills/atdd-assistant/SKILL.md +2 -0
  162. package/bundled/skills/bdd-assistant/SKILL.md +2 -0
  163. package/bundled/skills/brainstorm-assistant/SKILL.md +31 -13
  164. package/bundled/skills/brainstorm-assistant/guide.md +9 -6
  165. package/bundled/skills/code-review-assistant/SKILL.md +1 -0
  166. package/bundled/skills/commands/brainstorm.md +12 -9
  167. package/bundled/skills/commands/config.md +0 -1
  168. package/bundled/skills/commands/init.md +2 -3
  169. package/bundled/skills/commit-standards/SKILL.md +2 -0
  170. package/bundled/skills/contract-test-assistant/SKILL.md +1 -0
  171. package/bundled/skills/dev-methodology/SKILL.md +4 -0
  172. package/bundled/skills/observability-assistant/SKILL.md +1 -0
  173. package/bundled/skills/project-discovery/SKILL.md +1 -0
  174. package/bundled/skills/project-structure-guide/SKILL.md +1 -0
  175. package/bundled/skills/release-standards/SKILL.md +3 -0
  176. package/bundled/skills/requirement-assistant/SKILL.md +2 -0
  177. package/bundled/skills/reverse-engineer/SKILL.md +3 -0
  178. package/bundled/skills/runbook-assistant/SKILL.md +1 -0
  179. package/bundled/skills/slo-assistant/SKILL.md +1 -0
  180. package/bundled/skills/tdd-assistant/SKILL.md +2 -0
  181. package/bundled/templates/.ai-context.yaml.template +194 -0
  182. package/bundled/templates/CLAUDE.md.template +145 -0
  183. package/bundled/templates/DESIGN.md +237 -0
  184. package/bundled/templates/SKILL-BRIEF-TEMPLATE.md +57 -0
  185. package/bundled/templates/SKILL-CANDIDATES.md +39 -0
  186. package/bundled/templates/gates/check-error-exit.mjs +309 -0
  187. package/bundled/templates/mcp-config.json +10 -0
  188. package/bundled/templates/methodology-template.yaml +209 -0
  189. package/bundled/templates/migration-template.md +408 -0
  190. package/bundled/templates/requirement-checklist.md +410 -0
  191. package/bundled/templates/requirement-document-template.md +591 -0
  192. package/bundled/templates/requirement-template.md +881 -0
  193. package/bundled/templates/reverse-spec-template.md +409 -0
  194. package/bundled/templates/test-case-template.md +74 -0
  195. package/bundled/templates/test-plan-template.md +74 -0
  196. package/package.json +12 -9
  197. package/src/commands/audit.js +82 -0
  198. package/src/commands/check.js +227 -34
  199. package/src/commands/config.js +19 -19
  200. package/src/commands/init.js +174 -20
  201. package/src/commands/spec.js +2 -2
  202. package/src/commands/update.js +537 -43
  203. package/src/compilers/claude-code-compiler.js +4 -1
  204. package/src/config/ai-agent-paths.js +62 -17
  205. package/src/core/constants.js +42 -11
  206. package/src/core/manifest.js +201 -3
  207. package/src/core/paths.js +2 -2
  208. package/src/i18n/messages.js +42 -29
  209. package/src/installers/hooks-installer.js +167 -75
  210. package/src/installers/integration-installer.js +13 -9
  211. package/src/installers/skills-installer.js +4 -4
  212. package/src/installers/standards-installer.js +3 -3
  213. package/src/prompts/init.js +47 -18
  214. package/src/reconciler/diff-engine.js +57 -2
  215. package/src/reconciler/plan-executor.js +31 -11
  216. package/src/utils/detector.js +21 -1
  217. package/src/utils/effect-boundary.js +1093 -0
  218. package/src/utils/hasher.js +166 -1
  219. package/src/utils/hook-stats.js +1 -1
  220. package/src/utils/integration-generator.js +288 -82
  221. package/src/utils/reference-sync.js +107 -8
  222. package/src/utils/registry.js +57 -0
  223. package/src/utils/spinner.js +31 -0
  224. package/src/utils/yaml-generator.js +51 -9
  225. package/standards-registry.json +32 -9
@@ -45,7 +45,7 @@ status: current
45
45
  ◯ Windsurf (.windsurfrules)
46
46
  ◯ Cline (.clinerules)
47
47
  ◯ GitHub Copilot (.github/copilot-instructions.md)
48
- ◯ Google Antigravity (INSTRUCTIONS.md) - Gemini Agent
48
+ ◯ Google Antigravity (.agents/AGENTS.md) - Gemini Agent
49
49
  ── AGENTS.md Tools ──
50
50
  ◯ OpenAI Codex (AGENTS.md) - OpenAI Codex CLI
51
51
  ◯ OpenCode (AGENTS.md) - Open-source AI coding agent
@@ -68,7 +68,7 @@ status: current
68
68
  | **Windsurf** | `.windsurfrules` | Plaintext | Windsurf IDE 规则文件 |
69
69
  | **Cline** | `.clinerules` | Plaintext | Cline 扩展规则文件 |
70
70
  | **GitHub Copilot** | `.github/copilot-instructions.md` | Markdown | Copilot 自定义指示 |
71
- | **Google Antigravity** | `INSTRUCTIONS.md` | Markdown | Gemini Agent 系统指令 |
71
+ | **Google Antigravity** | `.agents/AGENTS.md` | Markdown | Gemini Agent 系统指令 |
72
72
  | **OpenAI Codex** | `AGENTS.md` | Markdown | OpenAI Codex CLI |
73
73
  | **OpenCode** | `AGENTS.md` | Markdown | 开源 AI 编码 Agent(与 Codex 共用文件) |
74
74
  | **Gemini CLI** | `GEMINI.md` | Markdown | Google Gemini CLI |
@@ -626,21 +626,26 @@ uds init
626
626
  ```
627
627
  ? Select content level:
628
628
  ❯ Standard (推荐) - Summary + links to full docs
629
- Full Embed - All rules in one file (larger)
630
629
  Minimal - Core rules only (smallest)
631
630
  ```
632
631
 
633
632
  ### 说明
634
633
 
635
- 决定 AI 工具集成文件中嵌入多少标准内容。这是影响 AI 合规程度的关键设置。
634
+ 决定 AI 工具集成文件中嵌入多少标准内容。
635
+
636
+ > **第三个模式 `full`(Full Embed)已于 UDS 6.9.0 移除。**
637
+ > 它从来没有产生过与 `index` 不同的文件——生成器只在 `minimal` 上分支,
638
+ > 因此两者在实测的 24 组(工具 × 语言)组合中输出逐位相同。
639
+ > `--content-mode full` 仍然接受,并解析为 `index`;manifest 中记录的 `full`
640
+ > 会在下一次执行时改写为 `index`。**任何项目拿到的文件都不会改变**,
641
+ > 因为两个模式本来就产生相同的字节。详见 XSPEC-357 R7。
636
642
 
637
643
  ### 选项
638
644
 
639
- | 模式 | 文件大小 | AI 可见性 | 适用情境 |
640
- |------|----------|-----------|----------|
641
- | **Standard** (推荐) | 中等 | 高 | 大多数项目 |
642
- | **Full Embed** | 最大 | 最高 | 企业级合规 |
643
- | **Minimal** | 最小 | 低 | 旧项目迁移 |
645
+ | 模式 | 内容 | 适用情境 |
646
+ |------|------|----------|
647
+ | **Standard**(`index`,推荐) | 标准索引 + MUST/SHOULD 任务对照表 | 大多数项目 |
648
+ | **Minimal**(`minimal`) | 仅文件引用 | 由 Skills 提供任务指引的项目 |
644
649
 
645
650
  ### 详细说明
646
651
 
@@ -714,47 +719,17 @@ uds init
714
719
  - ✅ 希望 AI 遵守规范但不想文件太大
715
720
  - ✅ AI 工具会读取项目文件
716
721
 
717
- #### Full Embed 模式
718
-
719
- **生成内容**:完整嵌入所有规则
720
-
721
- ```markdown
722
- ## Anti-Hallucination Protocol
723
- Reference: .standards/anti-hallucination.md
724
-
725
- ### Core Principle
726
- You are an AI assistant that prioritizes accuracy over confidence...
727
-
728
- ### Evidence-Based Analysis
729
- 1. **File Reading Requirement**
730
- - You MUST read files before analyzing them
731
- - Do not guess APIs, class names, or library versions
732
- ...
733
-
734
- ---
735
-
736
- ## Commit Message Standards
737
- Reference: .standards/commit-message.ai.yaml
722
+ #### Full Embed 模式(已移除)
738
723
 
739
- ### Format Structure
740
- <type>(<scope>): <subject>
741
-
742
- ### Commit Types
743
- | Type | Description | Example |
744
- | feat | New feature | feat(auth): add OAuth2 login |
745
- ...
746
- ```
724
+ 这一节原本描述一个把完整规则正文嵌入集成文件的模式,声称能「**保证**」AI
725
+ 看到所有标准,并产生「比 Index 大 3-5 倍」的文件。
747
726
 
748
- **特点**:
749
- - 所有核心规则直接嵌入
750
- - AI **保证**看到所有标准
751
- - 文件大小可能是 Index 的 3-5 倍
727
+ **这些从来都没有被实现。** `full` 与 `index` 走同一条代码路径、写出相同的字节。
728
+ 它也不可能按描述运作:`.standards/` 约 248k token,远超过任何集成文件装得下的量。
729
+ 该模式已于 UDS 6.9.0 移除(XSPEC-357 R7),现在解析为 `index`。
752
730
 
753
- **适用情境**:
754
- - ✅ 企业级合规要求
755
- - ✅ AI 可能不读取外部文件
756
- - ✅ 不能容许 AI 遗漏任何规则
757
- - ✅ 新团队导入,确保完全了解规范
731
+ 若你当初是为了合规理由选择它,你拿到的一直都是 `index` 的输出,
732
+ 因此产生的文件不会有任何改变。
758
733
 
759
734
  ### 决策流程
760
735
 
@@ -763,19 +738,8 @@ Reference: .standards/commit-message.ai.yaml
763
738
  │
764
739
  ▼
765
740
  ┌─────────────────────────────┐
766
- │ AI 是否会主动读取项目文件? │
767
- └─────────────────────────────┘
768
- │
769
- ┌───┴───┐
770
- │ │
771
- 是 否
772
- │ │
773
- ▼ ▼
774
- Index Full
775
- │
776
- ▼
777
- ┌─────────────────────────────┐
778
- │ 是否有严格合规要求? │
741
+ │ 是否已安装 Skills 并由它 │
742
+ │ 提供任务指引? │
779
743
  └─────────────────────────────┘
780
744
  │
781
745
  ┌───┴───┐
@@ -783,10 +747,7 @@ Index Full
783
747
  是 否
784
748
  │ │
785
749
  ▼ ▼
786
- Full Index
787
-
788
-
789
- 旧项目迁移 / 想要最小改动? → Minimal
750
+ Minimal Index
790
751
  ```
791
752
 
792
753
  ### 使用案例
@@ -794,11 +755,11 @@ Index Full
794
755
  | 案例 | 推荐模式 | 理由 |
795
756
  |------|----------|------|
796
757
  | 创业团队的 SaaS 项目 | **Index** | 平衡效率与规范 |
797
- | 银行核心系统 | **Full** | 法规要求,不能遗漏 |
758
+ | 银行核心系统 | **Index** | 索引会列出每一条适用标准与适用时机 |
798
759
  | 个人 side project | **Minimal** | 轻量就好 |
799
760
  | 开源项目 | **Index** | 让贡献者 AI 知道规范 |
800
761
  | 从旧设置迁移 | **Minimal** | 保留现有设置 |
801
- | 新导入 AI 的传统企业 | **Full** | 确保 AI 完全遵循 |
762
+ | 新导入 AI 的传统企业 | **Index** | 与已移除的 `full` 模式产出相同 |
802
763
 
803
764
  ---
804
765
 
@@ -895,8 +856,8 @@ uds init -y \
895
856
  --test-levels unit,integration \
896
857
  --content-mode index
897
858
 
898
- # 企业级完整设置
899
- uds init -y --content-mode full
859
+ # 最小化集成文件(由 Skills 提供任务指引)
860
+ uds init -y --content-mode minimal
900
861
 
901
862
  # 生成 AGENTS.md 通用摘要(--yes 模式默认生成)
902
863
  uds init -y --agents-md
@@ -1,7 +1,7 @@
1
1
  # UDS 功能参考手册
2
2
 
3
3
  > Universal Development Standards - 完整功能文档
4
- > Auto-generated | Last updated: 2026-08-19
4
+ > Auto-generated | Last updated: 2026-09-14
5
5
 
6
6
  **Language**: [English](../../../docs/reference/FEATURE-REFERENCE.md) | [繁體中文](../../zh-TW/docs/FEATURE-REFERENCE.md) | 简体中文
7
7
 
@@ -14,10 +14,10 @@
14
14
  3. [技能](#skills) (55)
15
15
  4. [代理](#agents) (5)
16
16
  5. [工作流程](#workflows) (5)
17
- 6. [核心规范](#core-standards) (150)
18
- 7. [脚本](#scripts) (54)
17
+ 6. [核心规范](#core-standards) (152)
18
+ 7. [脚本](#scripts) (59)
19
19
 
20
- **Total Features: 343**
20
+ **Total Features: 350**
21
21
 
22
22
  ---
23
23
 
@@ -49,10 +49,10 @@
49
49
  | `--framework` | Framework extension (fat-free) |
50
50
  | `--locale` | Locale extension (zh-tw) |
51
51
  | `--skills-location` | Skills location (marketplace, user, project, none) [default: marketplace] |
52
- | `--content-mode` | Content mode for integration files (minimal, index, full) [default: index] |
52
+ | `--content-mode` | Content mode for integration files (minimal, index) [default: index]; full is retired and resolves to index |
53
53
  | `--agents-md` | Generate AGENTS.md universal summary |
54
54
  | `--no-agents-md` | Skip AGENTS.md generation |
55
- | `--with-hooks` | Install enforcement hooks (commit-msg, security, logging) |
55
+ | `--with-hooks` | Install enforcement hooks declared by the installed standards |
56
56
  | `--content-layout` | Content layout (flat, layered) [default: flat] |
57
57
  | `-y, --yes` | Use defaults, skip interactive prompts |
58
58
  | `-E, --experimental` | Enable experimental features (methodology) |
@@ -153,6 +153,7 @@
153
153
  | `--plan` | Show reconciliation plan without executing (like terraform plan); combines with --skills/--commands to plan just that scope, still writing nothing |
154
154
  | `--apply` | Apply exactly the plan --plan prints (plain `uds update` does not); with --skills/--commands it does the reconciliation AND that scope, not only the scope |
155
155
  | `--force` | Force update all files, ignoring hash comparison |
156
+ | `--prune` | Delete .standards/ files UDS wrote but no longer ships (listed without this flag; never touches files UDS did not write) |
156
157
  | `--rollback` | Rollback to the most recent backup |
157
158
  | `--locale` | Override locale for skills install (zh-tw, zh-cn, en); also reads .uds/install.yaml + UDS_LOCALE env |
158
159
 
@@ -182,6 +183,8 @@
182
183
  | `--trend` | Show historical score trend (use with --score) |
183
184
  | `--ci` | CI mode: output score only, exit 1 if below threshold (use with --score) |
184
185
  | `--threshold` | Score threshold for CI mode (default: 75) |
186
+ | `--effects` | Static effect boundary gate: do the implementations of each declared effect interface reach anything outside this process |
187
+ | `--effects-config` | Path to the effect-family config (default: .uds/effect-boundary.json) |
185
188
 
186
189
  ### `uds deps`
187
190
 
@@ -425,10 +428,10 @@
425
428
 
426
429
  | Standard | 版本 | 说明 |
427
430
  |----------|---------|-------------|
428
- | `acceptance-criteria-traceability` | 1.1.0 | |
431
+ | `acceptance-criteria-traceability` | 1.2.0 | |
429
432
  | `acceptance-test-driven-development` | 1.1.0 | |
430
433
  | `accessibility-standards` | 1.1.0 | This standard defines comprehensive guidelines for creating accessible software |
431
- | `adr-standards` | 1.0.0 | Architecture Decision Records capture the context, options, and rationale behind |
434
+ | `adr-standards` | 1.1.0 | Architecture Decision Records capture the context, options, and rationale behind |
432
435
  | `adversarial-test` | - | |
433
436
  | `agent-behavior-discipline` | 1.0.0 | This standard defines four behavioral disciplines for AI agents that elevate per |
434
437
  | `agent-communication-protocol` | 1.0.0 | Define a unified communication protocol for AI agents across the AsiaOstrich pro |
@@ -456,7 +459,7 @@
456
459
  | `checkin-standards` | 1.8.0 | This standard defines quality gates that MUST be passed before committing code t |
457
460
  | `circuit-breaker` | - | |
458
461
  | `class-level-fix` | 1.1.0 | A defect is almost never alone. It is one member of a set — one flag in a dispat |
459
- | `code-review-checklist` | 1.4.0 | This standard provides a comprehensive checklist for reviewing code changes, ens |
462
+ | `code-review-checklist` | 1.5.0 | This standard provides a comprehensive checklist for reviewing code changes, ens |
460
463
  | `commit-message-guide` | 1.3.0 | Standardized commit messages improve code review efficiency, facilitate automate |
461
464
  | `container-image-standards` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
462
465
  | `container-security` | - | |
@@ -469,6 +472,7 @@
469
472
  | `data-migration-testing` | - | |
470
473
  | `data-pipeline` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
471
474
  | `database-standards` | 1.0.0 | This standard defines guidelines for database design, querying, migration, and o |
475
+ | `deferred-item-exit` | 1.0.0 | Several standards require documents that **produce deferred items** — an ADR's a |
472
476
  | `deployment-standards` | 1.1.0 | This standard defines guidelines for safely deploying software to production, co |
473
477
  | `deprecation-standards` | 1.1.0 | |
474
478
  | `design-document-standards` | 1.0.0 | |
@@ -483,7 +487,7 @@
483
487
  | `estimation-standards` | 1.0.0 | |
484
488
  | `execution-history` | 1.0.0 | |
485
489
  | `failure-source-taxonomy` | - | |
486
- | `feature-discovery-standards` | 1.0.0 | **Status**: Active | **Updated**: 2026-05-13 | |
490
+ | `feature-discovery-standards` | 1.1.0 | **Status**: Active | **Updated**: 2026-08-24 | |
487
491
  | `feature-flag-standards` | 1.0.0 | |
488
492
  | `feature-manifest-standard` | - | |
489
493
  | `flaky-test-management` | - | |
@@ -493,7 +497,7 @@
493
497
  | `full-coverage-testing` | - | |
494
498
  | `git-workflow` | 1.4.0 | This standard defines Git branching strategies and workflows to ensure consisten |
495
499
  | `git-worktree` | 1.1.0 | Define a lifecycle for using Git worktrees to isolate development work, ensuring |
496
- | `governance-layer` | 1.0.0 | A governance layer provides a shared anchor for all agents and roles in a projec |
500
+ | `governance-layer` | 1.1.0 | A governance layer provides a shared anchor for all agents and roles in a projec |
497
501
  | `health-check-standards` | - | |
498
502
  | `iac-design-principles` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
499
503
  | `immutability-first` | - | |
@@ -532,9 +536,9 @@
532
536
  | `replay-test` | - | |
533
537
  | `requirement-engineering` | 1.1.0 | |
534
538
  | `resource-cost-boundary` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
535
- | `retrospective-standards` | 1.0.0 | Retrospectives are structured team reflections that identify what worked well, w |
539
+ | `retrospective-standards` | 1.1.0 | Retrospectives are structured team reflections that identify what worked well, w |
536
540
  | `retry-standards` | - | |
537
- | `reverse-engineering-standards` | 1.2.0 | This standard defines the principles, workflows, and best practices for reverse |
541
+ | `reverse-engineering-standards` | 1.3.0 | This standard defines the principles, workflows, and best practices for reverse |
538
542
  | `rollback-standards` | - | |
539
543
  | `runbook-standards` | 1.0.0 | |
540
544
  | `runbook` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
@@ -551,14 +555,14 @@
551
555
  | `slo-sli` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
552
556
  | `slo-standards` | 1.0.0 | |
553
557
  | `smoke-test` | - | |
554
- | `spec-driven-development` | 2.4.0 | |
558
+ | `spec-driven-development` | 2.5.0 | |
555
559
  | `standard-admission-criteria` | - | |
556
560
  | `standard-lifecycle-management` | - | |
557
561
  | `structured-task-definition` | 1.0.0 | |
558
562
  | `supply-chain-attestation` | - | |
559
563
  | `supply-chain-security-standards` | 1.1.0 | |
560
564
  | `systematic-debugging` | 1.0.0 | Define a structured, four-phase debugging workflow that prevents the common anti |
561
- | `tech-debt-standards` | 1.0.0 | |
565
+ | `tech-debt-standards` | 1.1.0 | |
562
566
  | `test-completeness-dimensions` | 1.1.0 | This document defines a systematic framework for evaluating test completeness. I |
563
567
  | `test-data-standards` | 1.0.0 | |
564
568
  | `test-driven-development` | 1.2.0 | |
@@ -567,6 +571,7 @@
567
571
  | `timeout-standards` | - | |
568
572
  | `token-budget` | - | |
569
573
  | `translation-lifecycle-standards` | 1.0.1 | Translation lifecycle standards: MISSING vs OUTDATED distinction, semver-aware s |
574
+ | `turn-completion-integrity` | 1.3.0 | An agent writes *"I'll do X next"* and then ends the turn without doing X. |
570
575
  | `user-journey-testing` | - | |
571
576
  | `user-story-mapping` | 1.0.0 | **Status**: Active | **Updated**: 2026-06-17 | |
572
577
  | `verification-evidence` | 1.3.0 | Establish an "Iron Law" that no task can be claimed as complete without verifica |
@@ -590,6 +595,7 @@
590
595
  | `check-ai-agent-sync.ps1` | Check Ai Agent Sync |
591
596
  | `check-ai-agent-sync.sh` | AI Agent Sync Checker |
592
597
  | `check-ai-yaml-parses.mjs` | Every shipped .ai.yaml must parse, and must parse into what it says. |
598
+ | `check-bump-sync-roundtrip.mjs` | check-bump-sync-roundtrip — 測「跑完 bump 之後 check 必須通過」這個不變量。 |
593
599
  | `check-cli-docs-sync.ps1` | Check Cli Docs Sync |
594
600
  | `check-cli-docs-sync.sh` | CLI-to-Documentation Sync Checker |
595
601
  | `check-commands-sync.ps1` | Check Commands Sync |
@@ -599,6 +605,7 @@
599
605
  | `check-docs-integrity.sh` | Documentation Integrity Checker |
600
606
  | `check-docs-sync.ps1` | Check Docs Sync |
601
607
  | `check-docs-sync.sh` | Documentation Sync Checker |
608
+ | `check-error-exit.mjs` | 🔴 沒填就是沒設定,而沒設定會 exit 2, |
602
609
  | `check-external-references.mjs` | External Reference Checker (SPEC-SELFDIAG-001 REQ-5, AC-7) |
603
610
  | `check-orphan-specs.ps1` | Check Orphan Specs |
604
611
  | `check-orphan-specs.sh` | Orphan Spec Detection Script |
@@ -612,6 +619,7 @@
612
619
  | `check-standards-reference-sync.sh` | check-standards-reference-sync.sh |
613
620
  | `check-standards-sync.ps1` | Check Standards Sync |
614
621
  | `check-standards-sync.sh` | Standards Consistency Checker |
622
+ | `check-translation-hash-ratchet.sh` | XSPEC-392 R6 棘輪:新的翻譯必須帶 source_hash,既有的欠債冷凍為基線。 |
615
623
  | `check-translation-sync.ps1` | Check Translation Sync |
616
624
  | `check-translation-sync.sh` | Translation Sync Checker |
617
625
  | `check-usage-docs-sync.ps1` | Check if usage documentation needs to be regenerated |
@@ -623,7 +631,9 @@
623
631
  | `convert-md-to-yaml.mjs` | Markdown to AI-YAML Conversion Script |
624
632
  | `fix-manifest-paths.ps1` | Fix Manifest Paths |
625
633
  | `fix-manifest-paths.sh` | Manifest Path Fixer |
634
+ | `generate-adoption-skills.mjs` | Self-Adoption Skill Copy Generator and Drift Gate — XSPEC-385 |
626
635
  | `generate-docs.mjs` | Look up the release date for `version` from CHANGELOG.md's own |
636
+ | `generate-llms-txt.mjs` | llms.txt Generator and Drift Gate — XSPEC-385 |
627
637
  | `generate-locale-coverage.mjs` | Locale Coverage Generator |
628
638
  | `generate-version-manifest.mjs` | Generate Version Manifest (SPEC-SELFDIAG-001 REQ-9, AC-14) |
629
639
  | `install-hooks.mjs` | Install Hooks |
@@ -32,14 +32,13 @@ UDS 6.0.0 是 **major** 版本:包含一项 breaking 更名、移除 8 个已
32
32
 
33
33
  **不受影响**:指涉外部工具内建 review 命令(如 Codex)的 `/review` 字样与 UDS 无关,刻意保留原样。
34
34
 
35
- ## 2. 移除:8 个已弃用的机器可读标准(`.ai.yaml`)
35
+ ## 2. 移除:7 个已弃用的机器可读标准(`.ai.yaml`)
36
36
 
37
- 这 8 个标准的 runtime 已于 5.4.0 移交采用层(XSPEC-086/095;UDS 定义活动、采用层编排流程——DEC-049),其 `.ai.yaml` stub 如期移除:
37
+ 这些标准的 runtime 已于 5.4.0 移交采用层(XSPEC-086/095;UDS 定义活动、采用层编排流程——DEC-049),其 `.ai.yaml` stub 如期移除:
38
38
 
39
39
  | 移除的 `.ai.yaml` | 保留的人类可读文件 |
40
40
  |---|---|
41
41
  | `agent-communication-protocol` | `core/agent-communication-protocol.md` |
42
- | `agent-dispatch` | `core/agent-dispatch.md` |
43
42
  | `branch-completion` | `core/branch-completion.md` |
44
43
  | `change-batching-standards` | `core/change-batching-standards.md` |
45
44
  | `execution-history` | `core/execution-history.md` |
@@ -51,7 +50,12 @@ UDS 6.0.0 是 **major** 版本:包含一项 breaking 更名、移除 8 个已
51
50
 
52
51
  - 若从未直接载入这些 `.ai.yaml`:不需动作——人类可读概念仍留在 `core/` 作为参考文件。
53
52
  - 若采用层(agent runtime、orchestrator、CI)曾载入这些 stub:在自家工具链实作等效机制。这些 stub 自 5.4.0 起本身就是指向此方向的弃用告示。
54
- - 这些标准不再由 `uds init` / `uds update` 发布。专案 `.standards/` 中既有副本不会被自动删除——想要干净树的话请手动移除。
53
+ - 这些标准不再由 `uds init` / `uds update` 发布。每一份保留下来的 `core/*.md` 都在自己的开头写明这件事,而 `scripts/reference-only-standards.json` 是那份清单的机器可读版本。
54
+ - **`agent-dispatch` 曾在这张表上,现在不在了。** 它的 `.ai.yaml` 已于 XSPEC-362 R5a 恢复、正常发布,而本指南在那之后仍把它列为已移除,跨了两个大版本。**你的 manifest 里若还有它,那是对的。**
55
+ - 专案 `.standards/` 中既有副本不会被自动删除。请用 **`uds update --prune`**,不要手动删:
56
+ - `--prune` 会连同 `fileHashes` 里的记录一起移除。手动删只删掉文件,记录还在,`uds check` 会把每一个报成「遗失」并建议 `uds check --restore`——**而那个还原不可能成功**,因为上游已经没有来源了。
57
+ - **从 6.8.x 以前升上来之后的第一次 `uds update` 什么都不会删**,不论你加什么旗标:此时还没有文件归属记录,而 UDS 不会凭一笔不存在的记录删东西。先跑一次 `uds update`,再跑 `uds update --prune`。
58
+ - `--prune` 不会清 `integrationConfigs[<文件名>].installedStandards`。那份快照正是 `uds update --sync-refs` 重新生成时所依据的东西,所以残留在那里的项目仍可能把错的标准数写进你的 CLAUDE.md。`uds update --integrations-only` 则是从 manifest 重算。
55
59
 
56
60
  ## 3. 移除:4 个已弃用的 CLI 命令
57
61
 
@@ -58,7 +58,6 @@ status: current
58
58
 
59
59
  **配置方式**:
60
60
  - 安裝时选择 `standardsScope: full` + Skills 安裝
61
- - 或透過 `contentMode: full` 獲得完整规范
62
61
 
63
62
  **包含内容**:
64
63
  - 16 个 Claude Code Skills
@@ -212,7 +211,7 @@ uds init -y --skills-location marketplace --content-mode index
212
211
 
213
212
  **配置方式**:
214
213
  ```bash
215
- uds init -y --skills-location none --content-mode full
214
+ uds init -y --skills-location none --content-mode index
216
215
  ```
217
216
 
218
217
  ### 場景 4:学习 UDS 标准体系
@@ -1,5 +1,5 @@
1
1
  ---
2
- source: ../../../../integrations/google-antigravity/INSTRUCTIONS.md
2
+ source: ../../../../integrations/google-antigravity/AGENTS.md
3
3
  source_version: 1.0.0
4
4
  translation_version: 1.0.0
5
5
  last_synced: 2026-01-13
@@ -19,7 +19,7 @@ Google Antigravity 是一个先进的代理程序代码开发助理。此集成
19
19
  - **[.antigravity/rules.md](../../../../integrations/google-antigravity/.antigravity/rules.md)**(推荐):
20
20
  项目级规则文件,Antigravity 会自动加载。
21
21
 
22
- - **[INSTRUCTIONS.md](./INSTRUCTIONS.md)**:
22
+ - **[AGENTS.md](./AGENTS.md)**:
23
23
  用于手动配置的系统提示词片段。
24
24
 
25
25
  ## 规则配置
@@ -53,7 +53,7 @@ curl -o .antigravity/rules.md https://raw.githubusercontent.com/AsiaOstrich/univ
53
53
  确保 `core/` 规范已复制到您的项目(例如 `.standards/`)。
54
54
 
55
55
  2. **配置代理**:
56
- 将 `INSTRUCTIONS.md` 的内容复制到您的 Antigravity「用户规则」或特定任务指令中。
56
+ 将 `AGENTS.md` 的内容复制到您的 Antigravity「用户规则」或特定任务指令中。
57
57
 
58
58
  ### 验证合规性
59
59
 
@@ -65,7 +65,7 @@ curl -o .antigravity/rules.md https://raw.githubusercontent.com/AsiaOstrich/univ
65
65
 
66
66
  - [防幻觉规范](../../../../core/anti-hallucination.md)
67
67
  - [Commit 消息指南](../../../../core/commit-message-guide.md)
68
- - [INSTRUCTIONS.md](./INSTRUCTIONS.md)
68
+ - [AGENTS.md](./AGENTS.md)
69
69
 
70
70
  ---
71
71
 
@@ -77,5 +77,7 @@ So that [benefit].
77
77
 
78
78
  ## 参考
79
79
 
80
+ - [验收标准撰写指南](./acceptance-criteria-guide.md) — 要撰写或审查验收标准时读它。
81
+ - [ATDD 工作流程指南](./atdd-workflow.md) — 要完整跑一轮 ATDD 循环时读它。
80
82
  - 详细指南:[guide.md](./guide.md)
81
83
  - 核心规范:[acceptance-test-driven-development.md](../../../../core/acceptance-test-driven-development.md)
@@ -74,5 +74,7 @@ Feature: User Login
74
74
 
75
75
  ## 参考
76
76
 
77
+ - [BDD 工作流程指南](./bdd-workflow.md) — 要把探索、制定、自动化当一个循环跑时读它。
78
+ - [Gherkin 快速参考指南](./gherkin-guide.md) — 要写 Given/When/Then 而需要确切语法时读它。
77
79
  - 详细指南:[guide.md](./guide.md)
78
80
  - 核心规范:[behavior-driven-development.md](../../../../core/behavior-driven-development.md)
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: brainstorm-assistant
3
3
  source: ../../../../skills/brainstorm-assistant/SKILL.md
4
- source_version: 4.1.0
5
- source_hash: 711404f2c4af
6
- translation_version: 4.2.0
7
- last_synced: 2026-08-17
4
+ source_version: 4.2.0
5
+ source_hash: 02e63146c84e
6
+ translation_version: 4.3.0
7
+ last_synced: 2026-08-24
8
8
  status: current
9
9
  description: |
10
10
  [UDS] 在规格出现之前执行的结构化多角色头脑风暴,并附带评分质量关卡。
@@ -26,6 +26,10 @@ description: |
26
26
 
27
27
  **v4 的核心改动:** v3 提供了强健的*机制*,却没有可判定 pass/fail 的质量闸。v4 在其上叠加一道**时序化质量契约**——**头脑风暴质量标准(BQS v1)**——且不移除任何 v3 行为。BQS 是**四层 × 时间轴**结构:第 0 层宣告 explore/exploit 配比;第 1 层(过程、leading、发散期全程可见)跑维度 **D1–D4**;第 2 层(产物、leading、收敛后仅施于推荐集,即 Agg. Score ≥ 3.5、不限笔数的想法)跑 **D5–D8** 加 Seeds 栏与争议区;第 3 层是不受治理的 **Judgment Override**。第一原理:**决策用 leading 信号、校准用 lagging 信号——两者是时间前后,而非对错取舍。** 硬序列闸禁止 D5–D8 在发散期被揭示或评分。详见下方「BQS v1 — 质量契约」。
28
28
 
29
+ **v4.2 的核心改动(XSPEC-388):** D4 原本只钉住判官坐在哪里,一个字都没说它得想得动。一个独立 context 跑字面遵循型模型会逐字满足旧条文,然后照 D5–D8 逐条打勾放行——与一场真的有人反对过的评审在报告上无从分辨。v4.2 给 D4 加上**第二个轴**:评审还必须宣告其**模型层级**要求(见下方术语说明)。CONVERGE 的提示改为**目标+约束**形状——D5–D8 是判断必须满足的判准,不是按顺序执行的步骤;既有固定句型与逐准则分数指南保留为参考格式。发散侧引用 [core/model-selection.md](../../../../core/model-selection.md)(Standard 或更高)而不另立规则。不移除任何 v3 机制。
30
+
31
+ > **术语——「模型层级」,不用「tier」:** 在本 skill 内,`tier` 已被占用两次——BQS 分级表(套用哪些维度)与 Enhanced Tier。[core/model-selection.md](../../../../core/model-selection.md) 定义的模型能力轴(该标准称 *model tier*)在本 skill 一律写作**模型层级(model level)**。模型层级是该标准的**厂商中立标签**;本 skill 绝不指名具体厂商模型(见 D4)。
32
+
29
33
  ## 使用前先选模式
30
34
 
31
35
  使用前套用以下**客观触发条件**。默认为完整 v3,路由规则是跳过阶段的快捷方式,而非额外障碍。
@@ -68,7 +72,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
68
72
  | **D1 框架纯度** | 问题内嵌特定方案或「像 X 给 Y」→fail;须 5-Whys 到根因 |
69
73
  | **D2 发散覆盖** | 存活想法跨 <3 独立 persona/透镜→fail(受第 0 层权重调节);连一轮零新增才算饱和 |
70
74
  | **D3 跨会话多样性** | 种子是竞品类比→fail;Top 全来自单一 lens→fail |
71
- | **D4 评估去偏** | 须 ≥3 评审 + 硬角色 Devil's Advocate + Steelman;**pass 须在独立 context 执行**,否则标 `[degraded]` 不得标 pass |
75
+ | **D4 评估去偏** | 须 ≥3 评审 + 硬角色 Devil's Advocate + Steelman;**pass 须同时满足两轴**:(1) 独立 context,**且** (2) 以 [model-selection](../../../../core/model-selection.md) 的厂商中立标签宣告**模型层级**要求——指名具体厂商模型即违规。缺任一轴→标 `[degraded]` 不得标 pass |
72
76
 
73
77
  > **硬序列闸:** D5–D8 禁止在发散期揭示或评分;CONVERGE 的 critic 不得在**最后一个 persona** 产完前被调用。
74
78
 
@@ -92,7 +96,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
92
96
  ### 结构规则
93
97
 
94
98
  1. **Meta 停止规则:** 该层维度全绿 **且** 再跑一轮后 **推荐集成员不变**(看集合成员、不看内部排序)→停。**硬上限 2 轮**。取代模糊的「不翻决策」。
95
- 2. **判官≠产生者:** D2/D4/D5/D7 判定须独立视角;单 context 自评只能 `[degraded]`,不得 pass。
99
+ 2. **判官≠产生者:** D2/D4/D5/D7 判定须独立视角;单 context 自评只能 `[degraded]`,不得 pass。D4 另需宣告模型层级——独立性只是它两轴之一(见 D4)。
96
100
  3. **校准回路(吃 lagging):** v3 的三个工作阶段自评指标收编为此回路 **lagging** 端——**Adoption Rate=D6 滞后验证、Diversity=D2/D3 滞后观测、Cognitive Load=成本约束**;**禁两套平行评估**。
97
101
  4. **BQS 自我演化(轻量):** 版本化 + 证据清单 last-reviewed 逾期 flag;「定期对 BQS 自身 brainstorm」列可选。
98
102
  5. **最小充分原则:** 套用该 tier 所需的最少维度 + 把第 2 层限缩在推荐集(Agg. Score ≥ 3.5),而非全部发散想法——认知经济性的守门,不另设成本维度。
@@ -149,6 +153,8 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
149
153
 
150
154
  > **v3 核心机制:** **persona 集成**——每个 persona 以**思维链**在**隔离**状态下推理——再乘上**多样性透镜**。Meincke、Mollick、Terwiesch(2024)发现「思维链 + persona」的想法多样性高于所有受测的提示策略,接近人类团体。光冲数量是弱代理;结构性逼出不同视角才是真正的杠杆。
151
155
 
156
+ > **模型层级(发散侧):** 发散提示只给目标与约束——正是 core/model-selection.md 的 [MS-004](../../../../core/model-selection.md#rules)/[Criterion 2](../../../../core/model-selection.md#criterion-2--specification-definiteness規格明確度) 的触发条件:发散以 **Standard 或更高**层级执行。不是「最高层级」——那会同时超出 MS-004 所说的与我们的证据。lagging 登记:此选择由校准回路既有的 **Diversity(D2/D3 滞后观测)** 栏验证,不另开第二套登记。
157
+
152
158
  #### 步骤 2a —— persona 集成
153
159
 
154
160
  通过默认 persona 组生成想法。每个 persona **逐步推理(思维链)**,**只从自己的视角**产出 2–4 个想法。用户可用 `--personas` 增减或改名。
@@ -195,9 +201,11 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
195
201
 
196
202
  > **v3 核心机制:** **多评审面板**取代单一加权评分者。单一 LLM 是弱且有偏的评估者(Li 等,2025:LLM 强于生成 / 精炼、弱于评估——人类保留最终裁决权)。三个独立评审透镜各自对每个想法评分后聚合。
197
203
 
204
+ > **评审提示形状——目标+约束(v4.2):** 对面板、Devil's Advocate、Steelman 派工时——尤其派入独立 context(`--enhanced`)——提示**必须**以**目标+其判断必须满足的约束**表达,不得写成按顺序执行的步骤清单。D5–D8 与下方的具体性要求是**判准**(「你的判断必须满足这些」),不是**步骤**(「照这个顺序做这些事」)。既有固定句型、逐准则 1–5 指南与评审权重公式**保留为参考格式**,皆非必经步骤。理由:core/model-selection.md 的 [MS-009](../../../../core/model-selection.md#rules)。
205
+
198
206
  #### 步骤 3a:多评审面板
199
207
 
200
- 运行**三个独立评审**,各自以自己的透镜对每个想法打 1–5 分。取平均聚合以降低单评审偏误。每位评审皆套用下方的加权公式。
208
+ 运行**三个独立评审**,各自以自己的透镜对每个想法打 1–5 分。取平均聚合以降低单评审偏误。下方加权准则定义默认透镜——是参考格式,不是评审必须逐步照走的脚本。
201
209
 
202
210
  | 评审透镜 | 它负责的加权标准 |
203
211
  |----------|------------------|
@@ -205,7 +213,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
205
213
  | **用户影响** | 影响 70% · 一致性 30% |
206
214
  | **战略一致性** | 一致性 60% · 影响 40% |
207
215
 
208
- 各标准指引(1–5):可行性(5=轻而易举 … 1=几乎不可能);影响(5=变革性 … 1=可忽略);工作量(5=数小时 … 1=数个季度,反向计分,工作量越低分数越高);一致性(5=核心使命 … 1=偏离使命)。
216
+ 各标准指引(1–5,参考格式):可行性(5=轻而易举 … 1=几乎不可能);影响(5=变革性 … 1=可忽略);工作量(5=数小时 … 1=数个季度,反向计分,工作量越低分数越高);一致性(5=核心使命 … 1=偏离使命)。
209
217
 
210
218
  > **可选——RICE / ICE(产品功能):** 排序可发布功能时用 `RICE =(Reach × Impact × Confidence)/ Effort` 或较轻的 `ICE = Impact × Confidence × Ease`。Effort 交由工程师估、不要让 LLM 估(它没有代码库知识)。RICE 偏好渐进式胜利,别单独用于战略性押注。
211
219
 
@@ -213,7 +221,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
213
221
 
214
222
  软性的「请批评一下」指令只会得到附和(谄媚)。v3 指派**硬角色**:对**推荐集**(Agg. Score ≥ 3.5,不限笔数)中的每一个想法各跑一个 **Devil's Advocate**(「你的任务是论证此案会失败」)与一个 **Steelman**(「说出反方最强而善意的版本」)。两者一起对韧性做压力测试,而非只是戳一下。
215
223
 
216
- 每个反对理由必须采用以下形式:「在 [具体情境] 下,此想法会失败,因为 [具体原因]。」模糊顾虑(「这可能有点难」)不接受。
224
+ 约束:每个反对理由须指出**具体情境**与**具体原因**——模糊顾虑(「这可能有点难」)不接受。句型「在 [具体情境] 下,此想法会失败,因为 [具体原因]」是参考格式,不是必用句式。
217
225
 
218
226
  用户**必须**对每个反对理由给出回应才能继续:
219
227
 
@@ -225,16 +233,17 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
225
233
 
226
234
  **旗标:** `--no-rebuttal` 跳过此步骤;报告区段标注「Rebuttal: skipped」。
227
235
 
228
- > **BQS D4 — 判官≠产生者:** D4 唯有**评审/Devil's Advocate 在独立 context 执行**(`--enhanced` 隔离 agent 宿主)才可 pass。baseline 单 context 下,面板是同 context 自评,标 `[degraded]`、**不得标 pass**——诚实但非独立。不得把 baseline 跑当成 D4 pass 静默通过。
236
+ > **BQS D4 — 判官≠产生者,两轴:** D4 唯有**两轴同时成立**才可 pass。**(1) 座位——独立性**:评审/Devil's Advocate 在独立 context 执行(`--enhanced` 隔离 agent 宿主)。**(2) 心智——宣告模型层级**:评审宣告其**模型层级**要求,以 [core/model-selection.md](../../../../core/model-selection.md) 的厂商中立标签表达;选层依据为该标准的判准(引用,不复述)。指名具体厂商模型即违规——层级标签是唯一合法的表达方式。缺任一轴→面板标 `[degraded]`、**不得标 pass**:独立 context 跑字面遵循型模型会逐字满足座位轴,成为一枚完全合规的橡皮图章——认出「不同名字下的同一件事」是打勾做不到的判断工作。baseline 单 context 下,面板是同 context 自评,标 `[degraded]`、不得 pass——诚实但非独立。不得把 baseline 跑当成 D4 pass 静默通过。
229
237
 
230
238
  #### 步骤 3c:BQS 第 2 层——对推荐集的产物闸
231
239
 
232
- 收敛后,**仅对推荐集**(Agg. Score ≥ 3.5 的想法,不限笔数)套用 **D5–D8**(绝不对全部发散想法)。若无想法达 3.5,仍保留分数最高的 1 个,标记 `[未达门槛——仅供参考]`,避免报告空白。对推荐集中每个想法:
240
+ 收敛后,**仅对推荐集**(Agg. Score ≥ 3.5 的想法,不限笔数)套用 **D5–D8**(绝不对全部发散想法)。若无想法达 3.5,仍保留分数最高的 1 个,标记 `[未达门槛——仅供参考]`,避免报告空白。D5–D8 是**判断必须满足的判准**——不限顺序,不是程序。对推荐集中每个想法,判断必须满足:
233
241
 
234
242
  - **D5 接地:** 将每个主张分流为 `[现状/外部事实]`(需 file:line 或来源,否则 fail)vs `[未来/假说]`(免接地、标 `[假说]`)。**外部事实宣称为跨级地板**——creative 级也须接地。
235
243
  - **D6 净值:** 推荐集中每个想法须答「解谁问题/我们真有吗/不做的代价」;至少一个淘汰为「不值得做」;挂 **lagging 登记栏**(事后哪个信号验证)。
236
244
  - **D7 可证伪(二态):** 标 `[现可陈述证伪]` **或** `[需先做 X 才能定义证伪]`。后者**转 next-step 喂 D8——不算 fail**。
237
245
  - **D8 可行动:** 每个存活想法需 next-step 裁决(含明确「暂不做」);无 → fail。
246
+ - 裁决为「暂不做」者,以及 **Seeds(来自被淘汰的想法)** 中每个被搁置的想法,皆为 [deferred-item-exit](../../../../core/deferred-item-exit.md) 所指的延后项目。
238
247
 
239
248
  > **Meta 停止规则(BQS 结构规则 1):** 当套用的维度全绿 **且** 再跑一轮后 **推荐集成员不变**(看集合成员、非内部排序)→停。**硬上限 2 轮。**
240
249
 
@@ -289,7 +298,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
289
298
  - [ ] Proceed to `/sdd` if requirements are clear
290
299
  ```
291
300
 
292
- > **BQS 输出新增(v4):** **Seeds** 区(规则:被杀 ≥1 则非空)、**争议区**(高方差想法不按 mean 淘汰)、**Judgment Override** 通道(人类裁决凌驾聚合分)为 BQS 第 2/3 层所要求。Recommendations 区块为推荐集(不限笔数)中每个想法逐项记录 D5–D8 状态。
301
+ > **BQS 输出新增(v4):** **Seeds** 区(规则:被杀 ≥1 则非空)、**争议区**(高方差想法不按 mean 淘汰)、**Judgment Override** 通道(人类裁决凌驾聚合分)为 BQS 第 2/3 层所要求。Recommendations 区块为推荐集(不限笔数)中每个想法逐项记录 D5–D8 状态。自 v4.2 起,报告表头并记录评审宣告的**模型层级**(厂商中立标签)——没有它,D4 为 `[degraded]`,且宣告无处可验。
293
302
 
294
303
  ## 多样性崩塌防护
295
304
 
@@ -366,6 +375,7 @@ BQS 是**四层 × 时间轴**契约。它是 v3 的**叠加**——所有 v3
366
375
  ## 参考
367
376
 
368
377
  - 详细指南:[guide.md](./guide.md)
378
+ - 模型层级依据:[core/model-selection.md](../../../../core/model-selection.md)——D4 心智轴与发散侧层级皆以该标准的判准为准。**引用、不复述**——摘要会随来源被更正而腐坏,指针不会。
369
379
 
370
380
  ## AI 代理行为
371
381