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