Skill v1.0.0
currentAutomated scan100/100name: heal-verify description: > Phase 4 of 4 (final) in the heal chain. Re-runs the phase 1 baseline commands, diffs the results against the recorded baseline, re-scans touched files for regressions, and writes HEAL-REPORT.md summarizing the whole run. Trigger when heal-fix says "run /heal-verify", or standalone via "heal-verify", "verify the heal fixes", "confirm the codebase is healed". metadata: version: "1.0.0"
Heal: Verify
Chain version: 1
Phase 4 of 4: scan → plan → fix → verify
Overview
Proves the healing worked: re-runs the exact commands phase 1 recorded as the baseline, compares counts before vs after, re-scans every touched file, and produces the final deliverable, HEAL-REPORT.md, in the project root.
Workflow
Step 1 — Load State
Read .heal-state.md from the project root:
- If missing → "No state file found. Run
heal-scanfirst." - If the frontmatter doesn't parse or is missing
task/started/status/
chain_version → "State file is malformed. Not proceeding on an unreadable state file."
- If
chain_versionis not1→ "State file was written by an incompatible
version of the heal chain."
- If
statusis not one of this chain's known values (in-progress,
phase-1-done, phase-2-done, phase-3-done, complete) → "Unrecognized status <actual> — this state file may belong to a different or since-edited chain."
- If
statusis known but notphase-3-done→ "Expected statusphase-3-done
but found <actual>. Run the previous phase first."
- If any of
## Phase 1 — Scan,## Phase 2 — Plan, or## Phase 3 — Fixis
missing despite the right status → "Status says phase-3-done but a required section is missing. Treat as corrupted."
Check for .heal-state.lock (abort if present), then create it.
Step 2 — Full Verification
- Re-run the baseline. Run every command in the Phase 1 Baseline table
(tests, type check, lint, build) exactly as recorded, and diff the counts: previously failing tests that were fixed must now pass; previously passing tests must still pass; type/lint error counts must not have grown. If the state file predates the Baseline table, fall back to the Phase 1 Output summary and note the comparison is approximate.
- Touched-file re-scan — re-apply the phase 1 silent-failure and logic
passes to every file phase 3 modified, looking for regressions the tests don't cover.
- Verified-by audit — confirm each bug phase 3 marked fixed was
verified by its plan's Verify method; re-run any that weren't recorded.
- Failed/skipped audit — for each bug phase 3 marked failed or skipped,
confirm the original defect is still present (it should be) and carry it into the report's follow-up list.
If verification finds a regression introduced by a fix, do NOT fix it here — record it in the report's follow-up list. Fixing belongs to a new chain run where it gets a plan and review.
Step 3 — Write the Report
Generate HEAL-REPORT.md in the project root:
- Run summary: task, dates, counts (found / fixed / skipped / failed / deferred)
- Before vs after table: each baseline command with its phase 1 counts next
to its phase 4 counts — the one-glance proof the run helped
- Per-bug table combining the finding, decision, outcome, and how it was
verified
- Follow-up list: deferred bugs, failed fixes, skipped fixes, any regressions
found in Step 2 — the next heal-scan run reads this list as its seed
Step 4 — Finalize State
Atomically rewrite .heal-state.md (temp file + rename): keep everything, append the Phase 4 section, set status: complete:
## Phase 4 — Verify**Output**: baseline diff <before → after per check>; HEAL-REPORT.md written; <N> follow-ups**Key decisions**: <regressions found, if any; what the follow-up list contains>
Delete .heal-state.lock.
Handoff
After completing, output exactly:
Chain complete! All 4 phases finished. State written to.heal-state.md.The report is atHEAL-REPORT.md. Runheal-scanagain to start a new run.
Do not continue. Stop here.