feat(core): unify migrations under durable transaction-v1 execution - #33
Merged
Conversation
# Conflicts: # crates/folderbase-core/src/migration.rs # protocol/releases/0.5/folderbase-version-v1.json # protocol/releases/0.5/folderbase-version-v1.sha256
cap-std retains no-follow Linux directories with O_PATH, which makes both fchmod and fsync fail with EBADF. Reopen the fixed dot component through the retained capability before descriptor operations, preserving no-ambient-path authority. Add focused Linux regressions and reseal the protocol 0.5 closure.
Open Windows initialization roots with zero desired access and without delete sharing. This supports ACLs that permit traversal without GENERIC_READ while retaining a stable no-reparse namespace boundary for identity and child operations.
Apply initialization through the same no-follow root directory capability used for planning, so Windows never attempts to stream-open a directory and the namespace stays attached. Make adversarial replacement fixtures retain the displaced object under a temporary sibling, preventing immediate inode reuse from turning a foreign-object test into an identity no-op. Add a repeated artifact-free identity regression and reseal protocol 0.5.
Validation previously stream-opened the Folderbase root, which Windows rejects for directories. Use a least-privilege no-reparse directory handle, deny delete sharing, verify its kind, and keep every discovery read capability-relative.
Treat Windows directory handles as namespace capabilities rather than readable or writable streams across state, migration, and seal paths. Child operations obtain their own capability-relative file handles, while directory handles deny delete sharing and reject reparse points. Split the multi-command platform step so PowerShell cannot mask an earlier native test failure.
This was referenced Jul 31, 2026
This was referenced Jul 31, 2026
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.
Built on merged #32. Closes #31 when this PR merges.
Implements ADR-0007 semantic execution seam, immutable mutation programs, checksummed generations, restart-safe leaf transitions, bounded conflict evidence, legacy compatibility, structured CLI outcomes, and native filesystem safety.
User-visible behavior
Publication and recovery invariants
Hosted-gate root causes resolved
Risks
Verification