Skip to content

feat: add retained raw filesystem tree operations - #1014

Merged
sanohiro merged 2 commits into
mainfrom
feat/fs-retained-tree
Sep 10, 2026
Merged

feat: add retained raw filesystem tree operations#1014
sanohiro merged 2 commits into
mainfrom
feat/fs-retained-tree

Conversation

@sanohiro

Copy link
Copy Markdown
Owner

Retained filesystem operations let Align code enumerate exact raw basenames and operate relative to owned directory identity. fs.open_directory returns 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.

@sanohiro
sanohiro marked this pull request as ready for review September 10, 2026 06:03
@sanohiro
sanohiro merged commit d469adc into main Sep 10, 2026
9 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