Skip to content

[DOCS] Document the Rust read-only library carve-out in the sandbox docs #1033

Closed

Description

Summary

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

Reference

Activity

  1. added
    documentation
    on Oct 28, 2026
  2. edenreich commented on Oct 28, 2026

    @edenreich
    Contributor

    @claude can you document this?

  3. inference-gateway-maintainer commented on Oct 28, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    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

    • 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.

    PR: #1034

    --- · docs/issue-1033-20261028-1415

  4. moved this from Todo to In progress in 2026on Oct 28, 2026
  5. moved this from In progress to QA in 2026on Oct 28, 2026
  6. moved this from QA to Done in 2026on Oct 29, 2026
  7. inference-gateway-releaser commented on Oct 31, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.23 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions