Repository navigation
Open
Labels
Description
In-dashboard file manager (Files destination)
Implement the Files dock destination specced in docs/specs/FILES.md. This resolves the last Tier-1 product-surface gap from NEXT.md — "files are first-class" is true on disk but has no in-product browse surface today (only path is SMB + a desktop file manager). Target audience is the Plex/Synology user who will never mount an SMB share.
Scope (v1)
Two roots only: My files (/home/<user>/) and Shared (/srv/malmo/shared/). Operations: list/browse, download, upload, new folder, rename, move, copy, delete. Lists whatever folders exist (no hardcoded use-case menu). App state and the rest of the host FS are out of scope.
Load-bearing decisions (see DECISIONS.md 2026-05-31)
- Execution: host-agent, as the requesting user's UID/GID (privilege-drop per op). The brain is containerized behind the socket-proxy and cannot touch
/home. POSIX0750/02770becomes the kernel-enforced backstop; created files get correct ownership natively; symlink attacks contained; fscrypt-ready. - Scope is own + Shared for everyone, admins included — no browse-all-homes view (required by the fscrypt-forward discipline in
STORAGE.md/APP_ISOLATION.md). Admin reach into other homes stays at SSH/sudorescue. - Transfers = streamed binary body, a deliberate exception to the ">5s = job" rule (transport-native progress, no server-side job state). Brain pipes bytes without buffering whole files.
- No audit, no elevation re-prompt for file CRUD (user acting on own data).
- Thumbnails/preview deferred (generic icons + download-to-view in v1).
Wire surfaces to build
- host-agent
/v1/files/*— metadata ops (Pattern A) + streamedGET/PUT /v1/files/content, all as the user UID. SeeBRAIN_HOST_PROTOCOL.md# Files endpoints. - brain
/api/v1/files/*— Pattern A list/mkdir/move/copy/delete + streaming content. SeeBRAIN_UI_PROTOCOL.md# Files. - web-ui Files view (dock destination,
DASHBOARD.md# global navigation).
Failure modes
Honor existing health issues: data-drive-missing (blocks_writes → 409 blocked-by-health-issue), disk-full (507). See HEALTH.md.
Notes
- New host-integrated code (file ops on the real FS) — wants the VM/host outer loop, not just the native dev loop.
- Deferred sub-items tracked in
NEXT.md: admin break-glass, search, zip download, trash+undo, in-place editing, resumable uploads, sharing links, bulk USB/network import. - Add to
docs/progress/README.md# Up next when picked up; progress entry on completion (Closes #<N>).
Activity