mirror of
https://github.com/HKUDS/CLI-Anything.git
synced 2026-08-30 17:34:27 +08:00
bc536c9beb
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.