| title | Workflow paths (the complete path map) |
|---|---|
| date | 2026-07-31 |
| status | GENERATED projection |
| sources | history/2026-10-27:docs/research/2026-07-31-feature-trigger-map.md, docs/WORKFLOW.md, hooks/hooks.json, settings.json |
GENERATED projection. This file enumerates every entry point and where each path leads. It is a rendering, not a second contract: when it disagrees with WORKFLOW.md, WORKFLOW.md wins. Regenerate per the last section.
| Class | Mark | Meaning | Examples |
|---|---|---|---|
| human-typed | [H] |
the operator types the command; nothing else can start it | /kit:wayfind (human ONLY), /kit:start |
| intent-read | [I] |
Claude infers the intent from context and invokes it | /kit:execute after a VALIDATED spec; skill auto-fire |
| event-fired | [E] |
a harness event fires it; no one invokes it | every hook (PreToolUse, Stop, SessionEnd, ...) |
| lib verb | [V] |
a lib script declares itself with a # kit-verb: header; commands, hooks, agents or a human call it |
board work, classify floor |
| dispatched | [D] |
a command dispatches it as a subagent | every agent (task-verifier, advisor, ...) |
Enforcement marks: HARD = a rule that code really blocks on (a hook or lib exits 2), listed in docs/reference/hard-rules.tsv and pinned by tests/test-meta-hard-claims.sh; a gate that is off by default says so in that registry's gate column; adv = advisory (warns, logs, never blocks); conv = convenience (never blocks, no verdict). The four hard stops are where autonomous runs stop for a human: safety-gate, the push-to-main blocker (inside safety-gate + ship-gate), anti-rationalization, and the execute verification pipeline. The pipeline is run by the command text, so ship-gate checks only that its gate was recorded. Other hooks block too (see the registry); everything else advises.
Stage grouping (Shape / Build / Watch / Check / Reflect) follows ## The five stages below. Stages are metadata: a feature sits where its work happens, and Check gates every boundary rather than owning a segment.
Across runs, the kit is organized as five stages (formerly called "legs"; the fifth was renamed from Learn to Reflect): Shape turns work into contracts, Build builds inside them, Watch records what happened, Check gates every boundary, and Reflect distills the record into proposals for the next cycle.
+-------+ +-------+ +-------+ +---------+
| Shape | --> | Build | --> | Watch | --> | Reflect |
+-------+ +-------+ +-------+ +---------+
^ : |
| : gates every phase boundary |
| v |
| +-------+ |
| | Check | |
| +-------+ |
+------- cited proposals, human promotes --+
This diagram is the stages. For how data moves through them (telemetry -> proposal -> board -> ship, the ledger write/read paths, and the module map of who calls whom), see data-flow.md.
Stages are metadata, not directories: each module keeps its name and install unit, and declares a primary stage. The authoritative assignment (machine copy in ../../lib/config/module-registry.md, rendered by config list):
| Stage | Modules / subsystems |
|---|---|
| Shape (Specify) | spec, classify, precedent, intake, goal, board (input side), sync (spoke intake; outward mirror is its Watch side) |
| Build (Execute) | queue, mega, worktree, quiz_gate, proof_capture |
| Watch (Observe) | stats, session (capture side), telemetry, sync (outward mirror side; absorbed the bridge cockpit mirror) |
| Check (Govern) | gate, money_gate, advisor, gauntlet, wrap |
| Reflect | reflect (was learn), weekend_batch, session (harvest), board (staging/promote), skill-curator, prose_rag (registry assignment, pending an amendment of the stage taxonomy decision) |
| (no stage) | cosmetic (statusline; orthogonal to the loop), update_check (newer-release notice; orthogonal to the loop) |
Two modules span stages: board (Shape intake and Reflect staging/promote) and session (Watch capture and Reflect harvest). Every automated stage ends at a staging file or a rendered surface, never a direct write to a board or ledger: propose, never dispose.
Every workflow, lane, loop, side-flow, and alternate path in one connected picture: the spine, the 5 intake lanes, the 3 bounded engines plus the amend micro-loop, the side-flows at their real attach points, the type-loop intake rail, the 7 alternate flows as alt: branch notes, and the 4 hard stops as the bottom rail. Where the picture simplifies, it names the section that carries the detail (the per-stage maps in section 4; the flow census in WORKFLOW.md "Flow and loop reference"); WORKFLOW.md stays canonical and wins on any disagreement.
LEGEND -> forward flow ==> loop-back / re-entry alt: an alternate flow fires here
[H] human-typed [I] intent-read [E] event-fired [D] dispatched (trigger classes per section 1)
⚡1..⚡4 a hard stop can fire at this point; the four stops are the STOP RAIL at the bottom
[E] session start ........ hooks inject context (Watch, section 4.4)
|
v
[H/I] /kit:start ........... read-only board render; recommends, never executes
|
v
[H/I] /kit:assign ........ goal draft + scope fence + lane pick (the ONLY mutator)
| alt: idempotent re-run -> re-surface the draft, never duplicate
| alt: no activator present -> the draft stays a plain reusable file
| too foggy -> [H] /kit:wayfind: map + tickets -> spec / ROADMAP
v
type classification ---- non-code type? ---> TYPE-LOOP INTAKE RAIL
| one right-sized loop per type, names
| code (spec-feature) only (shapes: WORKFLOW.md "Type loops"):
v research | review | eval | doc
pick a lane migration | data-tool | incident
(in doubt -> heavier) reconcile | operate | planning
| learning
+---------------+----+-----------+--------------------+----------------------+
| | | | |
v v v v v
tiny lane backfill lane bug lane normal lane full lane
one obvious brownfield: | one bounded risk-list match
edit -> review code -> | change (auth, data model,
run-lite write operate- | | migration, ...)
review -> layer docs ONLY | +----------+-----------+
done (no app-code | |
edits) -> done v v
DEBUG LOOP (just below) GOAL LOOP wrapper (below)
+- DEBUG LOOP /kit:debug (also the off-cycle entry from ANY point when a defect appears) ---+
| |
| Phase 0 feedback loop -> 1 root cause -> 2 pattern -> 3 hypothesis -> 4 implement |
| ^ | |
| +===== no == verified? ======+ |
| | yes |
| v |
| human-confirm -> DONE -> /kit:review |
| -> resume prior state |
| iron law: a fix or done claim is BLOCKED while ## Root cause is empty (guess-fix guard) |
| 3 failed fixes in a row -> STOP: the architecture wall (rethink the design) |
+--------------------------------------------------------------------------------------------+ <- ⚡3
+== GOAL LOOP (outer wrapper around the whole normal/full chain; activated at assign by an ======
| activator: /goal | ralph-loop | goal-craft; kit never writes .claude/last-goal.md)
| loop rule: do the next increment -> run ## Verification -> pass? -> all done? -> STOP
| not done ==> keep working; premature "done" is blocked <- ⚡3
| unresolvable blocker -> write spec ## Open questions -> STOP
|
| [H/I] /kit:grill ........ typed interview, one question at a time -> phase-0 Done=
| |
| v side-flows attach here (opt-in, advisory):
| [H/I] /kit:think -------+--> [H/I] /kit:design ..... solution, one decision at a time -> brief
| -> DECISION-BRIEF.md +--> [H/I] /kit:devs-team .. 5 engineering lenses, report-only
| | +--> [H/I] /kit:prototype .. spike branch, decision folds back
| v
| [H/I] /kit:spec ......... [D] 4 research agents (brownfield) -> SPEC-NNN DRAFT
| | +--> downstream UI offshoot: [H/I] /kit:ui-design -> frontend-design skill ->
| | [H/I] /kit:visual-team (5 design lenses) -> fix-agent revise (max 2) -> SOLID
| v
| [H/I] /kit:spec-validate 7 lenses (1 blocking verdict on the design record; reviewer prose, no hook)
| | NEEDS-REVISION ==> back to /kit:spec
| v Status: VALIDATED
| [H/I] /kit:test-plan ...... coverage matrix -> ## Test plan (default on normal/full)
| |
| v
| +- REVISE LOOP /kit:test-plan-review-team -------------------------------+
| | 6 test-design lenses -> findings -> revise ==> re-critique |
| | bounded: max 3 rounds; findings must strictly FALL, by severity |
| | not raw count, or halt honestly; exits early at 0 findings |
| | verdict: SOLID / REVISE / RECONSIDER |
| +-------------------------------------------------------------------------+
| | SOLID
| v
| [H/I] /kit:test-write ..... [D] test-writer, one test per matrix row
| | (the V-model vertex: BUILD = code + test code;
| | the full V shape: WORKFLOW.md "The V-model lens")
| v
| [H/I] /kit:execute (or [H/I] /kit:next: human-paced, same pipeline)
| | alt: 2+ active specs and the slug is ambiguous -> ASK, never guess
| v
| +- EXECUTE PIPELINE (the verification pipeline, command-run) --------------------+
| | |
| | [D] builder, one for the spec (data-etl-worker | db-migration-worker | general) |
| | | |
| | v |
| | [D] task-verifier, ONE pass over every task ([D] recheck-verifier samples) |
| | | |
| | +- FAIL:fixable ==> [D] fix-agent -> re-verify alt: retry (cap 2) |
| | | retries == 2 -------------------+ |
| | +- FAIL:escalate ---------------------->+--> ESCALATE alt: escalate |
| | to human |
| | +- AMEND MICRO-LOOP (mid-flight "also do Y") ------------------+ |
| | | reach a task checkpoint -> append new - [ ] TASK rows ONLY | |
| | | (add-only) -> ## Amendments entry -> re-validate the DELTA | |
| | | (Status STAYS VALIDATED) -> /kit:next resumes amended tasks | |
| | +---------------------------------------------------------------+ |
| | |
| | end PASS -> [D] acceptance-verifier; check-edit signal; negative control |
| | -> [D] integration-verifier (multi-task, whole-build diff) |
| | FAIL:fixable ==> fix-agent -> re-check |
| | FAIL:escalate -> ESCALATE |
| +---------------------------------------------------------------------------------+ <- ⚡4
| | build complete
| v
| [H/I] /kit:review (single-pass) or [H/I] /kit:review-team
| | ([D] reviewer roster + [D] advisor, in parallel) -> ## Review verdict
| v
| [H/I] /kit:docs ......... [D] doc-verifier -> docs match code
| |
| v
| [H/I] /kit:ship ......... reads ## Review FIRST: alt: DO NOT SHIP = STOP;
| | FIX THEN SHIP = fix, then ship
| | version + changelog + commit + PR <- ⚡1 ⚡2
| | alt: completeness warn+log reviewed here (and at retro)
| v
| [H/I] /kit:retro ........ docs/retro/v<version>.md ==> feeds the next /kit:think
|
+== on ship: ID-NNN drops off the board; CHANGELOG is the canonical shipped record ==============
off-cycle side-flows (attach to the estate, not to one run):
maintainer offshoot .... [H/I] /kit:absorb (Credits drift + seed rescan, proposal-only)
[H/I] /kit:kit-health (self-assessment vs PHILOSOPHY, report)
estate cadence ......... [I] doc-drift (whole-estate doc audit -> fixes on a branch -> PR gate)
[I] topology-drift (registry vs path-index cross-check -> delta re-place -> PR gate)
both Tier 2 ==> [D] audit-scanner (shared read-only evidence pass)
STOP RAIL (the four autonomy stops; the rules code blocks on, each with a test, are in docs/reference/hard-rules.tsv):
⚡1 safety-gate ............ destructive Bash (rm -rf, DROP TABLE, git reset --hard); stands over
EVERY Bash call at ANY point in this picture, not only at ship
⚡2 push-to-main blocker ... push to main/protected branches; plus the ship-gate: no push
without recorded proof/gate ledger entries, and none while the
spec's last ## Review verdict is DO NOT SHIP
⚡3 anti-rationalization ... premature "done", phantom-impl stub, guess-fix while ## Root cause
is empty (Stop hook)
⚡4 verification pipeline .. unmet acceptance criteria / tests that did not run (the EXECUTE
PIPELINE box above IS this stop; command-run, ship-gate checks the record)
Bird's-eye view: who connects to whom. The per-stage diagrams below show sequence; this shows the standing wiring between the four feature kinds and the stores that carry state between commands. Every edge class here is derived from the path index (section 5): [H]/[I]/[E] are the only ways in, [D] is the only command-to-agent edge, and every automated write lands in a store or staging file, never directly on the board.
┌──────────┐ [H] typed command ┌──────────┐ [D] dispatch ┌─────────────────────┐
│ operator │──────────────────────>│ COMMANDS │───────────────────>│ AGENTS │
└──────────┘ │ /kit:* │<───────────────────│ read-only research/ │
┌──────────┐ [I] inferred intent │ │ verdicts, findings │ verify/review lenses│
│ Claude │──────────────────────>└────┬─────┘ │ + write-capable │
│ intent │ │ tool calls │ workers, fix-agent │
└────┬─────┘ │ (Bash, Edit, push, ...) └──────────┬──────────┘
│ [I] auto-fire v │ tool calls
│ ┌────────┐ ┌─────────────────┐<───────────────────────────┘
└─────>│ SKILLS │ │ HOOKS │<──[E]── harness events
└───┬────┘ └────────┬────────┘ (SessionStart, UserPromptSubmit,
│ │ PreToolUse, Stop, SessionEnd, ...)
v v
context injected, audit HARD block (safety-gate, ship-gate, commit-format,
PRs, dashboards, renders secrets-guard, anti-rationalization) or advise,
then the tool call passes through
Commands never hand off in memory; the baton passes through stores on disk.
write read
/kit:assign ──────────> .claude/goals/<draft> ──────────────────> /kit:grill, /kit:spec
/kit:think ───────────> DECISION-BRIEF.md ──────────────────────> /kit:design, /kit:spec
/kit:spec ────────────> docs/specs/SPEC-NNN ────────────────────> /kit:spec-validate, /kit:execute
verifiers + gates ──record──> gate/proof ledgers ───────────────> ship-gate [E, HARD] at push
hooks (harvest,
backlog-stage) ──stage──> staging files ──human promote──> _meta/BACKLOG.md (board)
_meta/BACKLOG.md (board) ───────────────────────────────────────> /kit:start, /kit:assign --next
/kit:retro ───────────> docs/retro/v<version>.md ───────────────> next /kit:think
[E] SessionStart ── context-readiness (spec/board state) + codebase-index (opt-in)
[E] UserPromptSubmit ── context-hints + prose-rag (opt-in) inject before every turn
|
v
[H/I] /kit:start ──> board + telemetry render ──> recommends next command (never executes)
|
v
[H/I] /kit:assign ID-NNN | --next ──> goal draft + scope fence + lane pick
| (advisory lane-floor check: warn, never block)
|-- too foggy ──> [H] /kit:wayfind ──> decision map + typed tickets
| tickets route: grill / prototype / research / task
| map clear ──> /kit:spec or ROADMAP (/kit:mega)
|
v
[H/I] /kit:grill ──> typed interview, one question at a time ──> phase-0 Done=
|
v [D] brief-reviewer critique
[H/I] /kit:think ──> DECISION-BRIEF.md ──┬──> [H/I] /kit:design ──> Solution in brief
| | +── [H/I] /kit:devs-team (5 lenses, report-only)
| +──> [H/I] /kit:prototype ──> spike branch, folds back
v
[H/I] /kit:spec ──> [D] research-architecture + research-context
| + research-pitfalls + research-stack (brownfield, read-only)
v
SPEC-NNN DRAFT ──> [H/I] /kit:spec-validate (7 lenses, 1 blocking verdict on the design record)
| NEEDS-REVISION ──> back to /kit:spec
v
Status: VALIDATED ──> Build
Off-ramp entries that also land in Shape: [H/I] /kit:onboard (first run, orchestrates /kit:adopt + /kit:start + config), [H/I] /kit:adopt (injects the operate-contract into a target repo so the ship-gate engages there).
VALIDATED spec
|
v
[H/I] /kit:test-plan ──> ## Test plan matrix ──> [H/I] /kit:test-plan-review-team
| (6 lenses + bounded revise ──> SOLID)
| ──> [H/I] /kit:test-write ──> [D] test-writer
v
[H/I] /kit:execute (or [H/I] /kit:next, human-paced, same pipeline)
|
| whole-spec pipeline (command-run; ship-gate checks the record):
| [D] builder (data-etl-worker | db-migration-worker | general), one for the spec
| ──> [D] task-verifier, one pass ──PASS──> done (sampled [D] recheck-verifier)
| └─FAIL:fixable──> [D] fix-agent ──> re-verify (max 2) ──> ESCALATE
| end PASS ──> [D] integration-verifier (multi-task) + [D] acceptance-verifier
v
build complete ──> Check (review chain)
Alternate engines off the same trunk:
[H/I] /kit:dispatch ──> N disjoint VALIDATED specs ──> isolated worktree workers
(fix-agent + end verifiers per worker) ──> lead converges ──> /kit:ship
[H/I] /kit:mega ─────> roadmap of 3-8 sub-goals ──> /goal loop per sub-goal
(each runs the spec..ship chain) ──> ship-gate merge per tag
[H/I] /kit:debug ────> off-cycle: Phase 0..4, iron law (no fix without recorded root cause),
3-fix architecture wall ──> verified fix ──> records `debug` gate (root cause only) ──> resume prior state
[H/I] /kit:ui-design ──> UI brief ──> frontend-design skill ──> /kit:visual-team critique
──> [D] fix-agent revise (bounded) ──> SOLID
[H/I] /kit:draft-agent ──> [D] meta-agent draft ──> [D] agent-effectiveness ──> install (--draft stops staged)
Build-support skill: get-api-docs [I] auto-fires before coding against a third-party API.
Build-time hooks: auto-format [E, conv] on every edit; spec-drift-guard [E, adv] on Write.
build complete
|
v
[H/I] /kit:review (single-pass inline) or [H/I] /kit:review-team:
| [D] code-reviewer x2 + security-reviewer + advisor (+ api/frontend/infra/performance
| reviewers when the diff touches their domain) + responding-to-review
| + slop-stripper (behavior-preserving strip pass on the branch diff)
v
## Review verdict ──> [H/I] /kit:docs ──> [D] doc-verifier ──> docs match code
|
v
[H/I] /kit:ship ──> reads ## Review (DO NOT SHIP = stop) ──> version + changelog
| ──> commit ──> PR
| [E] ship-gate HARD: no push onto a default branch; with proof_of_done / lane_gates on, none without recorded proof/gates; and none while the
spec's last ## Review verdict is DO NOT SHIP ([gate] review_verdict)
| [E] safety-gate HARD: push-to-main / force-push / destructive Bash
v
shipped ──> Reflect (/kit:retro)
|
+── [H/I] /kit:greenlight ──> snapshot PR checks ──> real failure: [D] fix-agent, flaky: bounded
| retry ──> one terminal state (report-only; the human merges)
+── [H/I] /kit:wrap ──> board rows + green merges + deploy check + worktree tidy ──> report
On-demand re-verification, read-only, no rebuild:
[H/I] /kit:verify ──> [D] task-verifier + integration-verifier
+ acceptance-verifier + system-verifier ──> verdict only
Escalation lens inside /kit:battery: [D] break-it (advisory; hunts an input the green suite misses).
Ad hoc on any load-bearing claim: [D] claim-verifier ──> HOLDS / REFUTED majority verdict.
Lib verbs on this path: [V] classify floor / lane data / push-refs feed ship-gate; [V] recheck-sample
decide + check-edit feed /kit:execute; [V] spec-depth feeds /kit:spec; [V] stats ceremony + board work
are read-only views; [V] board state-check is the consumer repo's state-drift guard; [V] orchestrate --backend orca is the opt-in /kit:mega backend; [V] adopt pointer
is /kit:adopt's writer.
Ad hoc production alert: [D] devops-triage ──> bounded root-cause verdict (read-only).
Standing Check hooks: secrets-guard [E, HARD], commit-format [E, HARD when [gate] commit_format is on],
board-row-gate [E, HARD: no new board row without board-row-ok], batch-debt-warn [E, adv],
anti-rationalization [E, HARD on Stop while [gate] understanding_gate is on], citation-guard [E, adv; strict mode blocks],
money-gate [E, inert until MONEY_GATE_REPOS], tool-policy-guard [E, wired PreToolUse *
but inert until tool-policy.json exists].
[E] PreCompact ──────> pre-compact-backup + harvest (stage learnings) [conv]
(a host with the harvest sweep active skips the hook; the sweep
reads transcripts on a schedule instead)
[E] PostToolUse * ───> output-offload (oversized output to file) [adv]
[E] SessionStart compact ─> post-compact-reinject (restore rules) [conv]
[E] SessionEnd ──────> backlog-stage (stage work-items)
+ harvest --lab-log (stage LAB_LOG draft) [conv]
[E] SessionStart ────> intake-sweep (via backlog-stage --surface; config-gated no-op) [conv]
[E] Notification ────> notification (desktop notify, async) [conv]
[E] PermissionRequest > permission-auto-approve (read-only ops) [conv]
[E] StatusLine ──────> statusline (HUD render) [conv]
[E] UserPromptSubmit > context-budget (warn once per context threshold) [adv]
[E] every wired event > anchor-root (cd to repo root, then run the hook; --runtime codex|agy|devin normalizes via entry-normalize.jq) [conv]
[I] observe skill ───> control-plane dashboards via lib/bench read-only
[I] stats skill ─────> ledger queries (kit/tide/learned/debt) read-only + one staging write
Every automated Watch path ends at a staging file or a render, never a direct board/ledger write.
shipped
|
v
[H/I] /kit:retro ──> docs/retro/v<version>.md ──> feeds the next /kit:think
|
+── [H/I] /kit:explain ──> literate-diff explainer ──> [H/I] /kit:quiz-gate
| (the ★-tap nudge) ──> engage / defer / wave logged (never must-pass)
+── [H/I] /kit:pitch <rid> ──> buy-in doc from spec + proof + notes + ledger
+── [H/I] /kit:kit-health ──> self-assessment vs PHILOSOPHY (report)
+── [H/I] /kit:absorb ──> Credits drift + seed rescan ──> proposal, human merges
Reflect-side skills (auto-fire [I] unless noted):
doc-drift ──> whole-estate doc audit ──> fixes on a branch ──> PR gate
topology-drift ──> FEATURES.md vs path-index cross-check ──> delta re-placed ──> PR gate
ci-drift ──> workflows, runners, secrets vs live repo ──> fixes on a branch ──> PR gate
repo-hygiene ──> decayed or mis-shelved files, evidence inline ──> PR gate (never deletes)
web-drift ──> public-site agent-readiness ──> rows filed in the site's own repo
gauntlet-proof-audit ──> run records vs their own evidence ──> discrepancy report
(all seven audit skills, incl. backlog-reconcile, dispatch [D] audit-scanner for Tier 2:
read-only evidence, skill applies)
memory-tidy ──> evidence-gated memory audit ──> PR-gated merges/deletions
skill-review [I] ──> reviews staged skill drafts ──> promote or reject
loop-engineering ──> gate + anatomy walkthrough for a proposed loop ──> design hand-off
Staged harvest/backlog output re-enters Shape via board promote (the human gate).
One line per live feature: entry -> ... -> terminal. Grouped by kind; every feature in commands/, agents/, skills/, hooks/ and every # kit-verb: lib verb appears exactly once.
| Path |
|---|
[H/I] /kit:start -> board + telemetry render -> recommendation (never executes) |
[H/I] /kit:onboard -> detect install mode -> orchestrate adopt/start/config -> confirmed writes |
[H/I] /kit:adopt -> inject operate-contract into target repo -> ship-gate engaged there |
[H/I] /kit:assign -> goal draft + lane pick -> grill / think / spec / dispatch / ship per lane |
[H/I] /kit:grill -> typed interview -> phase-0 Done= -> lane routing |
[H] /kit:wayfind (human ONLY) -> decision map + tickets -> /kit:spec or ROADMAP |
[H/I] /kit:think -> brief-reviewer critique -> DECISION-BRIEF.md -> design or spec |
[H/I] /kit:design -> one decision at a time -> Solution in brief -> /kit:spec |
[H/I] /kit:prototype -> spike on prototype/<name> branch -> decision folds into brief/spec |
[H/I] /kit:devs-team -> 5 engineering lenses -> report-only -> feeds /kit:design |
[H/I] /kit:spec -> 4 research agents -> SPEC-NNN DRAFT -> spec-validate or ui-design |
[H/I] /kit:spec-validate -> 7 lenses (1 blocking verdict) -> VALIDATED or back to /kit:spec |
[H/I] /kit:feature-map -> research-features per module (parallel) -> docs/specs/<module>.md + top-level checklist |
[H/I] /kit:test-plan -> coverage matrix -> ## Test plan -> review-team or execute |
[H/I] /kit:test-plan-review-team -> 6 lenses + revise loop -> SOLID verdict -> test-write or execute |
[H/I] /kit:test-write -> test-writer per matrix row -> runnable tests -> /kit:execute |
[H/I] /kit:execute -> builder -> end verifiers (task, integration, acceptance) -> fix-agent (max 2) -> review |
[H/I] /kit:next -> load next undone task -> human-paced, same verification path |
[H/I] /kit:dispatch -> N worktree workers behind disjointness gate -> lead converges -> ship |
[H/I] /kit:mega -> roadmap of 3-8 sub-goals -> /goal loop each -> ship-gate merge per tag |
[H/I] /kit:debug -> Phase 0..4 under the iron law -> verified fix -> records the debug gate (root cause only) -> resume prior state |
[H/I] /kit:review -> single-pass paranoid review -> verdict -> docs or back to execute/spec |
[H/I] /kit:review-team -> reviewer roster + advisor in parallel -> ## Review -> /kit:docs |
[H/I] /kit:visual-team -> 5 design lenses -> report-only verdict |
[H/I] /kit:ui-design -> brief -> frontend-design skill -> visual-team -> fix-agent revise -> SOLID |
[H/I] /kit:docs -> diff code vs every doc -> doc-verifier -> /kit:ship |
[H/I] /kit:verify -> 4 verifiers read-only -> verdict, no rebuild, no fix |
[H/I] /kit:battery -> acceptance-verifier + reviewer lenses + advisor in parallel (fresh context, baseline-aware) -> merged verdict -> lead applies fixes -> gate-ledger records |
[H/I] /kit:explain -> literate-diff explainer -> feeds /kit:quiz-gate |
[H/I] /kit:quiz-gate -> 5 diff-grounded questions -> engage/defer/wave logged (advisory) |
[H/I] /kit:pitch <rid> -> assemble buy-in doc from existing sources -> doc (never fabricates) |
[H/I] /kit:ship -> gate check + version + changelog + PR -> /kit:retro (ship-gate refuses a push on DO NOT SHIP) |
[H/I] /kit:greenlight -> snapshot PR checks via gh -> real vs flaky -> fix-agent (real) / bounded retry (flaky) -> one terminal state (report-only, human merges) |
[H/I] /kit:retro -> capture learnings -> docs/retro/v<version>.md -> feeds next /kit:think |
[H/I] /kit:wrap -> flip board rows + merge green PRs + deploy check + worktree tidy -> skim-first report (distill half on by default) |
[H/I] /kit:draft-agent -> meta-agent -> agent-effectiveness -> install (--draft stops staged) |
[H/I] /kit:gauntlet -> preset/slot confirm -> Tier 1 -> clean-room probe rounds (bounded) -> artifact revised on failure -> SOLID / REVISE / RECONSIDER + run record |
[H/I] /kit:kit-health -> self-assessment vs PHILOSOPHY -> report (terminal) |
[H/I] /kit:absorb -> Credits drift + seed rescan -> proposal-only, human merges |
| Path |
|---|
[D] research-architecture <- /kit:spec -> architecture patterns -> findings return (read-only) |
[D] research-context <- /kit:spec, /kit:test-plan -> quick brownfield orientation, 80-line cap -> findings return |
[D] research-pitfalls <- /kit:spec -> landmine/risk list -> findings return (read-only) |
[D] research-stack <- /kit:spec -> tech-stack map -> findings return (read-only) |
[D] research-features <- /kit:feature-map -> per-module feature inventory (+ parity contract if porting) -> spec file written (read-only) |
[D] brief-reviewer <- /kit:think -> static brief review -> feedback into the brief |
[D] test-writer <- /kit:test-write -> one test case per matrix row -> runnable test code |
[D] data-etl-worker <- /kit:execute (builder, domain=data-etl) -> pipeline build -> end verifiers |
[D] db-migration-worker <- /kit:execute (builder, domain=db-migration) -> migration + rollback -> end verifiers |
[D] meta-agent <- /kit:draft-agent -> staged draft -> command promotes |
[D] break-it <- /kit:battery (behavioral diff with green tests) -> input or call sequence the suite does not constrain -> advisory findings (read-only, never writes a test) |
[D] ui-acceptance-verifier <- /kit:battery (UI diff with a preview URL and a lead-written scenario file) -> runner drives the preview through the acceptance criteria -> per-criterion PASS, FAIL or NO-CHECK verdict (read-only, never writes a scenario) |
[D] slop-stripper <- /kit:review-team -> behavior-preserving AI-slop strip on the branch diff -> surgical edits |
[D] devops-triage <- on demand, no command dispatches it -> alert + Workers Logs + git around the deploy sha -> bounded root-cause verdict (read-only) |
[D] task-verifier <- /kit:execute, /kit:verify -> AC check -> PASS / FAIL:fixable / FAIL:escalate |
[D] fix-agent <- execute, dispatch, debug, test-write, ui-design, verify -> scoped fix -> re-verify |
[D] integration-verifier <- /kit:execute (multi-task), /kit:verify -> wiring check -> review |
[D] recheck-verifier <- /kit:execute (sampled) -> fresh-context re-audit of a PASS -> advisory record |
[D] audit-scanner <- the seven audit-loop skills: backlog-reconcile, ci-drift, doc-drift, gauntlet-proof-audit, repo-hygiene, topology-drift, web-drift (Tier 2) -> per-item verdicts with quoted evidence -> findings return (read-only) |
[D] claim-verifier <- any command, ad hoc -> N-skeptic panel -> HOLDS / REFUTED verdict |
[D] code-reviewer <- review-team, devs-team, visual-team -> focused lens -> findings merged |
[D] security-reviewer <- /kit:review-team -> OWASP-style audit -> findings merged |
[D] api-reviewer <- /kit:review-team (API diffs) -> contract lens -> findings merged |
[D] frontend-reviewer <- /kit:review-team (UI diffs) -> a11y lens -> findings merged |
[D] infra-reviewer <- /kit:review-team (infra diffs) -> deploy/IaC lens -> findings merged |
[D] performance-reviewer <- /kit:review-team (perf diffs) -> hot-path lens -> findings merged |
[D] advisor <- review-team, spec, battery, mega at the final boundary -> additive findings |
[D] responding-to-review <- /kit:review-team -> verify findings, push back -> proposed fixes |
[D] agent-effectiveness <- /kit:draft-agent (diff-keyed) -> 4-lens validation -> advisory |
[D] doc-verifier <- /kit:docs -> docs-vs-code check -> PASS/FAIL back to /kit:docs |
[D] acceptance-verifier <- /kit:verify -> executes spec ## Verification -> verdict |
[D] system-verifier <- /kit:verify --full (only on request) -> whole project suite -> verdict |
| Path |
|---|
[I] backlog-reconcile -> refusal guard -> _meta/BACKLOG.md row audit (Target-artifact + Status vs the spec's own Status: header, or git-log for tiny rows) -> fixes on a branch -> PR gate (terminal: merged PR) |
[I] doc-drift -> whole-estate doc audit -> fixes on a branch -> PR gate (terminal: merged PR) |
[I] topology-drift -> registry freshness gate -> FEATURES.md vs path index both directions -> delta re-placed on topology -> PR gate |
[I] ci-drift -> whole-estate CI audit (workflows, runners, secrets, release checks) -> fixes on a branch -> PR gate (terminal: merged PR) |
[I] repo-hygiene -> whole-repo decay audit -> findings with inline evidence, surfaces never deletes -> PR gate (terminal: merged PR) |
[I] web-drift -> live public-site agent-readiness audit -> verdicts with evidence -> rows filed in the repo that builds the site (terminal: filed rows) |
[I] gauntlet-proof-audit -> each gauntlet run record vs its own persisted evidence -> discrepancy report, never re-runs a probe or rewrites a record (terminal: report) |
[I] get-api-docs -> fetch curated API docs -> grounded coding (terminal: context injected) |
[I] loop-engineering -> gate + anatomy walkthrough -> design handed to the loop builder |
[I] memory-tidy -> evidence-gated memory audit -> PR-gated merges/deletions |
[I] observe -> control-plane query/render via lib/bench -> read-only dashboard |
[I] skill-review -> review staged drafts -> promote to ~/.claude/skills/ or reject |
[I] stats -> ledger query -> reply or Artifact; anomalies --propose stages one candidate |
[I] system-design -> docs/SYSTEM-DESIGN.md kept per feature -> UML drawing set with the delta marked new / changed / removed -> Artifact for design review |
| Path |
|---|
[E] SessionStart -> context-readiness -> inject spec/board state + next step (adv, terminal) |
[E] SessionStart -> codebase-index -> background indexing, opt-in (conv, terminal) |
[E] SessionStart / backlog-stage --surface -> intake-sweep -> staging file (conv, config-gated) |
[E] UserPromptSubmit -> context-hints -> temporal + keyword skill hints (conv, terminal) |
[E] UserPromptSubmit -> prose-rag -> prior-note injection, opt-in PROSE_RAG_INJECT=1 (conv) |
[E] UserPromptSubmit -> context-budget -> warn once per threshold as live context passes an absolute token budget (adv, terminal) |
[E] PreToolUse Bash -> safety-gate -> HARD block destructive Bash / push-to-main / force-push |
[E] PreToolUse Bash -> ship-gate -> HARD block a push onto a default branch; with proof_of_done / lane_gates on, ship without recorded proof/gates |
[E] PreToolUse Bash -> commit-format -> HARD block non-conventional commit subjects (when [gate] commit_format is on) |
[E] PreToolUse Bash -> board-row-gate -> HARD block a commit that adds a new board row without a board-row-ok line |
[E] PreToolUse Bash -> batch-debt-warn -> warn on a second PR merge with no lane START in the ledger (adv, terminal) |
[E] PreToolUse Read/Edit/Bash -> secrets-guard -> HARD block secret-file reads |
[E] PreToolUse Write -> spec-drift-guard -> warn on files the active spec never mentions (adv) |
[E] PreToolUse Edit/Write/MultiEdit -> money-gate -> log money-file edits; ask to confirm only with MONEY_GATE_STRICT (inert by default) |
[E] PreToolUse * -> tool-policy-guard -> allow/ask/deny per domain (inert until tool-policy.json) |
[E] PostToolUse Write/Edit -> auto-format -> idempotent formatting (conv, terminal) |
[E] PostToolUse * -> output-offload -> oversized output to file + nudge (adv, terminal) |
[E] SessionStart compact -> post-compact-reinject -> restore stripped rules (conv, terminal) |
[E] PreCompact -> pre-compact-backup -> session snapshot (conv, terminal) |
[E] PreCompact + SessionEnd --lab-log -> harvest -> staged learnings / LAB_LOG draft (conv) |
[E] Stop -> anti-rationalization -> HARD block premature "done" / guess-fix (while [gate] understanding_gate is on) |
[E] Stop -> slop-cleaner -> suggest long-session code trims (adv, terminal) |
[E] Stop -> citation-guard -> flag hallucinated file:line (adv; CITATION_GUARD_STRICT=1 blocks) |
[E] SessionEnd -> backlog-stage -> stage work-items to staging file, never the board (conv) |
[E] Notification -> notification -> desktop notify, async (conv, terminal) |
[E] PermissionRequest -> permission-auto-approve -> auto-approve read-only ops (conv, terminal) |
[E] StatusLine -> statusline -> HUD render (conv, terminal) |
[E] every wired event, wrapper -> anchor-root -> cd to repo or worktree root, then run the named hook; --runtime codex|agy|devin normalizes input via entry-normalize.jq and invokes the 12 shared guards (conv, terminal) |
| Path |
|---|
[V] adopt pointer -> lib/adopt.sh injects AGENTS.md pointer + proof marker + CLAUDE.md loader -> hash-safe, idempotent (terminal: adopted repo) |
[V] board work -> lib/board/work.sh joins board rows, mega sub-goals, git, Orca terminals, ledger rung -> one table of who is on what (read-only) |
[V] board state-check -> lib/board/state_check.py reads the repo's own registry and its stored values -> report, block new drift at commit, or repair projection rows (read-only unless --fix) |
[V] check-edit -> lib/gate/check-edit.sh diffs the build against a base ref -> did the build weaken the checks the spec names (execute signal) |
[V] classify floor -> lib/classify/lane-classify.sh reads the diff -> full on a hard path, else the size floor (feeds ship-gate) |
[V] classify risk -> lib/classify/lane-classify.sh scores task + files -> full or the chosen lane (advisory) |
[V] flick -> lib/decide/flick.sh sends a pick-one-of-N request to a decision API -> JSON answers, shadow-only, fails open, always exit 0 (wrap step 7b candidate slugs) |
[V] lane data -> lib/gate/lane-data.sh reads [lane.<name>] and [lanes] from kit.toml -> lane plan for gate-ledger and classifier |
[V] orchestrate --backend orca -> lib/queue/orca-backend.sh maps sub-goals to Orca Tasks + supervised workers -> state read live (opt-in mega backend) |
[V] push-refs -> lib/gate/push-refs.sh parses a shell command -> which refs it pushes (ship-gate fail-closed input) |
[V] recheck-sample decide -> lib/gate/recheck-sample.sh keys on the rid -> sampled or skipped, recorded in the run ledger (execute recheck) |
[V] spec-depth -> lib/spec/spec-depth.sh reads the spec's Depth line -> level / wants / check (spec-validate, execute) |
[V] stats ceremony -> lib/stats ceremony lens over kit_gates -> per-gate ran/override/skipped/caught (read-only via bin/stats) |
- Re-derive the backbone from the live tree: enumerate
commands/,agents/,skills/*/SKILL.md,hooks/*.shbyls, never trust a doc's count). - Take stage grouping from
## The five stagesabove (derived fromlib/config/module-registry.md); take flow shapes fromdocs/WORKFLOW.md"Flow and loop reference"; take rules and precedence fromdocs/WORKFLOW.md(canonical; it wins on any disagreement). - Take hook events from
hooks/hooks.jsonand rootsettings.json(same wiring, two install paths;statuslinerides thestatusLinekey, not a hook event). Live wiring wins over any doc claim: this pass foundtool-policy-guardwired at PreToolUse*in both files although the trigger map called it unwired; it stays inert until atool-policy.jsonexists. - Every live feature gets exactly one line in section 5; verify with
ls commands/*.md agents/*.md skills/*/SKILL.md hooks/*.sh | wc -lagainst the index line count (derive the number, never hardcode it here). - Re-derive the System topology (section 3) from the finished path index: the
[H]/[I]/[E]/[D]marks give the actor and dispatch edges; the store hand-offs come from each path's write target and the command that reads it next. Invent no edge the index does not show. - Re-derive the Flow topology (section 2) from
docs/WORKFLOW.md's "Flow and loop reference" census (the backbone, the 5 lanes, the 3 bounded loops + amend micro-loop, the side-flows, the 7 alternate flows, the 4 hard stops) laid onto one connected picture, withdocs/WORKFLOW.mdwinning on any disagreement. Where the picture must simplify, point at the section carrying the detail instead of distorting.