fs::Root, and a Root parameter is filled in by the callerOpen and answer this issue on GitHub.
tools, compiler, ready, future · opened 2026-11-21 · updated 2026-11-21 · 0 comments
Part of #1433 After #2565
The derivation of touches (crates/nikaia-std/src/compiler/touch.nika) records the root of a file permission, by the fs::Root rule the owner decided (2026-11-08, #1433): writing fs::Root::Dir("site") with a literal reaches file(Dir("site")); fs::Root::Anywhere, Dir("/") or Dir( a computed path ) reaches file(anywhere); a Root taken as a parameter is recorded as file(root) and the caller fills it in, as file(path) is filled in today, so the function gets no file system authority of its own; fs::scratch() reaches file(scratch).
fs::Root rule in the derivation (touch.nika): the root recorded in the kind, a Root parameter filled in by the caller. Tests: a literal Dir, Anywhere, a Root parameter passed from main, scratch(), each through nikaia permissions.nikaia permissions shows file(Dir("site")) for a literal root, file(anywhere) for Anywhere, the caller’s root for a Root parameter passed from main and file(scratch) for scratch(), shown by tests; that commit carries Fixes with this issue’s number, and the report has a Found: line per finding.
crates/nikaia-std/src/compiler/touch.nika and its lowered file. Not changed: what touches orders (ADR-292).
Split from #1433 by Claude Code