Skip to content

Fix shared enclave regression configuration and startup diagnostics - #11160

Merged
lpcox merged 4 commits into
mainfrom
copilot/fix-shared-enclave-regression
Nov 6, 2026
Merged

lpcox merged 4 commits into
mainfrom
copilot/fix-shared-enclave-regression

Conversation

Copilot AI commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

    • Select ordinary Docker by omission; pair Cloud Hypervisor primaries with Cloud Hypervisor enclaves.
    • Restrict daily-profile admission to the compiled source SHA, trusted main-branch workflow identity, and public single-use agent profiles.
    • Use an unprivileged listener port, fail-fast readiness checks, and guest-visible stop paths.
  • Protected diagnostics

    • Retain an allowlisted, 4 KiB startup.json without requiring an invocation journal.
    • Preserve startup evidence independently when subsequent collection fails.
    • Keep raw logs, credentials, capabilities, and prompts private.
  • Regression coverage

    • Validate all six configurations against the canonical schema.
    • Execute generated Python probes deterministically, including credential-placeholder rejection and isolation checks.

Live six-case broker/gateway readiness and approved inference acceptance remain unverified; no reruns were dispatched.

Copilot AI changed the title [WIP] Fix shared enclave regression configuration and retain pre-broker failure diagnostics Fix shared enclave regression configuration and startup diagnostics Nov 5, 2026
Copilot AI requested a review from lpcox November 5, 2026 17:49
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@lpcox
lpcox marked this pull request as ready for review November 5, 2026 17:52
Copilot AI adaptive review requested due to automatic review settings November 5, 2026 17:52
@github-actions

github-actions Bot commented Nov 5, 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-11160 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 61c14ff

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

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),',
Comment on lines +193 to +195
if (runtime === 'cloud-hypervisor') {
await live.waitForPrimaryVmReadiness(awf, Date.now() + 5 * 60_000, diagnostic);
}
Comment on lines +18 to +19
const token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
if (!token) return undefined;
@lpcox

lpcox commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

@copilot fix the failing ci check. make sure 'npm test' runs without any failures

Copilot AI commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix the failing ci check. make sure 'npm test' runs without any failures

Fixed in 61d13e8. The local root npm test run passes: 562 suites, 11,988 passing tests, and 72 skipped. The prior PR Title Check failure is separate and still needs a Conventional Commit-style title.

@lpcox

lpcox commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

The review fixes are present in 61d13e8: Cloud Hypervisor probes use the verified guest IP, readiness allows the verified primary VM baseline, and the daily workflow grants and forwards the OIDC request credentials. The targeted build and regression tests pass (2 suites, 504 tests).

@github-actions

github-actions Bot commented Nov 5, 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 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Build Test Suite completed successfully!

Generated by Build Test Suite for #11160

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Nov 5, 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 ✅ pass ✅ PASS
Go env ✅ pass ✅ PASS
Go uuid ✅ pass ✅ PASS
Java gson ❌ 0/0 (not run) ❌ FAIL
Java caffeine ❌ 0/0 (not run) ❌ FAIL
Node.js clsx ✅ passed ✅ PASS
Node.js execa ✅ passed ✅ PASS
Node.js p-limit ✅ passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 7/8 ecosystems passed — FAIL

Failure details

Java (gson, caffeine): mvn compile fails resolving maven-resources-plugin:3.4.0 from Maven Central: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty (Java truststore is empty in this environment). Also, ~/.m2 was root-owned, so -Dmaven.repo.local was used; ~/.m2/settings.xml already had the required proxy config.

.NET note: The first run failed on a NuGet mutex (/run/user/1001 missing); it passed after setting XDG_RUNTIME_DIR.

The build-test label was not added because of the failure.

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

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke test (Copilot)

  • ✅ GitHub MCP: "fix: estimate missing model prices with same-backend medians"
  • ✅ GitHub.com connectivity (200)
  • ✅ File write/read

Overall: PASS — @Copilot @lpcox

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

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🔷 Smoke Test: Copilot BYOK (Direct) Mode

  • ✅ GitHub MCP: Verified (2 merged PRs retrieved)
  • ✅ HTTP Connectivity: 200 (github.com reachable)
  • ✅ File I/O: Confirmed (smoke-test-copilot-byok.txt present)
  • ✅ BYOK Inference: Active (direct BYOK via api-proxy → api.githubcopilot.com)

Status: PASS — Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY)

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

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Fix canonical Copilot placeholder checks in daily runtime regression
fix: isolate regression completion markers from terminal output
✅ 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: 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 added smoke-copilot-byok-aoai-apikey smoke-copilot-network-isolation Copilot network-isolation egress smoke test labels Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

EGRESS_RESULT allow=pass deny=pass

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

Overall: PASS (PR by @lpcox)

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

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke Test: Claude Engine Validation

Check Result
API status ✅ PASS
gh check ✅ PASS
File status ✅ PASS

Overall result: PASS

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

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke Test

  • Fix canonical Copilot placeholder checks in daily runtime regression ✅ merged PR read
  • fix: isolate regression completion markers from terminal output ✅ merged PR read
  • PR detail read ✅
  • Playwright title check ❌
  • Temp file create/read ✅
  • npm ci && npm run build ✅
  • Overall: FAIL

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

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Chroot version comparison

Runtime Host Version Chroot Version Match?
Python 3.12.16 3.12.16 ✅ YES
Node.js v24.22.2 v26.11.1 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Node.js differs between the host and the chroot, so not all tests passed. The smoke-chroot label was not added.

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

@github-actions

github-actions Bot commented Nov 6, 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

This branch had an error being deployed

1 failed deployment
aoai-model — 61d13e88 Deployed Nov 5, 2026 by lpcox via conclusion #2265
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 enclave regression configuration and retain pre-broker failure diagnostics

4 participants