Skip to content

docs(sandbox): describe the kernel read denial in the agent guide and plan mode - #1877

Merged
edenreich merged 1 commit into
mainfrom
docs/kernel-read-denial
Nov 16, 2026
Merged

edenreich merged 1 commit into
mainfrom
docs/kernel-read-denial

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Follow-up to #1875, whose later commits (3472d44, 255cb31) made the kernel refuse reads, renames and deletes of the files the blocking deny entries name on macOS.

Summary

Two in-repo texts still described the old boundary:

  • AGENTS.md, Security Gotchas, said reads follow the argv path check. It now says a write outside sandbox.WritePaths fails with EACCES, on macOS a read, rename or delete of a file a blocking denied entry names fails too while directory entries such as .git/ stay with the argv path check, and denied entries match case-insensitively.
  • docs/plan-mode.md called it a known limit that an allow-listed command can reach outside the scratchpad through absolute arguments. It now says such a command can still read outside the scratchpad while a write outside it fails in the kernel and, on macOS, so does reading a file the deny list names.

Docs site: inference-gateway/docs#1233 was amended with the matching acceptance criteria.

… plan mode

The AGENTS.md security note said reads follow the argv path check and the
plan-mode guide called it a known limit that an allow-listed command can
reach outside the scratchpad through absolute arguments. Both predate the
kernel confinement: a write outside the write paths fails in the kernel,
and on macOS so does a read, rename or delete of a file a blocking denied
entry names, while directory entries such as .git/ stay with the path check
and denied entries match case-insensitively.
@edenreich
edenreich requested a review from a team as a code owner November 16, 2026 14:03
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 16, 2026
@edenreich edenreich moved this from Todo to QA in 2026 Nov 16, 2026
@edenreich
edenreich merged commit 857a30c into main Nov 16, 2026
1 check passed
@edenreich
edenreich deleted the docs/kernel-read-denial branch November 16, 2026 14:09
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.262.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 16, 2026
@edenreich edenreich moved this from QA to Done in 2026 Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant