Repository navigation
Open
Description
Current delivery boundary
The process fsHost provides 12 of the 19 planned operations. Product catalog at 1c6506c39.
- Pinned readers:
openRead,readAt,closeRead(feat(storage): expose pinned readers through fsHost #1699). - Directory operations:
createDirectory,list,remove(Expose directory creation, listing and removal on fsHost #1867). - File and lease operations:
stat,readBytes,lock,unlock,backup,replace. Hooks reads use the file owner (Expose leased file operations and migrate Hooks reads to fsHost #1871). - Workspace operations:
resolve,read,write,edit,glob,grep,mentions. Migrate the tool, completion and FileAccess callers and verify the remote resource-node flows below.fileStorageandmentionIndexare still native.
Session file path import and fileId reads are delivered. Their existing limits apply. Owner contract: resource operations. Overall migration: #1292.
Context
File tools use std::fs and local path facts. A remote primitive API (stat/open/read) is not acceptable: grep and glob would become thousands of round trips and lose the openat, symlink, lock and revision guarantees.
Scope
- Operations that run on the node: read, write, edit, glob, grep, file search, mentions; bounded pages; no per-file RPC for a traversal.
- Facts (
workspace,system,owned,grant) are computed on the node; approvals stay on the control side. - Session files and exec output stay on the node; the returned paths remain stable for history.
- Decide the placement: a tool leaf (read/write/edit/glob/grep run there) or remote operations called from the existing tools. One choice, no mixed paths.
Acceptance
read,write,edit,globandgrepoperate on node files in a flow test.- A path outside the workspace is refused by the same facts rule, computed on the node.
- A grep over a large tree is one operation, not a round trip per file.
- The result shape (content, structured content, errors) does not change.
Notes
Depends on the resource leaf contract and the shape-policy issue.
Activity
docs: define execHost, fsHost and store as data faces
docs: fix recognition, reset cursor and path resolution in the faces
docs: close the face gaps the review found
docs: close resource face contract gaps
docs: define resource leaf data faces (#1397)
eric8810 commentedon Nov 16, 2026
Taking the bounded pinned-reader slice as part of #1292: openRead/readAt/closeRead over the existing FileStorage reader identity and 64 KiB read bound, with caller-unload and explicit-close cleanup. Native and wire bindings will share the owner; no second reader registry or I/O queue. Existing file ID/path upload remains in place. This is partial progress toward this issue, not completion of the broader remote filesystem/search acceptance; bulk read/replace transport and other owner operations remain separate.
fix(storage): preserve native readers when face close is refused
feat(storage): expose pinned readers through fsHost