coding-agent-harness 1.0.0 → 1.0.2

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 (159) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.en-US.md +14 -0
  3. package/README.md +111 -86
  4. package/README.zh-CN.md +270 -0
  5. package/SKILL.md +116 -189
  6. package/docs-release/README.md +72 -5
  7. package/docs-release/architecture/overview.md +286 -28
  8. package/docs-release/architecture/overview.zh-CN.md +288 -0
  9. package/docs-release/assets/dashboard-overview-en.png +0 -0
  10. package/docs-release/assets/harness-architecture.svg +163 -0
  11. package/docs-release/assets/harness-workflow.svg +64 -0
  12. package/docs-release/guides/agent-installation.en-US.md +214 -0
  13. package/docs-release/guides/agent-installation.md +123 -26
  14. package/docs-release/guides/document-audience-and-surfaces.en-US.md +112 -0
  15. package/docs-release/guides/document-audience-and-surfaces.md +112 -0
  16. package/docs-release/guides/full-legacy-migration-subagent-strategy.md +334 -0
  17. package/docs-release/guides/full-legacy-migration-subagent-strategy.zh-CN.md +334 -0
  18. package/docs-release/guides/legacy-migration-agent-prompt.md +384 -0
  19. package/docs-release/guides/legacy-migration-agent-prompt.zh-CN.md +361 -0
  20. package/docs-release/guides/migration-playbook.en-US.md +325 -0
  21. package/docs-release/guides/migration-playbook.md +329 -0
  22. package/docs-release/guides/parent-control-repository-pattern.en-US.md +252 -0
  23. package/docs-release/guides/parent-control-repository-pattern.md +252 -0
  24. package/docs-release/guides/repository-operating-models.en-US.md +196 -0
  25. package/docs-release/guides/repository-operating-models.md +196 -0
  26. package/docs-release/intl/README.md +15 -0
  27. package/docs-release/intl/de-DE.md +18 -0
  28. package/docs-release/intl/en-US.md +18 -0
  29. package/docs-release/intl/es-ES.md +18 -0
  30. package/docs-release/intl/fr-FR.md +18 -0
  31. package/docs-release/intl/ja-JP.md +18 -0
  32. package/docs-release/intl/ko-KR.md +18 -0
  33. package/docs-release/intl/zh-CN.md +18 -0
  34. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/brief.md +13 -0
  35. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/lesson_candidates.md +24 -0
  36. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/progress.md +1 -1
  37. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/task_plan.md +4 -2
  38. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/{visual_roadmap.md → visual_map.md} +9 -1
  39. package/package.json +22 -1
  40. package/references/agents-md-pattern.md +3 -3
  41. package/references/docs-directory-standard.md +47 -3
  42. package/references/external-source-intake-standard.md +75 -0
  43. package/references/harness-ledger.md +5 -3
  44. package/references/legacy-12-phase-bootstrap.md +41 -0
  45. package/references/lessons-governance.md +23 -6
  46. package/references/planning-loop.md +41 -3
  47. package/references/project-onboarding-audit.md +10 -0
  48. package/references/repo-governance-standard.md +2 -0
  49. package/references/testing-standard.md +50 -0
  50. package/references/walkthrough-closeout.md +6 -5
  51. package/scripts/check-harness.mjs +76 -35
  52. package/scripts/harness.mjs +303 -12
  53. package/scripts/lib/capability-registry.mjs +533 -0
  54. package/scripts/lib/check-profiles.mjs +510 -0
  55. package/scripts/lib/core-shared.mjs +186 -0
  56. package/scripts/lib/dashboard-data.mjs +389 -0
  57. package/scripts/lib/dashboard-workbench.mjs +217 -0
  58. package/scripts/lib/dashboard-writer.mjs +93 -2
  59. package/scripts/lib/harness-core.mjs +10 -1318
  60. package/scripts/lib/lesson-maintenance.mjs +145 -0
  61. package/scripts/lib/markdown-utils.mjs +158 -0
  62. package/scripts/lib/migration-planner.mjs +478 -0
  63. package/scripts/lib/migration-support.mjs +312 -0
  64. package/scripts/lib/task-lifecycle.mjs +755 -0
  65. package/scripts/lib/task-scanner.mjs +682 -0
  66. package/scripts/smoke-dashboard.mjs +22 -0
  67. package/scripts/test-harness.mjs +928 -15
  68. package/templates/AGENTS.md.template +41 -30
  69. package/templates/architecture/Architecture-SSoT.md +21 -0
  70. package/templates/architecture/README.md +49 -0
  71. package/templates/architecture/critical-flows.md +22 -0
  72. package/templates/architecture/local-repo-context.md +20 -0
  73. package/templates/architecture/service-catalog.md +17 -0
  74. package/templates/architecture/services/service-template.md +31 -0
  75. package/templates/architecture/system-map.md +22 -0
  76. package/templates/dashboard/assets/app-src/00-state.js +41 -0
  77. package/templates/dashboard/assets/app-src/10-router.js +76 -0
  78. package/templates/dashboard/assets/app-src/20-overview.js +235 -0
  79. package/templates/dashboard/assets/app-src/30-tasks.js +563 -0
  80. package/templates/dashboard/assets/app-src/40-modules.js +58 -0
  81. package/templates/dashboard/assets/app-src/45-review.js +128 -0
  82. package/templates/dashboard/assets/app-src/50-migration.js +169 -0
  83. package/templates/dashboard/assets/app-src/60-shared.js +61 -0
  84. package/templates/dashboard/assets/app-src/90-bindings.js +382 -0
  85. package/templates/dashboard/assets/app.css +2575 -310
  86. package/templates/dashboard/assets/app.js +1498 -307
  87. package/templates/dashboard/assets/app.manifest.json +11 -0
  88. package/templates/dashboard/assets/i18n.js +429 -44
  89. package/templates/dashboard/assets/mermaid-renderer.js +58 -8
  90. package/templates/development/README.md +52 -0
  91. package/templates/development/codebase-map.md +11 -0
  92. package/templates/development/cross-repo-debugging.md +18 -0
  93. package/templates/development/external-context/service-template.md +33 -0
  94. package/templates/development/external-source-packs/README.md +24 -0
  95. package/templates/development/external-source-packs/digest-template.md +28 -0
  96. package/templates/development/local-setup.md +16 -0
  97. package/templates/development/stubs-and-mocks.md +11 -0
  98. package/templates/integrations/README.md +40 -0
  99. package/templates/integrations/api-contract.md +42 -0
  100. package/templates/integrations/event-contract.md +46 -0
  101. package/templates/integrations/third-party/vendor-template.md +42 -0
  102. package/templates/integrations/webhook-contract.md +41 -0
  103. package/templates/planning/brief.md +32 -0
  104. package/templates/planning/lesson_candidates.md +58 -0
  105. package/templates/planning/long-running-task-contract.md +7 -0
  106. package/templates/planning/module_brief.md +25 -0
  107. package/templates/planning/module_session_prompt.md +6 -0
  108. package/templates/planning/task_plan.md +7 -5
  109. package/templates/planning/{visual_roadmap.md → visual_map.md} +24 -2
  110. package/templates/reference/docs-library-standard.md +31 -0
  111. package/templates/reference/execution-workflow-standard.md +4 -2
  112. package/templates/reference/external-source-intake-standard.md +82 -0
  113. package/templates/reference/harness-ledger-standard.md +1 -0
  114. package/templates/reference/repo-governance-standard.md +6 -4
  115. package/templates/reference/walkthrough-standard.md +2 -1
  116. package/templates/walkthrough/walkthrough-template.md +2 -2
  117. package/templates-zh-CN/AGENTS.md.template +69 -70
  118. package/templates-zh-CN/architecture/Architecture-SSoT.md +21 -0
  119. package/templates-zh-CN/architecture/README.md +51 -0
  120. package/templates-zh-CN/architecture/critical-flows.md +24 -0
  121. package/templates-zh-CN/architecture/local-repo-context.md +20 -0
  122. package/templates-zh-CN/architecture/service-catalog.md +17 -0
  123. package/templates-zh-CN/architecture/services/service-template.md +31 -0
  124. package/templates-zh-CN/architecture/system-map.md +22 -0
  125. package/templates-zh-CN/development/README.md +54 -0
  126. package/templates-zh-CN/development/codebase-map.md +11 -0
  127. package/templates-zh-CN/development/cross-repo-debugging.md +18 -0
  128. package/templates-zh-CN/development/external-context/service-template.md +33 -0
  129. package/templates-zh-CN/development/external-source-packs/README.md +24 -0
  130. package/templates-zh-CN/development/external-source-packs/digest-template.md +28 -0
  131. package/templates-zh-CN/development/local-setup.md +16 -0
  132. package/templates-zh-CN/development/stubs-and-mocks.md +11 -0
  133. package/templates-zh-CN/integrations/README.md +42 -0
  134. package/templates-zh-CN/integrations/api-contract.md +42 -0
  135. package/templates-zh-CN/integrations/event-contract.md +46 -0
  136. package/templates-zh-CN/integrations/third-party/vendor-template.md +42 -0
  137. package/templates-zh-CN/integrations/webhook-contract.md +41 -0
  138. package/templates-zh-CN/planning/brief.md +32 -0
  139. package/templates-zh-CN/planning/lesson_candidates.md +58 -0
  140. package/templates-zh-CN/planning/long-running-task-contract.md +1 -1
  141. package/templates-zh-CN/planning/module_brief.md +25 -0
  142. package/templates-zh-CN/planning/module_plan.md +2 -2
  143. package/templates-zh-CN/planning/module_session_prompt.md +4 -3
  144. package/templates-zh-CN/planning/task_plan.md +10 -4
  145. package/templates-zh-CN/planning/{visual_roadmap.md → visual_map.md} +21 -2
  146. package/templates-zh-CN/reference/docs-library-standard.md +35 -0
  147. package/templates-zh-CN/reference/execution-workflow-standard.md +9 -2
  148. package/templates-zh-CN/reference/external-source-intake-standard.md +82 -0
  149. package/templates-zh-CN/reference/harness-ledger-standard.md +5 -2
  150. package/templates-zh-CN/reference/repo-governance-standard.md +2 -0
  151. package/templates-zh-CN/reference/walkthrough-standard.md +4 -4
  152. package/templates-zh-CN/walkthrough/Closeout-SSoT.md +2 -2
  153. package/templates-zh-CN/walkthrough/walkthrough-template.md +2 -2
  154. package/templates-zh-CN/dashboard/assets/app.css +0 -399
  155. package/templates-zh-CN/dashboard/assets/app.js +0 -435
  156. package/templates-zh-CN/dashboard/assets/i18n.js +0 -47
  157. package/templates-zh-CN/dashboard/assets/markdown-reader.js +0 -116
  158. package/templates-zh-CN/dashboard/assets/mermaid-renderer.js +0 -59
  159. package/templates-zh-CN/dashboard/index.html +0 -18
package/SKILL.md CHANGED
@@ -24,6 +24,7 @@ description: >
24
24
  - **单元测试只是底线,不是保障。** 真正的保障需要多层证据(Evidence Depth)。
25
25
  - **先识别交付组织,再设计 harness。** 一人多 agent、多人团队、前后端分仓、program 多仓、敏捷/瀑布,对应的 SSoT 和冲突治理不同。
26
26
  - **Repo 护栏是地基。** CI/CD、PR policy、branch protection、required checks、worktree concurrency 必须项目级定制,不能停留在模板。
27
+ - **外部资料先摄取,再投影。** 微服务或多仓项目的外部文档不能直接塞进执行文档;先建 source pack、digest、验证,再投影到 `03/04/06`。
27
28
  - **长程任务先设计合同,再开放执行。** 连续跑数小时的前提是 Goal、Scope、Review Loop、Evidence、Stop Condition 都清楚。
28
29
  - **审查必须落盘。** 对抗性 review 是独立交付物,不应只留在对话、progress 或 walkthrough 里;reviewer 必须用 Confidence Challenge 反复挑战方案,直到没有 open material finding。
29
30
  - **Worker handoff 必须 commit-backed。** 可写 subagent 不是 reviewer;它必须在独立 worktree / branch 内实现、验证并提交,再由 coordinator 集成。
@@ -44,8 +45,9 @@ coding-agent-harness",不要重新 bootstrap 覆盖整个项目。先执行增
44
45
  task progress、Feature SSoT、Regression SSoT 或 Lessons SSoT。
45
46
  5. 对已有文档采用 merge / append / residual-with-reason;只有全新缺失文件才从模板创建。
46
47
  6. 如果引入 Lessons SSoT、Harness Ledger 或新的 reference/template,同步更新入口索引。
47
- 7. 收口时写 walkthrough,必须包含 Lessons Reflection;如发现可复用教训,先写
48
- `docs/01-GOVERNANCE/lessons/` 详情文档,再写 Lessons SSoT;最后在
48
+ 7. 收口时写 walkthrough,必须包含 Lessons Reflection;新任务先写并审查
49
+ `lesson_candidates.md`。如人工标记值得沉淀,维护命令再写
50
+ `docs/01-GOVERNANCE/lessons/` 详情文档和 Lessons SSoT;最后在
49
51
  `docs/Harness-Ledger.md` 与 `docs/10-WALKTHROUGH/Closeout-SSoT.md` 记录本次 harness update 的 delta 和 Lessons Check。
50
52
 
51
53
  一句话:harness update 是 delta merge,不是重新搭一遍。
@@ -57,6 +59,12 @@ coding-agent-harness",不要重新 bootstrap 覆盖整个项目。先执行增
57
59
  `docs-release/guides/agent-installation.md`。如果本 Skill 与该指南出现差异,以
58
60
  本 Skill 的执行约束为准,并把差异记录为需要修复的文档漂移。
59
61
 
62
+ CLI 示例默认使用目标项目可调用的 `harness` 命令。执行前先检查
63
+ `command -v harness`;如果没有,不要静默全局安装,按安装指南询问用户是否
64
+ 允许 `npm install -g coding-agent-harness`。未获明确同意时,用
65
+ `npx --yes coding-agent-harness <command>` 执行同一条命令。只有维护本源码
66
+ checkout 时,才把 `harness` 替换为 `node scripts/harness.mjs`。
67
+
60
68
  ### Agent 安装合同
61
69
 
62
70
  这个 CLI 的主要操作者通常是目标项目里的 agent,而不是最终用户。Agent 不应要求用户
@@ -80,6 +88,12 @@ coding-agent-harness",不要重新 bootstrap 覆盖整个项目。先执行增
80
88
  读 `references/project-onboarding-audit.md`,扫描项目技术栈、目录结构、现有文档、
81
89
  CI、团队/agent 协作方式和风险面,输出诊断报告。
82
90
 
91
+ 如果发现项目属于微服务、多仓、前后端分仓、平台子系统,或代码中出现外部服务、
92
+ SDK、API gateway、message queue、webhook、contract、schema、mock,必须询问用户是否有
93
+ 外部资料。问题至少覆盖:是否有外部团队文档、接口文档、架构图、会议纪要、链接或导出包;
94
+ 这些资料能否复制进仓;哪些资料是可信来源。外部资料处理方法见
95
+ `references/external-source-intake-standard.md`。
96
+
83
97
  ### Phase 2: Decide / 方案决策
84
98
 
85
99
  与用户确认三件事:
@@ -91,6 +105,8 @@ CI、团队/agent 协作方式和风险面,输出诊断报告。
91
105
  kanban-continuous。
92
106
  3. Capability Packs:core 必装;按需选择 module-parallel、subagent-worker、
93
107
  adversarial-review、long-running-task、dashboard、safe-adoption。
108
+ 4. External Source Intake:如果外部资料超过 5 份、跨多个主题或会持续增长,
109
+ 决定是否创建 `docs/04-DEVELOPMENT/external-source-packs/<source-key>/`。
94
110
 
95
111
  Capability 选择规则必须按表执行,不得凭感觉多装:
96
112
 
@@ -124,13 +140,42 @@ Regression surface、Delivery SSoT、Module Registry、review routing 和
124
140
  worktree/subagent handoff 规则。已有项目事实只能 merge/append/residual,
125
141
  不能模板覆盖。
126
142
 
143
+ 如果用户提供了外部资料,Configure 阶段必须按
144
+ `external-source-intake-standard.md` 执行:Inventory、Classify、Sanitize、Digest、
145
+ Project、Verify、Residual。`external-source-packs/` 只保存资料索引、摘要和投影状态;
146
+ 稳定事实必须回写到 `03-ARCHITECTURE`、`04-DEVELOPMENT/external-context` 或
147
+ `06-INTEGRATIONS`。
148
+
149
+ ### Phase 4b: Task Lifecycle / 任务生命周期
150
+
151
+ 初始化或迁移完成后,活跃任务必须通过 CLI 创建和推进,避免 agent 手工复制模板造成漂移:
152
+
153
+ ```bash
154
+ harness new-task <task-id> --title "<title>" --locale zh-CN|en-US /path/to/project
155
+ harness task-start <task-id> --message "<what started>" /path/to/project
156
+ harness task-log <task-id> --message "<what changed>" --evidence "command:TARGET:path:summary" /path/to/project
157
+ harness task-block <task-id> --message "<blocker>" /path/to/project
158
+ harness task-review <task-id> --message "<ready for review>" /path/to/project
159
+ harness task-complete <task-id> --message "<closeout>" /path/to/project
160
+ harness task-list --json /path/to/project
161
+ ```
162
+
163
+ - `new-task --budget simple` 创建轻量任务目录:`brief.md`、`task_plan.md`、`visual_map.md`、`progress.md`。
164
+ - `new-task` 默认 `standard`,创建完整任务目录,包括 `brief.md`、计划、策略、路线图、进度、发现和审查文件。
165
+ - `new-task --budget complex` 在完整任务文件之外创建 optional references/artifacts 索引。
166
+ - 已存在任务不会被覆盖;旧项目迁移时先 `task-list --json`,再决定复用旧任务还是开新任务。
167
+ - 状态推进只写 `progress.md`,不得重写历史 `task_plan.md`。
168
+ - `simple` 任务可以直接 `in_progress -> done`;`standard` / `complex` 必须 `in_progress -> review -> done`,不能跳过 `task-review`。
169
+ - `review-confirm` 只确认人工 review evidence / findings,不代表 closeout;closeout 仍走 walkthrough / Closeout SSoT。
170
+ - 证据必须进入 `task-log` 或 `progress.md`,并继续遵守 `type:PATH:summary` 格式。
171
+
127
172
  ### Phase 5: Verify / 验证
128
173
 
129
174
  运行当前 repo 支持的检查命令,例如:
130
175
 
131
176
  ```bash
132
- node scripts/harness.mjs check --profile target-project /path/to/project
133
- node scripts/harness.mjs status --json /path/to/project
177
+ harness check --profile target-project /path/to/project
178
+ harness status --json /path/to/project
134
179
  ```
135
180
 
136
181
  如果是在开发或修改本 harness 自身,Phase 5 必须覆盖两条回归路径:
@@ -143,6 +188,15 @@ node scripts/harness.mjs status --json /path/to/project
143
188
  检查失败时不能声称 harness complete;必须修复或记录 owner/action/status 明确的
144
189
  residual。
145
190
 
191
+ 旧项目迁移时必须先运行:
192
+
193
+ ```bash
194
+ harness migrate-plan --json /path/to/project
195
+ ```
196
+
197
+ 然后按 `docs-release/guides/migration-playbook.md` 分阶段处理。不要机械迁移所有历史
198
+ task;先迁移活跃或重新打开的任务,再升级当前门禁相关 review 和 capability。
199
+
146
200
  ### Phase 6: Deliver / 交付
147
201
 
148
202
  输出 bootstrap summary,说明创建/定制了哪些文件、启用了哪些 capability、当前
@@ -158,144 +212,11 @@ Summary 至少包含:
158
212
  - residual owner / action / status
159
213
  - 是否提交;若只是 dogfood 测试,必须清理测试产物
160
214
 
161
- ### Historical 12-Phase Bootstrap(旧版参考)
162
-
163
- 以下 12-phase 流程是历史参考,用于理解旧版 harness 的组成,不再作为 v1.0
164
- `init` 的默认执行协议。
165
-
166
- ### Phase 1: 项目诊断
167
-
168
- 读 `references/project-onboarding-audit.md`,按其中的扫描清单分析用户项目现状,输出诊断报告。
169
-
170
- ### Phase 2: 确认方案
171
-
172
- 根据诊断结果,确定 harness 规模(参考 `references/project-onboarding-audit.md` 中的项目类型分支),与用户确认落地方案。
173
-
174
- ### Phase 2b: 选择 Delivery Operating Model
175
-
176
- 读 `references/delivery-operating-model-standard.md`。先判定项目的工程组织形态:
177
-
178
- - `solo-orchestrator`:一人主控,多 agent / worktree 并行
179
- - `team-feature-lead`:leader 拆 feature block,多人各带 agent 开发
180
- - `split-repo-contract`:前后端或 app/service 分仓,通过接口合同协作
181
- - `program-multi-repo`:主项目协调多个子仓库
182
- - `waterfall-stage-gate`:需求、设计、实现、验证、发布分阶段推进
183
- - `kanban-continuous`:连续流动式开发,用 WIP 和集成队列控节奏
184
-
185
- 如果是多人、多仓或传统工程流程,必须创建或更新 `docs/09-PLANNING/Delivery-SSoT.md`。
186
-
187
- ### Phase 2c: 模块识别与注册(可选)
188
-
189
- 当项目满足以下条件时启用:
190
-
191
- - Operating Model 为 `solo-orchestrator` 或 `team-feature-lead`
192
- - 存在 2+ 个可独立演进的功能域
193
- - 开发者计划多会话 / 多 worktree 并行
194
-
195
- 读 `references/module-parallel-standard.md`,执行:
196
-
197
- 1. 识别项目中的独立模块(按功能域划分,不按技术层划分)
198
- 2. 为每个模块声明 write scope,确认无交集
199
- 3. 创建 `docs/09-PLANNING/Module-Registry.md`(使用 `templates/ssot/Module-Registry.md`)
200
- 4. 为每个活跃模块创建 `docs/09-PLANNING/MODULES/<key>/module_plan.md`(使用 `templates/planning/module_plan.md`)
201
- 5. 在 AGENTS.md 中添加模块冷启动指引段落
202
- 6. 启用检查器的模块任务反向索引规则:模块 worker 必须把活跃任务写入 `module_plan.md`,并用 Coordinator Handoff 标记总表同步需求;只有 coordinator pass 或显式 shared lock owner 写 `Module-Registry.md` / Harness Ledger。
203
-
204
- 如果项目从线性 Phase 模型迁移,还需执行迁移步骤(见 `references/module-parallel-standard.md` 的"从线性 Phase 迁移"段落)。
205
-
206
- ### Phase 3: 搭建目录结构
207
-
208
- 读 `references/docs-directory-standard.md`,在项目中创建 docs/ 目录结构。根据诊断结果裁剪不需要的目录。
215
+ ### 旧版 Bootstrap 参考
209
216
 
210
- ### Phase 4: 生成 AGENTS.md + CLAUDE.md
211
-
212
- `references/agents-md-pattern.md`,根据项目技术栈和目录结构生成 AGENTS.md。使用 `templates/AGENTS.md.template` 作为起点。
213
-
214
- 同时生成 `CLAUDE.md`:
215
- - 优先使用 `templates/CLAUDE.md.template`
216
- - `CLAUDE.md` 只作为 Claude Code 兼容入口,指向 AGENTS.md
217
- - 不要在 `CLAUDE.md` 中复制完整规范,避免 AGENTS.md 与 CLAUDE.md 漂移
218
-
219
- ### Phase 5: 生成 Reference 标准文件
220
-
221
- 读 `references/docs-directory-standard.md` 中的 reference 文件清单,根据项目需要生成对应的标准文件到 `docs/11-REFERENCE/`。使用 `templates/reference/` 下的模板。
222
- 标准 harness 安装必须包含 `adversarial-review-standard.md` 和
223
- `review-routing-standard.md`,因为 planned task closeout 默认启用 reviewer routing。
224
- 标准 harness 安装也必须包含 `repo-governance-standard.md` 和 `ci-cd-standard.md`,
225
- 因为 CI/CD、PR policy、branch protection、required checks 和 worktree concurrency 是 base guardrails。
226
- 标准 harness 安装还必须包含 `delivery-operating-model-standard.md`,
227
- 因为 harness 必须先知道自己服务的是哪一种工程组织形态。
228
-
229
- ### Phase 5b: 初始化 Repository Governance / CI-CD
230
-
231
- 读 `references/repo-governance-standard.md` 和 `references/ci-cd-standard.md`。
232
- 根据项目技术栈和远端平台定制:
233
-
234
- - repo platform profile
235
- - branch model
236
- - PR policy
237
- - required checks
238
- - branch protection plan
239
- - CI workflow 或 blocked-with-owner residual
240
- - worktree concurrency
241
-
242
- 如果是 GitHub 项目,优先生成或更新 `.github/pull_request_template.md` 和
243
- `.github/workflows/ci.yml`。如果 agent 没有权限设置 branch protection,必须写 manual setup residual,
244
- 不能把 `designed` 冒充成 `verified`。
245
-
246
- ### Phase 6: 初始化 Planning Loop
247
-
248
- 读 `references/planning-loop.md`,在 `docs/09-PLANNING/TASKS/` 下建立任务模板目录。使用 `templates/planning/` 下的任务模板。
249
- 模板目录必须额外包含 `review.md`,用于 reviewer agent / subagent / 自审写入对抗性 review 报告。
250
-
251
- ### Phase 7: 初始化 Long-Running Task Protocol
252
-
253
- 读 `references/long-running-task-standard.md`,在 `docs/11-REFERENCE/` 中生成长程任务标准。使用 `templates/reference/long-running-task-standard.md`,并把 `templates/planning/long-running-task-contract.md` 放入任务模板目录。
254
-
255
- ### Phase 8: 初始化 SSoT
256
-
257
- 读 `references/ssot-governance.md`,创建 Feature SSoT 和 Regression SSoT。使用 `templates/ssot/` 下的模板。
258
-
259
- ### Phase 8b: 初始化经验沉淀体系
260
-
261
- 读 `references/lessons-governance.md`,创建 Lessons SSoT。使用 `templates/ssot/Lessons-SSoT.md` 作为模板。同时在 `docs/01-GOVERNANCE/` 下创建 `lessons/` 和 `_archive/` 目录(含 `.gitkeep`)。
262
-
263
- ### Phase 8c: 初始化 Harness Ledger
264
-
265
- 读 `references/harness-ledger.md`,在 `docs/` 根目录创建 `Harness-Ledger.md`。使用 `templates/ledger/Harness-Ledger.md` 作为模板。
266
-
267
- ### Phase 9: 初始化 Regression 体系
268
-
269
- 读 `references/regression-system.md` 和 `references/cadence-ledger.md`,根据项目的关键 surface 建立回归 gate 和 cadence 规则。使用 `templates/regression/` 下的模板。
270
-
271
- ### Phase 10: 初始化 Walkthrough 流程
272
-
273
- 读 `references/walkthrough-closeout.md`,建立 walkthrough 模板和 Closeout SSoT。
274
- 使用 `templates/walkthrough/` 下的模板。
275
-
276
- ### Phase 11: 初始化 Worktree 规范
277
-
278
- 读 `references/worktree-parallel.md`,确认 worktree 命名、分支规范、subagent worker
279
- handoff 和 coordinator integration 规则,写入 AGENTS.md 或对应 reference 文件。
280
-
281
- ### Phase 11b: 初始化模块并行启动 Prompt(如启用)
282
-
283
- 如果项目启用模块并行开发,读 `references/module-parallel-standard.md`,并为每个 active module 创建:
284
-
285
- - `docs/09-PLANNING/Module-Registry.md`
286
- - `docs/09-PLANNING/MODULES/<key>/module_plan.md`
287
- - `docs/09-PLANNING/MODULES/Session-Prompt-Pack.md` 或 `docs/09-PLANNING/MODULES/<key>/session_prompt.md`
288
-
289
- 使用 `templates/planning/module_session_prompt.md` 填充每个模块的启动 prompt。Prompt 必须包含 start gate、worktree/branch preflight、Subagent Worker Invariant、write scope、shared coordination、verification、review/Lessons/Closeout 收口。
290
-
291
- ### Phase 12: 输出 Bootstrap Summary
292
-
293
- 输出一份 harness bootstrap 总结,包括:
294
- - 创建了哪些文件
295
- - 每个文件的用途
296
- - 建议的首批任务
297
- - 下一步行动
298
- - `node scripts/check-harness.mjs <project-root>` 的结果;未通过不得声称 bootstrap complete
217
+ 12 阶段 bootstrap 只作为兼容迁移参考,不再放在 Skill 主执行协议里。
218
+ 需要理解旧项目结构或把旧任务迁移到 v1.0 时,读取
219
+ `references/legacy-12-phase-bootstrap.md`。
299
220
 
300
221
  ---
301
222
 
@@ -303,7 +224,7 @@ handoff 和 coordinator integration 规则,写入 AGENTS.md 或对应 referenc
303
224
 
304
225
  harness bootstrap 完成后,项目中至少应存在以下文件:
305
226
 
306
- - [ ] `AGENTS.md`,100-300 行,宪章 + 索引结构
227
+ - [ ] `AGENTS.md`,默认 80-160 行,宪章 + 阅读矩阵,不承载安装教程
307
228
  - [ ] `CLAUDE.md`,Claude Code 兼容 shim,指向 `AGENTS.md`(不复制完整规范)
308
229
  - [ ] `docs/11-REFERENCE/` 下至少 3 个标准文件
309
230
  - [ ] `docs/09-PLANNING/TASKS/_task-template/` 包含 task plan / findings / progress / review 模板
@@ -323,6 +244,7 @@ harness bootstrap 完成后,项目中至少应存在以下文件:
323
244
  - [ ] `docs/01-GOVERNANCE/lessons/`(空目录 + .gitkeep)
324
245
  - [ ] `docs/01-GOVERNANCE/_archive/`(空目录 + .gitkeep)
325
246
  - [ ] `docs/Harness-Ledger.md`
247
+ - [ ] `docs/11-REFERENCE/external-source-intake-standard.md`
326
248
  - [ ] `docs/11-REFERENCE/harness-ledger-standard.md`
327
249
  - [ ] `.github/pull_request_template.md` 或 platform-specific PR template / residual
328
250
  - [ ] CI workflow 或 `ci-cd-standard.md` 中的 blocked-with-owner residual
@@ -356,7 +278,7 @@ harness 搭建完成后,每个 feature 从想法到代码的标准流程:
356
278
  11. **Merge + 自动回归** — Cadence Ledger 触发对应回归面;coordinator 只集成 worker commit,不混合多个 worker 的未提交改动
357
279
  12. **Walkthrough 收口** — 写收口记录并引用 review report
358
280
  13. **Closeout SSoT 回写** — 每个 closed 任务必须记录 walkthrough 路径或受控 skip reason
359
- 14. **Lessons Reflection** — 写 walkthrough 时主动反思共性/反复问题;`checked-created` 必须有详情文档和 SSoT 表行,`checked-none` 必须写明原因
281
+ 14. **Lessons Reflection** — 写 walkthrough 时主动反思共性/反复问题;新任务用 `lesson_candidates.md` 承载人工判定,`queued-promotion` 进入维护队列,`checked-created` 必须有详情文档和 SSoT 表行,旧任务兼容的 `checked-none` 必须写明原因
360
282
  15. **Harness Ledger 回写** — 记录本轮上下文维护是否完成
361
283
  16. **Worktree 清理** — 删除已 merge 的 worktree
362
284
 
@@ -364,60 +286,65 @@ harness 搭建完成后,每个 feature 从想法到代码的标准流程:
364
286
 
365
287
  ## Reference 索引
366
288
 
289
+ 旧 12 阶段编号只保留在 `references/legacy-12-phase-bootstrap.md`。下面按 v1.0
290
+ 能力和任务场景路由,不再使用旧 Phase 编号。
291
+
367
292
  | 模块 | Reference | 何时读取 |
368
293
  |------|-----------|---------|
369
- | 项目诊断 | `references/project-onboarding-audit.md` | Phase 1 |
370
- | AGENTS.md + CLAUDE.md | `references/agents-md-pattern.md` | Phase 4 |
371
- | 目录结构 | `references/docs-directory-standard.md` | Phase 3, 5 |
372
- | Delivery Operating Model | `references/delivery-operating-model-standard.md` | Phase 2b, 5 |
373
- | Repository Governance | `references/repo-governance-standard.md` | Phase 5b |
374
- | CI/CD | `references/ci-cd-standard.md` | Phase 5b |
375
- | Planning Loop | `references/planning-loop.md` | Phase 6 |
376
- | Long-Running Task | `references/long-running-task-standard.md` | Phase 7 |
377
- | Adversarial Review | `references/adversarial-review-standard.md` | Phase 5, 6, 7 |
378
- | Review Routing | `references/review-routing-standard.md` | Phase 5, 6, 7 |
379
- | SSoT 治理 | `references/ssot-governance.md` | Phase 8 |
380
- | 经验沉淀 | `references/lessons-governance.md` | Phase 8b |
381
- | Harness Ledger | `references/harness-ledger.md` | Phase 8c |
382
- | Regression | `references/regression-system.md` | Phase 9 |
383
- | Cadence Ledger | `references/cadence-ledger.md` | Phase 9 |
384
- | Walkthrough | `references/walkthrough-closeout.md` | Phase 10 |
385
- | Worktree | `references/worktree-parallel.md` | Phase 11 |
294
+ | 项目诊断 | `references/project-onboarding-audit.md` | Diagnose 阶段判断项目形态、风险和 harness 深度 |
295
+ | AGENTS.md + CLAUDE.md | `references/agents-md-pattern.md` | Scaffold / Configure 入口路由文件时 |
296
+ | 目录结构 | `references/docs-directory-standard.md` | Scaffold docs 结构或检查目录边界时 |
297
+ | 外部资料摄取 | `references/external-source-intake-standard.md` | 项目依赖微服务、多仓、外部团队资料或用户提供资料包时 |
298
+ | Delivery Operating Model | `references/delivery-operating-model-standard.md` | Decide 阶段选择 solo / team / split-repo / program / stage-gate / kanban |
299
+ | Repository Governance | `references/repo-governance-standard.md` | 配置 PR、分支、worktree、提交和发布边界时 |
300
+ | CI/CD | `references/ci-cd-standard.md` | 配置或验证 required checks、release gate、CI residual 时 |
301
+ | Planning Loop | `references/planning-loop.md` | 创建、推进或迁移任务计划时 |
302
+ | Long-Running Task | `references/long-running-task-standard.md` | 任务需要连续执行、长上下文或 stop condition |
303
+ | Adversarial Review | `references/adversarial-review-standard.md` | 需要独立审查报告、信心挑战或 material finding 分级时 |
304
+ | Review Routing | `references/review-routing-standard.md` | 决定 self-review、subagent、外部 reviewer 或人工审查时 |
305
+ | SSoT 治理 | `references/ssot-governance.md` | 维护 Feature / Delivery / Regression / Lessons 等当前事实时 |
306
+ | 经验沉淀 | `references/lessons-governance.md` | walkthrough 收口后判断是否沉淀 lesson 时 |
307
+ | Harness Ledger | `references/harness-ledger.md` | 记录本轮 harness 上下文维护、证据和 residual 时 |
308
+ | Regression | `references/regression-system.md` | 设计或更新回归面、evidence depth 和 gate 时 |
309
+ | Cadence Ledger | `references/cadence-ledger.md` | 根据改动类型触发回归批次时 |
310
+ | Walkthrough | `references/walkthrough-closeout.md` | 收口、Closeout SSoT 和交付说明时 |
311
+ | Worktree | `references/worktree-parallel.md` | 并行开发、worker handoff 或隔离分支时 |
386
312
 
387
313
  ## Template 索引
388
314
 
389
315
  | 模板 | 路径 | 用途 |
390
316
  |------|------|------|
391
- | AGENTS.md | `templates/AGENTS.md.template` | Phase 4 |
392
- | CLAUDE.md | `templates/CLAUDE.md.template` | Phase 4,Claude Code 兼容 shim |
393
- | Feature SSoT | `templates/ssot/Feature-SSoT.md` | Phase 8 |
394
- | Regression SSoT | `templates/ssot/Regression-SSoT.md` | Phase 8 |
395
- | Lessons SSoT | `templates/ssot/Lessons-SSoT.md` | Phase 8b |
396
- | Delivery SSoT | `templates/ssot/Delivery-SSoT.md` | Phase 2b |
397
- | Harness Ledger | `templates/ledger/Harness-Ledger.md` | Phase 8c |
317
+ | AGENTS.md | `templates/AGENTS.md.template` | 目标项目 agent 入口:宪章 + 阅读矩阵 |
318
+ | CLAUDE.md | `templates/CLAUDE.md.template` | Claude Code 兼容 shim,指向 AGENTS.md |
319
+ | Feature SSoT | `templates/ssot/Feature-SSoT.md` | 功能、wave、当前实施状态 |
320
+ | Regression SSoT | `templates/ssot/Regression-SSoT.md` | 回归面、证据深度、gate 状态 |
321
+ | Lessons SSoT | `templates/ssot/Lessons-SSoT.md` | 经验沉淀候选、审批和归档 |
322
+ | Delivery SSoT | `templates/ssot/Delivery-SSoT.md` | 多人、多仓、阶段性交付计划 |
323
+ | Harness Ledger | `templates/ledger/Harness-Ledger.md` | 全局 harness 上下文维护总账 |
398
324
  | Lesson (ref-change) | `templates/lessons/lesson-ref-change.md` | Walkthrough 收口后 |
399
325
  | Lesson (new-doc) | `templates/lessons/lesson-new-doc.md` | Walkthrough 收口后 |
400
326
  | Lesson (arch/process) | `templates/lessons/lesson-arch-process-change.md` | Walkthrough 收口后 |
401
- | Cadence Ledger | `templates/regression/Cadence-Ledger.md` | Phase 9 |
402
- | Task Plan | `templates/planning/task_plan.md` | Phase 6 |
403
- | Findings | `templates/planning/findings.md` | Phase 6 |
404
- | Progress | `templates/planning/progress.md` | Phase 6 |
405
- | Review Report | `templates/planning/review.md` | Phase 6 |
406
- | Long-Running Task Contract | `templates/planning/long-running-task-contract.md` | Phase 7 |
327
+ | Cadence Ledger | `templates/regression/Cadence-Ledger.md` | 回归触发节奏和批次记录 |
328
+ | Task Plan | `templates/planning/task_plan.md` | 当前任务计划 |
329
+ | Findings | `templates/planning/findings.md` | 发现、风险和 residual |
330
+ | Progress | `templates/planning/progress.md` | 生命周期状态和执行日志 |
331
+ | Review Report | `templates/planning/review.md` | 审查发现、确认和残余风险 |
332
+ | Long-Running Task Contract | `templates/planning/long-running-task-contract.md` | 长程任务授权、review loop 和停止条件 |
407
333
  | Module Session Prompt | `templates/planning/module_session_prompt.md` | 模块并行开发会话冷启动 |
408
- | Walkthrough | `templates/walkthrough/walkthrough-template.md` | Phase 10 |
409
- | Closeout SSoT | `templates/walkthrough/Closeout-SSoT.md` | Phase 10 |
410
- | Testing Standard | `templates/reference/testing-standard.md` | Phase 5 |
411
- | Execution Workflow | `templates/reference/execution-workflow-standard.md` | Phase 5 |
412
- | Delivery Operating Model Standard | `templates/reference/delivery-operating-model-standard.md` | Phase 2b |
413
- | Repository Governance Standard | `templates/reference/repo-governance-standard.md` | Phase 5b |
414
- | CI/CD Standard | `templates/reference/ci-cd-standard.md` | Phase 5b |
415
- | Long-Running Task Standard | `templates/reference/long-running-task-standard.md` | Phase 7 |
416
- | Adversarial Review Standard | `templates/reference/adversarial-review-standard.md` | Phase 5 |
417
- | Review Routing Standard | `templates/reference/review-routing-standard.md` | Phase 5 |
418
- | Docs Library | `templates/reference/docs-library-standard.md` | Phase 5 |
419
- | Harness Ledger Standard | `templates/reference/harness-ledger-standard.md` | Phase 5 |
420
- | Regression Governance | `templates/reference/regression-ssot-governance.md` | Phase 5 |
421
- | Walkthrough Standard | `templates/reference/walkthrough-standard.md` | Phase 5 |
422
- | Worktree Standard | `templates/reference/worktree-standard.md` | Phase 5 |
423
- | Engineering Standard | `templates/reference/engineering-standard.md` | Phase 5 |
334
+ | Walkthrough | `templates/walkthrough/walkthrough-template.md` | 任务收口记录 |
335
+ | Closeout SSoT | `templates/walkthrough/Closeout-SSoT.md` | closed task 索引和收口证据 |
336
+ | Testing Standard | `templates/reference/testing-standard.md` | 测试、冒烟和回归规范 |
337
+ | Execution Workflow | `templates/reference/execution-workflow-standard.md` | 执行、提交、PR 和证据记录 |
338
+ | Delivery Operating Model Standard | `templates/reference/delivery-operating-model-standard.md` | 交付组织模型选择 |
339
+ | Repository Governance Standard | `templates/reference/repo-governance-standard.md` | repo、分支、PR、worktree 规则 |
340
+ | CI/CD Standard | `templates/reference/ci-cd-standard.md` | CI/CD、required checks、release residual |
341
+ | Long-Running Task Standard | `templates/reference/long-running-task-standard.md` | 长程任务协议 |
342
+ | Adversarial Review Standard | `templates/reference/adversarial-review-standard.md` | 对抗性审查协议 |
343
+ | Review Routing Standard | `templates/reference/review-routing-standard.md` | reviewer / subagent / human review 路由 |
344
+ | Docs Library | `templates/reference/docs-library-standard.md` | 文档结构、命名和归档 |
345
+ | External Source Intake Standard | `templates/reference/external-source-intake-standard.md` | 外部资料摄取、摘要和投影 |
346
+ | Harness Ledger Standard | `templates/reference/harness-ledger-standard.md` | Harness Ledger 写入规范 |
347
+ | Regression Governance | `templates/reference/regression-ssot-governance.md` | Regression SSoT 治理 |
348
+ | Walkthrough Standard | `templates/reference/walkthrough-standard.md` | walkthrough / closeout / lessons 收口规范 |
349
+ | Worktree Standard | `templates/reference/worktree-standard.md` | worktree、分支和 worker handoff |
350
+ | Engineering Standard | `templates/reference/engineering-standard.md` | 工程和架构约束 |
@@ -1,7 +1,25 @@
1
1
  # Coding Agent Harness Docs Release
2
2
 
3
3
  This directory is the public-facing documentation library for Coding Agent Harness.
4
- It is separate from the repository's private self-hosted harness.
4
+ It is separate from this source repository's private self-hosted harness.
5
+
6
+ 简体中文说明:这个目录只放可公开发布的方法论、架构和使用指南。它不记录本仓库自己的私有任务计划、审查草稿、ledger 或本地运行状态。
7
+
8
+ ## Language Entry / 语言入口
9
+
10
+ English is the canonical public language for GitHub and npm discovery. Simplified Chinese is fully supported for README, guides, prompts, and executable templates. Other languages currently provide short introductions and route users to the English docs.
11
+
12
+ 英文是 GitHub 和 npm 公开传播的主语言。简体中文保留完整支持,包括 README、指南、prompt 和可执行模板。其他语言目前提供简介入口,并引导用户阅读英文文档。
13
+
14
+ | Language | Entry | Support |
15
+ | --- | --- | --- |
16
+ | English | [`../README.md`](../README.md), [`intl/en-US.md`](intl/en-US.md) | Full docs and templates |
17
+ | 简体中文 | [`../README.zh-CN.md`](../README.zh-CN.md), [`intl/zh-CN.md`](intl/zh-CN.md) | Full docs and templates |
18
+ | 日本語 | [`intl/ja-JP.md`](intl/ja-JP.md) | Intro only |
19
+ | 한국어 | [`intl/ko-KR.md`](intl/ko-KR.md) | Intro only |
20
+ | Français | [`intl/fr-FR.md`](intl/fr-FR.md) | Intro only |
21
+ | Español | [`intl/es-ES.md`](intl/es-ES.md) | Intro only |
22
+ | Deutsch | [`intl/de-DE.md`](intl/de-DE.md) | Intro only |
5
23
 
6
24
  ## Boundary
7
25
 
@@ -12,16 +30,65 @@ handoffs, or user/project-specific operating state.
12
30
  Private operating state for this repository lives in `.harness-private/`, which is
13
31
  ignored by the open-source repository and versioned separately.
14
32
 
15
- ## Current Public Docs
33
+ ## How To Read This Library / 如何阅读
34
+
35
+ Not every document is written for the same reader.
36
+
37
+ 不是所有文档都给同一种读者看。先判断自己是要理解方法、执行迁移,还是给目标项目里的 Agent 建立合同。
38
+
39
+ | Reader / 读者 | Start here / 从这里开始 | Purpose / 用途 |
40
+ | --- | --- | --- |
41
+ | Product / engineering leaders 产品和工程负责人 | `guides/repository-operating-models.md` / `guides/repository-operating-models.en-US.md` | Choose single-repo, independent multi-repo, or parent-control repository mode. 选择单仓、多仓独立或主控仓库模式。 |
42
+ | Architects / tech leads 架构负责人 | `architecture/overview.md` / `architecture/overview.zh-CN.md` | Understand the product architecture and task lifecycle. 理解产品架构和任务生命周期。 |
43
+ | Teams adopting Harness 项目接入团队 | `guides/agent-installation.md` / `guides/agent-installation.en-US.md` | Install and operate the agent entrypoint in a target project. 在目标项目中安装和运行 Agent 入口。 |
44
+ | Agents running a migration 执行迁移的 Agent | `guides/legacy-migration-agent-prompt.md` / `guides/legacy-migration-agent-prompt.zh-CN.md` | Follow an executable migration contract. 按可执行迁移合同工作。 |
45
+ | Maintainers deciding what to publish 维护者 | `guides/document-audience-and-surfaces.md` / `guides/document-audience-and-surfaces.en-US.md` | Separate human docs, agent docs, and private operating state. 区分人读文档、Agent 执行文档和私有运行状态。 |
46
+
47
+ ## Public Docs / 公开文档
48
+
49
+ ### International Intros / 多语言简介
50
+
51
+ - `intl/README.md` — language support matrix and intro page index. 语言支持矩阵和简介页索引。
52
+ - `intl/en-US.md`, `intl/zh-CN.md`, `intl/ja-JP.md`, `intl/ko-KR.md`, `intl/fr-FR.md`, `intl/es-ES.md`, `intl/de-DE.md` — short public introductions for global discovery. 面向国际传播的短简介入口。
53
+
54
+ ### Architecture / 架构
55
+
56
+ - `architecture/overview.md` / `architecture/overview.zh-CN.md` — public architecture overview, including the CLI, dashboard, task lifecycle, migration rails, review gate, and release package surface. 公开架构总览,覆盖 CLI、Dashboard、任务生命周期、迁移轨道、审查门禁和发布包表面。
57
+
58
+ ### Methodology / 方法论
59
+
60
+ - `guides/document-audience-and-surfaces.md` / `guides/document-audience-and-surfaces.en-US.md` — explains which docs are for humans, which docs are for agents, and which state must stay out of public release docs. 说明哪些文档给人看,哪些给 Agent 执行,以及哪些状态不能进入公开发布文档。
61
+ - `guides/repository-operating-models.md` / `guides/repository-operating-models.en-US.md` — compares single-repo, independent multi-repo, and parent-control repository operating models. 对比单仓、多仓独立、主控仓库三种运行模式。
62
+ - `guides/parent-control-repository-pattern.md` / `guides/parent-control-repository-pattern.en-US.md` — describes the control-plane pattern for products with many child repositories, services, SDKs, or upstream references. 解释多子仓库、多服务、SDK、上游参考仓库场景下的控制面模式。
63
+
64
+ ### Adoption And Migration / 接入与迁移
65
+
66
+ - `guides/agent-installation.md` / `guides/agent-installation.en-US.md` — operational installation guide for target-project agents. 目标项目 Agent 的安装和运行指南。
67
+ - `guides/migration-playbook.md` / `guides/migration-playbook.en-US.md` — smooth migration guide for existing legacy harness projects. 旧 Harness 项目的平滑迁移指南。
68
+ - `guides/legacy-migration-agent-prompt.md` / `guides/legacy-migration-agent-prompt.zh-CN.md` — prompt contract for agents running baseline or full legacy migration. 给迁移 Agent 使用的执行合同。
69
+ - `guides/full-legacy-migration-subagent-strategy.md` / `guides/full-legacy-migration-subagent-strategy.zh-CN.md` — full readable cutover strategy with subagent roles, adversarial review, and dashboard/CLI proof gates. 完整可读迁移的 subagent 分工、对抗审查和 Dashboard/CLI 证据门禁。
70
+
71
+ ## Repository Operating Models / 仓库运行模式
72
+
73
+ Coding Agent Harness supports three common repository shapes:
74
+
75
+ Coding Agent Harness 支持三种常见仓库形态:
76
+
77
+ | Model / 模式 | Summary / 摘要 | Primary doc / 主文档 |
78
+ | --- | --- | --- |
79
+ | Single-repo Harness 单仓模式 | One code repository owns code, plans, regression, and closeout. 一个代码仓库同时承载代码、计划、回归和收口。 | `guides/repository-operating-models.md` |
80
+ | Independent multi-repo Harness 多仓独立模式 | Each code repository owns its own local Harness; cross-repo context must be documented in architecture, development, and integration docs. 每个代码仓库有自己的局部 Harness,跨仓上下文必须写进 architecture、development、integration 文档。 | `guides/repository-operating-models.md` |
81
+ | Parent-control repository Harness 主控仓库模式 | One parent repository owns the Harness control plane; child repositories own implementation facts. 一个父仓库管理 Harness 控制面,子仓库只承载代码执行事实。 | `guides/parent-control-repository-pattern.md` |
82
+
83
+ The parent-control pattern is the recommended default when one product spans many repositories but still needs one release plan, one task source of truth, and one agent startup point.
16
84
 
17
- - `architecture/overview.md` public architecture overview.
18
- - `guides/agent-installation.md` — operational installation guide for target-project agents.
85
+ 当一个产品跨多个仓库,但仍然需要一个 release 计划、一个任务事实源和一个 Agent 启动入口时,推荐优先采用主控仓库模式。
19
86
 
20
87
  Release roadmaps, staged plans, task execution strategy, final-check walkthroughs,
21
88
  and maintainer publishing notes are project operating state. Keep them in
22
89
  `.harness-private/`, not in this public documentation tree.
23
90
 
24
- ## Rule
91
+ ## Release Rule
25
92
 
26
93
  If a document tells users how the harness works, it belongs here or under
27
94
  `references/`.