Skip to content

Recover and retire proven copies of declared lane files - #183

Merged
Yehonal merged 1 commit into
mainfrom
fix/retire-declared-lane-copy
Nov 17, 2026
Merged

Yehonal merged 1 commit into
mainfrom
fix/retire-declared-lane-copy

Conversation

@Yehonal

@Yehonal Yehonal commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

A governed lane can retain staged, unstaged, or untracked copies of files already declared in its stack, leaving both publication and release blocked. Add worktree retire-copy LANE --reason REASON to preview path-by-path proof against one declared commit, then apply the exact digest after confirming writers have stopped.

The command independently verifies staged and working contents, preserves the original index, binary patches and untracked archive, verifies durable recovery before cleanup, and safely resumes interrupted cleanup. It leaves branch tips, lane registration, leases and retention locks unchanged. Push and release refusals now name the preview command. Native recovery-ref hooks remain enforced; unsupported files, ambiguous history, foreign ownership and changed inputs refuse without discarding work.

Validation: 28 new fixture tests and 35 compatibility checks pass, including native retire → release → push, crash recovery, unique staged data, Git history substitution, and hook refusal. An additional 12 module and documentation checks pass. Independent review is READY on 6a2548c; version guard and added-content privacy scan pass. Version 0.47.25. Full PR CI: 20/20 checks passed on the reviewed head, first attempt.

@Yehonal
Yehonal merged commit 71571f3 into main Nov 17, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant