Per-directory access permissions for the filesystem connector (read-only root, read-write subtree)
Problem
Currently, the filesystem connector's permission model is binary per granted root: once a directory is granted in Settings → Connectors, the connector gets the same access (search/read/write/edit) across the entire tree. Tool-level controls (auto-approve / ask / disabled) apply to the connector's actions globally, not to specific paths.
There is no way to express a very common requirement: let Lumo read everything in a directory, but write only in a designated subdirectory.
Concrete example:
- Grant read-only access to
~/Documents. - Grant read and write access to
~/Documents/Markdown.
This cannot be configured today. The workaround — granting write access to the whole root — exposes files the user never intended Lumo to modify. Granting only Documents/Markdown as a root loses the ability to read anything else in Documents.
Note: the existing idea about scoping connector grants to specific Projects/chats covers visibility (which chats see the connector). This request is orthogonal: it is about permission levels per path.
Proposal
Introduce per-path permission overrides within a granted root, following a standard inheritance model (similar to file-system ACLs):
- A root directory gets a base permission level: read-only, read-write, or none.
- Any subdirectory inside the root can override the inherited level (e.g. root = read-only,
Documents/Markdown= read-write). - Effective rights for any operation are resolved from the most specific matching rule after path canonicalization.
This composes naturally with the existing approval model: a "write" in an overridden read-write directory could still be set to ask-for-approval per action, while reads elsewhere in the root run automatically.
Security considerations
For this to be safe, effective-path resolution matters more than the UI:
- Canonicalization: compare rules against the canonicalized path (symlinks resolved,
..eliminated, mount points considered). Otherwise trivial escapes like~/Documents/../.sshinherit the wrong rule. - No privilege amplification: a more permissive rule on a child must never expand access to siblings (e.g.
Documents/Markdown/../Secretsmust resolve toDocuments/Secrets, not to the Markdown override). - Renaming/moving: define whether a rule follows the path (string match) or the directory (identity). Either is defensible, but it should be explicit, and a moved directory should not silently gain or lose permissions on files it carries.
- UI feedback: every file operation result should be auditable — e.g. a per-operation indicator showing which rule (root or override) authorized it.
Why this matters
The current all-or-nothing grant forces a choice between usefulness and safety: rich read access without write capability, or broad write exposure. Per-directory overrides remove this trade-off and align the connector model with how users actually organize their files (reference material vs. working directories). For a product where the selling point is "you decide exactly what Lumo can access," path-scoped permissions are the natural next step.