Repository navigation
Fix Cloud Hypervisor enclave regression admission - #11223
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The workflow-claim check still rejects valid ordinary-job attestations, leaving hosted admission broken even after token acquisition is fixed.
3 open issues
What changed in this PR
This PR targets the pre-broker Cloud Hypervisor enclave admission failures tracked in #11220, updating admission checks, startup diagnostics, and regression-harness cleanup. Hosted confirmation remains pending.
Changes:
- Accept regional GitHub Actions OIDC endpoints while preserving signed identity and profile checks.
- Retain finite admission-failure reasons and disable automatic curl configuration loading.
- Let AWF create its work directory and expand configuration-assembly, identity, and cleanup coverage.
| File | Description |
|---|---|
src/logs/early-startup-schema.json |
Allowlist specific admission-failure reasons. |
src/logs/early-startup-diagnostics.test.ts |
Cover safe emission of each admission reason. |
src/enclave/cloud-hypervisor-conformance-acceptance.ts |
Support regional endpoints and classify admission failures. |
src/cloud-hypervisor/runtime-validation.ts |
Propagate detailed rejection codes. |
scripts/ci/run-enclave-agent-regression.js |
Stop pre-creating AWF’s work directory. |
scripts/ci/enclave-agent-regression.test.ts |
Exercise production assembly, signed identities, and pre-start cleanup. |
scripts/ci/collect-enclave-smoke-debug.test.ts |
Cover export of detailed admission reasons. |
scripts/ci/collect-enclave-smoke-debug.cjs |
Preserve new reasons in sanitized startup artifacts. |
scripts/ci/cloud-hypervisor-enclave-live-smoke.test.ts |
Extend startup-diagnostic retention coverage. |
docs/cloud-hypervisor-foundation.md |
Document admission reasons, endpoint handling, and cleanup ownership. |
Review effort: Max (auto)
| && claims.job_workflow_ref === undefined | ||
| && sha === CLOUD_HYPERVISOR_REGRESSION_COMMIT ? claims : undefined; | ||
| && sha === CLOUD_HYPERVISOR_REGRESSION_COMMIT | ||
| ? 'verified' : 'cloud-hypervisor-enclave-admission-claims'; |
| if (accepted) { | ||
| const assembled = assemble(); |
| throw Object.assign(new Error( | ||
| 'Cloud Hypervisor primary-agent execution with enclaves is reserved until the ' | ||
| + 'real end-to-end isolation acceptance completes; no runtime fallback is permitted', | ||
| ), { code: rejection }); |
|
@copilot address review feedback |
Co-authored-by: lpcox <[email protected]>
Addressed the review feedback 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 9dece44 |
|
@copilot make sure that 'npm test' runs without any failures and fix this failing conformance ci check https://github.com/github/gh-aw-firewall/actions/runs/42314692578/job/128224812613?pr=11223 |
Co-authored-by: lpcox <[email protected]>
Fixed the admission bypass so unsupported configurations receive the generic denial while only a verified pinned regression is admitted. Focused tests (148 passed) and |
|
🔌 Smoke Services is testing service connectivity for this pull request... |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓
|
|
fix: handle Copilot zero-batch tariffs without masking model policy
|
|
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) Overall: PASS
|
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|
|
OTEL smoke test
|
Smoke Test: Copilot BYOK (Direct) Mode ✅All tests passed — Direct BYOK mode active (COPILOT_PROVIDER_API_KEY → api-proxy → api.githubcopilot.com)
Status: PASS — Agent credential isolation working, api-proxy injection functional.
|
|
Smoke Copilot
PASS —
|
Chroot Version Comparison
Result: Not all tests passed (Node.js version mismatch), so the
|
🏗️ Build Test Suite Results
Overall: 6/8 ecosystems passed — FAIL Failures
Both failures look like environment and filesystem issues in the sandbox (a missing runtime dir and an unwritable
|
|
11216 fix: handle Copilot zero-batch tariffs without masking model policy
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|


All three enclave profiles reject before broker startup, but the aggregate admission reason hides the failing check. The guard also excludes valid regional GitHub Actions OIDC endpoints, while harness-created work directories produce secondary cleanup failures.
.actions.githubusercontent.comnamespace. Preserve signed workflow/source pins, exact profiles, artifact attestation, storage bounds, runtime matching, and no fallback.Hosted confirmation remains pending; the historical aggregate record cannot establish its precise failing subcondition.