<< All versions

Skill v1.0.0

currentAutomated scan100/100
kcanom/pi-healing/heal-verify
──Details
PublishedNovember 15, 2026 at 03:13 AM
Content Hashsha256:0092073e416a59fc...
Git SHAf9acc7287164
──Files
Files (1 file, 4.1 KB)
SKILL.md4.1 KBactive
SKILL.md · 103 lines · 4.1 KB

name: 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-scan first."
  • 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_version is not 1 → "State file was written by an incompatible

version of the heal chain."

  • If status is 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 status is known but not phase-3-done → "Expected status phase-3-done

but found <actual>. Run the previous phase first."

  • If any of ## Phase 1 — Scan, ## Phase 2 — Plan, or ## Phase 3 — Fix is

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

  1. 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.

  1. 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.

  1. 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.

  1. 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:

markdown
## 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 at HEAL-REPORT.md. Run heal-scan again to start a new run.

Do not continue. Stop here.

All versions