/ccmaf:board-healfrom ccmaf
Reconcile the TASKS.md board with reality — advance stranded tasks, backfill verify seeds, fix IDs (CCMAF v2)
Ships in ccmaf. Installing the plugin adds it to Claude Code.
This command runs only in a CCMAF v2 project. Check
.claude/.framework-version before doing anything else:
.claude/.framework-version — this
isn't a CCMAF-scaffolded project") and stop.FRAMEWORK_LINE=v2 → say "this is a v1-line CCMAF
project — use the bundled /board-heal or migrate" and stop.FRAMEWORK_LINE=v2 → continue.Cold start runs automatically via the core plugin's SessionStart hook
(core-context.sh) — CLAUDE.framework.md is retired in v2; the always-on rules now
live in ${CLAUDE_PLUGIN_ROOT}/DIGEST.md, with cross-cutting reference detail in
${CLAUDE_PLUGIN_ROOT}/agent_docs/OPERATIONS.md.
/board-heal — reconcile the board (.claude/TASKS.md) with demonstrable reality: advance
tasks stranded in non-terminal columns to their TRUTHFUL status, backfill missing verify seeds,
renumber suffixed sub-IDs, and decompose genuine umbrella tasks — so the board and the Console's
Verify tab tell the truth. This is the FIX half of contract:board-coherence; the DETECT half is
doctor Check 15 (board-coherence) + Check 13. Before starting, read
${CLAUDE_PLUGIN_ROOT}/agent_docs/verify-handback.md (the seed schema + the retroactive/decompose
procedure) and the contract:board-coherence + contract:verify-handback blocks in
.claude/ECOSYSTEM.md.
board-coherence WARNING (missing seeds /
orphan seeds / malformed seeds / a base ID in two columns / an RfR pile-up) or a Check-13 SUFFIXED-ID warning, and
the user chose fix now. Or on demand..claude/TASKS.md and WRITES seed files. It never touches a recorded
human verdict — an existing .claude/console/verify/<ID>.json is left byte-for-byte alone
(WRITE-ONCE). Only missing seeds are created. The single exception is Step 3.5: a seed that
doctor flags as breaking contract:verify-handback may be repaired, and a repair always keeps
every recorded verdict..claude/ changes,
commit them (or stop and surface them) so the ENTIRE heal is one reviewable git diff. Revert is
git checkout. No bespoke backup./board-heal
immediately after must be a no-op (and doctor must come back clean).Create #### [TASK-N] (next free numeric id — see "Allocating a free id" below) in the Feature lane's
### In Progress: Board heal — reconcile board with reality (run <YYYY-MM-DD>). Every commit this
command makes carries that ID (commit convention is non-negotiable), and the heal earns its own
Verify story.
Allocating a free id (here and in Steps 1 and 4): the next free number is the highest
TASK-<n> / BUG-<n> ever issued + 1 — counted across the live board, the archives
housekeeping rotates entries into, and the verify-seed filenames, not just the live
TASKS.md. An archived id is still taken, and a reused id would inherit a stale
.claude/console/verify/<ID>.json seed and its verdicts:
{ cat .claude/TASKS.md .claude/archive/*.md .claude/docs/archives/*.md \
.claude/framework/docs/archives/*.md 2>/dev/null
ls .claude/console/verify/ 2>/dev/null; } \
| grep -oE 'TASK-[0-9]+' | sed 's/^TASK-0*//' | sort -n | tail -1
(swap TASK for BUG for a bug id). Allocate sequentially from there within one heal.
Doctor lists them ([TASK-Na] bracketed, or bare TASK-Na). The canonical ID is numeric; a
trailing alpha suffix is unsanctioned and NON-CANONICAL (current Console builds, ccmaf-console
0.2.3+, surface it flagged; older builds dropped a bracketed [TASK-017b] / mis-parsed a bare
TASK-017b into TASK-017). For each, in ascending board order:
#### [TASK-017b] Title → #### [TASK-<new>] Title) and add a body line
- **Was:** TASK-017b (renumbered by /board-heal <YYYY-MM-DD>) — past commits reference the old
id; the alias preserves the archaeology.For every task NOT in a terminal column (Done) and not in Todo/Blocked — i.e. In Progress,
Ready for Review, Ready for Test — determine where it ACTUALLY belongs from demonstrable
evidence, not from where it currently sits. Gather, per task:
git log --oneline --grep="TASK-N" -- . ':(exclude).claude' shows an implementation
commit; the code/files exist..claude/review-findings.md entry, a reviewer sign-off..claude/test-findings.md entry.Map evidence → status:
Ambiguous? — evidence conflicts, OR the task shipped but skipped the review/test gates (does it fast-track to Verify, or walk back through the gates?) → ASK THE HUMAN via AskUserQuestion, one decision per ambiguous cluster: fast-track to Verify (it shipped; acceptance is what's owed) / walk it back through review→test / leave as-is. Never silently fast-track a task past a gate — whatever the human decides is recorded in Step 5.
A task that has sat in Verify for a long time is not automatically still owed a human review. Its work may have been ported, split up, or replaced by a later task. Before you treat it as pending, walk the WHOLE chain:
Superseded by, Was:, "ported to", "split into", the decisions
log) to the end of the chain. A successor can itself have been superseded.grep -rl for its files or symbols outside .claude/,
and git log -1 -- <path> for the last commit that touched them. If the successor replaced it,
the review is owed against the successor, not this task.- **Superseded by:** TASK-<n> (/board-heal <YYYY-MM-DD>). Don't ask the human to verify work
that no longer ships. Leave its seed alone; when the task is archived, the seed moves to
.claude/console/verify/archive/ (never deleted)..claude/console/ existing; WRITE-ONCE)If .claude/console/ does NOT exist → SKIP this entire step (zero coupling — the project isn't
using a verify UI). Otherwise, for every task now in Verify (Feature lane) with NO
.claude/console/verify/<TASK-ID>.json:
/test seeds them.contract:verify-handback:
{ "schemaVersion": 1, "task": "<ID>", "status": "in-review", "items": [ … ] }, with items[] =
that task's acceptance criteria / use-cases (from the task's body bullets, its spec, or the
delivered feature). Each item: { "id": "<stable-slug>", "kind": "use-case", "title": "<non-empty>", "verdict": "pending", "severity": null }. Keep id a stable slug (the reconcile key).items[] — an empty checklist is not reviewable.contract:verify-handback finding)Doctor names each top-level seed that breaks the contract and gives the reason: invalid JSON,
schemaVersion is not 1, task is not the filename ID, status is outside
in-review|processing-fixes|done, items is not an array, or an item lacks id, kind or
title, has a verdict outside the enum, or reuses an id. The Console rejects these seeds, so the
story is invisible in the Verify tab. Repair each one in place:
grep -E '"verdict"[[:space:]]*:[[:space:]]*"(pass|fail|cr|blocked|warn)"'). Any hit → never
regenerate: make the smallest syntax repair that parses (a trailing comma, a missing bracket or
quote) and leave every other byte as it was. If no small repair parses, stop and ask the human.
No hit → treat it as the no-verdict case below.pending or has no verdict): rewrite the seed in the
Step 3 shape. Keep every item id and title you can recover and fill in only what is missing.pass/fail/cr/blocked/warn): patch the
structure only. Set schemaVersion: 1, set task to the filename ID, map a stray status to the
nearest enum value, and add a missing kind ("use-case") or a stable slug id. Keep every
item's verdict, severity, round, bugId, noteRounds and notes exactly as they are. If a
recorded verdict is itself outside the enum, or two items with verdicts share an id, ask the
human. Never guess a human's verdict.verify/archive/ are retired. Doctor skips them, and so does this step.jq -e . <file> before moving on.If a SINGLE task bundles multiple independently-verifiable features (an "implement the app"
umbrella), follow verify-handback.md's retroactive path: create one #### [TASK-N] per feature in
the Verify section, each carrying its use-cases, and seed each (Step 3). Keep the umbrella as a
parent/epic reference (note the children) or close it — don't delete delivered history.
Granularity test: "could the human accept feature A but reject feature B?" If yes → separate
tasks. If the board is already 1-task-per-feature (the common case), there is nothing to
decompose — skip this step.
DECISIONS.md entry: what moved, the evidence, and that the
human authorised it. This is what stops the heal itself from becoming the next board-vs-reality
drift.STATUS.md + claude-progress.txt with what the heal changed (renumbers, seeds, advances,
supersession closes, seed repairs, decompositions).fix: board heal — <N seeds backfilled, M IDs renumbered, K tasks advanced> (TASK-N).bash ${CLAUDE_PLUGIN_ROOT}/doctor/doctor.sh and confirm the board-coherence / suffixed-ID
findings are gone (explain any that remain by design). A second /board-heal must be a no-op.The board reflects reality: every Verify task has a seed (Ready-for-Test tasks stay seedless until
/test seeds them on PASS, moving to Verify), IDs are numeric, stranded
tasks sit at their truthful status, and the whole change is one reviewable commit. On a
Console-opted-in project the Verify tab now renders one story per delivered feature — the per-feature
review surface the batch build never produced.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
16 commands in this plugin
/analyseContext checkArchitect analysis of requirements and existing code into a design and task breakdown (CCMAF v2)/bugContext checkLog an ad-hoc bug into the TASKS.md Bug-Fix Lane in the shared on-disk bug shape (CCMAF v2)/build/ccmaf:build — the thin build loopTHIN build loop — dispatch against plan specs with budgets, receipts, integration gate, staged review (CCMAF v2)/healthcheckContext checkDeep periodic audit across framework integrity, code quality, contracts, state files and tests (CCMAF v2)/housekeepingContext checkFramework maintenance — rolling summary, state archiving and distillation, feedback reconciliation (CCMAF v2)/init/ccmaf:init — scaffold a CCMAF v2 projectScaffold this project onto the CCMAF v2 framework (state files, settings, aliases, feature opt-ins)npx claudepluginhub drushegh/ccmaf --plugin ccmaf