Skip to content

[mount-docs] Correct agent mount descriptions in architecture and chroot docs - #11575

Merged
lpcox merged 1 commit into
mainfrom
mount-docs/audit-bf0d16b-7790044a30bcb6ae
Nov 14, 2026
Merged

lpcox merged 1 commit into
mainfrom
mount-docs/audit-bf0d16b-7790044a30bcb6ae

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Documentation-only correction from the daily mount-docs audit. Two files changed, three lines total.

Audited commit: bf0d16b21e5e18643240e5d20cb01e40b763cbca (recorded in /tmp/gh-aw/mount-docs/main-sha.txt).

Discrepancies and corrections

  1. docs/architecture.md (Agent Execution Container): said the agent "Mounts entire host filesystem at /host and user home directory for full access". This is wrong. The compose agent binds only selected paths, never the real $HOME. Replaced with the actual set: read-only system dirs and /etc files under /host, the workspace, /tmp, an empty chroot home with allowlisted tool dirs, and AWF log/state dirs. The Docker socket is hidden behind a /dev/null overlay unless --enable-dind is set.

  2. docs/architecture.md (Squid Container): said Squid "Mounts dynamically-generated squid.conf from work directory". The config is injected as the base64 AWF_SQUID_CONFIG_B64 env var and is explicitly not bind-mounted, so Docker-in-Docker daemons can reach it.

  3. docs/chroot-mode.md (Read-Write Mounts): the /tmp row listed only /host/tmp:rw. Production also binds /tmp:/tmp:rw at the direct path, as the workspace row already notes for its own direct path.

What was checked

  • src/config/sandbox-mount-policy.json and src/config/mount-policy.ts, including toolSubdirs, narrowPaths, forbiddenSubdirs, and the dir entries without files.
  • Compose builders in src/services/agent-volumes/ (home, credential overlays, system, etc, workspace, Docker socket, write policy, volume builder), plus chroot-home-setup.ts and fs-utils.ts for the 0755 placeholder and .copilot target modes.
  • Production callers of the policy: sbx-manager.ts, nvx/*, enclave/mount-policy.ts, and agent-path-policy.ts. MicrovmWorkspaceImage has no production instantiation, so mount-policy.md's statement that it is test-only is correct.
  • Cloud Hypervisor: exports.ts (default workspace-only; $HOME never exported; RUNNER_TEMP/gh-aw and /tmp/gh-aw conditional) and enclave-export-plan.ts.
  • Existing claims in mount-policy.md, selective-mounting.md, sbx-integration.md, gvisor-integration.md, and cloud-hypervisor-foundation.md were re-verified and found consistent with the code. These docs are unchanged.
  • git diff --check is clean; the diff touches only the two files; relative links resolve.

Limitations

  • The audit is static: it reads source and does not run containers, sbx, or Cloud Hypervisor.
  • Items outside this diff were not changed. Examples: architecture.md describes Squid logs as a "squid-logs volume" when production uses a host path bind, and docs/filesystem-sharing-contract.md is a generated document, so it was not hand-edited.
  • Docker/runc bind-mount ordering semantics in environment.md were not re-verified beyond checking that AWF's own error strings match.

Review and merge are left to maintainers.

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

- architecture.md: the agent container no longer mounts the entire host
  filesystem and real $HOME; it binds selected paths only. Squid receives
  squid.conf via AWF_SQUID_CONFIG_B64, not a bind mount.
- chroot-mode.md: list the direct /tmp bind alongside /host/tmp.

Co-authored-by: Copilot <[email protected]>
@lpcox
lpcox marked this pull request as ready for review November 14, 2026 16:12
Copilot AI adaptive review requested due to automatic review settings November 14, 2026 16:12

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

No active review issues are reported, and the documentation updates align with the current selective mount and Squid configuration behavior.

No open issues 🎉

What changed in this PR

This documentation-only pull request aligns AWF’s architecture and chroot-mode documentation with the current selective mount behavior and Squid configuration injection.

Changes:

  • Documents base64 environment-variable injection for squid.conf instead of a bind mount.
  • Replaces the obsolete full-host-filesystem description with the selective agent mount model and Docker socket behavior.
  • Documents both direct and /host bindings for /tmp in chroot mode.
File Description
docs/​chroot-mode.md Documents both direct /tmp:rw and /host/tmp:rw mount targets used in chroot mode.
docs/​architecture.md Corrects the Squid configuration delivery and agent filesystem mount descriptions.

Review effort: Lite (dynamic)

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

Built from commit 7dfd777

@lpcox
lpcox merged commit 1515201 into main Nov 14, 2026
28 of 29 checks passed
@lpcox
lpcox deleted the mount-docs/audit-bf0d16b-7790044a30bcb6ae branch November 14, 2026 20:47
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.

2 participants