@jeiemgi/cckit 0.10.0 → 0.12.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 (193) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/AGENTS.md +136 -127
  3. package/README.md +66 -43
  4. package/bin/cckit +151 -181
  5. package/cckit.config.json +1 -4
  6. package/package.json +1 -1
  7. package/scripts/advisor-test.sh +55 -0
  8. package/scripts/autopilot-run-test.sh +20 -12
  9. package/scripts/autopilot-run.sh +9 -1
  10. package/scripts/autopilot-test.sh +29 -13
  11. package/scripts/autopilot.sh +4 -4
  12. package/scripts/benchmark/verb-timings-test.sh +4 -0
  13. package/scripts/benchmark/verb-timings.sh +16 -5
  14. package/scripts/capture-project-ids.sh +23 -1
  15. package/scripts/check.sh +25 -0
  16. package/scripts/content-skills-test.sh +1 -1
  17. package/scripts/contribute.sh +8 -3
  18. package/scripts/copilot-loop-test.sh +66 -81
  19. package/scripts/exec-targets-test.sh +20 -0
  20. package/scripts/force-push-fence-test.sh +44 -0
  21. package/scripts/force-push-fence.baseline +1 -0
  22. package/scripts/force-push-fence.sh +51 -0
  23. package/scripts/forge-fence-test.sh +69 -0
  24. package/scripts/forge-fence.baseline +2 -0
  25. package/scripts/forge-fence.sh +76 -0
  26. package/scripts/forge-report-test.sh +100 -0
  27. package/scripts/forge-report.sh +176 -0
  28. package/scripts/init-guided-test.sh +94 -82
  29. package/scripts/init.sh +12 -7
  30. package/scripts/install-test.sh +26 -0
  31. package/scripts/install.sh +7 -0
  32. package/scripts/instruction-budget-baseline.txt +1 -1
  33. package/scripts/kit-doctor-test.sh +60 -12
  34. package/scripts/kit-doctor.sh +170 -77
  35. package/scripts/lib/agent-resolve-test.sh +2 -0
  36. package/scripts/lib/agent-resolve.sh +15 -8
  37. package/scripts/lib/board-view.sh +3 -3
  38. package/scripts/lib/captain.sh +37 -8
  39. package/scripts/lib/content-kinds-gc-test.sh +22 -21
  40. package/scripts/lib/copilot-test.sh +20 -11
  41. package/scripts/lib/copilot.sh +19 -13
  42. package/scripts/lib/effort-close-subs-test.sh +96 -0
  43. package/scripts/lib/effort-dispatch-test.sh +5 -3
  44. package/scripts/lib/effort-metrics-test.sh +7 -12
  45. package/scripts/lib/effort-metrics.sh +17 -46
  46. package/scripts/lib/effort-ops-test.sh +261 -167
  47. package/scripts/lib/effort-ops.sh +449 -171
  48. package/scripts/lib/effort-parity-test.sh +57 -62
  49. package/scripts/lib/effort-plan-test.sh +56 -54
  50. package/scripts/lib/effort-plan.sh +14 -7
  51. package/scripts/lib/effort-review-test.sh +107 -0
  52. package/scripts/lib/effort-review.sh +93 -0
  53. package/scripts/lib/effort-slug-test.sh +34 -14
  54. package/scripts/lib/effort-slug.sh +13 -13
  55. package/scripts/lib/effort.sh +58 -80
  56. package/scripts/lib/forge-github.sh +260 -0
  57. package/scripts/lib/forge-none.sh +24 -0
  58. package/scripts/lib/forge-test.sh +186 -0
  59. package/scripts/lib/forge.sh +133 -0
  60. package/scripts/lib/gh-board-add-test.sh +118 -0
  61. package/scripts/lib/gh-project-test.sh +151 -31
  62. package/scripts/lib/gh-project.sh +139 -11
  63. package/scripts/lib/gh-rest-test.sh +63 -118
  64. package/scripts/lib/gh-rest.sh +275 -52
  65. package/scripts/lib/git-core-test.sh +128 -0
  66. package/scripts/lib/grill-record-test.sh +49 -0
  67. package/scripts/lib/grill-record.sh +88 -0
  68. package/scripts/lib/handoff.sh +1 -1
  69. package/scripts/lib/init-github.sh +38 -13
  70. package/scripts/lib/kinds-test.sh +13 -16
  71. package/scripts/lib/kit-brief-test.sh +51 -10
  72. package/scripts/lib/kit-brief.sh +103 -18
  73. package/scripts/lib/kit-gc-test.sh +90 -109
  74. package/scripts/lib/kit-gc.sh +19 -22
  75. package/scripts/lib/kit-hotfix.sh +18 -16
  76. package/scripts/lib/kit-interview.sh +6 -0
  77. package/scripts/lib/kit-lib-test.sh +1 -1
  78. package/scripts/lib/kit-lib.sh +7 -7
  79. package/scripts/lib/kit-msg.sh +3 -3
  80. package/scripts/lib/kit-status.sh +19 -14
  81. package/scripts/lib/kit-task-ops-test.sh +20 -1
  82. package/scripts/lib/kit-task-ops.sh +177 -94
  83. package/scripts/lib/kto-hotfix-test.sh +53 -58
  84. package/scripts/lib/kto-task-close-test.sh +28 -27
  85. package/scripts/lib/kto-task-new-test.sh +55 -48
  86. package/scripts/lib/kto-task-pr-merge-test.sh +77 -41
  87. package/scripts/lib/kto-task-pr-test.sh +30 -34
  88. package/scripts/lib/light-task-run-test.sh +19 -15
  89. package/scripts/lib/light-task-test.sh +34 -29
  90. package/scripts/lib/light-task.sh +24 -13
  91. package/scripts/lib/loose-issues.sh +65 -0
  92. package/scripts/lib/naming-test.sh +112 -0
  93. package/scripts/lib/naming-verbs-test.sh +126 -0
  94. package/scripts/lib/naming.sh +172 -0
  95. package/scripts/lib/next-test.sh +27 -22
  96. package/scripts/lib/next.sh +13 -7
  97. package/scripts/lib/orchestration-runtime-test.sh +11 -8
  98. package/scripts/lib/plan-machine.sh +22 -16
  99. package/scripts/lib/plan-next.sh +4 -4
  100. package/scripts/lib/pr-evidence-test.sh +63 -74
  101. package/scripts/lib/pr-evidence.sh +15 -12
  102. package/scripts/lib/qa-lane-test.sh +59 -27
  103. package/scripts/lib/qa-lane.sh +14 -6
  104. package/scripts/lib/review-page-test.sh +34 -25
  105. package/scripts/lib/review-page.sh +10 -4
  106. package/scripts/lib/spec-lint-test.sh +63 -0
  107. package/scripts/lib/spec-lint.sh +95 -0
  108. package/scripts/lib/sprint-test.sh +96 -0
  109. package/scripts/lib/sprint.sh +216 -0
  110. package/scripts/lib/stage-receipt-test.sh +169 -19
  111. package/scripts/lib/stage-receipt.sh +195 -10
  112. package/scripts/lib/test-forge-shim.sh +115 -0
  113. package/scripts/lib/verbs.sh +105 -0
  114. package/scripts/lib/verbs.tsv +92 -0
  115. package/scripts/lib/version-bump-test.sh +20 -0
  116. package/scripts/lib/version-bump.sh +4 -2
  117. package/scripts/lib/worker-brief-test.sh +1 -1
  118. package/scripts/lib/worker-brief.sh +1 -1
  119. package/scripts/lib/worktree-issue-test.sh +24 -19
  120. package/scripts/lib/worktree-issue.sh +10 -10
  121. package/scripts/lib/worktree-start-test.sh +13 -16
  122. package/scripts/lib/worktree-start.sh +57 -7
  123. package/scripts/loose-issues-test.sh +102 -0
  124. package/scripts/loose-issues.baseline +5 -0
  125. package/scripts/marketing-walkthrough-test.sh +25 -30
  126. package/scripts/night-grant.sh +14 -8
  127. package/scripts/night-run.mjs +1 -1
  128. package/scripts/orchestrate-test.sh +27 -31
  129. package/scripts/orchestrate.sh +9 -3
  130. package/scripts/portable-test.sh +37 -36
  131. package/scripts/publish.sh +9 -3
  132. package/scripts/setup-labels.sh +23 -12
  133. package/scripts/setup-milestones.sh +8 -2
  134. package/scripts/status-test.sh +39 -33
  135. package/scripts/status.sh +12 -6
  136. package/scripts/task-sync-test.sh +75 -32
  137. package/scripts/task-sync.sh +97 -6
  138. package/scripts/terms-check-test.sh +191 -0
  139. package/scripts/terms-check.sh +242 -0
  140. package/scripts/verbs-gen.sh +43 -0
  141. package/scripts/verbs-help-test.sh +61 -0
  142. package/scripts/verbs-ratchet-test.sh +69 -0
  143. package/scripts/verbs-ratchet.sh +34 -0
  144. package/scripts/verbs-test.sh +120 -0
  145. package/scripts/verbs.baseline +5 -0
  146. package/skills/kit-add/SKILL.md +2 -1
  147. package/skills/kit-advisor/SKILL.md +75 -0
  148. package/skills/kit-advisor/references/close.md +53 -0
  149. package/skills/kit-advisor/references/grill.md +69 -0
  150. package/skills/kit-advisor/references/orchestrate.md +56 -0
  151. package/skills/kit-advisor/references/plan.md +64 -0
  152. package/skills/kit-advisor/references/review.md +47 -0
  153. package/skills/kit-advisor/references/step-report.md +61 -0
  154. package/skills/kit-annotate/SKILL.md +1 -0
  155. package/skills/kit-autopilot/SKILL.md +2 -1
  156. package/skills/kit-cleanup/SKILL.md +3 -2
  157. package/skills/kit-contribute/SKILL.md +1 -0
  158. package/skills/kit-customize/SKILL.md +1 -0
  159. package/skills/kit-dev/SKILL.md +1 -0
  160. package/skills/kit-digest/SKILL.md +1 -0
  161. package/skills/kit-docs-writer/SKILL.md +4 -3
  162. package/skills/kit-effort-close/SKILL.md +18 -9
  163. package/skills/kit-effort-new/SKILL.md +12 -8
  164. package/skills/kit-effort-pr/SKILL.md +8 -7
  165. package/skills/kit-effort-start/SKILL.md +1 -0
  166. package/skills/kit-gc/SKILL.md +1 -0
  167. package/skills/kit-next/SKILL.md +8 -7
  168. package/skills/kit-onboard/SKILL.md +1 -0
  169. package/skills/kit-page/SKILL.md +1 -0
  170. package/skills/kit-plan-next/SKILL.md +11 -11
  171. package/skills/kit-security-sweep/SKILL.md +1 -0
  172. package/skills/kit-ship/SKILL.md +1 -0
  173. package/skills/kit-status/SKILL.md +6 -5
  174. package/skills/kit-task-close/SKILL.md +1 -0
  175. package/skills/kit-task-new/SKILL.md +1 -0
  176. package/skills/kit-task-pr/SKILL.md +1 -0
  177. package/skills/kit-task-pr-auto/SKILL.md +2 -1
  178. package/skills/kit-task-pr-merge/SKILL.md +4 -3
  179. package/skills/kit-task-start/SKILL.md +1 -0
  180. package/skills/kit-task-sync/SKILL.md +3 -0
  181. package/skills/kit-ux-audit/SKILL.md +1 -0
  182. package/skills/routing.yaml +124 -0
  183. package/templates/hooks/kit-mail-check.sh.tmpl +1 -1
  184. package/templates/instructions.md.tmpl +3 -3
  185. package/templates/rules/authoring.md +7 -3
  186. package/templates/rules/delegation-brief.md +4 -0
  187. package/templates/rules/effort-model.md +34 -31
  188. package/templates/rules/gate-and-review.md +1 -1
  189. package/templates/rules/merge-safety.md +9 -7
  190. package/templates/rules/naming-and-ids.md +20 -24
  191. package/templates/rules/plan-next.md +5 -5
  192. package/templates/skills/campaign/SKILL.md +2 -2
  193. package/scripts/lib/engine-adapter.sh +0 -93
package/README.md CHANGED
@@ -31,17 +31,18 @@ run a shell can drive every operation.
31
31
  a PR, merge, and clean up — each step is one command. The board is both the plan and the proof.
32
32
  - **Sessions that pick up where you left off.** `cckit handoff "<note>"` saves a resume-here note;
33
33
  bare `cckit` prints it at the start of the next session.
34
- - **Sessions that talk to each other.** `cckit msg send <branch|project:branch|all> [--steer]
34
+ - **Sessions that talk to each other.** `cckit agent msg send <branch|project:branch|all> [--steer]
35
35
  "<text>"` mails any parallel session on the machine — same project or another; the kit's mail
36
36
  hook delivers it to a *live* session between tool calls, and a `--steer` message redirects a
37
37
  session that is about to stop.
38
- - **Agent-operable.** Every verb has a machine-readable mode (`cckit <verb> --llm`) and an
38
+ - **Agent-operable.** Every verb has a machine-readable mode (`cckit <verb> --json`) and an
39
39
  [`AGENTS.md`](AGENTS.md) contract, so agents drive the kit without scraping human output.
40
40
  - **Scales from one issue to a wave.** The same verbs that take one issue to a merged PR also plan
41
41
  and run a whole wave of parallel agents — with a captain that gates and merges behind policy
42
42
  floors.
43
- - **Zero hard dependencies.** Pure bash with fallbacks; it auto-detects optional tools
44
- (`gh`, `jq`, `fzf`, `gum`) and degrades instead of failing.
43
+ - **Git is the one hard dependency.** Pure bash over `git`; GitHub is an optional forge behind a
44
+ token, and optional tools (`gh`, `fzf`, `gum`, `glow`) are auto-detected. A missing forge degrades
45
+ with one line saying so, never silently.
45
46
  - **Portable.** No company, framework, or repo is baked in — everything is driven from
46
47
  `cckit.config.json`.
47
48
 
@@ -80,7 +81,7 @@ cd cckit && ./scripts/install.sh # symlinks bin/cckit onto your PATH
80
81
  | Linux | ✅ native |
81
82
  | Windows | ✅ via WSL or Git Bash (not native cmd/PowerShell) |
82
83
 
83
- Requirements: `bash` 3.2+, `git`, `gh` (GitHub CLI) authenticated, `jq` and `perl`. `cckit doctor` checks each one.
84
+ Requirements: `bash` 3.2+, `git`, `jq`, `perl` and `curl`; a GitHub token (`GH_TOKEN`, or a signed-in `gh`) for the verbs that write issues and pull requests. `gh` itself is optional. `cckit doctor` checks each one.
84
85
 
85
86
  ## Quick start
86
87
 
@@ -104,7 +105,7 @@ cckit add # list the optional integrations + modules; `cckit
104
105
  # `cckit add graft`: code-graph retrieval + the code-retrieval rule
105
106
  # `cckit add lavish --set enable=no`: turn review pages off (on by default)
106
107
  cckit page mode # `page`, or `terminal: <why>` — can this session show a review page?
107
- cckit plan-next # propose what to build next, grounded in current capabilities
108
+ cckit effort plan --next # propose what to build next, grounded in current capabilities
108
109
  cckit status # where are we: light tasks, next effort per flow, local undone work, PRs to attend, cleanup available
109
110
  cckit next # the next unblocked issue + how to start it + the weekly cadence
110
111
  cckit start 42 # isolated worktree + branch for issue #42, bootstrapped:
@@ -117,7 +118,7 @@ cckit start 42 # isolated worktree + branch for issue #42, bootst
117
118
  # `cckit start --force 42` (or KIT_FORCE=1) starts anyway
118
119
  cckit claims # which live session is working which issue (read-only)
119
120
  cckit brief 42 # the delegation brief for #42, read out of the repo not memory
120
- cckit lib # every scripts/lib helper: functions, purpose, error contract
121
+ cckit agent lib # every scripts/lib helper: functions, purpose, error contract
121
122
  cckit pr 42 "what changed" # commit, push, open the PR
122
123
  cckit pr 42 "what changed" --base main # target main, not the integration branch; the push
123
124
  # exports the target as KIT_PR_BASE for a git pre-push hook
@@ -129,8 +130,8 @@ cckit task new "<title>" # light tasks: work tracked in tasks/, no GitHub i
129
130
  # task list · task next · task start <id> · task finish <id> "<summary>"
130
131
  cckit task run <id> # hand one light task to a headless agent: start, one round, the gate
131
132
  # (--check, else tasks.check), finish, the review link. Never merges
132
- cckit sync # board state, what's unblocked
133
- cckit sync --cached 60 # the board as one JSON document, from a cache at most 60s old
133
+ cckit status --board # board state, what's unblocked
134
+ cckit status --board --cached 60 # the board as one JSON document, from a cache at most 60s old
134
135
  # (--json / --write / --watch [secs] / --plan — for a TUI or statusline)
135
136
  cckit handoff "resume note" # save a handoff — bare `cckit` prints it next session
136
137
  cckit gc # report prunable branches + worktrees, detached worktrees included (deletes nothing); a failed GitHub read shows as UNKNOWN, kept
@@ -143,8 +144,9 @@ undone work, the open PRs waiting on a human, and the cleanup available, plus th
143
144
  resume handoff in one screen. It ends with the instruction-file line: the bytes `CLAUDE.md` and the
144
145
  rules without a `paths:` frontmatter put into every session, against Claude Code's 150k limit, and
145
146
  the three largest files (`cckit doctor` prints the same line; `scripts/instruction-budget-lint.sh`
146
- is the gate behind it). Run `cckit help` for the full verb list, or
147
- `cckit <verb> --help` for any one.
147
+ is the gate behind it). Run `cckit help` for the full verb list, grouped by the question
148
+ each verb answers, or `cckit <verb> --help` for any one: its usage, its question and a prompt to
149
+ paste, answered before the verb runs.
148
150
 
149
151
  Updating a project an older cckit scaffolded? `cckit update` says whether it is behind (exit 10) and
150
152
  names the command; `cckit migrate` moves an old layout to the current one;
@@ -228,13 +230,14 @@ run says so. `--upgrade` is unchanged and never enters this flow.
228
230
 
229
231
  ## Efforts and slug handles
230
232
 
231
- A big piece of work is an **effort** — a parent issue with sub-issues. `cckit effort new "<name>" "sub :: desc" …`
232
- creates the parent issue (the four-section plan body), applies the `ctx/kind/priority/role/flow` labels, and lints
233
+ A big piece of work is an **effort** — a parent issue with sub-issues. `cckit effort new --spec "<done means>" "<name>" "sub :: desc" …`
234
+ creates the parent issue (the five-section plan body; its `## Spec` says what done means, and both
235
+ `effort new` and `effort close` refuse an effort without one — `close --no-spec-check` skips it, saying so), applies the `ctx/kind/priority/role/flow` labels, and lints
233
236
  every sub-issue title — the same effort `/kit-effort-new` produces, since both call one shared core. `--kind` sets
234
237
  the `kind:` label on the parent and every sub: one of `feat fix task chore security scaffold ci adr spike plan`
235
238
  (default `task`), the same closed set `cckit start` uses as the branch prefix, or a content kind — `post`,
236
239
  `campaign`, `brand`, `research` — which is a label only: it starts on `task/`, `plan/`, `task/` and `spike/`
237
- respectively and titles its PR `docs:`. Any other value is refused before anything is created. In `cckit plan` and `cckit effort plan` an issue with no `ctx:` label shows `?` and weighs 2;
240
+ respectively and titles its PR `docs:`. Any other value is refused before anything is created. In `cckit effort plan --issues` and `cckit effort plan` an issue with no `ctx:` label shows `?` and weighs 2;
238
241
  a `ctx:` value outside `S|M|L|XL` also weighs 2 and warns on stderr. The `--flow`
239
242
  vocabulary (the `[Flow]` title tags) reads from `effort.flows` in the project config, so `cckit effort new --flow X`
240
243
  works in any configured repo (an explicit `EFFORT_FLOWS` env var still wins per invocation).
@@ -271,7 +274,7 @@ The GitHub issue **number** stays the canonical key, but every effort also has a
271
274
  already in its `effort/<N>-<slug>` branch). Effort commands take the slug *or* the number interchangeably:
272
275
 
273
276
  ```bash
274
- cckit effort new "Slug handles for efforts" --slug slug-handles # optional explicit handle
277
+ cckit effort new "Slug handles for efforts" --slug slug-handles --spec "start takes the slug"
275
278
  cckit effort start slug-handles # same as: cckit effort start 93
276
279
  cckit effort pr slug-handles
277
280
  cckit effort close slug-handles
@@ -296,7 +299,7 @@ cckit effort chain 241 242 243 # 242 blocked_by 241 · 243 blocked_by 242
296
299
  Each issue after the first gets a native GitHub `blocked_by` edge on its predecessor **and** a
297
300
  `- Depends on #<predecessor>` line in its `## Relations` section — the same line
298
301
  `cckit effort new --depends-on` writes, from the same formatter. Those `blocked_by` edges are
299
- exactly what `cckit plan` reads, so a chained set lands one issue per wave, in the order you gave.
302
+ exactly what `cckit effort plan --issues` reads, so a chained set lands one issue per wave, in the order you gave.
300
303
 
301
304
  It is **idempotent**: an edge or a `Depends on` line that is already there is reported and skipped,
302
305
  so re-running changes nothing. It only ever **adds** — an issue already blocked by something else
@@ -304,7 +307,7 @@ keeps that blocker and ends up with both. And it validates the whole chain befor
304
307
  so a refusal leaves the board untouched: fewer than two numbers, an argument that is not an issue
305
308
  number, an issue that does not exist, a number repeated in the list (`chain 1 2 1`), or an edge that
306
309
  would close a cycle through dependencies GitHub already holds are all refused whole. A cycle is
307
- refused rather than written because `cckit plan` cannot layer a cyclic graph into waves.
310
+ refused rather than written because `cckit effort plan --issues` cannot layer a cyclic graph into waves.
308
311
 
309
312
  ### One at a time — the effort WIP limit
310
313
 
@@ -352,16 +355,16 @@ from one shared function, so the line cannot differ between the two verbs:
352
355
 
353
356
  | When | Run | What it gives you |
354
357
  | --- | --- | --- |
355
- | Monday | `cckit plan` | the week's order: waves layered from the `blocked_by` edges, and **inside a wave the issues sorted `priority:p0` → `p1` → `p2` → `p3`**, unlabeled last |
358
+ | Monday | `cckit effort plan --issues` | the week's order: waves layered from the `blocked_by` edges, and **inside a wave the issues sorted `priority:p0` → `p1` → `p2` → `p3`**, unlabeled last |
356
359
  | Daily | `cckit next` | the unblocked set and the one command that starts the top issue |
357
360
  | Friday | `cckit gc` | the branches and worktrees that can be pruned — a report, it deletes nothing (`cckit cleanup` acts on it) |
358
361
 
359
362
  Priority never overrides a dependency: a p3 issue that blocks a p0 issue sits in an earlier wave and
360
363
  still runs first. For efforts, `cckit status` opens with a **Next effort per flow** table — per
361
364
  flow, the effort with no open blocker, p0 → p3 then lowest number, plus how many are still waiting.
362
- `cckit status --llm` carries those rows as `next_efforts` (and a project's light tasks as
365
+ `cckit status --json` carries those rows as `next_efforts` (and a project's light tasks as
363
366
  `light_tasks`: counts by state plus the tasks that need someone to act, read from local git); the cadence line is human output only,
364
- so `cckit next --llm` rows stay `{number,ctx,title}`.
367
+ so `cckit next --json` rows stay `{number,ctx,title}`.
365
368
 
366
369
  **`cckit effort plan` can read a local snapshot instead of GitHub.** By default it makes one
367
370
  listing call plus one `blocked_by` call per open effort. Set `effort.planSource` in
@@ -538,12 +541,12 @@ browser and compare it with the brief.
538
541
 
539
542
  ## Waves — parallel agentic development
540
543
 
541
- `cckit wave` reads your open efforts and proposes the incoming waves of work — parallel agent tasks
544
+ `cckit effort plan --wave` reads your open efforts and proposes the incoming waves of work — parallel agent tasks
542
545
  that gate and merge themselves:
543
546
 
544
547
  ```bash
545
- cckit plan # the wave plan: deps-ordered, p0-first inside a wave, file-disjoint
546
- cckit wave # the wave-0 fan-out brief the driving agent enacts: same wave data for
548
+ cckit effort plan --issues # the wave plan: deps-ordered, p0-first inside a wave, file-disjoint
549
+ cckit effort plan --wave # the wave-0 fan-out brief the driving agent enacts: same wave data for
547
550
  # every runtime, dispatch wording per adapter (--adapter claude|codex|both)
548
551
  cckit orchestrate 12 14 17 # run N flows in parallel worktrees (tmux by default)
549
552
  cckit orchestrate --results --wait 600 # how each worker ended: success · failure · interrupted
@@ -628,35 +631,46 @@ its current head. Off by default. → [the QA lane](https://cckit.dev/review/qa-
628
631
  ## Driven by agents
629
632
 
630
633
  cckit is meant to be operated by an agent loop, not only a human. See [`AGENTS.md`](AGENTS.md) for
631
- the contract. Every verb accepts `--llm` for structured output — uniform payloads come back as
634
+ the contract. Every verb accepts `--json` for structured output — uniform payloads come back as
632
635
  **TOON**, so the plan, board, and fan-out cost the model fewer tokens than the same rows as JSON:
633
636
 
634
637
  ```bash
635
- cckit sync --llm # board state for an agent to reason over
636
- cckit plan --llm # the wave plan as TOON rows
637
- cckit wave --llm # the fan-out (one worker prompt per issue) as TOON
638
- cckit orchestrate --results --llm # each worker's collected result as JSON
638
+ cckit status --board --json # board state for an agent to reason over
639
+ cckit effort plan --issues --json # the wave plan as TOON rows
640
+ cckit effort plan --wave --json # the fan-out (one worker prompt per issue) as TOON
641
+ cckit orchestrate --results --json # each worker's collected result as JSON
639
642
  ```
640
643
 
641
644
  Human output renders as markdown — rich via `glow` in a terminal, native in the Claude Code
642
- transcript, verbatim when piped. Every human-facing verb (`sync`, `plan`, `next`, `status`) goes
645
+ transcript, verbatim when piped. Every human-facing verb (`status`, `status --board`, `plan`, `next`) goes
643
646
  through one renderer (`cckit_render`, `scripts/lib/render.sh`), so board tables, wave plans, and the
644
- status dashboard read the same in all three and print no escape codes into a pipe (`cckit render` exposes
647
+ status dashboard read the same in all three and print no escape codes into a pipe (`cckit agent render` exposes
645
648
  it for any script).
646
649
 
647
- ### Cloud sessions
650
+ ### The forge, and cloud sessions
648
651
 
649
- Claude Code cloud sessions reach GitHub through a proxy that refuses GraphQL, and `gh pr` /
650
- `gh issue` use GraphQL. There cckit switches to REST (`gh api repos/<owner>/<repo>/…`):
652
+ Every GitHub call is REST over `curl` with a token, through one port (`scripts/lib/forge.sh`;
653
+ `forge.provider` in the config, `github` when a token resolves from `GH_TOKEN`, `GITHUB_TOKEN` or a
654
+ signed-in `gh`, else `none`). No verb runs a `gh` subcommand; `gh` is the optional way to sign in.
655
+ With no forge the git core stands alone: `start`, `pr` (commit + push, the compare page printed),
656
+ `merge` (the branch lands on the base through git), `hotfix <sha>` and `gc` run and say, once, what
657
+ they skipped; a verb that only exists on the forge refuses with one line naming itself.
651
658
 
652
- - **Works:** `cckit pr`, `merge`, `close`, `new`, `effort new`, `effort pr`, `effort close`, plus
653
- the issue reads behind `start` and `effort start`.
654
- - **Skipped:** board (Projects v2) steps, with one line on stderr: `cckit: board step skipped …`.
655
- Turn on the board's built-in workflows (item closed → Done, PR merged → Done, auto-add) and the
656
- card still moves. Remote branch deletion is skipped too: the proxy rejects it. Delete merged
657
- branches on GitHub.
658
- - **Switch:** `CCKIT_GH_TRANSPORT=rest|graphql` forces a transport. Unset, it is `rest` when
659
- `CLAUDE_CODE_REMOTE=true` and the `gh` subcommands otherwise.
659
+ Claude Code cloud sessions reach GitHub through a proxy that refuses GraphQL. REST works there, so
660
+ every lifecycle verb does.
661
+
662
+ The board (Projects v2) moves over REST: adding an issue or PR, finding its card, and setting
663
+ Status, Iteration and text fields call GitHub's Projects REST endpoints first, and GraphQL runs only
664
+ when REST cannot serve the call (404, 410, an unexpected answer), with one note on stderr. So a cloud
665
+ session can move a card when `github.owner` and `github.projectNumber` are set; with no captured
666
+ `scripts/.project-ids.env` the ids are read over REST. The REST writes are tested against a stand-in
667
+ of the documented API, not yet against a live board. User-owned boards do not accept GitHub App
668
+ tokens over REST. Two things are still skipped there, each with one line on stderr:
669
+
670
+ - **A board step REST could not serve**, where the GraphQL fallback is unavailable:
671
+ `cckit: board step skipped …`. Turn on the board's built-in workflows (item closed → Done, PR
672
+ merged → Done, auto-add) and the card still moves.
673
+ - **Remote branch deletion** after a merge: the proxy rejects it. Delete merged branches on GitHub.
660
674
 
661
675
  ## cckit builds cckit
662
676
 
@@ -704,10 +718,18 @@ cckit/
704
718
  bin/cckit # the CLI dispatcher
705
719
  scripts/lib/*.sh # the git-mechanics bundle (effort, worktree, gh, gc, …)
706
720
  # each declares `# errors:` — see CONTRIBUTING.md
721
+ scripts/lib/forge*.sh # the forge port: forge.sh selects github (REST over curl) or none (refuses,
722
+ # naming the verb); forge.provider in the config, CCKIT_FORGE for one command
723
+ scripts/forge-report.sh # where cckit needs a forge (gh) and where git alone: per file, per verb,
724
+ # and the ratchet (files outside the forge layer that call gh)
725
+ scripts/forge-fence.sh # the gate step that fails when a file outside the layer calls gh or the API
707
726
  scripts/benchmark/ # doc-retrieval benchmark harness (cckit bench)
708
727
  benchmarks/runs/ # recorded benchmark checkpoints, one file per release (format: its README.md)
709
728
  .claude-plugin/ # the Claude Code plugin manifest
710
- skills/ commands/ # Claude Code skills + slash commands
729
+ skills/ commands/ # Claude Code skills + slash commands; skills/routing.yaml routes a task to a
730
+ # skill and the term it serves (the same table: AGENTS.md)
731
+ ontology/ # the terms: one JSON file per word the CLI, skills and rules share
732
+ # (format: ontology/README.md; checked by scripts/terms-check.sh)
711
733
  profiles/ templates/ # init profiles + scaffold templates
712
734
  routines/ modules/ # scheduled routines + optional modules
713
735
  integrations/ # one JSON descriptor per optional third-party tool + its schema
@@ -742,7 +764,8 @@ cckit's own sets are in `benchmarks/`: 55 retrieval, adversarial and abstain que
742
764
  quality claims over `docs-site/src/content/docs`. Recorded runs of the first three tiers are under
743
765
  `benchmarks/runs/`.
744
766
 
745
- cckit records its own benchmark per release: `cckit bench checkpoint <X.Y.Z>` appends a scored run to
767
+ cckit records its own benchmark per release (paused while the current arc of work lands: no new
768
+ checkpoint, `cckit release` is run with `--skip-bench-check`): `cckit bench checkpoint <X.Y.Z>` appends a scored run to
746
769
  `benchmarks/runs/<X.Y.Z>.json`, a version can hold several checkpoints, and `cckit release <X.Y.Z>`
747
770
  refuses when the version has none or its last one scores lower than the checkpoint before it
748
771
  (`--skip-bench-check` overrides and says so). The two are compared over the questions both asked,