Skip to content

[mount-docs] Correct Cloud Hypervisor mount policy and enclave handoff mode in docs - #11884

Merged
lpcox merged 3 commits into
mainfrom
docs/mount-policy-sync-35fb3a8-1a16979ec66bb0a7
Nov 21, 2026
Merged

lpcox merged 3 commits into
mainfrom
docs/mount-policy-sync-35fb3a8-1a16979ec66bb0a7

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Audited commit: 35fb3a815f2e82549ce9e4da21e30396e5297004 (from /tmp/gh-aw/mount-docs/main-sha.txt, matches main HEAD).

Discrepancies and corrections

  1. docs/cloud-hypervisor-foundation.md — enclave /session-handoff mode. The doc said agent enclaves receive /session-handoff and /session-state as writable exports. The implementation sets /session-handoff to ro and only /session-state to rw.

  2. docs/mount-policy.md — Cloud Hypervisor and the policy. The doc said the Cloud Hypervisor runtime "does not currently consult this policy" and that home allow/deny lists have "no production call site for this runtime." That is true for guest exports, but the enclave private-root preflight does read HOME_TOOL_PATHS and the system//etc lists (via collectAgentVisiblePaths) to check that AWF-private state does not overlap agent-visible paths. The text now separates export construction (policy not used) from the overlap check (policy read).

What was checked

  • Policy JSON and loader (src/config/sandbox-mount-policy.json, src/config/mount-policy.ts): allow/deny lists and narrow paths match docs/mount-policy.md.
  • Compose mounts: home strategy, credential /dev/null overlays, workspace and custom mounts, filesystem.allowWrite, Docker socket hiding, /tmp and /host/tmp tmpfs, nested .copilot mountpoints, work-dir 0700.
  • NFS home staging, sbx create/credential move-aside, NVX seeding, MicroVM workspace (confirmed no production caller), and Cloud Hypervisor exports including workspace-and-tool-cache.
  • Enclave export plan modes per role.
  • Relative links and #anchors in the edited files.

git diff --check is clean. The diff is documentation-only and touches two files on the allowlist.

Limitations

  • Behavior was verified by reading source and production call sites. Tests were not run and no containers or privileged commands were executed, per the workflow rules.
  • Other allowed guides (chroot-mode.md, sbx-integration.md, gvisor-integration.md, arc-dind.md, usage.md, etc.) were checked for mount claims, and no further concrete discrepancies were found. The docs/filesystem-sharing-contract.md file is outside the allowlist and was not edited.
  • Reviewers should confirm the wording of the enclave preflight distinction in mount-policy.md.

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

- mount-policy.md: the Cloud Hypervisor runtime does not use the policy to
  build guest exports, but the enclave private-root preflight does read its
  home and system paths for overlap checks. Clarify that distinction.
- cloud-hypervisor-foundation.md: /session-handoff is a read-only enclave
  export (enclave-export-plan.ts); only /session-state is writable.

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 21, 2026
@lpcox
lpcox marked this pull request as ready for review November 21, 2026 16:23
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 16:23

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 remain, and the documentation changes are limited to clarifying mount-policy behavior and enclave session export access modes.

No open issues 🎉

What changed in this PR

This documentation-only pull request corrects Cloud Hypervisor mount-policy descriptions and enclave session export modes to match the current implementation.

Changes:

  • Clarifies that the centralized mount policy is not used to construct Cloud Hypervisor guest exports, while enclave preflight still reads policy paths for overlap checks.
  • Documents /session-handoff as read-only and /session-state as read-write for agent enclaves.
File Description
docs/​mount-policy.md Clarifies Cloud Hypervisor policy usage and enclave private-root preflight checks.
docs/​cloud-hypervisor-foundation.md Corrects the documented access modes for agent enclave session exports.

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

github-actions Bot commented Nov 21, 2026 •

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

Built from commit 628ffd4

@lpcox

lpcox commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

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

Copilot AI commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

@copilot fix the failing supply chain check https://github.com/github/gh-aw-firewall/actions/runs/44871266037/job/136912946255?pr=11884

Added exact Grype exceptions for the unpatched OpenSSL 3.5.9-r1 findings and a regression test that enforces their package/version scope. Commit: 374f7e8. The existing failed run is for the prior commit; I don’t see a new Supply Chain Scan run yet.

Copilot AI requested a review from lpcox November 21, 2026 17:05
@lpcox

lpcox commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

…c-35fb3a8-1a16979ec66bb0a7

# Conflicts:
#	.grype.yaml
#	scripts/ci/grype-allowlist.test.ts

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

Copilot AI commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

@copilot merge main and resolve conflicts

Merged main and resolved the conflicts in 89de25d. The new supply-chain scan is running; local Jest validation was blocked by registry DNS failure.

@lpcox
lpcox merged commit 12dff5b into main Nov 21, 2026
35 of 36 checks passed
@lpcox
lpcox deleted the docs/mount-policy-sync-35fb3a8-1a16979ec66bb0a7 branch November 21, 2026 17:43
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.

3 participants