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
@@ -0,0 +1,34 @@
1
+ # HANDOFF — <surface> · <feature_id>
2
+
3
+ <!-- REFERENCE COPY — not read at runtime. The AUTHORITATIVE shape is inlined in
4
+ core/agents/implementer.template.md (§"Your return"), because a rendered agent must
5
+ not need a second file read to know its own output format. This file exists for humans
6
+ reading the core; keep it byte-aligned with the template, or delete both together.
7
+
8
+ Keep it tight: the lead only acts on mismatches, test failures, remediation ticks, and TODOs.
9
+ Never list files one by one — the lead has `git diff --stat`. Never paste code excerpts —
10
+ a file:line reference is enough, the code is on disk. One line per item. -->
11
+
12
+ ## Summary
13
+
14
+ <2–4 lines: what you built and the approach>
15
+
16
+ ## Migrations / schema (only if any)
17
+
18
+ - `<name>` — <additive change>
19
+
20
+ ## Tests
21
+
22
+ - Run: <this surface's test_cmd> · result: <pass/fail + counts>
23
+
24
+ ## Contract mismatches / assumptions
25
+
26
+ <none, or describe — NEVER edit the contract; report here instead>
27
+
28
+ ## Remediation addressed (fix loops only)
29
+
30
+ - <which `## Remediation` items you fixed, by file:line>
31
+
32
+ ## TODO / not done
33
+
34
+ - <anything deferred, blocked, or out of scope — or "none">
@@ -0,0 +1,42 @@
1
+ ---
2
+ feature_id: <kebab-case slug> # THE id downstream: /cohorte-spec takes it from here, never re-derives it
3
+ title: <feature title>
4
+ ---
5
+
6
+ # BRAINSTORM RETURN — <feature title>
7
+
8
+ > Paste this into `/cohorte-spec` (or let it read this staged file). The `feature_id` above is the
9
+ > kanban card's join key — `/cohorte-spec` reuses it as the spec's id, so the card never forks.
10
+
11
+ **One-liner:** <what we're building, in one sentence>
12
+
13
+ ## Problem & value
14
+
15
+ <the problem, who has it, why it matters>
16
+
17
+ ## Scope
18
+
19
+ - **In:** <…>
20
+ - **Out (non-goals):** <…>
21
+
22
+ ## Roles affected
23
+
24
+ > Only if the profile has `rbac.enabled` — list the roles from `PIPELINE.md` §rbac and what each does;
25
+ > explicitly note the lowest-privilege experience. Omit this section if there is no RBAC.
26
+
27
+ <which roles do what>
28
+
29
+ ## Rough shape
30
+
31
+ - **Data:** <entities / fields touched>
32
+ - **Screens:** <key screens/flows — mobile-first if the project has UI>
33
+ - **Interface (rough):** <endpoints / methods we'll need — refined into the contract in /cohorte-spec>
34
+
35
+ ## Risks & open questions
36
+
37
+ - <risk / unknown>
38
+ - <open question for /cohorte-spec to resolve>
39
+
40
+ ## Panel dissent (what was contested)
41
+
42
+ <the strongest disagreement the panel surfaced — so /cohorte-spec doesn't paper over it>
@@ -0,0 +1,42 @@
1
+ # Decisions
2
+
3
+ > The project's **transverse decision journal** — the non-obvious rules a stateless agent would
4
+ > otherwise re-discover or contradict, one feature at a time. `PIPELINE.md` says *how this repo is
5
+ > built* (surfaces, commands, conventions); this file says *what was decided and why*.
6
+ >
7
+ > **Append-only. One line per decision. No prose blocks, no code.** The bound is the point: this file
8
+ > is read by `/cohorte-spec`, `/cohorte-brainstorm` and `/cohorte-audit` — the deciding stages — and by **nothing else**.
9
+ > Implementers and reviewers never read it: they work from the frozen contract, which already tells
10
+ > them what to do; handing them the rationale too would cost `surfaces × dispatches` tokens per
11
+ > feature for a fact they cannot act on.
12
+ >
13
+ > Line shape (≤ ~160 chars, `·`-separated, no wrapping):
14
+ >
15
+ > ```
16
+ > - <YYYY-MM-DD> · <area> · <the decision, imperative> — because <the reason> · <feature_id>
17
+ > ```
18
+ >
19
+ > `<area>` is a short tag, not a path: `auth`, `data`, `api`, `ui`, `deploy`, `naming`, `surfaces`…
20
+ >
21
+ > **Reversing a decision** never edits or deletes a line — append a superseding one and move the old
22
+ > one to `## Superseded`:
23
+ >
24
+ > ```
25
+ > - <YYYY-MM-DD> · <area> · <the new decision> — because <reason> · supersedes <YYYY-MM-DD> <area> · <feature_id>
26
+ > ```
27
+ >
28
+ > **Keep it bounded:** when `## Live` passes ~100 lines, move every superseded line into
29
+ > `## Superseded` (the audit trail survives; the section the deciding stages actually read stays
30
+ > short). Never summarize or merge live lines — a decision either holds or has been superseded.
31
+ >
32
+ > **What does NOT belong here:** anything the code, the tests, `PIPELINE.md` §Conventions or a spec
33
+ > already states; a feature-local choice (that lives in its spec); a task, a TODO or a finding (those
34
+ > are `## Remediation` and `specs/refactor-backlog.md`).
35
+
36
+ ## Live
37
+
38
+ <!-- newest last -->
39
+
40
+ ## Superseded
41
+
42
+ <!-- moved here when a line above supersedes them; never deleted -->
@@ -0,0 +1,37 @@
1
+ # DESIGN BRIEF — <feature title> (`<feature_id>`)
2
+
3
+ > The "spec return". This is §8 of the frozen spec, standalone — `/cohorte-spec` writes it to
4
+ > `specs/design/<feature_id>.md` on freeze. Omit entirely if the project has no UI.
5
+ >
6
+ > **Getting it into the design tool:** paste it there yourself (see `PIPELINE.md` §design). This file
7
+ > stays the source of truth — it is what `/cohorte-build` reads.
8
+
9
+ **Goal:** <one line — what the user accomplishes>
10
+
11
+ **Design system:** use the existing UI kit (`PIPELINE.md` §design → `ui_kit_path`). Mobile-first.
12
+
13
+ ## Screens / views
14
+
15
+ For each: purpose, who sees it (role, if RBAC), and the key elements.
16
+
17
+ - **<screen name>** — <purpose> · roles: <…>
18
+ - Elements: <…>
19
+ - States: empty · loading · error · success
20
+
21
+ ## Flows
22
+
23
+ <step-by-step of the main user journey, and any role-specific variation>
24
+
25
+ ## Responsive
26
+
27
+ - Mobile (base): <layout>
28
+ - Tablet (`md:`): <changes>
29
+ - Desktop (`lg:`): <changes>
30
+
31
+ ## Data shown
32
+
33
+ <what fields/values appear on screen — must match the contract in spec §5>
34
+
35
+ ## Notes / constraints
36
+
37
+ <accessibility · copy in the profile's `ui_language` · edge cases · theming constraints>
@@ -0,0 +1,95 @@
1
+ ---
2
+ feature_id: patch-<slug>
3
+ kind: patch # a bug fix, not a feature — /cohorte-build skips contract authoring, /cohorte-ship commits `fix(…)`
4
+ title: <one line: the bug, from the user's side>
5
+ status: draft # draft → frozen → in-progress → in-review → shipped → merged · blocked · abandoned (see `<core>/pipeline/schema/spec-status.md`)
6
+ severity: <critical | major | minor> # drives nothing mechanical; it is what the human triages on
7
+ branch: <patch_branch_prefix><feature_id>
8
+ created: <YYYY-MM-DD>
9
+ migrations: false # true only if the fix ships a migration — then ## Rollback is mandatory
10
+ reviewed_base: # merge-base sha at the last SHIP verdict — freshness-gate anchor (written by /cohorte-review)
11
+ reviewed_digest: # sha256 (16 hex) of the reviewed source diff vs reviewed_base, specs excluded — /cohorte-ship re-checks
12
+ design_files: [] # omit unless the fix is itself visual
13
+ ---
14
+
15
+ # <one line: the bug, from the user's side>
16
+
17
+ ## 1. Symptom & repro
18
+
19
+ > What the user sees, and the shortest deterministic path to see it. A repro nobody can run is a
20
+ > hypothesis, not a bug — say so here rather than pretending otherwise.
21
+
22
+ - **Observed:** …
23
+ - **Expected:** …
24
+ - **Repro:** 1. … 2. … 3. …
25
+ - **Since / trigger:** <version, commit, or "unknown">
26
+
27
+ ## 2. Impact
28
+
29
+ > Who is affected, how often, and whether there is a workaround. This is what justifies the patch
30
+ > jumping the feature queue — one or two lines.
31
+
32
+ ## 3. Cause
33
+
34
+ > Confirmed or hypothesis — label which. Name the `file:line` if you have it. If the cause is
35
+ > unknown at freeze, say so: the implementer's first job is then to find it, and the review will
36
+ > check that the stated cause matches the diff.
37
+
38
+ ## 4. Regression test (red first)
39
+
40
+ > The heart of a patch spec — it replaces §5 CONTRACT as the thing the diff is checked against.
41
+ > Name the test file and what it asserts. It must fail on the current code and pass after the fix.
42
+
43
+ - **Test:** `<path/to/test>` · asserts: …
44
+ - **Fails today because:** …
45
+
46
+ ## 5. Contract delta
47
+
48
+ > Usually `none`. A fix that *changes* an existing contract entry describes the change here and
49
+ > `/cohorte-build` propagates it to every surface that names it. A fix that needs **new** contract
50
+ > surface area is not a patch — stop and run `/cohorte-spec` instead.
51
+
52
+ `none`
53
+
54
+ ## 6. Surface tasks
55
+
56
+ > One `###` subsection per surface the fix touches — a patch may legitimately span several (an
57
+ > unvalidated field on the API *and* the form that sends it). Each TDD: the §4 test first.
58
+
59
+ ### <surface.key>
60
+
61
+ - …
62
+
63
+ ## 7. Out of scope
64
+
65
+ > The adjacent things this patch deliberately does NOT fix. This is the section that keeps a bug fix
66
+ > from turning into a refactor — the reviewer reads it before flagging what you left alone. Real but
67
+ > out-of-scope findings belong in `specs/refactor-backlog.md`, not in this diff.
68
+
69
+ - …
70
+
71
+ ## 9. Acceptance criteria / DoD
72
+
73
+ > §9, not §8 — the number is load-bearing, so don't renumber it. `cohorte-review.md` and
74
+ > `implementer.template.md` both name "contract §5, acceptance §9" verbatim, so a patch spec pins
75
+ > those two sections to the feature spec's numbers and just has no §8 (the feature spec has no §7 —
76
+ > a gap in the sequence is normal here).
77
+
78
+ - [ ] The §4 regression test exists, and failed before the fix
79
+ - [ ] Each touched surface's tests (TDD) green
80
+ - [ ] `PIPELINE.md` commands.lint · typecheck · test green
81
+ - [ ] The repro in §1 no longer reproduces · runtime
82
+ - [ ] Nothing outside §6's surfaces changed
83
+
84
+ ## Rollback
85
+
86
+ > Only if `migrations: true` (then mandatory — `/cohorte-ship` refuses stubs); delete otherwise.
87
+
88
+ - **Revert:** …
89
+ - **Data:** …
90
+ - **Migration down:** …
91
+
92
+ ## Remediation
93
+
94
+ > Filled by `/cohorte-fix` from a REVIEW REPORT; empty otherwise. Each item:
95
+ > `[ ] <SEVERITY> · <file:line> · <spec-violation|quality|security> · <concrete fix>`
@@ -0,0 +1,25 @@
1
+ ## <type>(<scope>): <feature title>
2
+
3
+ **feature_id:** `<feature_id>` · closes/relates: <issue if any>
4
+
5
+ ### What & why
6
+
7
+ <2–4 lines: what this ships and the value, from the spec goal>
8
+
9
+ ### Changes
10
+
11
+ > One bullet per surface (from `PIPELINE.md` §surfaces), plus the shared contract.
12
+
13
+ - **<surface.key>:** <what changed>
14
+ - **Shared:** `<contract.path>/<feature_id>.<ext>` <(new/changed types: names only; omit if contract.enabled is false)>
15
+
16
+ ### Tests
17
+
18
+ - <per surface: test runner · coverage>
19
+ - <PIPELINE.md commands.lint · typecheck · test> — green
20
+
21
+ ### Review
22
+
23
+ Verdict: **SHIP** · remediation rounds: <n>
24
+
25
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
@@ -0,0 +1,46 @@
1
+ # REVIEW REPORT
2
+
3
+ <!-- REFERENCE COPY — not read at runtime. The AUTHORITATIVE shape is inlined in
4
+ core/agents/cohorte-review.md (§"Your return"), because an agent must not need a second
5
+ file read to know its own output format. This file exists for humans reading the
6
+ core; keep it byte-aligned with the agent, or delete both together.
7
+
8
+ Everything in an HTML comment is guidance — do NOT emit it.
9
+ The verdict rule is stated once, in the review agent's §Severity & verdict.
10
+ CAPPED: max 20 findings, ONE line each (severity · file:line · type · concrete fix),
11
+ ZERO code excerpts — file:line is enough, the source is on disk. Overflow ⇒ keep all
12
+ CRITICAL/HIGH/security, fill by severity, close with one `+<n> more …` line.
13
+ scripts/validate-core.mjs checks this file's headings against the agent's template. -->
14
+
15
+ feature_id: <feature_id> · scope: <surface.key>
16
+
17
+ | Severity | Count |
18
+ | -------- | ----- |
19
+ | CRITICAL | 0 |
20
+ | HIGH | 0 |
21
+ | MEDIUM | 0 |
22
+ | LOW | 0 |
23
+
24
+ Verdict: <SHIP | REVISE | BLOCK>
25
+
26
+ ## Findings
27
+
28
+ <!-- Every finding self-sufficient for a stateless agent; order by severity; "None." if none.
29
+ The line format pastes straight into the spec's `## Remediation`. -->
30
+
31
+ - **[CRITICAL]** `<surface.path>/...:42` · spec-violation · <what's wrong vs spec §X> → **Fix:** <concrete change>
32
+ - **[HIGH]** `<path>:88` · quality · <issue> → **Fix:** <concrete change>
33
+ - **[HIGH]** `<path>:line` · security · <vuln> → **Fix:** <concrete change>
34
+ - **[MEDIUM]** `<path>:line` · complexity · yagni: <what> → **Fix:** <the cheaper form>
35
+
36
+ ## Deferred
37
+
38
+ <!-- Real but out of this feature's scope (agent §Deferred): worst first, "None." if none, max 10.
39
+ Counted in no severity row, never in the verdict — the lead routes them to the backlog. -->
40
+
41
+ - **[MEDIUM]** `<path>:line` · quality · <problem> → **Fix:** <concrete change> · out of scope: <why this feature does not own it>
42
+
43
+ ## Notes
44
+
45
+ <!-- ONLY the RBAC / mobile-first assessment when the profile enables them; omit the section
46
+ otherwise. Never list things verified clean. -->
@@ -0,0 +1,109 @@
1
+ ---
2
+ feature_id: <slug>
3
+ title: <Feature title>
4
+ status: draft # draft → frozen → in-progress → in-review → shipped → merged · blocked · abandoned (see `<core>/pipeline/schema/spec-status.md`)
5
+ branch: <feature_branch_prefix><slug>
6
+ created: <YYYY-MM-DD>
7
+ migrations: false # true when §4 adds/changes a migration — ## Rollback becomes mandatory, /cohorte-verify runs it on the dev DB (`<core>/pipeline/schema/verify.md`)
8
+ reviewed_base: # merge-base sha at the last SHIP verdict — freshness-gate anchor (written by /cohorte-review)
9
+ reviewed_digest: # sha256 (16 hex) of the reviewed source diff vs reviewed_base, specs excluded — /cohorte-ship re-checks
10
+ design_files: [] # design page links — full URLs of the form https://claude.ai/design/p/<projectId>?file=<file> (each carries its own project + page); blank until designed; omit if no UI
11
+ ---
12
+
13
+ # <Feature title>
14
+
15
+ ## 1. Goal & user story
16
+
17
+ <one paragraph: what · who · why>
18
+
19
+ ## 2. Scope
20
+
21
+ **In:** …
22
+ **Out (non-goals):** …
23
+
24
+ ## 3. Roles & permissions
25
+
26
+ > Only if `PIPELINE.md` §rbac is enabled — which roles can do what; note the lowest-privilege experience.
27
+
28
+ ## 4. Data model & migrations
29
+
30
+ > Additive only (never gate.deny commands). Omit if the feature has no persistence.
31
+
32
+ | table | column | type | null? | default | notes |
33
+ | ----- | ------ | ---- | ----- | ------- | ----- |
34
+ | | | | | | |
35
+
36
+ ## 5. CONTRACT (frozen)
37
+
38
+ > The only sync channel. Complete enough to build every surface independently. Uses the profile's
39
+ > `contract.mechanism`. If `contract.enabled` is false, capture the interface precisely in prose here.
40
+
41
+ ### `<METHOD> /<path>` · auth: `<middleware/role>`
42
+
43
+ - **Request** — params / query / body: `field` · type · required? · nullable? · validation
44
+ - **Success** — `<status>` · response shape
45
+ - **Errors** — `<status>` · when (422 validation · 401 · 403 · 404 · 409 …)
46
+
47
+ <repeat per endpoint/interface>
48
+
49
+ ### Contract types — lead authors `<contract.path>/<slug>.<ext>` before /cohorte-build
50
+
51
+ - `<slug>...Request` / `<slug>...Response` / `<slug>Base` … (sketch the schemas here)
52
+
53
+ ## 6. Surface tasks
54
+
55
+ > One `###` subsection per surface in `PIPELINE.md` §surfaces (e.g. backend, frontend), each TDD.
56
+ > Surfaces are subsections of §6, never top-level sections — §5, §8 and §9 are referenced by number
57
+ > across the whole pipeline (the implementer and reviewer agents read "contract §5, acceptance §9",
58
+ > `/cohorte-spec` writes the design brief summary into §8), so a third surface must not become a §7
59
+ > or §8 of its own. (§7 is deliberately absent here — the patch template uses it for Out of scope.)
60
+
61
+ ### <surface.key>
62
+
63
+ - …
64
+
65
+ ## 8. Design brief (the "spec return")
66
+
67
+ > Only if the project has UI. Standalone; mirrors `<core>/templates/design-brief.md`.
68
+
69
+ - **Screens / views:** …
70
+ - **Flows:** …
71
+ - **Responsive:** mobile (base) → `md:` → `lg:`
72
+ - **States:** empty · loading · error · success
73
+
74
+ ## 9. Acceptance criteria / DoD
75
+
76
+ > Defaults follow `PIPELINE.md` `project.kind` (absent ⇒ `web`). `web` ⇒ keep the five lines below
77
+ > as they are. Any other kind ⇒ read only its `## <kind>` section of
78
+ > `<core>/pipeline/schema/project-kinds.md` and apply its **DoD** line: add the lines it lists, drop
79
+ > the ones it drops (mobile-first outside `web`/`mobile`). Then add this feature's own criteria.
80
+
81
+ - [ ] Every contract endpoint/interface implemented exactly
82
+ - [ ] Each surface's tests (TDD) green
83
+ - [ ] `PIPELINE.md` commands.lint · typecheck · test green
84
+ - [ ] The app starts and the feature's main flow works · runtime: e2e
85
+ - [ ] Migrations apply and roll back on the dev DB (if `migrations: true`) · runtime: rollback
86
+ - [ ] Mobile-first / responsive verified (if UI) · runtime
87
+ - [ ] User-facing copy in `ui_language`
88
+
89
+ > `· runtime: <check>` marks an item only a running app can prove: `/cohorte-verify` ticks it when its
90
+ > check (`smoke`, `e2e`, `rollback`, `smoke:<surface>`…) passed. A bare `· runtime` needs a human eye.
91
+
92
+ ## 10. Assumptions & open questions
93
+
94
+ - …
95
+
96
+ ## Rollback
97
+
98
+ > Mandatory when `migrations: true` (`/cohorte-ship` refuses the spec while this holds only stubs);
99
+ > otherwise optional. `/cohorte-revert` follows it, and its PR body carries it to whoever rolls back
100
+ > production. Each line concrete — a command, a table, a flag.
101
+
102
+ - **Revert:** … <!-- what goes back: the merge commit, a feature flag to flip first, a config to restore -->
103
+ - **Data:** … <!-- what is lost or irreversible: rows written since, a dropped column's values, backfills -->
104
+ - **Migration down:** … <!-- the exact step on the dev DB, e.g. `commands.migrate_down`; order vs. the code revert -->
105
+
106
+ ## Remediation
107
+
108
+ > Filled by `/cohorte-fix` (or `/cohorte-spec` Mode B) from a REVIEW REPORT; empty otherwise. Each item:
109
+ > `[ ] <SEVERITY> · <file:line> · <spec-violation|quality|security> · <concrete fix>`
@@ -0,0 +1,53 @@
1
+ # /cohorte-init-pipeline · 01 Detect the stack
2
+
3
+ ### Phase 1 — Detect the stack (read-only, no questions yet)
4
+
5
+ Gather evidence, then summarize what you found. Look for:
6
+
7
+ - **Package manager & workspaces:** root `package.json` (`packageManager`, `workspaces`),
8
+ `pnpm-workspace.yaml`, `turbo.json`, `nx.json`, `lerna.json`; lockfiles (`pnpm-lock.yaml`,
9
+ `package-lock.json`, `yarn.lock`, `bun.lockb`); or non-JS: `pyproject.toml`/`requirements.txt`,
10
+ `go.mod`, `Cargo.toml`, `Gemfile`, `composer.json`.
11
+ - **Surfaces (independently-built areas):** `apps/*`, `packages/*`, `services/*`, `cmd/*`, or a single
12
+ root app. For each, detect its framework from its own `package.json`/config:
13
+ backend markers (`adonisrc.ts`, `@adonisjs/*`, `nestjs`, `express`, `fastify`, `django`, `fastapi`,
14
+ `rails`, `.go`), frontend markers (`vite.config.*`, `next.config.*`, `@tanstack/react-router`,
15
+ `angular.json`, `nuxt`, `svelte`), and its test runner (`@japa/*`, `vitest`, `jest`, `playwright`,
16
+ `pytest`, `go test`), linter/formatter (`eslint`, `prettier`, `biome`, `ruff`).
17
+ - **Split candidates (sub-surface boundaries):** inside each surface, look for a clean internal partition
18
+ — feature modules (`src/features/*`, `src/modules/*`, `app/(group)/*`), or independent services
19
+ (`services/*`, domain folders). Note the surface's rough size (module/file count) so a *large* surface
20
+ with a *clean* boundary can be proposed as several specialized surfaces in Phase 2. See `<core>/pipeline/schema/specialization.md` for the heuristic. Don't split yet — just
21
+ flag candidates + their would-be shared-code tree.
22
+ - **Per-surface commands:** derive `test`/`lint`/`format`/`typecheck`/`build` from each surface's
23
+ `package.json` scripts + the workspace filter syntax (e.g. `pnpm --filter <pkg> test`).
24
+ - **Project kind (`project.kind`):** match the evidence against the detection table of
25
+ `<core>/pipeline/schema/project-kinds.md` (read only its `### Detection` table) — first matching row
26
+ wins: react-native/expo/Swift/Kotlin app ⇒ `mobile`; browser UI deps ⇒ `web`; dbt/Airflow/notebooks ⇒
27
+ `data`; `bin` entries and no UI deps ⇒ `cli`; a published package with exports and no app ⇒
28
+ `library`; server-only ⇒ `api`; else `other`. Note the signal that decided it.
29
+ - **Contract mechanism:** a shared types/schema package (`packages/shared-types`, Zod/`z.`),
30
+ an `openapi.*`/`swagger.*` file, `.proto` files, or none.
31
+ - **Release notes / versioning:** a `.changeset/` directory (+ `config.json`, and whether it declares a
32
+ `fixed`/lockstep group — that names the anchor package), `changesets` in devDependencies, or a CI job
33
+ that fails a PR lacking a note (grep `.github/workflows/*` for `changeset`). Also note the root
34
+ `version`: a `0.y.z` product usually forbids `major`. None of these ⇒ `release_notes.enabled: false`.
35
+ - **Security scanners:** which dependency auditor fits each lockfile or manifest (`npm`/`pnpm`/`yarn`
36
+ audit, `pip-audit`, `govulncheck`, `cargo audit`), and whether each is installed (`command -v`).
37
+ Also check for a secret scanner on PATH (`gitleaks`, `trufflehog`). Match them against the
38
+ detected-defaults table in `<core>/pipeline/schema/preflight.md` §Security scans. They feed
39
+ `commands.security`.
40
+ - **DB / migrations:** migration tooling (`node ace make:migration`, `knex`, `prisma`, `alembic`,
41
+ `golang-migrate`), a `docker-compose.yml`, DB service.
42
+ - **Design system:** an existing `design-reference/` snapshot, `components/ui`, a DesignSync MCP
43
+ connection, Figma links, or none.
44
+ - **Code retrieval:** is the `serena` CLI resolvable (`command -v serena`)? If not, does
45
+ `~/.local/bin/serena` exist anyway — installed but PATH-broken (see `<core>/pipeline/schema/retrieval.md`)?
46
+ `graphify`? Is either already registered in this repo's `.mcp.json` or `claude mcp list`? (Feeds
47
+ the retrieval question + Phase 4 wiring — default provider is `serena`.)
48
+ - **VCS:** `git remote -v` → host + `owner/repo`; the default branch (`git symbolic-ref refs/remotes/origin/HEAD` or `git branch`).
49
+ - **Existing `<memory>`** — read it; it may already state stack/conventions to fold in. **Existing
50
+ `PIPELINE.md`** — if present, this is a re-run: load it as the starting draft and only reconcile deltas.
51
+
52
+ Print a compact **Detection Report**: layout, project kind, surfaces (with framework + commands),
53
+ contract, release notes, security scanners, DB, design, vcs. Mark each field `detected` / `guessed` / `unknown`.
@@ -0,0 +1,78 @@
1
+ # /cohorte-init-pipeline · 02 Interview the gaps
2
+
3
+ ### Phase 2 — Interview the gaps (AskUserQuestion)
4
+
5
+ Ask ONLY what you couldn't confidently detect. Batch related questions. Cover:
6
+
7
+ - **Project kind** — always confirm, the detected `project.kind` as the Recommended option with the
8
+ signal that decided it (`web` · `api` · `cli` · `library` · `mobile` · `data` · `other`). It
9
+ selects the spec DoD defaults and the review's checks. Where `<core>/pipeline/schema/project-kinds.md`
10
+ says the kind has no design step, skip the **Design system** question below (`design.enabled: false`,
11
+ every `uses_design: false`); where it has no RBAC check, default **RBAC** to `enabled: false`.
12
+ - **Surfaces & ownership** — confirm the surface list and each one's path + owning agent name. (If a
13
+ single-app repo, one surface.) Confirm the `tools` each agent needs (add `DesignSync` only to a
14
+ surface with `uses_design: true`), and each surface's `model` tier: `sonnet` (Recommended default —
15
+ implementers mostly apply a frozen contract, which Sonnet handles at a fraction of the Opus-lead
16
+ cost), `haiku` for purely mechanical surfaces (scaffolding), `inherit` only for surfaces with real
17
+ design decisions worth running on the lead's model.
18
+ **Ownership is enforced** (the gate denies a surface agent's Write/Edit outside its `path`), so
19
+ check what each surface legitimately writes elsewhere: tests or fixtures in a root folder (`tests/`,
20
+ `e2e/`, `__tests__/` outside the surface path), a generated client, a shared i18n file. Propose them
21
+ as that surface's `owns_also: [...]`, and files every surface may touch (root lockfile, root
22
+ `package.json` workspaces list) as `ownership.shared_writable: [...]`. Unsure ⇒ propose, never skip:
23
+ a missing entry shows up as a denied write in the first build.
24
+ - **Specialization (only if Phase 1 flagged a large + cleanly-separable surface)** — offer to split it
25
+ into specialized sub-surfaces (e.g. `web-checkout`, `web-billing`) so `/cohorte-build` runs them in parallel,
26
+ per `<core>/pipeline/schema/specialization.md`. If the human accepts, apply the rules: **shared code (routing, global
27
+ state, DS kit/tokens) becomes its own single-owner surface**, and cross-slice shapes go through the
28
+ contract. Default to NOT splitting when boundaries are tangled or slices are tiny — coarse is fine.
29
+ - **Quiet commands** (never store a bare `pnpm test` as what agents execute) — for each noisy command
30
+ (tests, lint; per surface AND repo-wide), propose the detected **bridled variant** as the
31
+ Recommended option: dot/failures-only reporter (`--reporter=dot` vitest/playwright, `--silent`
32
+ jest, `-q` pytest, `--quiet` eslint/ruff — whatever the detected runner supports). These land in
33
+ `test_quiet_cmd`/`lint_quiet_cmd` + `commands.test_quiet`/`lint_quiet` and are what agents and the
34
+ `/cohorte-review` pre-flight actually run (`<core>/pipeline/schema/output-discipline.md`). If the human declines or
35
+ the runner has no such flag, leave `""` — consumers then fall back to `<cmd> 2>&1 | tail -40`.
36
+ - **Security scans** (only if Phase 1 found an auditor or a secret scanner). Propose the detected
37
+ commands from `<core>/pipeline/schema/preflight.md` §Security scans as one multi-select. Fill
38
+ in `--default <default_branch>`. If `CLAUDE_CONFIG_DIR` is set, use its literal value in place
39
+ of `~/.claude`. Note that a scan red at its threshold blocks every review, so the default branch
40
+ must pass it today. If it doesn't, offer a higher threshold. The accepted commands go in
41
+ `commands.security`. None accepted ⇒ `security: []`.
42
+ - **Runtime verification** (`/cohorte-verify`, `<core>/pipeline/schema/verify.md`) — only if Phase 1
43
+ found a dev server, an e2e runner or migrations. Propose `commands.dev` + `commands.dev_ready` (a URL
44
+ such as `http://localhost:5173` or a probe command), `commands.smoke` / `commands.e2e` when they
45
+ exist, and `commands.migrate_down` when migrations do; ask `verify.db`: `local` (the dev DB is the
46
+ human's own) or `shared` (others use it — migrations are then refused unless isolation gives each
47
+ worktree its own DB). Declined ⇒ leave `dev_ready` empty: verify stays off and ship never asks.
48
+ - **Contract** — mechanism (`shared-types-zod` / `openapi` / `protobuf` / `json-schema` / `none`) and
49
+ where feature contracts are authored. If `none`, surfaces sync by the spec prose alone.
50
+ - **Release notes (only if Phase 1 found a versioning tool or a note-enforcing CI job)** — confirm the
51
+ anchor package (a `fixed`/lockstep group means ONE key propagates to all), the note's language, and the
52
+ **bump policy** the lead will apply at `/cohorte-ship`: what counts as major/minor/patch here, and
53
+ whether any level is forbidden (a `0.y.z` product normally forbids `major` — Changesets would jump it
54
+ to `1.0.0` with no human deciding). Policy prose lands in `release_notes.guidance`. Nothing detected ⇒
55
+ don't ask; leave `release_notes.enabled: false`.
56
+ - **UI language** — language of all user-facing copy.
57
+ - **RBAC** — is there a role hierarchy? If yes, list it highest→lowest.
58
+ - **Design system** — enabled? provider (Claude Design / Figma / none) + project ids + kit/token paths.
59
+ - **Code retrieval** — confirm the provider (see `<core>/pipeline/schema/retrieval.md`): `serena` (Recommended
60
+ default — live LSP symbol navigation, no index to maintain), `graphify` (persistent knowledge graph
61
+ over code + docs — better on very large or mixed code+docs repos, but needs an index step + rescans),
62
+ or `none`. Only demote from `serena` if the human objects or the provider CLI can't be installed.
63
+ - **Isolation** — build features in parallel git worktrees with per-feature DB + ports, or just in the
64
+ main checkout? If worktrees: DB-per-worktree? port bases? compose file?
65
+ - **Gate** — confirm the destructive commands to hard-deny and the ones to confirm-first (seed from the
66
+ detected DB/migration tooling + always git commit/push/merge/rebase/reset).
67
+ - **Personas** — keep the default `/cohorte-brainstorm` panel, or customize members for this domain?
68
+
69
+ Prefer sensible defaults from Phase 1 as the first (Recommended) option in each question.
70
+
71
+ - **Kanban** (optional) — mirror this project's pipeline (`/cohorte-brainstorm`…`/cohorte-ship`) onto an Obsidian
72
+ Kanban board? If the human says yes: confirm the shared vault path (`obsidian.vault_path` in
73
+ `<config>`; ask if empty) and the board's location inside it (default
74
+ `<ProjectName>/Tasks.md`). Phase 4 creates the board and records the link. Default: no.
75
+
76
+ > The **kanban** link is user-scoped (it points at a personal vault, so it never goes in the committed
77
+ > `PIPELINE.md`), but IS wired here because it is per-project — see Phase 4.
78
+
@@ -0,0 +1,10 @@
1
+ # /cohorte-init-pipeline · 03 Draft the profile
2
+
3
+ ### Phase 3 — Draft the profile (show, don't write yet)
4
+
5
+ Assemble the full `PIPELINE.md` from `<core>/pipeline/PIPELINE.template.md`, filling the `yaml pipeline-profile`
6
+ block and every prose section from Phases 1–2 — including `project.kind` as confirmed in Phase 2
7
+ (and the `design`/`rbac` defaults it implied). **Keep it lean**: every stateless agent re-reads this
8
+ file on every dispatch, so its length is a per-dispatch token+latency tax — terse rule-shaped
9
+ conventions, no narration, no facts derivable from the code. **Show the human the drafted
10
+ `PIPELINE.md` in a fenced block and get a go-ahead** before writing.