repo-harness 0.4.0 → 0.4.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 (93) hide show
  1. package/AGENTS.md +4 -4
  2. package/CLAUDE.md +4 -4
  3. package/README.es.md +37 -2
  4. package/README.fr.md +38 -2
  5. package/README.ja.md +35 -2
  6. package/README.md +50 -36
  7. package/README.zh-CN.md +52 -23
  8. package/SKILL.md +22 -19
  9. package/assets/AGENTS.md +1 -1
  10. package/assets/CLAUDE.md +1 -1
  11. package/assets/hooks/hook-input.sh +17 -1
  12. package/assets/hooks/lib/session-state.sh +19 -2
  13. package/assets/hooks/lib/workflow-state.sh +11 -20
  14. package/assets/hooks/post-edit-guard.sh +4 -4
  15. package/assets/hooks/post-tool-observer.sh +5 -103
  16. package/assets/hooks/prompt-guard.sh +3 -3
  17. package/assets/hooks/session-start-context.sh +7 -34
  18. package/assets/partials/05-workflow.partial.md +2 -2
  19. package/assets/partials/07-footer.partial.md +1 -1
  20. package/assets/partials-agents/02-operating-mode.partial.md +1 -1
  21. package/assets/partials-agents/03-orchestration.partial.md +3 -3
  22. package/assets/partials-agents/04-task-protocol.partial.md +4 -4
  23. package/assets/partials-agents/08-deep-docs.partial.md +1 -1
  24. package/assets/reference-configs/agentic-development-flow.md +4 -4
  25. package/assets/reference-configs/development-protocol.md +1 -1
  26. package/assets/reference-configs/document-generation.md +1 -1
  27. package/assets/reference-configs/handoff-protocol.md +5 -9
  28. package/assets/reference-configs/harness-overview.md +2 -2
  29. package/assets/reference-configs/hook-operations.md +5 -3
  30. package/assets/reference-configs/sprint-contracts.md +2 -2
  31. package/assets/skill-commands/repo-harness-plan/SKILL.md +2 -2
  32. package/assets/skill-commands/repo-harness-repair/SKILL.md +1 -1
  33. package/assets/skill-commands/repo-harness-sprint/SKILL.md +2 -2
  34. package/assets/skill-version.json +6 -2
  35. package/assets/templates/contract.template.md +2 -2
  36. package/assets/templates/helpers/architecture-event.ts +1 -1
  37. package/assets/templates/helpers/archive-workflow.sh +8 -8
  38. package/assets/templates/helpers/capture-plan.sh +2 -2
  39. package/assets/templates/helpers/check-task-sync.sh +1 -1
  40. package/assets/templates/helpers/check-task-workflow.sh +17 -8
  41. package/assets/templates/helpers/codex-handoff-resume.sh +1 -4
  42. package/assets/templates/helpers/context-contract-sync.sh +1 -1
  43. package/assets/templates/helpers/ensure-task-workflow.sh +10 -32
  44. package/assets/templates/helpers/heartbeat-triage.sh +2 -2
  45. package/assets/templates/helpers/inspect-project-state.ts +15 -1
  46. package/assets/templates/helpers/migrate-workflow-docs.ts +54 -7
  47. package/assets/templates/helpers/new-plan.sh +1 -1
  48. package/assets/templates/helpers/plan-to-todo.sh +13 -13
  49. package/assets/templates/helpers/prepare-codex-handoff.sh +3 -23
  50. package/assets/templates/helpers/refresh-current-status.sh +1 -1
  51. package/assets/templates/helpers/ship-worktrees.sh +1 -1
  52. package/assets/templates/helpers/sprint-backlog.sh +5 -5
  53. package/assets/templates/helpers/switch-plan.sh +1 -1
  54. package/assets/templates/helpers/workstream-sync.sh +1 -1
  55. package/assets/templates/plan.template.md +1 -1
  56. package/assets/templates/sprint.template.md +1 -1
  57. package/assets/workflow-contract.v1.json +34 -8
  58. package/docs/reference-configs/agentic-development-flow.md +4 -4
  59. package/docs/reference-configs/development-protocol.md +1 -1
  60. package/docs/reference-configs/document-generation.md +1 -1
  61. package/docs/reference-configs/handoff-protocol.md +5 -9
  62. package/docs/reference-configs/harness-overview.md +2 -2
  63. package/docs/reference-configs/hook-operations.md +5 -3
  64. package/docs/reference-configs/sprint-contracts.md +2 -2
  65. package/package.json +1 -1
  66. package/scripts/architecture-event.ts +1 -1
  67. package/scripts/archive-workflow.sh +8 -8
  68. package/scripts/capture-plan.sh +2 -2
  69. package/scripts/check-task-sync.sh +1 -1
  70. package/scripts/check-task-workflow.sh +17 -8
  71. package/scripts/codex-handoff-resume.sh +1 -4
  72. package/scripts/context-contract-sync.sh +1 -1
  73. package/scripts/create-project-dirs.sh +6 -20
  74. package/scripts/ensure-task-workflow.sh +10 -32
  75. package/scripts/heartbeat-triage.sh +2 -2
  76. package/scripts/init-project.sh +7 -26
  77. package/scripts/inspect-project-state.ts +15 -1
  78. package/scripts/lib/project-init-lib.sh +152 -40
  79. package/scripts/migrate-project-template.sh +97 -23
  80. package/scripts/migrate-workflow-docs.ts +54 -7
  81. package/scripts/new-plan.sh +1 -1
  82. package/scripts/plan-to-todo.sh +13 -13
  83. package/scripts/prepare-codex-handoff.sh +3 -23
  84. package/scripts/refresh-current-status.sh +1 -1
  85. package/scripts/ship-worktrees.sh +1 -1
  86. package/scripts/sprint-backlog.sh +5 -5
  87. package/scripts/switch-plan.sh +1 -1
  88. package/scripts/sync-codex-installed-copies.sh +0 -3
  89. package/scripts/workstream-sync.sh +1 -1
  90. package/src/cli/commands/status.ts +1 -1
  91. package/src/cli/hook/runtime.ts +5 -2
  92. package/assets/templates/helpers/context-budget.ts +0 -463
  93. package/scripts/context-budget.ts +0 -463
package/AGENTS.md CHANGED
@@ -5,8 +5,8 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
5
5
  ## Canonical Workflow Files
6
6
 
7
7
  - `tasks/current.md` for the tracked current-status snapshot derived from workflow artifacts
8
- - `tasks/todo.md` for deferred medium/long-term goals, not active execution checklists
9
- - `tasks/sprints/` for program-level sprint PRDs and ordered backlogs, operated by `scripts/sprint-backlog.sh` (Sprint = program layer; task contracts stay the execution slices)
8
+ - `tasks/todos.md` for deferred medium/long-term goals, not active execution checklists
9
+ - `plans/prds/` for program-level sprint PRDs and ordered backlogs, operated by `scripts/sprint-backlog.sh` (Sprint = program layer; task contracts stay the execution slices)
10
10
  - `.ai/context/capabilities.json` for the capability registry and longest-prefix context boundaries
11
11
  - `tasks/workstreams/` for capability long-running workstreams that project durable progress into local contracts
12
12
  - `tasks/lessons.md` for correction-derived rules
@@ -24,7 +24,7 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
24
24
  - Sync `tasks/` whenever substantive repo changes are made.
25
25
  - Use `tasks/notes/<plan-stem>.notes.md` only for non-obvious slice decisions, deviations, tradeoffs, and open questions; `<plan-stem>` is the active plan filename without `plan-` and `.md` (for example `20260531-0045-governance-workflow`). Do not use notes as durable memory or a task log, and archive/promote them deliberately when the slice closes.
26
26
  - Treat hook execution as central-first: trusted repos run `~/.repo-harness/hooks/` (bash shim) or the packaged CLI copy; this self-host repo pins `"hook_source": "repo"` in `.ai/harness/policy.json` so `.ai/hooks/` stays the live development runtime, with `assets/hooks/` as the product source mirrored on install. User-level `~/.claude/settings.json` and `~/.codex/hooks.json` are the host adapters.
27
- - Keep the umbrella hierarchy explicit: architecture owns stable truth, capability contracts own local agent context, `tasks/workstreams/<domain>/<capability>/` owns durable progress, and `tasks/todo.md` owns only deferred medium/long-term goals with tradeoff and revisit trigger.
27
+ - Keep the umbrella hierarchy explicit: architecture owns stable truth, capability contracts own local agent context, `tasks/workstreams/<domain>/<capability>/` owns durable progress, and `tasks/todos.md` owns only deferred medium/long-term goals with tradeoff and revisit trigger.
28
28
  - Treat `.ai/context/capabilities.json` as the source of truth for capability prefixes; `agent-context-blocks.txt` and nested agent files are compatibility inputs only.
29
29
  - Keep architecture drift handling split: `architecture-queue.sh` writes architecture requests/events, `workstream-sync.sh` maintains durable capability workstreams, and `context-contract-sync.sh` only updates controlled local `CLAUDE.md`/`AGENTS.md` architecture blocks.
30
30
  - Keep `assets/workflow-contract.v1.json` and `.ai/harness/workflow-contract.json` in sync.
@@ -90,5 +90,5 @@ bash scripts/migrate-project-template.sh --repo . --dry-run
90
90
 
91
91
  - Durable progress lives under `tasks/workstreams/runtime-harness/hook-adapters`.
92
92
  - `tasks/current.md` is the tracked derived status snapshot; it is not a live lock or task source.
93
- - `tasks/todo.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
93
+ - `tasks/todos.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
94
94
  <!-- END ARCHITECTURE CONTRACT -->
package/CLAUDE.md CHANGED
@@ -5,8 +5,8 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
5
5
  ## Canonical Workflow Files
6
6
 
7
7
  - `tasks/current.md` for the tracked current-status snapshot derived from workflow artifacts
8
- - `tasks/todo.md` for deferred medium/long-term goals, not active execution checklists
9
- - `tasks/sprints/` for program-level sprint PRDs and ordered backlogs, operated by `scripts/sprint-backlog.sh` (Sprint = program layer; task contracts stay the execution slices)
8
+ - `tasks/todos.md` for deferred medium/long-term goals, not active execution checklists
9
+ - `plans/prds/` for program-level sprint PRDs and ordered backlogs, operated by `scripts/sprint-backlog.sh` (Sprint = program layer; task contracts stay the execution slices)
10
10
  - `.ai/context/capabilities.json` for the capability registry and longest-prefix context boundaries
11
11
  - `tasks/workstreams/` for capability long-running workstreams that project durable progress into local contracts
12
12
  - `tasks/lessons.md` for correction-derived rules
@@ -24,7 +24,7 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
24
24
  - Sync `tasks/` whenever substantive repo changes are made.
25
25
  - Use `tasks/notes/<plan-stem>.notes.md` only for non-obvious slice decisions, deviations, tradeoffs, and open questions; `<plan-stem>` is the active plan filename without `plan-` and `.md` (for example `20260531-0045-governance-workflow`). Do not use notes as durable memory or a task log, and archive/promote them deliberately when the slice closes.
26
26
  - Treat hook execution as central-first: trusted repos run `~/.repo-harness/hooks/` (bash shim) or the packaged CLI copy; this self-host repo pins `"hook_source": "repo"` in `.ai/harness/policy.json` so `.ai/hooks/` stays the live development runtime, with `assets/hooks/` as the product source mirrored on install. User-level `~/.claude/settings.json` and `~/.codex/hooks.json` are the host adapters.
27
- - Keep the umbrella hierarchy explicit: architecture owns stable truth, capability contracts own local agent context, `tasks/workstreams/<domain>/<capability>/` owns durable progress, and `tasks/todo.md` owns only deferred medium/long-term goals with tradeoff and revisit trigger.
27
+ - Keep the umbrella hierarchy explicit: architecture owns stable truth, capability contracts own local agent context, `tasks/workstreams/<domain>/<capability>/` owns durable progress, and `tasks/todos.md` owns only deferred medium/long-term goals with tradeoff and revisit trigger.
28
28
  - Treat `.ai/context/capabilities.json` as the source of truth for capability prefixes; `agent-context-blocks.txt` and nested agent files are compatibility inputs only.
29
29
  - Keep architecture drift handling split: `architecture-queue.sh` writes architecture requests/events, `workstream-sync.sh` maintains durable capability workstreams, and `context-contract-sync.sh` only updates controlled local `CLAUDE.md`/`AGENTS.md` architecture blocks.
30
30
  - Keep `assets/workflow-contract.v1.json` and `.ai/harness/workflow-contract.json` in sync.
@@ -90,5 +90,5 @@ bash scripts/migrate-project-template.sh --repo . --dry-run
90
90
 
91
91
  - Durable progress lives under `tasks/workstreams/runtime-harness/hook-adapters`.
92
92
  - `tasks/current.md` is the tracked derived status snapshot; it is not a live lock or task source.
93
- - `tasks/todo.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
93
+ - `tasks/todos.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
94
94
  <!-- END ARCHITECTURE CONTRACT -->
package/README.es.md CHANGED
@@ -175,6 +175,26 @@ flowchart TD
175
175
  Cleanup --> Done["Tarea completada y auditable"]
176
176
  ```
177
177
 
178
+ ## Bucles largos de producto
179
+
180
+ Para trabajo Greenfield y Brownfield, adelanta la discovery y el juicio de
181
+ engineering plan en Claude-Fable antes de pedirle a Codex que haga loops de
182
+ ejecución:
183
+
184
+ 1. En Claude-Fable, usa gstack `office-hours` para product discovery o
185
+ `plan-eng-review` para review del plan de ingeniería. La salida debe ser los
186
+ development documents que fijan la intención de producto, la arquitectura, los
187
+ riesgos y el evidence contract.
188
+ 2. Convierte esos documentos en un PRD Sprint bajo `plans/prds/`, con un
189
+ backlog ordenado y sub-plans detallados para cada execution slice.
190
+ 3. Crea un Codex Goal que apunte a ese archivo de sprint. repo-harness puede
191
+ entonces proyectar cada sprint item por el flow normal plan -> contract ->
192
+ worktree -> verification.
193
+
194
+ Ese handoff mantiene precisos los loops largos: Claude-Fable se ocupa del juicio
195
+ amplio al inicio, el PRD Sprint es la durable source of truth, y Codex Goal mode
196
+ retoma contra un sprint concreto en vez de reinterpretar el chat original.
197
+
178
198
  ## Primeros 5 minutos
179
199
 
180
200
  Esta es la ruta más rápida para evaluar si un repositorio real es apto para
@@ -325,8 +345,8 @@ Guards habituales:
325
345
 
326
346
  ## Release actual
327
347
 
328
- - npm package: `repo-harness@0.4.0`
329
- - Generated workflow stamp: `repo-harness@0.4.0+template@0.4.0`
348
+ - npm package: `repo-harness@0.4.1`
349
+ - Generated workflow stamp: `repo-harness@0.4.1+template@0.4.1`
330
350
  - GitHub repository: `Ancienttwo/repo-harness`
331
351
  - Release history: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
332
352
 
@@ -349,6 +369,21 @@ Guards habituales:
349
369
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
350
370
  - no configura automáticamente gstack, gbrain, CodeGraph MCP, daemon ni provider
351
371
 
372
+ ## Agradecimientos
373
+
374
+ Gracias a [Hylarucoder](https://x.com/hylarucoder) por su contribución
375
+ metodológica. El método P1/P2/P3 due-diligence de `repo-harness`, y la práctica
376
+ Geju que disciplina el planning, el trace y el decision rationale, vienen de su
377
+ contribución e influencia.
378
+
379
+ Gracias a [TW93](https://x.com/HiTw93), autor de Waza. Los skills centrales
380
+ `think`, `hunt`, `check` y `health` dan forma al ritmo diario de planning, bug
381
+ hunt y verification de `repo-harness`.
382
+
383
+ Gracias a [Garry Tan](https://x.com/garrytan), autor de gstack y gbrain. Ambos
384
+ influyeron en el workflow de product discovery, plan/design review, release
385
+ documentation, knowledge sync y handoff retrieval.
386
+
352
387
  ## Action Command Skills
353
388
 
354
389
  Los command facades públicos están en `assets/skill-commands/`; preservan la
package/README.fr.md CHANGED
@@ -179,6 +179,27 @@ flowchart TD
179
179
  Cleanup --> Done["Tâche terminée et auditable"]
180
180
  ```
181
181
 
182
+ ## Longues boucles produit
183
+
184
+ Pour le travail Greenfield comme Brownfield, avancez la discovery et le jugement
185
+ d'engineering plan dans Claude-Fable avant de demander à Codex de boucler sur
186
+ l'exécution :
187
+
188
+ 1. Dans Claude-Fable, utilisez gstack `office-hours` pour la product discovery ou
189
+ `plan-eng-review` pour la review du plan d'ingénierie. La sortie doit être les
190
+ development documents qui verrouillent l'intention produit, l'architecture,
191
+ les risques et l'evidence contract.
192
+ 2. Transformez ces documents en PRD Sprint sous `plans/prds/`, avec un backlog
193
+ ordonné et des sub-plans détaillés pour chaque execution slice.
194
+ 3. Créez un Codex Goal qui pointe vers ce fichier de sprint. repo-harness peut
195
+ ensuite projeter chaque sprint item dans le flow normal plan -> contract ->
196
+ worktree -> verification.
197
+
198
+ Ce handoff rend les longues boucles plus précises : Claude-Fable porte le
199
+ jugement large en amont, le PRD Sprint devient la durable source of truth, et
200
+ Codex Goal mode reprend sur un sprint concret au lieu de réinterpréter le chat
201
+ initial.
202
+
182
203
  ## Les 5 premières minutes
183
204
 
184
205
  C'est le chemin le plus rapide pour évaluer si un dépôt réel se prête à l'adoption
@@ -329,8 +350,8 @@ Guards courants :
329
350
 
330
351
  ## Release actuelle
331
352
 
332
- - npm package : `repo-harness@0.4.0`
333
- - Generated workflow stamp : `repo-harness@0.4.0+template@0.4.0`
353
+ - npm package : `repo-harness@0.4.1`
354
+ - Generated workflow stamp : `repo-harness@0.4.1+template@0.4.1`
334
355
  - GitHub repository : `Ancienttwo/repo-harness`
335
356
  - Release history : [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
336
357
 
@@ -353,6 +374,21 @@ Guards courants :
353
374
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
354
375
  - pas de configuration automatique de gstack, gbrain, CodeGraph MCP, daemon ou provider
355
376
 
377
+ ## Remerciements
378
+
379
+ Merci à [Hylarucoder](https://x.com/hylarucoder) pour sa contribution
380
+ méthodologique. La méthode P1/P2/P3 due-diligence de `repo-harness`, ainsi que
381
+ la pratique Geju qui structure le planning, le trace et le decision rationale,
382
+ viennent de sa contribution et de son influence.
383
+
384
+ Merci à [TW93](https://x.com/HiTw93), auteur de Waza. Les skills centraux
385
+ `think`, `hunt`, `check` et `health` structurent le rythme quotidien de planning,
386
+ bug hunt et verification de `repo-harness`.
387
+
388
+ Merci à [Garry Tan](https://x.com/garrytan), auteur de gstack et gbrain. Ils ont
389
+ influencé le workflow de product discovery, plan/design review, release
390
+ documentation, knowledge sync et handoff retrieval.
391
+
356
392
  ## Action Command Skills
357
393
 
358
394
  Les command facades publics se trouvent dans `assets/skill-commands/` ; ils
package/README.ja.md CHANGED
@@ -149,6 +149,25 @@ flowchart TD
149
149
  Cleanup --> Done["レビュー可能な完了タスク"]
150
150
  ```
151
151
 
152
+ ## 長期プロダクト Loop
153
+
154
+ Greenfield と Brownfield の作業では、Codex に実行 loop を任せる前に、
155
+ discovery と engineering-plan judgment を Claude-Fable 側で前倒しします。
156
+
157
+ 1. Claude-Fable で、product discovery には gstack `office-hours` を使い、
158
+ engineering plan review には `plan-eng-review` を使います。出力は、product
159
+ intent、architecture、risks、evidence contract を固定する development
160
+ documents にします。
161
+ 2. それらの documents を `plans/prds/` 配下の PRD Sprint に変換し、
162
+ 各 execution slice に ordered backlog と detailed sub-plans を持たせます。
163
+ 3. Codex Goal を作成し、その sprint file を指します。repo-harness はその後、
164
+ 各 sprint item を通常の plan -> contract -> worktree -> verification flow
165
+ へ投射できます。
166
+
167
+ この handoff により、長期 loop は精密になります。Claude-Fable が広い前置判断を担い、
168
+ PRD Sprint が durable source of truth となり、Codex Goal mode は元の chat を再解釈する
169
+ のではなく、具体的な sprint に対して resume します。
170
+
152
171
  ## 最初の 5 分
153
172
 
154
173
  実際のリポジトリがこの workflow を導入するのに適しているかを評価する、最速の経路です。
@@ -293,8 +312,8 @@ hook がブロックしたときは、まず terminal の構造化された出
293
312
 
294
313
  ## 現在の Release
295
314
 
296
- - npm package:`repo-harness@0.4.0`
297
- - Generated workflow stamp:`repo-harness@0.4.0+template@0.4.0`
315
+ - npm package:`repo-harness@0.4.1`
316
+ - Generated workflow stamp:`repo-harness@0.4.1+template@0.4.1`
298
317
  - GitHub repository:`Ancienttwo/repo-harness`
299
318
  - Release history:[`docs/CHANGELOG.md`](docs/CHANGELOG.md)
300
319
 
@@ -317,6 +336,20 @@ hook がブロックしたときは、まず terminal の構造化された出
317
336
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
318
337
  - gstack、gbrain、CodeGraph MCP、daemon、provider を自動設定しない
319
338
 
339
+ ## 謝辞
340
+
341
+ [Hylarucoder](https://x.com/hylarucoder) の方法論への貢献に感謝します。
342
+ `repo-harness` の P1/P2/P3 due-diligence メソッドと、planning、trace、
343
+ decision rationale を重視する Geju の実践は、彼の貢献と示唆に基づいています。
344
+
345
+ [TW93](https://x.com/HiTw93) による Waza にも感謝します。`think`、`hunt`、
346
+ `check`、`health` という中核 skill は、`repo-harness` の日々の planning、
347
+ bug hunt、verification のリズムを形作っています。
348
+
349
+ [Garry Tan](https://x.com/garrytan) による gstack と gbrain にも感謝します。
350
+ これらは product discovery、plan/design review、release documentation、
351
+ knowledge sync、handoff retrieval の workflow 設計に影響を与えています。
352
+
320
353
  ## Action Command Skills
321
354
 
322
355
  公開 command facades は `assets/skill-commands/` にあります。host skill discovery との互換性を残しつつ、実行は CLI と hooks が担います。
package/README.md CHANGED
@@ -34,25 +34,21 @@ This repository now dogfoods its own tasks-first contract. It is both:
34
34
  read a 1KB capability contract or query the index instead of spending thousands of
35
35
  tokens rediscovering structure.
36
36
 
37
- ## What's New in 0.4.0
38
-
39
- - **Loop-engine evidence surfaces.** `repo-harness-hook state-snapshot --json`,
40
- the NL decision-table reference, route A/B evals, and the cutover gate make
41
- prompt-routing experiments measurable while keeping the TypeScript classifier
42
- authoritative until evidence says otherwise.
43
- - **Architecture queue gate.** `scripts/architecture-queue.sh`,
44
- `scripts/check-architecture-sync.sh`, and the expanded architecture event
45
- helper replace the retired append-only drift script with a derived request
46
- index that can gate stale architecture state.
47
- - **Contract delegation pilot.** Contract templates now include
48
- `budget`, `permission_scope`, and `roles`, and `scripts/contract-run.ts`
49
- can run explicit worker/verifier child commands against contract exit
50
- criteria.
51
- - **Heartbeat triage.** `scripts/heartbeat-triage.sh` records scheduled
52
- workflow checks, sprint-next signals, and architecture request state into the
53
- repo-local triage inbox.
54
- - **Workflow asset sync.** New helpers, docs, tests, and generated-repo assets
55
- keep the self-host runtime and installed template copies aligned.
37
+ ## What's New in 0.4.1
38
+
39
+ - **Session-scoped CodeGraph nudges.** Hook stdin `session_id` now drives the
40
+ one-shot CodeGraph route hint, so stale local session files no longer suppress
41
+ or repeat guidance across independent Claude/Codex sessions.
42
+ - **Central-first hook safety.** Generated and migrated repos stay on the
43
+ user-level hook runtime by default; repo-local top-level hook scripts are
44
+ pruned unless `.ai/harness/policy.json` explicitly pins `"hook_source": "repo"`.
45
+ - **Workflow document migration.** Active workflow docs now use
46
+ `tasks/todos.md` for deferred goals and `docs/researches/*.md` for durable
47
+ research, with legacy `tasks/todo.md` and `tasks/research.md` treated as
48
+ migration inputs.
49
+ - **Release-gate stability.** Runtime ignore rules cover transient
50
+ `tasks/.current.md.tmp.*` and `.claude/.plan-state/` state, and the default
51
+ Bun test timeout matches the release gate budget.
56
52
 
57
53
  ## What repo-harness Does
58
54
 
@@ -115,7 +111,7 @@ The diagram below assumes the harness is already installed in the repo. It shows
115
111
  the normal lifecycle from a program sprint backlog down to one contract task:
116
112
  draft or select the task, project it into execution files, check out the
117
113
  contract worktree when policy requires it, implement under hooks, verify, review,
118
- complete the sprint task when applicable, and close out. The 0.4.0 loop-system
114
+ complete the sprint task when applicable, and close out. The 0.4.x loop-system
119
115
  surfaces add scheduled heartbeat discovery, state-snapshot/eval evidence for
120
116
  routing changes, architecture queue freshness, and optional contract-run
121
117
  delegation without changing the file-backed authority model.
@@ -123,7 +119,7 @@ delegation without changing the file-backed authority model.
123
119
  ```mermaid
124
120
  flowchart TD
125
121
  Program["Program goal or release theme"] --> Sprint{"Sprint layer needed?"}
126
- Sprint -->|yes| SprintDoc["Sprint PRD + backlog<br/>tasks/sprints/*.sprint.md"]
122
+ Sprint -->|yes| SprintDoc["Sprint PRD + backlog<br/>plans/prds/*.prd.md"]
127
123
  SprintDoc --> NextTask["Select next sprint task<br/>sprint-backlog.sh next"]
128
124
  Sprint -->|no| UserTask["User task or planning prompt"]
129
125
  Heartbeat["Heartbeat triage<br/>scripts/heartbeat-triage.sh<br/>.ai/harness/triage/"] --> UserTask
@@ -180,6 +176,26 @@ flowchart TD
180
176
  Cleanup --> Done["Reviewable completed task"]
181
177
  ```
182
178
 
179
+ ## Long-Running Product Loops
180
+
181
+ For Greenfield and Brownfield work, front-load discovery and engineering-plan
182
+ judgment in Claude-Fable before asking Codex to loop on execution:
183
+
184
+ 1. In Claude-Fable, use gstack `office-hours` for product discovery or
185
+ `plan-eng-review` for engineering plan review. The output should be the
186
+ development documents that lock product intent, architecture, risks, and the
187
+ evidence contract.
188
+ 2. Turn those documents into a PRD sprint under `plans/prds/`, with an
189
+ ordered backlog and detailed sub-plans for each execution slice.
190
+ 3. In Codex, create a Goal that points at that sprint file. The harness can then
191
+ project each sprint item through the normal plan -> contract -> worktree ->
192
+ verification flow.
193
+
194
+ That handoff keeps long-running loops precise: Claude-Fable owns the broad
195
+ front-loaded judgment, the PRD sprint is the durable source of truth, and Codex
196
+ Goal mode resumes against a concrete sprint instead of reinterpreting the
197
+ original chat.
198
+
183
199
  ## First 5 Minutes
184
200
 
185
201
  This is the fastest path for an AI tooling owner evaluating whether the workflow is
@@ -209,11 +225,11 @@ repository to install or refresh workflow files, hook assets, host adapters,
209
225
  skill aliases, and repo-local verification surfaces from the current npm package.
210
226
 
211
227
  The npm package and generated workflow stamp now share the `0.4.x` release line.
212
- The `0.4.0` package keeps first-run
228
+ The `0.4.1` package keeps first-run
213
229
  global bootstrap (`repo-harness init`) separate from repo-local refresh
214
- (`repo-harness update`) while adding the loop-engine state snapshot, architecture
215
- queue gate, contract delegation pilot, heartbeat triage helper, and generated
216
- asset sync for those workflow surfaces.
230
+ (`repo-harness update`) while hardening session-scoped hook state, central-first
231
+ hook execution, workflow-document migration, and release-gate stability on top
232
+ of the `0.4.0` loop-engine surfaces.
217
233
  These sit on top of the renamed `repo-harness` CLI, user-level hook
218
234
  adapter bootstrap, AI-native scaffold overlays, the typed prompt-guard decision
219
235
  engine, plan-stem task artifact naming, `REPO_HARNESS_*` runtime aliases, Waza
@@ -364,8 +380,8 @@ Most common guards:
364
380
 
365
381
  ## Current Release
366
382
 
367
- - npm package: `repo-harness@0.4.0`
368
- - Generated workflow stamp: `repo-harness@0.4.0+template@0.4.0`
383
+ - npm package: `repo-harness@0.4.1`
384
+ - Generated workflow stamp: `repo-harness@0.4.1+template@0.4.1`
369
385
  - GitHub repository: `Ancienttwo/repo-harness`
370
386
  - Release history: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
371
387
 
@@ -408,27 +424,25 @@ Most common guards:
408
424
  - no automatic gstack, gbrain MCP, CodeGraph daemon, or provider setup
409
425
  - Manual distillation stays repo-local:
410
426
  - repeated corrections -> `tasks/lessons.md`
411
- - deep findings and hidden contracts -> `tasks/research.md`
427
+ - deep findings and hidden contracts -> topic-scoped `docs/researches/*.md`
412
428
  - sprint verification evidence -> `tasks/reviews/*.review.md`
413
429
  - durable capability progress -> `tasks/workstreams/`
414
430
  - release history -> `docs/CHANGELOG.md`
415
431
 
416
- ## Acknowledgements and Tooling Dependencies
432
+ ## Acknowledgements and Workflow Influences
417
433
 
418
434
  `repo-harness` is built around a small set of external skills and repos that
419
435
  proved useful while this project was being designed, debugged, and released.
420
436
  They are acknowledged here because they shaped the workflow contract, but they
421
- are not all bundled product dependencies.
437
+ are not ordinary bundled product dependencies.
422
438
 
423
439
  | Tool or repo | Used for | Dependency shape |
424
440
  | --- | --- | --- |
425
- | gstack skills, including `document-release`, `office-hours`, `plan-eng-review`, and `plan-design-review` | Product discovery, plan review, design review, and post-ship documentation hygiene | External operator workflow; advisory by default |
426
- | Waza core skills `think`, `hunt`, `check`, and `health` | Daily planning, bug hunts, verification, health checks, and Codex-first skill sync | Installed through the skills CLI into host skill roots |
441
+ | [Hylarucoder](https://x.com/hylarucoder) / Geju | P1/P2/P3 due-diligence method and Geju practice that shaped the planning, tracing, and decision-rationale discipline in this workflow | Methodology contribution and acknowledgement; not a bundled dependency |
442
+ | Waza by [TW93](https://x.com/HiTw93), including `think`, `hunt`, `check`, and `health` | Daily planning, bug hunts, verification, health checks, and Codex-first skill sync | Installed through the skills CLI into host skill roots |
443
+ | gstack skills and `gbrain` by [Garry Tan](https://x.com/garrytan) | Product discovery, plan review, design review, post-ship documentation hygiene, knowledge sync, handoff retrieval, and long-form repo memory | External operator workflow plus optional external CLI/index; advisory by default |
427
444
  | `mermaid` | Human-readable architecture and system-flow diagrams when Mermaid is not enough | Runtime-referenced skill, not vendored into generated repos |
428
- | `gbrain` | Knowledge sync, handoff retrieval, and long-form repo memory | Optional external CLI and index |
429
445
  | CodeGraph (`@colbymchenry/codegraph`) | Symbol-aware navigation, impact tracing, and readiness checks for this self-host repo | Dev dependency in this repo; generated repos stay global-MCP-first unless policy opts in |
430
- | Bun | Source checkout execution, tests, template assembly, and release checks | Required local runtime for maintainers |
431
- | `commander` | `repo-harness` CLI command parsing | Runtime npm dependency |
432
446
 
433
447
  ## Action Command Skills
434
448
 
@@ -436,7 +450,7 @@ Source-owned command facades live in `assets/skill-commands/`. They keep host
436
450
  skill discovery compatible while the CLI and hooks own execution:
437
451
 
438
452
  - Planning and review: `repo-harness-plan`, `repo-harness-review`, `repo-harness-autoplan`
439
- - Sprint program layer: `repo-harness-sprint` (PRD + ordered backlog in `tasks/sprints/`, executed task-by-task through the contract flow)
453
+ - Sprint program layer: `repo-harness-sprint` (PRD + ordered backlog in `plans/prds/`, executed task-by-task through the contract flow)
440
454
  - Repo workflow actions: `repo-harness-ship`, `repo-harness-init`, `repo-harness-migrate`, `repo-harness-upgrade`, `repo-harness-capability`, `repo-harness-architecture`, `repo-harness-handoff`, `repo-harness-deploy`, `repo-harness-repair`, `repo-harness-check`
441
455
  - Branch project creation command: `repo-harness-scaffold`
442
456
 
package/README.zh-CN.md CHANGED
@@ -23,21 +23,20 @@ repo-local workflow 的自托管样例。
23
23
  做渐进式上下文加载:一份小而稳定的 root context(约 12KB),加上只在改到对应文件时才加载的
24
24
  capability 块。agent 读一份 1KB 的 capability 合约或查索引,而不是花上千 token 重新摸清结构。
25
25
 
26
- ## 0.4.0 新特性
27
-
28
- - **Loop-engine 证据面。** `repo-harness-hook state-snapshot --json`、NL
29
- decision-table、route A/B eval cutover gate prompt-routing 实验可度量;
30
- 在证据达标前,TypeScript classifier 仍是权威路径。
31
- - **Architecture queue gate。** `scripts/architecture-queue.sh`、
32
- `scripts/check-architecture-sync.sh` 和扩展后的 architecture event helper
33
- 取代已退休的 append-only drift 脚本,用派生 request index 检查 stale 架构状态。
34
- - **Contract delegation pilot。** Contract template 新增 `budget`、
35
- `permission_scope`、`roles`,`scripts/contract-run.ts` 可用显式
36
- worker/verifier child commands contract exit criteria 执行试点。
37
- - **Heartbeat triage。** `scripts/heartbeat-triage.sh` 把定时 workflow checks、
38
- sprint-next 信号和 architecture request 状态写入 repo-local triage inbox。
39
- - **Workflow asset sync。** helpers、docs、tests generated-repo assets
40
- 保持 self-host runtime 与安装模板副本同步。
26
+ ## 0.4.1 新特性
27
+
28
+ - **Session-scoped CodeGraph 提醒。** Hook stdin 里的 `session_id` 现在会驱动
29
+ 一次性 CodeGraph route hint,避免 stale 本地 session 文件跨 Claude/Codex
30
+ 会话误抑制或重复提醒。
31
+ - **Central-first hook safety。** Generated 和 migrated repos 默认继续使用
32
+ user-level hook runtime;只有 `.ai/harness/policy.json` 明确设置
33
+ `"hook_source": "repo"` 时,才保留 repo-local top-level hook scripts。
34
+ - **Workflow 文档迁移。** Active workflow docs 统一使用 `tasks/todos.md`
35
+ 记录 deferred goals,使用 `docs/researches/*.md` 保存 durable research;
36
+ legacy `tasks/todo.md` `tasks/research.md` 只作为 migration inputs。
37
+ - **Release-gate 稳定性。** Runtime ignore rules 覆盖
38
+ `tasks/.current.md.tmp.*` `.claude/.plan-state/` 这类 transient state,
39
+ 默认 Bun test timeout 也和 release gate budget 对齐。
41
40
 
42
41
  ## 产品做什么
43
42
 
@@ -86,14 +85,14 @@ classifier/state-machine 层不再散落在 shell 条件分支里。
86
85
  下面这张图假设目标仓库已经安装 harness。它展示的是从 program sprint backlog
87
86
  到单个 contract task 的正常闭环:先选择或形成任务,再投射到执行文件,需要时
88
87
  checkout 隔离 worktree,在 hooks 保护下实现,然后验证、review、external acceptance,
89
- 必要时标记 sprint task 完成,最后 closeout。0.4.0 的 loop-system surface
88
+ 必要时标记 sprint task 完成,最后 closeout。0.4.x 的 loop-system surface
90
89
  新增 heartbeat 定时发现、state-snapshot/eval 证据、architecture queue freshness,
91
90
  以及可选的 contract-run 委派,但 source of truth 仍然是 repo 内文件合约。
92
91
 
93
92
  ```mermaid
94
93
  flowchart TD
95
94
  Program["Program goal 或 release theme"] --> Sprint{"需要 sprint layer?"}
96
- Sprint -->|是| SprintDoc["Sprint PRD + backlog<br/>tasks/sprints/*.sprint.md"]
95
+ Sprint -->|是| SprintDoc["Sprint PRD + backlog<br/>plans/prds/*.prd.md"]
97
96
  SprintDoc --> NextTask["选择下一个 sprint task<br/>sprint-backlog.sh next"]
98
97
  Sprint -->|否| UserTask["用户任务或 planning prompt"]
99
98
  Heartbeat["Heartbeat triage<br/>scripts/heartbeat-triage.sh<br/>.ai/harness/triage/"] --> UserTask
@@ -150,6 +149,22 @@ flowchart TD
150
149
  Cleanup --> Done["可审查的已完成任务"]
151
150
  ```
152
151
 
152
+ ## 长周期产品 Loop
153
+
154
+ Greenfield 和 Brownfield 工作先把 discovery 和工程计划前置在 Claude-Fable
155
+ 中完成,不要直接让 Codex 从原始聊天长期滚动:
156
+
157
+ 1. 在 Claude-Fable 里用 gstack `office-hours` 做产品 discovery,或用
158
+ `plan-eng-review` 做工程方案评审。输出应当是锁定产品意图、架构、风险和
159
+ evidence contract 的开发文档。
160
+ 2. 把这些文档转成 `plans/prds/` 下的 PRD Sprint,并为每个 execution
161
+ slice 写清有序 backlog 和详细 sub-plan。
162
+ 3. 创建 Codex Goal,目标指向该 sprint 文件。repo-harness 之后就可以按既有
163
+ plan -> contract -> worktree -> verification flow 逐项投射和执行。
164
+
165
+ 这个交接让长周期 loop 更精准:Claude-Fable 负责前置判断,PRD Sprint 是 durable
166
+ source of truth,Codex Goal mode 只围绕具体 sprint 恢复和推进,而不是反复重新解释原始聊天。
167
+
153
168
  ## 前 5 分钟
154
169
 
155
170
  这是评估一个真实仓库是否适合接入该 workflow 的最快路径。
@@ -177,10 +192,10 @@ npx -y repo-harness update
177
192
  repo-local verification surfaces。
178
193
 
179
194
  npm package 和 generated workflow stamp 现在共用 `0.4.x` release line。
180
- `repo-harness@0.4.0` 继续把首次全局引导(`repo-harness init`)
181
- 和 repo-local 刷新(`repo-harness update`)拆开,同时新增 loop-engine state
182
- snapshot、architecture queue gatecontract delegation pilotheartbeat triage
183
- helper,以及这些 workflow surfaces generated asset sync
195
+ `repo-harness@0.4.1` 继续把首次全局引导(`repo-harness init`)
196
+ 和 repo-local 刷新(`repo-harness update`)拆开,并在 `0.4.0` loop-engine
197
+ surfaces 之上强化 session-scoped hook statecentral-first hook execution
198
+ workflow-document migration release-gate stability
184
199
  这些能力叠加在改名后的 CLI、user-level hook adapter bootstrap、AI-native scaffold overlays、
185
200
  typed prompt-guard decision engine、plan-stem task artifact 命名、`REPO_HARNESS_*`
186
201
  runtime aliases、Waza runtime skill sync,以及 maintainer 发布 npm 前使用的 release gate 之上。
@@ -319,8 +334,8 @@ hook block 工作时,先看 terminal 里的结构化输出。核心字段是
319
334
 
320
335
  ## 当前 Release
321
336
 
322
- - npm package:`repo-harness@0.4.0`
323
- - Generated workflow stamp:`repo-harness@0.4.0+template@0.4.0`
337
+ - npm package:`repo-harness@0.4.1`
338
+ - Generated workflow stamp:`repo-harness@0.4.1+template@0.4.1`
324
339
  - GitHub repository:`Ancienttwo/repo-harness`
325
340
  - Release history:[`docs/CHANGELOG.md`](docs/CHANGELOG.md)
326
341
 
@@ -344,6 +359,20 @@ hook block 工作时,先看 terminal 里的结构化输出。核心字段是
344
359
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
345
360
  - 不自动设置 gstack、gbrain MCP、CodeGraph daemon 或 provider
346
361
 
362
+ ## 致谢
363
+
364
+ 感谢 [Hylarucoder](https://x.com/hylarucoder) 的方法论贡献。`repo-harness`
365
+ 里的 P1/P2/P3 due-diligence 方法,以及 Geju 实践对 planning、trace 和
366
+ decision rationale 的要求,来自他的贡献与启发。
367
+
368
+ 感谢 [TW93](https://x.com/HiTw93) 创作 Waza;`think`、`hunt`、`check`
369
+ 和 `health` 这些核心 skill 构成了 `repo-harness` 的日常 planning、bug hunt
370
+ 和 verification 节奏。
371
+
372
+ 感谢 [Garry Tan](https://x.com/garrytan) 创作 gstack 和 gbrain;它们影响了
373
+ product discovery、plan/design review、release 文档、knowledge sync 和
374
+ handoff retrieval 的工作流设计。
375
+
347
376
  ## Action Command Skills
348
377
 
349
378
  公共 command facades 在 `assets/skill-commands/`;它们保留 host skill discovery
package/SKILL.md CHANGED
@@ -287,8 +287,8 @@ Migration defaults:
287
287
  - archive uncertain legacy content instead of guessing
288
288
  - remove repo-local Skill Factory and auto-memory surfaces when present
289
289
  - archive legacy `docs/PROGRESS.md` content; do not regenerate it as a default workflow surface
290
- - keep `tasks/todo.md` limited to deferred medium/long-term goals, including the tradeoff and revisit trigger
291
- - move hidden contracts and deep findings into `tasks/research.md`
290
+ - keep `tasks/todos.md` limited to deferred medium/long-term goals, including the tradeoff and revisit trigger
291
+ - move hidden contracts and deep findings into topic-scoped `docs/researches/*.md`
292
292
  - distill repeated corrections into `tasks/lessons.md`
293
293
  - merge missing `external_tooling` defaults into `.ai/harness/policy.json` without overwriting explicit user values
294
294
  - keep gstack/gbrain/CodeGraph detection advisory-only; do not auto-install, auto-upgrade, auto-sync, or auto-enable MCP
@@ -304,15 +304,15 @@ Preserve these semantics:
304
304
 
305
305
  - `plans/` is the timestamped plan catalog; `.ai/harness/active-plan` selects the active plan, with `.claude/.active-plan` as a legacy fallback during transition
306
306
  - `plans/plan-*.md` must carry a workflow inventory before implementation: active plan, owning worktree, contract, review, notes, deferred ledger, checks, run snapshots, scope owner, switching rule, and worktree isolation path
307
- - `tasks/todo.md` is the deferred-goal ledger; active execution stays in the plan's `## Task Breakdown`
307
+ - `tasks/todos.md` is the deferred-goal ledger; active execution stays in the plan's `## Task Breakdown`
308
308
  - `tasks/lessons.md` stores correction-derived rules
309
- - `tasks/research.md` stores deep repo findings and hidden contracts
309
+ - `docs/researches/*.md` stores deep repo findings and hidden contracts by topic
310
310
  - `tasks/contracts/` and `tasks/reviews/` are completion gates
311
311
  - `tasks/contracts/*.contract.md` must repeat the workflow inventory and make `allowed_paths` the edit-scope authority
312
312
  - `tasks/workstreams/` stores durable capability progress
313
313
  - `docs/CHANGELOG.md` stores release history
314
- - `.ai/hooks/` is the shared hook source of truth
315
- - `.claude/settings.json` is the Claude adapter surface; `.codex/hooks.json` is the Codex adapter surface; repo-local `.claude/hooks/` is not generated by default
314
+ - `assets/hooks/` is the installable hook product source; `.ai/hooks/` is a full live runtime only in repos that pin `"hook_source": "repo"`
315
+ - user-level `~/.claude/settings.json` and `~/.codex/hooks.json` are the host adapter surfaces; repo-local `.claude/hooks/`, `.claude/settings.json`, and `.codex/hooks.json` are legacy cleanup targets
316
316
 
317
317
  ## Hook Workflow Protocol
318
318
 
@@ -322,28 +322,31 @@ automation, treat it as a runtime-harness slice, not a generic config edit.
322
322
  Map the route first:
323
323
 
324
324
  1. `assets/hooks/` is the installable source.
325
- 2. `.ai/hooks/` is the repo-local implementation.
326
- 3. `.claude/settings.json` and `.codex/hooks.json` are adapters that dispatch to
327
- `.ai/hooks/run-hook.sh`.
328
- 4. Codex also requires the repo hook to be trusted in Codex Settings before it
325
+ 2. The active runtime resolves central-first through `repo-harness-hook`; `.ai/hooks/`
326
+ is a full repo-local implementation only when `"hook_source": "repo"` is pinned.
327
+ 3. User-level `~/.claude/settings.json` and `~/.codex/hooks.json` are adapters
328
+ that dispatch to `repo-harness-hook` or the compatibility `repo-harness hook`
329
+ route.
330
+ 4. Codex also requires the user-level hook config to be trusted in Codex Settings before it
329
331
  executes.
330
- 5. Generated `.claude/hooks/` shims are legacy cleanup targets; preserve only
331
- user-authored `custom-*.sh` hooks.
332
+ 5. Generated `.claude/hooks/`, repo-local `.claude/settings.json`, and repo-local
333
+ `.codex/hooks.json` are legacy cleanup targets; preserve only user-authored
334
+ `custom-*.sh` hooks.
332
335
 
333
336
  Trace one real event before changing behavior, for example:
334
337
 
335
- `UserPromptSubmit -> adapter -> .ai/hooks/run-hook.sh -> prompt-guard.sh -> plan
338
+ `UserPromptSubmit -> adapter -> repo-harness-hook -> prompt-guard.sh -> plan
336
339
  or advisory output`
337
340
 
338
341
  or:
339
342
 
340
- `PostToolUse(Edit|Write) -> adapter -> .ai/hooks/run-hook.sh ->
343
+ `PostToolUse(Edit|Write) -> adapter -> repo-harness-hook ->
341
344
  post-edit-guard.sh -> architecture drift, brain sync, contract verification,
342
345
  task handoff`
343
346
 
344
- For Codex hook failures, debug in this order: `.codex/hooks.json`, Codex Settings
345
- trust, `.ai/hooks/run-hook.sh`, the target hook script, then `.ai/harness/events.jsonl`
346
- or `.claude/.trace.jsonl` evidence.
347
+ For Codex hook failures, debug in this order: user-level `~/.codex/hooks.json`,
348
+ Codex Settings trust, `repo-harness-hook` resolution, the active target hook
349
+ script, then `.ai/harness/events.jsonl` or `.claude/.trace.jsonl` evidence.
347
350
 
348
351
  Hooks are accelerators and guards. They do not replace `plans/`, `tasks/`,
349
352
  contracts, reviews, policy, checks, or handoff artifacts. Heavy workflows such as
@@ -375,9 +378,9 @@ This skill may create or update:
375
378
  - `.claude/templates/*`
376
379
  - `docs/spec.md`
377
380
  - `docs/reference-configs/*.md`
378
- - `tasks/todo.md`
381
+ - `tasks/todos.md`
379
382
  - `tasks/lessons.md`
380
- - `tasks/research.md`
383
+ - `docs/researches/*`
381
384
  - `tasks/contracts/*`
382
385
  - `tasks/reviews/*`
383
386
  - `tasks/workstreams/*`
package/assets/AGENTS.md CHANGED
@@ -64,5 +64,5 @@ Owns the workflow-engine-contract-assets capability boundary declared in .ai/con
64
64
 
65
65
  - Durable progress lives under `tasks/workstreams/workflow-engine/contract-assets`.
66
66
  - `tasks/current.md` is a tracked derived status snapshot, not a live lock or task source.
67
- - `tasks/todo.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
67
+ - `tasks/todos.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
68
68
  <!-- END ARCHITECTURE CONTRACT -->
package/assets/CLAUDE.md CHANGED
@@ -64,5 +64,5 @@ Owns the workflow-engine-contract-assets capability boundary declared in .ai/con
64
64
 
65
65
  - Durable progress lives under `tasks/workstreams/workflow-engine/contract-assets`.
66
66
  - `tasks/current.md` is a tracked derived status snapshot, not a live lock or task source.
67
- - `tasks/todo.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
67
+ - `tasks/todos.md` is the deferred-goal ledger; current execution slices stay in the active plan's `## Task Breakdown`.
68
68
  <!-- END ARCHITECTURE CONTRACT -->