feat(overlay): --check reports drift without writing - #10
Merged
Conversation
vstack overlay <repo> copies claude/ into a repo's .claude/ once; nothing reports when that repo drifts behind the template afterward. overlay.sh --check (also `vstack overlay --check <repo>`) diffs the destination against every unconditionally-copied file, the two seed_tmpl targets, and the .conductor/settings.toml pin, writes nothing, and exits 1 if anything is stale or missing.
--check's file list diverged from the write path: it never looked at CLAUDE.md/.claude/verify.sh (both seed-once, written by their own [ -f ] || cp branches rather than seed_tmpl) or the legacy .claude/CLAUDE.md deletion overlay performs on migrate. A repo missing either seeded file, or still carrying the pre-migration CLAUDE.md, reported clean. Add both check_seeded calls and a legacy-file check that counts toward the same stale/exit-1 gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overlaid repos never learn the template moved. overlay.sh --check compares the destination against the payload and prints stale / missing / differs (repo-owned) per file, exits 1 on stale or missing, writes nothing.
Verified in a scratch repo (0/0/0 then 1 stale + 1 missing after edits, dest git status unchanged) and against oslo (2 repo-owned diffs, exit 0). shellcheck clean. Inventory re-point follows in the merge.