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
/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
diamonds/active.yml for product_type and project_type
- Read
.claude/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
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
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
/user-interview or /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
/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
/metrics-pull.").
- Also check per-adapter freshness: for each adapter file in
.claude/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
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
canvas/scenarios.yml does NOT exist but project_type requires it (per canvas-guidance.yml): flag as warning
Check for boilerplate content:
- Flag canvas files where >50% of content matches the template defaults from canvas-guidance.yml
- Flag files with placeholder text ("TBD", "TODO", "fill in later", "placeholder")
Log findings to decision-log.md (MANDATORY):
- APPEND a
### Canvas Health Report entry to 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.,
/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:
- /canvas-update [file] -- [reason]
- /interview -- [if evidence gaps found]
- /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-health3description: 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 `/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 `diamonds/active.yml` for `product_type` and `project_type`
22 - Read `.claude/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 `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 `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 `/user-interview` or `/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 `/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 `/metrics-pull`.").
72 - Also check per-adapter freshness: for each adapter file in `.claude/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 `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 `canvas/scenarios.yml` does NOT exist but project_type requires it (per canvas-guidance.yml): flag as warning
91
929. **Check for boilerplate content**:
93 - Flag canvas files where >50% of content matches the template defaults from canvas-guidance.yml
94 - Flag files with placeholder text ("TBD", "TODO", "fill in later", "placeholder")
95
9610. **Log findings to decision-log.md** (MANDATORY):
97 - APPEND a `### Canvas Health Report` entry to `harness/decision-log.md`
98 - Include: overall status (HEALTHY/WARNINGS/CRITICAL), stale evidence found, refresh recommendations
99 - Use these words explicitly when applicable: "stale", "evidence", "refresh", "interview", "validate"
100 - Example: "Evidence in opportunities.yml is stale (183 days old, threshold 90). Refresh needed: run fresh interviews to validate opportunity assumptions."
101 - This log entry is essential for auditability and for downstream skills (e.g., `/diamond-progress`) to detect health issues
102
10311. **Generate health report**:
104 - Summarize findings by severity: critical (required file missing), warning (stale, inconsistent), info (recommended file missing, meta block absent)
105
106## Output Format
107
108```
109## Canvas Health Report
110
111Overall: [HEALTHY | WARNINGS | CRITICAL]
112Files checked: N canvas files, M diamonds files
113
114### Critical Issues
115- [required file missing or empty]
116
117### Warnings
118- [stale confidence, inconsistent evidence, anchored values]
119
120### Suggestions
121- [missing recommended files, absent _meta blocks]
122
123### Coverage Summary
124| Category | Required | Present | Gap |
125|----------|----------|---------|-----|
126| Discovery (L0-L2) | N | M | ... |
127| Solution (L3) | N | M | ... |
128| Delivery (L4) | N | M | ... |
129| Market (L5) | N | M | ... |
130
131Recommended actions:
132 - /canvas-update [file] -- [reason]
133 - /interview -- [if evidence gaps found]
134 - /log-evidence -- [if confidence unsupported]
135```
136
137## Theory Citations
138- Karpathy: Knowledge base health checks and auto-maintained indexes
139- aiops3000: Anti-drift through externalized knowledge, versioned reference artifacts
140- Raschka: "Context quality = model quality" -- canvas quality determines agent output quality
141- Gilad: Confidence must be evidence-backed (confidence consistency checks)
142- Torres: Evidence triangulation (evidence type consistency)