File directory move (rename)
Real rename / move for fs-backed types: editing a :path value on a directory or file record should rename the thing everywhere it lives. Today only insert creates fs state (valid-new-directory / store-directory for directories, two-phase upload for files); there is no move anywhere, and be-update never touches the fs.
A real move fans out across three stores that must stay in sync:
- Descendant rows: renaming
/a/to/b/rewrites the:pathvalue of every descendant directory and file row (prefix rewrite) - RBAC resource names (
update-resource-namefollows the DB row today; the resource must follow the move) - The on-disk directory / file itself
No transactions: a partial fan-out leaves DB, RBAC, and fs desynced (the exact corruption the interim fix below prevents), so this needs an ordering / recovery plan — e.g. DB-first with fs rename last and a repair sweep for the gap, or a resumable operation record.
Interim mitigation (added 2026-10-20): "Directory path edits bypass validation" (MVP Now) skirts this hole by rejecting :path edits outright — valid-updated-directory in be-update signals on any change to a :path field's value, total gate, admin included, leaf (file) types gated identically. Rename and move are blocked, not supported. When this item lands, that gate is replaced by (or narrowed around) real move handling.
- Slot
- 10100
- Status
- 10 Open
- Tags
- backend
- Contributors
- Donnie