Skip to content

fix: accommodate shared rootfs in bounded enclave verification storage - #11239

Merged
lpcox merged 3 commits into
mainfrom
copilot/fix-shared-cloud-hypervisor-rootfs-verification
Nov 7, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/fix-shared-cloud-hypervisor-rootfs-verification

Conversation

Copilot AI commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Bounded storage: Raise host-only verification and image-staging ceilings to 4 GiB; release each role’s temporary copy after verification. Preserve guest limits, ownership, private propagation, immutable inputs, and mandatory digest/attestation checks.
  • Copy diagnostics: Add an explicit rootfs-copy check with finite capacity, permission, source-read, destination-write, and unknown-I/O reasons. Exclude raw stderr and private paths.
  • Evidence and cleanup: Retain the closed startup checklist within 64 KiB, including independent cleanup outcomes. Keep harness diagnostic logs outside the disposable work directory without deleting unverified recovery state.
{
  "bounded-artifacts/rootfs-copy": ["failed", "ENOSPC"],
  "bounded-artifacts/rootfs-digest": ["not-attempted", "none"],
  "bounded-cleanup/storage-close": ["passed", "none"]
}

Copilot AI changed the title [WIP] Fix shared Cloud Hypervisor enclave rootfs verification copy failure fix: accommodate shared rootfs in bounded enclave verification storage Nov 7, 2026
Copilot AI requested a review from lpcox November 7, 2026 02:14
@lpcox
lpcox marked this pull request as ready for review November 7, 2026 02:17
Copilot AI adaptive review requested due to automatic review settings November 7, 2026 02:17

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 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)

Comment on lines +634 to +636
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']))(
@lpcox

lpcox commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

Addressed both review items in 767827b: the collector now embeds its closed startup schema and is tested standalone, and host probes stage the pinned release rootfs and pass it via AWF_TEST_RELEASE_ROOTFS.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

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

Built from commit fed62e5

@lpcox
lpcox enabled auto-merge (squash) November 7, 2026 06:17
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

Tested by Smoke Chroot

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request...

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

Smoke Codex

Outcome: reported_no_action

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.

Generated from Smoke Codex · gpt54 · ~12 AIC · ⊞ 21.0K · ◷

🔮 The oracle has spoken through Smoke Codex

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

💎 Smoke Gemini is crystallizing results on this pull request...

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🔌 Smoke Services is testing service connectivity for this pull request...

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

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

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Cloud Hypervisor + Copilot smoke test

  1. Merged PR lookup: PASS
  2. github.com connectivity: PASS (HTTP 200)
  3. File write/read: PASS
  4. example.com blocked: PASS (HTTP 000)

Overall: PASS

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Smoke Copilot: PRs: "docs: record Docker harness evidence and remaining ARC acceptance gap", "feat: add daily regression failure triage workflow"

  • ✅ GitHub MCP
  • ✅ GitHub.com connectivity (200)
  • ✅ File write/read

PASS — @Copilot @lpcox

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

EGRESS_RESULT allow=pass deny=pass

  • ✅ Allowed domain (api.github.com): HTTP 200
  • ✅ Blocked domain (example.com): blocked

Overall: PASS (PR author: @lpcox)

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions github-actions Bot added smoke-copilot smoke-copilot-network-isolation Copilot network-isolation egress smoke test labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Smoke Test: Claude Engine Validation

  • API status: ✅ PASS
  • GitHub check: ✅ PASS
  • File status: ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #11239 · claude · haiku45 · ~35 AIC · ⊞ 6.1K · ◷
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot BYOK (Direct) Mode ✅

Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY via api-proxy sidecar → api.githubcopilot.com)

  • ✅ GitHub MCP connectivity (list_pull_requests working)
  • ✅ GitHub.com HTTP 200
  • ✅ File write/read (smoke-test-copilot-byok.txt exists)
  • ✅ BYOK inference path active (agent response confirms)

Status: PASS

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ✅ 1/1 passed ✅ PASS
Bun hono ✅ 1/1 passed ✅ PASS
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world ✅ N/A ✅ PASS*
.NET json-parse ✅ N/A ✅ PASS*
Go color ✅ all passed ✅ PASS
Go env ✅ all passed ✅ PASS
Go uuid ✅ all passed ✅ PASS
Java gson ❌ 0/0 ❌ FAIL
Java caffeine ❌ 0/0 ❌ FAIL
Node.js clsx ✅ passed ✅ PASS
Node.js execa ✅ passed ✅ PASS
Node.js p-limit ✅ passed ✅ PASS
Rust fd ✅ 0/0 (no tests) ✅ PASS
Rust zoxide ✅ 0/0 (no tests) ✅ PASS

Overall: 7/8 ecosystems passed — FAIL

Failure details

  • Java: With the default ~/.m2, Maven failed with Could not create local repository at /home/runner/.m2/repository (LocalRepositoryNotAccessibleException). Retrying with a writable -Dmaven.repo.local failed with PluginResolutionException for both projects. The configured proxy squid-proxy:3128 is likely not reachable or resolvable from this run.
  • .NET*: The first attempt failed with a first-run NuGet-Migrations IOException (lstat /run/user/1001 ENOENT). After setting writable DOTNET_CLI_HOME, XDG_RUNTIME_DIR and NUGET_PACKAGES, restore, build and run all succeeded.

Generated by Build Test Suite for #11239 · copilot · auto · ~23 AIC · ⊞ 5.7K · ◷
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

OTEL smoke test

  • ✅ S1 Module loading: otel.js exports startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, routerCallTracing, shutdown, isEnabled
  • ✅ S2 Tests: 75/75 passed (3 suites)
  • ✅ S3 Env forwarding: trace/parent span IDs in env-passthrough.ts; OTEL_* vars in api-proxy-env-config.ts
  • ✅ S4 Token tracker: onUsage hook present in token-tracker-http.js
  • ⚠️ S5 Diagnostics: local /tmp/gh-aw/otel.jsonl has 1 line; I didn't inspect the api-proxy export logs.

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

docs: record Docker harness evidence and remaining ARC acceptance gap
feat: add daily regression failure triage workflow
GitHub MCP connectivity: ✅
GitHub.com connectivity: ✅
File write/read test: ✅
BYOK inference test: ✅
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw)
Overall status: PASS
@Copilot @lpcox

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Chroot Version Comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.16 Python 3.12.16 ✅
Node.js v24.22.2 v2.98.0 ❌
Go go1.22.12 go1.22.12 ✅

Node.js mismatch, so the smoke-chroot label was not added. The chroot reported v2.98.0, which does not look like a Node version string.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Smoke Test

  • docs: record Docker harness evidence and remaining ARC acceptance gap ✅
  • feat: add daily regression failure triage workflow ✅
  • PR detail lookup ✅
  • Playwright title check ❌
  • Temp file write/read ✅
  • AWF build ✅
  • Overall status: FAIL

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

This branch had an error being deployed

1 failed deployment
aoai-model — 767827bc Deployed Nov 7, 2026 by lpcox via conclusion #2283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix shared Cloud Hypervisor enclave rootfs verification copy failure (rsync exit 11)

3 participants