Canvas Health Check
Audit the canvas knowledge base for quality, consistency, and completeness. The canvas is Mycelium's source of truth -- its quality directly determines agent output quality (Raschka: "context quality = model quality").
When to Use
- Before any diamond phase transition (called automatically by
/mycelium:diamond-assess)
- After a period of inactivity (>7 days since last canvas update)
- When agent output quality seems to degrade
- After onboarding a new team member (ensures canvas is self-explanatory)
- Proactively: run periodically to catch silent drift
Workflow
Load project configuration:
- Read
.claude/diamonds/active.yml for product_type and project_type
- Read
${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml for required/recommended/optional files per project type
Check file presence:
- For each required canvas file: does it exist? Is it non-empty (>50 bytes)?
- For each recommended canvas file: does it exist? Flag as gap if missing.
- Report:
N/M required files present, K recommended files missing
Check _meta blocks:
- For each existing canvas file, check for
_meta: block
- Flag missing
_meta blocks
- Flag
last_validated older than 30 days (staleness warning)
- Flag
version field missing or at 0
Check confidence consistency:
- Gather all
confidence: values across canvas files
- Flag confidence > 0.5 with
evidence_type: speculation or evidence_type: assumption
- Flag confidence > 0.7 with fewer than 2 evidence sources
- Flag confidence values that haven't changed across git history (anchored confidence anti-pattern)
- Cross-check against
.claude/diamonds/active.yml confidence
Check evidence type consistency:
- Every canvas file with
evidence_type: should have it set to one of: interview, survey, analytics, experiment, speculation, assumption, mocked_persona
- Flag unknown evidence types
- Flag
evidence_type: interview when only mocked personas were used (honesty check)
- Every
source_class: value should be one of: external_human, external_data, internal_stakeholder, internal_desk, internal_simulated — flag unknown values
- Flag
internal_stakeholder evidence with confidence > 0.5 that has validated: false or no validated field — stakeholder beliefs should not carry high confidence without external validation (Brown: organizational mythology)
- Flag L2 opportunity canvas entries where ALL evidence is
internal_stakeholder or internal_desk — no external human voice heard (Spool: secondhand research insufficient)
Check for orphaned references:
- Canvas files that reference other canvas files (e.g., jobs-to-be-done.yml referencing opportunities.yml) -- verify the referenced file exists
- Diamond references to canvas files -- verify they exist
Check evidence freshness (evidence decay):
- Scan all
provenance blocks across canvas files for validated_at or captured_at timestamps
- Compare against staleness thresholds from
${CLAUDE_PLUGIN_ROOT}/engine/evidence-decay.md:
- User needs/interviews: 90 days
- Competitive intelligence: 90 days
- Strategic assumptions: 180 days
- Technical feasibility: 120 days
- DORA/delivery metrics: 30 days
- Flag evidence past threshold as warning; past 3x threshold as critical
- Suggest refresh actions: "Evidence in [file] is [N] days old. Run
/mycelium:user-interview or /mycelium:log-evidence to refresh."
- Note: corrections and patterns do NOT decay — process learnings are timeless
7b. Check metric snapshot freshness (v0.14):
- If
.claude/jit-tooling/active-metrics.yml exists, for each status: active source:
- Find the newest snapshot in
.claude/evals/metrics/<source>/.
- If >7 days old: warning ("[source] snapshot is [N] days old — run
/mycelium:metrics-pull to refresh").
- If >30 days old: critical (evidence this stale is worse than no metric reference — anchors old state).
- If missing entirely: info-level ("No snapshots yet for [source]. Run
/mycelium:metrics-pull.").
- Also check per-adapter freshness: for each adapter file in
${CLAUDE_PLUGIN_ROOT}/jit-tooling/metrics-adapters/, if last_known_working is >180 days old, flag as warning suggesting regeneration via metrics-adapters/GENERATING.md.
- Source: v0.14 metrics harvesting. Metric evidence has a faster staleness curve than interview evidence because the underlying data changes continuously.
- Check cross-reference integrity (leaf lifecycle):
- Every GIST idea with
source_leaf_id → verify that leaf exists in opportunities.yml (and not in archived-solutions.yml without the GIST being shelved)
- Every service entry with
gist_id → verify that GIST idea exists
- Every threat model entry with
solution_id → verify that solution exists
- Every go-to-market
feedback_loop entry with source_leaf_id → verify leaf exists
- Flag broken references as warnings ("Zombie Solution" anti-pattern)
8b. Check scenario health (Hoskins):
- If
.claude/canvas/scenarios.yml exists:
- Every scenario must have all four Hoskins elements populated (persona, means, motive, simulation) — flag incomplete scenarios
- Every scenario must have
lifecycle.born_at set — flag if missing (orphan scenario with no origin)
- Every scenario with
confidence > 0.5 must have evidence sources — flag unsupported confidence
- Every scenario referenced in
lifecycle.designed_against[] → verify the solution exists in opportunities.yml or gist.yml
- Every scenario referenced in
lifecycle.tested_against[] → verify test date is not in the future
- Flag scenarios with
status: draft older than 30 days (stale draft — either promote or discard)
- If
.claude/canvas/scenarios.yml does NOT exist but project_type requires it (per ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml): flag as warning
8c. Human-task reconciliation (added v0.31.3, closes the evidence/status/consent decoupling drift — corrections.md 2026-05-28):
The failure this catches: a fact about a human-task lives in 2+ places (the task status, the evidence file it produced, the contributor's consent registry) and only the salient one gets updated, so the canvas silently drifts from reality. Three sub-checks over .claude/canvas/human-tasks.yml#pending_tasks:
- (a) Status-vs-activity staleness: for each task whose
status is non-terminal (NOT completed/abandoned/stalled), compute the latest activity date across updated_at, touch_log[].date, and partial_findings[].date. If the latest is >21 days ago (or no activity date at all), flag: "ht-XXX untouched [N]d while still [status] — decide: mark stalled, mark abandoned, or nudge the contact. Abandonment is a non-event; nothing else will surface this." (The session-start hook flags this at 14d for awareness; canvas-health is the deeper 21d decision prompt.)
- (b) Evidence-exists-but-task-open: for each non-terminal task, check whether it has already produced evidence — i.e. it has a populated
partial_findings block, OR its canvas_refs resolve to real evidence entries in purpose.yml/user-needs.yml dated at/after the task's activity. If evidence exists but the task is still open, flag: "ht-XXX has captured evidence (partial_findings / linked purpose.yml entry) but status is [status] — close it (completed) or record why it stays open. Logging evidence and closing the source task are separate steps; this catches the gap." Recommend /mycelium:log-evidence should be closing the task going forward.
- (c) Consent-registry sync (best-effort; cross-source): if an attribution registry is available (
$MYCELIUM_ATTRIBUTION_REGISTRY or a private companion repo's .claude/memory/attribution-registry.yml), compare each contributor's consent value there against any consent state recorded in the agent's auto-memory (~/.claude/projects/<id>/memory/). Flag mismatches: "Consent for [name] is [X] in the registry but [Y] in auto-memory — the registry is canonical (Check 33 reads it); sync them." If neither source is accessible in the current context, skip this sub-check and note it was skipped. Do NOT print the literal value of any generic_only/project-name carve-out term into the report.
Output all three as warnings (not critical) — they are drift, not breakage. Each names the specific ht-ID and the specific action.
8d. Learning-target coupling on feedback tasks (added v0.31.6, closes the "we asked for feedback but didn't ask what we needed to learn" gap — see engine/canvas-guidance.yml#learning_target_coupling):
The failure this catches: the canvas carries open learning needs (ON HOLD / RE-GATED action flags, in-progress human-tasks naming a MISSING SIGNAL, low-confidence entries with an un-validated assumption), AND a feedback-gathering task is open, but the task's questions target none of those gaps — so the feedback returns whatever the respondent volunteers rather than the answers the canvas is waiting on. Feedback capacity is scarce and non-repeating; an un-targeted session spends it without retiring any gap.
- First, build the open-gap set: scan all canvas
.yml files for (i) ON HOLD / RE-GATED markers, (ii) human-tasks.yml tasks with status: in_progress whose success_criteria name a MISSING SIGNAL or un-met track, (iii) entries with confidence < 0.5 carrying a named un-validated assumption. If the open-gap set is empty, skip this check (nothing to couple to).
- Then, for each feedback-gathering task that is open (
human-tasks.yml tasks with a key_questions block, status non-terminal): check whether any question carries a [target → <file>#<anchor>] tag (the coupling tag) OR plainly references one of the open gaps by name. If NONE do, flag (NUDGE): "ht-XXX gathers feedback but none of its key_questions target an open canvas gap ([list 2-3 open gaps]). Seed ≥1 learning-target question per learning_target_coupling, or record why this is pure discovery."
- Also flag any
[target → ref] tag whose <file>#<anchor> does not resolve to a real canvas entry (broken coupling — the gap it claimed to feed was renamed or closed): "ht-XXX question tags [ref] but that entry no longer exists — re-point or drop the tag."
- NUDGE-tier, not a gate. Zero-target feedback sessions are legitimate (pure discovery); the check makes the omission a visible choice rather than an oversight. Each flag names the specific ht-ID and the specific open gaps it could target.
- Check for boilerplate content:
- Flag canvas files where >50% of content matches the template defaults from ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml
- Flag files with placeholder text ("TBD", "TODO", "fill in later", "placeholder")
9b. Check docs/ health (added 2026-05-08 with the docs restructure):
- Audience markers: every public doc under
docs/ (excluding docs/receipts/cases/ which carry frontmatter) must have Audience, Time to read, and Last updated lines in the first 5 lines. Flag missing markers.
- Stub freshness: docs containing
is forthcoming are Phase 2 stubs. Flag any stub with Last updated older than 60 days — Phase 2 may have stalled.
- Length budget compliance: per
docs/README.md and docs/contributing/style.md:
- README ≤ 250 lines (hard cap; soft cap 200)
docs/<page>.md ≤ 400 lines (hard cap; soft cap 250)
docs/receipts/cases/<case>.md ≤ 250 lines (hard cap; soft cap 150)
- Flag any file over hard cap (FAIL); warn over soft cap (NUDGE).
- Last updated freshness: any
docs/ file with Last updated older than 180 days gets flagged for refresh.
- Information scent on links: scan for "click here", "see filename" patterns — these violate the scent rule. Flag for review.
- Marketing-voice scan: scan for "powerful", "comprehensive", "robust", "seamless", "best-in-class". Flag occurrences for voice review per
docs/contributing/style.md.
- Receipts case frontmatter: every file under
docs/receipts/cases/ must have YAML frontmatter with the required fields (id, date, contributor, contributor_link, project, mechanism_or_status, commits, subclass). Flag missing fields.
- Highlights rotation cadence: if README's "How Mycelium got smarter" section has not changed in >90 days (check git log for last commit touching that section), flag as a rotation candidate per
docs/contributing/style.md#highlights-rotation. The flag is informational; rotation is a /mycelium:framework-health decision, not an automatic move.
9c. Check action-flag timeout handling (added 2026-05-23 v0.23.43, closes a documented-rule-diverges-from-enforcement instance):
Per ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml#action_flags.transitions.timeout_handling: "ON HOLD entries with calendar conditions (e.g., 'pending May 7 evidence') that pass their named date should be flagged, not silently expired. Surface as a stale flagged item via /canvas-health (existing staleness machinery applies). Do NOT auto-transition to OPEN — the absence of the awaited evidence is itself a finding worth surfacing to the user. After 30 days past a named date with no resolution, suggest re-evaluating whether the condition is still relevant."
The convention says canvas-health surfaces this. Until v0.23.43 it didn't — the convention was written 2026-05-03 but no canvas-health check was added. This check closes that gap (cluster instance #11 of documented-rule-diverges-from-enforcement, 2026-05-23).
Concretely:
- Scan all canvas
.yml files for ON HOLD markers via the keyword pattern: (ON HOLD|on hold) with a parenthetical containing a calendar date in any of: YYYY-MM-DD, Month DD, MM/DD/YYYY, or month-name forms (e.g., "May 7", "May 2026").
- For each match, parse the date. Resolve relative months to the most plausible recent occurrence (e.g., "May 7" → most recent 2026-05-07).
- Compare to today's date:
- Future date → no flag (item correctly waiting).
- Past date, <30 days → warning: surface the item as a flagged-pending-with-passed-date, recommend the user check whether the awaited evidence has arrived (and if so, transition per
transitions.on_hold_condition_met audit rules). Format: "Canvas [file]: item flagged ON HOLD pending [name] [date]; date passed [N] days ago. Evidence: check if [name] arrived; if yes, transition ON HOLD → OPEN per canvas-guidance#transitions; if no, leave."
- Past date, ≥30 days → escalation: same format plus "≥30 days past named date — re-evaluate whether the condition is still relevant or whether the underlying assumption has changed (per canvas-guidance#transitions.timeout_handling.escalation)."
- Do NOT auto-transition any marker. The check surfaces; the maintainer decides.
- The check is INCOMPLETE without inspection of awaited-evidence sources. Treat the output as a prompt for human judgment, not a verdict.
- Log findings to .claude/harness/decision-log.md (MANDATORY):
- APPEND a
### Canvas Health Report entry to .claude/harness/decision-log.md
- Include: overall status (HEALTHY/WARNINGS/CRITICAL), stale evidence found, refresh recommendations
- Use these words explicitly when applicable: "stale", "evidence", "refresh", "interview", "validate"
- Example: "Evidence in opportunities.yml is stale (183 days old, threshold 90). Refresh needed: run fresh interviews to validate opportunity assumptions."
- This log entry is essential for auditability and for downstream skills (e.g.,
/mycelium:diamond-progress) to detect health issues
- Generate health report:
- Summarize findings by severity: critical (required file missing), warning (stale, inconsistent), info (recommended file missing, meta block absent)
Output Format
## Canvas Health Report
Overall: [HEALTHY | WARNINGS | CRITICAL]
Files checked: N canvas files, M diamonds files
### Critical Issues
- [required file missing or empty]
### Warnings
- [stale confidence, inconsistent evidence, anchored values]
### Suggestions
- [missing recommended files, absent _meta blocks]
### Coverage Summary
| Category | Required | Present | Gap |
|----------|----------|---------|-----|
| Discovery (L0-L2) | N | M | ... |
| Solution (L3) | N | M | ... |
| Delivery (L4) | N | M | ... |
| Market (L5) | N | M | ... |
Recommended actions:
- /mycelium:canvas-update [file] -- [reason]
- /mycelium:interview -- [if evidence gaps found]
- /mycelium:log-evidence -- [if confidence unsupported]
Theory Citations
- Karpathy: Knowledge base health checks and auto-maintained indexes
- aiops3000: Anti-drift through externalized knowledge, versioned reference artifacts
- Raschka: "Context quality = model quality" -- canvas quality determines agent output quality
- Gilad: Confidence must be evidence-backed (confidence consistency checks)
- Torres: Evidence triangulation (evidence type consistency)
1---2name: canvas-health-23description: Lint canvas files for staleness, missing fields, inconsistent evidence types, and orphaned references. Run periodically or before major transitions.4---5
6# Canvas Health Check
7
8Audit the canvas knowledge base for quality, consistency, and completeness. The canvas is Mycelium's source of truth -- its quality directly determines agent output quality (Raschka: "context quality = model quality").
9
10## When to Use
11
12- Before any diamond phase transition (called automatically by `/mycelium:diamond-assess`)
13- After a period of inactivity (>7 days since last canvas update)
14- When agent output quality seems to degrade
15- After onboarding a new team member (ensures canvas is self-explanatory)
16- Proactively: run periodically to catch silent drift
17
18## Workflow
19
201. **Load project configuration**:
21 - Read `.claude/diamonds/active.yml` for `product_type` and `project_type`
22 - Read `${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml` for required/recommended/optional files per project type
23
242. **Check file presence**:
25 - For each **required** canvas file: does it exist? Is it non-empty (>50 bytes)?
26 - For each **recommended** canvas file: does it exist? Flag as gap if missing.
27 - Report: `N/M required files present, K recommended files missing`
28
293. **Check `_meta` blocks**:
30 - For each existing canvas file, check for `_meta:` block
31 - Flag missing `_meta` blocks
32 - Flag `last_validated` older than 30 days (staleness warning)
33 - Flag `version` field missing or at 0
34
354. **Check confidence consistency**:
36 - Gather all `confidence:` values across canvas files
37 - Flag confidence > 0.5 with `evidence_type: speculation` or `evidence_type: assumption`
38 - Flag confidence > 0.7 with fewer than 2 evidence sources
39 - Flag confidence values that haven't changed across git history (anchored confidence anti-pattern)
40 - Cross-check against `.claude/diamonds/active.yml` confidence
41
425. **Check evidence type consistency**:
43 - Every canvas file with `evidence_type:` should have it set to one of: `interview`, `survey`, `analytics`, `experiment`, `speculation`, `assumption`, `mocked_persona`
44 - Flag unknown evidence types
45 - Flag `evidence_type: interview` when only mocked personas were used (honesty check)
46 - Every `source_class:` value should be one of: `external_human`, `external_data`, `internal_stakeholder`, `internal_desk`, `internal_simulated` — flag unknown values
47 - Flag `internal_stakeholder` evidence with confidence > 0.5 that has `validated: false` or no `validated` field — stakeholder beliefs should not carry high confidence without external validation (Brown: organizational mythology)
48 - Flag L2 opportunity canvas entries where ALL evidence is `internal_stakeholder` or `internal_desk` — no external human voice heard (Spool: secondhand research insufficient)
49
506. **Check for orphaned references**:
51 - Canvas files that reference other canvas files (e.g., jobs-to-be-done.yml referencing opportunities.yml) -- verify the referenced file exists
52 - Diamond references to canvas files -- verify they exist
53
547. **Check evidence freshness** (evidence decay):
55 - Scan all `provenance` blocks across canvas files for `validated_at` or `captured_at` timestamps
56 - Compare against staleness thresholds from `${CLAUDE_PLUGIN_ROOT}/engine/evidence-decay.md`:
57 - User needs/interviews: 90 days
58 - Competitive intelligence: 90 days
59 - Strategic assumptions: 180 days
60 - Technical feasibility: 120 days
61 - DORA/delivery metrics: 30 days
62 - Flag evidence past threshold as warning; past 3x threshold as critical
63 - Suggest refresh actions: "Evidence in [file] is [N] days old. Run `/mycelium:user-interview` or `/mycelium:log-evidence` to refresh."
64 - Note: corrections and patterns do NOT decay — process learnings are timeless
65
667b. **Check metric snapshot freshness** (v0.14):
67 - If `.claude/jit-tooling/active-metrics.yml` exists, for each `status: active` source:
68 - Find the newest snapshot in `.claude/evals/metrics/<source>/`.
69 - If >7 days old: warning ("[source] snapshot is [N] days old — run `/mycelium:metrics-pull` to refresh").
70 - If >30 days old: critical (evidence this stale is worse than no metric reference — anchors old state).
71 - If missing entirely: info-level ("No snapshots yet for [source]. Run `/mycelium:metrics-pull`.").
72 - Also check per-adapter freshness: for each adapter file in `${CLAUDE_PLUGIN_ROOT}/jit-tooling/metrics-adapters/`, if `last_known_working` is >180 days old, flag as warning suggesting regeneration via `metrics-adapters/GENERATING.md`.
73 - Source: v0.14 metrics harvesting. Metric evidence has a faster staleness curve than interview evidence because the underlying data changes continuously.
74
758. **Check cross-reference integrity** (leaf lifecycle):
76 - Every GIST idea with `source_leaf_id` → verify that leaf exists in `opportunities.yml` (and not in `archived-solutions.yml` without the GIST being shelved)
77 - Every service entry with `gist_id` → verify that GIST idea exists
78 - Every threat model entry with `solution_id` → verify that solution exists
79 - Every go-to-market `feedback_loop` entry with `source_leaf_id` → verify leaf exists
80 - Flag broken references as warnings ("Zombie Solution" anti-pattern)
81
828b. **Check scenario health** (Hoskins):
83 - If `.claude/canvas/scenarios.yml` exists:
84 - Every scenario must have all four Hoskins elements populated (persona, means, motive, simulation) — flag incomplete scenarios
85 - Every scenario must have `lifecycle.born_at` set — flag if missing (orphan scenario with no origin)
86 - Every scenario with `confidence > 0.5` must have evidence sources — flag unsupported confidence
87 - Every scenario referenced in `lifecycle.designed_against[]` → verify the solution exists in `opportunities.yml` or `gist.yml`
88 - Every scenario referenced in `lifecycle.tested_against[]` → verify test date is not in the future
89 - Flag scenarios with `status: draft` older than 30 days (stale draft — either promote or discard)
90 - If `.claude/canvas/scenarios.yml` does NOT exist but project_type requires it (per ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml): flag as warning
91
928c. **Human-task reconciliation** (added v0.31.3, closes the evidence/status/consent decoupling drift — corrections.md 2026-05-28):
93
94The failure this catches: a fact about a human-task lives in 2+ places (the task `status`, the evidence file it produced, the contributor's consent registry) and only the salient one gets updated, so the canvas silently drifts from reality. Three sub-checks over `.claude/canvas/human-tasks.yml#pending_tasks`:
95
96 - **(a) Status-vs-activity staleness**: for each task whose `status` is non-terminal (NOT `completed`/`abandoned`/`stalled`), compute the latest activity date across `updated_at`, `touch_log[].date`, and `partial_findings[].date`. If the latest is >21 days ago (or no activity date at all), flag: "ht-XXX untouched [N]d while still `[status]` — decide: mark `stalled`, mark `abandoned`, or nudge the contact. Abandonment is a non-event; nothing else will surface this." (The session-start hook flags this at 14d for awareness; canvas-health is the deeper 21d decision prompt.)
97 - **(b) Evidence-exists-but-task-open**: for each non-terminal task, check whether it has already produced evidence — i.e. it has a populated `partial_findings` block, OR its `canvas_refs` resolve to real evidence entries in purpose.yml/user-needs.yml dated at/after the task's activity. If evidence exists but the task is still open, flag: "ht-XXX has captured evidence (partial_findings / linked purpose.yml entry) but status is `[status]` — close it (`completed`) or record why it stays open. Logging evidence and closing the source task are separate steps; this catches the gap." Recommend `/mycelium:log-evidence` should be closing the task going forward.
98 - **(c) Consent-registry sync** (best-effort; cross-source): if an attribution registry is available (`$MYCELIUM_ATTRIBUTION_REGISTRY` or a private companion repo's `.claude/memory/attribution-registry.yml`), compare each contributor's `consent` value there against any consent state recorded in the agent's auto-memory (`~/.claude/projects/<id>/memory/`). Flag mismatches: "Consent for [name] is `[X]` in the registry but `[Y]` in auto-memory — the registry is canonical (Check 33 reads it); sync them." If neither source is accessible in the current context, skip this sub-check and note it was skipped. Do NOT print the literal value of any `generic_only`/project-name carve-out term into the report.
99
100 Output all three as warnings (not critical) — they are drift, not breakage. Each names the specific ht-ID and the specific action.
101
1028d. **Learning-target coupling on feedback tasks** (added v0.31.6, closes the "we asked for feedback but didn't ask what we needed to learn" gap — see `engine/canvas-guidance.yml#learning_target_coupling`):
103
104The failure this catches: the canvas carries open learning needs (ON HOLD / RE-GATED action flags, in-progress human-tasks naming a MISSING SIGNAL, low-confidence entries with an un-validated assumption), AND a feedback-gathering task is open, but the task's questions target none of those gaps — so the feedback returns whatever the respondent volunteers rather than the answers the canvas is waiting on. Feedback capacity is scarce and non-repeating; an un-targeted session spends it without retiring any gap.
105
106 - First, build the open-gap set: scan all canvas `.yml` files for (i) `ON HOLD` / `RE-GATED` markers, (ii) `human-tasks.yml` tasks with `status: in_progress` whose `success_criteria` name a MISSING SIGNAL or un-met track, (iii) entries with `confidence < 0.5` carrying a named un-validated assumption. If the open-gap set is empty, skip this check (nothing to couple to).
107 - Then, for each feedback-gathering task that is open (`human-tasks.yml` tasks with a `key_questions` block, status non-terminal): check whether any question carries a `[target → <file>#<anchor>]` tag (the coupling tag) OR plainly references one of the open gaps by name. If NONE do, flag (NUDGE): "ht-XXX gathers feedback but none of its key_questions target an open canvas gap ([list 2-3 open gaps]). Seed ≥1 learning-target question per `learning_target_coupling`, or record why this is pure discovery."
108 - Also flag any `[target → ref]` tag whose `<file>#<anchor>` does not resolve to a real canvas entry (broken coupling — the gap it claimed to feed was renamed or closed): "ht-XXX question tags [ref] but that entry no longer exists — re-point or drop the tag."
109 - NUDGE-tier, not a gate. Zero-target feedback sessions are legitimate (pure discovery); the check makes the omission a visible choice rather than an oversight. Each flag names the specific ht-ID and the specific open gaps it could target.
110
1119. **Check for boilerplate content**:
112 - Flag canvas files where >50% of content matches the template defaults from ${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml
113 - Flag files with placeholder text ("TBD", "TODO", "fill in later", "placeholder")
114
1159b. **Check `docs/` health** (added 2026-05-08 with the docs restructure):
116 - **Audience markers**: every public doc under `docs/` (excluding `docs/receipts/cases/` which carry frontmatter) must have **Audience**, **Time to read**, and **Last updated** lines in the first 5 lines. Flag missing markers.
117 - **Stub freshness**: docs containing `is forthcoming` are Phase 2 stubs. Flag any stub with `Last updated` older than 60 days — Phase 2 may have stalled.
118 - **Length budget compliance**: per `docs/README.md` and `docs/contributing/style.md`:
119 - README ≤ 250 lines (hard cap; soft cap 200)
120 - `docs/<page>.md` ≤ 400 lines (hard cap; soft cap 250)
121 - `docs/receipts/cases/<case>.md` ≤ 250 lines (hard cap; soft cap 150)
122 - Flag any file over hard cap (FAIL); warn over soft cap (NUDGE).
123 - **Last updated freshness**: any `docs/` file with `Last updated` older than 180 days gets flagged for refresh.
124 - **Information scent on links**: scan for "click here", "see [filename](path)" patterns — these violate the scent rule. Flag for review.
125 - **Marketing-voice scan**: scan for "powerful", "comprehensive", "robust", "seamless", "best-in-class". Flag occurrences for voice review per `docs/contributing/style.md`.
126 - **Receipts case frontmatter**: every file under `docs/receipts/cases/` must have YAML frontmatter with the required fields (id, date, contributor, contributor_link, project, mechanism_or_status, commits, subclass). Flag missing fields.
127 - **Highlights rotation cadence**: if README's "How Mycelium got smarter" section has not changed in >90 days (check git log for last commit touching that section), flag as a rotation candidate per `docs/contributing/style.md#highlights-rotation`. The flag is informational; rotation is a `/mycelium:framework-health` decision, not an automatic move.
128
1299c. **Check action-flag timeout handling** (added 2026-05-23 v0.23.43, closes a documented-rule-diverges-from-enforcement instance):
130
131Per `${CLAUDE_PLUGIN_ROOT}/engine/canvas-guidance.yml#action_flags.transitions.timeout_handling`: "ON HOLD entries with calendar conditions (e.g., 'pending May 7 evidence') that pass their named date should be flagged, not silently expired. Surface as a stale flagged item via /canvas-health (existing staleness machinery applies). Do NOT auto-transition to OPEN — the absence of the awaited evidence is itself a finding worth surfacing to the user. After 30 days past a named date with no resolution, suggest re-evaluating whether the condition is still relevant."
132
133The convention says canvas-health surfaces this. Until v0.23.43 it didn't — the convention was written 2026-05-03 but no canvas-health check was added. This check closes that gap (cluster instance #11 of documented-rule-diverges-from-enforcement, 2026-05-23).
134
135Concretely:
136- Scan all canvas `.yml` files for ON HOLD markers via the keyword pattern: `(ON HOLD|on hold)` with a parenthetical containing a calendar date in any of: `YYYY-MM-DD`, `Month DD`, `MM/DD/YYYY`, or month-name forms (e.g., "May 7", "May 2026").
137- For each match, parse the date. Resolve relative months to the most plausible recent occurrence (e.g., "May 7" → most recent 2026-05-07).
138- Compare to today's date:
139 - Future date → no flag (item correctly waiting).
140 - Past date, <30 days → **warning**: surface the item as a flagged-pending-with-passed-date, recommend the user check whether the awaited evidence has arrived (and if so, transition per `transitions.on_hold_condition_met` audit rules). Format: "Canvas [file]: item flagged ON HOLD pending [name] [date]; date passed [N] days ago. Evidence: check if [name] arrived; if yes, transition ON HOLD → OPEN per canvas-guidance#transitions; if no, leave."
141 - Past date, ≥30 days → **escalation**: same format plus "≥30 days past named date — re-evaluate whether the condition is still relevant or whether the underlying assumption has changed (per canvas-guidance#transitions.timeout_handling.escalation)."
142- Do NOT auto-transition any marker. The check surfaces; the maintainer decides.
143- The check is INCOMPLETE without inspection of awaited-evidence sources. Treat the output as a prompt for human judgment, not a verdict.
144
14510. **Log findings to .claude/harness/decision-log.md** (MANDATORY):
146 - APPEND a `### Canvas Health Report` entry to `.claude/harness/decision-log.md`
147 - Include: overall status (HEALTHY/WARNINGS/CRITICAL), stale evidence found, refresh recommendations
148 - Use these words explicitly when applicable: "stale", "evidence", "refresh", "interview", "validate"
149 - Example: "Evidence in opportunities.yml is stale (183 days old, threshold 90). Refresh needed: run fresh interviews to validate opportunity assumptions."
150 - This log entry is essential for auditability and for downstream skills (e.g., `/mycelium:diamond-progress`) to detect health issues
151
15211. **Generate health report**:
153 - Summarize findings by severity: critical (required file missing), warning (stale, inconsistent), info (recommended file missing, meta block absent)
154
155## Output Format
156
157```
158## Canvas Health Report
159
160Overall: [HEALTHY | WARNINGS | CRITICAL]
161Files checked: N canvas files, M diamonds files
162
163### Critical Issues
164- [required file missing or empty]
165
166### Warnings
167- [stale confidence, inconsistent evidence, anchored values]
168
169### Suggestions
170- [missing recommended files, absent _meta blocks]
171
172### Coverage Summary
173| Category | Required | Present | Gap |
174|----------|----------|---------|-----|
175| Discovery (L0-L2) | N | M | ... |
176| Solution (L3) | N | M | ... |
177| Delivery (L4) | N | M | ... |
178| Market (L5) | N | M | ... |
179
180Recommended actions:
181 - /mycelium:canvas-update [file] -- [reason]
182 - /mycelium:interview -- [if evidence gaps found]
183 - /mycelium:log-evidence -- [if confidence unsupported]
184```
185
186## Theory Citations
187- Karpathy: Knowledge base health checks and auto-maintained indexes
188- aiops3000: Anti-drift through externalized knowledge, versioned reference artifacts
189- Raschka: "Context quality = model quality" -- canvas quality determines agent output quality
190- Gilad: Confidence must be evidence-backed (confidence consistency checks)
191- Torres: Evidence triangulation (evidence type consistency)