Skip to content

Protect and reclaim saved binary versions with retained reader leases - #102

Merged
vanedaltro merged 2 commits into
mainfrom
feat/binary-version-retention
Nov 2, 2026
Merged

vanedaltro merged 2 commits into
mainfrom
feat/binary-version-retention

Conversation

@vanedaltro

Copy link
Copy Markdown
Contributor

Saved binary images need to remain available while a view or prepared save uses them, and expired history needs recoverable reclamation.

Add shared history leases for saved readers and prepared saves, bind saved views to every original source parent, and retire eligible saved versions to durable tombstones before reclaiming unreferenced images. Current and dirty bases, Last Save, checkpoint-protected versions, pending notifications, uncertain operations, and changed/unclassified stages remain protected. Cleanup rechecks cancellation and trusted authority before each namespace change and never changes source bytes.

Validation: 79 binary-core tests passed (one child helper ignored); core library/test Clippy and strict OpenSpec validation (114 items) passed. The rebase onto merged #101 has an identical source tree to the tested branch.

This provides the storage primitive. The seven-day retention/checkpoint adapter and remaining editor acceptance are follow-up work under #94; this PR does not close that issue.

@vanedaltro
vanedaltro marked this pull request as ready for review November 2, 2026 12:28
@vanedaltro
vanedaltro merged commit fd38dea into main Nov 2, 2026
19 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