Repository navigation
[mount-docs] Document sbx /usr/local/bin share and optional /tmp/gh-aw - #11816
Merged
Merged
Conversation
The sbx backend (src/sbx/sandbox-create.ts) always shares /usr/local/bin and shares /tmp/gh-aw only when it exists on the host. mount-policy.md said the sbx default shares only /tmp/gh-aw, and sbx-integration.md called the system mounts 'always-added'. Align both with the implementation. Co-authored-by: Copilot <[email protected]>
Collaborator
|
@copilot merge main and resolve conflicts |
…sync-cc474d5-092d89ed0b4df4da # Conflicts: # docs/mount-policy.md Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Contributor
Merged |
Contributor
Author
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit c5891ae |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The documentation remains internally inconsistent because it describes /tmp/gh-aw as unconditional in the generated command and summary despite the implementation treating the path as optional.
1 open issue
What changed in this PR
This documentation-only pull request updates sbx mount descriptions to reflect the implementation, including the /usr/local/bin toolchain share and the conditional /tmp/gh-aw mount.
Changes:
- Documents the sbx
/usr/local/binshare and curated home tool paths. - Clarifies that
/tmp/gh-awis mounted only when it exists on the host. - Updates sbx system-mount terminology to distinguish unconditional and conditional mounts.
| File | Description |
|---|---|
| docs/sbx-integration.md | Updates sbx system-mount documentation to distinguish the unconditional /usr/local/bin mount from the conditional /tmp/gh-aw mount. |
| docs/mount-policy.md | Documents the sbx /usr/local/bin share and curated policy-managed home tool-path mounts. |
Review effort: Lite (adaptive)
Comment on lines
+223
to
+224
| 3. **System mounts** that carry the toolchain and runtime state (`/usr/local/bin` always; | ||
| `/tmp/gh-aw` only when it exists on the host): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Audited commit:
cc474d5758e0ae5ac18b297b9d979b1e52b4862f(from/tmp/gh-aw/mount-docs/main-sha.txt).Discrepancies and corrections
docs/mount-policy.md(sbx default share set). The guide said the sbx default "similarly shares/tmp/gh-awrather than/tmp", which implies/tmp/gh-awis the only host share beyond the workspace and policy tool paths. The implementation also shares/usr/local/bin. The line now names that narrow toolchain share and the policy home tool paths.src/sbx/sandbox-create.tsL150 (for (const sysPath of ['/tmp/gh-aw', '/usr/local/bin'])), and home tool paths at L166–L176.docs/sbx-integration.md("always-added" system mounts). The guide called the three system mounts "always-added". The code skips/tmp/gh-awwhen it does not exist on the host, so only/usr/local/binis unconditional. The heading now says so.src/sbx/sandbox-create.tsL151 (if (sysPath === '/tmp/gh-aw' && !fs.existsSync(sysPath)) continue;).What was checked
Compared against the implementation at the audited commit:
/etc, home, credential-overlay, Docker-socket, and private-tmpfs mounts (system-mounts.ts,etc-mounts.ts,home-strategy.ts,credential-hiding.ts,docker-socket.ts,agent-service.ts).--mount,filesystem.allowWrite, and--container-workdirhandling.0700rule, and the/host/prochidepid=2mount.exports.ts,runtime-backend.ts), and confirmedMicrovmWorkspaceImagehas no production caller.No other discrepancies were found. The remaining claims in
mount-policy.md,selective-mounting.md, and the other allowed guides match the code.Limitations
docs/cloud-hypervisor-foundation.md,docs/arc-dind.md,docs/gvisor-integration.md, anddocs/awf-config-spec.mdwere only sampled for mount claims, not audited line by line.git diff --checkwas run for formatting.