feat: add retained raw filesystem tree operations - #1014
Merged
Conversation
sanohiro
marked this pull request as ready for review
September 10, 2026 06:03
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.
Retained filesystem operations let Align code enumerate exact raw basenames and operate relative to owned directory identity.
fs.open_directoryreturns a Move directory; independent cursors survive directory Drop and return owned names. Nineteen operations add no-follow relative admission, exclusive creation, nonrecursive removal, descriptor metadata and explicit mode changes under plan 45.The compiler preserves ordinary Result/Option and recursive Move cleanup. A closed operation table fixes inputs, receiver authority and outputs; HIR/MIR certify exact reserved schemas and fresh native scratch, including both cursor outputs. Recursive collection exclusions include filesystem owners hidden in sums while preserving existing AoS record carriers. Runtime failures respect deterministic validation and output-publication precedence; failed create publication closes its descriptor without a racy rollback unlink.
Validation covers whole/per-unit generics and cache edits, all metadata fields against the OS, retained rename/raw names, cursor states, umask, native constructor failures, malformed HIR/MIR and independent ABI signatures/exports. Cleanup owners detect omitted directory, cursor and entry Drop. Review fixes close exclusive fixture ownership, symlinked temporary-root portability and recursive carrier admission, with a mutation-verified negative control. Final preflight runs the focused owners, bounded gate and Clippy.
This implements R64. The existing read_dir slice fixture is synchronized with the already-merged R67 contract. align-llm adoption and application traversal/snapshot policy remain consumer-owned; R65 containment qualification remains separate.