Files
CLI-Anything/.github
yuhao bc536c9beb fix(ci): make root-skill validation refuse to recommend destroying edits
validate_root_skills.py compared source and mirror with a symmetric `!=`,
so it detected divergence but never direction, and printed the same advice
either way: "Run sync_root_skills.py and commit."

That advice is only correct when the harness source moved ahead. When the
edit is in the generated skills/ mirror -- as in #360 -- sync regenerates
the mirror from the source and silently deletes the change. The validator
then passes, so CI turns green and certifies the loss.

Detect the direction. When the mirror holds lines the source lacks, name
them, point at the source file, and never suggest the destructive command.
Regenerable drift keeps the old advice. Also make sync_root_skills.py
report each file it creates or overwrites instead of writing in silence.

Verified: in-sync, mirror-edited, source-edited, missing-mirror, and
idempotent no-op.
2026-07-09 13:05:56 +00:00
..
2026-04-07 17:01:44 +00:00
2026-04-29 11:08:16 +00:00
2026-04-29 12:00:19 +00:00