Repository navigation
fix: accommodate shared rootfs in bounded enclave verification storage - #11239
Conversation
Co-authored-by: lpcox <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The standalone collector can lose startup diagnostics when its companion catalog is missing, while the privileged workflow skips the release-image storage tests because it never supplies AWF_TEST_RELEASE_ROOTFS.
2 open issues
What changed in this PR
This PR addresses shared-rootfs verification failures in Cloud Hypervisor enclaves by increasing bounded host storage and improving safe startup diagnostics.
Changes:
- Raises host-only verification and staging limits to 4 GiB while preserving guest limits and releasing temporary role copies after verification.
- Adds sanitized rootfs-copy failure classifications and retains startup and cleanup checklists within 64 KiB.
- Moves harness logs outside disposable work directories and extends storage and diagnostic coverage.
| File | Description |
|---|---|
src/cloud-hypervisor/trusted-enclave-storage.ts |
Raises the shared host-only storage ceiling to 4 GiB. |
src/cloud-hypervisor/trusted-enclave-preflight.test.ts |
Checks storage budgets and independent cleanup diagnostics. |
src/cloud-hypervisor/host-preflight-schema.ts |
Adds the rootfs-copy check and read/write failure reasons. |
src/cloud-hypervisor/host-enclave-executor.test.ts |
Checks copy-failure reporting before digest and attestation. |
src/cloud-hypervisor/enclave-trusted-storage.integration.test.ts |
Adds opt-in release-image sparse and fully allocated copy probes. |
src/cloud-hypervisor/enclave-artifact-preflight.ts |
Reports copy checks and removes verified temporary role copies. |
src/cloud-hypervisor/artifact-snapshot.ts |
Classifies rsync failures without exposing raw stderr. |
src/cloud-hypervisor/artifact-snapshot.test.ts |
Tests failure classification and private-text exclusion. |
scripts/ci/run-enclave-agent-regression.js |
Relocates proxy and startup logs outside the work directory. |
scripts/ci/enclave-agent-regression.test.ts |
Verifies the separate harness log location. |
scripts/ci/collect-enclave-smoke-debug.test.ts |
Tests checklist retention, validation, and publication bounds. |
scripts/ci/collect-enclave-smoke-debug.cjs |
Preserves closed startup checklists with a 64 KiB limit. |
docs/cloud-hypervisor-foundation.md |
Documents revised budgets, copy diagnostics, and storage probes. |
.github/workflows/daily-agent-runtime-regression.yml |
Installs the collector’s companion preflight schema. |
Review effort: Max (auto)
| const catalog = path.join(__dirname, 'host-preflight-schema.cjs'); | ||
| const { schema } = require(fs.existsSync(catalog) | ||
| ? catalog : path.join(__dirname, '../../dist/cloud-hypervisor/host-preflight-schema.js')); |
| return { run, plan, journal, storage, snapshot, paths, rootfsPreparation, exports, close }; | ||
| } | ||
|
|
||
| (process.env.AWF_TEST_RELEASE_ROOTFS ? it.each(['sparse', 'fully-allocated']) : it.skip.each(['sparse', 'fully-allocated']))( |
|
@copilot address review feedback |
Addressed both review items in |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit fed62e5 |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request... |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Smoke CodexOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓
|
|
🚀 Security Guard has started processing this pull request |
|
💎 Smoke Gemini is crystallizing results on this pull request... |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
🔌 Smoke Services is testing service connectivity for this pull request... |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 93.78% | 93.77% | 📉 -0.01% |
| Statements | 92.31% | 92.31% | ➡️ +0.00% |
| Functions | 93.02% | 93.02% | ➡️ +0.00% |
| Branches | 86.59% | 86.60% | ➡️ +0.01% |
📁 Per-file Coverage Changes (3 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/nvx/one-shot-process.ts |
84.0% → 81.5% (-2.47%) | 76.8% → 74.7% (-2.11%) |
src/enclave/host-executor-server.ts |
91.2% → 91.2% (+0.00%) | 89.8% → 90.1% (+0.29%) |
src/cloud-hypervisor/enclave-artifact-preflight.ts |
95.6% → 95.6% (+0.03%) | 94.8% → 94.9% (+0.09%) |
Coverage comparison generated by scripts/ci/compare-coverage.ts
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|
|
Smoke Copilot: PRs: "docs: record Docker harness evidence and remaining ARC acceptance gap", "feat: add daily regression failure triage workflow"
PASS —
|
|
EGRESS_RESULT allow=pass deny=pass
Overall: PASS (PR author: @lpcox)
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Smoke Test: Copilot BYOK (Direct) Mode ✅Running in direct BYOK mode (
Status: PASS
|
🏗️ Build Test Suite Results
Overall: 7/8 ecosystems passed — FAIL Failure details
|
|
OTEL smoke test
|
|
docs: record Docker harness evidence and remaining ARC acceptance gap
|
Chroot Version Comparison
Node.js mismatch, so the
|
Smoke Test
|

Copilot, Codex, and Claude Cloud Hypervisor enclaves fail before digest/attestation: the shared rootfs’s sparse copy allocates 2.44 GiB into a 2 GiB verification domain. Generic rsync diagnostics and the protected startup projection obscure the cause and cleanup results.
rootfs-copycheck with finite capacity, permission, source-read, destination-write, and unknown-I/O reasons. Exclude raw stderr and private paths.{ "bounded-artifacts/rootfs-copy": ["failed", "ENOSPC"], "bounded-artifacts/rootfs-digest": ["not-attempted", "none"], "bounded-cleanup/storage-close": ["passed", "none"] }