Repository navigation
Add Cloud Hypervisor enclave configuration model - #8682
Conversation
Recognize reserved Cloud Hypervisor enclave runtimes and validate shared infrastructure. Keep execution fail-closed behind the ADR 0002 rollout gates. Co-authored-by: Copilot App <[email protected]> Copilot-Session: aa4dffa0-b079-4200-8a01-012767f319ba
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit dbf3b2e |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (4 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Schema descriptions remain contradictory, and required mixed-runtime test coverage is missing.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (3)
What changed in this PR
Adds reserved Cloud Hypervisor enclave configuration while keeping execution fail-closed behind ADR 0002 gates.
Changes:
- Extends enclave types, schemas, parsing, validation, and documentation.
- Separates primary-agent selection from enclave infrastructure requirements.
- Prevents fallback and rejects unsupported dynamic agents and image overrides.
| File | Description |
|---|---|
src/types/runtime-options.ts |
Documents shared runtime configuration. |
src/types/enclave-options.ts |
Adds the enclave runtime type. |
src/parsers/enclave-parser.test.ts |
Tests parsing and schema acceptance. |
src/enclave/runtime-preflight.ts |
Adds the terminal rollout gate. |
src/enclave/runtime-preflight.test.ts |
Tests fail-closed behavior. |
src/enclave/preflight.ts |
Rejects unsupported configurations. |
src/enclave/preflight.test.ts |
Tests static and invalid entries. |
src/commands/validators/config-assembly.ts |
Applies shared validation and fallback rules. |
src/commands/validators/config-assembly-api-proxy.test.ts |
Tests unsupported-host behavior. |
src/cloud-hypervisor/runtime-validation.ts |
Adds runtime-selection helpers. |
src/cloud-hypervisor/runtime-validation.test.ts |
Tests enclave-only selection. |
src/cloud-hypervisor-runtime-backend.env-mapping.test.ts |
Updates validation expectations. |
src/awf-config-schema.json |
Adds the generated runtime enum. |
docs/enclaves-architecture.md |
Documents rollout restrictions. |
docs/awf-config.schema.json |
Adds the canonical schema enum. |
docs/awf-config-spec.md |
Documents enclave-only configuration. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| return Boolean( | ||
| (executors?.script.enabled && executors.script.runtime === 'cloud-hypervisor') | ||
| || (executors?.agent.enabled && executors.agent.runtime === 'cloud-hypervisor'), | ||
| ); |
| "gvisor", | ||
| "sbx" | ||
| "sbx", | ||
| "cloud-hypervisor" |
| "gvisor", | ||
| "sbx" | ||
| "sbx", | ||
| "cloud-hypervisor" |
|
@copilot Fix the code for all comments in this review thread. When a review comment includes a suggested change, apply the suggestion exactly. Do not make changes beyond what is described in the linked review thread. |
Addressed in |
|
✅ Copilot review passed with no inline comments. @lpcox Add the |


Summary
cloud-hypervisorto the trusted enclave runtime types, schemas, parser coverage, and documentationRollout behavior
This PR adds configuration recognition only. Static script and static agent entries fail closed before launch until the host executor, role-specific rootfs artifacts, networking, resource parity, and recovery work lands. Primary Cloud Hypervisor plus enclaves also remains behind the runtime-neutral lifecycle integration gate.
Validation
npm test -- --runInBand(364 suites, 5900 tests)npm run buildFixes #8678