Skip to content

feat(core): add an opt-in workspace scope for regular file reads - #66206

Closed
jhodak wants to merge 13 commits into
anomalyco:devfrom
jhodak:workspace-read-scope
Closed

jhodak wants to merge 13 commits into
anomalyco:devfrom
jhodak:workspace-read-scope

Conversation

@jhodak

@jhodak jhodak commented Nov 25, 2026

Copy link
Copy Markdown

Add a provider-neutral, opt-in scope for native Linux regular-file reads. A trusted adapter reports live workspace membership for the native session and Location through experimental.workspace.readScope. The read tool applies native read rules to both path forms, rechecks membership immediately before opening, and uses the opened descriptor for content.

The opt-in-only workspace_read_scope flag gates this experiment. Directory listing, mutations, search, and shell keep their current access checks. The hook creates no saved grants. A missing scope keeps native behavior and a failed or ambiguous managed lookup stops the scoped read.

The canonical bun run check passed. Focused tests cover session separation, revocation, directory fallback, and symlinks. This draft requests review of the boundary and scope semantics before broadening tool coverage.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 72 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Nov 28, 2026
@github-actions github-actions Bot closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant