Skip to content

fsHost: remote file and search operations #1297

Open

Description

@eric8810

Current delivery boundary

The process fsHost provides 12 of the 19 planned operations. Product catalog at 1c6506c39.

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, glob and grep operate 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

  1. added
    core
    on Nov 8, 2026
  2. self-assigned this
    on Nov 16, 2026
  3. eric8810 commented on Nov 16, 2026

    @eric8810
    CollaboratorAuthor

    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.

  4. added
    P2
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions