repo-harness 0.23.0 → 0.24.1

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 (358) hide show
  1. package/AGENTS.md +15 -4
  2. package/CLAUDE.md +15 -4
  3. package/README.es.md +16 -604
  4. package/README.fr.md +16 -601
  5. package/README.ja.md +16 -600
  6. package/README.md +62 -133
  7. package/README.zh-CN.md +16 -542
  8. package/SKILL.md +0 -1
  9. package/agents/engineers/profiles/verification-evals-checks.json +0 -1
  10. package/agents/engineers/profiles/workflow-engine-contract-assets.json +0 -1
  11. package/agents/engineers/sops/verification-evals-checks.md +1 -1
  12. package/agents/engineers/sops/workflow-engine-contract-assets.md +1 -1
  13. package/agents/fleet/gatekeeper.md +3 -1
  14. package/assets/herdr/webhook-notify/notify.mjs +182 -3
  15. package/assets/herdr/webhook-notify/pane-status.mjs +74 -0
  16. package/assets/reference-configs/agentic-development-flow.md +33 -2
  17. package/assets/reference-configs/document-generation.md +1 -1
  18. package/assets/reference-configs/external-tooling.md +172 -85
  19. package/assets/reference-configs/global-working-rules.md +3 -1
  20. package/assets/reference-configs/harness-overview.md +15 -22
  21. package/assets/reference-configs/heartbeat-triage.md +2 -2
  22. package/assets/reference-configs/herdr-notify.md +35 -0
  23. package/assets/reference-configs/hook-operations.md +206 -43
  24. package/assets/reference-configs/issue-pipeline.md +61 -0
  25. package/assets/reference-configs/release-deploy.md +11 -4
  26. package/assets/reference-configs/sprint-contracts.md +25 -1
  27. package/assets/skill-commands/manifest.json +22 -2
  28. package/assets/skill-commands/repo-harness-architecture/references/worker.md +39 -24
  29. package/assets/skill-commands/repo-harness-check/SKILL.md +3 -0
  30. package/assets/skill-commands/repo-harness-check/references/architecture-evidence.md +13 -18
  31. package/assets/skill-commands/repo-harness-check/references/review-comment-triage.md +65 -0
  32. package/assets/skill-version.json +2 -2
  33. package/assets/skills/repo-harness-cross-review/references/generic-review.md +4 -2
  34. package/assets/skills/repo-harness-herdr-portal/SKILL.md +62 -0
  35. package/assets/skills/repo-harness-herdr-portal/references/messaging.md +46 -0
  36. package/assets/skills/repo-harness-herdr-portal/references/spawn.md +144 -0
  37. package/assets/skills/repo-harness-product/SKILL.md +12 -3
  38. package/assets/skills/repo-harness-product/references/goal.md +57 -32
  39. package/assets/skills/repo-harness-product/references/prd.md +7 -4
  40. package/assets/skills/repo-harness-product/references/sprint.md +31 -47
  41. package/assets/skills/repo-harness-setup/SKILL.md +3 -2
  42. package/assets/skills/repo-harness-setup/references/ci-scope.md +138 -0
  43. package/assets/skills/repo-harness-test/references/authoring.md +3 -3
  44. package/assets/skills/repo-harness-test/references/running.md +9 -9
  45. package/assets/templates/helpers/capability-resolver.ts +88 -332
  46. package/assets/templates/runtime.gitignore +1 -0
  47. package/assets/templates/sprint.template.md +1 -1
  48. package/assets/tool-catalog.v1.json +16 -2
  49. package/assets/workflow-contract.v1.json +7 -13
  50. package/dist/hook-entry.js +7464 -9089
  51. package/dist/operator-ui/assets/ArchitectureWorkspace-Cjh_Bxx3.js +1 -0
  52. package/dist/operator-ui/assets/index-CV9Tl9pN.js +18 -0
  53. package/dist/operator-ui/assets/{index-DY7Cw9qc.css → index-DDqPSgxK.css} +1 -1
  54. package/dist/operator-ui/index.html +2 -2
  55. package/package.json +6 -8
  56. package/references/pm-boundary.md +33 -59
  57. package/scripts/acceptance-receipt.ts +52 -331
  58. package/scripts/archive-workflow.sh +2 -18
  59. package/scripts/capability-resolver.ts +21 -84
  60. package/scripts/check-agent-tooling.sh +1 -2
  61. package/scripts/check-ci.sh +31 -27
  62. package/scripts/check-protected-paths.ts +31 -0
  63. package/scripts/check-state-boundaries.ts +0 -3
  64. package/scripts/check-tarball-install-smoke.sh +6 -15
  65. package/scripts/ci-edge-audit.ts +54 -15
  66. package/scripts/ci-path-consumers.ts +93 -16
  67. package/scripts/codex-handoff-resume.sh +2 -3
  68. package/scripts/contract-worktree.sh +0 -1391
  69. package/scripts/decision-trail.ts +157 -0
  70. package/scripts/heartbeat-triage.sh +0 -78
  71. package/scripts/init-project.sh +4 -3
  72. package/scripts/lib/path-values.ts +57 -8
  73. package/scripts/lib/project-init-lib.sh +17 -113
  74. package/scripts/recovery-view-cli.ts +1 -3
  75. package/scripts/replay-ci-coverage.ts +63 -23
  76. package/scripts/report-ci.ts +10 -11
  77. package/scripts/run-bounded-verifier-command.ts +31 -29
  78. package/scripts/run-skill-evals.ts +1 -1
  79. package/scripts/select-ci-coverage.ts +26 -9
  80. package/scripts/select-test-suite.ts +1 -1
  81. package/scripts/ship-worktrees.sh +17 -373
  82. package/scripts/sync-helper-sources.ts +14 -50
  83. package/scripts/test-file-durations.json +1 -44
  84. package/scripts/workflow-contract.ts +1 -1
  85. package/src/cli/commands/architecture-projection.ts +30 -2
  86. package/src/cli/commands/brain.ts +165 -2
  87. package/src/cli/commands/capability-context.ts +36 -30
  88. package/src/cli/commands/catch-up.ts +45 -0
  89. package/src/cli/commands/doctor.ts +4 -3
  90. package/src/cli/commands/fleet.ts +8 -320
  91. package/src/cli/commands/global-runtime.ts +17 -79
  92. package/src/cli/commands/herdr.ts +25 -2
  93. package/src/cli/commands/init-hook.ts +69 -45
  94. package/src/cli/commands/init.ts +22 -151
  95. package/src/cli/commands/mcp.ts +2 -13
  96. package/src/cli/commands/publication.ts +19 -448
  97. package/src/cli/commands/run.ts +15 -6
  98. package/src/cli/commands/state.ts +45 -1
  99. package/src/cli/hook/agent-notice.ts +284 -0
  100. package/src/cli/hook/board-slice-context.ts +1 -11
  101. package/src/cli/hook/handler-contract.ts +2 -0
  102. package/src/cli/hook/handler-registry.ts +27 -11
  103. package/src/cli/hook/hook-protocol.ts +8 -4
  104. package/src/cli/hook/mutation-bash.ts +165 -0
  105. package/src/cli/hook/mutation-guard.ts +28 -21
  106. package/src/cli/hook/mutation-protected-dirs.ts +6 -0
  107. package/src/cli/hook/protected-path-notice.ts +149 -0
  108. package/src/cli/hook/return-channel.ts +24 -7
  109. package/src/cli/hook/route-registry.ts +13 -5
  110. package/src/cli/hook/runtime.ts +1 -0
  111. package/src/cli/hook/session-context-budget.ts +2 -0
  112. package/src/cli/hook/session-context.ts +16 -24
  113. package/src/cli/hook/standing-orders-context.ts +38 -0
  114. package/src/cli/hook/stop-handler.ts +32 -89
  115. package/src/cli/hook/subagent-context.ts +4 -13
  116. package/src/cli/index.ts +22 -16
  117. package/src/cli/installer/global-context.ts +554 -0
  118. package/src/cli/installer/install-profile.ts +22 -4
  119. package/src/cli/installer/managed-entries.ts +1 -0
  120. package/src/cli/installer/uninstall.ts +6 -10
  121. package/src/cli/installer/waza-rules.ts +140 -0
  122. package/src/cli/mcp/auth.ts +0 -6
  123. package/src/cli/mcp/fleet-tools.ts +3 -272
  124. package/src/cli/mcp/instructions.ts +1 -9
  125. package/src/cli/mcp/oauth.ts +3 -22
  126. package/src/cli/mcp/policy.ts +2 -16
  127. package/src/cli/mcp/server.ts +4 -25
  128. package/src/cli/mcp/setup.ts +10 -17
  129. package/src/cli/mcp/state-tools.ts +0 -10
  130. package/src/cli/mcp/tools.ts +1 -11
  131. package/src/cli/mcp/transports/http.ts +15 -58
  132. package/src/cli/mcp/transports/stdio.ts +0 -5
  133. package/src/cli/mcp/types.ts +1 -1
  134. package/src/cli/runtime/candidate-reconciliation.ts +4 -0
  135. package/src/core/adoption/standard-plan.ts +8 -5
  136. package/src/core/architecture/module-view.ts +3 -15
  137. package/src/core/architecture/projection.ts +93 -1
  138. package/src/core/capabilities/registry.ts +66 -249
  139. package/src/core/decision/pane-status.d.mts +9 -0
  140. package/src/core/decision/pane-status.mjs +74 -0
  141. package/src/core/dev-activity/brief.ts +95 -0
  142. package/src/core/dev-activity/decode.ts +5 -5
  143. package/src/core/dev-activity/projection.ts +3 -17
  144. package/src/core/dev-activity/types.ts +3 -6
  145. package/src/core/engineers/agent-runtime-effect.ts +5 -22
  146. package/src/core/engineers/engineering-overlay.ts +8 -32
  147. package/src/core/engineers/principal-claim.ts +1 -123
  148. package/src/core/engineers/profile-binding.ts +4 -9
  149. package/src/core/engineers/scheduling.ts +0 -205
  150. package/src/core/evidence/checkpoint.ts +100 -3
  151. package/src/core/fleet/board.ts +1 -2
  152. package/src/core/fleet/task-offer.ts +0 -28
  153. package/src/core/fleet/task-reply.ts +0 -21
  154. package/src/core/operator/architecture.ts +6 -6
  155. package/src/core/operator/organization-snapshot.ts +8 -12
  156. package/src/core/operator/repository-snapshot.ts +0 -2
  157. package/src/core/publication/feedback.ts +4 -233
  158. package/src/core/publication/publication-lifecycle.ts +1 -63
  159. package/src/core/skill-surface/waza-shared-rules.json +4 -0
  160. package/src/core/state/attempt-ledger.ts +6 -2
  161. package/src/core/state/coordination-identity.ts +4 -447
  162. package/src/core/state/project-board-slice.ts +1 -8
  163. package/src/core/state/project-board.ts +8 -77
  164. package/src/core/state/project-continuation-envelope.ts +6 -115
  165. package/src/core/state/project-effective-state.ts +3 -183
  166. package/src/core/state/project-state-snapshot.ts +0 -4
  167. package/src/core/state/sprint-backlog-rows.ts +1 -31
  168. package/src/core/state/types.ts +8 -64
  169. package/src/core/tools/catalog.ts +1 -1
  170. package/src/core/upgrade/legacy-inventory.ts +3 -3
  171. package/src/effects/architecture/archctx-provider.ts +183 -55
  172. package/src/effects/architecture/model-reader.ts +78 -124
  173. package/src/effects/architecture/projection-writer.ts +44 -0
  174. package/src/effects/artifact-retention.ts +5 -5
  175. package/src/effects/capabilities/archcontext-owners.ts +46 -6
  176. package/src/effects/dev-activity/collector.ts +4 -52
  177. package/src/effects/engineers/agent-runtime-effect-store.ts +4 -34
  178. package/src/effects/engineers/binding-store.ts +3 -390
  179. package/src/effects/engineers/claim-actor-store.ts +2 -78
  180. package/src/effects/engineers/dependency-authority.ts +5 -6
  181. package/src/effects/engineers/engineering-overlay.ts +6 -21
  182. package/src/effects/engineers/profile-store.ts +11 -23
  183. package/src/effects/engineers/scheduling.ts +6 -223
  184. package/src/effects/evidence/attested-import.ts +10 -2
  185. package/src/effects/evidence/checkpoint-store.ts +34 -15
  186. package/src/effects/evidence/event-log.ts +82 -27
  187. package/src/effects/evidence/recovery-materializer.ts +24 -17
  188. package/src/effects/fleet/acquire.ts +7 -787
  189. package/src/effects/fleet/task-inbox.ts +46 -378
  190. package/src/effects/hook-state-file.ts +42 -0
  191. package/src/effects/locking/exclusive-directory-lock.ts +0 -20
  192. package/src/effects/operator/docs-graph.ts +33 -18
  193. package/src/effects/operator/repository-snapshot-worker.ts +0 -4
  194. package/src/effects/operator/repository-snapshot.ts +6 -15
  195. package/src/effects/operator/server.ts +9 -15
  196. package/src/effects/process-group-launcher.ts +7 -1
  197. package/src/effects/publication/feedback-store.ts +3 -245
  198. package/src/effects/publication/feedback.ts +3 -694
  199. package/src/effects/publication/publication-lifecycle.ts +6 -984
  200. package/src/effects/publication/publication-receipt.ts +21 -690
  201. package/src/effects/refactor/recommendations.ts +1 -1
  202. package/src/effects/review/diff-fingerprint.ts +1 -1
  203. package/src/effects/state/attempt-ledger-store.ts +102 -4
  204. package/src/effects/state/coordination-claim-token.ts +3 -228
  205. package/src/effects/state/coordination-cutover.ts +2 -2
  206. package/src/effects/state/coordination-lease-liveness-store.ts +4 -43
  207. package/src/effects/state/coordination-lease-store.ts +6 -261
  208. package/src/effects/state/coordination-worktree-topology.ts +1 -8
  209. package/src/effects/state/resolve-continuation-envelope.ts +0 -8
  210. package/src/effects/state/resolve-effective-state.ts +158 -318
  211. package/src/effects/strategy/context.ts +1 -1
  212. package/src/effects/terminal/herdr-decision.ts +92 -0
  213. package/src/operator-web/App.tsx +10 -19
  214. package/src/operator-web/Board.tsx +1 -2
  215. package/src/operator-web/ModuleGraph.tsx +5 -5
  216. package/src/operator-web/OrganizationSummary.tsx +0 -34
  217. package/src/operator-web/RepositoryWorkspace.tsx +1 -14
  218. package/src/operator-web/app.css +1 -2
  219. package/src/operator-web/dev-activity.ts +0 -1
  220. package/src/operator-web/fixture.ts +3 -15
  221. package/src/operator-web/fixtures/dev-activity.ts +2 -5
  222. package/src/operator-web/fleet-api.ts +3 -7
  223. package/src/operator-web/i18n.ts +2 -40
  224. package/src/operator-web/types.ts +4 -10
  225. package/assets/hermes/README.md +0 -88
  226. package/assets/hermes/repo-harness-pm/__init__.py +0 -81
  227. package/assets/hermes/repo-harness-pm/plugin.yaml +0 -9
  228. package/assets/hermes/setup.py +0 -154
  229. package/assets/hermes/test_adapter.py +0 -63
  230. package/assets/hermes/verify.py +0 -116
  231. package/assets/initializer-question-pack.v4.json +0 -556
  232. package/assets/initializer-question-pack.v4.schema.json +0 -169
  233. package/assets/partials/01-header.partial.md +0 -10
  234. package/assets/partials/02-iron-rules.partial.md +0 -30
  235. package/assets/partials/03-philosophy.partial.md +0 -53
  236. package/assets/partials/04-project-structure.partial.md +0 -56
  237. package/assets/partials/05-workflow.partial.md +0 -79
  238. package/assets/partials/06-cloudflare.partial.md +0 -20
  239. package/assets/partials/07-footer.partial.md +0 -38
  240. package/assets/partials/08-orchestration.partial.md +0 -54
  241. package/assets/partials/09-compact-instructions.partial.md +0 -11
  242. package/assets/partials/_assembly-order.md +0 -40
  243. package/assets/partials-agents/01-header.partial.md +0 -8
  244. package/assets/partials-agents/02-operating-mode.partial.md +0 -43
  245. package/assets/partials-agents/03-orchestration.partial.md +0 -47
  246. package/assets/partials-agents/04-task-protocol.partial.md +0 -67
  247. package/assets/partials-agents/05-coding-constraints.partial.md +0 -20
  248. package/assets/partials-agents/06-quality-safety.partial.md +0 -24
  249. package/assets/partials-agents/07-cloudflare.partial.md +0 -9
  250. package/assets/partials-agents/08-deep-docs.partial.md +0 -32
  251. package/assets/pipeline-record.v2.schema.json +0 -1216
  252. package/assets/templates/helpers/acceptance-receipt.ts +0 -1994
  253. package/assets/templates/helpers/archive-workflow.sh +0 -938
  254. package/assets/templates/helpers/capability-config.ts +0 -367
  255. package/assets/templates/helpers/capture-plan.sh +0 -29
  256. package/assets/templates/helpers/change-assessment.ts +0 -241
  257. package/assets/templates/helpers/check-agent-tooling.sh +0 -2159
  258. package/assets/templates/helpers/check-brain-manifest.sh +0 -244
  259. package/assets/templates/helpers/check-context-files.sh +0 -50
  260. package/assets/templates/helpers/check-deploy-sql-order.sh +0 -393
  261. package/assets/templates/helpers/check-skill-version.ts +0 -185
  262. package/assets/templates/helpers/check-task-sync.sh +0 -24
  263. package/assets/templates/helpers/check-task-workflow.sh +0 -25
  264. package/assets/templates/helpers/classify-historical-plans.ts +0 -254
  265. package/assets/templates/helpers/codex-handoff-resume.sh +0 -66
  266. package/assets/templates/helpers/contract-run.ts +0 -1010
  267. package/assets/templates/helpers/contract-worktree-runtime.ts +0 -118
  268. package/assets/templates/helpers/contract-worktree.sh +0 -2142
  269. package/assets/templates/helpers/cutover-closure.ts +0 -196
  270. package/assets/templates/helpers/ensure-task-workflow.sh +0 -11
  271. package/assets/templates/helpers/evidence-gc.ts +0 -283
  272. package/assets/templates/helpers/factor-lab-check.sh +0 -77
  273. package/assets/templates/helpers/factor-lab-new.sh +0 -100
  274. package/assets/templates/helpers/factor-lab-promote.sh +0 -90
  275. package/assets/templates/helpers/factor-lab-reject.sh +0 -72
  276. package/assets/templates/helpers/harness-trace-grade.sh +0 -153
  277. package/assets/templates/helpers/heartbeat-triage.sh +0 -337
  278. package/assets/templates/helpers/inspect-project-state.ts +0 -290
  279. package/assets/templates/helpers/install-agent-fleet.sh +0 -370
  280. package/assets/templates/helpers/maintenance-triage.sh +0 -167
  281. package/assets/templates/helpers/merge-gate.ts +0 -306
  282. package/assets/templates/helpers/migrate-verification-plan.ts +0 -221
  283. package/assets/templates/helpers/new-plan.sh +0 -192
  284. package/assets/templates/helpers/new-spec.sh +0 -50
  285. package/assets/templates/helpers/new-sprint.sh +0 -50
  286. package/assets/templates/helpers/plan-to-todo.sh +0 -17
  287. package/assets/templates/helpers/prepare-codex-handoff.sh +0 -58
  288. package/assets/templates/helpers/prepare-handoff.sh +0 -57
  289. package/assets/templates/helpers/recovery-view-cli.ts +0 -121
  290. package/assets/templates/helpers/refresh-current-status.sh +0 -548
  291. package/assets/templates/helpers/run-bounded-verifier-command.ts +0 -243
  292. package/assets/templates/helpers/runtime-evidence-receipt.ts +0 -60
  293. package/assets/templates/helpers/select-agent-context-blocks.sh +0 -141
  294. package/assets/templates/helpers/ship-worktrees.sh +0 -1448
  295. package/assets/templates/helpers/sprint-backlog.sh +0 -1238
  296. package/assets/templates/helpers/summarize-failures.sh +0 -93
  297. package/assets/templates/helpers/switch-plan.sh +0 -150
  298. package/assets/templates/helpers/sync-brain-docs.sh +0 -381
  299. package/assets/templates/helpers/validate-harness-profile-benchmark.ts +0 -39
  300. package/assets/templates/helpers/verification-plan.ts +0 -99
  301. package/assets/templates/helpers/verify-contract.sh +0 -40
  302. package/assets/templates/helpers/verify-sprint.sh +0 -40
  303. package/assets/templates/helpers/workflow-contract.ts +0 -304
  304. package/assets/templates/helpers/workstream-sync.sh +0 -300
  305. package/assets/templates/helpers/worktree-merge-lib.sh +0 -106
  306. package/dist/operator-ui/assets/ArchitectureWorkspace-CR9FiYz3.js +0 -1
  307. package/dist/operator-ui/assets/index-jrycyCyb.js +0 -18
  308. package/references/dot-pm-control.md +0 -140
  309. package/references/pm-operations.md +0 -131
  310. package/scripts/assemble-template.ts +0 -1146
  311. package/scripts/check-brain-manifest.sh +0 -244
  312. package/scripts/contract-run.ts +0 -1010
  313. package/scripts/initializer-question-pack.ts +0 -177
  314. package/scripts/me2b-runtime-admission-canary.ts +0 -376
  315. package/scripts/new-sprint.sh +0 -50
  316. package/scripts/sprint-backlog.sh +0 -1238
  317. package/scripts/sync-brain-docs.sh +0 -381
  318. package/src/cli/commands/delegation.ts +0 -228
  319. package/src/cli/commands/engineer.ts +0 -831
  320. package/src/cli/commands/interface-change.ts +0 -139
  321. package/src/cli/commands/pm.ts +0 -35
  322. package/src/cli/commands/sprint.ts +0 -229
  323. package/src/cli/commands/verified-context.ts +0 -141
  324. package/src/cli/hook/task-inbox-handler.ts +0 -96
  325. package/src/cli/mcp/engineer-tools.ts +0 -789
  326. package/src/cli/mcp/pm-server.ts +0 -168
  327. package/src/core/engineers/delegation.ts +0 -755
  328. package/src/core/engineers/interface-change.ts +0 -578
  329. package/src/core/engineers/module-message.ts +0 -522
  330. package/src/core/engineers/task-freeze.ts +0 -235
  331. package/src/core/engineers/verified-context.ts +0 -722
  332. package/src/core/engineers/work-demand.ts +0 -393
  333. package/src/core/operator/decision-inventory.ts +0 -96
  334. package/src/core/pm/protocol.ts +0 -96
  335. package/src/core/state/sprint-row-completion.ts +0 -128
  336. package/src/core/state/sprint-schema-migration.ts +0 -249
  337. package/src/core/state/sprint-schema-v1.ts +0 -206
  338. package/src/core/workflow/artifact-requirement-policy.ts +0 -182
  339. package/src/core/workflow/operation-readiness.ts +0 -289
  340. package/src/effects/engineers/acquire.ts +0 -222
  341. package/src/effects/engineers/bound-task-rotation.ts +0 -30
  342. package/src/effects/engineers/delegated-run-store.ts +0 -996
  343. package/src/effects/engineers/interface-change-store.ts +0 -487
  344. package/src/effects/engineers/module-inbox.ts +0 -770
  345. package/src/effects/engineers/principal-store.ts +0 -170
  346. package/src/effects/engineers/principal.ts +0 -76
  347. package/src/effects/engineers/scheduling-acquire-next.ts +0 -506
  348. package/src/effects/engineers/scheduling-acquire.ts +0 -181
  349. package/src/effects/engineers/task-freeze-store.ts +0 -429
  350. package/src/effects/engineers/task-inbox.ts +0 -65
  351. package/src/effects/engineers/verified-context-store.ts +0 -580
  352. package/src/effects/engineers/work-demand-materialization.ts +0 -62
  353. package/src/effects/engineers/work-demand-store.ts +0 -114
  354. package/src/effects/pm/host.ts +0 -48
  355. package/src/effects/pm/operations.ts +0 -209
  356. package/src/effects/state/coordination-sprint.ts +0 -1261
  357. package/src/effects/state/owed-capabilities.ts +0 -150
  358. package/src/effects/state/sprint-schema-migration.ts +0 -469
package/AGENTS.md CHANGED
@@ -6,21 +6,20 @@
6
6
  - Read the current request and repo-local agent context, work on a branch, make bounded commits, verify once, then report the PR outcome.
7
7
  - Read `tasks/lessons.md` at session start and apply its active lessons. Current repo state and evidence override a lesson.
8
8
  - Finish the main task first. Fix a small problem found on the way directly. For a large problem, open a GitHub issue before you work on it.
9
- - Write output text (docs, PR descriptions, commit messages, reports) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words; write Chinese output the same way, with short sentences and one idea per sentence.
10
9
  - Ordinary tasks use the PR description: goal, scope, changes, verification, risk and rollback. No mandatory plan/contract/review/notes chain; notes are only for non-obvious decisions.
11
10
  - Keep four hard boundaries: main publication, deletion, credentials/permissions, and release/production operations.
12
11
  - Only when the current task explicitly authorizes main publication may a model squash-merge after automated checks pass and GitHub has no outstanding change requests or unresolved review threads; an explicit no-merge instruction always wins. Push/tag still require task authorization; credentials/permissions, other deletion and release/production retain their separate approval boundaries. Record authorized publication, the provider-confirmed merge SHA and parent SHA, `git revert <squash-commit>`, and the daily report. Do not create rollback tags.
13
12
  - Default worktrees are at `/tmp/<repo>-wt-<slug>` (Windows: `os.tmpdir()`). Commit or push before a reboot or a tmp cleanup.
14
13
  - Closeout and sweep remove only merged, clean and unowned worktrees. To keep one, give it an unmerged commit, keep it dirty, or mark or lease it. Details: [agentic-development-flow](docs/reference-configs/agentic-development-flow.md).
15
14
  - Automatically delete only merged, clean worktrees/branches; ask the user for every other deletion. Credentials/permissions (including confirmation bypass) and release/production operations require user approval.
16
- - Use gatekeeper/cross-model review for large changes, security/permissions, or unresolved model uncertainty; ordinary steps record diagnostics without approval loops.
15
+ - Select independent review by the diff's [Review by risk](docs/reference-configs/agentic-development-flow.md#review-by-risk) tier: none for low, one fresh-context review for medium, gatekeeper plus cross-model review for high; ordinary steps record diagnostics without approval loops.
17
16
  - When you delegate, investigate first, then split work by write ownership. Give each parallel writer its own worktree from a clean source. Implementation sub-agents edit only their scope. They do not run build, typecheck or tests. They commit early in their own worktree and return early. In a shared checkout they do not commit; the parent commits. Evidence roles run the named check that is their task and do not commit. The parent agent owns task management, conflict resolution, build, typecheck, tests and integration. After integration, the parent removes each sub-agent worktree and branch whose commits are in the task branch and whose checkout is clean. It also removes the intermediate build output and temporary files that the work created. Other deletion still needs the user.
18
17
  - Model division and cross-model dispatch/review follow [Herdr Dispatch](docs/reference-configs/herdr-notify.md#herdr-dispatch).
19
18
  - GitHub operations (PRs, reviews, merges, labels, releases, comments) go only through the gh/git CLI or the GitHub API. Never use simulated browser clicks on github.com: the account can be banned.
20
19
  - When one PR changes both test assertions and implementation code, run one read-only review focused on tests bent to fit a bug (on-demand, not a restored gate; dispatch per the herdr guide).
21
20
  - `.archcontext/model/` owns architecture boundaries; read `docs/architecture/` on demand and update only real responsibility changes. Architecture diagnostics do not block work or author nested agent instructions.
22
- - When a branch changes a capability's responsibility, entrypoints, relations or flows, run `repo-harness architecture-projection check --json` before review and follow `repo-harness-architecture` (`assets/skill-commands/repo-harness-architecture/references/worker.md`).
23
- - Preserve `agents/fleet/`, release checklists and downstream `assets/templates` / `assets/partials*`. `.ai/harness/workflow-contract.json` is the opt-in marker. `assets/workflow-contract.v1.json` is the contract.
21
+ - When a branch changes a capability's responsibility, entrypoints, relations or flows, follow `repo-harness-architecture` (`assets/skill-commands/repo-harness-architecture/references/worker.md`). Handle architecture debt in the model and human prose. The archctx rolling writer publishes generated regions and the projection manifest; do not apply and commit them in a feature PR.
22
+ - Preserve `agents/fleet/`, release checklists and downstream `assets/templates`. `.ai/harness/workflow-contract.json` is the opt-in marker. `assets/workflow-contract.v1.json` is the contract.
24
23
  - `_ops/` is ignored private operations state: never commit or agent-edit it. `_ref/` is an ignored reference cache; cite influential revisions. Follow deploy SQL policy, otherwise use ascending 4-digit files under `deploy/sql/`.
25
24
 
26
25
  ## GitHub Issue Claims
@@ -65,6 +64,18 @@
65
64
  - On resume, verify the live checkout and source artifacts before reusing a result; `tasks/current.md` is an optional local read model.
66
65
  - Preserve dirty work and other workers' edits; hand back an ownership conflict instead of discarding their changes.
67
66
 
67
+ ## Writing
68
+ - Write output text (docs, PR descriptions, commit messages, reports, research notes) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words. Write Chinese output the same way.
69
+ - Prefer high information density: evidence first, mechanisms and business effect explained, complex reasoning allowed, no explanatory repetition. Lead with the main finding, key number or key mechanism. State known facts and supported conclusions directly, without lead-ins such as "note that", "this shows to some extent" or "it must be stressed". Put the evidence grade in the wording, not in a separate caveat.
70
+ - Give time, subject, action, size and source in one sentence. Keep only the qualifiers that change the fact, the statistics or the inference. Keep text that explains a cause or mechanism, separates confounded causes, or builds a new classification.
71
+ - Delete: comments on your own process or work; a second explanation of a fact that already states its source, scope and meaning; "do not read this as" warnings; repeated disclaimers; step-by-step tutorials and hypothetical teaching examples; prose that repeats a comparison table; repeated summaries and claims about the importance of the result.
72
+ - A conclusion must add a cause, mechanism, constraint, testable prediction or business effect. A restatement of earlier facts is not a conclusion.
73
+ - Prefer real companies, products, contracts, prices and user behavior as examples. Use a table for multi-object or multi-metric comparison. Split sections by question; drop introductions, transitions and summaries that exist only for completeness.
74
+ - Paragraph deletion test: if removing a paragraph leaves the reader's understanding of facts, numbers, mechanism, cause, conditions and conclusion unchanged, remove it. Check first the paragraphs that start with "this shows", "note that", "therefore", "however" or "it must be stressed".
75
+
76
+ ## UI
77
+ - Avoid unnecessary secondary labels and descriptions. Let the layout do the explaining.
78
+
68
79
  ## Codex
69
80
  - Own backend implementation and testing; Claude owns frontend implementation and interaction, and the parent coordinates scope and integration.
70
81
  - User-level `~/.codex/hooks.json` hooks invoke `repo-harness-hook`; its typed route registry selects one in-process handler. Operator helpers run from the package through `repo-harness run <helper>`.
package/CLAUDE.md CHANGED
@@ -6,21 +6,20 @@
6
6
  - Read the current request and repo-local agent context, work on a branch, make bounded commits, verify once, then report the PR outcome.
7
7
  - Read `tasks/lessons.md` at session start and apply its active lessons. Current repo state and evidence override a lesson.
8
8
  - Finish the main task first. Fix a small problem found on the way directly. For a large problem, open a GitHub issue before you work on it.
9
- - Write output text (docs, PR descriptions, commit messages, reports) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words; write Chinese output the same way, with short sentences and one idea per sentence.
10
9
  - Ordinary tasks use the PR description: goal, scope, changes, verification, risk and rollback. No mandatory plan/contract/review/notes chain; notes are only for non-obvious decisions.
11
10
  - Keep four hard boundaries: main publication, deletion, credentials/permissions, and release/production operations.
12
11
  - Only when the current task explicitly authorizes main publication may a model squash-merge after automated checks pass and GitHub has no outstanding change requests or unresolved review threads; an explicit no-merge instruction always wins. Push/tag still require task authorization; credentials/permissions, other deletion and release/production retain their separate approval boundaries. Record authorized publication, the provider-confirmed merge SHA and parent SHA, `git revert <squash-commit>`, and the daily report. Do not create rollback tags.
13
12
  - Default worktrees are at `/tmp/<repo>-wt-<slug>` (Windows: `os.tmpdir()`). Commit or push before a reboot or a tmp cleanup.
14
13
  - Closeout and sweep remove only merged, clean and unowned worktrees. To keep one, give it an unmerged commit, keep it dirty, or mark or lease it. Details: [agentic-development-flow](docs/reference-configs/agentic-development-flow.md).
15
14
  - Automatically delete only merged, clean worktrees/branches; ask the user for every other deletion. Credentials/permissions (including confirmation bypass) and release/production operations require user approval.
16
- - Use gatekeeper/cross-model review for large changes, security/permissions, or unresolved model uncertainty; ordinary steps record diagnostics without approval loops.
15
+ - Select independent review by the diff's [Review by risk](docs/reference-configs/agentic-development-flow.md#review-by-risk) tier: none for low, one fresh-context review for medium, gatekeeper plus cross-model review for high; ordinary steps record diagnostics without approval loops.
17
16
  - When you delegate, investigate first, then split work by write ownership. Give each parallel writer its own worktree from a clean source. Implementation sub-agents edit only their scope. They do not run build, typecheck or tests. They commit early in their own worktree and return early. In a shared checkout they do not commit; the parent commits. Evidence roles run the named check that is their task and do not commit. The parent agent owns task management, conflict resolution, build, typecheck, tests and integration. After integration, the parent removes each sub-agent worktree and branch whose commits are in the task branch and whose checkout is clean. It also removes the intermediate build output and temporary files that the work created. Other deletion still needs the user.
18
17
  - Model division and cross-model dispatch/review follow [Herdr Dispatch](docs/reference-configs/herdr-notify.md#herdr-dispatch).
19
18
  - GitHub operations (PRs, reviews, merges, labels, releases, comments) go only through the gh/git CLI or the GitHub API. Never use simulated browser clicks on github.com: the account can be banned.
20
19
  - When one PR changes both test assertions and implementation code, run one read-only review focused on tests bent to fit a bug (on-demand, not a restored gate; dispatch per the herdr guide).
21
20
  - `.archcontext/model/` owns architecture boundaries; read `docs/architecture/` on demand and update only real responsibility changes. Architecture diagnostics do not block work or author nested agent instructions.
22
- - When a branch changes a capability's responsibility, entrypoints, relations or flows, run `repo-harness architecture-projection check --json` before review and follow `repo-harness-architecture` (`assets/skill-commands/repo-harness-architecture/references/worker.md`).
23
- - Preserve `agents/fleet/`, release checklists and downstream `assets/templates` / `assets/partials*`. `.ai/harness/workflow-contract.json` is the opt-in marker. `assets/workflow-contract.v1.json` is the contract.
21
+ - When a branch changes a capability's responsibility, entrypoints, relations or flows, follow `repo-harness-architecture` (`assets/skill-commands/repo-harness-architecture/references/worker.md`). Handle architecture debt in the model and human prose. The archctx rolling writer publishes generated regions and the projection manifest; do not apply and commit them in a feature PR.
22
+ - Preserve `agents/fleet/`, release checklists and downstream `assets/templates`. `.ai/harness/workflow-contract.json` is the opt-in marker. `assets/workflow-contract.v1.json` is the contract.
24
23
  - `_ops/` is ignored private operations state: never commit or agent-edit it. `_ref/` is an ignored reference cache; cite influential revisions. Follow deploy SQL policy, otherwise use ascending 4-digit files under `deploy/sql/`.
25
24
 
26
25
  ## GitHub Issue Claims
@@ -65,6 +64,18 @@
65
64
  - On resume, verify the live checkout and source artifacts before reusing a result; `tasks/current.md` is an optional local read model.
66
65
  - Preserve dirty work and other workers' edits; hand back an ownership conflict instead of discarding their changes.
67
66
 
67
+ ## Writing
68
+ - Write output text (docs, PR descriptions, commit messages, reports, research notes) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words. Write Chinese output the same way.
69
+ - Prefer high information density: evidence first, mechanisms and business effect explained, complex reasoning allowed, no explanatory repetition. Lead with the main finding, key number or key mechanism. State known facts and supported conclusions directly, without lead-ins such as "note that", "this shows to some extent" or "it must be stressed". Put the evidence grade in the wording, not in a separate caveat.
70
+ - Give time, subject, action, size and source in one sentence. Keep only the qualifiers that change the fact, the statistics or the inference. Keep text that explains a cause or mechanism, separates confounded causes, or builds a new classification.
71
+ - Delete: comments on your own process or work; a second explanation of a fact that already states its source, scope and meaning; "do not read this as" warnings; repeated disclaimers; step-by-step tutorials and hypothetical teaching examples; prose that repeats a comparison table; repeated summaries and claims about the importance of the result.
72
+ - A conclusion must add a cause, mechanism, constraint, testable prediction or business effect. A restatement of earlier facts is not a conclusion.
73
+ - Prefer real companies, products, contracts, prices and user behavior as examples. Use a table for multi-object or multi-metric comparison. Split sections by question; drop introductions, transitions and summaries that exist only for completeness.
74
+ - Paragraph deletion test: if removing a paragraph leaves the reader's understanding of facts, numbers, mechanism, cause, conditions and conclusion unchanged, remove it. Check first the paragraphs that start with "this shows", "note that", "therefore", "however" or "it must be stressed".
75
+
76
+ ## UI
77
+ - Avoid unnecessary secondary labels and descriptions. Let the layout do the explaining.
78
+
68
79
  ## Claude Code
69
80
  - Own frontend implementation and interaction; Codex owns backend implementation and testing, and the parent coordinates scope and integration.
70
81
  - Use Claude Code's available tools within granted permissions; changes to tool grants, hooks or confirmation bypass require approval of the exact change.