cohorte 3.0.0-dev.7 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/CHANGELOG.md +1532 -0
  2. package/README.md +106 -185
  3. package/bin/cli.js +212 -0
  4. package/bin/report.js +141 -0
  5. package/core/agents/cohorte-profile-reader.md +50 -0
  6. package/core/agents/cohorte-release.md +58 -0
  7. package/core/agents/cohorte-review.md +174 -0
  8. package/core/agents/implementer.template.md +146 -0
  9. package/core/commands/cohorte-align-ds.md +33 -0
  10. package/core/commands/cohorte-audit.md +67 -0
  11. package/core/commands/cohorte-brainstorm.md +73 -0
  12. package/core/commands/cohorte-build.md +241 -0
  13. package/core/commands/cohorte-doctor.md +133 -0
  14. package/core/commands/cohorte-fix.md +80 -0
  15. package/core/commands/cohorte-fleet.md +111 -0
  16. package/core/commands/cohorte-init-pipeline.md +30 -0
  17. package/core/commands/cohorte-intake.md +92 -0
  18. package/core/commands/cohorte-patch.md +118 -0
  19. package/core/commands/cohorte-refactor.md +57 -0
  20. package/core/commands/cohorte-retro.md +85 -0
  21. package/core/commands/cohorte-review.md +224 -0
  22. package/core/commands/cohorte-ship.md +155 -0
  23. package/core/commands/cohorte-spec.md +105 -0
  24. package/core/commands/cohorte-update-pipeline.md +115 -0
  25. package/core/hooks/gate.py +2931 -0
  26. package/core/templates/agent-handoff.md +34 -0
  27. package/core/templates/brainstorm-return.md +42 -0
  28. package/core/templates/decisions.template.md +42 -0
  29. package/core/templates/design-brief.md +37 -0
  30. package/core/templates/patch.template.md +86 -0
  31. package/core/templates/pr-body.md +25 -0
  32. package/core/templates/review-feedback.md +46 -0
  33. package/core/templates/spec.template.md +88 -0
  34. package/core/templates/steps/init-pipeline/01-detect-stack.md +44 -0
  35. package/core/templates/steps/init-pipeline/02-interview-gaps.md +55 -0
  36. package/core/templates/steps/init-pipeline/03-draft-profile.md +9 -0
  37. package/core/templates/steps/init-pipeline/04-write-render.md +91 -0
  38. package/core/templates/steps/init-pipeline/05-report.md +11 -0
  39. package/core/templates/steps/review-pr/01-pr-mode.md +54 -0
  40. package/core/workflows/audit.js +306 -0
  41. package/core/workflows/loop.js +687 -0
  42. package/core/workflows/refactor.js +291 -0
  43. package/core/workflows/review.js +491 -0
  44. package/install.ps1 +72 -0
  45. package/install.sh +69 -0
  46. package/lib/doctor.js +472 -0
  47. package/lib/install.js +377 -0
  48. package/lib/project.js +322 -0
  49. package/lib/render.js +121 -0
  50. package/lib/versions.js +145 -0
  51. package/lib/yaml.js +174 -0
  52. package/package.json +36 -17
  53. package/profile/PIPELINE.template.md +250 -0
  54. package/profile/SCHEMA.md +749 -0
  55. package/profile/cohorte.config.template.yaml +43 -0
  56. package/scripts/feature-diff.sh +118 -0
  57. package/scripts/kanban-move.sh +307 -0
  58. package/scripts/metrics/collect.mjs +542 -0
  59. package/scripts/metrics/prices.json +42 -0
  60. package/scripts/new-feature.sh.template +122 -0
  61. package/scripts/preflight.sh +114 -0
  62. package/scripts/remove-feature.sh.template +56 -0
  63. package/assets/manifest.json +0 -203
  64. package/assets/migrations/config/README.md +0 -12
  65. package/assets/migrations/state/0001_init.sql +0 -154
  66. package/assets/prompts/README.md +0 -11
  67. package/assets/prompts/agents/brainstormer.md +0 -3
  68. package/assets/prompts/agents/fixer.md +0 -7
  69. package/assets/prompts/agents/implementer.md +0 -12
  70. package/assets/prompts/agents/reviewer.md +0 -8
  71. package/assets/prompts/agents/security-reviewer.md +0 -7
  72. package/assets/prompts/agents/spec-author.md +0 -3
  73. package/assets/prompts/phases/build.md +0 -5
  74. package/assets/prompts/phases/review.md +0 -5
  75. package/assets/prompts/phases/test.md +0 -5
  76. package/assets/prompts/system.md +0 -11
  77. package/assets/schemas/agent-output.schema.json +0 -225
  78. package/assets/schemas/auth-status.schema.json +0 -87
  79. package/assets/schemas/command-result.schema.json +0 -192
  80. package/assets/schemas/commands.schema.json +0 -959
  81. package/assets/schemas/config.schema.json +0 -2281
  82. package/assets/schemas/doctor-report.schema.json +0 -104
  83. package/assets/schemas/events.schema.json +0 -8514
  84. package/assets/schemas/fake-script.schema.json +0 -549
  85. package/assets/schemas/inspect.schema.json +0 -3133
  86. package/assets/schemas/manifest.schema.json +0 -79
  87. package/assets/schemas/ownership.schema.json +0 -52
  88. package/assets/schemas/policy-verdict.schema.json +0 -282
  89. package/assets/schemas/project-model.schema.json +0 -783
  90. package/assets/schemas/project-status.schema.json +0 -217
  91. package/assets/schemas/reconcile-plan.schema.json +0 -154
  92. package/assets/schemas/run-diff.schema.json +0 -177
  93. package/assets/schemas/run-snapshot-manifest.schema.json +0 -2104
  94. package/assets/schemas/run-state.schema.json +0 -1755
  95. package/assets/schemas/runtime-capabilities.schema.json +0 -1545
  96. package/assets/schemas/sandbox-capabilities.schema.json +0 -116
  97. package/assets/schemas/skill.schema.json +0 -87
  98. package/assets/schemas/spec.schema.json +0 -202
  99. package/assets/schemas/tool-catalogue.schema.json +0 -655
  100. package/assets/schemas/trust-record.schema.json +0 -38
  101. package/assets/skills/README.md +0 -9
  102. package/assets/skills/inspect-surface.md +0 -4
  103. package/dist/agent-host.mjs +0 -2187
  104. package/dist/agent-host.mjs.map +0 -1
  105. package/dist/bundle-manifest.json +0 -128
  106. package/dist/chunks/__host-DgGPyco9.mjs +0 -18
  107. package/dist/chunks/__host-DgGPyco9.mjs.map +0 -1
  108. package/dist/chunks/align-ds-r_X_1aQ_.mjs +0 -93
  109. package/dist/chunks/align-ds-r_X_1aQ_.mjs.map +0 -1
  110. package/dist/chunks/approve-Cv135UqI.mjs +0 -19
  111. package/dist/chunks/approve-Cv135UqI.mjs.map +0 -1
  112. package/dist/chunks/audit-B4ZWQ_DI.mjs +0 -179
  113. package/dist/chunks/audit-B4ZWQ_DI.mjs.map +0 -1
  114. package/dist/chunks/auth-BT5oVp76.mjs +0 -132
  115. package/dist/chunks/auth-BT5oVp76.mjs.map +0 -1
  116. package/dist/chunks/auth-Dnlksuo5.mjs +0 -141
  117. package/dist/chunks/auth-Dnlksuo5.mjs.map +0 -1
  118. package/dist/chunks/brainstorm-DasVwI1D.mjs +0 -123
  119. package/dist/chunks/brainstorm-DasVwI1D.mjs.map +0 -1
  120. package/dist/chunks/build-crOld8gE.mjs +0 -19
  121. package/dist/chunks/build-crOld8gE.mjs.map +0 -1
  122. package/dist/chunks/cancel-KV_cpsqS.mjs +0 -15
  123. package/dist/chunks/cancel-KV_cpsqS.mjs.map +0 -1
  124. package/dist/chunks/canonical-C8UxeEmB.mjs +0 -57
  125. package/dist/chunks/canonical-C8UxeEmB.mjs.map +0 -1
  126. package/dist/chunks/catalogue-IaCJdfB8.mjs +0 -1549
  127. package/dist/chunks/catalogue-IaCJdfB8.mjs.map +0 -1
  128. package/dist/chunks/compose-DRKjQcn0.mjs +0 -7333
  129. package/dist/chunks/compose-DRKjQcn0.mjs.map +0 -1
  130. package/dist/chunks/config-Cqu5XQoP.mjs +0 -96
  131. package/dist/chunks/config-Cqu5XQoP.mjs.map +0 -1
  132. package/dist/chunks/contract-DjssDPpS.mjs +0 -335
  133. package/dist/chunks/contract-DjssDPpS.mjs.map +0 -1
  134. package/dist/chunks/contract-bQ9FJl4N.mjs +0 -123
  135. package/dist/chunks/contract-bQ9FJl4N.mjs.map +0 -1
  136. package/dist/chunks/deny-ClTxSvHJ.mjs +0 -15
  137. package/dist/chunks/deny-ClTxSvHJ.mjs.map +0 -1
  138. package/dist/chunks/diff-Qw0II0sj.mjs +0 -101
  139. package/dist/chunks/diff-Qw0II0sj.mjs.map +0 -1
  140. package/dist/chunks/discover-BZPolSZG.mjs +0 -21
  141. package/dist/chunks/discover-BZPolSZG.mjs.map +0 -1
  142. package/dist/chunks/doctor-DcDFPvQM.mjs +0 -222
  143. package/dist/chunks/doctor-DcDFPvQM.mjs.map +0 -1
  144. package/dist/chunks/fix-B_oGzGVn.mjs +0 -82
  145. package/dist/chunks/fix-B_oGzGVn.mjs.map +0 -1
  146. package/dist/chunks/fleet-yWHQY2ya.mjs +0 -297
  147. package/dist/chunks/fleet-yWHQY2ya.mjs.map +0 -1
  148. package/dist/chunks/gc-BBXlBF5w.mjs +0 -161
  149. package/dist/chunks/gc-BBXlBF5w.mjs.map +0 -1
  150. package/dist/chunks/init--FxxkrcT.mjs +0 -63
  151. package/dist/chunks/init--FxxkrcT.mjs.map +0 -1
  152. package/dist/chunks/inspect-Buby4cQD.mjs +0 -22
  153. package/dist/chunks/inspect-Buby4cQD.mjs.map +0 -1
  154. package/dist/chunks/intake-Dd1KVXnO.mjs +0 -12
  155. package/dist/chunks/intake-Dd1KVXnO.mjs.map +0 -1
  156. package/dist/chunks/logs-Giq5sUau.mjs +0 -25
  157. package/dist/chunks/logs-Giq5sUau.mjs.map +0 -1
  158. package/dist/chunks/loop-BWsUpyus.mjs +0 -212
  159. package/dist/chunks/loop-BWsUpyus.mjs.map +0 -1
  160. package/dist/chunks/migrate-DuYCAbE3.mjs +0 -33
  161. package/dist/chunks/migrate-DuYCAbE3.mjs.map +0 -1
  162. package/dist/chunks/models-Btp6X2YZ.mjs +0 -24
  163. package/dist/chunks/models-Btp6X2YZ.mjs.map +0 -1
  164. package/dist/chunks/obsidian-BHLkXx_H.mjs +0 -235
  165. package/dist/chunks/obsidian-BHLkXx_H.mjs.map +0 -1
  166. package/dist/chunks/patch-sAgVqjpx.mjs +0 -50
  167. package/dist/chunks/patch-sAgVqjpx.mjs.map +0 -1
  168. package/dist/chunks/pause-BASBfKLO.mjs +0 -16
  169. package/dist/chunks/pause-BASBfKLO.mjs.map +0 -1
  170. package/dist/chunks/policy-Du7WVBFX.mjs +0 -139
  171. package/dist/chunks/policy-Du7WVBFX.mjs.map +0 -1
  172. package/dist/chunks/providers-Dx78imKj.mjs +0 -19
  173. package/dist/chunks/providers-Dx78imKj.mjs.map +0 -1
  174. package/dist/chunks/reconcile-BHn66X3C.mjs +0 -50
  175. package/dist/chunks/reconcile-BHn66X3C.mjs.map +0 -1
  176. package/dist/chunks/refactor-CoNoqLZr.mjs +0 -153
  177. package/dist/chunks/refactor-CoNoqLZr.mjs.map +0 -1
  178. package/dist/chunks/render-DyZr5Lgi.mjs +0 -53
  179. package/dist/chunks/render-DyZr5Lgi.mjs.map +0 -1
  180. package/dist/chunks/resume-GJQRb2Eb.mjs +0 -15
  181. package/dist/chunks/resume-GJQRb2Eb.mjs.map +0 -1
  182. package/dist/chunks/retro-Dr-2RTNN.mjs +0 -78
  183. package/dist/chunks/retro-Dr-2RTNN.mjs.map +0 -1
  184. package/dist/chunks/retry-CLrUem1H.mjs +0 -15
  185. package/dist/chunks/retry-CLrUem1H.mjs.map +0 -1
  186. package/dist/chunks/review-ZsBqp3vZ.mjs +0 -35
  187. package/dist/chunks/review-ZsBqp3vZ.mjs.map +0 -1
  188. package/dist/chunks/run-NGAxdsIX.mjs +0 -105
  189. package/dist/chunks/run-NGAxdsIX.mjs.map +0 -1
  190. package/dist/chunks/run-tool-C3rAv4XF.mjs +0 -26
  191. package/dist/chunks/run-tool-C3rAv4XF.mjs.map +0 -1
  192. package/dist/chunks/scan-C5uDr7Yq.mjs +0 -167
  193. package/dist/chunks/scan-C5uDr7Yq.mjs.map +0 -1
  194. package/dist/chunks/schema-Bq9qtgsd.mjs +0 -583
  195. package/dist/chunks/schema-Bq9qtgsd.mjs.map +0 -1
  196. package/dist/chunks/send-BdnJ85Nz.mjs +0 -19
  197. package/dist/chunks/send-BdnJ85Nz.mjs.map +0 -1
  198. package/dist/chunks/ship-BizfUe62.mjs +0 -140
  199. package/dist/chunks/ship-BizfUe62.mjs.map +0 -1
  200. package/dist/chunks/shutdown-BM92Iyv2.mjs +0 -15
  201. package/dist/chunks/shutdown-BM92Iyv2.mjs.map +0 -1
  202. package/dist/chunks/skip-DZG5kpcH.mjs +0 -18
  203. package/dist/chunks/skip-DZG5kpcH.mjs.map +0 -1
  204. package/dist/chunks/spec-C2h3U64g.mjs +0 -65
  205. package/dist/chunks/spec-C2h3U64g.mjs.map +0 -1
  206. package/dist/chunks/spec-path-tptqR7W8.mjs +0 -10
  207. package/dist/chunks/spec-path-tptqR7W8.mjs.map +0 -1
  208. package/dist/chunks/src-Bfr1yzsn.mjs +0 -1689
  209. package/dist/chunks/src-Bfr1yzsn.mjs.map +0 -1
  210. package/dist/chunks/src-CPW2_Ons.mjs +0 -5487
  211. package/dist/chunks/src-CPW2_Ons.mjs.map +0 -1
  212. package/dist/chunks/src-Cu3TxNob.mjs +0 -783
  213. package/dist/chunks/src-Cu3TxNob.mjs.map +0 -1
  214. package/dist/chunks/src-DNsLSxgm.mjs +0 -928
  215. package/dist/chunks/src-DNsLSxgm.mjs.map +0 -1
  216. package/dist/chunks/src-DbS9gkJy.mjs +0 -117
  217. package/dist/chunks/src-DbS9gkJy.mjs.map +0 -1
  218. package/dist/chunks/src-yi5whv3n.mjs +0 -2118
  219. package/dist/chunks/src-yi5whv3n.mjs.map +0 -1
  220. package/dist/chunks/status-SMjiOMYy.mjs +0 -29
  221. package/dist/chunks/status-SMjiOMYy.mjs.map +0 -1
  222. package/dist/chunks/tail-BuhT-2PH.mjs +0 -25
  223. package/dist/chunks/tail-BuhT-2PH.mjs.map +0 -1
  224. package/dist/chunks/update-BXIppsbi.mjs +0 -16
  225. package/dist/chunks/update-BXIppsbi.mjs.map +0 -1
  226. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs +0 -56
  227. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs.map +0 -1
  228. package/dist/cli.mjs +0 -186
  229. package/dist/cli.mjs.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,1532 @@
1
+ # Changelog
2
+
3
+ Entries are shown by `/cohorte-update-pipeline` ("What's new") after a core refresh. Keep them
4
+ short, user-facing, most recent first. One `## <version> — <YYYY-MM-DD>` section per release.
5
+
6
+ > Sections below 2.0.0 name commands **as they were at the time** (`/build`, `/drive`, `/loop`).
7
+ > They are history and are deliberately not rewritten — every command gained a `cohorte-` prefix
8
+ > in 2.0.0.
9
+
10
+ ## 3.0.0 — 2026-11-16
11
+
12
+ **One install mode, Claude Code only.** The machine gets the commands and the generic core;
13
+ everything that describes a project lives in that project and is committed with it.
14
+
15
+ - **Install once per machine:** `npm i -g cohorte && cohorte install`. It writes
16
+ `~/.claude/commands/cohorte-*.md`, `~/.claude/agents/cohorte-*.md`,
17
+ `~/.claude/workflows/cohorte-*.js` and the core in `~/.claude/cohorte/` — and **no**
18
+ machine-wide hook. `--global` is accepted and means nothing now; the 2.x "bundled" mode (a core
19
+ copied into each repo) is gone.
20
+ - **The gate lives in the repo:** `/cohorte-init-pipeline` and `/cohorte-update-pipeline` run
21
+ `cohorte sync`, which copies the gate to `.claude/hooks/cohorte-gate.py`, registers it in
22
+ `.claude/settings.json` (`Bash|Task|Agent` + `Write|Edit|MultiEdit`, fail-closed), writes the
23
+ `.claude/pipeline.json` pointer and the `.gitignore` entries. Commit them: a teammate who clones
24
+ is protected before installing anything.
25
+ - **Surface agents always render into the project's `.claude/agents`.** In 2.x global mode they
26
+ went to `~/.claude/agents`, where two projects with a `frontend` surface overwrote each other.
27
+ - **Your files are safe:** the install keeps a manifest of what it wrote, never deletes anything
28
+ else (2.x removed any `~/.claude/commands/review.md`, `build.md`, `spec.md`…), backs up a file of
29
+ ours you edited before refreshing it, never resets a `settings.json` it cannot parse (it stops
30
+ instead), and never removes another tool's hook.
31
+ - **`cohorte uninstall`** (`--purge` for your config, `--project` for one repo's gate wiring).
32
+ - **Renamed:** the fixed agents are `cohorte-review`, `cohorte-release`, `cohorte-profile-reader`;
33
+ the workflow files are `cohorte-*.js`. A 2.x `gate.preflight.agents: [review]` still gates.
34
+ - **Codex, Cursor, Gemini CLI and OpenCode are no longer supported.** Stay on `cohorte@2.10.2` for
35
+ them; the source is on the `archive/multi-runtime` branch.
36
+ - **Migrating from 2.x:** `npm i -g cohorte@latest && cohorte update` (removes the 2.x hook from
37
+ `~/.claude/settings.json` first, then moves the 2.x core to `~/.claude/cohorte/legacy-backup/`),
38
+ then `/cohorte-update-pipeline` in each project. Tried the discontinued Python line? Run
39
+ `uv tool uninstall cohorte-engine` and delete `~/.cohorte/`.
40
+ - **A gate that parses commands.** The hook used to grep the command text: `git push origin main
41
+ --force`, `git push origin +main`, `git push origin feat:main` or `git -C . push -f` all got
42
+ through. It now reads commands like a shell (quotes, continuations, `$(…)`, `sh -c`, env/sudo
43
+ prefixes, git global options and aliases), judges `git push` by its flags **and its destination
44
+ branch**, treats a detached HEAD or a `git switch main && …` chain as the default branch, and
45
+ denies a force push to the default branch in every Cohorte project even without a config. It
46
+ **fails closed** (an error, a malformed payload or an invalid `gate-config.json` no longer let the
47
+ command through), protects its own files from the agent, binds the preflight stamp to the checkout
48
+ that earned it, and its phase gate now sees `Agent` dispatches (the tool's name since Claude Code
49
+ 2.1.63 — the old `Bash|Task` matcher never fired). Still a guard against agent mistakes, not a
50
+ sandbox: keep branch protection on the remote.
51
+ - **Review sees what the feature changed.** Every diff (review, implementer self-check, freshness
52
+ stamp, ship) goes through `<core>/pipeline/scripts/feature-diff.sh`: untracked files are included
53
+ (new modules used to escape review entirely, and a feature that only added files scored SHIP) and
54
+ the base is the merge-base, so commits landing on `main` no longer show up as deletions. Existing
55
+ freshness stamps re-review once.
56
+ - **Ship gates on the verdict file:** `/cohorte-ship` requires `verdict.json` = SHIP with no
57
+ unreviewed surface and no HIGH/MEDIUM left (a missing stamp no longer reads as "legacy, skip").
58
+ - **Fixes across the cycle:** `/cohorte-fleet` worktrees now get their spec, design brief and
59
+ contract (re-render `scripts/new-feature.sh` with `/cohorte-update-pipeline`); the loop workflow
60
+ really resumes after a resumable stop, and `/cohorte-build <id> --readiness-only` refreshes the
61
+ readiness verdict without a rebuild; the audit workflow no longer wipes the deferred backlog;
62
+ `/cohorte-review --pr` runs nothing from a non-collaborator's PR without your go-ahead and installs
63
+ with `--ignore-scripts`; one verdict rule; a dead reviewer is retried once; `/cohorte-build`
64
+ creates the feature branch when isolation is off; `feature_id` no longer drifts between
65
+ brainstorm and spec; the dead `design.inline` option is gone.
66
+ - **Lifecycle:** specs gain `merged` (reconciled from `gh pr view`) and `abandoned` statuses.
67
+ - **Requirements:** Node ≥ 20, Python ≥ 3.9 as `python3`. `doctor` no longer crashes on an
68
+ indentless YAML list, `- db:wipe` stays a string, and `metrics --days=abc` is an error.
69
+ - **Releases:** publishing now waits for CI to pass on `main` and for a maintainer's approval;
70
+ `install.sh` / `install.ps1` install the latest release tag instead of the tip of `main`.
71
+
72
+ ## 2.10.2 — 2026-11-09
73
+
74
+ - **Back to the prompt-driven pipeline.** This release restores the 2.10.1 tree as is: the
75
+ `cohorte-*` slash commands, the gate hook and the Obsidian kanban mirror drive the pipeline
76
+ again. The experimental V3 line (Pi runtime, then the Python `cohorte-engine` rebuild,
77
+ published under the npm `dev` tag and on PyPI) is discontinued and was never `latest`.
78
+ Nothing changes for 2.10.x users; anyone who tried `cohorte@dev` should reinstall
79
+ `cohorte@latest`.
80
+
81
+ ## 2.10.1 — 2026-09-14
82
+
83
+ - **Codex project isolation:** surface agents stay in each repository's `.codex/agents/*.toml`
84
+ even with a global core; no `CODEX_HOME` launcher or auth symlink is required.
85
+ - **Codex correctness:** init/update/doctor use native TOML agents and MCP settings, preflight
86
+ covers `spawn_agent` dispatches, explicit Codex model choices survive, and implementer
87
+ templates no longer accidentally force a read-only sandbox. Added regression coverage.
88
+
89
+ ## 2.10.0 — 2026-08-24
90
+
91
+ - **The dashboard is gone.** The local web cockpit — the `cohorte dashboard` verb, the
92
+ dependency-free HTTP server, the Vite/React app and the prebuilt `dashboard/dist` that shipped
93
+ in every tarball — is removed, along with the fleet registry, kanban and usage readers that
94
+ only it consumed. It was a second surface for state the CLI already reports, with its own
95
+ build step, its own security posture (loopback-bound because its action endpoints executed
96
+ code: install, update, reset, and `/cohorte-init-pipeline`·`/cohorte-update-pipeline`·`/cohorte-audit`
97
+ through headless Claude), and its own drift to police. `cohorte doctor`, `cohorte specs` and
98
+ `cohorte metrics` answer the same questions from the shell, and `doctor` exits 1 on any bad
99
+ check, which the browser never could.
100
+
101
+ **What did not go with it:** the four modules those verbs actually run on — the JS port of
102
+ `/cohorte-doctor`, the runtime-layout resolver, the version prober and the block-YAML parser —
103
+ moved from `dashboard/server/` to **`lib/`**. `cohorte doctor` / `specs` / `version` behave
104
+ exactly as before, and so do the Francois extension's `--panel` payloads. Their test suite
105
+ moved with them (`scripts/test-dashboard.mjs` ⇒ `scripts/test-lib.mjs`, 54 assertions), minus
106
+ the cases that covered deleted code.
107
+
108
+ Fallout worth naming: the package no longer has a build step at all (`prepack` and
109
+ `build:dashboard` are gone, npm and CI no longer build a React app to publish), the tarball
110
+ drops from 88 files to 73, and `~/.claude/cohorte-dashboard.json` — the tracked-project list —
111
+ is now dead; delete it. `--port` / `--host` / `--open` and `COHORTE_DASHBOARD_PORT` /
112
+ `COHORTE_DASHBOARD_HOST` no longer exist; `cohorte dashboard` prints the usage and exits 2.
113
+
114
+ ## 2.9.0 — 2026-08-22
115
+
116
+ - **`/cohorte-intake` — the door before the doors.** Work has always entered the pipeline
117
+ pre-distilled by a human: a ticket became a `/cohorte-patch` paste, an email became a
118
+ brainstorm idea, by hand. Intake does the distillation: paste anything that arrives and it
119
+ triages — bug ⇒ the exact structure patch interviews for (inferred repro steps labeled as
120
+ such); feature ⇒ a brainstorm seed whose open-questions list is the panel's agenda, with any
121
+ `_decisions.md` line it contradicts named; noise ⇒ says so and stops, because inventing a
122
+ spec from noise costs a whole pipeline run downstream. The distillate lands on disk and on
123
+ the kanban's Ideas column; freezing anything stays the human's move.
124
+
125
+ - **`/cohorte-retro` — the pipeline learns from its own findings.** Every review leaves
126
+ structured residue (verdict.json, the specs' Remediation history, the deferred backlog) that
127
+ nothing ever read back. Retro mines it for patterns — the same finding kind on the same
128
+ surface across features, a hotspot module, a recurring fix family — and turns each into ONE
129
+ rule-shaped §Conventions line the human ratifies. Adopted rules re-render the affected
130
+ surface agents (the conventions slice is baked at render time — a rule without a re-render
131
+ is one reviewers enforce and implementers never saw) and land in the decisions journal.
132
+ Findings → rules → the next build never produces the finding: cheaper than any number of
133
+ review rounds catching it.
134
+
135
+ - **`/cohorte-fleet` — parallel features get a flight controller.** The worktree isolation
136
+ existed; the coordination lived in your head. `plan` builds the feature×surface overlap
137
+ matrix from the specs themselves (contract dependencies ⇒ merge order; same-tree writes ⇒
138
+ serialize or drop one), provisions the worktrees, and prints one launch line per feature.
139
+ `status` is one row per feature ending in the single next action. `sync` does the post-merge
140
+ sweep everyone forgets — rebase every survivor, report conflicts verbatim to their owner's
141
+ session, and say out loud that a rebase invalidates the freshness stamp. What it will never
142
+ do is spawn the work headless: that is the retired 2.2.0 driver's grave, and each feature's
143
+ loop keeps running in its own supervised session.
144
+
145
+ - **`/cohorte-review --pr <num>` — the pipeline reviews incoming work.** Same reviewers, same
146
+ report, none of the pipeline's certifications: the PR is fetched into a throwaway worktree
147
+ (your checkout untouched), reviewed in audit mode (no spec to conform to), and a red
148
+ preflight makes the mechanical failures the review instead of wasting reviewers on code that
149
+ doesn't compile. Posting the report as a PR comment always asks first — it is outward-facing
150
+ — and declining leaves the report on disk as a complete outcome.
151
+
152
+ - **What a feature costs, finally on the dashboard.** The workflow paths now stamp an
153
+ approximate `tokens` field into their metrics lines from the runtime's own counter
154
+ (`budget.spent()` deltas — the figure a conversational lead cannot read), the loop's history
155
+ carries cost per round, and the dashboard shows `~Nk tok` per feature and per phase. Marks
156
+ are placed around the review child so build/fix deltas never double-count it; token-less
157
+ conversational lines aggregate as absent, never as "free".
158
+
159
+
160
+
161
+ ## 2.8.0 — 2026-08-22
162
+
163
+ - **`/cohorte-loop` is back — as a workflow, which is the whole point.** The 2.2.0 driver was
164
+ retired because it spawned headless child processes it could not supervise: it stalled on a
165
+ permission prompt it could not see, read a missing `build.json` as an empty one, and had a
166
+ session killed mid-write with nothing noticing. `core/workflows/loop.js` runs
167
+ build → review → [fix → review]* for one feature inside the Workflow runtime instead — the
168
+ runtime holds control flow, a dead agent resolves to `null` rather than to silence, and there
169
+ is no prompt to stall on.
170
+
171
+ What it will not do is as designed as what it does: it *verifies* `/cohorte-build`'s outputs
172
+ (frozen spec, fresh `readiness.json`, the lead-authored contract) as preconditions and aborts —
173
+ naming the gap — on anything that is a human's call: a `NOT-READY` spec, a surface the profile
174
+ doesn't own, a blocking finding on the contract file itself. A dead reviewer's zero findings
175
+ can never read as ship (`unreviewed` is checked before `blocking`, in that order on purpose);
176
+ identical blocking findings two rounds running abort as treading water instead of burning the
177
+ remaining rounds; `maxRounds` (default 5) is the last net, never the first. State is four files
178
+ in `specs/reports/` — re-invoking resumes, and every file older than the spec is treated as
179
+ absent. There is **no** `core/commands/cohorte-loop.md` and `validate-core.mjs` now fails if
180
+ one appears: without the Workflow runtime the loop refuses explicitly rather than degrading to
181
+ a lead re-reasoning the fan-out every round at session prices. It stamps `in-progress` /
182
+ `in-review` / `blocked` on the spec — the driver states SCHEMA.md kept alive since 2.2.0 have
183
+ a producer again.
184
+
185
+ To serve it, the review workflow now writes the same `specs/reports/<id>.verdict.json` the
186
+ conversational `/cohorte-review` §3 guarantees (blocking count, normalized `blocking_items`,
187
+ sha256 fingerprint, the degraded `aborted: "preflight"` form) — one machine contract, two
188
+ producers.
189
+
190
+ - **A deny behind an ask was reachable with one click.** `gate.py` scanned command segments in
191
+ order and returned on the first match, so `git commit -m x && node ace migration:fresh`
192
+ surfaced only the benign `git commit` confirm — and the human's single "yes" ran the
193
+ hard-denied migration behind it. Deny patterns are now matched across the whole chain before
194
+ any ask is offered. Global installs pick this up with `cohorte update`; bundled repos via
195
+ `/cohorte-update-pipeline`.
196
+
197
+ - **The SHIP stamp is now earned, not implied.** The conversational `/cohorte-review` ticked the
198
+ DoD and wrote the freshness stamp on every SHIP — including one carrying HIGH findings, which
199
+ `/cohorte-ship`'s gates then happily certified, while the workflow variant refused the same
200
+ state. Both paths now agree: tick + stamp only when nothing above LOW survived; surviving
201
+ HIGH/MEDIUM routes to `/cohorte-fix` (or an explicit park) first.
202
+
203
+ - **A dozen bugs the release audit surfaced**, the sharper ones being: `cohorte install` seeded
204
+ `cohorte.config.yaml` under `~/.claude` even when `CLAUDE_CONFIG_DIR` pointed elsewhere — a
205
+ config no reader ever probed (CI now asserts the seed lands where the readers look);
206
+ the refactor workflow's retry round discarded the items its first verify had already cleared,
207
+ so the backlog re-dispatched finished work — and invoked with a bare `"backend"` it silently
208
+ refactored *every* big domain; the dashboard trusted the absolute paths in a committed
209
+ `runtimes.json`, going all-red on any cloned or moved checkout; `preflight.sh` fed a UTC
210
+ timestamp to a local-time `touch -t`, future-dating the throwaway index west of UTC (and an
211
+ all-empty command list stamped a green preflight that had verified nothing);
212
+ `new-feature.sh` branched worktrees off the *local* default branch its own fetch never
213
+ updated; a CRLF kanban board failed with "column not found" on a column that exists; and a
214
+ dead mechanical-gates agent read as "0 failures" in the audit workflow. Plus a sweep of doc
215
+ drift (the first-feature walkthrough skipped build *and* review; "Node-less" installers that
216
+ require Node; stale counts of agents, scripts and board columns).
217
+
218
+ - **The shell installers are now the thin delegators they already were.** Since 2.2.0 both
219
+ scripts handed everything to `bin/cli.js` and then carried ~300 lines of unreachable legacy
220
+ copy code below the hand-off — dead text that `validate-core`'s "does the installer copy X"
221
+ checks were vacuously matching, which is worse than no check: it reads as coverage. The dead
222
+ code is gone; the checks now assert CI's install dry-run postconditions — tests against the
223
+ copy that actually runs. Along the way: `sh install.sh` from inside a checkout silently
224
+ *cloned the remote* instead of installing the local tree (`$0` arrives with no slash and the
225
+ self-locate case missed it); both installers now refuse a Node older than 18 up front instead
226
+ of half-installing before `fs.cpSync` crashes; and the review agent's `tools:` names both
227
+ retrieval providers (`mcp__serena`, `mcp__graphify`) — one fixed agent file, shared across
228
+ projects, only the wired provider is live in a session, and graphify projects' reviewers were
229
+ silently cut off from their own index.
230
+
231
+
232
+ ## 2.7.0 — 2026-08-22
233
+
234
+ - **The metrics panel billed Sonnet 5 fifty percent over.** `prices.json` carried $3/$15 because
235
+ that was the rate scheduled to take effect on 2026-09-01. It never will: Anthropic made the
236
+ $2/$10 introductory rate the standard one. Every run costed since the entry was written reads
237
+ high, and the further back a run is, the more confidently wrong the number looks.
238
+
239
+ Sonnet 5 is now $2/$10, and the file says in prose why the increase must not be reinstated —
240
+ the next person to "correct" this back will at least have to argue with a comment first. Sonnet
241
+ 4.6 and earlier stay at $3/$15: same tier, different price, and the longest-prefix lookup keeps
242
+ them apart on its own.
243
+
244
+ - **A concurrency ceiling that moved while the comments stood still.** `audit.js` described the
245
+ runtime as capping concurrent agents at "~16". It is 20, it is named
246
+ (`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`), and raising it raises the ceiling without changing this
247
+ script — the queue belongs to the runtime, and a queued domain was never a lost one. Comments
248
+ only; no dispatch logic moved.
249
+
250
+ - **The design brief was the one step the pipeline handed back to you.** `/cohorte-spec` freezes a
251
+ brief to `specs/design/<feature_id>.md` and then said, in effect, paste this somewhere else. With
252
+ `design.inline: true` it can instead hand that file to `/design`, which reads the codebase,
253
+ matches the existing UI style, and returns editable artboards without leaving the session.
254
+
255
+ The flag is off by default and degrades rather than fails: an unmet floor falls back to the
256
+ paste-it-yourself path with a note, never an error. It needs `provider: claude-design`, the new
257
+ `inline_design` runtime capability (Claude Code only), and a CLI ≥ 2.1.234 — a **higher floor than
258
+ workflows' 2.1.154**, which is why `/cohorte-doctor` grew a separate check `8b` instead of raising
259
+ the existing one. Raising the shared floor would have made every install between the two versions
260
+ read as broken while its workflows ran fine.
261
+
262
+ Understand what inline does and does not change: it changes who does the pasting. The brief is
263
+ still written to disk first and is still what `/cohorte-build` reads — artboards are an aid to the
264
+ human, not an input to the pipeline. And `/design` is a research preview that **does not save them
265
+ for you**, so check 8b says so on every run, including the runs where everything passes. An
266
+ artboard nobody exported dies with the session, and there is no way to notice afterwards.
267
+
268
+ - This release adds a runtime capability, a profile flag, and a command section: run
269
+ `/cohorte-update-pipeline` after updating.
270
+
271
+ ## 2.6.0 — 2026-08-14
272
+
273
+ - **Two ways to type the same command, and one of them silently doesn't work.** The docs wrote
274
+ `npx cohorte install`, the Francois extension's manifest names a bare `cohorte` binary, and
275
+ nothing said why the two could not be the same string. They cannot: `npx` fetches a package
276
+ into a cache and runs it once, leaving nothing on `PATH`, and a Francois panel may only spawn
277
+ a **bare binary name resolved on `PATH`**. So the extension's requirement read like a
278
+ preference the rest of the documentation contradicted.
279
+
280
+ Every command is now written one way — `cohorte <verb>`, after `npm i -g cohorte` — across the
281
+ README, the docs, both shell installers, the CLI's own banners, the `/cohorte-doctor` fix
282
+ lines, and the `install` string `/cohorte-init-pipeline` writes into a repo's committed
283
+ `pipeline.json`. `npx cohorte@latest <verb>` still works and is still the right call for a
284
+ one-off on a machine you don't own; it is named once, as the escape hatch it is.
285
+
286
+ - **The cost of pinning, removed before it could bite.** `install` and `update` lay down the core
287
+ carried by the CLI that runs them. `npx cohorte@latest` made that self-correcting; a global
288
+ install does not, so `cohorte update` on a CLI left at an old version would re-lay an old core
289
+ and report success — an update that updates nothing.
290
+
291
+ Both verbs now compare themselves against the registry when they finish and print exactly what
292
+ to run (`npm i -g cohorte@latest`) when they are behind. It is never fatal, never blocks a
293
+ successful install, costs a 2.5s fetch with no `npm view` fallback, and stays silent on any
294
+ failure — an offline install pays 2.5 seconds and says nothing. `COHORTE_NO_VERSION_CHECK=1`
295
+ opts out; `CI` opts out already.
296
+
297
+ Nothing in the pipeline changed: no new agent, no gate, no template — this release needs no
298
+ `/cohorte-update-pipeline`.
299
+
300
+ ## 2.5.0 — 2026-08-14
301
+
302
+ - **Everything the pipeline knew about your repo, it would only say to a coding agent.**
303
+ `/cohorte-doctor` reads the health of an install and `specs/*.md` holds the board, but both
304
+ answers cost a session: you opened Claude Code, ran a command, and read prose. There was no
305
+ way to ask "is this repo's pipeline sound?" from a shell script, a CI job, or anything that
306
+ isn't an LLM.
307
+
308
+ Two read-only commands now answer without an agent in the loop:
309
+
310
+ ```sh
311
+ cohorte specs # the board: id · status · branch · title, from specs/*.md frontmatter
312
+ cohorte doctor # the /cohorte-doctor checks — exits 1 when any check is bad
313
+ ```
314
+
315
+ `doctor` **exits 1 on any bad check**, so it drops into CI as-is. Both reuse the dashboard's
316
+ own readers, so the board, the dashboard and the CLI can never give three answers about one
317
+ repo. `--porcelain` gives one record per line with `U+001F` between fields — a spec title
318
+ with a space in it never misaligns a column — and `--json` gives the native document.
319
+
320
+ - **The pipeline, in Francois.** A third shape, `--panel` (on `specs`, `doctor` and `metrics`),
321
+ emits the payload a [Francois](https://github.com/antoine-gmnz/francois) extension panel
322
+ validates against. It exists for
323
+ [**francois-plugin-cohorte**](https://github.com/TheBidouilleAgency/francois-plugin-cohorte):
324
+ a manifest-only extension — no code, no binary — that renders the 30-day cost, the doctor
325
+ report and the spec board as three panels beside your sessions, on any project with a
326
+ `PIPELINE.md`.
327
+
328
+ ```sh
329
+ npm i -g cohorte # a Francois extension may only spawn a
330
+ francois ext install TheBidouilleAgency/cohorte # bare binary on PATH — never npx, never a shell
331
+ ```
332
+
333
+ This is the only Francois-aware surface in the package, and it is one flag wide. Nothing in
334
+ the pipeline itself changed: no new agent, no new gate, no template to re-render — this
335
+ release needs no `/cohorte-update-pipeline`.
336
+
337
+ ## 2.4.0 — 2026-08-13
338
+
339
+ - **The pipeline froze *what* to build, never *how much*.** A spec pins the contract and the
340
+ acceptance criteria, so the feature was right — but nothing ever asked an implementer whether the
341
+ helper it was about to write already existed three files over, whether the stdlib shipped it, or
342
+ whether the abstraction it was wrapping had exactly one caller. The diff came out correct and
343
+ fatter than it needed to be, and every extra line was then paid twice: once at build, once again at
344
+ `/cohorte-review`, whose cost is linear in the diff it reads.
345
+
346
+ Implementers now walk a **minimality ladder** before inventing anything: does it need to exist at
347
+ all → already in this repo → stdlib/framework → native platform feature → an already-installed
348
+ dependency → a few inline lines → only then the minimum the contract requires. It governs the
349
+ **how**, never the **what** — a contract field, an acceptance criterion, a test, a validation or an
350
+ authz check is out of its reach, by construction. It is bounded to **one lookup per candidate**, so
351
+ it costs a symbol search and not an exploration, and a shortcut kept on purpose surfaces in the
352
+ handoff's `## TODO / not done` with its ceiling and its upgrade trigger, instead of rotting in a
353
+ comment.
354
+
355
+ The `review` agent gains the matching axis — over-engineering, tagged `delete:` / `stdlib:` /
356
+ `native:` / `yagni:` / `shrink:`, always naming the cheaper replacement. It is deliberately the
357
+ weakest thing in the report: **5 findings max, MEDIUM ceiling, never a CRITICAL, never a REVISE,
358
+ never a BLOCK**. A diff whose only findings are `complexity` ships, and they park in the backlog
359
+ like any other nit. Tests, fixtures and anything the contract mandates are out of bounds — coverage
360
+ is not bloat. In audit mode the axis widens to the whole target (10 per domain, biggest cut first,
361
+ closing with `net: -N lines, -M deps possible.`), and `/cohorte-audit` files them under a new
362
+ `complexity` backlog tag: the cheapest wins in the file, since deleting code needs no new test.
363
+
364
+ Doctrine adapted from [ponytail](https://github.com/dietrichgebert/ponytail) (MIT) — the decision
365
+ ladder and the finding tags are theirs; the subordination to the frozen contract and the
366
+ can't-block severity ceiling are what make them safe inside a gated pipeline.
367
+
368
+ Run `/cohorte-update-pipeline` to re-render your surface agents — the ladder lives in the
369
+ implementer template, so it only reaches your agents through a reconcile.
370
+
371
+ ## 2.3.0 — 2026-08-12
372
+
373
+ - **A bug fix had to pretend to be a feature.** The only way into the pipeline was
374
+ `/cohorte-spec` — a section-by-section interview whose critical part is a frozen §5 contract, with
375
+ a ~300-line budget. For a `500` on an empty cart that is more work than the fix, so in practice you
376
+ left the pipeline and patched by hand: no frozen intent, no review, no trace.
377
+
378
+ `/cohorte-patch` is the bug-fix entry point. A **triage, not an interview** — repro, expected
379
+ behaviour, what must not change — it locates the cause itself and freezes
380
+ `specs/patch-<slug>.md` (`kind: patch`, ~60 lines). The **§4 regression test replaces §5 CONTRACT**
381
+ as the thing the diff is checked against.
382
+
383
+ Then nothing downstream is special-cased: a patch spec *is* a spec, so `/cohorte-build` →
384
+ `/cohorte-review` → `/cohorte-fix` → `/cohorte-ship` consume it unchanged, one `/clear` between
385
+ each — four short sessions instead of one thread re-sending its own triage history at input price
386
+ every turn. Only three places read `kind: patch`: build §1.6/§2 (judge the repro + test, author no
387
+ contract when §5 is `none`), the `review` agent (scope creep becomes a first-class finding), and
388
+ ship (branch off `vcs.patch_branch_prefix`, `patch` bump by default, `fix(<scope>)` commit).
389
+
390
+ A patch may span **several surfaces** — one bug, one repro, one spec. The single hard escalation:
391
+ a fix needing **new** contract surface area is a feature wearing a bug's clothes, and it is routed
392
+ to `/cohorte-spec` rather than letting two surfaces invent a shape independently.
393
+
394
+ - **Telemetry is gone — all of it.** The opt-in usage pings that shipped through 2.2.0 are removed
395
+ wholesale: the `telemetry-send.sh` sender, the per-phase pings in the six funnel commands, the
396
+ consent question in `/cohorte-init-pipeline`, the `telemetry:` block in the config template, the
397
+ `/cohorte-doctor` consent check, the collector contract in `SCHEMA.md`. Cohorte now sends nothing,
398
+ anywhere.
399
+
400
+ **Upgrading removes what is already on disk.** Copy-over never deletes, so an existing install
401
+ would otherwise keep an executable that still POSTs to the collector — all three installers
402
+ (`install.sh`, `install.ps1`, `npx cohorte`) now scrub it, and CI asserts its absence. And
403
+ `/cohorte-update-pipeline` deletes the leftover `telemetry:` block from
404
+ `~/.claude/cohorte.config.yaml`: nothing reads it any more, and an `enabled: true` left sitting in
405
+ a file you may open reads as though data were still leaving the machine.
406
+
407
+ The OpenTelemetry tip (Claude Code's own metrics export, a collector you point at yourself) is
408
+ gone from `SCHEMA.md` §Measuring cost and the token-economy guide too. `/cost` and
409
+ `pipeline-metrics.jsonl` remain — both entirely local.
410
+
411
+ `validate-core.mjs` gained a ratchet: any mention of telemetry or a usage ping under
412
+ `core/{commands,agents,templates,workflows}` now fails CI, so it cannot creep back in by copying an
413
+ old command file. The single exemption is `/cohorte-update-pipeline` — the command that *deletes*
414
+ the leftovers has to name them — and it is itself checked for never naming a ping, a sender or a
415
+ consent flow.
416
+
417
+ - **Kanban:** `/cohorte-patch` with no argument offers the **Ideas** column, `[patch]`-titled cards
418
+ first, and titles its own card `[patch] <title>` (join key `#patch-<slug>`). The `[<kind>]` prefix
419
+ stays a human convention — nothing parses it.
420
+
421
+ - **Profile:** new optional `vcs.patch_branch_prefix` (default `fix/`); `/cohorte-update-pipeline`
422
+ tops it up, and a profile without it falls back to the same default.
423
+
424
+ ## 2.2.0 — 2026-08-12
425
+
426
+ - **The pipeline was Claude Code or nothing.** The doctrine — frozen spec, stateless surfaces, a
427
+ gate you cannot talk your way past — is not Claude-specific, but every artefact that carried it
428
+ was: `.claude/commands/*.md` with Claude frontmatter, `Task` dispatches, a PreToolUse hook. A
429
+ Codex or Cursor user could read the ideas and reimplement nothing.
430
+
431
+ `core/commands/` and `core/agents/` are now **runtime-neutral sources**, and the installer renders
432
+ them per coding agent — as slash commands, TOML commands, or **Codex skills**
433
+ (`.agents/skills/<name>/SKILL.md`, committed with the repo: custom prompts are deprecated *and*
434
+ user-scoped, so a teammate cloning the repo would have got the profile and none of the commands) —
435
+ for **Claude Code, Codex CLI, Cursor, Gemini CLI, OpenCode**
436
+ (`npx cohorte install --runtime=codex,cursor`, or `--all-runtimes`, or nothing and it detects and
437
+ asks). Rendering rewrites the surface — markdown + the frontmatter keys that runtime understands,
438
+ or TOML for Gemini — resolves every path through the tokens `<core>` / `<state>` / `<agents>` /
439
+ `<config>` / `<memory>`, and swaps the argument placeholder (`$ARGUMENTS`, `{{args}}`, or an
440
+ explicit note where the runtime substitutes nothing, as Cursor does).
441
+
442
+ The part that is not cosmetic: the prompts **branch on what the runtime can enforce**, and say so
443
+ in their own text rather than pretending.
444
+
445
+ **The gate really runs on four of the five.** `gate.py` is registered as a blocking hook in each
446
+ runtime's own format — `PreToolUse` in `settings.json` (Claude) and `.codex/hooks.json` (Codex),
447
+ `beforeShellExecution` in `.cursor/hooks.json`, `BeforeTool` in `.gemini/settings.json` — and
448
+ emits that runtime's envelope, selected by `--runtime <id>`. A verdict in the wrong shape is read
449
+ as *allow* by every one of them, so each dialect is covered by `scripts/test-gate.mjs` rather than
450
+ trusted. **Codex and Gemini have no confirmation tier**, so an `ask` verdict is escalated to
451
+ `deny` with the reason attached: the point of that tier is that a human sees the command first,
452
+ and a runtime that cannot ask cannot deliver it — the same rule unattended headless runs already
453
+ used. The phase gate also learned Gemini's shape, where a subagent arrives as a tool of its own
454
+ name rather than as `Task` + `subagent_type`. OpenCode extends via plugins, not hooks, so there
455
+ the commands call `gate.py --check` themselves: same verdicts, but advisory, and
456
+ `/cohorte-doctor` says so instead of reporting ✅.
457
+
458
+ **Subagents are real everywhere**, in four different file formats — markdown + frontmatter for
459
+ Claude, Cursor, Gemini and OpenCode, TOML with the body under `developer_instructions` for Codex.
460
+ Read-only enforcement for the reviewer is derived from the source agent's tool list and re-emitted
461
+ as each runtime spells it (`readonly: true`, `sandbox_mode = "read-only"`); where there is no
462
+ equivalent, the rendered reviewer carries an explicit instruction that read-only is on it, and
463
+ why. Model pins do **not** travel: the profile names Anthropic aliases, which are meaningless
464
+ elsewhere, so agents inherit the runtime's own model selection.
465
+
466
+ **Real subagents are a requirement, not a capability to degrade around.** A sequential-persona
467
+ fallback shipped mid-development and was removed before release: it asked the lead to simulate the
468
+ isolation boundary by discipline — adopt one agent file, do that surface, drop it — which is not
469
+ the same guarantee, and no supported runtime ever took the branch. A runtime declaring
470
+ `subagents: false` is now refused at install with a named error rather than rendered into a
471
+ pipeline whose central promise is silently absent.
472
+
473
+ - **`/cohorte-loop` is removed, on every runtime including Claude Code.** The autonomous
474
+ build→review→fix driver was the one part of the pipeline tied to a single vendor's headless CLI —
475
+ it spawned `claude -p` children through two shell scripts, a detached `screen` session, a
476
+ `caffeinate` assertion and a resume protocol stamped into spec front-matter. That is a lot of
477
+ surface, on the platform-specific end of the codebase, for a phase the human-driven cycle already
478
+ covers at a cost the loop was mostly there to hide.
479
+
480
+ Gone with it: `scripts/loop.sh`, `scripts/loop-detach.sh`, their test suite, and the
481
+ `loop_pass`/`loop_phase` front-matter fields (dropped from the spec template; still *read* by the
482
+ dashboard so a spec left mid-flight by an older core still explains itself). The installer scrubs
483
+ the command and both scripts on upgrade, in every runtime's layout — copy-over never deletes, and
484
+ a surviving command file is a decoy the model can still fire against a core that no longer ships
485
+ its driver.
486
+
487
+ **The file contract stays.** `verdict.json`, `readiness.json` and `build.json` are still written
488
+ on every run, and the `in-progress`/`blocked` spec statuses stay valid: they are what anything
489
+ automating the cycle from outside reads and writes. Removing the built-in driver does not remove
490
+ the ability to drive it — it removes cohorte's opinion about how.
491
+
492
+ Layout: each runtime gets its own rendered core (`.cohorte/<id>/`), because the same template
493
+ resolves differently per capability — but the **project state is shared** (`.cohorte/`:
494
+ gate-config, preflight stamp, metrics), so a repo driven from two agents cannot disagree with
495
+ itself about what is gated or what has been verified. The user config is shared too; the shipped
496
+ scripts probe `~/.claude` then `~/.cohorte`, so one kanban board and one telemetry consent.
497
+
498
+ **Claude Code is unchanged** — same paths, same frontmatter, same hook, and `scripts/test-adapter.mjs`
499
+ asserts that as a regression test alongside the per-runtime output. `install.sh` / `install.ps1`
500
+ now delegate to the Node CLI: there is no shell renderer, and a raw copy would install prompts
501
+ full of unresolved markers that look installed and instruct the model wrongly.
502
+
503
+ - **A config dir with a space in it broke every tool call in the session.** The gate-hook
504
+ registration quoted the script path only on Windows, so a `CLAUDE_CONFIG_DIR` under
505
+ `~/Library/Application Support/…` — where a desktop host naturally puts it — produced
506
+ `python3 /Users/x/Library/Application Support/…/gate.py`. The shell split that, python reported
507
+ `can't open file '/Users/x/Library/Application'`, and *every* Bash and Task call failed —
508
+ including the ones needed to undo it. Quoted on every platform now, in both the global
509
+ registration and the per-runtime one, with a test that installs into a path containing a space
510
+ and asserts the quoting plus that a re-install still reconciles its own entry instead of
511
+ stacking a second.
512
+
513
+ - **`CLAUDE_CONFIG_DIR` was only half honoured.** The runtime registry declares Claude's paths as
514
+ `~/.claude`, and the adapter resolved them from the homedir — so with the variable set, the core
515
+ was written to the real `~/.claude` while the hook was registered in the overridden dir. A
516
+ scratch or CI install silently wrote into the user's actual global core. `resolvePaths` now
517
+ takes a re-rooting override, and the test asserts the core, the commands and the hook all land
518
+ in the override with nothing written to the home default.
519
+
520
+ - **The dashboard reported a healthy non-Claude install as broken.** Every path it checked was
521
+ `.claude/…`, so a repo driven from Cursor came back "no pipeline core installed", "surface with
522
+ no rendered agent", "artifacts not gitignored", "gate.py not registered" — four findings, all
523
+ false. A false red is worse than no check: it sends someone fixing what is not broken. The
524
+ server now resolves paths from `runtimes.json` (`dashboard/server/runtime.js`), reads the gate
525
+ registration in each runtime's own envelope, names artifacts against the right state dir, reads
526
+ the metrics sink from every state dir in play, skips workflows where there is no engine instead
527
+ of reporting them missing, and the reset action backs up every runtime's directory rather than
528
+ leaving the others behind for the fresh install to land beside.
529
+
530
+ - **`SCHEMA.md` is the agents' rulebook, read at run time — and it still hardcoded `.claude`.**
531
+ It ships to `<core>/pipeline/`, so on a non-Claude install it was telling agents to write
532
+ rendered agents and read the gate config in a directory that runtime never looks at. It and
533
+ `PIPELINE.template.md` now use the same `<core>`/`<state>`/`<agents>`/`<config>` tokens as the
534
+ commands, and the installer resolves their capability conditionals like any other prompt.
535
+
536
+ - **The preflight stamp could green code that had changed.** Both sides of the content digest seed
537
+ a throwaway git index from the real one, for its stat cache — but the copy is stamped `now`, and
538
+ git trusts an entry's cached stat data whenever the entry predates the index file. A file edited
539
+ in the same second as the preflight, at an unchanged size, therefore read as clean: the gate let
540
+ a `review` dispatch through onto code the preflight never verified. Both `gate.py` and
541
+ `preflight.sh` now backdate the copy by 5 s, which forces a content check for anything touched
542
+ inside that window and leaves the fast path intact for every older file.
543
+
544
+ ## 2.1.0 — 2026-08-09
545
+
546
+ - **A repo that gates merges on a per-feature release note shipped red PRs, and the flow reported
547
+ success.** Changesets' `changeset` job fails any PR that touches product code without a
548
+ `.changeset/*.md`, but that requirement lives in the project's `CLAUDE.md` — which the ship flow
549
+ never reads. So `/cohorte-ship` committed, pushed, opened the PR and moved the kanban card to
550
+ **Shipped** while the PR was unmergeable, red on a job nobody was watching.
551
+
552
+ The profile gains a `release_notes` block (`enabled`, `tool`, `dir`/`filename`,
553
+ `anchor_package`, `language`, `forbid_levels`, `empty_cmd`, `ci_job`, `guidance` — SCHEMA.md
554
+ §Release notes), and `/cohorte-ship` gains **§2b**: the lead writes the note itself, next to the
555
+ `status: shipped` flip, so it lands *inside* the release commit rather than in a second one after
556
+ the PR is already open. The bump level is project policy, not a git ritual — the release agent is
557
+ now explicitly forbidden from authoring or editing a note, and only stages the one it is handed.
558
+ §4 verifies the note is in the commit; §5 routes a red `ci_job` back to §2b instead of through
559
+ `/cohorte-fix`, which would treat a missing note as a code finding.
560
+
561
+ Two things the block encodes that the tool itself does not: `forbid_levels`, for the `0.x` repo
562
+ where a `major` changeset silently jumps to `1.0.0` with no human deciding it, and the rule to
563
+ **ask** rather than guess between two defensible levels — a wrong bump is a published version
564
+ number, not a fixable draft. `empty_cmd` covers the honest no-op, for a PR that must move no
565
+ version at all.
566
+
567
+ - **Existing projects are asked, not defaulted.** `/cohorte-init-pipeline` detects a versioning tool
568
+ or note-enforcing CI job in Phase 1 and asks the anchor package, language and bump policy in Phase
569
+ 2; `/cohorte-update-pipeline` treats `release_notes` as a genuine human decision during reconcile
570
+ rather than topping it up blind. No tool found ⇒ `enabled: false`, and §2b is a silent no-op.
571
+
572
+ ## 2.0.2 — 2026-08-08
573
+
574
+ - **Kanban cards stopped moving mid-pipeline, and every stage still reported success.** The
575
+ stages only *described* the move — "move card `#<id>` → Building, no-op silently if no board" —
576
+ without saying where a board is even declared. Each phase runs in its own session after a
577
+ `/clear`, so the cheapest reading consistent with that instruction is "I see no board, so there
578
+ is none": a `/cohorte-ship` run announced "no kanban board configured", having opened neither
579
+ `~/.claude/cohorte.config.yaml` nor `PIPELINE.md`, and a feature that shipped and merged left
580
+ its card sitting in "Ready to build". Silence was indistinguishable from correctness, so this
581
+ went unnoticed across several features.
582
+
583
+ Resolution is not a judgment call, so it is no longer made by a judge. `kanban-move.sh auto <id>
584
+ <stage>` now reads the profile `name`, the config's `kanban.enabled` / `obsidian.vault_path` /
585
+ `boards[name]`, and maps the **stage key** (`ideas` … `shipped`) to that board's heading through
586
+ `boards[name].columns` → `kanban.columns` → a built-in default. Every stage calls exactly that,
587
+ and reports the line it printed: `moved #<id> -> <column>`, or `kanban: <reason>` naming the
588
+ missing link. Both exit 0 and they are not interchangeable. A board that *is* configured but
589
+ unmovable stays loud (exit 2 usage, exit 3 missing board / unknown column). Explicit board paths
590
+ and literal headings still work.
591
+
592
+ `validate-core` now fails any funnel command that moves a card without a literal
593
+ `kanban-move.sh auto …` call, or that omits the instruction not to conclude "no board" without
594
+ running it — the prose-only form is what regressed, so the prose-only form is what is banned.
595
+ New `scripts/test-kanban.mjs` (29 checks) pins the resolution table and the move semantics.
596
+
597
+ - **Renaming a project silently unlinks its board.** `kanban.boards` is keyed by the profile
598
+ `name`, so editing `name:` orphans the old entry and no lookup matches the new one — a genuine
599
+ "not configured", identical from the outside to never having had a board. `/cohorte-doctor`
600
+ gains check **7b**, which reports the resolved board (or the exact missing link) and flags an
601
+ orphaned entry as a rename; `/cohorte-update-pipeline` offers to re-key it instead of creating a
602
+ second board. New `kanban-move.sh --check` does the resolution alone, for both.
603
+
604
+ - **The gate judged `cd <other repo> && git commit` against the wrong checkout.** Branch-conditional
605
+ patterns resolved the branch at the payload cwd, but the tool's shell keeps no cwd between calls,
606
+ so agents write the `cd` into the command itself. A commit on a feature branch in another repo was
607
+ therefore refused as if it were on the default branch — and the refusal named a branch the command
608
+ was never going to run on, so no confirmation could lift it (in an unattended run, where `ask`
609
+ escalates to `deny`, it was a hard wall). The branch is now resolved per segment at the cwd that
610
+ segment actually runs in, cached so the common case is still one `git` call. Deliberately narrow:
611
+ a plain absolute/relative/quoted `cd`, never `cd -`, `$(…)`, variables or globs — anything
612
+ unresolvable keeps the previous cwd, which is the direction that keeps gating. `cd` never softens
613
+ the unconditional `deny`/`ask` tiers; 10 new cases in `test-gate.mjs` pin all of it.
614
+
615
+ - **`/cohorte-brainstorm` tags an Ideas card before moving it.** The join key is the `#<id>` tag,
616
+ and an Ideas card a human typed by hand has none — so the move found nothing, created a second
617
+ card, and stranded the original in Ideas. It now appends the tag first, located by `grep -n`,
618
+ never a full board read.
619
+
620
+ ## 2.0.1 — 2026-08-03
621
+
622
+ Three fixes, one failure: an autonomous `/cohorte-loop` run that built 1 surface of 3, stamped
623
+ itself green, and then hung asking a human to approve its own pre-flight. All in `loop.sh` — no
624
+ repo files change, so `npx cohorte@latest update --global` (or `update`) is the whole migration.
625
+
626
+ - **Child sessions now run in `bypassPermissions`, not `acceptEdits`.** `acceptEdits` auto-approves
627
+ Write/Edit and *nothing else*, so the first `Bash` call no `allow` prefix in `settings.json`
628
+ covers raises a permission prompt — and a `claude -p` child has nobody to answer it. It stalls,
629
+ prints prose asking you to approve, and **exits 0**, which the driver scores as a clean phase.
630
+ That is the whole content of one observed run: the review child blocked on invoking
631
+ `preflight.sh` and the loop logged `▶ /cohorte-review … ok`. It is also backwards from what the
632
+ gate is built for — `hooks/gate.py` escalates every `ask` match to a hard **deny** under
633
+ `bypassPermissions` precisely because an unattended run cannot confirm. So the dangerous commands
634
+ from PIPELINE.md `gate` stay blocked deterministically, while typecheck/lint/tests/`git diff` stop
635
+ needing a human. `CLAUDE_FLAGS` still overrides it for a watched run.
636
+
637
+ - **A build phase that reported nothing is no longer treated as a build that found nothing.** The
638
+ driver checked `dead[]` in `specs/reports/<id>.build.json` but accepted the file being **absent** —
639
+ and a phase cut short never reaches the step that writes it, so there was no file to grep and no
640
+ surface to name while the child still exited 0. A 3-surface build that lost 2 of them mid-write
641
+ stamped `<id>.built` and sent reviewers at the result. A missing `build.json` after a build now
642
+ aborts as **exit 2**, naming the cause, and leaves no stamp so a re-run rebuilds.
643
+
644
+ - **`CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0` is exported for every child.** Print mode otherwise
645
+ *terminates* still-running background tasks at its ceiling ("Background tasks still running after
646
+ 600s; terminating") — which is 25–40 min short of a real implementer batch, and killed the two
647
+ surfaces above mid-write. The phase is bounded by its own completion (and by the `caffeinate`
648
+ assertion the driver already holds), not by a stopwatch that fires inside the longest phase.
649
+
650
+ `test-loop.mjs` pins all three, including the fixture bug that hid the second one: its `ready`
651
+ build wrote no `build.json` either.
652
+
653
+ ## 2.0.0 — 2026-08-03
654
+
655
+ > **Breaking: every command is renamed.** `/build` → `/cohorte-build`, `/review` →
656
+ > `/cohorte-review`, and so on for all 13. The driver, `/loop` → `/drive` in 1.6.0, is now
657
+ > **`/cohorte-loop`**. Re-run `npx cohorte@latest update --global` (or `update`): the update
658
+ > **deletes** the 13 unprefixed command files from your install rather than leaving them as
659
+ > decoys. Nothing inside your repo needs editing — `/build` in a spec or PIPELINE.md is prose,
660
+ > not a call site. Muscle memory is the only migration cost.
661
+
662
+ - **Every command now carries a `cohorte-` prefix, ending command shadowing for good.** A command
663
+ whose name collides with a Claude Code built-in is not overridden, it is **shadowed**: the
664
+ built-in answers the slash, our file is never read, and the session confidently reports on a run
665
+ that never happened. `/loop` did exactly that and went unnoticed until a user found the driver had
666
+ never started; `/doctor` was sitting on a watchlist waiting to do the same. 1.6.0 renamed one
667
+ name; this replaces the whole approach. `validate-core` now enforces the prefix structurally
668
+ instead of maintaining a blocklist that could only ever forbid the collisions we already knew
669
+ about. Telemetry **phase** names (`build`, `review`, `fix`, …) stay unprefixed — they are a wire
670
+ contract with the collector, and the retired bare command names are kept in the metrics
671
+ collector's retired list so months of existing transcripts stay attributed instead of silently
672
+ reclassifying to `(chat)`.
673
+
674
+ - **`/cohorte-loop` can now run for hours.** It previously ran the driver as one foreground Bash
675
+ call, which cannot work: a single call is capped at **600 s** and a build is 25–40 min, so it was
676
+ killed mid-`/cohorte-build`. Backgrounding it was worse — a backgrounded Bash call is **not
677
+ detached**, so the driver stayed in the calling session's process group and every Claude Code
678
+ restart, crash or laptop sleep took `loop.sh` and its `claude -p` children down with it, mid-write.
679
+ Observed on a real run: four teardowns in 45 minutes, each aborting both surface implementers and
680
+ leaving a half-built tree that read as `dead`. New `loop-detach.sh` puts the driver in its own
681
+ `screen` session so it outlives the launching process entirely, and `/cohorte-loop` polls a small
682
+ status file in ~9-minute waits. The driver's exit code — which the report table is keyed on —
683
+ survives as `__EXIT__ <code>` in that file.
684
+
685
+ - **`loop.sh` holds the machine awake for its whole run.** It re-execs itself under
686
+ `caffeinate -ims` on macOS, `systemd-inhibit` on Linux, because system sleep aborts every
687
+ in-flight `claude -p` request and the abort is byte-identical to "the agent returned nothing" —
688
+ the `dead` family the driver exists to catch. The inhibitor is **probed before the `exec`**, since
689
+ `exec` replaces the shell: one that exists but is refused (`systemd-inhibit` answers `Failed to
690
+ inhibit: Access denied` in a container, in CI, or in any seatless session) would otherwise make its
691
+ own failure the driver's exit code and the run would never start — GitHub's Linux runners turned
692
+ all 24 loop tests red exactly that way. Absent or refused both fall through to a no-op; an unheld
693
+ power assertion is a degraded run, not a failed one, and `test-loop.mjs` now pins both directions.
694
+ **This cannot prevent lid-close sleep** — no userspace assertion can on any platform; keep the
695
+ lid open or use clamshell mode.
696
+
697
+ - **Platform tiers, stated rather than assumed.** Detaching uses `screen` (macOS + Linux), else
698
+ `setsid` (Linux) — both escape the caller's process group, which is what actually matters. Git
699
+ Bash on Windows has neither, so it falls back to `nohup`, which ignores `SIGHUP` but does **not**
700
+ survive a teardown; `loop-detach.sh` prints that warning rather than degrading silently, and
701
+ points at running `loop.sh` from your own terminal instead. See the platform table in
702
+ `docs/reference/scripts.md`.
703
+
704
+ - **Fixed — the preflight stamp is keyed on the code, not on HEAD, and is never versioned.** The
705
+ stamp recorded the HEAD sha, which is the wrong key in both directions: the reviewed tree is
706
+ normally *dirty*, so committing the very code the preflight verified made the gate ask on a clean
707
+ tree, while an implementer editing files between preflight and dispatch invalidated nothing. Worse,
708
+ `.claude/preflight.ok` was never gitignored — once a release agent staged `.claude/`, the stamp
709
+ went into git describing the tree *before* its own commit, so it could never match again: every
710
+ review dispatch in that repo asked "HEAD moved" forever, and every new clone or worktree inherited
711
+ a green it never earned. The stamp is now `<epoch> <sha> <tree digest>`, where the digest is the
712
+ git tree id of the working tree (`.claude` and `specs` excluded, so the pipeline's own report,
713
+ metrics and DoD writes don't invalidate it), computed in a throwaway index that never touches
714
+ yours. Pre-2.0.0 two-field stamps still fall back to the HEAD comparison. `/cohorte-doctor` check 3
715
+ now fails hard on a tracked stamp, `/cohorte-update-pipeline` untracks it and fixes `.gitignore`
716
+ (§Reconcile step 8), and `test-gate.mjs` pins all of it — including "commit the verified code ⇒
717
+ still green" and "one edit ⇒ red".
718
+
719
+ - **`/cohorte-review` and `/cohorte-fix` now spell out the metrics path instead of delegating it.**
720
+ Both said "append a line to `pipeline-metrics.jsonl`" and pointed at `/cohorte-build` §4 for where
721
+ that file lives — a lead running from a feature worktree resolves the bare name against its own
722
+ cwd and strands the batch in a sink that dies at teardown. Both now carry the resolved
723
+ `$(dirname "$(git rev-parse --git-common-dir)")` form inline.
724
+
725
+ - **Fixed — the dashboard's command allowlist had drifted from its own error message.** The
726
+ server accepted the bare `/audit`/`/init-pipeline`/`/update-pipeline` while the UI sent (and the
727
+ error text advertised) the prefixed names, so the run button would have 400'd on the only
728
+ commands that exist. The test suite checked *rejection* only, which is why it passed; it now pins
729
+ both directions.
730
+
731
+ ## 1.6.0 — 2026-08-01
732
+
733
+ > **Re-run `npx cohorte@latest update --global` (or `update`)** to pick up the readiness gate, the
734
+ > deferred-findings route, the resumable driver and the decision journal — the update *deletes* the
735
+ > shadowed `/loop` command and the long-dead `/cycle` from your install, it does not just stop
736
+ > shipping them. Existing specs keep working: the new front-matter fields are written on demand, and a
737
+ > spec without them simply isn't resumable yet. **`/loop <id>` is now `/drive <id>`.**
738
+
739
+ - **New — the readiness gate between `/spec` and `/build`.** `/build` §1.6 now scores the frozen spec
740
+ on **implementability** before authoring the contract and before dispatching anything: contract
741
+ shapes complete · every area owned by a surface · named dependencies actually exist · no ambiguity a
742
+ surface would have to guess at · design links present. The verdict goes to
743
+ `specs/reports/<id>.readiness.json` (`READY` · `RESERVATIONS` · `NOT-READY` + `gaps[]`).
744
+ **`NOT-READY` stops the build with zero agents spawned** — a spec that can't be built doesn't get
745
+ cheaper by being built on N surfaces in parallel — and sends you to `/spec`. `RESERVATIONS` never
746
+ blocks: each gap is inlined into the affected surface's dispatch as an assumption the implementer
747
+ applies *and* flags in its handoff. It costs **no extra agent**: the lead already holds the spec,
748
+ the profile and the reconciled surface list.
749
+ - **New — deferred findings: `/review` stops throwing away what isn't blocking.** The review agent
750
+ now returns a separate `## Deferred` section (max 10) for what is real but **out of this feature's
751
+ scope** — pre-existing code the diff never touched, adjacent debt the spec never claims to fix —
752
+ each line carrying its own out-of-scope reason. Deferred items count in no severity row, move no
753
+ verdict, are never cross-checked, and on **every** verdict get routed into
754
+ `specs/refactor-backlog.md` under the owning surface's `## <domain>` heading, tagged
755
+ `deferred:<id>`. So `/review` feeds `/refactor` for free instead of dropping everything
756
+ non-blocking on the floor. Never into `## Remediation`, which is what `/fix` re-dispatches. Not
757
+ deferrable, ever: anything the diff touched, any spec violation, any security issue on a path this
758
+ feature adds or calls. `/audit` now **carries open `deferred:` items over** when it rewrites the
759
+ backlog. The verdict JSON gains `deferred: <n>` (informational, outside `blocking`).
760
+ - **BREAKING — `/loop` is renamed `/drive`, because Claude Code shadowed it.** Claude Code ships its
761
+ own built-in `/loop` (run a prompt on a recurring interval), which won the name: typing
762
+ `/loop <id>` started the *interval runner* with the feature id as its prompt, so cohorte's driver
763
+ never ran — and the session, having never seen `loop.md`, reported a loop that did not exist. Same
764
+ command, same flags, same script (`pipeline/scripts/loop.sh` keeps its name — nothing about your
765
+ install paths changes): type **`/drive <id>`**. The update scrubs the old `commands/loop.md`, so a
766
+ stale shadowed copy can't linger.
767
+ - **`/drive` is resumable — the spec's status is the state machine.** The lifecycle is now
768
+ `draft → frozen → in-progress → in-review → shipped` plus `blocked`. Before every phase the driver
769
+ stamps `status: in-progress` + `loop_pass` + `loop_phase` into the spec's front-matter — plain
770
+ `awk`, a temp file and `mv`, **zero tokens** — and on exit a terminal `in-review` (clean) or
771
+ `blocked`. **`/drive <id> --resume`** then continues at the pass it reached instead of re-paying the
772
+ ones already made, whether the session died, the ceiling hit, or the fix stopped converging.
773
+ `--max` stays a ceiling on the *total* passes. New **exit 4** (`not implementable`) relays the
774
+ readiness gate's `NOT-READY`: the one loop outcome more passes cannot fix. The dashboard's specs
775
+ board gains In-progress and Blocked columns and shows `↻ pass 3 · /review` on the card; `/doctor`
776
+ names any spec left mid-loop.
777
+ - **Fixed — a dead subagent no longer reads as a clean one on the conversational path.** The
778
+ "a dead agent is never a clean result" doctrine existed since 1.3.4 — but only inside the
779
+ **workflows**. `/build`, `/review` and `/fix` had nothing: a subagent that dies (rate limit,
780
+ transport error, exhausted context) returns *nothing*, and nothing was indistinguishable from
781
+ "finished, nothing to report". Concretely, a dead **reviewer** produced zero findings ⇒
782
+ `blocking: 0` ⇒ verdict `SHIP` ⇒ `/drive` exit 0 ⇒ the human sent to `/ship` — a clean bill of
783
+ health on code no agent ever read. Now every fan-out phase does a **roll call** before integrating:
784
+ a silent surface is retried **once** alone (byte-identical prompt, so recovery costs one agent, not
785
+ a rebuild), then `/build` marks it `dead` and verifies the tree with that surface's own quiet
786
+ commands instead of speaking for the agent, `/review` lists it in the verdict's new `unreviewed[]`
787
+ and **refuses to score `SHIP`**, and `/fix` leaves every one of its items `- [ ]` (a dead agent
788
+ never ticks a box). `/build` also writes `specs/reports/<id>.build.json` with `dead[]`, and
789
+ `loop.sh` aborts on either signal with **exit 2** *before* reading `blocking` — because a dead
790
+ reviewer makes `blocking == 0` a statement about unread code. `unreviewed` is deliberately kept
791
+ out of `blocking`: faking a count there would corrupt the one field the driver contract rests on.
792
+ The metrics line is now written even when a surface died (`"<key>":"dead"`) — an incomplete batch
793
+ is exactly the batch worth recording.
794
+ - **Fixed — `/cycle` and its workflow were removed in 1.4.0 but no installer ever scrubbed them.**
795
+ Every install since has kept `commands/cycle.md` + `workflows/cycle.js` on disk, so a dead command
796
+ stayed listed and invokable — dispatching a workflow whose phases 1.5.0 then deleted. All three
797
+ installers now remove them (as they already did for `/smoke`), and CI **plants the orphans before
798
+ re-installing** instead of asserting their absence on a fresh scratch home, which is exactly the
799
+ blind spot that let this survive four releases.
800
+ - **Reconcile now tops up `specs/_template.md`.** It was seeded once at install and never refreshed,
801
+ so every repo kept the front-matter its core shipped with. `/update-pipeline` adds the missing
802
+ front-matter fields (never the body — the section list is yours).
803
+ - **New — `specs/_decisions.md`, the transverse decision journal.** `PIPELINE.md` is a *stack* profile;
804
+ it says nothing about what the project has **decided**, so every `/spec` re-discovered or
805
+ contradicted the same choices. The journal is deliberately tiny: **append-only, one line per
806
+ decision** (`- <date> · <area> · <decision> — because <reason> · <feature_id>`), reversal by a
807
+ superseding line rather than an edit. Written by `/spec` at freeze (typically 0–3 lines; zero is
808
+ normal) and by `/build` when it adds or splits a surface. Read by the **deciding** stages only —
809
+ `/brainstorm`, `/spec`, `/audit`. **Implementers and reviewers never load it:** they have the frozen
810
+ contract, and shipping them the rationale would cost `surfaces × dispatches` tokens per feature for
811
+ a fact they can't act on. That exclusion is what keeps it cheap enough to be worth having. The `_`
812
+ prefix means `/doctor`, the dashboard scanner and the kanban backfill already skip it.
813
+
814
+ ## 1.5.0 — 2026-08-01
815
+
816
+ > **Re-run `npx cohorte@latest update --global` (or `update`)** to pick up the collector and the
817
+ > `/smoke` removal — the update *deletes* the command and its agent from your install, it does not
818
+ > just stop shipping them. The new dashboard panel comes with `npx cohorte dashboard`.
819
+
820
+ - **New — `/loop <id>`: the review ⇄ fix cycle, run for you.** _(renamed `/drive` in 1.6.0 — see
821
+ there.)_ `/build` → `/review` → `/fix` →
822
+ `/review` … until a review reports **zero blocking findings** (a CRITICAL or a security issue —
823
+ a LOW nit never costs a pass), or the pass ceiling (`--max=N`, default 5), or two consecutive
824
+ reviews returning the *same* blocking findings, which means the fix is treading water and more
825
+ passes won't help. `--no-build` re-runs the loop on an already-built feature; `--rebuild` forces
826
+ a build. Every fix pass is committed (`loop(<id>): fix pass <i>`) — your way back after N
827
+ autonomous passes — and **no fix runs on the last pass**, since fixing without a review behind
828
+ it leaves unaudited code. Exit codes distinguish clean · ceiling · no verdict · non-convergent ·
829
+ usage, so a wrapper can tell "needs more passes" from "needs a human".
830
+ - **The loop does not run in your session — that's the whole design.** Each phase is a separate
831
+ `claude -p` child with its own fresh context, driven by the new shipped `loop.sh`; all child
832
+ output goes to `specs/reports/<id>.loop.log`, which the command is forbidden to read back. Your
833
+ session sees one line per phase and a three-line summary. A slash command cannot `/clear` itself,
834
+ so a conversational loop would pile the diff plus N review reports plus N contracts into a
835
+ history re-sent at input price every turn — it would cost more than the loop saves.
836
+ `disable-model-invocation: true`: an autonomous loop only ever starts because you asked.
837
+ - **`/review` now writes a machine-readable verdict** to `specs/reports/<id>.verdict.json` on every
838
+ run — verdict, finding counts by severity, per-surface breakdown, the normalized blocking items
839
+ and a stable `fingerprint` over them. It is the only contract between the pipeline and any
840
+ driver; no prose is parsed. `blocking` restates the reviewer's existing rule as a number
841
+ (CRITICAL + security, deduplicated), so `blocking == 0` ⟺ `SHIP`. The fingerprint hashes
842
+ *surface + file + problem* with the line number deliberately dropped — a fix that inserts lines
843
+ would otherwise change it every pass and the drift detection would never fire. A red preflight
844
+ writes a degraded `{"aborted":"preflight"}` verdict rather than nothing, so an abort is a
845
+ diagnosis instead of a silence.
846
+ - **BREAKING — `/smoke` and the `smoke` agent are removed.** The end-to-end run phase is gone:
847
+ the command, the agent, its preflight wiring, its telemetry phase and its documentation. The
848
+ loop is now `/brainstorm` → `/spec` → `/build` → `/review` → (`/fix` → `/review`)* → `/ship`,
849
+ with `/clear` safe between each. Nothing else depended on it; a `/smoke` in an old habit will
850
+ report an unknown command.
851
+ - **Nothing in the pipeline runs your app any more — that part is yours.** `/build` now closes by
852
+ telling you to exercise the feature by hand if it's worth it, and `/fix` says the same for
853
+ runtime failures. `/review` follows suit at the SHIP verdict: it ticks only what a stage
854
+ actually verified, and **leaves any DoD criterion that needs the app up open** (runtime flows,
855
+ a visual check against the design) unless you say you exercised it yourself and it held.
856
+ - **The preflight phase gate now gates `review` alone** (`gate.preflight.agents` defaults to
857
+ `[review]`). Existing profiles that list `smoke` keep working — the hook just never sees that
858
+ dispatch. `/doctor` compares against the new default, so re-run it after the update if it
859
+ flags gate drift.
860
+ - **Retired-phase data still renders.** Metrics files and dashboards carrying `phase: "smoke"`
861
+ keep their column, the transcript collector keeps attributing past `/smoke` runs to `/smoke`
862
+ instead of silently reclassifying them, and `telemetry-send.sh` still accepts the phase from a
863
+ stale install. Same treatment `/cycle` got in 1.4.0.
864
+ - **The cockpit now shows what a feature actually cost.** The dashboard's only metrics source
865
+ was `pipeline-metrics.jsonl`, written by the model itself — so it misses any run that ended
866
+ early and can never report tokens. On a real project it had captured 18 phase batches where
867
+ the transcripts hold 53 runs. The new **Cost & runtime** panel reads
868
+ `cohorte metrics` instead: per command, the number of runs, $ per run, $ total, tokens, wall
869
+ and active time, and the median number of subagents dispatched. That last column is the one
870
+ that makes a broken run obvious — a `/build` reporting 0 agents did no fan-out at all.
871
+ - **Both metrics sources are kept, because they answer different questions.** `pipeline-metrics.jsonl`
872
+ carries per-surface verdicts (`ok`, `REVISE:2`, `error`) that only the model knows and the
873
+ transcripts never contain; the collector carries money and time, which the model cannot report
874
+ and the transcripts record exactly. The two panels sit side by side and each says what it is
875
+ for. Neither replaces the other.
876
+ - **Fixed: discussing a command counted as running it.** An inline command mention was treated
877
+ as an invocation regardless of context, so a long message *about* `/review` billed that whole
878
+ conversation to `/review` — in cohorte's own repo it invented five `/cycle` runs out of a
879
+ design discussion. Inline mentions are now length-gated (an instruction is short; a discussion
880
+ is not); an explicit slash-command invocation is always counted.
881
+
882
+ ## 1.4.0 — 2026-08-01
883
+
884
+ > **Re-run `npx cohorte@latest update --global` (or `update`)** — the workflow fixes only apply
885
+ > once the installed core is refreshed. Both the workflow scripts and the `profile-reader` agent
886
+ > are replaced by the update.
887
+
888
+ - **BREAKING — `/cycle` and `cycle.js` are removed.** The full-cycle workflow is gone: the command
889
+ file, the script, its tests and its documentation. The conversational path it wrapped is
890
+ unchanged and remains the way to run a feature — `/build` → `/smoke` → `/review` → `/fix` →
891
+ `/ship`, with `/clear` safe between each. `review.js`, `audit.js` and `refactor.js` are
892
+ untouched. Nothing else in the pipeline depended on it; a `/cycle` in an old habit will simply
893
+ report an unknown command. Metrics files and dashboards that already carry `phase: "cycle"`
894
+ lines keep rendering them.
895
+ - **A workflow could dispatch zero agents and still report a verdict.** Phase 0's `profile-reader`
896
+ (haiku) intermittently returned the profile as a JSON *string* nested under a wrapper field
897
+ (`{"output": "{\"surfaces\": …}"}`) instead of at the top level. The schema was
898
+ `{type: 'object', additionalProperties: true}` — no declared properties, no required keys — so
899
+ the wrapper validated cleanly and every field then read as `undefined`: `surfaces` fell back to
900
+ `[]`, `parallel([])` dispatched **nothing**, and because every later guard compares against
901
+ `surfaces`, an empty list made them all vacuously pass. The run finished with a verdict, no code
902
+ written, and no complaint — indistinguishable from a clean run with an empty diff. Fixed in three
903
+ places: `profile-reader.md` now states that the profile's keys go at the top level of the
904
+ structured-output tool (with the wrong shapes shown), the schema declares what it expects, and a
905
+ profile with no surfaces **aborts loudly** instead of proceeding. All three workflows.
906
+ - **`args` given as a JSON string became the feature id.** A caller that JSON-encoded its arguments
907
+ got that whole blob used as the id — which is how a report was written to
908
+ `specs/reports/{"feature": "x"}.md` — and the other options (`maxRounds`, `smoke`) silently read
909
+ as `undefined` on the same run, so a run could skip smoke without saying so. `args` is now parsed
910
+ back into an object (a bare slug is still valid shorthand), and a feature id that is not a slug
911
+ throws with an actionable message **before** anything touches the filesystem — so no junk file
912
+ can be written, and a path-shaped id is rejected.
913
+ - **`/doctor` warned about a file cohorte itself had written.** `/audit` writes
914
+ `specs/refactor-backlog.md` by design; the spec scanner globbed `specs/*.md` and flagged it for
915
+ having no valid front-matter `status`. It fired in every project that had ever run `/audit`. Both
916
+ the conversational `/doctor` and the dashboard port now exclude it.
917
+ - **New: `cohorte metrics` — real cost and runtime per command.** Reconstructs tokens, USD,
918
+ wall/active time and subagent counts from Claude Code's own transcripts, so it needs nothing
919
+ enabled and works retroactively on runs that already happened. It is worktree-aware (a feature
920
+ built across worktrees adds up instead of being dropped), attributes subagent spend back to the
921
+ command that spawned it, and de-duplicates the repeated `usage` blocks a single API response
922
+ writes across several transcript lines — summing those naively inflates tokens ~1.8×.
923
+ `--json`, `--runs`, `--days=N`, `--since=ISO`. Prices live in `scripts/metrics/prices.json`.
924
+
925
+ ## 1.3.4 — 2026-07-31
926
+
927
+ > **Re-run `npx cohorte@latest update --global` (or `update`)** — the workflow and script
928
+ > fixes only apply once the installed core is refreshed.
929
+
930
+ - **The dashboard server now has tests.** `dashboard/server/*.js` is shipped runtime code — a
931
+ hand-rolled YAML parser every `/doctor` check derives from, the metrics aggregator, the JS port
932
+ of `/doctor`, the board parser, the fleet registry, and the HTTP guards — with no coverage at
933
+ all. `scripts/test-dashboard.mjs` (83 assertions, in CI) pins each module, including every
934
+ `/doctor` check both green and deliberately broken.
935
+ - **The gate hook now has tests.** `hooks/gate.py` is the one component that can block a command,
936
+ and CI only ever checked that it *parsed* — every one of its shipped regressions reached users
937
+ first. `scripts/test-gate.mjs` drives its real stdin→stdout contract (42 assertions: deny/ask
938
+ tiers, chained-command splitting, branch-conditional gating at the payload's cwd, the
939
+ `bypassPermissions` ask⇒deny escalation, config robustness, the preflight phase gate, worktree
940
+ HEAD matching) and runs in CI. No new defect was found in the gate itself — the behaviour is
941
+ now pinned.
942
+ - **A crashed reviewer scored as a clean surface.** `agent()` returns `null` when a subagent dies,
943
+ and a dead reviewer returns zero findings — byte-identical to a surface with nothing wrong. Both
944
+ `review.js` and `cycle.js` read that as `SHIP`: the review workflow answered "`/ship`" when
945
+ *every* reviewer had crashed, and the cycle workflow exited **SHIP-READY**, ticked the DoD and
946
+ stamped the freshness gate over code nobody had read. Unreviewed surfaces are now named in
947
+ `unreviewedSurfaces` + `questions`, can never score `SHIP`, and the cycle re-reviews instead of
948
+ dispatching an empty fix round. `scripts/test-workflows.mjs` (new, run in CI) pins this.
949
+ - **Swept the whole "dead agent read as success" family across all four workflows** — the same
950
+ root cause as the two above, found at eight more call sites by auditing every `agent()` result
951
+ in `cycle.js` · `review.js` · `audit.js` · `refactor.js`. The worst: a dead **diff-staging**
952
+ agent in `review.js` returned `verdict: SHIP` ("no diff — nothing to review") for a feature
953
+ nobody had looked at; and a dead **close/staging** agent let both `/cycle` and the review
954
+ workflow report `SHIP-READY` + a report path + "ship is a straight shot" when the report, the
955
+ DoD ticks, the freshness stamp and the metrics had never been written (and `/ship`'s freshness
956
+ gate skips silently when those fields are absent, so the human would have shipped on it). Also:
957
+ a dead auditor made a domain look **clean** instead of unaudited; a dead backlog writer/reader
958
+ and a dead item-ticker were each reported as success. Every one of these now distinguishes
959
+ "died" from "succeeded with nothing to say", and `scripts/test-workflows.mjs` pins all of them.
960
+ - **A dead contract agent was reported as a successful re-authoring.** Same failure shape as the
961
+ crashed reviewer: when the lead-equivalent agent that re-authors spec §5 + the contract file
962
+ died, `/cycle` still pushed a `contractChanges` entry and handed **every** consuming surface a
963
+ CRITICAL "the contract was RE-AUTHORED — re-read it and realign" item, pointing at a file
964
+ nobody had touched. It now reports the contract as UNCHANGED and ripples nothing.
965
+ - **A red preflight nobody owns burned every remaining round.** When no surface path appeared in
966
+ the failure tail and no implementer had survived the build, the fix round dispatched *zero*
967
+ agents, the next round found the same red gates, and the loop spun to the cap doing literally
968
+ nothing before reporting a stale verdict. It now stops immediately with the failure tail.
969
+ - **Findings belonging to no surface were dropped silently.** A finding whose file sits outside
970
+ every surface tree — reachable when the diff-staging agent names a key the profile lacks —
971
+ stayed in the open set (so the loop could never exit clean) while nobody was ever dispatched to
972
+ fix it. They are now named, with their `file:line`, in `questions`.
973
+ - **`/cycle` build telemetry hid dead implementers**: results were mapped over the *survivors*, so
974
+ two of three surfaces reported `ok,ok` and the dead one vanished from the funnel entirely.
975
+ - **The review workflow sent HIGH findings straight to `/ship`.** A `SHIP` verdict can legitimately
976
+ carry HIGH/MEDIUM findings (only CRITICAL and security force a fix), but the conversational
977
+ `/review` routes any surviving HIGH to `/fix` — the workflow said `/ship`. It now only recommends
978
+ shipping when nothing above LOW survived, and stamps the freshness gate on that same condition.
979
+ - **Smoke is now opt-in in the cycle workflow** — `/cycle <id> smoke` (or `args.smoke: true`).
980
+ Booting the app every round is expensive and a library project has nothing to smoke. Without it
981
+ the run reports `smoke: "SKIPPED"`, leaves the runtime-flow DoD boxes unticked, and says so.
982
+ - **The dashboard reset could move the shared global core.** Nothing stopped a project path of
983
+ `~` — reset would then rename `~/.claude` into a backup dir and break every repo on the machine,
984
+ while the UI promised the global core is never touched. It now refuses that path outright.
985
+ - **The cycle workflow polluted the metrics with phantom surfaces.** It wrote `rounds` / `verdict` /
986
+ `smoke` inside the metrics line's `surfaces` map, so the dashboard rendered them as three surface
987
+ rows and scored `rounds: "1"` as a failing surface. Run-level facts now sit outside `surfaces`,
988
+ and the dashboard knows the `cycle` phase.
989
+ - **Telemetry from bundled installs reported no core version.** `telemetry-send.sh` read `VERSION`
990
+ only from the *global* core; it now resolves the core that ships it. Payloads are also hardened —
991
+ a quote or newline in the results string used to produce JSON the collector dropped.
992
+ - **Every kanban card move added a blank line.** Ten moves of one card padded a board with fifteen
993
+ of them, and every phase command moves cards. Runs of blank lines are now collapsed; a board is
994
+ byte-stable across moves. Sub-notes of a duplicate card are no longer duplicated either.
995
+ - **Python bytecode could reach the published package and users' `.claude`.** `.npmignore` is inert
996
+ under an explicit `files` allowlist, so its `__pycache__/` rule never fired, and all three
997
+ installers copied the directory verbatim. Excluded at both ends, asserted in CI.
998
+ - **Every non-design surface agent rendered with a blank first TDD step.** `<SURFACE_TDD_STEP1>`
999
+ sat as numbered item 1 of the TDD list but is filled only for `uses_design` surfaces, so every
1000
+ other agent got an empty "1." above its real first step. It is now a lead-in paragraph.
1001
+ - Doc/template corrections found by reading the whole core against the code: the spec template's
1002
+ `## 6+. Surface tasks` could collide with the `§8`/`§9` sections the pipeline references by
1003
+ number; `/init-pipeline` step 04 forgot `smoke.md` in its "leave the fixed agents as-is" list;
1004
+ the getting-started page placed `implementer.template.md` in `agents/` (it ships in `pipeline/`);
1005
+ the dashboard docs never documented the CSRF/DNS-rebinding guard; `dashboard/README.md` was
1006
+ missing `metrics.js`, `/api/metrics` and `/audit`; the two reference-only templates
1007
+ (`agent-handoff.md`, `review-feedback.md`) are unreferenced copies of shapes that live in the
1008
+ agents — `review-feedback.md` had drifted and is re-synced, and both now say so.
1009
+ - Smaller: the dashboard no longer stalls for 13 s per project when npm is unreachable (failed
1010
+ lookups are cached and de-duplicated); `--port=` rejects a non-numeric value instead of listening
1011
+ on a random port; a missing hashed asset 404s instead of being served `index.html`; a project
1012
+ card is now keyboard-activatable; long headless logs are trimmed instead of growing unbounded;
1013
+ `install.sh --help` exists; the preflight stamp is written once per distinct directory.
1014
+
1015
+ ## 1.3.3 — 2026-07-30
1016
+
1017
+ > **Re-run `npx cohorte@latest update --global` (or `update`)** — the gate fixes only apply once
1018
+ > the installed `hooks/gate.py` is refreshed.
1019
+
1020
+ - **The cycle workflow could exit SHIP-READY with open findings.** A round with only HIGH/MEDIUM
1021
+ findings scored `SHIP`, broke the loop, ticked the DoD and stamped the freshness gate — making
1022
+ `/ship` a straight shot over unfixed findings, against the workflow's own "zero open findings"
1023
+ contract. The exit condition is now literally zero open findings + a smoke PASS.
1024
+ - **Dead implementers went undetected in the cycle workflow.** `agent()` returns `null` when a
1025
+ subagent dies, but the build fan-out wrapped every result in a truthy object before the check —
1026
+ so the "implementer(s) died" question never fired and build telemetry always said `ok`.
1027
+ - **`gate.py` gated worktree commands as if they ran on the default branch.** Branch and HEAD were
1028
+ resolved in `CLAUDE_PROJECT_DIR` (the main checkout, usually on `main`) instead of where the
1029
+ command actually runs — so in a feature worktree, every `ask_on_default_branch` pattern
1030
+ prompted, and the preflight HEAD-moved check compared against the wrong checkout. Git state now
1031
+ resolves at the hook payload's `cwd`.
1032
+ - **The preflight phase gate hung headless runs.** The bypassPermissions "nobody can answer an
1033
+ ask ⇒ deny" escalation only covered Bash patterns; a review/smoke Task dispatch with a stale
1034
+ stamp still emitted an unanswerable `ask`. The phase gate now escalates the same way.
1035
+ - **`/init-pipeline` bundled installs registered the gate with the dead `Bash`-only matcher** —
1036
+ the exact bug 1.3.2 fixed in the installers lived on in the template — and never dropped an
1037
+ existing registration, so a bundled repo later switched to global ran the gate twice per
1038
+ command. The template now mandates `Bash|Task` and a reconcile.
1039
+ - Smaller cycle-workflow fixes: smoke telemetry reports the real failure count (was always 0 —
1040
+ it filtered on a `kind` value that doesn't exist); a run whose last round ends on a red
1041
+ preflight now flags that the reported findings are from the previous round; a malformed
1042
+ preflight stamp says "unreadable" instead of "not found".
1043
+
1044
+ ## 1.3.2 — 2026-07-30
1045
+
1046
+ > **Re-run `npx cohorte@latest update --global` (or `update`).** This release repairs the gate
1047
+ > hook registration in place — updating is what applies it.
1048
+
1049
+ - **1.3.0's preflight phase gate never fired on any install.** `gate.py` gates review/smoke
1050
+ dispatches on `tool_name == "Task"`, but all three installers registered the hook with
1051
+ `matcher: "Bash"` — a Task call never reached it. The `preflight` block in `gate-config.json`
1052
+ and `gate.preflight` in `PIPELINE.md` were both dead config. The matcher is now `Bash|Task`.
1053
+ - **Re-installing duplicated the hook, every time.** The "already registered?" test was
1054
+ `command.endswith("gate.py")`, which is false for the Windows form `py "C:\…\gate.py"` because
1055
+ of the trailing quote — so `install.sh` and `bin/cli.js` appended another copy on each run, and
1056
+ `gate.py` ran once per copy on every Bash call (four copies seen in the wild). Registration is
1057
+ now a **reconcile**: it drops every existing `gate.py` entry and writes exactly one. Idempotent,
1058
+ it collapses the duplicates you already have, and it upgrades the stale matcher — an
1059
+ append-if-absent would have found the stale entry and skipped, pinning the bug forever.
1060
+ Unrelated hooks and every other settings key are untouched.
1061
+ - **`npx cohorte update` never touched the hook at all**, so neither fix above could have reached
1062
+ you through the command you actually run to get fixes — only a full re-install rewrote it.
1063
+ `install.sh` and `install.ps1` always registered on update; this port had drifted (the same
1064
+ class of drift as 1.2.4 and 1.2.6). It now registers on both paths.
1065
+ - CI installs **twice** before asserting the hook, via a new `scripts/assert-gate-hook.mjs`:
1066
+ exactly one registration, matcher covering both Bash and Task. A single install could never
1067
+ surface the duplication — which is precisely why CI stayed green while it shipped.
1068
+
1069
+ ## 1.3.1 — 2026-07-30
1070
+
1071
+ - **`/cycle <feature_id> [max_rounds]`** — a launcher command for the full dev-cycle workflow,
1072
+ so you don't have to phrase the request in prose. It resolves `workflows/cycle.js`
1073
+ (bundled or global), checks the runtime is available (missing ⇒ it hands you the
1074
+ conversational `/build` → `/smoke` → `/review` path instead), sanity-checks the spec is
1075
+ frozen, launches the workflow in the background, then relays the verdict: outcome,
1076
+ contract re-authorings to eyeball, the `questions` array verbatim, and the next step
1077
+ (`/ship` on SHIP-READY, rerun `/cycle` or `/fix` otherwise). Kanban card moves included.
1078
+
1079
+ ## 1.3.0 — 2026-07-30
1080
+
1081
+ **Token economy — immediate wins, no workflow needed:**
1082
+
1083
+ - **Deterministic pre-flight before `/review` and `/smoke`.** A shipped script
1084
+ (`pipeline/scripts/preflight.sh`) runs typecheck + lint + tests first; red ⇒ the command
1085
+ aborts with the raw last-40 lines and **spawns zero agents** — a reviewer no longer burns
1086
+ its whole run rediscovering what `tsc` printed for free. Green runs stamp
1087
+ `.claude/preflight.ok`, and `gate.py` enforces it as a **phase gate**: a review/smoke
1088
+ dispatch with a missing/stale stamp gets a confirm (`gate.preflight` in the profile).
1089
+ - **Quiet commands.** New profile fields (`test_quiet_cmd`/`lint_quiet_cmd` per surface,
1090
+ `commands.test_quiet`/`lint_quiet` repo-wide) hold the bridled forms agents actually run
1091
+ (`--reporter=dot`, `--quiet`, failures-only); absent ⇒ `<cmd> 2>&1 | tail -40`.
1092
+ `/init-pipeline` now asks for them instead of storing a bare `pnpm test`;
1093
+ `/update-pipeline` tops up older profiles.
1094
+ - **`/review` computes the diff once.** One `git diff --stat`, then full patches staged to
1095
+ disk only for the touched surfaces — reviewers read the artifact instead of each
1096
+ re-running git.
1097
+ - **Conventions baked into rendered agents.** The implementer template gets a
1098
+ `<SURFACE_CONVENTIONS>` slice rendered at init; at runtime agents read only the profile's
1099
+ machine block. Edit conventions in `PIPELINE.md`, then `/update-pipeline` re-renders.
1100
+ - **Capped reports.** Review reports: max 20 findings, one line each, zero code excerpts;
1101
+ smoke returns: max 10 ❌ lines. Dispatch prompts now keep every volatile slot (feature id,
1102
+ paths, file lists) at the END so repeats hit the prompt-cache prefix.
1103
+ - `gate.py` also escalates every `ask` to a hard deny in unattended runs
1104
+ (`bypassPermissions`) — nobody is there to answer a prompt.
1105
+
1106
+ **Workflows (opt-in — conversational commands stay the default and the fallback):**
1107
+
1108
+ - Four deterministic multi-agent scripts for the Claude Code Workflow runtime
1109
+ (≥ 2.1.154, workflows enabled): **`workflows/cycle.js` — the full dev cycle on a frozen
1110
+ spec** (contract → parallel build → smoke ∥ review(+cross-check) → fix, looping until
1111
+ zero findings + PASS; contract changes handled in-loop by a lead-equivalent agent, human
1112
+ decisions returned in a `questions` array at the end; a clean exit ticks the DoD and
1113
+ stamps the freshness gate so `/ship` follows directly), `workflows/review.js` (preflight
1114
+ gate → one reviewer per touched surface → adversarial cross-check of CRITICAL/security
1115
+ findings → verdict only), `workflows/audit.js` (one auditor per domain, concurrent,
1116
+ prioritized backlog), `workflows/refactor.js` (big domains only: shared first, parallel
1117
+ implementers, per-domain verify + one retry). Mechanical phases route to haiku.
1118
+ - New `profile-reader` agent (haiku) — phase 0 of every workflow: returns the
1119
+ `PIPELINE.md` machine block as JSON, since workflow scripts have no filesystem access.
1120
+ - `/doctor` check 8 reports the workflow prerequisites and which path a session will take;
1121
+ the generated `settings.json` allow-list now covers what workflow agents need (quiet
1122
+ commands, shipped scripts, `git rev-parse`, retrieval MCP tools) so runs don't stall on
1123
+ prompts nobody is watching.
1124
+ - Installers (npx CLI, install.sh, install.ps1) ship `core/workflows/` + `preflight.sh` +
1125
+ the `profile-reader` agent in both global and bundled modes; CI dry-runs assert it.
1126
+ - Dashboard: new headless **Audit** action (`claude -p "/audit"` — starts without a prompt,
1127
+ no resume if the session dies) and the workflows state in the project drill-down.
1128
+
1129
+ ## 1.2.6 — 2026-07-30
1130
+
1131
+ - **`npx cohorte install` never installed the `smoke` agent.** It copied only `review.md` and
1132
+ `release.md`, so `/smoke` was there but the agent it dispatches was not — the run failed
1133
+ saying `/smoke` is not installed. The shell installers always copied it; only the npm port
1134
+ drifted. It now copies every non-template agent in `core/agents/`, so nothing to keep in sync.
1135
+ Fix an affected install by re-running `npx cohorte install --global` (or `install --repo`).
1136
+
1137
+ ## 1.2.5 — 2026-07-29
1138
+
1139
+ - **`.claude/pipeline.json`'s `core_version` never updated on global installs.** The installer
1140
+ bumps it in bundled mode, but a global core is shared — it cannot know which repos point at
1141
+ it, so nothing bumped the field and it drifted forever. Repos running a current core were
1142
+ still claiming `1.0.0`. `/update-pipeline` now syncs the pointer in both modes.
1143
+ - `/doctor` no longer reports that drift as a broken install: a global-mode pointer lagging the
1144
+ VERSION file is ⚠️ with the one-command fix, not ❌. The core was never the problem.
1145
+
1146
+ ## 1.2.4 — 2026-07-29
1147
+
1148
+ > **If you installed with `npx cohorte`, this is the release that makes 1.2.3 actually
1149
+ > reach you.** Re-run `npx cohorte@latest update --global` (or `update` for a bundled core).
1150
+
1151
+ - **`npx cohorte install/update` shipped a core missing two scripts.** `bin/cli.js` — the
1152
+ port of `install.sh` that `npx` actually runs — copied only `scripts/*.template`, never
1153
+ `kanban-move.sh` or `telemetry-send.sh`. Since every caller chains them with `|| true`,
1154
+ the result was silent on every npx-installed machine: no kanban card moves, no telemetry
1155
+ pings, no error anywhere. The shell installers named both files explicitly and this port
1156
+ drifted from them. It now copies by a rule that needs no list to keep in sync.
1157
+ - The same port never copied `CHANGELOG.md` into the core either, so `/doctor` and
1158
+ `/update-pipeline`'s "What's new" had nothing to read on npx installs. Fixed.
1159
+ - CI now dry-runs `bin/cli.js` into a scratch dir and asserts the same postconditions as
1160
+ the `install.sh` dry-run. 1.2.3's guard only grepped the two shell installers — it would
1161
+ have passed this bug, because the port copies by rule rather than by name.
1162
+
1163
+ ## 1.2.3 — 2026-07-29
1164
+
1165
+ - **Telemetry now covers the whole funnel.** Only `/build` was actually pinging; `/smoke`,
1166
+ `/review` and `/fix` wrote their metrics line but never sent one, so consenting installs
1167
+ reported a quarter of their pipeline. Those three are fixed, and `/brainstorm`, `/spec`
1168
+ (on a landed freeze) and `/ship` join them — the seven stages of `idea → PR` now report,
1169
+ so it's finally possible to see *where* features stall. Setup and maintenance commands
1170
+ (`/doctor`, `/init-pipeline`, `/update-pipeline`, `/audit`, `/refactor`, `/align-ds`)
1171
+ deliberately never ping: the collected set stays inside what the consent text describes.
1172
+ Same data categories as before, same purpose — nothing new about you is sent, so your
1173
+ existing consent stands and nothing re-asks. The full table is in SCHEMA.md §Telemetry.
1174
+ - `telemetry-send.sh` now allowlists the phase name client-side — a typo in a command file
1175
+ used to sail through and land a phantom phase in the dataset.
1176
+ - `/fix` never defined a wall-clock start, so the `seconds` in its metrics line was
1177
+ undefined. It now notes the epoch like `/build` and `/review` do.
1178
+ - **`/doctor` catches a half-copied core.** New check: `pipeline/scripts/` must hold every
1179
+ shipped script, and `VERSION` must not be newer than its siblings. Callers chain these
1180
+ scripts with `|| true`, so a missing one was invisible — no kanban move, no telemetry
1181
+ ping, no error. If you saw either go quiet, this is why: re-run the installer.
1182
+ - CI now fails if an installer forgets to copy a `scripts/*.sh`, and the dry-run install
1183
+ asserts the scripts land executable — the root cause above, caught before release
1184
+ rather than on someone's machine.
1185
+ - The npm tarball no longer ships `scripts/new-feature.sh` + `scripts/remove-feature.sh`
1186
+ — cohorte's *own* rendered isolation scripts, with this repo's ports and paths baked
1187
+ in. They claimed in their header to be excluded but never were (an explicit `files`
1188
+ whitelist wins over `.npmignore`). Only the `*.sh.template` files ship, as intended.
1189
+ - Fixed `validate-core.mjs` crashing on Windows (`C:\C:\…` path), so the guard above
1190
+ actually runs locally too.
1191
+
1192
+ ## 1.2.2 — 2026-07-29
1193
+
1194
+ - The reference collector moved to its own (private) deployment repo; the public repo keeps
1195
+ the collector API contract in SCHEMA.md §Telemetry. No behavior change for users.
1196
+
1197
+ ## 1.2.1 — 2026-07-29
1198
+
1199
+ - Telemetry collector URL shipped as the config-template default
1200
+ (`https://telemetry.cohorte.thebidouille.fr/v1/events`) — consenting installs start
1201
+ reporting once the collector is live. Still strictly opt-in; nothing changes for anyone
1202
+ who declined (or never answered) the consent question.
1203
+
1204
+ ## 1.2.0 — 2026-07-29
1205
+
1206
+ > **Opt-in anonymous telemetry, GDPR-first.** Nothing is sent unless you explicitly say yes.
1207
+
1208
+ - `/init-pipeline` (and `/update-pipeline` on existing installs) ask ONE consent question, once per
1209
+ machine, default **No** — both answers are recorded in `~/.claude/cohorte.config.yaml` §`telemetry`
1210
+ so you're never re-asked.
1211
+ - When enabled, each pipeline phase fires a ~200-byte ping (fire-and-forget, 2s timeout, never
1212
+ blocks): core version, OS, phase, duration, per-surface result counts, and a **hash** of the
1213
+ feature id. Never sent: repo names, paths, code, spec content, IPs.
1214
+ - Withdraw anytime (`telemetry.enabled: false`); erase your history anytime (`/doctor` prints your
1215
+ `install_id`; `DELETE /v1/install/<id>` on the collector drops it). Full spec: SCHEMA.md
1216
+ §Telemetry; privacy summary in the README.
1217
+ - Ships a zero-dependency reference collector (`telemetry/collector.mjs` — NDJSON storage, strict
1218
+ field allowlist, erasure endpoint, stores no IPs) to self-host.
1219
+ - `/doctor` reports telemetry consent state and flags incoherent configs (enabled without a
1220
+ recorded consent).
1221
+ - Note: the shipped default `endpoint` is empty — telemetry stays dormant even for consenting
1222
+ installs until a collector URL ships in the config template.
1223
+
1224
+ ## 1.1.1 — 2026-07-29
1225
+
1226
+ - **Fix: pipeline metrics survive worktree teardown.** With `isolation.enabled` the lead session
1227
+ runs inside the feature worktree, so metrics lines landed in the worktree's `.claude/` and were
1228
+ deleted with it — defeating their purpose (cross-feature evidence for surface splits, dashboard
1229
+ history). All phases now append to the **main checkout's** `.claude/pipeline-metrics.jsonl`,
1230
+ resolved from anywhere via `git rev-parse --git-common-dir`; `/doctor` flags a stray metrics file
1231
+ inside a worktree as a stale-core sign.
1232
+
1233
+ ## 1.1.0 — 2026-07-29
1234
+
1235
+ > **The token-economy release.** A full audit of the core (40 verified fixes) cuts the pipeline's
1236
+ > consumption by an estimated 40–60% per feature, and the pipeline no longer inherits your session's
1237
+ > model for orchestration. Plus: pipeline metrics in the dashboard, CI on the core, and a documented
1238
+ > parallel-features workflow.
1239
+
1240
+ - **Byte-stable dispatches.** One dispatch template for builds AND fix loops; variable parts
1241
+ (design links, open Remediation items inlined verbatim) sit at the end so repeats hit the prompt
1242
+ cache. The lead never pastes a diff — agents compute their own, scoped to their tree. On fix
1243
+ loops, implementers no longer re-read the spec at all.
1244
+ - **Reviewers read hunks, not whole files.** `/review` stages each surface's diff to
1245
+ `specs/reports/<id>.<key>.diff`; tiny re-reviews skip the dispatch entirely (fast path); the
1246
+ merged report is staged to disk with only a verdict summary printed; LOW-only findings defer to
1247
+ the refactor backlog instead of forcing a fix cycle.
1248
+ - **`/smoke` is now an agent.** A new pinned `smoke` agent runs infra/curl/UI checks so logs,
1249
+ response bodies, and screenshots never enter (and re-bill in) your session's history.
1250
+ - **Model pins everywhere.** The `review` agent and the 10 mechanical commands
1251
+ (build/review/fix/smoke/ship/audit/refactor/doctor/align-ds/update-pipeline) are pinned
1252
+ `model: sonnet` — orchestration runs on Sonnet even if your session runs Opus/Fable. `/doctor`
1253
+ checks agent AND command pins; the profile template's frontend example no longer suggests
1254
+ `inherit`.
1255
+ - **Leaner outputs.** Handoff + review-report formats are inlined in the agent bodies (no template
1256
+ probe), templates de-boilerplated, the design brief is authored once to `specs/design/<id>.md`,
1257
+ metrics collapsed to one JSONL line per phase, and every command's closing now *recommends*
1258
+ `/clear` (all state is on disk by design).
1259
+ - **Pipeline metrics in the dashboard.** New per-project panel: wall-clock per phase, fix rounds,
1260
+ and per-surface results from `.claude/pipeline-metrics.jsonl` — see which phase/surface dominates
1261
+ before tuning anything.
1262
+ - **`kanban-move.sh`.** Card moves (move/create/dedupe/`--pr`) now run as a script outside the
1263
+ agent's context; installed to `<core>/pipeline/scripts/`, with the manual grep-based op as
1264
+ fallback.
1265
+ - **Spec size budget.** `/spec` targets ≤~300 lines and proposes a feature split beyond that —
1266
+ every spec line is paid `surfaces × dispatches` times.
1267
+ - **Parallel features documented.** README: one session per feature, worktree isolation as the
1268
+ safety mechanism, ship-then-rebase rule; `/doctor` prints the live slot table when ≥2 features
1269
+ run in parallel.
1270
+ - **CI on the core.** `scripts/validate-core.mjs` + GitHub Actions: frontmatter/pin invariants,
1271
+ render placeholders, cross-references, installer coverage (would have caught the smoke-agent
1272
+ install gap this release also fixes), plus an end-to-end install dry-run.
1273
+
1274
+ ## 1.0.0 — 2026-07-28
1275
+
1276
+ > **Renamed `thebidouille-agents` → `cohorte`** and cut the first stable release. The npm package,
1277
+ > the CLI (`npx cohorte …`), the repo, and the user config file are all renamed. The pre-rename
1278
+ > `~/.claude/thebidouille.config.yaml` and `~/.claude/thebidouille-dashboard.json` are still read as a
1279
+ > fallback, so existing installs keep working — `/update-pipeline` migrates them forward on next run.
1280
+
1281
+ - **Repo moved to the `TheBidouilleAgency` org** (`github.com/TheBidouilleAgency/cohorte`), with a
1282
+ proper logo/brand kit under `assets/` and a dashboard favicon set.
1283
+
1284
+ - **The research + questionnaire capability was removed from the core.** `/research`,
1285
+ `/questionnaire`, their agents, templates and step files are extracted to a separate private repo
1286
+ and will return later as an installable Cohorte **plugin**. `update` scrubs the now-orphaned files
1287
+ from existing installs. The global config keeps only the shared Obsidian vault + the kanban mirror;
1288
+ the `research:`/`questionnaire:` config keys are gone.
1289
+
1290
+ - **`/ship` now reliably moves the kanban card to Shipped and writes the PR number.** The
1291
+ move-to-Shipped was a parenthetical in the command header, easy to skip — so shipped features could
1292
+ leave their card stuck in an earlier column. It is now an explicit, verify-after step (§4): move
1293
+ card `#<id>` → `shipped` **and append `PR #<num>`** (from the PR URL), then re-read the board to
1294
+ confirm. The bare `#<num>` is what the dashboard renders as a clickable PR link. SCHEMA.md §Kanban
1295
+ documents the shipped-card format. (`/ship` also moves the card → `ship` on confirm, in §1.)
1296
+
1297
+ - **Branch-aware gate — git + docker run freely on feature branches, gated only on the default
1298
+ branch.** The `gate` block gains two keys: `ask_on_default_branch` (patterns confirmed *only* when
1299
+ the checked-out branch is `default_branch`) and `default_branch` (default `main`). `gate.py`
1300
+ resolves the current branch at run time (`git rev-parse`); an unknown branch (no repo / detached)
1301
+ is treated conservatively as gated. The default profile moves git (commit/push/merge/rebase/reset)
1302
+ and `docker compose` into this tier, so agents move fast on feature branches while `main` stays
1303
+ protected; DB commands (`migration:run`, `db:`, `psql`) remain always-`ask`, destructive migrations
1304
+ always-`deny`. Existing gate-configs without the new keys keep working unchanged. Re-run
1305
+ `/update-pipeline` to regenerate `gate-config.json` with the new tier.
1306
+
1307
+ - **New `dashboard` subcommand — a local web cockpit for the pipeline.** Run
1308
+ `npx cohorte dashboard` to open a browser view of pipeline state: a **Fleet**
1309
+ overview (global core version vs npm latest + every tracked project's freshness and health
1310
+ at a glance), a per-project drill-down that renders `/doctor` as a live checklist, the
1311
+ **Surfaces ↔ agents** map from `PIPELINE.md`, and a **Specs board** (kanban by
1312
+ `draft·frozen·in-review·shipped`). Install/update actions run the CLI and stream their output
1313
+ live. Add projects by path — the set is remembered in `~/.claude/cohorte-dashboard.json`.
1314
+ The runtime is dependency-free (node's built-in `http` serves a prebuilt React app); the
1315
+ `/doctor` checks are reimplemented in JS so they run without a Claude session. Point it at any
1316
+ pipeline-ised repo, or at nothing (it seeds the launch directory). A **folder picker** browses
1317
+ the filesystem to add projects (dirs with a `PIPELINE.md` are flagged), and a **Reset pipeline**
1318
+ action wipes a project's entire pipeline footprint (`.claude/`, `PIPELINE.md`, optionally
1319
+ `specs/`) — backed up first to `.claude.bak-<ts>/`, the shared `~/.claude` core untouched — so a
1320
+ project riddled with old-version relics can be brought back to a clean, pipeline-managed state
1321
+ (then `/init-pipeline` regenerates the profile). **Init-pipeline / Update-pipeline** buttons run
1322
+ those Claude Code commands headless (`claude -p … --dangerously-skip-permissions`) in the project
1323
+ and stream the output. The server **binds `127.0.0.1` by default** (its actions execute code);
1324
+ `--host=ADDR` exposes it with a printed security warning, `--open` launches the browser.
1325
+ Projects with a linked **Obsidian Kanban board** (config `kanban.boards`) get it rendered inline —
1326
+ columns + cards read straight from the vault markdown (local, no token; Notion is not a kanban
1327
+ source in this pipeline, only /research archival). PR references become clickable links, enriched
1328
+ with **live PR status** (open/merged/closed/draft) + date via the user's `gh` CLI (cached 60s), and
1329
+ the **Shipped** column is sorted by ship date. Cards missing an explicit `#<num>` have their PR
1330
+ **inferred from the branch** (`…/<feature_id>`), so historical boards light up too.
1331
+
1332
+ ## 0.1.27 — 2026-07-28
1333
+
1334
+ - **README gains a Prerequisites section.** Spells out what a new machine actually needs: Node ≥ 18 + npm
1335
+ (the only hard requirement, for the `npx` installer) versus `uv` + the Serena CLI (optional, the default
1336
+ retrieval provider — installed separately, independent of the `npx` core install, order irrelevant, and
1337
+ the pipeline still runs without it by falling back to Grep/Read). Also documents the cloned-repo case
1338
+ (Serena registration travels in the committed `.mcp.json`; just install the CLI + restart + `/doctor`).
1339
+ The mechanics were already in `SCHEMA.md` §Code retrieval, but not in the human-facing onboarding doc.
1340
+
1341
+ ## 0.1.26 — 2026-07-28
1342
+
1343
+ - **The design step now references designs by full link, not a stored project id + bare filename.** A
1344
+ `design_files` entry is a self-contained `https://claude.ai/design/p/<projectId>?file=<file>` link that
1345
+ carries its own project (`/p/<projectId>`) and page (`?file=`); agents extract both and read it via
1346
+ `DesignSync get_file(<projectId>, <file>)`. No stored `design_project` id means a design-system rebuild
1347
+ (which mints a new project id) no longer breaks every spec — you just paste the new links. `design_project`
1348
+ becomes an optional legacy fallback (default `none`) for old bare-filename specs. Updated across `/build`
1349
+ (design gate + dispatch), `/smoke`, `/spec` + the spec template, `PIPELINE.md` (§design + conventions),
1350
+ `SCHEMA.md`, and `/doctor`. Crucially, the surface-agent render step now specifies the link-based
1351
+ `<SURFACE_DESIGN_INPUT>`/`<SURFACE_TDD_STEP1>` — so `/update-pipeline` re-renders design agents to resolve
1352
+ from the link instead of the stale `get_file(design_project, <file>)`. Existing specs keep their bare
1353
+ filenames until you replace them with links.
1354
+
1355
+ ## 0.1.25 — 2026-07-27
1356
+
1357
+ - **`research-agent` defaults to `sonnet`** instead of silently inheriting the session model (Opus). Its
1358
+ work — MAP / ANALYSE / SYNTHESISE of pre-extracted text — is extraction-and-summary that Sonnet handles
1359
+ well at a fraction of the cost, and `/cost` showed it was one of the two heaviest subagents. The fixed
1360
+ agents were never tiered like the surfaces; this closes the biggest gap. If cross-cutting synthesis ever
1361
+ needs more, the `/research` SYNTHESISE dispatch can override the model for just that pass.
1362
+ - **README documents the `/clear`-safe loop** as the top token lever — since all pipeline state lives on
1363
+ disk, `/clear`-ing between stages sheds the accumulated main-thread context (long >150k sessions are
1364
+ expensive even cached), with the safe-to-clear boundary shown for the whole `/spec → … → /ship` loop.
1365
+
1366
+ ## 0.1.24 — 2026-07-27
1367
+
1368
+ - **The dev loop is now `/clear`-safe between every stage.** All pipeline state already lives on disk
1369
+ (spec, contract, diff, Remediation checkboxes, freshness stamp), so you can `/clear` between commands
1370
+ to shed the accumulated main-thread context and cut token cost — each command reloads everything from
1371
+ disk. Every command now marks its handoff as safe to `/clear` before the next step.
1372
+ - **`/review` and `/smoke` stage their report to `specs/reports/<id>.md`** (a gitignored buffer in its own
1373
+ subfolder, like `specs/design/`) — the one context-coupling that a `/clear` used to break. `/fix` and
1374
+ `/spec` Mode B read the report back from disk when the context was cleared. `/init-pipeline` gitignores
1375
+ the buffer; `/doctor` reports it. The non-recursive `specs/*.md` glob skips the subfolder, so it never
1376
+ shows up as a phantom kanban card or spec.
1377
+
1378
+ ## 0.1.23 — 2026-07-26
1379
+
1380
+ - **Cheaper dev loop by default — implementers now default to `sonnet`, not the Opus lead.** A surface
1381
+ agent mostly applies a frozen contract, which Sonnet handles well at a fraction of the cost;
1382
+ `/init-pipeline` and reconcile now default `surfaces[].model` to `sonnet`, keeping `haiku` for purely
1383
+ mechanical scaffolding and `inherit` only for surfaces with real design decisions. The fixed `release`
1384
+ and `questionnaire-validator` agents drop to `haiku`, `questionnaire-writer` to `sonnet`. Existing
1385
+ projects pick this up on the next `/update-pipeline` (agents re-render; a `model` you set by hand is kept).
1386
+ - **Stateless agents read a *slice* of `PIPELINE.md`, not the whole file.** The implementer and reviewer
1387
+ now load the machine block + only the `### Shared` and their own `### Surface:` convention stanza
1388
+ (+ §Testing), never the other surfaces' prose — less context re-read on every parallel dispatch.
1389
+ - **Leaner fix loops.** On a `/fix` re-dispatch, a surface agent works from the self-contained open
1390
+ Remediation items + the diff and reads only the files those findings name — no longer re-reading the
1391
+ whole (growing) spec or re-exploring its tree.
1392
+ - **Freshness gate at `/ship`.** `/review` now fingerprints the reviewed source (`reviewed_base` +
1393
+ `reviewed_digest` in the spec front-matter) at a SHIP verdict, and `/ship` re-checks it — refusing to
1394
+ ship if any source or contract file changed after the review, so a verdict can't go stale unnoticed.
1395
+ Specs are excluded (DoD ticks + the ship status flip don't trip it); a spec predating the gate skips it.
1396
+ - **Big commands lazy-load their steps (progressive disclosure).** `/init-pipeline`, `/research` and
1397
+ `/questionnaire` are now thin routers (a bootstrap block + a steps table) that read each step from
1398
+ `templates/steps/<command>/NN-*.md` as they reach it, instead of one monolithic body — the branchy
1399
+ commands (esp. `/research`) no longer pull an unused branch into context. Pure re-partition, verified
1400
+ token-for-token identical to the old bodies. No installer change (steps ride the existing `templates/` copy).
1401
+ - **Machine-checkable postconditions on the two silent-failure gates** — `/spec` freeze asserts
1402
+ `status: frozen` actually landed; `/build` asserts the contract file exists before dispatching agents.
1403
+ - **`/review` lets git group the diff by surface** (`git diff --name-only -- <path>` + an `:(exclude)`
1404
+ remainder) instead of the lead reasoning it out file by file — deterministic and cheaper.
1405
+ - **`/fix` collapses fully-resolved Remediation rounds** to a one-line summary, so the spec every agent
1406
+ re-reads stops growing unbounded across fix loops (rounds with any open item stay expanded).
1407
+ - **New SCHEMA § "Measuring cost"** — documents `/cost` (built-in per-subagent + per-command usage share)
1408
+ and the OTEL `settings.json` env block (`claude_code.token.usage` / `cost.usage`) for exact numbers.
1409
+
1410
+ ## 0.1.22 — 2026-07-26
1411
+
1412
+ - **`/spec` exports a standalone design brief** — for a UI feature, freezing the spec now also writes
1413
+ §8 (the "spec return") to its own `specs/design/<id>.md`, in addition to printing the copy-paste
1414
+ block. One `.md` you can open, share, or drop straight into the design tool instead of scrolling back
1415
+ through the chat — regenerated on every freeze so it never drifts from the spec. Lives in the
1416
+ `specs/design/` subfolder on purpose, so the non-recursive `specs/*.md` glob (kanban backfill,
1417
+ `/doctor`) never mistakes it for a spec. Backend-only features are unaffected.
1418
+
1419
+ ## 0.1.21 — 2026-07-24
1420
+
1421
+ - **Reliable local-PDF reading for `/research`** — subagent nodes often lack a PDF renderer (no
1422
+ poppler), which made research-agents silently fall back to a web copy of the document — fine for a
1423
+ public PDF, a silent fabrication risk for a private one. `/research` now **extracts the PDF to
1424
+ per-page text ONCE up front** (pure-Python `pypdf` in a throwaway venv — no system deps) and agents
1425
+ read that text, never the binary PDF. A local read that fails now returns a loud `===READ-FAILED===`
1426
+ instead of reconstructing from the web; the orchestrator re-extracts or surfaces it. Adds a
1427
+ scanned-PDF guard (no text layer ⇒ stop, needs OCR).
1428
+
1429
+ ## 0.1.20 — 2026-07-24
1430
+
1431
+ - **`/fix` now checks off resolved Remediation items** — the lead flips `- [ ]` → `- [x]` (with a
1432
+ short "fixed" note) for every item the surface agents report addressed in their handoff, and skips
1433
+ already-`[x]` items when scoping the re-dispatch. Fixes two long-standing quirks: a spec whose
1434
+ Remediation looked permanently open even after fixes landed, and a later `/fix` re-sending
1435
+ already-fixed items from earlier rounds to the agents.
1436
+ - **`/review` now ticks the §9 DoD at a SHIP verdict** — a SHIP verdict is the pipeline's statement
1437
+ that the feature is done, so the lead checks off each Acceptance-criteria item its verifying stage
1438
+ actually covered (conformance/copy = review, tests/lint/types = build, mobile-first/runtime = smoke),
1439
+ leaving open any whose stage didn't run. `/ship` gains a matching gate: it lists any still-open DoD
1440
+ item and asks before shipping (it never ticks — that's `/review`'s job).
1441
+
1442
+ ## 0.1.19 — 2026-07-24
1443
+
1444
+ - **Research decoupled from the questionnaire** — `/research` now dispatches a dedicated, standalone
1445
+ **`research-agent`** (an autonomous research assistant that extracts everything important in the
1446
+ source) instead of the old bi-mode `questionnaire-researcher`. The report no longer carries any
1447
+ "future questionnaire" framing: the domain-brief `goal` is a research objective, and the brief
1448
+ template is renamed `research-brief.md`. The blueprint step moves to its own **`questionnaire-architect`**
1449
+ agent, dispatched by `/questionnaire`. New Notion archive databases are titled « Recherche ». Update
1450
+ scrubs the retired `questionnaire-researcher` agent and old template automatically.
1451
+ - **Multi-pass research for large sources** — `/research` now maps a big PDF into a reading plan, runs
1452
+ one deep `research-agent` pass **per segment in parallel**, synthesises the cross-cutting sections,
1453
+ and assembles a single report. Report length scales with the source (no fixed word-count cap), so a
1454
+ dense thesis or state-of-the-art gets exhaustive coverage instead of being compressed into one pass.
1455
+ Small sources and URLs still take the single-pass path.
1456
+
1457
+ ## 0.1.18 — 2026-07-22
1458
+
1459
+ - **Consolidated global config** — the research/questionnaire settings move from
1460
+ `~/.claude/questionnaire.config.yaml` into one `~/.claude/cohorte.config.yaml` with
1461
+ `obsidian` / `research` / `questionnaire` / `kanban` sections and a shared `obsidian.vault_path`.
1462
+ The old file is still read as a fallback; `/update-pipeline` migrates it for you. The `npx`
1463
+ installer now offers a quick interactive setup on a TTY.
1464
+ - **Obsidian kanban mirror** — an optional per-project board mirrors the pipeline
1465
+ (`/brainstorm`…`/ship`): each stage moves the feature's card across columns
1466
+ (Ideas → Brainstorm → Spec → Ready to build → Building → Review → Fix → Ship → Shipped).
1467
+ `/brainstorm` can pick an idea straight from the *Ideas* column; `/init-pipeline` creates + links
1468
+ a board (keyed by the project's `PIPELINE.md` name); `/update-pipeline` links/repairs it and
1469
+ **backfills existing `specs/` onto the board**, syncing each card to its spec's status. Enable it
1470
+ via `/init-pipeline` (new project) or `/update-pipeline` (existing) — no hand-editing.
1471
+
1472
+ ## 0.1.17 — 2026-07-22
1473
+
1474
+ - **Serena dashboard no longer auto-opens** — the per-repo Serena launcher `/init-pipeline` wires now
1475
+ passes `--open-web-dashboard False`. The dashboard stays available (`http://localhost:24282/dashboard/`)
1476
+ but no longer pops a browser tab on every server start. The flag overrides each machine's
1477
+ `serena_config.yml`, so behaviour is uniform across the team; `/update-pipeline`'s health check appends
1478
+ the flag to launcher entries that predate it.
1479
+
1480
+ ## 0.1.16 — 2026-07-22
1481
+
1482
+ - **Obsidian store: research and questionnaires split** — research notes land in
1483
+ `obsidian_research_folder` (default `Recherches/`, with `_sources/`), and a derived questionnaire
1484
+ is now a **separate note** in `obsidian_questionnaire_folder` (default `Questionnaires/`),
1485
+ wikilinked both ways with the research note. Statut lifecycle: the research note stays
1486
+ `Recherche`; the questionnaire note carries `À relire` / `Bloqué` / `Approuvé`. (Replaces
1487
+ 0.1.15's single `obsidian_folder` key.) Notion store unchanged — one page per run.
1488
+
1489
+ ## 0.1.15 — 2026-07-22
1490
+
1491
+ - **Obsidian store for research runs** — the research/questionnaire capability gains a `store:`
1492
+ switch in `~/.claude/questionnaire.config.yaml`: `notion` (default, unchanged) or `obsidian` —
1493
+ each run becomes a markdown note in `<vault>/<obsidian_folder>/` with frontmatter properties
1494
+ (`run_id`, `sujet`, `cadre`, `statut`, `date`), source PDFs copied to `_sources/` for provenance.
1495
+ No MCP needed; the vault path is asked once on first `/research`, then saved. Old Notion runs stay
1496
+ readable — pass their URL to `/questionnaire`.
1497
+
1498
+ ## 0.1.14 — 2026-07-22
1499
+
1500
+ - **`/fix`** — scoped fix loop: appends a REVIEW REPORT (or `/smoke` failures) to the spec's
1501
+ `## Remediation` and re-dispatches ONLY the surfaces with findings, instead of the full
1502
+ paste-into-`/spec` + full `/build` round-trip.
1503
+ - **`/smoke`** — end-to-end verification between `/build` and `/review`: infra up in the feature
1504
+ worktree, migrations, real contract endpoints via curl (incl. RBAC denials), spec §8 UI flows
1505
+ mobile-first, optional screenshot diff against the Claude Design pages.
1506
+ - **`/doctor`** — installation diagnostic: core/pointer versions, agents↔surfaces orphans, hooks &
1507
+ gate config, retrieval health, design wiring, stale worktree slots — each failure with its exact fix.
1508
+ - **Dispatch metrics** — `/build`, `/review`, `/fix`, `/smoke` append per-agent JSONL evidence to
1509
+ `.claude/pipeline-metrics.jsonl` (gitignored); SCHEMA §Specialization now points at it.
1510
+ - **`/ship`** — watches the PR's CI checks (`gh pr checks --watch`) and, after the merge is
1511
+ confirmed, proposes `scripts/remove-feature.sh` (worktree + slot teardown, db kept by default).
1512
+ - **`/init-pipeline`** — generates `.github/workflows/pipeline-ci.yml` from the profile's commands
1513
+ (with go-ahead) and gitignores the metrics sink.
1514
+ - **CHANGELOG** — this file; shipped with the core, shown by `/update-pipeline` after an update.
1515
+
1516
+ ## 0.1.13 — 2026-07-22
1517
+
1518
+ - **`/review` is parallel** — one review agent per touched surface in a single dispatch (wall-clock =
1519
+ slowest surface, not the sum); the lead merges the reports, worst verdict wins.
1520
+ - **Review agent reads less** — `mcp__serena` in its toolset (harmlessly absent when a project has no
1521
+ retrieval provider) and a diff-hunks-first reading rule instead of whole-file reads.
1522
+
1523
+ ## 0.1.12 — 2026-07-22
1524
+
1525
+ - **Per-feature design projects** — spec `design_files` now accepts full Claude Design links, each
1526
+ carrying its own project id (extracted at `/build`'s design gate); the profile's `design_project`
1527
+ becomes an optional fallback. Design each feature in a fresh project and just paste the link.
1528
+
1529
+ ## 0.1.11 and earlier
1530
+
1531
+ Pre-changelog releases: serena wiring made PATH-proof and health-checked (0.1.9–0.1.11), OIDC npm
1532
+ trusted publishing (since 0.1.4). See `git log` for details.