@cbartens/bkit 5.5.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bkit/README.md +30 -20
- package/.bkit/core/.agents/docs.md +1 -0
- package/.bkit/core/.agents/rules.md +51 -26
- package/.bkit/core/.bkit/README.md +29 -19
- package/.bkit/core/.bkit/authoring.md +117 -0
- package/.bkit/core/.bkit/cloud.md +11 -11
- package/.bkit/core/.bkit/comparison.md +5 -5
- package/.bkit/core/.bkit/install.md +20 -20
- package/.bkit/core/.bkit/jsonl.md +202 -122
- package/.bkit/core/.bkit/lite.md +1 -1
- package/.bkit/core/.bkit/pipeline.md +49 -52
- package/.bkit/core/.bkit/prompts.md +106 -167
- package/.bkit/core/.bkit/providers.md +29 -32
- package/.bkit/core/.bkit/templates.md +44 -18
- package/.bkit/core/.bkit/trackers.md +60 -28
- package/.bkit/core/.bkit/workflows.md +399 -359
- package/.bkit/core/AGENTS.md +16 -22
- package/.bkit/core/docs/templates/bkit-audit-accessibility.md +14 -38
- package/.bkit/core/docs/templates/bkit-audit-adoption.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-agents.md +19 -43
- package/.bkit/core/docs/templates/bkit-audit-aio-seo.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-analytics.md +14 -38
- package/.bkit/core/docs/templates/bkit-audit-annotations.md +11 -35
- package/.bkit/core/docs/templates/bkit-audit-app-performance.md +15 -39
- package/.bkit/core/docs/templates/bkit-audit-app-store.md +12 -36
- package/.bkit/core/docs/templates/bkit-audit-architecture.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-ci-performance.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-config.md +18 -42
- package/.bkit/core/docs/templates/bkit-audit-cost.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-coverage.md +15 -39
- package/.bkit/core/docs/templates/bkit-audit-database.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-dead-code.md +15 -39
- package/.bkit/core/docs/templates/bkit-audit-deferrals.md +15 -38
- package/.bkit/core/docs/templates/bkit-audit-dependencies.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-documentation.md +11 -35
- package/.bkit/core/docs/templates/bkit-audit-duplication.md +18 -42
- package/.bkit/core/docs/templates/bkit-audit-failures.md +13 -37
- package/.bkit/core/docs/templates/bkit-audit-flakes.md +12 -36
- package/.bkit/core/docs/templates/bkit-audit-gates.md +14 -38
- package/.bkit/core/docs/templates/bkit-audit-issues.md +15 -39
- package/.bkit/core/docs/templates/bkit-audit-llm.md +16 -40
- package/.bkit/core/docs/templates/bkit-audit-logs.md +14 -38
- package/.bkit/core/docs/templates/bkit-audit-models.md +12 -36
- package/.bkit/core/docs/templates/bkit-audit-privacy.md +12 -36
- package/.bkit/core/docs/templates/bkit-audit-prompts.md +15 -39
- package/.bkit/core/docs/templates/bkit-audit-red-team.md +15 -39
- package/.bkit/core/docs/templates/bkit-audit-reliability.md +15 -39
- package/.bkit/core/docs/templates/bkit-audit-repo.md +12 -36
- package/.bkit/core/docs/templates/bkit-audit-security.md +13 -37
- package/.bkit/core/docs/templates/bkit-audit-slop.md +14 -38
- package/.bkit/core/docs/templates/bkit-audit-testing.md +12 -36
- package/.bkit/core/docs/templates/bkit-audit-usability.md +16 -40
- package/.bkit/core/docs/templates/bkit-plan.md +97 -226
- package/.bkit/core/engine/checks/after/ci-yml.ts +39 -30
- package/.bkit/core/engine/checks/after/github.ts +101 -72
- package/.bkit/core/engine/checks/after/index.ts +10 -12
- package/.bkit/core/engine/checks/after/suppression.ts +8 -5
- package/.bkit/core/engine/checks/after/tools.ts +47 -92
- package/.bkit/core/engine/checks/before/env.ts +2 -2
- package/.bkit/core/engine/checks/before/files.ts +5 -4
- package/.bkit/core/engine/checks/before/index.ts +18 -1
- package/.bkit/core/engine/checks/before/repo.ts +168 -2
- package/.bkit/core/engine/checks/tips/catalogue.ts +16 -5
- package/.bkit/core/engine/checks/tips/detect.ts +34 -0
- package/.bkit/core/engine/checks/tips/index.ts +10 -7
- package/.bkit/core/engine/cli.ts +20 -53
- package/.bkit/core/engine/commands/analysis.ts +171 -140
- package/.bkit/core/engine/commands/ci/ci.ts +6 -6
- package/.bkit/core/engine/commands/comply.ts +77 -103
- package/.bkit/core/engine/commands/install/doctor.ts +2 -2
- package/.bkit/core/engine/commands/install/install.ts +57 -18
- package/.bkit/core/engine/commands/install/uninstall.ts +65 -28
- package/.bkit/core/engine/commands/land.ts +18 -12
- package/.bkit/core/engine/commands/lib.ts +79 -17
- package/.bkit/core/engine/commands/registry.ts +4 -0
- package/.bkit/core/engine/commands/setup/setup.ts +7 -7
- package/.bkit/core/engine/commands/stats.ts +204 -0
- package/.bkit/core/engine/commands/tips.ts +10 -5
- package/.bkit/core/engine/commands/workflow/branches.ts +741 -62
- package/.bkit/core/engine/commands/workflow/challenge.ts +673 -0
- package/.bkit/core/engine/commands/workflow/context.ts +853 -29
- package/.bkit/core/engine/commands/workflow/counters.ts +267 -84
- package/.bkit/core/engine/commands/workflow/decisions.ts +541 -0
- package/.bkit/core/engine/commands/workflow/disk.ts +2 -2
- package/.bkit/core/engine/commands/workflow/fids.ts +793 -33
- package/.bkit/core/engine/commands/workflow/issues.ts +427 -105
- package/.bkit/core/engine/commands/workflow/ledgers.ts +884 -27
- package/.bkit/core/engine/commands/workflow/locks.ts +26 -2
- package/.bkit/core/engine/commands/workflow/plan-blocks.ts +582 -0
- package/.bkit/core/engine/commands/workflow/plan-versions.ts +21 -0
- package/.bkit/core/engine/commands/workflow/prs.ts +166 -30
- package/.bkit/core/engine/commands/workflow/repo.ts +59 -7
- package/.bkit/core/engine/commands/workflow/roadmap.ts +16 -7
- package/.bkit/core/engine/commands/workflow/run-facts.ts +501 -0
- package/.bkit/core/engine/commands/workflow/runs.ts +179 -49
- package/.bkit/core/engine/commands/workflow/runtime.ts +22 -1
- package/.bkit/core/engine/commands/workflow/status.ts +142 -29
- package/.bkit/core/engine/commands/workflow/step-table.ts +339 -0
- package/.bkit/core/engine/commands/workflow/steps.ts +213 -88
- package/.bkit/core/engine/commands/workflow/summary.ts +398 -0
- package/.bkit/core/engine/commands/workflow/tests.ts +1013 -148
- package/.bkit/core/engine/commands/workflow/tracker.ts +1195 -0
- package/.bkit/core/engine/commands/workflow/workflows.ts +984 -207
- package/.bkit/core/engine/commands/workflow/workstreams.ts +11 -5
- package/.bkit/core/engine/commands/workflow/worktrees.ts +276 -22
- package/.bkit/core/engine/install/manifest.ts +11 -9
- package/.bkit/core/engine/install/modules/cloud.ts +21 -13
- package/.bkit/core/engine/install/modules/core.ts +325 -7
- package/.bkit/core/engine/install/modules/opencode.ts +2 -2
- package/.bkit/core/engine/install/version-file.ts +6 -2
- package/.bkit/core/engine/ledgers/migrate.ts +92 -0
- package/.bkit/core/engine/ledgers/status.ts +92 -15
- package/.bkit/core/engine/ledgers/telemetry.ts +1261 -254
- package/.bkit/core/engine/render/hosts.ts +4 -0
- package/.bkit/core/engine/render/models.ts +12 -0
- package/.bkit/core/engine/shared/branches.ts +4 -1
- package/.bkit/core/engine/shared/egress.ts +7 -0
- package/.bkit/core/engine/shared/json.ts +25 -7
- package/.bkit/core/engine/shared/settings.ts +202 -33
- package/.bkit/core/engine/shared/text.ts +361 -0
- package/.bkit/core/engine/tools/grammar-density.ts +215 -0
- package/.bkit/core/engine/tools/instructions-sources.ts +834 -0
- package/.bkit/core/engine/tools/instructions.ts +1751 -0
- package/.bkit/core/hooks/gateguard-engine.js +24 -23
- package/.bkit/core/hooks/guardrails-shell.js +2 -3
- package/.bkit/core/hooks/guardrails-tiers.js +7 -1
- package/.bkit/core/hooks/readguard-engine.js +2 -2
- package/.bkit/core/prompts/bkit-audit-generate.md +62 -25
- package/.bkit/core/prompts/bkit-build-challenge-1.md +40 -17
- package/.bkit/core/prompts/bkit-build-challenge-2.md +44 -17
- package/.bkit/core/prompts/bkit-build-install-skills.md +26 -13
- package/.bkit/core/prompts/bkit-build-plan-convert.md +74 -0
- package/.bkit/core/prompts/bkit-build-plan-current.md +26 -13
- package/.bkit/core/prompts/bkit-build-plan-execute.md +74 -26
- package/.bkit/core/prompts/bkit-build-plan-gaps-remediate.md +64 -23
- package/.bkit/core/prompts/bkit-build-plan-verify.md +57 -33
- package/.bkit/core/prompts/bkit-debug-abort-handover.md +30 -14
- package/.bkit/core/prompts/bkit-debug-failure-diagnose.md +34 -14
- package/.bkit/core/prompts/bkit-debug-failure-remediate.md +34 -17
- package/.bkit/core/prompts/bkit-debug-failure-reproduce.md +26 -13
- package/.bkit/core/prompts/bkit-debug-failure-soak.md +31 -16
- package/.bkit/core/prompts/bkit-design-brainstorm-ideate-1.md +21 -11
- package/.bkit/core/prompts/bkit-design-brainstorm-ideate-2.md +20 -11
- package/.bkit/core/prompts/bkit-design-brainstorm-ideate-3.md +20 -11
- package/.bkit/core/prompts/bkit-design-generate.md +33 -13
- package/.bkit/core/prompts/bkit-design-organise.md +25 -12
- package/.bkit/core/prompts/bkit-design-review-1.md +31 -15
- package/.bkit/core/prompts/bkit-design-review-2.md +28 -13
- package/.bkit/core/prompts/bkit-design-spike.md +30 -13
- package/.bkit/core/prompts/bkit-design-update.md +33 -19
- package/.bkit/core/prompts/bkit-plan-generate.md +75 -19
- package/.bkit/core/prompts/bkit-plan-review-1.md +50 -27
- package/.bkit/core/prompts/bkit-plan-review-2.md +59 -28
- package/.bkit/core/prompts/bkit-plan-scope-check.md +109 -0
- package/.bkit/core/prompts/bkit-plan-update.md +61 -24
- package/.bkit/core/prompts/bkit-ship-conflict-resolve.md +27 -15
- package/.bkit/core/prompts/bkit-ship-deferred-sweep.md +31 -16
- package/.bkit/core/prompts/bkit-ship-update-docs.md +30 -15
- package/.bkit/core/prompts/bkit-utility-compress-markdown.md +24 -14
- package/.bkit/core/prompts/bkit-utility-update-decisions.md +32 -14
- package/.bkit/core/prompts/bkit-utility-update-deferrals.md +29 -14
- package/.bkit/core/prompts/bkit-utility-update-documentation.md +28 -13
- package/.bkit/core/prompts/bkit-utility-update-failures.md +31 -14
- package/.bkit/core/prompts/bkit-utility-update-knowledge.md +33 -14
- package/.bkit/core/prompts/bkit-utility-update-roadmap.md +38 -17
- package/.bkit/core/prompts/bkit-utility-update-tracker.md +43 -20
- package/.bkit/core/workflows/bkit-auto.md +54 -46
- package/.bkit/core/workflows/bkit-build.md +577 -458
- package/.bkit/core/workflows/bkit-debug.md +348 -333
- package/.bkit/core/workflows/bkit-design.md +201 -237
- package/.bkit/core/workflows/bkit-plan.md +210 -321
- package/.bkit/core/workflows/bkit-ship.md +328 -278
- package/.bkit/shared/.bkit/.env.example +2 -2
- package/.bkit/shared/.claude/settings.json +11 -0
- package/.bkit/shared/.cursor/mcp.json +1 -1
- package/.bkit/shared/.cursor/rules/bkit-rules.mdc +1 -1
- package/.bkit/shared/.gitattributes +1 -1
- package/.bkit/shared/.mcp.json +1 -1
- package/.bkit/shared/.opencode/opencode.json +11 -0
- package/.bkit/shared/CLAUDE.md +2 -2
- package/.bkit/shared/GEMINI.md +2 -2
- package/.bkit/shared/docs/architecture.md +1 -1
- package/.bkit/shared/docs/data-schema.md +1 -1
- package/.bkit/shared/docs/deployments.md +16 -28
- package/.bkit/shared/docs/design.md +1 -1
- package/.bkit/shared/docs/noise.md +1 -1
- package/.bkit/shared/docs/observability.md +2 -2
- package/.bkit/shared/docs/security.md +1 -1
- package/.bkit/shared/docs/setup.md +1 -1
- package/.bkit/shared/docs/technology.md +1 -1
- package/.bkit/shared/docs/testing.md +27 -10
- package/.bkit/templates/.claude/hooks/bkit-cloud-bootstrap.sh +1 -1
- package/.bkit/templates/.github/ISSUE_TEMPLATE/bkit-change.yml +26 -5
- package/.bkit/templates/.github/workflows/bkit-ci.yml +22 -84
- package/.bkit/templates/.github/workflows/bkit-cloud.yml +21 -19
- package/.bkit/templates/.husky/pre-push +52 -13
- package/.bkit/templates/.prettierignore +7 -0
- package/.bkit/templates/scripts/ci/bkit-local-stack-lock.sh +194 -0
- package/.bkit/templates/scripts/ci/check-capstone.mjs +2 -4
- package/.bkit/templates/scripts/ci/check-capstone.test.mjs +4 -23
- package/.bkit/templates/scripts/ci/lanes/resolve-push-base.mjs +104 -23
- package/.bkit/templates/scripts/ci/lanes/resolve-push-base.test.mjs +103 -6
- package/.bkit/templates/scripts/cleanup/bkit-disk-prune.mjs +1 -1
- package/.bkit/templates/scripts/graphify/bkit-graph-pre-push.sh +3 -1
- package/.bkit/templates/scripts/prettier/bkit-insert-ignore.mjs +49 -29
- package/CHANGELOG.md +142 -0
- package/README.md +58 -34
- package/dist/checks/after/ci-yml.js +39 -29
- package/dist/checks/after/github.js +99 -72
- package/dist/checks/after/index.js +11 -13
- package/dist/checks/after/suppression.js +8 -5
- package/dist/checks/after/tools.js +40 -83
- package/dist/checks/before/env.js +2 -2
- package/dist/checks/before/files.js +5 -3
- package/dist/checks/before/index.js +15 -2
- package/dist/checks/before/repo.js +163 -2
- package/dist/checks/tips/catalogue.js +14 -5
- package/dist/checks/tips/detect.js +32 -0
- package/dist/checks/tips/index.js +7 -5
- package/dist/cli.js +19 -47
- package/dist/commands/analysis.js +109 -100
- package/dist/commands/ci/ci.js +6 -6
- package/dist/commands/comply.js +54 -91
- package/dist/commands/install/doctor.js +2 -2
- package/dist/commands/install/install.js +50 -19
- package/dist/commands/install/uninstall.js +59 -28
- package/dist/commands/land.js +16 -12
- package/dist/commands/lib.js +51 -16
- package/dist/commands/registry.js +4 -0
- package/dist/commands/setup/setup.js +7 -7
- package/dist/commands/stats.js +136 -0
- package/dist/commands/tips.js +7 -3
- package/dist/commands/workflow/branches.js +656 -56
- package/dist/commands/workflow/challenge.js +556 -0
- package/dist/commands/workflow/context.js +709 -30
- package/dist/commands/workflow/counters.js +208 -75
- package/dist/commands/workflow/decisions.js +441 -0
- package/dist/commands/workflow/disk.js +2 -2
- package/dist/commands/workflow/fids.js +689 -33
- package/dist/commands/workflow/issues.js +362 -99
- package/dist/commands/workflow/ledgers.js +762 -27
- package/dist/commands/workflow/locks.js +24 -2
- package/dist/commands/workflow/plan-blocks.js +437 -0
- package/dist/commands/workflow/plan-versions.js +22 -0
- package/dist/commands/workflow/prs.js +142 -32
- package/dist/commands/workflow/repo.js +52 -7
- package/dist/commands/workflow/roadmap.js +9 -7
- package/dist/commands/workflow/run-facts.js +426 -0
- package/dist/commands/workflow/runs.js +144 -43
- package/dist/commands/workflow/runtime.js +12 -1
- package/dist/commands/workflow/status.js +130 -29
- package/dist/commands/workflow/step-table.js +276 -0
- package/dist/commands/workflow/steps.js +171 -80
- package/dist/commands/workflow/summary.js +275 -0
- package/dist/commands/workflow/tests.js +834 -136
- package/dist/commands/workflow/tracker.js +983 -0
- package/dist/commands/workflow/workflows.js +834 -195
- package/dist/commands/workflow/workstreams.js +11 -5
- package/dist/commands/workflow/worktrees.js +221 -22
- package/dist/install/manifest.js +11 -9
- package/dist/install/modules/cloud.js +22 -13
- package/dist/install/modules/core.js +326 -7
- package/dist/install/modules/opencode.js +2 -2
- package/dist/install/version-file.js +6 -2
- package/dist/ledgers/migrate.js +81 -0
- package/dist/ledgers/status.js +61 -8
- package/dist/ledgers/telemetry.js +905 -124
- package/dist/render/hosts.js +4 -0
- package/dist/render/models.js +12 -0
- package/dist/shared/branches.js +3 -1
- package/dist/shared/egress.js +7 -0
- package/dist/shared/json.js +20 -7
- package/dist/shared/settings.js +147 -26
- package/dist/shared/text.js +333 -0
- package/dist/tools/grammar-density.js +183 -0
- package/dist/tools/instructions-sources.js +721 -0
- package/dist/tools/instructions.js +1579 -0
- package/package.json +114 -23
- package/.bkit/core/engine/commands/harvest.ts +0 -459
- package/.bkit/core/engine/tools/wording.ts +0 -748
- package/.bkit/core/prompts/bkit-build-challenge-reconcile.md +0 -69
- package/.bkit/core/prompts/bkit-build-challenge-remediate.md +0 -71
- package/.bkit/core/prompts/bkit-build-challenge-tests.md +0 -74
- package/.bkit/core/prompts/bkit-build-summary.md +0 -94
- package/.bkit/core/prompts/bkit-debug-summary.md +0 -96
- package/.bkit/core/prompts/bkit-design-summary.md +0 -107
- package/.bkit/core/prompts/bkit-plan-complexity-check.md +0 -67
- package/.bkit/core/prompts/bkit-plan-complexity-split.md +0 -88
- package/.bkit/core/prompts/bkit-plan-review-3.md +0 -93
- package/.bkit/core/prompts/bkit-plan-scope-check-1.md +0 -85
- package/.bkit/core/prompts/bkit-plan-scope-check-2.md +0 -85
- package/.bkit/core/prompts/bkit-plan-summary.md +0 -107
- package/.bkit/core/prompts/bkit-ship-summary.md +0 -78
- package/.bkit/templates/scripts/ci/lanes/check-tree-cache.mjs +0 -138
- package/.bkit/templates/scripts/ci/lanes/check-tree-cache.test.mjs +0 -181
- package/dist/commands/harvest.js +0 -353
- package/dist/tools/wording.js +0 -680
|
@@ -15,64 +15,9 @@
|
|
|
15
15
|
> - Ships to consumers: describe the current setup only. NEVER an internal identifier (tracker issue number, ledger key, review-finding id) and NEVER project history — decisions belong in `docs/decisions.jsonl`, incidents in `docs/knowledge.jsonl`.
|
|
16
16
|
> - Subagents are leaves, never invoke other subagents.
|
|
17
17
|
> - One row per agent — `Name | Scope | maxTurns | Recommended | Rationale`.
|
|
18
|
+
> - Authoring rules for `.bkit/core/prompts/*.md` → `.bkit/authoring.md`; explanations behind them stay here.
|
|
18
19
|
> - Update when agent tools / effort / step count changes materially.
|
|
19
20
|
|
|
20
|
-
## Prompt Authoring Rules
|
|
21
|
-
|
|
22
|
-
`.bkit/core/prompts/*.md` are AI-only execution surfaces. Every byte is paid on every run.
|
|
23
|
-
|
|
24
|
-
- **These files are their own template:** always `grep .bkit/core/prompts/` for closest existing cases and copy shapes verbatim before inventing wording / formatting (phrasing, plurals, variables, operators, conditionals, bolding, backticks, indentation, line breaks, punctuation, spacing). Match shapes for repeated sections (contract clauses, process steps, output format blocks, verdict mappings). `→` is intentional process glyph, adopt do not convert.
|
|
25
|
-
- **Standalone-runnable:** Works outside any workflow. Inputs via orchestrator-supplied Read paths. Multi-agent coordination: `**Parallel:**` + `**Lens discipline:**` Contract clauses.
|
|
26
|
-
- **Generic Role, specific Process:** `Role:` / `description:` anchor seniority titles ("Senior X", "Veteran X"). Lens behaviour in Process. Sibling lenses may name their lens in `Role:` / `description:`; siblings share seniority anchor. Same-audit diversity pairs (only model differs) → identical `Role:` lines.
|
|
27
|
-
- **Bold in body:** Only the `**Create**` / `**Read**` / `**Update**` I/O markers and the conditional operators (`**If**`, `**Else**`, `**and**`, `**or**`); § `Notation` holds the bold rule. Contract clause labels (`- **Mandate:**`) are the sole addition; bold inside a code span is literal output, not formatting.
|
|
28
|
-
- **Procedural conditionals:** Flow-gating conditional → bold `**If** {condition} → {action}.` (`**Else** → {action}.` for branches), any syntactic shape. Test: reordering reads as "If {X}, {Y}" naturally → it is one. Excludes inline qualifiers (`if any`, `if defined`), dispatch tables (`PASS = …`, `STANDARD → …`), iteration (`For each …`), bash in backticks.
|
|
29
|
-
- **Slash separator:** Alternation slash always spaced — `task / gate`, `CRITICAL / HIGH`. Fixed abbreviations (`I/O`) and anything inside backticks (paths, commands, enum unions) keep the bare form.
|
|
30
|
-
- **Plural for general rules:** Statement covering every case → plural (`ALWAYS read files before edits`, `NEVER fix reported failures`). Singular only for one specific item already named (`write that test`, `each task`).
|
|
31
|
-
- **ASCII operators:** ASCII comparison / logic only — `!=`, `>=`, `<=`, `=>` — and `x` for times / dimensions. never Unicode math glyphs. Flow-arrow `→` in procedural conditionals / dispatch tables is **sole intentional non-ASCII glyph** — uniform documented flow notation (clearer than `->`, overloaded as member-access). Do not convert `→`.
|
|
32
|
-
- **Variable references:** One name, one marker — the marker says who resolves it, and when. `{VAR}` = orchestrator substitutes before the text is used (paths, JSON, commit msgs, Context payloads). `$VAR` = bash expands at run time; it must be assigned in the same fenced block (shell state does not persist between blocks). Model-held value needed inside bash → assign it once at the top of the block (`VERDICT="{VERDICT}"`), then use `$VERDICT` below. `{lower}` / `{plain words}` = free text the writing agent fills in — never asserted non-empty. `{lower.dotted}` = config key read from `package.json`. `{{VAR}}` = install-time token substituted by `bkit install` — distinct, do not unify. `<shape>` inside an output template describes the type of a value (`<integer >= 0>`), not a substitution. **Closed-vocabulary tokens are backticked in prose — names and values alike** (`` `severity` ``, `` `CRITICAL` ``, `` `PASS` ``, `` `DONE` ``): one question, answerable by lookup, not by judging whether a literal is "being compared". Enum sets are one tight backticked union in canonical order (`PASS|CONCERNS|FAIL`) — never spaced slashes or pipes; the spaced-slash rule does not apply inside backticks. Field labels match their own Output format block verbatim, lowercase. Emphasis words stay bare — they are prose, not vocabulary; § `Notation` sets their capitals. **Fenced output-format blocks stay literal** — they are the bytes the agent writes and the orchestrator greps; never add backticks inside them. Operators outside (`VERIFY_ATTEMPT` = 0). never `${VAR}` outside bash fences, except inline shell quoted as an instruction (`OWNER="${OWNER_REPO%/*}"`). Doc section citations name the title only (`docs/templates/bkit-plan.md` § `Open Questions & Assumptions`) — never carry the `##` heading marker.
|
|
33
|
-
- **Output section shape** content drives format:
|
|
34
|
-
- **Short structured fields** (single-phrase values, enum picks, one-sentence answers) → flat bracket: `[Field1 (hint), Field2 (hint), Field3 (hint)]`. One line, comma-separated.
|
|
35
|
-
- **Freeform, multi-finding, or multi-paragraph** (prose, prioritised lists, per-item findings, tables) → own heading + bracketed instruction: `## Section\n\n[Instructions describing what goes here; initially set to PENDING.]`
|
|
36
|
-
- Mixed (short fields + freeform) → H3 sub-headings under one H2; each follows rule above.
|
|
37
|
-
- **Conditionals inside `[…]`** carry the same bold form as procedural conditionals — never a bare `If X: …` or `If X then …`. Two shapes only. **Section gate** (whole section applies only under a verdict) leads, names the field, values bare: ``[**If** `Verdict` = CONCERNS or FAIL → {content}. **Else** → `None`.]``. **Empty case** (section always applies, may have nothing to report) trails: ``[{content}. **If** none → `None`; initially set to PENDING.]``. `→` carries the consequent, so `:` stays free for the per-item breakdown inside `{content}`.
|
|
38
|
-
- **Shape, not rules:** `[…]` states WHAT a section holds — fields, columns, format, empty case, `PENDING` init. Rules deciding content (defaults, allowed / banned values, trace requirements, verdict triggers) live in Process only; never restate them in Output format.
|
|
39
|
-
- **Output Lens line:** Parallel-sibling outputs: one `Lens:` line under H1 (deliverable name). Pattern: `Lens: {Name} — {comma-separated qualifiers}.` or compact `Lens: {field list}.` Single-line, no blank inside; blank line before next heading.
|
|
40
|
-
- **Dense instructions only:** No rationale, commentary, parentheticals explaining why, or inline comments justifying behaviour — one exception: a single reason clause on a hard limit a model would otherwise misread (§ `Notation`). Every byte is paid on every run; explanations, decisions, trade-offs, history and commentary live in `.bkit/prompts.md`.
|
|
41
|
-
- **Banned shapes:** a parenthetical explaining why a clause exists, an inline comment justifying behaviour, a note on what a previous version did.
|
|
42
|
-
- **Cross-prompt alignment:** Check for shared instructions and change in all prompts using them. Rules binding every agent live once in `.agents/rules.md` § `Universal Rules` — reached via the `**Rules:**` EXECUTION PROTOCOL bullet, never copied per prompt.
|
|
43
|
-
- **Shared wording:** sentences shared by 5+ prompts live in `.bkit/wording.md`; change them there, move the old wording to the clause's `retired` block, run `pnpm wording:sync`. never hand-edit one copy.
|
|
44
|
-
- **Self-contained:** every prompt must stand alone; inline all instructions; no file references. Exceptions: `.agents/rules.md`, `.agents/docs.md`, `.bkit/lite.md`, `*.jsonl` ledgers, supplied templates (plan, audit) — those carry their own rules.
|
|
45
|
-
- **Template owns its rules:** prompt filling or auditing a supplied template names the section + ONLY what template lacks (input handling, carry-forward, ledger writes, severity it assigns); never restate template rules. Agent that does not read the template → inline.
|
|
46
|
-
- **Removal = delete:** drop instruction outright; never leave removal explanations.
|
|
47
|
-
- **Enforced elsewhere:** step numbers by `.bkit/core/engine/audits/repo/shipped-docs-refs.test.ts`, the managed-version marker by `.bkit/core/engine/audits/workflows/prompt-notation.test.ts`, shared sentences, the `**Rules:**` bullet, and the `.agents/rules.md` group headings by `.bkit/core/engine/tools/wording.test.ts` — the GateGuard advisory omits them because a test is the gate.
|
|
48
|
-
- **No step numbers:** never cite a step number — this prompt's own, the workflow's, or a supplied template's step / gate. Numbering shifts the moment a step is inserted. Name the action or section instead, or signal through `Verdict` and let the orchestrator route.
|
|
49
|
-
- **Managed-version marker:** Rendered agents get injected `<!-- bkit:managed vX.Y.Z — do not edit; run \`bkit upgrade\` to refresh -->`after frontmatter (one blank line below), stamped at`bkit install`/`upgrade`by`stampManagedVersion`— not in sources. never add version line to source prompt.`bkit check`flags`bkit-managed-stale`on marker drift — hard blocker on`main`/`dev` (or PR into them); advisory on feature branches (inherited drift) — prevents silent outdated prompts on protected branches.
|
|
50
|
-
|
|
51
|
-
### Notation
|
|
52
|
-
|
|
53
|
-
One job per mark; capitals and bold carry one meaning each. Binds `.bkit/core/prompts/*.md`, `.bkit/core/workflows/*.md`, `.bkit/core/.agents/rules.md` and `docs/*.md`; the workflow and docs `Rules` headers point here instead of restating it.
|
|
54
|
-
|
|
55
|
-
<!-- prettier-ignore -->
|
|
56
|
-
| Mark | Its only job |
|
|
57
|
-
| --- | --- |
|
|
58
|
-
| `→` | "then / goes to": the result of a condition, the next step, key to value, or a pointer to a file. A line holding only a jump (`→ Step 11.`) is allowed. |
|
|
59
|
-
| `.` | Ends a statement. It is the only thing that ends an `**If**` condition's scope. |
|
|
60
|
-
| `;` | Adds another instruction under the same rule or the same condition. Also splits lists of `A → B` pairs. |
|
|
61
|
-
| `,` | Separates list items only. never adds a second action after `→` — use `;`. |
|
|
62
|
-
| `:` | Introduces a breakdown or a label (`**Label:**`, `**If** X:` followed by sub-cases). |
|
|
63
|
-
| `—` | Attaches an explanation to the thing just named (term — what it is, step headings, empty table cells). never stands in for "because", "so" or "but": write the word, which costs the same tokens. |
|
|
64
|
-
| `-` | Hyphen for compound words and number ranges (`2-3`). never a dash, never an en dash `–`. |
|
|
65
|
-
| `/` | "Any of these, treated the same". Spaced between words (`build / debug`). Unspaced only in fixed terms (`I/O`, `CI/CD`, `try/catch`), rates (`1/run`) and inside backticks. Closed value sets are one tight backticked union (`DONE\|BLOCKED`), never a spaced slash between separately backticked values. Binds all three folders, not just prompts. |
|
|
66
|
-
| `()` | A short note on the word just before it: its members, a definition, a reference, an example or a scope limit. never a branch (`else …`, `**If**`), never a second instruction, never a reason. If the note needs one of those, it becomes its own sentence. |
|
|
67
|
-
|
|
68
|
-
**Capitals.** A word takes capitals only when it marks a hard limit: an action that is destructive, irreversible or security-sensitive, or a required field / machine-parsed invariant the run cannot proceed without. Closed list: `NEVER`, `ALWAYS`, `MUST`, `ONLY`, `PROHIBITED`. Everything else is lowercase, scope quantifiers and joining words included (`all`, `any`, `every`, `not`, `before`, `once`, `new`). One capitalised word per clause; never inside a label, a parenthetical or a description, never on a joining word.
|
|
69
|
-
|
|
70
|
-
**`NEVER` vs `do not`.** `NEVER` = forbidden everywhere, at all times (a hard limit). `do not` = forbidden in this step. The mixed-case `do NOT` is retired.
|
|
71
|
-
|
|
72
|
-
**Reason clauses.** At most one short reason clause, and only on a hard limit whose boundary a model would otherwise misread or over-apply — the single exception to § `Dense instructions only`. Elsewhere write the rule plainly.
|
|
73
|
-
|
|
74
|
-
**Bold.** Structure only, never emphasis: clause and field labels, conditional operators (`**If**`, `**Else**`, `**and**`, `**or**`), jump targets and terminal markers (`**STOP**`, `**Failure Path**`), and the prompt I/O markers (`**Create**`, `**Read**`, `**Update**`). No italics for emphasis. Bold and capitals together only on stop / route markers.
|
|
75
|
-
|
|
76
21
|
## Frontmatter Conventions
|
|
77
22
|
|
|
78
23
|
```yaml
|
|
@@ -84,6 +29,7 @@ model: <claude-model-id> # explicit Claude model pin (REQUIRED); locks model ind
|
|
|
84
29
|
tools: [Read, Grep, Glob, Write, Edit, Bash, WebFetch, WebSearch]
|
|
85
30
|
permissionMode: acceptEdits # standard for in-pipeline agents — disables mid-run prompts
|
|
86
31
|
maxTurns: <int> # safety cap on agent turns (NOT runtime budget)
|
|
32
|
+
autoCompactWindow: 300000 # Claude-only compaction window; plain integer (`300k` reads as 300, ignored)
|
|
87
33
|
---
|
|
88
34
|
```
|
|
89
35
|
|
|
@@ -92,23 +38,23 @@ maxTurns: <int> # safety cap on agent turns (NOT runtime budget)
|
|
|
92
38
|
<!-- prettier-ignore -->
|
|
93
39
|
| Effort | Claude model | Rationale |
|
|
94
40
|
| --- | --- | --- |
|
|
95
|
-
| `low` | `claude-haiku-5-5` | Default Haiku rung. No agent
|
|
96
|
-
| `medium` | `claude-sonnet-5-5` |
|
|
97
|
-
| `high` | `claude-opus-5-5` |
|
|
98
|
-
| `xhigh` | `claude-opus-5-5` |
|
|
41
|
+
| `low` | `claude-haiku-5-5` | Default Haiku rung. No agent pins Haiku; the tier stays available, with its per-provider pins in § Models (`low` → `high` buys +11.4 CursorBench points for $0.24/task). |
|
|
42
|
+
| `medium` | `claude-sonnet-5-5` | Source modifiers with test loops, single-shot writers, scope audits, light utilities (Anthropic: `medium` for well-specified agentic tasks, `high` for harder or longer ones — a plan task or a diagnosis is well specified). Multi-doc writers pin `claude-sonnet-5-5` at `high`. |
|
|
43
|
+
| `high` | `claude-opus-5-5` | Synthesizers, adversarial review, diagnosis. Highest rung any agent runs at. 1M context. |
|
|
44
|
+
| `xhigh` | `claude-opus-5-5` | Reserved — no agent runs here. Same model ID as `high`; differs by `effort: xhigh` thinking-budget allocation. Escalate from `high` only on a measured quality gain (Anthropic: reserve `xhigh` and `max` for work where you've measured one). |
|
|
99
45
|
| `max` | `claude-opus-5-5` | Same model as `xhigh`; differs by `effort: max` thinking-budget allocation. Reserved tier — escalate from `xhigh` only after observed truncation. |
|
|
100
46
|
|
|
101
47
|
**Fable — not pinned.** `claude-fable-5-1` is the tier above Opus 5.5 ($10/$50 vs $4/$20). Cursor Cloud lists `claude-fable-5-thinking-high`/`-xhigh`. no bkit agent pins Fable. `max` stays on `claude-opus-5-5`.
|
|
102
48
|
|
|
103
49
|
Pinning `model:` locks agent model regardless of orchestrator session. Without pin, subagents inherit session default — `/bkit-plan` from Sonnet silently downgrades every Opus-tier agent.
|
|
104
50
|
|
|
105
|
-
**Effort → host thinking (canonical):** Prompt `effort:` = row key in **Default**. **Keyed on HOST, not provider** — field name + ladder come from the host config format (`effort:` claude/cursor, a `variant:` field opencode, `model_reasoning_effort` codex), not the model → every opencode provider shares the one **OpenCode** column. A provider key here THROWS (axis confusion, not a fallback). Codex ceilings `max`→`xhigh` (no higher rung). Install parses this table — no hardcoded ladders in TS. **opencode columns ceiling out, they do not downshift:** a provider below its tier target spends **more** thinking to close the gap, and can afford to — every non-Claude pin costs $0.03
|
|
51
|
+
**Effort → host thinking (canonical):** Prompt `effort:` = row key in **Default**. **Keyed on HOST, not provider** — field name + ladder come from the host config format (`effort:` claude/cursor, a `variant:` field opencode, `model_reasoning_effort` codex), not the model → every opencode provider shares the one **OpenCode** column. A provider key here THROWS (axis confusion, not a fallback). Codex ceilings `max`→`xhigh` (no higher rung). Install parses this table — no hardcoded ladders in TS. **opencode columns ceiling out, they do not downshift:** a provider below its tier target spends **more** thinking to close the gap, and can afford to — every non-Claude pin costs $0.03-$1.76 per agentic task vs Claude's $2.14-$5.34 (`providers.md` § Agentic-coding parity board). Every rung from `medium` up runs at OpenCode `max`, so no opencode agent thinks below the heavy-thinking setting its board score was measured at. Haiku-tier agents run at `high` (OpenCode `max`): every non-Claude board score was measured with heavy thinking, so the haiku target compares like with like, and haiku-cell pins cost $0.03-$0.11 per task. **Effort and model are independent** — multi-doc writers run `claude-sonnet-5-5` at `high` and the ledger agents run `claude-opus-5-5` at `medium`; the map above is the default model per rung, not a constraint. **Cursor stays identity with Default** — its thinking lever is the model-ID suffix (`cursor-grok-4.5-high`), not `effort:`, so ceiling-out happens at the pin.
|
|
106
52
|
|
|
107
53
|
<!-- prettier-ignore -->
|
|
108
54
|
| Default | Claude | Cursor | OpenCode | Codex | Antigravity |
|
|
109
55
|
| --- | --- | --- | --- | --- | --- |
|
|
110
56
|
| `low` | `low` | `low` | `none` | `low` | `low` |
|
|
111
|
-
| `medium` | `medium` | `medium` | `
|
|
57
|
+
| `medium` | `medium` | `medium` | `max` | `medium` | `medium` |
|
|
112
58
|
| `high` | `high` | `high` | `max` | `high` | `high` |
|
|
113
59
|
| `xhigh` | `xhigh` | `xhigh` | `max` | `xhigh` | `max` |
|
|
114
60
|
| `max` | `max` | `max` | `max` | `xhigh` | `max` |
|
|
@@ -120,11 +66,12 @@ Pinning `model:` locks agent model regardless of orchestrator session. Without p
|
|
|
120
66
|
| --- | --- | --- |
|
|
121
67
|
| `name` | `@name` invocation in `commands/*.md` requires exact match | Never deviate. |
|
|
122
68
|
| `description` | Surfaces in picker and `Agent` tool catalog; one-sentence scope statement only — H1 inside the markdown body carries the deliverable name (`# Build Skills Installed`, `# Plan Review`, etc.). | Keep terse; never duplicate the H1. |
|
|
123
|
-
| `effort` | Maps to a Claude model via the table above, with depth-sensitive
|
|
124
|
-
| `model` | Explicit Claude model pin per the effort mapping table above. Locks the model independent of the orchestrator's session default — without it, subagents inherit user's Claude Code default and
|
|
69
|
+
| `effort` | Maps to a Claude model via the table above, with two groups pinning opus at `medium` effort — a depth-sensitive lens (`bkit-plan-scope-check`) and the ledger / tracker agents that check entries against the codebase — and multi-doc writers pinning sonnet at `high`. Parallel fan-outs (triplet `-1`/`-2`/`-3` for ideate; pairs `-1`/`-2` for design review / plan review / challenge) mix `high`/`medium` effort to spread reasoning depth on Claude. On Cursor, the same fan-outs use different `model:` values for cross-family diversity. | `high` for adversarial / generative / diagnostic / cross-codebase work and multi-doc writers. `medium` for source modifiers with test loops and ledger upkeep. `xhigh` only on a measured quality gain. |
|
|
70
|
+
| `model` | Explicit Claude model pin per the effort mapping table above. Locks the model independent of the orchestrator's session default — without it, subagents inherit user's Claude Code default and Opus thinking depth + 1M context disappear if the user runs Sonnet. | Brittle by version (must update on every model rev), but explicit and discoverable. Never use family alias (`opus` / `sonnet`) — they don't lock context-window variant. |
|
|
125
71
|
| `tools` | Minimum capability sandbox. Enforced on Claude (native). Cursor: `bkit install` T3 transform passes the field through verbatim, but Cursor CLI 2026.10.01 does not enforce it (measured: a `tools: [Read]` subagent still has `Shell`, `Write`, `StrReplace`, and every MCP tool via `CallDynamicTool`). Removing `Edit`/`Bash` makes an agent provably non-mutating on Claude only. | Add `WebFetch`/`WebSearch` only for genuine ecosystem research (`bkit-design-review-1/2`) or to pin a probe against vendor docs before running it (`bkit-design-spike`). |
|
|
126
72
|
| `permissionMode: acceptEdits` | End-to-end runs of `/design`/`/plan`/`/build`/`/debug`/`/ship` would break if mid-workflow prompt blocked an agent. Bash auto-approve surface lives in `.claude/settings.json` (`workflows.md` § Permissions) | Never deviate inside the pipeline; one-off ad-hoc invocations may use stricter modes. |
|
|
127
73
|
| `maxTurns` | Pure runaway-loop safety cap, not a workload budget. 4 tiers (S=50 / M=100 / L=200 / XL=400). Hitting the cap means the agent is definitely stuck (tight retry loop, infinite re-read pattern, etc.), not "tight on a complex run." | Cap by **tier** (see § `maxTurns` calibration). Per-agent assignment in § Models. |
|
|
74
|
+
| `autoCompactWindow: 300000` | Safety net, not the cap: the agent summarises its context at 300k tokens at the latest. Only lowers the window — a lower repo / user setting or `CLAUDE_CODE_AUTO_COMPACT_WINDOW` still wins. Claude Code only; other hosts drop it (`providers.md` § Context compaction). | Never deviate; every `bkit-*` agent carries it (`hosts.test.ts`). |
|
|
128
75
|
|
|
129
76
|
### Effort tiers
|
|
130
77
|
|
|
@@ -132,9 +79,9 @@ Pinning `model:` locks agent model regardless of orchestrator session. Without p
|
|
|
132
79
|
| Tier | Use for | Example agents |
|
|
133
80
|
| --- | --- | --- |
|
|
134
81
|
| `low` | Pure synthesis with no verdict riding on it. | (none currently) |
|
|
135
|
-
| `medium` |
|
|
136
|
-
| `high` |
|
|
137
|
-
| `xhigh` |
|
|
82
|
+
| `medium` | Source modifiers with test loops — implementers and fix executors (sonnet model) — single-shot writers, scope audits, skill curators, and ledger / tracker / roadmap upkeep against the codebase (opus model). | `bkit-design-brainstorm-ideate-2`, `bkit-design-review-2`, `bkit-plan-scope-check`, `bkit-build-plan-convert`, `bkit-build-plan-execute`, `bkit-build-plan-gaps-remediate`, `bkit-build-install-skills`, `bkit-debug-failure-remediate`, `bkit-debug-abort-handover`, `bkit-ship-conflict-resolve`, `bkit-utility-compress-markdown`, `bkit-utility-update-deferrals`, `bkit-utility-update-failures`, `bkit-utility-update-decisions`, `bkit-utility-update-knowledge`, `bkit-utility-update-roadmap`, `bkit-utility-update-tracker` |
|
|
83
|
+
| `high` | Top-of-pipeline synthesizers and their critique mergers, adversarial review, parallel-fan-out high-effort slots, failure diagnosis, observability instrumentation, feasibility research, audits, and multi-doc writers (sonnet model). | `bkit-design-brainstorm-ideate-1`, `bkit-design-brainstorm-ideate-3`, `bkit-design-generate`, `bkit-design-update`, `bkit-design-review-1`, `bkit-design-spike`, `bkit-design-organise`, `bkit-plan-generate`, `bkit-plan-update`, `bkit-plan-review-1`, `bkit-plan-review-2`, `bkit-build-plan-current`, `bkit-build-plan-verify`, `bkit-build-challenge-1`, `bkit-build-challenge-2`, `bkit-debug-failure-diagnose`, `bkit-debug-failure-soak`, `bkit-debug-failure-reproduce`, `bkit-ship-deferred-sweep`, `bkit-ship-update-docs`, `bkit-audit-generate`, `bkit-utility-update-documentation` |
|
|
84
|
+
| `xhigh` | Reserved — only on a measured quality gain over `high` for a recurring failure mode. Model-gated (Opus-only on current models). A stuck bug goes to Fable by hand (§ Orchestrators), not to an `xhigh` agent. | (none currently) |
|
|
138
85
|
| `max` | Reserved — only if `xhigh` proves insufficient on a recurring failure mode. Costliest tier; one-shot orchestrator-level work only. Lazy-escalate from `xhigh` based on observed truncation, never preemptively. | (none currently) |
|
|
139
86
|
|
|
140
87
|
### Tool set patterns
|
|
@@ -142,17 +89,17 @@ Pinning `model:` locks agent model regardless of orchestrator session. Without p
|
|
|
142
89
|
<!-- prettier-ignore -->
|
|
143
90
|
| Pattern | Tools | Agents |
|
|
144
91
|
| --- | --- | --- |
|
|
145
|
-
|
|
|
146
|
-
| Read-only reviewer | `Read, Grep, Glob, Write` | `bkit-design-brainstorm-ideate
|
|
147
|
-
| Stub-replace reviewer | `Read, Grep, Glob, Write, Edit` | `bkit-plan-review-*`, `bkit-plan-scope-check
|
|
148
|
-
| Stub-replace + log-append reviewer | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-build-
|
|
149
|
-
| Doc rewriter (cp + Edit) | `Read, Grep, Glob, Edit, Bash` | `bkit-design-update`, `bkit-plan-update
|
|
150
|
-
| Doc writer (with shell) | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-design-organise`, `bkit-ship-update-docs`, `bkit-utility-update-documentation` |
|
|
151
|
-
| Source modifier (with test gate) | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-build-plan-execute`, `bkit-build-plan-gaps-remediate`, `bkit-
|
|
152
|
-
| Skill-installer
|
|
92
|
+
| Handover writer (with shell) | `Read, Write, Edit, Bash` | `bkit-debug-abort-handover` |
|
|
93
|
+
| Read-only reviewer | `Read, Grep, Glob, Write` | `bkit-design-brainstorm-ideate-*` |
|
|
94
|
+
| Stub-replace reviewer | `Read, Grep, Glob, Write, Edit` | `bkit-plan-review-*`, `bkit-plan-scope-check`, `bkit-utility-compress-markdown` |
|
|
95
|
+
| Stub-replace + log-append reviewer | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-build-plan-current`, `bkit-build-plan-verify`, `bkit-build-challenge-1`, `bkit-build-challenge-2`, `bkit-ship-deferred-sweep` |
|
|
96
|
+
| Doc rewriter (cp + Edit) | `Read, Grep, Glob, Edit, Bash` | `bkit-design-update`, `bkit-plan-update` |
|
|
97
|
+
| Doc writer (with shell) | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-design-generate`, `bkit-design-organise`, `bkit-plan-generate`, `bkit-build-plan-convert`, `bkit-ship-update-docs`, `bkit-utility-update-documentation` |
|
|
98
|
+
| Source modifier (with test gate) | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-build-plan-execute`, `bkit-build-plan-gaps-remediate`, `bkit-debug-failure-reproduce`, `bkit-debug-failure-remediate`, `bkit-ship-conflict-resolve` |
|
|
99
|
+
| Skill-installer | `Read, Grep, Glob, Write, Bash` | `bkit-build-install-skills` |
|
|
153
100
|
| Tracker reader (read-only MCP) | `Read, Grep, Glob, Write, Edit, Bash` + per tracker: github `mcp__github__list_issues, mcp__github__issue_read`; linear `mcp__linear__list_issues, mcp__linear__get_issue`; jira `mcp__jira__searchJiraIssuesUsingJql, mcp__jira__getJiraIssue`; none — | `bkit-utility-update-roadmap` |
|
|
154
|
-
| Tracker writer (read-write MCP) | `Read, Grep, Glob, Bash` + per tracker: github `mcp__github__list_issues, mcp__github__issue_read, mcp__github__issue_write, mcp__github__sub_issue_write, mcp__github__projects_list, mcp__github__projects_write`; linear `mcp__linear__list_issues, mcp__linear__get_issue, mcp__linear__save_issue, mcp__linear__list_issue_labels, mcp__linear__list_issue_statuses, mcp__linear__list_milestones`; jira `mcp__jira__searchJiraIssuesUsingJql, mcp__jira__getJiraIssue, mcp__jira__editJiraIssue, mcp__jira__transitionJiraIssue, mcp__jira__executeRead, mcp__jira__executeWrite`; none — | `bkit-utility-update-tracker` |
|
|
155
|
-
| Ledger updater | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-utility-update-
|
|
101
|
+
| Tracker writer (read-write MCP) | `Read, Grep, Glob, Bash` + per tracker: github `mcp__github__list_issues, mcp__github__issue_read, mcp__github__issue_write, mcp__github__sub_issue_write, mcp__github__list_label, mcp__github__projects_list, mcp__github__projects_write`; linear `mcp__linear__list_issues, mcp__linear__get_issue, mcp__linear__save_issue, mcp__linear__list_issue_labels, mcp__linear__list_issue_statuses, mcp__linear__list_milestones`; jira `mcp__jira__searchJiraIssuesUsingJql, mcp__jira__getJiraIssue, mcp__jira__editJiraIssue, mcp__jira__transitionJiraIssue, mcp__jira__executeRead, mcp__jira__executeWrite`; none — | `bkit-utility-update-tracker` |
|
|
102
|
+
| Ledger updater | `Read, Grep, Glob, Write, Edit, Bash` | `bkit-utility-update-deferrals`, `bkit-utility-update-failures`, `bkit-utility-update-decisions`, `bkit-utility-update-knowledge` |
|
|
156
103
|
| Investigator (web access) | `Read, Grep, Glob, Write, Edit, Bash, WebFetch, WebSearch` | `bkit-design-review-1`, `bkit-design-review-2`, `bkit-design-spike`, `bkit-debug-failure-diagnose`, `bkit-debug-failure-soak` |
|
|
157
104
|
| Investigator + tracker comment | `Read, Grep, Glob, Write, Edit, Bash, WebFetch, WebSearch` + per tracker: github `mcp__github__add_issue_comment, mcp__github__search_issues`; linear `mcp__linear__save_comment, mcp__linear__list_issues`; jira `mcp__jira__addOrEditJiraIssueComment, mcp__jira__searchJiraIssuesUsingJql`; none — | `bkit-audit-generate` |
|
|
158
105
|
|
|
@@ -169,10 +116,10 @@ Pinning `model:` locks agent model regardless of orchestrator session. Without p
|
|
|
169
116
|
<!-- prettier-ignore -->
|
|
170
117
|
| Tier | Cap | Typical work | Use for | Examples |
|
|
171
118
|
| --- | --- | --- | --- | --- |
|
|
172
|
-
| **S** | **50** | 3-10 turns | Pure synthesizers reading 1-3 run artifacts and writing one verdict. |
|
|
173
|
-
| **M** | **100** | 5-25 turns | Reviewers and generators reading a few docs and writing one, scope
|
|
174
|
-
| **L** | **200** | 30-60 turns | Source modifiers with test loops
|
|
175
|
-
| **XL** | **400** | 60-180 turns | Whole-surface sweeps: every probe step of one audit template against repo and live systems; every row of a jsonl ledger, the roadmap board or the doc catalog re-checked against code, docs and tracker. | `bkit-audit-generate`, `bkit-utility-update-*` |
|
|
119
|
+
| **S** | **50** | 3-10 turns | Pure synthesizers reading 1-3 run artifacts and writing one verdict; single-doc reformatters with one check command. | `bkit-build-plan-convert` |
|
|
120
|
+
| **M** | **100** | 5-25 turns | Reviewers and generators reading a few docs and writing one, scope checks, single-pass utilities, install, handover writers; one plan group's executor, verifier and gap fixer (<= `bkit.workflows.tasks.maxPerGroup` tasks each, default 3). | `bkit-design-brainstorm-ideate-*`, `bkit-design-generate`, `bkit-design-review-*`, `bkit-design-organise`, `bkit-plan-review-*`, `bkit-plan-scope-check`, `bkit-build-install-skills`, `bkit-build-plan-execute`, `bkit-build-plan-verify`, `bkit-build-plan-gaps-remediate`, `bkit-debug-abort-handover`, `bkit-utility-compress-markdown` |
|
|
121
|
+
| **L** | **200** | 30-60 turns | Source modifiers with test loops — iterative edit→`pnpm bkit:gate:static-unit`→edit cycles; probe-code runners; investigators sweeping a diff, its callers or the codebase; whole-doc rewriters; per-cycle doc sync. | `bkit-design-spike`, `bkit-design-update`, `bkit-plan-update`, `bkit-build-plan-current`, `bkit-build-challenge-1`, `bkit-build-challenge-2`, `bkit-debug-failure-reproduce`, `bkit-debug-failure-diagnose`, `bkit-debug-failure-remediate`, `bkit-debug-failure-soak`, `bkit-ship-conflict-resolve`, `bkit-ship-deferred-sweep`, `bkit-ship-update-docs` |
|
|
122
|
+
| **XL** | **400** | 60-180 turns | Whole-surface sweeps: every probe step of one audit template against repo and live systems; every row of a jsonl ledger, the roadmap board or the doc catalog re-checked against code, docs and tracker; every citation in a plan's design, audit and issue inputs re-checked against code before the plan is written. | `bkit-plan-generate`, `bkit-audit-generate`, `bkit-utility-update-*` |
|
|
176
123
|
|
|
177
124
|
**Tier assignment is canonical** — per-agent rows in § Models. Cap hit at any tier → agent stuck (retry loop, infinite re-read) — orchestrator verdict-validation retry handles partial recovery.
|
|
178
125
|
|
|
@@ -186,7 +133,7 @@ Canonical per-agent metadata — **single source of truth for model per agent**.
|
|
|
186
133
|
|
|
187
134
|
`Effort` + `Max Turns` cross-host: `Effort` = Claude `effort:` → opencode `variant:` field / Codex `model_reasoning_effort` at install; `Max Turns` = runaway cap (Claude today). `Anthropic` / `Effort` / `Max Turns` restate prompt-file frontmatter — parity enforced by `.bkit/core/engine/audits/workflows/models-table-parity.test.ts`. See § `maxTurns` calibration for workload rationale.
|
|
188
135
|
|
|
189
|
-
> **Context-window note:** Claude Code `model:` is the API ID. `claude-opus-5-5` and `claude-sonnet-5-5` are 1M context. Haiku pins `claude-haiku-5-5` (1M context).
|
|
136
|
+
> **Context-window note:** Claude Code `model:` is the API ID. `claude-opus-5-5` and `claude-sonnet-5-5` are 1M context. Haiku pins `claude-haiku-5-5` (1M context).
|
|
190
137
|
>
|
|
191
138
|
> **opencode model IDs:** Per-provider column; full provider-prefixed ID (`<provider>/<model-id>`, e.g. `openrouter/moonshotai/kimi-k3`, `ollama/deepseek-v4.1-flash`). `bkit install --opencode=<provider>` installs column verbatim. Allowlisted: `openrouter`, `ollama`, `opencode-zen` + `opencode-go` (both `BKIT_OPENCODE_API_KEY`). **All four ship curated columns below.** Zen: models.dev id `opencode/<id>`; Go: `opencode-go/<id>`. Both gateways = built-ins (apiKey only). **`/zen/v1/models` REST probe cannot see Go-only models — models.dev is source of truth.** See `.bkit/providers.md` § Models.
|
|
192
139
|
>
|
|
@@ -200,53 +147,42 @@ Canonical per-agent metadata — **single source of truth for model per agent**.
|
|
|
200
147
|
| `bkit-design-brainstorm-ideate-1` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | parallel slot 1 (pragmatic lens) |
|
|
201
148
|
| `bkit-design-brainstorm-ideate-2` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | parallel slot 2 (optimal-tradeoff lens; Composer vs Grok siblings on Cursor; cross-tier on Claude) |
|
|
202
149
|
| `bkit-design-brainstorm-ideate-3` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | parallel slot 3 (risk-premortem lens) |
|
|
150
|
+
| `bkit-design-generate` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | generate design from brainstorms (top-of-pipeline synthesizer; whole-doc rewrite) |
|
|
203
151
|
| `bkit-design-review-1` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | design review slot 1 (web search + feasibility analysis) |
|
|
204
152
|
| `bkit-design-review-2` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | design review slot 2 (Composer vs Grok sibling on Cursor; cross-tier on Claude) |
|
|
205
153
|
| `bkit-design-spike` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | settle review-named unknowns with throwaway probe code (conditional step) |
|
|
206
|
-
| `bkit-design-update` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `
|
|
154
|
+
| `bkit-design-update` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | merge review critiques into design (whole-doc rewrite — needs depth) |
|
|
207
155
|
| `bkit-design-organise` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | decompose reviewed design into dependency-annotated workstreams; coverage self-verify + DAG cycle detection |
|
|
208
|
-
| `bkit-
|
|
209
|
-
| `bkit-
|
|
210
|
-
| `bkit-plan-
|
|
211
|
-
| `bkit-plan-
|
|
212
|
-
| `bkit-
|
|
213
|
-
| `bkit-plan-
|
|
214
|
-
| `bkit-plan-
|
|
215
|
-
| `bkit-plan-review-3` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | review slot 3 (regression-risk + design-coverage) |
|
|
216
|
-
| `bkit-plan-scope-check-1` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 100 | scope audit slot 1 (mechanical audit — medium effort) |
|
|
217
|
-
| `bkit-plan-scope-check-2` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | scope audit slot 2 (Composer vs Grok sibling on Cursor) |
|
|
218
|
-
| `bkit-plan-complexity-split` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | split large plan |
|
|
219
|
-
| `bkit-plan-summary` | `claude-haiku-5-5` | `composer-2.5` | `z-ai/glm-5.3-flash` | `deepseek-v4.1-flash` | `glm-5.3-flash` | `deepseek-v4.1-flash` | `gpt-6-luna` | `gemini-3.8-flash` | `high` | 50 | summary writer |
|
|
220
|
-
| `bkit-plan-update` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `xhigh` | 200 | merge review + scope critiques into plan (whole-doc rewrite — needs depth) |
|
|
156
|
+
| `bkit-plan-generate` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 400 | plan draft generator (top-of-pipeline synthesizer) |
|
|
157
|
+
| `bkit-plan-review-1` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | review slot 1 (tightness + dependency order + design-coverage; reads the plan) |
|
|
158
|
+
| `bkit-plan-review-2` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | review slot 2 (regression-risk + design-coverage; reads the code) |
|
|
159
|
+
| `bkit-plan-scope-check` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 100 | scope audit (template, criteria, verification; mechanical audit — medium effort, depth-sensitive — opus) |
|
|
160
|
+
| `bkit-plan-update` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | merge review + scope critiques into plan (whole-doc rewrite — needs depth) |
|
|
161
|
+
| `bkit-build-plan-convert` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 50 | write an issue or a free-form plan as task blocks (single-doc writer with one check command) |
|
|
162
|
+
| `bkit-build-plan-current` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | judge plan vs changes landed since its base commit |
|
|
221
163
|
| `bkit-build-install-skills` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | skill identifier |
|
|
164
|
+
| `bkit-build-plan-execute` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | task executor for one plan group (source modifier with test loop) |
|
|
165
|
+
| `bkit-build-plan-verify` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 100 | verify one group, or the whole plan once, vs the plan |
|
|
166
|
+
| `bkit-build-plan-gaps-remediate` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | fix one group's verification gaps (source modifier with test loop) |
|
|
222
167
|
| `bkit-build-challenge-1` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | parallel slot 1 (bug-hunting lens) |
|
|
223
168
|
| `bkit-build-challenge-2` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | parallel slot 2 (security lens; depth-sensitive — both opus) |
|
|
224
|
-
| `bkit-build-challenge-reconcile` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `xhigh` | 200 | merge parallel challenge findings (whole-doc rewrite) |
|
|
225
|
-
| `bkit-build-challenge-tests` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `high` | 200 | test generator (source modifier, no test loop) |
|
|
226
|
-
| `bkit-build-plan-execute` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `high` | 200 | task executor (source modifier with test loop; ceiling — split if exceeded) |
|
|
227
|
-
| `bkit-build-challenge-remediate` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `high` | 200 | fix challenge findings (source modifier with test loop) |
|
|
228
|
-
| `bkit-build-plan-gaps-remediate` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `high` | 200 | fix verification gaps (source modifier with test loop) |
|
|
229
|
-
| `bkit-build-summary` | `claude-haiku-5-5` | `composer-2.5` | `z-ai/glm-5.3-flash` | `deepseek-v4.1-flash` | `glm-5.3-flash` | `deepseek-v4.1-flash` | `gpt-6-luna` | `gemini-3.8-flash` | `high` | 50 | summary writer |
|
|
230
|
-
| `bkit-build-plan-verify` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | verify impl vs plan |
|
|
231
|
-
| `bkit-build-plan-current` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | judge plan vs changes landed since its base commit |
|
|
232
|
-
| `bkit-debug-abort-handover` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | handover writer |
|
|
233
169
|
| `bkit-debug-failure-reproduce` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | failing tests from a bug report, no fix; opus over the sonnet test-writer tier — an off-symptom test sends the fix loop after the wrong bug |
|
|
234
|
-
| `bkit-debug-failure-diagnose` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `
|
|
235
|
-
| `bkit-debug-failure-remediate` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `
|
|
236
|
-
| `bkit-debug-failure-soak` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `
|
|
237
|
-
| `bkit-debug-
|
|
238
|
-
| `bkit-ship-
|
|
239
|
-
| `bkit-ship-update-docs` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | sync cataloged docs (multi-doc writer) |
|
|
240
|
-
| `bkit-ship-conflict-resolve` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `high` | 200 | mechanical rebase-conflict resolver (source modifier with test loop) |
|
|
170
|
+
| `bkit-debug-failure-diagnose` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | failure diagnosis (Final-strategy attempts especially benefit from depth before human handover) |
|
|
171
|
+
| `bkit-debug-failure-remediate` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 200 | implement diagnosis fixes (source modifier with test loop) |
|
|
172
|
+
| `bkit-debug-failure-soak` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `moonshotai/kimi-k3` | `kimi-k3` | `kimi-k3` | `kimi-k3` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | soak fix — one accumulating-context instrument-or-fix step per iteration against the live boundary (orchestrator re-runs tests + loops) |
|
|
173
|
+
| `bkit-debug-abort-handover` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | handover writer |
|
|
174
|
+
| `bkit-ship-conflict-resolve` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 200 | mechanical rebase-conflict resolver (source modifier with test loop) |
|
|
241
175
|
| `bkit-ship-deferred-sweep` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 200 | pre-merge completeness gate — intended-vs-actual + declared-deferral resurface |
|
|
242
|
-
| `bkit-
|
|
243
|
-
| `bkit-
|
|
244
|
-
| `bkit-utility-update-
|
|
245
|
-
| `bkit-utility-update-
|
|
246
|
-
| `bkit-utility-update-
|
|
247
|
-
| `bkit-utility-update-
|
|
176
|
+
| `bkit-ship-update-docs` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `high` | 200 | sync cataloged docs (multi-doc writer) |
|
|
177
|
+
| `bkit-audit-generate` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `high` | 400 | audit report from one template (top-of-pipeline synthesizer) |
|
|
178
|
+
| `bkit-utility-update-deferrals` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 400 | deferrals update |
|
|
179
|
+
| `bkit-utility-update-failures` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 400 | failures update |
|
|
180
|
+
| `bkit-utility-update-decisions` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 400 | decisions update |
|
|
181
|
+
| `bkit-utility-update-knowledge` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 400 | knowledge update |
|
|
182
|
+
| `bkit-utility-update-roadmap` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 400 | roadmap analysis |
|
|
183
|
+
| `bkit-utility-update-tracker` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | `medium` | 400 | tracker update |
|
|
248
184
|
| `bkit-utility-compress-markdown` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `medium` | 100 | token-optimize markdown |
|
|
249
|
-
| `bkit-utility-update-documentation` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `
|
|
185
|
+
| `bkit-utility-update-documentation` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | `high` | 400 | doc sync (multi-doc writer) |
|
|
250
186
|
|
|
251
187
|
**Effort vs maxTurns vs model — three independent knobs:**
|
|
252
188
|
|
|
@@ -263,9 +199,9 @@ Canonical per-agent metadata — **single source of truth for model per agent**.
|
|
|
263
199
|
>
|
|
264
200
|
> - **Claude** (`/v1/models`) — pins `claude-opus-5-5` / `claude-sonnet-5-5` / `claude-haiku-5-5`. Opus 5, Sonnet 5 and Haiku 4.5 remain listed; not pinned.
|
|
265
201
|
> - **Cursor** (`/v0/models`) — **defaults = first-party pool only:** `cursor-grok-4.5-high` (depth / synthesizers / parallel diversity) + `composer-2.5` (volume / build+ship orchestrators). Catalog has **no** `cursor-grok-4.7` and **no** Opus 5.5 / Sonnet 5.5 IDs. API-pool IDs present and **not pinned**: `claude-opus-5-thinking-high`, `claude-sonnet-5-thinking-high`/`-xhigh`, `gpt-5.6-*`, `claude-fable-5-thinking-high`/`-xhigh`. Opt in via § Model Overrides.
|
|
266
|
-
> - **Google** — Antigravity pins `gemini-3.8-pro` for reasoning/synthesis, `gemini-3.8-flash` for
|
|
202
|
+
> - **Google** — Antigravity pins `gemini-3.8-pro` for reasoning/synthesis, `gemini-3.8-flash` for the haiku tier.
|
|
267
203
|
>
|
|
268
|
-
> **OpenAI-compatible providers curated + tool-call-smoked** (`tools:` chat / completions round-trip per pin, confirming `tool_calls` — `/models` existence
|
|
204
|
+
> **OpenAI-compatible providers curated + tool-call-smoked** (`tools:` chat / completions round-trip per pin, confirming `tool_calls` — `/models` existence != tool-calls):
|
|
269
205
|
>
|
|
270
206
|
> - **OpenRouter** (`/api/v1/models`, public) — `deepseek/deepseek-v4.1-flash` (opus+sonnet, 77.3, 16+ endpoints), `z-ai/glm-5.3-flash` (haiku, 56.8, 27 endpoints), `moonshotai/kimi-k3` (convergent, 62.2, 17 endpoints). All three auto-cache — `providers.md` § Selecting pins. (Tool-call smoke 403 `Key limit exceeded` — existence-verified; smoke deferred.)
|
|
271
207
|
> - **Ollama** (`/v1/models`) — `deepseek-v4.1-flash` (opus+sonnet+haiku, 77.3), `kimi-k3` (convergent, 62.2). Every tier needs a paid plan. (Existence-verified via `/api/tags` 2026-10-19; smoke deferred.)
|
|
@@ -283,9 +219,9 @@ Canonical per-agent metadata — **single source of truth for model per agent**.
|
|
|
283
219
|
| Orchestrator | Anthropic | Cursor | OpenRouter | Ollama | OpenCode Zen | OpenCode Go | OpenAI | Google | Role |
|
|
284
220
|
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
285
221
|
| `/design` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | Synthesizes conflicting brainstorms; resolves design ambiguity. |
|
|
286
|
-
| `/plan` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` |
|
|
222
|
+
| `/plan` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | Merges review (pair) + scope-check critiques in one pass; fixes what `tests plan-check` refuses after each plan write. |
|
|
223
|
+
| `/build` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | Fixed pipeline: dispatch → verify → challenge → tests → summary. Subagents own the heavy reasoning (`bkit-build-challenge-1`/`-2`, `bkit-build-plan-verify` are `high` effort). |
|
|
287
224
|
| `/debug` | `claude-opus-5-5` | `cursor-grok-4.5-high` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-6-astra` | `gemini-3.8-pro` | Picks remediation path under uncertainty; Standard / Pivot / Final escalation. |
|
|
288
|
-
| `/build` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | Fixed pipeline: dispatch → verify → challenge → tests → summary. Subagents own the heavy reasoning (`bkit-build-challenge-1`/`-2`/`-reconcile`, `bkit-build-plan-verify` are `high`/`medium`/`xhigh` effort). |
|
|
289
225
|
| `/ship` | `claude-sonnet-5-5` | `composer-2.5` | `deepseek/deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `deepseek-v4.1-flash` | `gpt-5.6-terra` | `gemini-3.8-pro` | Mostly mechanical: merge + archive + parallel docs / summary. |
|
|
290
226
|
|
|
291
227
|
**Rule:** Opus where orchestrator resolves ambiguity; Sonnet for defined sequence. **If** Sonnet orchestrator skips Failure Path branches or mis-routes verify gaps → escalate Opus.
|
|
@@ -294,6 +230,20 @@ Canonical per-agent metadata — **single source of truth for model per agent**.
|
|
|
294
230
|
|
|
295
231
|
**Inlining-drift risk.** Sonnet more prone than Opus to inlining subagent work when tractable (review / scope-check); `rules.md` § Orchestrators + per-command CAUTION mitigate. Observed → bump command to Opus (not higher Sonnet reasoning). Cursor Cloud automation: `composer-2.5` for metadata / API plumbing; launched agent runs orchestrator model from table.
|
|
296
232
|
|
|
233
|
+
**Claude Code session setup** — orchestrator runs on the session model + effort; subagents ignore both (`model:` / `effort:` frontmatter wins over session level).
|
|
234
|
+
|
|
235
|
+
<!-- prettier-ignore -->
|
|
236
|
+
| Goal | How |
|
|
237
|
+
| --- | --- |
|
|
238
|
+
| Model per phase | Launch on the `Anthropic` cell above before the first prompt: `claude --model claude-opus-5-5` → `/bkit-design`, `/bkit-plan`, `/bkit-debug`; `claude --model claude-sonnet-5-5` → `/bkit-build`, `/bkit-ship`. Mid-session `/model` re-reads the whole conversation uncached (cache is per model). |
|
|
239
|
+
| Fable, by hand | `claude --model claude-fable-5-1` (2.5x `claude-opus-5-5`), outside any `/bkit-*` run: (1) refine a fuzzy idea into a brief before `/bkit-design` → start `/bkit-design` in a fresh `claude-opus-5-5` session; (2) `/bkit-debug` stuck on a bug → work it from `docs/plans/{YYYYMM}/logs/{FID}/debug-handover.md`, `/effort xhigh`. No orchestrator or agent pins Fable. |
|
|
240
|
+
| Effort `medium` | Claude Code default for `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5` — set nothing. Top-level `effortLevel` in `~/.claude/settings.json` does NOT apply to these models; a level `/effort` saves lands in `~/.claude/settings.json` `modelSettings.<model>.effortLevel` and does. bkit ships no `effortLevel`. |
|
|
241
|
+
| One session | `claude --effort <level>` at launch, or `/effort <level>` in-session. |
|
|
242
|
+
| One repo | `"effortLevel": "<level>"` in `.claude/settings.local.json` (you only) or `.claude/settings.json` (whole team) — applies to every model, outranks `~/.claude/settings.json`. |
|
|
243
|
+
|
|
244
|
+
- NEVER set `CLAUDE_CODE_EFFORT_LEVEL` — outranks subagent `effort:` frontmatter → every subagent runs one level, § Effort tiers ladder gone.
|
|
245
|
+
- NEVER set `maxEffortLevel` below `high` — caps subagent `effort:` frontmatter → `high` agents (§ Effort tiers) run at the cap.
|
|
246
|
+
|
|
297
247
|
## Design Phase
|
|
298
248
|
|
|
299
249
|
<!-- prettier-ignore -->
|
|
@@ -303,47 +253,38 @@ Canonical per-agent metadata — **single source of truth for model per agent**.
|
|
|
303
253
|
| `bkit-design-brainstorm-ideate-2` | Same as `-1` — optimal-tradeoff lens; effort slot 2 (`medium`). Effort-diversity within the parallel triplet (Sonnet on Claude, Composer on Cursor vs Grok siblings). |
|
|
304
254
|
| `bkit-design-brainstorm-ideate-3` | Same as `-1` — risk-premortem lens; effort slot 3 (`high`). Restores Opus depth for the failure-mode side of the brainstorm triplet. |
|
|
305
255
|
| `bkit-design-generate` | Generate unified design draft from brainstorms and the design input; the input's `Grill decisions` section (design Step 3) holds the human's answers — `Settled` entries are strong pointers, not hard constraints — followed unless a brainstorm shows the answer fails; a departure gets a `Decisions` row and a `Risks & Open Questions` item asking the human to confirm. `Assumed, not confirmed` entries are defaults it may override with a stated reason; each `Open` entry becomes a `Risks & Open Questions` item. The section's `Draft Acceptance Scenario`, labelled `DRAFT only`, is the starting point for the design's `Acceptance Scenario`; every change to it gets a `Decisions` row, no confirmation item, because the human confirms the scenario again at the plan's `Acceptance Scenario confirmed` box. It reads the input directly because the ideate triplet may not carry every decision through. Emits `Reuse & Prior Art` (default `EXTEND`): duplication is cheapest to decide at design — net-new committed here is expensive to unwind at plan or build. Every net-new `Architecture` component traces to a `NEW` verdict; plan phase starts `Reuse Inventory` from it. Verdict only — sources, absence proof and rejected `NEW` reasons are checked by `bkit-design-review-1` and evidenced in the plan's `Search performed`. Appends `docs/deferrals.jsonl` if applicable. Does not write `docs/decisions.jsonl` — the design phase reads ADRs but never authors them (decisions land via debug remediation or build / ship doc-integration). Open questions in `Risks & Open Questions` are never bare — each carries 2-3 concrete options with trade-offs, a `Recommended` option and a `Default if unanswered`; the design phase states this requirement itself and does not read the plan template. |
|
|
306
|
-
| `bkit-design-review-1` | Feasibility research with `WebFetch`/`WebSearch`; prior-art search per capability — repo sweep first (in-repo candidate outranks an ecosystem one; an ecosystem-only sweep cannot see the repo's own near-miss helpers), then dependency built-ins and ecosystem practice. Repo sweep — worded identically here and in plan template Pre-Flight — adds language-server symbol references and committed capability map `docs/capabilities.md` to text search. Tools named by capability, never product: prompts stay stack-independent and work with none installed. Both only add candidates — empty language-server answer = unresolved query; code map confirms presence, not absence — so absence (`NEW` reason (a)) rests on recorded text search. `EXTEND-EXISTING` heads the recommendation enum; unrebutted `NEW` verdict over live candidate = `CONCERNS` finding; writes review log. Sole emitter of the `Spike` header field (`
|
|
256
|
+
| `bkit-design-review-1` | Feasibility research with `WebFetch`/`WebSearch`; prior-art search per capability — repo sweep first (in-repo candidate outranks an ecosystem one; an ecosystem-only sweep cannot see the repo's own near-miss helpers), then dependency built-ins and ecosystem practice. Repo sweep — worded identically here and in plan template Pre-Flight — adds language-server symbol references and committed capability map `docs/capabilities.md` to text search. Tools named by capability, never product: prompts stay stack-independent and work with none installed. Both only add candidates — empty language-server answer = unresolved query; code map confirms presence, not absence — so absence (`NEW` reason (a)) rests on recorded text search. `EXTEND-EXISTING` heads the recommendation enum; unrebutted `NEW` verdict over live candidate = `CONCERNS` finding; writes review log. Sole emitter of the `Spike` header field (`true` when an `Unknowns & Blockers` item is settleable only by running code) — gates workflow Step 7. |
|
|
307
257
|
| `bkit-design-review-2` | Same as `-1`; runs in parallel with cross-tier model diversity. Also audits `Risks & Open Questions` format — question missing options, `Recommended` or `Default if unanswered` → OPTIONAL. Does not emit `Spike`. |
|
|
308
|
-
| `bkit-design-spike` | Conditional — runs only when `bkit-design-review-1` sets `Spike` =
|
|
258
|
+
| `bkit-design-spike` | Conditional — runs only when `bkit-design-review-1` sets `Spike` = true. Restates each unknown as a falsifiable claim, writes the smallest probe that could disprove it under `docs/plans/{YYYYMM}/logs/{FID}/spike/`, runs it, records captured output verbatim. Settles claims by evidence only — never infers a result from source reading, never simulates an unavailable service. PASS / CONCERNS / FAIL where FAIL = a design assumption is disproven (Step 8 revises against it) and CONCERNS = unsettleable this run (assumption carried forward unproven); per-claim `SETTLED` / `DISPROVEN` / `BLOCKED` stays in the body. Disproof needs evidence that an honest attempt failed — "could not get it working" is `BLOCKED`, never `DISPROVEN`, and no claim may be weakened or stubbed to make a probe pass. Probe code is throwaway and confined to the artifact tree; never touches tracked source or a repo manifest. |
|
|
309
259
|
| `bkit-design-update` | Apply CRITICAL items and OPTIONAL items judged on merit from both reviews; whole-doc rewrite of design. Open questions a finding adds or rewords carry options, `Recommended` and `Default if unanswered`; untouched regions stay verbatim. |
|
|
310
260
|
| `bkit-design-organise` | Decompose `design-v2-reviewed.md` into dependency-annotated workstreams (`WS-1`, `WS-2`, …); inline `Requires` per workstream; FAIL if cycles detected. `## Suggested Workstreams` is the suggestion. Workflow Step 11 posts that list on the parent issue. It never creates tracker issues. |
|
|
311
|
-
| `bkit-design-summary` | Read-only verdict on design doc + spike. `Outstanding Questions` surfaces each open question with its options, `Recommended` and `Default if unanswered` verbatim from the artifact — never generated here, since a summary-only recommendation is discarded the moment `bkit-plan-generate` reads the artifact. Which option is right stays verdict-neutral; a question still left bare is a CONCERNS-level content issue — the backstop for a bare-question finding `bkit-design-update` skipped on merit. Unchecked human-confirmation gates never downgrade the verdict and land in `Action Items` on every verdict — gating that section on CONCERNS / FAIL left a PASS note nowhere to go. With 2+ suggested workstreams it asks whether to file one issue each (shape per `.bkit/trackers.md` § Issue shapes, filed in `Requires` order so blocker numbers exist) and points `/bkit-plan` at the first root workstream's new issue, not the design issue, so each workstream gets its own smaller plan. |
|
|
312
261
|
|
|
313
262
|
## Plan Phase
|
|
314
263
|
|
|
315
264
|
<!-- prettier-ignore -->
|
|
316
265
|
| Agent | Scope |
|
|
317
266
|
| --- | --- |
|
|
318
|
-
| `bkit-plan-generate` | Read design and / or audit reports + template + docs → write new plan draft. Design absent and audits present is valid. Neither present → the issue is the source: a change-shape issue's `Narrative`, `Success Criteria`, `Edge Cases`, matrix rows and tasks carry over verbatim (
|
|
319
|
-
| `bkit-plan-review-1` | Read-only critique — tightness lens; effort slot 1 (`high`). Parallel with `-2` and
|
|
320
|
-
| `bkit-plan-review-2` | Same scope —
|
|
321
|
-
| `bkit-plan-
|
|
322
|
-
| `bkit-plan-
|
|
323
|
-
| `bkit-plan-scope-check-2` | Same scope, effort slot 2 (`medium`). |
|
|
324
|
-
| `bkit-plan-update` | Merge review / scope critique notes → in-place plan edits + record log. Invariant: every task's `**Done when:**` and `**Test first:**` lines survive critique-merge (may be tightened, `n/a` → named tests included; never removed / weakened). Writes review's `Suggested Scope Expansion` candidates into the plan section (advisory; never tasks). Open questions a finding adds or rewords carry options, `Recommended` and `Default if unanswered`; untouched regions stay verbatim. Human-confirmation checkboxes survive the merge as found — an unconditional invariant beside `Done when`, not a clause of the open-question rule. Mirrors to `docs/deferrals.jsonl` only the `Out of Scope` `Exempt` rows its merge adds; `Suggested Scope Expansion` candidates are never appended — most were read from that ledger, so appending duplicates them. |
|
|
325
|
-
| `bkit-plan-complexity-check` | Single→Split verdict on plan size. |
|
|
326
|
-
| `bkit-plan-complexity-split` | Partition plan into sub-plans preserving 100% of tasks (including each task's `**Done when:**` and `**Test first:**` lines verbatim); orders sub-plans so every boundary leaves local gate green (task + its tests, signature change + callers, add before delete), else merges them; build Step 7 enforces at run time. Self-verifies losslessness + green boundaries; emits PASS / FAIL. Tasks and task-linked rows (test matrix, reuse / supersession inventories, doc updates) land in exactly one sub-plan, with their task; gate checkpoints and `Mandatory Tasks` copy into every sub-plan, since each must be a valid plan on its own. |
|
|
327
|
-
| `bkit-plan-summary` | Read-only verdict on plan. Surfaces every `Out of Scope` row `Exempt`/`Blocking` in `Deferred & Out-of-Scope` (any `Blocking` → CONCERNS) + `Suggested Scope Expansion` (advisory) + `Outstanding Questions` — each open question with its options, `Recommended` and `Default if unanswered`, so the human decides at the `Open Questions & Assumptions` confirmation checkbox (which option is right stays verdict-neutral; a question still left bare is a CONCERNS-level content issue). Unchecked human-confirmation gates never downgrade the verdict and land in `Action Items` on every verdict. |
|
|
267
|
+
| `bkit-plan-generate` | Read design and / or audit reports + template + docs → write new plan draft. Design absent and audits present is valid. Neither present → the issue is the source: a change-shape issue's `Narrative`, `Success Criteria`, `Edge Cases`, matrix rows and tasks carry over verbatim (Contract `Acceptance Scenario` and `Scenario detail`). Audit contract: if input includes audit-scope directives, plan covers only those findings; the rest of each report is context only, not backlog. Workstream contract: if input includes `**Workstream:**` directive, plan covers only that workstream's `## Scope` content unless stated otherwise; surface `**Requires:**` at top of plan. Process = one step per major template section in **dependency (authoring) order, not template document order** — derived sections (Breaking Changes, Supersession, Security, Docs, Rollback) follow Architecture rather than preceding it: Context → Acceptance Scenario → Derived Test Matrix → Open Questions → Pre-Flight → Alternatives → Data Schema → Reuse Inventory → Architecture (+ `decisions.jsonl`) → Breaking Changes → Supersession → Security → Docs → Rollback → Out of Scope → Suggested Scope Expansion → Agent Execution Runbook (groups of task blocks in build order, each group and task within the `bkit.workflows.tasks` caps the workflow passes in Context; pick tests from matrix only; each row → exactly one task; every task has `DONE WHEN`; `READ` / `UPDATE` / `DELETE` only for symbols it opened; never writes its own `TEST EXCEPTION`, copies an input's word for word) → Verification. The workflow runs `bkit tests plan-check --existence=refuse` on the draft straight after; exit 1 re-invokes it once to fix only the lines the report names. Human-confirmation checkboxes stay unchecked at generate. Each section group lands in the draft before reading for the next group starts, so a turn-cap stop leaves finished groups on disk, not an all-`PENDING` stub. Every `Open Questions & Assumptions` question carries 2-3 concrete options with trade-offs, a `Recommended` option and a `Default if unanswered` (design's answer carried forward where it has one); a bare question is not acceptable output. `Out of Scope` entries must be `Exempt` (genuinely-additive), else a runbook task. `Suggested Scope Expansion` holds candidates, not tasks; no tracker / ledger scan here — surface overlaps come from the orchestrator Fetch Context step via `bkit-plan-review-1`. |
|
|
268
|
+
| `bkit-plan-review-1` | Read-only critique of the plan text — tightness + dependency-order lens; effort slot 1 (`high`). Parallel with `-2` and `bkit-plan-scope-check`. Drift from source, design-coverage gaps and unjustified expansion → CRITICAL. Tasks declare `DEPENDS ON`, which `bkit tests plan-check` checks mechanically (a missing task, the task itself, a task in a later group); review-1 derives the graph regardless: what each task produces and consumes, read against runbook order (build order), because a declared field lists only the edges its author saw. A consumer before its producer, or a prerequisite no task produces and the repo lacks, is CRITICAL. Surfaces `Suggested Scope Expansion` candidates from the `related-*.md` context. FAIL only for a task-order cycle no reorder resolves, or a plan that contradicts its source design — every other gap is CRITICAL → CONCERNS so `bkit-plan-update` repairs it. |
|
|
269
|
+
| `bkit-plan-review-2` | Same scope — regression-risk lens, reads the code; effort slot 2 (`high`). Traces each task's files, symbols, schemas and endpoints to their consumers. `TEST FIRST` / `DONE WHEN` check current code cannot pass, no task changing it → CRITICAL, cites the ruling `file:line`. FAIL only for a regression vector the source design itself requires and no plan edit mitigates — every other gap is CRITICAL → CONCERNS so `bkit-plan-update` repairs it. |
|
|
270
|
+
| `bkit-plan-scope-check` | Internal-completeness scope audit; one slot, parallel with both reviewers on the draft (`medium` effort, opus model — depth-sensitive lens). Owns the template checks: sections present; `Acceptance Scenario` / `Derived Test Matrix` missing or vague → CRITICAL; `Open Questions & Assumptions` question missing options, `Recommended` or `Default if unanswered` → OPTIONAL (mirrors `bkit-design-review-2` on the design side). Per-task `DONE WHEN` / `TEST FIRST` are not this lens: `bkit tests plan-check` refuses a task missing either after every plan write. `Blocking` out-of-scope deferral → CRITICAL. Duplication guard is bidirectional: `Supersession Inventory` catches code the plan replaces but never deletes; `Reuse Inventory` catches capability the plan rebuilds instead of extending. Recorded search (exact commands, not a claim) is the evidence — empty `Search performed` = unsearched, not absence; untraced `[NEW]` → CRITICAL. FAIL only for a matrix-to-runbook mapping no plan edit recovers — a broken template and every other gap is CRITICAL → CONCERNS so `bkit-plan-update` repairs it. |
|
|
271
|
+
| `bkit-plan-update` | Merge review / scope critique notes → in-place plan edits + record log. Invariant: every task's `**DONE WHEN:**` and `**TEST FIRST:**` fields survive critique-merge (may be tightened, `n/a` → named tests included; never removed / weakened). Writes review's `Suggested Scope Expansion` candidates into the plan section (advisory; never tasks). Open questions a finding adds or rewords carry options, `Recommended` and `Default if unanswered`; untouched regions stay verbatim. Human-confirmation checkboxes survive the merge as found — an unconditional invariant beside `DONE WHEN`, not a clause of the open-question rule. Mirrors to `docs/deferrals.jsonl` only the `Out of Scope` `Exempt` rows its merge adds; `Suggested Scope Expansion` candidates are never appended — most were read from that ledger, so appending duplicates them. Writes a `docs/decisions.jsonl` row per decision its merge adds or changes, same `key` when changed, and keeps the plan's `**Ledger rows:**` line current for plan close's `bkit ledgers check`. |
|
|
328
272
|
|
|
329
273
|
## Build Phase
|
|
330
274
|
|
|
331
275
|
<!-- prettier-ignore -->
|
|
332
276
|
| Agent | Scope |
|
|
333
277
|
| --- | --- |
|
|
278
|
+
| `bkit-build-plan-convert` | Write the plan's `Agent Execution Runbook` as groups of task blocks when `bkit tests plan-check` finds none, from whatever input arrives in `build-input-{RUN}.md` (session prompt, issue text, plan as it arrived) and the plan file. Keeps every section outside the runbook and every end state and test the inputs name, tightened and never weakened. Same scope: adds no work the issue or plan does not ask for, drops none. Group and task caps: the `bkit.workflows.tasks` values the workflow passes in Context. Names only files it opened; a symbol it did not find → the file alone. A `NEW` `Reuse Inventory` row per `CREATE` file. Never writes `TEST EXCEPTION` of its own and never authors a `bkit:anchor` block; copies each `TEST EXCEPTION` an input writes word for word (a request the owner confirms at the build's Decision Pause). Where the plan and the issue disagree, the plan wins. Runs the check command the orchestrator supplies, at most 3 times. No verdict header. |
|
|
334
279
|
| `bkit-build-plan-current` | Judge whether changes landed on `origin/dev` since the plan's `bkit:anchor` `baseSha` leave its tasks executable. Derives its own changed-path list from `BASE_SHA` (orchestrator-supplied via Context), intersects it against the paths each task depends on, and reads per-path diffs for the intersection only — no whole-range diff, no path outside it. Same output shape as `bkit-build-challenge-*`: header count + one append-only findings section. `Executable` tasks are not findings and are not logged; `Reword` / `Broken` are, and `Affected` = their count. PASS = no affected task; CONCERNS = any `Reword`; FAIL = any `Broken`. All three are advisory — build proceeds on every verdict and `@bkit-build-plan-execute` reads the findings as its currency input. Judges the plan against the codebase — the design doc is not an input and a superseded design is not a finding. Commit distance and elapsed time never carry the verdict. Does not revise the plan: remediation is a `/bkit-plan` re-run, never `bkit-plan-update` from build. |
|
|
335
280
|
| `bkit-build-install-skills` | Identify and install relevant skills via `npx skills find`/`add`: quality-hurdle the source (official publisher, or 1000+ installs / 100+ stars), install one named skill per gap, report provenance. |
|
|
336
|
-
| `bkit-build-plan-execute` | Execute plan tasks
|
|
337
|
-
| `bkit-build-plan-verify` | Verify implementation vs plan; writes Plan Verification log. Ticks plan
|
|
338
|
-
| `bkit-build-plan-gaps-remediate` | Fix specific gaps from latest verify log +
|
|
339
|
-
| `bkit-build-challenge-1` | Adversarial review of `git diff origin/dev
|
|
281
|
+
| `bkit-build-plan-execute` | Execute one plan group — the task blocks in the brief `bkit context brief --next` writes; earlier tasks in the brief are context only; the brief's `Deviations` section, when present, is the owner's run instruction, applied to the tasks it names. An existing log is kept and its `Verdict` reset to `PENDING`. Verdict PASS / HANDOVER / FAIL: `HANDOVER` = turn cap near with tasks neither `DONE` nor `BLOCKED` → stop after the current task's log line; the workflow re-runs the group once with a fresh brief, not as a failed attempt. Per task naming `TEST FIRST` tests: tests + stubs first, then the red command the orchestrator supplies in Context (`bkit tests red`) once per test — never the task's code before every red is recorded; skipped for tasks logged `DONE — TASK {N}: already landed`; refused as `passed` → `BLOCKED` (never undo code to force a red); no red for tests a task's `TEST EXCEPTION` field names, never touches one; other refusals → fix test / stub and re-run; `bkit:test:file` not declared → `red not enforced`; could not run → `BLOCKED` (`.bkit/workflows.md` § Test-first). Branches on the outcome the command prints, not its exit code; honours the brief's `Reuse Inventory` rows and `Architecture` entries at the only point the decision can still be quietly discarded — `EXTEND` row modifies named artifact, never a parallel file; rows or entries the brief left out (8 KB work cap) → reads the plan section it names; reusable artifact found mid-build folds in, never forks; reads each task's `DONE WHEN` field as the completion criterion to satisfy; modify source; write stub artifact first then incremental `## Task Log` entries — one `DONE — TASK {N}:` or `BLOCKED — TASK {N}:` line per task at line start, which the next brief reads to skip finished tasks. Reads `build-plan-current.md` when present: findings are fact, plan is intent — `Reword` tasks build at the paths the report names as current, `Broken` tasks whose work already landed log `DONE — TASK {N}: already landed`, the rest build the intent against current code. Never edits the plan file; tasks absent from the findings follow plan wording verbatim. Does not tick plan checkboxes (verify owns that). Does not write `docs/deferrals.jsonl` — a blocked task is a `BLOCKED` log line for verify to catch, not a deferral. |
|
|
282
|
+
| `bkit-build-plan-verify` | Verify implementation vs plan; writes Plan Verification log. `Group` mode judges one group's briefs against the group diff (changes since the group's start commit); `Holistic` mode runs once after the last group, across every group, plus integration. Ticks plan `- [ ] **TASK {N}:**` → `[x]` only when the task's `DONE WHEN` field is satisfied in the codebase and the orchestrator's test-first audit report (`bkit tests green`) shows no gap for it — `not-green` `Fixable: true`; `test-changed` / `red-mismatch` judged from the diff; `added lines only` diff read, a line added inside a planned test or its setup → `test-changed`; `red-mismatch` for a planned test renamed or moved and passing now → no gap; `no-red` on an already-landed task (plan-currency `Broken` + execute `DONE — TASK {N}: already landed`) → no gap; `delete-still-referenced` → each hit read, a different thing with the same name → no gap, else `Fixable: true`; other `no-red`, `late-red`, `exception-refused` and the plan-defect kinds `Fixable: false`; each gap logged `TASK {N}` with `— Fixable: true` / `— Fixable: false`, header `Fixable: true` when any gap is (build → fixable-only remediate, then Decision Pause); test-order gaps logged with task, test file and test name; a test a task's `TEST EXCEPTION` field names is no gap; `Late-red check` tasks → `Notes` — a `BLOCKED` log line or a deferral row never discharges a task, so unfinished work routes to `@bkit-build-plan-gaps-remediate` in-loop instead of surfacing at ship. Missing `DONE WHEN` on any task → FAIL (template structure broken; remediation cannot recover). |
|
|
283
|
+
| `bkit-build-plan-gaps-remediate` | Fix specific gaps from the group's latest verify log + group gate log failures (the tests of the groups so far; that gate MUST pass too); reads the group's briefs for its task blocks; Standard / Pivot / Final escalation. Context `Scope: fixable only` → `— Fixable: false` gaps out of scope. Header `Fixed` = gaps `DONE` this attempt (0 → build Decision Pause). A supplied decision record → the owner's `Decision:` words steer the round. No strategy records a red by undoing or swapping out code; test-order gap → `BLOCKED`; never touches a `TEST EXCEPTION` field (`.bkit/workflows.md` § Test-first). |
|
|
284
|
+
| `bkit-build-challenge-1` | Adversarial review of `git diff origin/dev...HEAD` — bug-hunting lens; effort slot 1 (`high`). Parallel with `-2`. Writes each finding as one task block — `Severity`, `Class` (`mechanical\|architectural`), `Fixable`, `Location`, `DONE WHEN`, `TEST FIRST` within the per-task `bkit.workflows.tasks` caps the workflow passes in Context — that `bkit challenge merge` appends to the plan as a new last group. Never references sibling output (circular reasoning guard). |
|
|
340
285
|
| `bkit-build-challenge-2` | Same as `-1` — security lens; effort slot 2 (`high` on Claude / opus — depth-sensitive; Grok on Cursor — first-party depth, same native pool as `-1`). |
|
|
341
|
-
| `bkit-build-challenge-reconcile` | Merge `build-challenge-1.md` + `build-challenge-2.md` into unified `build-challenge.md`. Dedup: same `file:line` or same root-cause cluster → single finding citing both reviewers. `Severity` max-wins (`CRITICAL > HIGH > MEDIUM > LOW`). `Verdict` max-wins (`FAIL > CONCERNS > PASS`). Downgrade only with explicit `## Justification`. |
|
|
342
|
-
| `bkit-build-challenge-remediate` | Classify-gate (data-driven on `class`): any architectural → FAIL (no fixes; BLOCKED entries logged); else apply mechanical fixes in priority order; runs lint / typecheck / test. |
|
|
343
|
-
| `bkit-build-challenge-tests` | Add edge-case tests for changed files; runs lint / typecheck / test. |
|
|
344
|
-
| `bkit-build-summary` | Read-only verdict on build outcome. |
|
|
345
286
|
|
|
346
|
-
> **Cross-phase reuse:** Build Steps
|
|
287
|
+
> **Cross-phase reuse:** Build Steps 12-13 + Ship Steps 11-12 invoke `bkit-debug-failure-diagnose` / `bkit-debug-failure-remediate` (in-build test failures, in-ship merge failures) — see Debug Phase entries.
|
|
347
288
|
|
|
348
289
|
## Debug Phase
|
|
349
290
|
|
|
@@ -351,28 +292,26 @@ Canonical per-agent metadata — **single source of truth for model per agent**.
|
|
|
351
292
|
| Agent | Scope |
|
|
352
293
|
| --- | --- |
|
|
353
294
|
| `bkit-debug-failure-reproduce` | Bug report, no failing test → co-located tests failing on the reported symptoms, lowest tier reaching it; no implementation changes. Max 3 rewrites / 3 paths; not reproduced → test changes removed, `Reproduced: NO`. `Mode: SOAK` → tests repeat the scenario until they fail reliably. Wired into `/bkit-debug` § Failure Reproduce on `[repro]` + first-attempt PASS; `YES` → Run Tests records the red, or passes with no fix → Summary (`CONCERNS`: `Reproduced: YES` with no remediate / soak log); `NO` → Summary. |
|
|
354
|
-
| `bkit-debug-failure-diagnose` | Investigate test / CI failure → diagnosis log; no fixes. Standard / Pivot / Final by attempt. Folds `docs/knowledge.jsonl` by `key`, highest `ts` wins → reads only winning rows where `status` is `ACTIVE` or absent → cites matching entries in `## Prior Knowledge` → uses them to seed hypotheses. Output uses append-only ReAct `Hypothesis {N}` blocks; refuted hypotheses must remain. |
|
|
295
|
+
| `bkit-debug-failure-diagnose` | Investigate test / CI failure → diagnosis log; no fixes. Standard / Pivot / Final by attempt. Folds `docs/knowledge.jsonl` by `key`, highest `ts` wins → reads only winning rows where `status` is `ACTIVE` or absent → cites matching entries in `## Prior Knowledge` → uses them to seed hypotheses. Output uses append-only ReAct `Hypothesis {N}` blocks; refuted hypotheses must remain. A supplied decision record → the owner's `Decision:` words steer the diagnosis. |
|
|
355
296
|
| `bkit-debug-failure-remediate` | Apply diagnosis fix; lint / typecheck / test gate; may append `knowledge.jsonl`/`decisions.jsonl`. |
|
|
356
|
-
| `bkit-debug-failure-soak` | One accumulating context across iterations (reads its prior `debug-failure-soak-*-log.md`); applies the single next instrument-or-fix step against the failing boundary; refuses to theorise; adds `[DEBUG-OBSERVE]` scaffolding and strips every marker before declaring a fix (no-leak). Wired into `/bkit-debug` § Failure Remediate Soak (`DEBUG_MODE` = SOAK); the orchestrator re-runs the tests and loops it within `SOAK_ATTEMPT` (`
|
|
357
|
-
| `bkit-debug-abort-handover` | Read all prior diagnose / remediate / verify logs → handover doc + `deferrals.jsonl` append. Called from build / debug / ship Failure Paths. |
|
|
358
|
-
| `bkit-debug-summary` | Read-only verdict on debug loop outcome. |
|
|
297
|
+
| `bkit-debug-failure-soak` | One accumulating context across iterations (reads its prior `debug-failure-soak-*-log.md`); applies the single next instrument-or-fix step against the failing boundary; refuses to theorise; adds `[DEBUG-OBSERVE]` scaffolding and strips every marker before declaring a fix (no-leak). Wired into `/bkit-debug` § Failure Remediate Soak (`DEBUG_MODE` = SOAK); the orchestrator re-runs the tests and loops it within `SOAK_ATTEMPT` (`debug.soak.maxAttempts`, counted across every debug run of the feature). Flat append-only `DONE`/`BLOCKED` log. |
|
|
298
|
+
| `bkit-debug-abort-handover` | Read all prior diagnose / remediate / verify logs → handover doc + `failures.jsonl` / `deferrals.jsonl` append. Called from build / debug / ship Failure Paths. |
|
|
359
299
|
|
|
360
300
|
## Ship Phase
|
|
361
301
|
|
|
362
302
|
<!-- prettier-ignore -->
|
|
363
303
|
| Agent | Scope |
|
|
364
304
|
| --- | --- |
|
|
365
|
-
| `bkit-ship-update-docs` | Cross-reference changed files against every doc in `docs.md`; update stale. Runs parallel with `bkit-ship-summary`. |
|
|
366
|
-
| `bkit-ship-summary` | Read-only verdict on ship outcome. Runs parallel with `bkit-ship-update-docs` (no cross-reference — circular reasoning guard). |
|
|
367
305
|
| `bkit-ship-conflict-resolve` | Mid-rebase mechanical conflict resolver. Invoked from `/bkit-ship` Step 4 B2 when the PR conflicts textually with `origin/dev`: rebases onto `origin/dev`, runs `bkit branches rebase` first (unions ledgers, regenerates the lockfile), then hand-resolves only what that leaves conflicted. Allowed: non-overlapping additive edits, formatting drift, dep-version supersedes, additive JSON entries. Refused: same-function edits, semantic overlaps, ambiguous intent — FAIL aborts the rebase cleanly and routes to `bkit-debug-abort-handover`. Verifies via `bkit:gate:install-static-unit-build` before PASS. |
|
|
368
|
-
| `bkit-ship-deferred-sweep` | Pre-merge completeness gate. Builds the intended-delivery set from plan `Acceptance Scenario` sections + `
|
|
306
|
+
| `bkit-ship-deferred-sweep` | Pre-merge completeness gate. Builds the intended-delivery set from plan `Acceptance Scenario` sections + `DONE WHEN` fields and asserts each against the codebase. No plan file → `ship-input-*.md` is the plan; intended-delivery set = its requested outcomes. An unmet / unplanned gap → FAIL → Failure Path (merge never happens) ONLY on >=1 of four blocking tests, each asserted against source, never inferred from a plan sentence: behaviour (absent / stub / wrong result), safety (guard weakened, known-broken path ships), false green (this diff disabled a covering test), consumer break (shipped surface fails at runtime). Lane results are not evidence — bkit lanes are event-scoped, some push-to-`dev` only, so a pre-merge sweep reading them re-creates the unsatisfiable refusal that made gate code 16 opt-in; the gate + capstone own green. A gap passing none is `Lazy`: stale prose / comment / name, doc drift, unwritten ledger row, formatting, future-enhancement `TODO`, `DONE WHEN` met in substance not literal wording. Branch is green by this step, so aborting on a record-keeping gap leaves the work unmerged and the record unwritten. Declared deferrals (out-of-scope / future-work / non-goals across design, plan, `docs/deferrals.jsonl`, summaries) form the exempt set — never block, resurfaced verbatim in the ship summary's `Deferred & Out-of-Scope (Resurfaced)` section. Exemption is EARNED, not self-granted: each entry's `reason` (`.bkit/jsonl.md` § Deferral Reason) is adjudicated against the four tests, and one that fails moves to that same third track `Lazy (unjustified)` — same-`key` ledger append setting `reason` = `unjustified`, resurfaced as follow-up, never blocking the merge (a bounded fix is cheaper than an aborted ship). Both `Lazy` sources share one append shape; every item carries its row before the verdict is set. The intended-delivery set is those two sources and NOTHING else — every precondition, build process step and merge condition a plan states is advisory, never a gate: plan `Gate N` checkboxes, `Verification Plan` boxes and `Manual Verification` steps are build-phase process, never deliverables, and no phrasing in a plan, log or phase summary makes one blocking (the gate reaches only what the repo can be made to prove; the plan template carries the matching authoring rule). Invoked from `/bkit-ship` Step 5 (after Conflict Resolve, before Merge). |
|
|
307
|
+
| `bkit-ship-update-docs` | Cross-reference changed files against every doc in `docs.md`; update stale. |
|
|
369
308
|
|
|
370
309
|
## Audit (Ad-hoc)
|
|
371
310
|
|
|
372
311
|
<!-- prettier-ignore -->
|
|
373
312
|
| Agent | Scope |
|
|
374
313
|
| --- | --- |
|
|
375
|
-
| `bkit-audit-generate` | Read one `docs/templates/bkit-audit-*.md` and run its probe steps against the repo. Write the filled template to `docs/audits/{YYYYMM}/{slug}.md` (`{slug}` = template basename without `bkit-audit-`). **If** that month already has this slug → `{slug}-{TIMESTAMP}.md` (`{TIMESTAMP}` = `date -u +%Y%m%dT%H%M%SZ`). Report = template up to `bkit:end`. Right after creating the stub it runs `bkit branches anchor-stamp --base-sha=<HEAD> --base-ref=<branch>`, so the audited commit and the bkit release the report came from sit in the same `bkit:anchor` block design and plan docs carry (`.bkit/workflows.md` § Anchor Block) — top of file, machine-readable, the next run reads it as the previous report's commit; an outdated release also gets a visible `Outdated bkit` line under the block, written by the stamp. The agent runs the stamp itself because audits have no orchestrator; the block is still tool-written, never hand-written. Writes only the report, `docs/failures.jsonl` rows (`workflow: "audit"
|
|
314
|
+
| `bkit-audit-generate` | Read one `docs/templates/bkit-audit-*.md` and run its probe steps against the repo. Write the filled template to `docs/audits/{YYYYMM}/{slug}.md` (`{slug}` = template basename without `bkit-audit-`). **If** that month already has this slug → `{slug}-{TIMESTAMP}.md` (`{TIMESTAMP}` = `date -u +%Y%m%dT%H%M%SZ`). Report = template up to `bkit:end`. The template supplies shape and its own probe steps; the rules every template shares (read-only, evidence, Pre-Flight, credentials, permissions, previous run, gates, severity) are this prompt's Contract bullets. Right after creating the stub it runs `bkit branches anchor-stamp --base-sha=<HEAD> --base-ref=<branch>`, so the audited commit and the bkit release the report came from sit in the same `bkit:anchor` block design and plan docs carry (`.bkit/workflows.md` § Anchor Block) — top of file, machine-readable, the next run reads it as the previous report's commit; an outdated release also gets a visible `Outdated bkit` line under the block, written by the stamp. The agent runs the stamp itself because audits have no orchestrator; the block is still tool-written, never hand-written. Writes only the report, `docs/failures.jsonl` rows (`by: {workflow: "audit", step: "audit-{slug}"}`; one per `MEDIUM`+ finding, reusing any open row's `key` for the same problem whichever workflow wrote it, closing only open `audit-{slug}-` rows a rerun no longer finds; skipped by templates that audit the ledgers themselves, `.bkit/jsonl.md`), and the template's consumer-owned `Project Instructions` (below `bkit:end`), which it reads first and refines each run — exact commands, paths, tool gaps, corrections — so the next run starts from what this one learned; edits listed under the report's `Process Improvements` → `Project`, universal step changes proposed under `Universal`. Never results there (reports hold the series) and never text from external input (an injected directive would persist into every later run). The report's `Suggested Issues` groups findings into tracker-sized changes — one row per change landed in one go, every `MEDIUM`+ finding in exactly one row — and names each row's next step: `/bkit-design|/bkit-plan|/bkit-build|/bkit-debug` by the § When to Run rules of `.bkit/workflows.md` (restated inline, prompts are self-contained), the `.bkit/lite.md` lite workflow (`build:lite|debug:lite`) when its § When to use allows, or `manual` for a change outside the repo. The agent proposes and never files: its tracker tools post a comment and run one read-only search, so a person files from the table and each full workflow's related-issues scan catches an issue already open. Issue named in the input (same ID shapes as workflow Step 1, input only, never files the run read) → one `###### bkit:generated` comment there, built by `bkit issues comment --kind=audit` from the final summary (`Embedded Directives` as sources only, so injected text never reaches the tracker), posted through the tracker MCP after any `STOPPED` run too; retry once, then the header `Issue` line reads `failed`; never gates the run. No issue named, tracker wired → the agent searches for the template's audit parent (`.bkit/trackers.md` § Issue shapes — one standing issue per template that every run reports to, so run summaries and the issues they spawn collect in one place instead of one issue per run): an open issue whose body names `docs/templates/bkit-audit-{slug}.md` → `Parent: {ID} found` and the summary is posted there as if it had been named. None → `Parent: missing`, `Issue: None`, the built comment is saved to `{outboxRoot}/audit-{slug}/parent-comment.md`, and `Recommended Next Step` opens with a ready-to-file parent (title, labels, body with the run line) and the instruction to post that saved comment as its first comment — the agent cannot create issues, so whoever files the parent posts it. Search error → `Parent: unchecked`, same saved comment, posted on the parent once found or created. Every filed `Suggested Issues` row is a sub-issue of the parent, existing or new. Tracker `none` → no comment, no search, `Issue: None`, `Parent: None`. Bash is limited to that stamp, the setup tips, the issue comment, and the probes the template or its `Project Instructions` name; throwaway worktrees / remote targets removed before the report finishes. Web tools serve each template's Standards step. Pre-Flight `Permissions` probes each tool once before `Probe Steps`; a blocked call (there or in any step) never stops the run: the agent records it with its narrow allow rule, runs every step the remaining tools allow, and lists the work it could not do under `Not Checked`. Blocked calls persist in `Project Instructions` `Permissions`; the next run probes them first. `XL` tier: the longest templates run ~20 probe steps of several queries each against the repo and live systems. A missing surface is an explicit skip, not a clean finding. The final message is a fixed block shown verbatim, so the caller never paraphrases it: a machine-readable header (`Status` `COMPLETE` or `STOPPED`, report path, per-severity counts) above `<!-- verdict:end -->`, then the `Suggested Issues` table copied verbatim — rewording a row loses the grouping a person files from — plus `Not Checked`, ledger rows, `Process Improvements` and embedded directives. Every early STOP still returns that header with a `Stopped` reason. `Recommended Next Step` names which rows to file as issues (every `MEDIUM`+ row; the batched `LOW` row optional) and the highest-severity row's next step; each body follows `.bkit/trackers.md` § Issue shapes and carries an `**Audit reports:**` line with the row's finding IDs, so `/bkit-plan` reads the report; filed as sub-issues of the template's audit parent when a tracker is wired; shown whether or not a tracker is wired. The final message ends with the fixed related-utilities line from the `docs/roadmap.md` header, word for word. |
|
|
376
315
|
|
|
377
316
|
Every template under `docs/templates/bkit-audit-*.md`:
|
|
378
317
|
|
|
@@ -424,8 +363,8 @@ Every template under `docs/templates/bkit-audit-*.md`:
|
|
|
424
363
|
| `bkit-utility-update-failures` | Same over `docs/failures.jsonl`, judged on whether the bug still reproduces from the code. A flaky row closes only on a landed determinism fix, never a green run. Same `TRIAGED` promotion on an open tracker issue; a `failure` carries no `reason` field, so its `TRIAGED` rows only ever mean issue-promotion, unlike `deferral` where `bkit-ship-deferred-sweep` also writes `TRIAGED` alongside `reason` = `unjustified`. Same locator append. Ensure agent memories (`MEMORY.md` / `memory/*.md`) do not duplicate content and only contain pointers (path, section, one-line hook) to relevant `docs/*.md` sections / `docs/*.jsonl` entries. **If** memory contains duplicate / stale content → update memory. Final message is the output format verbatim. |
|
|
425
364
|
| `bkit-utility-update-decisions` | Fold `docs/decisions.jsonl` by `key`, highest `ts` wins → read only winning rows where `status` is `ACTIVE` or absent. Classify `HOLDS` / `CONTRADICTED` / `OBSOLETE` / `AMBIGUOUS` against `docs/` and the codebase. `CONTRADICTED` with one unambiguous replacement appends the corrected decision `ACTIVE`; `OBSOLETE` (nothing replaced it) appends `SUPERSEDED`. An unambiguous stale locator is folded into the same append and does not reclassify. One append per `key` per run. `AMBIGUOUS` and unresolved locators are left. Doc sentences that restate a corrected row are edited to match; implementation code is not. Ensure agent memories (`MEMORY.md` / `memory/*.md`) do not duplicate content and only contain pointers (path, section, one-line hook) to relevant `docs/*.md` sections / `docs/*.jsonl` entries. **If** memory contains duplicate / stale content → update memory. Final message is the output format verbatim. |
|
|
426
365
|
| `bkit-utility-update-knowledge` | Fold `docs/knowledge.jsonl` by `key`, highest `ts` wins → read only winning rows where `status` is `ACTIVE` or absent. Classify `HOLDS` / `CONTRADICTED` / `OBSOLETE` / `AMBIGUOUS`. An entry about upstream behaviour is never retracted from absence of local evidence. `OBSOLETE` appends same-`key` `SUPERSEDED`; `CONTRADICTED` appends the corrected lesson `ACTIVE`. Same locator append. Same doc-sentence edit; implementation code is not. Ensure agent memories (`MEMORY.md` / `memory/*.md`) do not duplicate content and only contain pointers (path, section, one-line hook) to relevant `docs/*.md` sections / `docs/*.jsonl` entries. **If** memory contains duplicate / stale content → update memory. Final message is the output format verbatim. |
|
|
427
|
-
| `bkit-utility-update-roadmap` | Rank next best steps from the board, both `## Notes` blocks, `.bkit/issues.jsonl` and open deferrals / failures. When a tracker is wired, always names the next milestone and the next distinct umbrella; a child is included only when open, unblocked, and able to start now. Those containers stay visible and enter the list only by priority, one row each, action = those children. List length is `package.json` `bkit.roadmapNext` (positive integer; absent or invalid → 25). Due audits compete by priority (risk covered first, then how overdue) for at most 3 rows. The length hint sits in the generated `roadmap-status` header. The full workflow is the default recommendation; names the `.bkit/lite.md` lite workflow (`<phase>:lite`) only where it is clearly enough. An item with no tracker issue (ledger row, due audit) gets a file-an-issue-first recommendation, shaped per `.bkit/trackers.md` § Issue shapes, when a tracker is wired. Rewrites ONLY the `roadmap-analysis` block. |
|
|
428
|
-
| `bkit-utility-update-tracker` | Bring every open issue (or the issues named in input) in line with `.agents/rules.md` tracker rules: title <=70 characters, type label plus exactly one `next:*` when no workflow label, board status from the workflow label, priority and size, milestone, parent, blocked-by. Sources in order: newest issues audit report `Proposal` / `Triage` / `Links`, then `docs/templates/bkit-audit-issues.md` § `Ranking Rules` and § `Size Scale`, then `docs/roadmap.md` `roadmap-analysis`. A report value overwrites a set field; its own judgement only fills empty ones and lists the rest under `Proposed`, so a human's manual setting survives unless an audit disagreed. Re-reads each issue right before writing and writes the full label set from that read, so concurrent workflow label changes survive; GitHub blocked-by goes in the body `###### bkit:blocked-by` block build reads, every other body byte unchanged. Never creates, closes, reopens or comments; never touches `bkit:*` labels or a done state; never removes a link; new milestones, parents and roadmap items with no issue are suggestions only. `Follow-ups` names the issues audit when due and the roadmap when priorities or links changed. No file writes. |
|
|
366
|
+
| `bkit-utility-update-roadmap` | Rank next best steps from the board, both `## Notes` blocks, `.bkit/issues.jsonl` and open deferrals / failures. When a tracker is wired, always names the next milestone and the next distinct umbrella; a child is included only when open, unblocked, and able to start now. Those containers stay visible and enter the list only by priority, one row each, action = those children. List length is `package.json` `bkit.prompts.roadmapNext` (positive integer; absent or invalid → 25). Due audits compete by priority (risk covered first, then how overdue) for at most 3 rows. The length hint sits in the generated `roadmap-status` header. The full workflow is the default recommendation; names the `.bkit/lite.md` lite workflow (`<phase>:lite`) only where it is clearly enough. An item with no tracker issue (ledger row, due audit) gets a file-an-issue-first recommendation, shaped per `.bkit/trackers.md` § Issue shapes, when a tracker is wired. Rewrites ONLY the `roadmap-analysis` block; bugs and deferrals it finds go under `Found Bugs` in its output for the caller to record. |
|
|
367
|
+
| `bkit-utility-update-tracker` | Bring every open issue (or the issues named in input) in line with `.agents/rules.md` tracker rules: title <=70 characters, type label plus exactly one `next:*` when no workflow label, board status from the workflow label, priority and size, milestone, parent, blocked-by. Sources in order: newest issues audit report `Proposal` / `Triage` / `Links`, then `docs/templates/bkit-audit-issues.md` § `Ranking Rules` and § `Size Scale`, then `docs/roadmap.md` `roadmap-analysis`. A report value overwrites a set field; its own judgement only fills empty ones and lists the rest under `Proposed`, so a human's manual setting survives unless an audit disagreed. Re-reads each issue right before writing and writes the full label set from that read, so concurrent workflow label changes survive; GitHub blocked-by goes in the body `###### bkit:blocked-by` block build reads, every other body byte unchanged. Never creates, closes, reopens or comments; never touches `bkit:*` labels or a done state; never removes a link; new milestones, parents and roadmap items with no issue are suggestions only. `Follow-ups` names the issues audit when due and the roadmap when priorities or links changed. No file writes. Bugs it finds go under `Found Bugs` in its output for the caller to record. |
|
|
429
368
|
| `bkit-utility-compress-markdown` | Token-optimize a single markdown file; preserve 100 % load-bearing tokens. **Destructive** (overwrites target). |
|
|
430
369
|
| `bkit-utility-update-documentation` | Sync every doc in `.agents/docs.md` with system state — drift cleanup across multiple plans. Ensure agent memories (`MEMORY.md` / `memory/*.md`) do not duplicate content and only contain pointers (path, section, one-line hook) to relevant `docs/*.md` sections / `docs/*.jsonl` entries. **If** memory contains duplicate / stale content → update memory. |
|
|
431
370
|
|
|
@@ -447,17 +386,16 @@ Text hooks add to an agent's context mid-run — every agent and subagent, no fr
|
|
|
447
386
|
<!-- prettier-ignore -->
|
|
448
387
|
| Behavior | Agents | Notes |
|
|
449
388
|
| --- | --- | --- |
|
|
450
|
-
| **Parallel-fan-out circular-reasoning guard** | `bkit-design-brainstorm-ideate-*` (triplet), `bkit-plan-review-*` (
|
|
451
|
-
| **Loop context accumulation** | `bkit-build-plan-verify`/`bkit-build-plan-gaps-remediate`, `bkit-
|
|
452
|
-
| **Tracker-bound output (`Output cap: 500 token prose`)** | `bkit-
|
|
453
|
-
| **Stubbed output (verdict + section placeholders)** | All multi-section verdict-bearing agents — critique / review (`bkit-
|
|
454
|
-
| **
|
|
455
|
-
| **
|
|
456
|
-
| **Central agent rules (`**Rules:**` bullet)** | every `.bkit/core/prompts/*.md` — no exceptions, no selection step | A single bullet appended to the EXECUTION PROTOCOL block, identical in every file. `.agents/rules.md` is a 2x2: `bkit Rules` and `Project Rules` each split into `Universal Rules` (binds every agent) and `Orchestrator Rules` (workflows / commands only — git, CI, merge, tracker, and human-gate rules a leaf must not act on). The prompt bullet says `FOLLOW ALL \`Universal Rules\`; SKIP \`Orchestrator Rules\``, so a consumer's own universal rules reach leaves while their orchestrator-only rules do not — the split is the consumer's declaration of which is which. Subsection names are shared across the two groups (`Agent Management`, `Git, CI & Merges`); a subsection is omitted only where it has no entry. `.bkit/core/engine/tools/wording.test.ts` enumerates the prompt directory at run time, asserts both groups appear under `bkit Rules`, and fails any orchestrator subsection whose name has no universal counterpart — so a newly added prompt is covered-or-failing by construction and the two groups cannot drift into synonyms. **Assertions stop at `bkit:end`:** everything below it is consumer-owned `Project Rules`, which `bkit install` never writes and `bkit check` ignores, so its shape is never gated — only that the shipped template seeds none of it. **Position is contract:** `**Rules:**` is always the first labelled clause of the CAUTION block and `**External input:**` ALWAYS the last, in every prompt and every workflow — the central set frames what follows, and the untrusted-content fence is the last thing read before the file's own instructions begin. Workflows take the unscoped variant `FOLLOW ALL rules` (they are the orchestrators `Orchestrator Rules` is written for, so nothing is skipped) and carry no separate `.agents/rules.md` pointer above the block — the bullet is the only one. The same unscoped line is the entry-file pointer in `CLAUDE.md`, `AGENTS.md`, and `.cursor/rules/bkit-rules.mdc`, un-quoted there (`- **Rules:**`) — those files have no CAUTION block to sit inside. `.bkit/core/engine/tools/wording.test.ts` asserts both anchors (`position: first` / `last` in `.bkit/wording.md`), the order of every positioned header clause in between (`position: header`, in `.bkit/wording.md` order), and that no workflow carries the leaf skip variant (`rules-leaf` is `forbidden` on workflows). **The bullet adds reach; it does not replace inlining, but inlining is a per-rule judgement, not an obligation.** Clauses a prompt still carries inline (`**Code reads:**` (one-line condensation of `rules.md` § `Code reads`), `**Order:**`, `**No improv:**`, `**Tools:**`, `**No commits:**` (prompts whose `tools` list holds `Bash`; forbidden without it), `**External input:**`, `**Destructive git PROHIBITED:**`) stay in the file and are also stated centrally — deliberate redundancy, because an execution surface must stand alone if the central read fails, truncates, or is deprioritised, and because prose far from the payload is the weakest placement for the rules injection targets. `**Auto-apply:**` is `rules.md` § `Orchestrator Rules` only — it governs how a workflow drives its own steps, so it is deliberately out of reach of leaves and inlined in no prompt. Leaves get the equivalent from `Recommend, do NOT decide` (`Universal Rules`), which already states that steps inside `/bkit-*` workflows are pre-approved. The central copy is the backstop and the home for every rule not inlined anywhere. |
|
|
389
|
+
| **Parallel-fan-out circular-reasoning guard** | `bkit-design-brainstorm-ideate-*` (triplet), `bkit-plan-review-*` (pair) + `bkit-plan-scope-check`, `bkit-build-challenge-*` (pair) | Each agent's prompt explicitly forbids reading any sibling output. The triplet carries per-slot lenses (pragmatic / optimal-tradeoff / risk-premortem for ideate); pairs carry per-slot lenses (plan text / code for plan-review, beside the scope check; bug-hunting / security for challenge). Effort-tier and model diversity provide reasoning-depth + cross-family spread. |
|
|
390
|
+
| **Loop context accumulation** | `bkit-build-plan-verify`/`bkit-build-plan-gaps-remediate`, `bkit-debug-failure-diagnose` | Per-attempt log files (`*-{N}-*.md`) — agent globs its own prior logs and adjusts strategy (Standard / Pivot / Final). Each loop stops at its ask point's limit (`bkit.workflows.<workflow>.<point>`) → Failure Path; with `ask` on, the orchestrator asks before each further round (`.bkit/workflows.md` § Ask points). `bkit-debug-failure-remediate` is strategy-blind — applies whatever the strategy-aware diagnosis generates. See `workflows.md` § Loop Context Accumulation. |
|
|
391
|
+
| **Tracker-bound output (`Output cap: 500 token prose`)** | `bkit-debug-abort-handover` | Output is pasted verbatim into the tracker comment thread (workflow `comment-post-step` block). Cap applies to prose only — sections that list items verbatim are exempt, since a reworded acceptance item or option loses the trade-off the human decides on. Self-contained — don't add references to other files the human reviewer can't open. **Cap belongs only here** — critique / review / diagnosis agents (`bkit-*-review-*`, `bkit-*-scope-check-*`, `bkit-build-plan-verify`, `bkit-build-challenge-*`, `bkit-debug-failure-diagnose`, `bkit-ship-deferred-sweep`) are uncapped because their output drives downstream apply steps (`*-update`, `*-remediate`) and detail compression there pushes interpretation cost onto the apply agent. |
|
|
392
|
+
| **Stubbed output (verdict + section placeholders)** | All multi-section verdict-bearing agents — critique / review (`bkit-design-review-*`, `bkit-design-spike`, `bkit-plan-review-*`, `bkit-plan-scope-check`, `bkit-build-plan-current`, `bkit-build-plan-verify`, `bkit-build-challenge-1`, `bkit-build-challenge-2`, `bkit-debug-failure-diagnose`, `bkit-ship-deferred-sweep`), top-of-pipeline synthesizers (`bkit-design-generate`, `bkit-plan-generate`, `bkit-audit-generate`), the tracker-bound handover (`bkit-debug-abort-handover`), and source modifiers (`bkit-build-plan-execute`, `bkit-build-plan-gaps-remediate`, `bkit-debug-failure-remediate`, `bkit-ship-conflict-resolve`) — see "Flat append-only log for source modifiers" row below. | Process shape: (1) Initialise **Create** output stub with PENDING placeholders (matches Output format); (2-3) re-read inputs + load docs; (4) Update **Create** output — replace each PENDING via `Edit` as content becomes available (standing directive for the analysis below); (5+) analysis steps fill PENDING incrementally as findings emerge. Output format shows each section ending with `; initially set to PENDING` annotation. Truncation recovery is **section-granular** — orchestrator greps for PENDING markers and re-issues specific gaps. Per-step gate `No PENDING placeholders remain` paired with `Verdict valid` enforces completeness. Plan-update / design-update / design-organise follow the same shape but bootstrap from the prior v(N) with `bkit steps stub --from= --to=` (Bash; `--strip-header` drops the prior header) instead of fresh stub (Write), so steps 2-4 above are steps 1-3 there. |
|
|
393
|
+
| **Untrusted-input prompt-defense** | every `.bkit/core/prompts/*.md` and every `.bkit/core/workflows/*.md` — no exceptions, no selection step | A single dense bullet in the `**Rules:**` block, identical in every file — the `external-input` clause in `.bkit/instructions.md`, a copy of the `.agents/rules.md` rule. `.bkit/core/engine/tools/instructions.test.ts` enumerates both directories at run time and fails on a file missing the clause, carrying a near-copy, or retaining the retired pre-universal variant, and asserts the clause keeps all three legs (data-not-instructions / report-directives / token-scope), so a newly added prompt is covered-or-failing by construction and no list is maintained anywhere. **Coverage is universal by decision, reversing an earlier scoped rule** that carried the bullet on 10 ingest-and-reason agents only and rejected blanket coverage on per-run token cost — classification is itself the defect (the judgement is re-made on every new prompt, silently, by whoever adds it), and per-file edit cost is unavoidable either way. Threat model, the write-time fence and the spawn-line notice: `docs/security.md` § Untrusted Content & Prompt Injection. |
|
|
394
|
+
| **Central agent rules (`**Rules file:**` bullet, `**Rules:**` block)** | every `.bkit/core/prompts/*.md` — no exceptions | `.agents/rules.md` is a 2x2: `bkit Rules` and `Project Rules` each split into `Universal Rules` (binds every agent) and `Orchestrator Rules` (workflows / commands only — git, CI, merge, tracker, and human-gate rules a leaf must not act on). **bkit rules are copied:** the `**Rules:**` block after `**Contract:**` holds, word for word and in `rules.md` order, every bkit `Universal Rules` bullet whose `- carry:` line in `.bkit/instructions.md` names the prompt (the agent acts on it: its carriers plus its tool set — `Bash` → `Destructive git PROHIBITED`, `Other parallel agents`; `Edit` / `Write` → `File edits`, `Edit tools ONLY`). A rule never appears in `**Protocol:**` or `**Contract:**` as well. A leaf sees only the bkit rules its carry lines name. **Project rules are read:** a prompt with `Grep` or `Bash` says ``Find the line of `<!-- bkit:end -->` in `.agents/rules.md` (`grep -n`), then read the file from that line on → follow its `Universal Rules`; skip its `Orchestrator Rules`.``, so its agent never loads the bkit block it already carries; a prompt with neither says ``Read `.agents/rules.md` below `<!-- bkit:end -->` → …``. Either way a consumer's universal rules and `## Project Settings` reach leaves while their orchestrator-only rules do not — the split is the consumer's declaration of which is which. Subsection names are shared across the two groups (`Agent Management`, `Git, CI & Merges`); a subsection is omitted only where it has no entry. **Position is contract:** `**Rules file:**` is always the first bullet of the `**Protocol:**` block, in every prompt and every workflow. Workflows and the repo-only `utility-*` agents (they push and merge) take the unscoped `**Rules file:**` line, and the entry files (`CLAUDE.md`, `AGENTS.md`, `.cursor/rules/bkit-rules.mdc`, un-quoted `- **Rules:**`) the same text under `**Rules:**`: ``Read `.agents/rules.md` → follow all rules.``. `.bkit/core/engine/tools/instructions.test.ts` asserts the three header blocks, the `**Rules file:**` anchor, the block and order of every placed header clause, `rules-leaf` forbidden on workflows and `utility-*` agents, both groups under `bkit Rules`, and a universal counterpart for every orchestrator subsection; `.bkit/core/engine/tools/instructions-coverage.test.ts` asserts every prompt holds each rule its carry line names, no prompt holds a bkit rule no carry line names, and every prompt carries at least one. **Assertions stop at `bkit:end`:** `Project Rules` is consumer-owned; `bkit install` never writes it and `bkit check` ignores it. Header clauses (`**Order:**`, `**No improv:**`, `**No commits:**` (prompts with `Bash`)) stay inline in every prompt they apply to. `**Auto-apply:**` is `Orchestrator Rules` only and inlined in no prompt. |
|
|
457
395
|
| **`.agents/docs.md` read exemption** | `bkit-utility-compress-markdown` | Single-file mechanical utility — compress prose in one supplied target. No domain reasoning, so the doc catalog earns nothing against its token cost. Every other prompt loads it. |
|
|
458
396
|
| **`acceptEdits` hard requirement** | All in-pipeline agents | `Bash(*)`/`Edit(*)`/`Write(*)` blanket-allow lives in `.claude/settings.json`; `acceptEdits` skips per-call prompts. Stricter modes break end-to-end runs. |
|
|
459
|
-
| **Plan
|
|
460
|
-
| **Flat append-only log for
|
|
397
|
+
| **Plan task ticking owned by verify** | `bkit-build-plan-execute` (ticks only applicable Pre-Flight and gate boxes), `bkit-build-plan-verify` (ticks task boxes `[ ]`→`[x]` only on verified codebase artifact) | Task checkboxes are verify's derived view of the codebase. The executor's durable progress record is its flat append-only log of `DONE —` lines, which keeps resume safe and keeps per-task `Edit` ticks out of its turn budget. Execute ticks each applicable Pre-Flight and gate box as that gate passes and continues without asking; it never ticks a task box or a human-confirmation box. |
|
|
398
|
+
| **Flat append-only log for source modifiers** | `bkit-build-plan-execute`, `bkit-build-plan-gaps-remediate`, `bkit-debug-failure-remediate` | Output format collapses to a single H1 + flat log body (no separate `Brief` / `Strategy` body sections — `Strategy` lives in machine-parseable header alongside `Verdict`; reasoning is implicit in `DONE —` / `BLOCKED —` lines). Stub state: `Verdict: PENDING` header + H1 + empty body. After every discrete unit of work (task / gap / finding / fix step): `Bash echo "DONE — {Unit} {N}: {name} — {outcome} ({path or commit ref})" >> {artifact}`. On failure: `BLOCKED — {Unit} {N}: {name} — {reason}`. Step 4 standing directive: `Update **Create** output — append DONE/BLOCKED log entries at EOF as content becomes available.` (vs canonical `replace each PENDING via Edit` for multi-section verdict-bearing agents). `Verdict` flips PENDING → PASS / CONCERNS / FAIL at the end via `Edit` on the header line. **Two wins:** (1) timeout resilience — partial progress is on disk after every appended line, so a budget-exhausted agent leaves a usable record (vs the prior antipattern: ~30 ticks clustered at end → all lost on timeout); (2) `Bash echo >>` is cheaper than `Edit` (no file-read for `old_string` match). **Skip-done logic** (read prior attempts via Read glob, skip units already in `DONE —`) added only where workflow already attempt-numbers and globs the artifact: `bkit-build-plan-gaps-remediate` (via `VERIFY_ATTEMPT`, glob already in its Read) and `bkit-build-plan-execute` (one `build-plan-execute-{GROUP}-log.md` per group; every attempt — a turn-cap re-run or a Decision Pause `Fix now` re-run — appends to it, and `bkit context brief --next` leaves out tasks it logs `DONE — TASK {N}:`). On PENDING (subagent timeout) the verify→remediate loop bounded by `build.verify.maxAttempts` absorbs recovery via `bkit-build-plan-gaps-remediate`. `bkit-debug-failure-remediate` is diagnosis-driven (each attempt fresh-strategy via `bkit-debug-failure-diagnose`) — skip-done would be wrong shape; gets stub+log only, but flat log still feeds `bkit-debug-failure-diagnose`'s loop-context glob with finer evidence. |
|
|
461
399
|
|
|
462
400
|
<!-- bkit:end -->
|
|
463
401
|
|
|
@@ -466,8 +404,9 @@ Text hooks add to an agent's context mid-run — every agent and subagent, no fr
|
|
|
466
404
|
> [!CAUTION]
|
|
467
405
|
> Add rows below to override bkit default model settings above.
|
|
468
406
|
> Providers: `cursor`, `openrouter`, `ollama`, …
|
|
469
|
-
> Example (non-Cursor): `| bkit-build-
|
|
407
|
+
> Example (non-Cursor): `| bkit-build-plan-verify | openrouter | openrouter/deepseek/deepseek-v4-pro |`
|
|
470
408
|
> Install merges overrides over defaults (override wins). Re-run `bkit install --cursor` after editing. Claude Code reads frontmatter — not overridable via this table yet.
|
|
409
|
+
> A row naming an agent bkit no longer ships is not applied; `bkit install` / `check` / `upgrade` list it as the `model-override-unknown-agent` advisory.
|
|
471
410
|
|
|
472
411
|
<!-- prettier-ignore -->
|
|
473
412
|
| Prompt | Provider | Model |
|
|
@@ -483,7 +422,7 @@ Text hooks add to an agent's context mid-run — every agent and subagent, no fr
|
|
|
483
422
|
| --- | --- | --- |
|
|
484
423
|
| `claude-opus-5-5` | `claude-opus-5-thinking-high` | `/v0/models` has no Opus 5.5 ID. Depth / synthesizers — paste block below |
|
|
485
424
|
| `claude-sonnet-5-5` | `claude-sonnet-5-thinking-high` | `/v0/models` has Sonnet 5, not 5.5. Shipped default stays `composer-2.5` / `cursor-grok-4.5-high` |
|
|
486
|
-
| `claude-haiku-5-5` | leave `composer-2.5` |
|
|
425
|
+
| `claude-haiku-5-5` | leave `composer-2.5` | Haiku tier — no change |
|
|
487
426
|
|
|
488
427
|
> **Orchestrators** (`/design` `/plan` `/debug`) are session model, not the override table — set the Cursor session / Cloud Agent model to `claude-opus-5-thinking-high` when invoking. `/build` `/ship` stay `composer-2.5` unless you override the session.
|
|
489
428
|
>
|
|
@@ -493,4 +432,4 @@ Text hooks add to an agent's context mid-run — every agent and subagent, no fr
|
|
|
493
432
|
| Prompt | Provider | Model |
|
|
494
433
|
| --- | --- | --- |
|
|
495
434
|
|
|
496
|
-
> Optional API cross-family (sonnet-tier diversity slots): `| bkit-design-brainstorm-ideate-2 | cursor | claude-sonnet-5-thinking-high |` (+ same for `bkit-design-review-2
|
|
435
|
+
> Optional API cross-family (sonnet-tier diversity slots): `| bkit-design-brainstorm-ideate-2 | cursor | claude-sonnet-5-thinking-high |` (+ same for `bkit-design-review-2`). `gpt-5.6-sol-high` is the non-Claude alternative. Probe live `/v0/models` before pinning — catalog churns. See `.bkit/providers.md` § Cursor model catalog.
|