You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document the Rust read-only library carve-out in the sandbox docs #1033
The CLI sandbox has a built-in read-only carve-out for language dependency sources. PR inference-gateway/cli#1626 extends it from Go to Rust: the Cargo registry sources and git checkouts ($CARGO_HOME/registry/src and $CARGO_HOME/git/checkouts, default ~/.cargo) and the rustup toolchain sources ($RUSTUP_HOME/toolchains/*/lib/rustlib/src, default ~/.rustup) are now readable without configuration, while writes stay denied. The CLI repo's own docs (docs/tools-reference.md, internal/sandbox/README.md) were updated in the same PR; the user-facing docs site needs matching copy.
Acceptance Criteria
The sandbox/filesystem section of the docs site lists the Rust read-only carve-out directories next to the Go ones ($CARGO_HOME/registry/src, $CARGO_HOME/git/checkouts, $RUSTUP_HOME/toolchains/*/lib/rustlib/src, with their default homes)
A note that writes under these directories stay denied, matching the pre-existing Go carve-out wording
Read the issue and the upstream CLI wording (internal/sandbox/README.md, docs/tools-reference.md)
Locate the sandbox section on the docs site (cli.md → File sandbox → Defaults)
Add the Rust carve-out directories next to the Go ones
Note that writes under them stay denied
Validate: bun run format:check, bun run lint:md, bun run build
Commit and open the PR
What changed
One paragraph plus a table in cli.md, directly after the existing built-in carve-out list in the File sandbox section:
Language
Directories
Go
$GOMODCACHE (or $GOPATH/pkg/mod) and $GOROOT/src
Rust
$CARGO_HOME/registry/src and $CARGO_HOME/git/checkouts (default ~/.cargo), plus $RUSTUP_HOME/toolchains/*/lib/rustlib/src (default ~/.rustup)
Followed by the note that writes under these directories stay denied, so the agent cannot edit a vendored dependency in place.
One thing worth flagging: the Go carve-out had never been documented on the docs site at all, so there was nothing for the Rust entry to sit "next to". Both languages now land in the same table rather than documenting Rust alone against an invisible precedent.
Scoped to the File sandbox section only. The upstream tools-reference.md also mentions the carve-out under its bash allow-list section, but the docs site's Command allow-listing section does not go into path-level detail, so repeating it there would have been noise.
Activity
edenreich commentedon Oct 28, 2026
@claude can you document this?
inference-gateway-maintainer commentedon Oct 28, 2026
Claude finished @edenreich's task in 2m 13s —— View job •
docs/issue-1033-20261028-1415• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1033-20261028-1415?quick_pull=1&title=Issue%20%231033%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231033%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented the read-only library carve-out
internal/sandbox/README.md,docs/tools-reference.md)cli.md→ File sandbox → Defaults)bun run format:check,bun run lint:md,bun run buildWhat changed
One paragraph plus a table in
cli.md, directly after the existing built-in carve-out list in the File sandbox section:$GOMODCACHE(or$GOPATH/pkg/mod) and$GOROOT/src$CARGO_HOME/registry/srcand$CARGO_HOME/git/checkouts(default~/.cargo), plus$RUSTUP_HOME/toolchains/*/lib/rustlib/src(default~/.rustup)Followed by the note that writes under these directories stay denied, so the agent cannot edit a vendored dependency in place.
One thing worth flagging: the Go carve-out had never been documented on the docs site at all, so there was nothing for the Rust entry to sit "next to". Both languages now land in the same table rather than documenting Rust alone against an invisible precedent.
Scoped to the File sandbox section only. The upstream
tools-reference.mdalso mentions the carve-out under its bash allow-list section, but the docs site's Command allow-listing section does not go into path-level detail, so repeating it there would have been noise.PR: #1034
--- ·
docs/issue-1033-20261028-1415inference-gateway-releaser commentedon Oct 31, 2026
🎉 This issue has been resolved in version 0.9.23 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀