From the 2026-06-09 Architecture Review. Recommendation strength: Worth exploring.
Files
src/codeforerunner/skill_parity.py
src/codeforerunner/installer.py:124-131 (pass-through strip_frontmatter), installer.py:217-228 (inline body compare)
src/codeforerunner/doctor.py:65
scripts/validate_skill_copies.py
Problem
skill_parity is the Skill Body Parity module, and doctor plus validate_skill_copies.py use its high-level check_skill_body_parity(). The installer instead borrows the low-level split_frontmatter behind a one-line pass-through (which fails the deletion test) and re-derives body equality inline in plan_install. A change to the parity rule (e.g. whitespace normalization) must be made in two places.
Solution
Give skill_parity one high-level entry point the installer calls — source vs canonical in, result plus reason code (V10) out. Delete the installer's pass-through wrapper and inline comparison.
Benefits
- Locality: the parity rule changes in one module.
- Seam: three real adapters (installer, doctor, validator) on one interface.
- Tests: installer tests stop restating body equality;
test_install_body_parity_mismatch_aborts exercises the shared interface.
From the 2026-06-09 Architecture Review. Recommendation strength: Worth exploring.
Files
src/codeforerunner/skill_parity.pysrc/codeforerunner/installer.py:124-131(pass-throughstrip_frontmatter),installer.py:217-228(inline body compare)src/codeforerunner/doctor.py:65scripts/validate_skill_copies.pyProblem
skill_parityis the Skill Body Parity module, and doctor plusvalidate_skill_copies.pyuse its high-levelcheck_skill_body_parity(). The installer instead borrows the low-levelsplit_frontmatterbehind a one-line pass-through (which fails the deletion test) and re-derives body equality inline inplan_install. A change to the parity rule (e.g. whitespace normalization) must be made in two places.Solution
Give
skill_parityone high-level entry point the installer calls — source vs canonical in, result plus reason code (V10) out. Delete the installer's pass-through wrapper and inline comparison.Benefits
test_install_body_parity_mismatch_abortsexercises the shared interface.