Skip to content

[mount-docs] Correct mount documentation drift from main (audited 3535251f) - #11857

Merged
lpcox merged 1 commit into
mainfrom
mount-docs/sync-main-3535251f-979f15f5e6e2f967
Nov 20, 2026
Merged

lpcox merged 1 commit into
mainfrom
mount-docs/sync-main-3535251f-979f15f5e6e2f967

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Documentation-only correction of four mount descriptions that do not match the implementation at the audited main commit 3535251f7aff75ae361f3487262141b3fa63c7ce (recorded in /tmp/gh-aw/mount-docs/main-sha.txt).

Discrepancies and corrections

  1. docs/chroot-mode.md: optional RHEL CA mounts. The table listed /etc/pki/ca-trust/extracted and /etc/pki/tls/certs as unconditional. Code mounts them only when the host source exists.

  2. docs/gvisor-integration.md: log/state binds. The doc said configured log/state paths are bound only "when they reside under /tmp". Code always binds the agent log and session-state directories at $HOME/.copilot/logs and $HOME/.copilot/session-state, both direct and /host-prefixed, regardless of host location.

  3. docs/sbx-integration.md: non-existent --clone option. The doc said --clone gives a read-only mount plus a private in-VM clone. No such option exists. createSandboxInternal passes the workspace as a plain positional path with no :ro.

  4. docs/selective-mounting.md: mode of missing ~/.copilot targets. The doc said missing targets are created "without an explicit mode". The bind sources (agent-logs, agent-session-state) are created without a mode and then chowned, including when they already exist. The nested ~/.copilot/{session-state,logs} targets are created by createMissingOwnedDirectorySegments, which chmods created segments to 0755.

What was checked

  • Central policy (sandbox-mount-policy.json, mount-policy.ts) and its compose, sbx, and NVX consumers.
  • Compose builders: system and /etc allowlists, home tool paths, .copilot binds, credential /dev/null masks, Docker-socket masking, workspace and handoff mounts, /tmp and /host/tmp tmpfs, filesystem.allowWrite rewriting, and --mount existence validation.
  • Kernel-filesystem prefix exceptions, the work-dir 0700 behavior, and the ARC sysroot /host read-write mount.
  • Cloud Hypervisor exports (exports.ts) and the enclave export plan: confirmed they do not consult the central policy and do not export $HOME.
  • Confirmed as accurate and left unchanged: the Cloud Hypervisor scratch tmpfs description, /proc hidepid=2 mount, and the .gemini gating.

Limitations

  • The docs/selective-mounting.md and docs/chroot-mode.md wording is verified by reading code, not by running a container or docker inspect. No containers were started, and no documented example was executed.
  • markdownlint was not run because the repository's lint tooling is not installed in this environment. The edits change only prose and existing table cells, adding no new links or structure.
  • Items in the generated contract, filesystem-sharing-contract.md, were used only as secondary evidence and were not edited.
  • Not audited for this run: nvx-security-design.md and docs/environment.md, which are outside the allowlist.

Review and merge are left to maintainers.

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

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 20, 2026
@lpcox
lpcox marked this pull request as ready for review November 20, 2026 14:39
Copilot AI adaptive review requested due to automatic review settings November 20, 2026 14:39

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.

🟢 Approval recommended

The documentation updates align the four mount descriptions with the audited AWF implementation and resolve the identified discrepancies without active review issues.

No open issues 🎉

What changed in this PR

This documentation-only pull request aligns four mount descriptions with the audited AWF implementation.

Changes:

  • Documents conditional RHEL/Amazon Linux CA mounts.
  • Corrects gVisor log/state bind and Docker Sandbox workspace behavior.
  • Clarifies creation modes for Copilot log and session-state directories.
File Description
docs/​selective-mounting.md Clarifies source-directory and nested-target creation behavior and their respective modes.
docs/​sbx-integration.md Replaces the nonexistent --clone behavior with the actual read-write positional workspace mount.
docs/​gvisor-integration.md Documents the always-bound Copilot log and session-state directories.
docs/​chroot-mode.md Marks RHEL and Amazon Linux CA mounts as conditional on host-path availability.

Review effort: Lite (adaptive)

@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@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-11857 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 93364c2

@lpcox
lpcox merged commit 09964fc into main Nov 20, 2026
27 of 29 checks passed
@lpcox
lpcox deleted the mount-docs/sync-main-3535251f-979f15f5e6e2f967 branch November 20, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants