Skip to content

[mount-docs] Document sbx /usr/local/bin share and optional /tmp/gh-aw - #11816

Merged
lpcox merged 2 commits into
mainfrom
mount-docs/sbx-mount-sync-cc474d5-092d89ed0b4df4da
Nov 19, 2026
Merged

lpcox merged 2 commits into
mainfrom
mount-docs/sbx-mount-sync-cc474d5-092d89ed0b4df4da

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Audited commit: cc474d5758e0ae5ac18b297b9d979b1e52b4862f (from /tmp/gh-aw/mount-docs/main-sha.txt).

Discrepancies and corrections

  1. docs/mount-policy.md (sbx default share set). The guide said the sbx default "similarly shares /tmp/gh-aw rather than /tmp", which implies /tmp/gh-aw is 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.

  2. docs/sbx-integration.md ("always-added" system mounts). The guide called the three system mounts "always-added". The code skips /tmp/gh-aw when it does not exist on the host, so only /usr/local/bin is unconditional. The heading now says so.

What was checked

Compared against the implementation at the audited commit:

  • Compose system, /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).
  • Workspace, custom --mount, filesystem.allowWrite, and --container-workdir handling.
  • NFS-home staging exclusions, the work-directory 0700 rule, and the /host/proc hidepid=2 mount.
  • Cloud Hypervisor exports (exports.ts, runtime-backend.ts), and confirmed MicrovmWorkspaceImage has no production caller.
  • sbx credential move-aside, NVX copy exclusions, and the ARC sysroot filter.

No other discrepancies were found. The remaining claims in mount-policy.md, selective-mounting.md, and the other allowed guides match the code.

Limitations

  • Audit was read-only. Nothing was built, run, or mounted, and no containers were started.
  • docs/cloud-hypervisor-foundation.md, docs/arc-dind.md, docs/gvisor-integration.md, and docs/awf-config-spec.md were only sampled for mount claims, not audited line by line.
  • The markdown lint tool is not installed locally, so only git diff --check was run for formatting.

Generated by Mount Documentation Maintainer · copilot · routed: haiku55 xhigh · ~73 AIC · ⌖ ~1 AIC · ⊞ 3.5K · ◷

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]>
@lpcox

lpcox commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

…sync-cc474d5-092d89ed0b4df4da

# Conflicts:
#	docs/mount-policy.md

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@copilot merge main and resolve conflicts

Merged main, resolved the documentation conflict, and published merge commit dc2eac0.

Copilot AI requested a review from lpcox November 19, 2026 14:53
@lpcox
lpcox marked this pull request as ready for review November 19, 2026 15:41
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 15:41
@github-actions

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11816 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit c5891ae

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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/bin share and curated home tool paths.
  • Clarifies that /tmp/gh-aw is 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 thread docs/sbx-integration.md
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):
@lpcox
lpcox merged commit d3e9eab into main Nov 19, 2026
29 of 30 checks passed
@lpcox
lpcox deleted the mount-docs/sbx-mount-sync-cc474d5-092d89ed0b4df4da branch November 19, 2026 16:29
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.

3 participants