Repository navigation
Fix shared enclave regression configuration and startup diagnostics - #11160
Conversation
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 61c14ff |
There was a problem hiding this comment.
🟡 Changes recommended
Critical identity, API-proxy, and VM-readiness defects block Cloud Hypervisor regression runs, while the peer probe targets the wrong address and can falsely report primary-guest isolation.
4 open issues
What changed in this PR
Updates AWF’s shared six-case enclave regression harness to correct runtime configuration and preserve pre-broker diagnostics without exposing private execution data.
Changes:
- Selects Docker by omission and adds source-pinned admission for matching Cloud Hypervisor primaries and enclaves.
- Revises listener readiness and stop paths, with schema validation and deterministic probe coverage.
- Retains bounded, allowlisted startup evidence independently of invocation collection failures.
| File | Description |
|---|---|
src/enclave/preflight.ts |
Adds the daily regression profile to enclave admission checks. |
src/enclave/cloud-hypervisor-conformance-acceptance.ts |
Defines daily regression identity and public-profile restrictions. |
src/cloud-hypervisor/runtime-validation.ts |
Recognizes daily regression admission during runtime validation. |
scripts/ci/run-enclave-agent-regression.js |
Updates runtime configuration, readiness, stop paths, probes, and startup capture. |
scripts/ci/enclave-agent-regression.test.ts |
Adds configuration, generated-probe, admission, and orchestration coverage. |
scripts/ci/collect-enclave-smoke-debug.test.ts |
Tests independent startup retention, unsafe-evidence rejection, and publication limits. |
scripts/ci/collect-enclave-smoke-debug.cjs |
Adds bounded startup projections and preserves them after collection failures. |
docs/cloud-hypervisor-foundation.md |
Documents startup evidence, revised export limits, and daily-profile scope. |
Review effort: Max (auto)
| ' "credentialsIsolated": all(isolated(os.environ.get(name)) for name in names),', | ||
| ` "apiProxyReachable": reachable("172.31.0.30", ${port}),`, | ||
| ' "primaryPeerBlocked": not reachable("172.30.0.20", 80),', | ||
| ' "primaryPeerBlocked": not reachable("172.30.0.20", 18080),', |
| if (runtime === 'cloud-hypervisor') { | ||
| await live.waitForPrimaryVmReadiness(awf, Date.now() + 5 * 60_000, diagnostic); | ||
| } |
| const token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN; | ||
| if (!token) return undefined; |
|
@copilot fix the failing ci check. make sure 'npm test' runs without any failures |
|
@copilot address review feedback |
The review fixes are present in |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
|
✅ Build Test Suite completed successfully!
|
|
🚀 Security Guard has started processing this pull request |
🏗️ Build Test Suite Results
Overall: 7/8 ecosystems passed — FAIL Failure detailsJava (gson, caffeine): .NET note: The first run failed on a NuGet mutex ( The
|
|
Smoke test (Copilot)
Overall: PASS —
|
🔷 Smoke Test: Copilot BYOK (Direct) Mode
Status: PASS — Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY)
|
|
Fix canonical Copilot placeholder checks in daily runtime regression
|
|
EGRESS_RESULT allow=pass deny=pass
Overall: PASS (PR by @lpcox)
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Smoke Test
|
Chroot version comparison
Node.js differs between the host and the chroot, so not all tests passed. The
|
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|

All six enclave cases failed before broker readiness; the shared builder emitted an invalid Docker runtime value and inconsistent Cloud Hypervisor topology. Journal-dependent collection then discarded startup evidence, obscuring the original failure.
Configuration and launch
Protected diagnostics
startup.jsonwithout requiring an invocation journal.Regression coverage
Live six-case broker/gateway readiness and approved inference acceptance remain unverified; no reruns were dispatched.