Repository navigation
[docs] ci-doctor: add CI-004 enclave regression finalization finding - #11386
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The change has unresolved critical freshness failures in generated diagnostic consumers and a moderate CI-004 condition that can misclassify result-validation failures.
3 open issues
What changed in this PR
Adds the CI-004 diagnostic finding for enclave regression failures during finalization after invocation result validation, and indexes it in the diagnostics README.
Changes:
- Added the canonical
CI-004record with symptoms, conditions, probing, remediation, provenance, and related findings. - Updated the diagnostics README index and symptom lookup.
- The generated workflow and portable-agent consumers still require regeneration.
- The finalization condition should require
resultValidated: trueand excluderesult-gate failures. - The README evidence snapshot should include the
#11194/ current-main provenance row.
| File | Review |
|---|---|
docs/diagnostics/README.md |
Adds CI-004 to the findings index and symptom lookup. The generated consumer files remain stale, and the evidence snapshot omits CI-004 provenance. |
docs/diagnostics/findings/ci/CI-004.json |
Defines the enclave finalization diagnostic record. Consumer outputs require regeneration, and the matching condition is too broad for unvalidated or result-gate failures. |
Review effort: Lite (auto)
| | CI-001 | ci | gh-aw safe-output step fails because the emitted payload violates the declared contract | workaround | [`findings/ci/CI-001.json`](./findings/ci/CI-001.json) | | ||
| | CI-002 | ci | Compiler-owned enclave gateway is unavailable or violates the handoff contract | workaround | [`findings/ci/CI-002.json`](./findings/ci/CI-002.json) | | ||
| | CI-003 | ci | Cloud Hypervisor regression admission rejects a regional Actions OIDC endpoint | fixed | [`findings/ci/CI-003.json`](./findings/ci/CI-003.json) | | ||
| | CI-004 | ci | Enclave regression fails after a successful invocation at a finalization gate | fixed | [`findings/ci/CI-004.json`](./findings/ci/CI-004.json) | |
| @@ -0,0 +1,34 @@ | |||
| { | |||
| "$schema": "../../schema.json", | |||
| "id": "CI-004", | |||
| "title": "Enclave regression fails after a successful invocation at a finalization gate", | ||
| "symptoms": ["AWF_ENCLAVE_REGRESSION_FINALIZATION", "Enclave agent regression fails although the invocation result validated"], | ||
| "conditions": [ | ||
| "The daily enclave agent regression reached result validation or later stages", |
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit c2df0b0 |
|
@copilot address review feedback |
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 93.84% | 93.83% | 📉 -0.01% |
| Statements | 92.38% | 92.38% | ➡️ +0.00% |
| Functions | 93.06% | 93.06% | ➡️ +0.00% |
| Branches | 86.76% | 86.76% | ➡️ +0.00% |
📁 Per-file Coverage Changes (1 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/commands/main-action.ts |
92.0% → 91.7% (-0.25%) | 91.7% → 91.4% (-0.24%) |
Coverage comparison generated by scripts/ci/compare-coverage.ts


Caution
Protected files were modified in this change.
This pull request is in
request-reviewmode and requires explicit human scrutiny before merge.Protected files:
README.mdAllow intentional protected-file changes
If this workflow is intended to modify these files, add specific filenames or folder prefixes to
safe-outputs.create-pull-request.protected-files.excludein the workflow Markdown frontmatter. For example, to allow.changeset/*, exclude the folder using.changeset/:Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If
allowed-filesis configured, these paths must also match it. Rungh aw compileafter updating the workflow.Coverage
Scan since 2026-11-02 (
updatedSince2026-11-09). Backlog: 109 first-time merged PRs, 0 deferred. This run focused on CI/enclave-relevant PRs: #11160, #11192/#11223 (already covered by CI-003), #11194, and theCI-001..003freshness check (none overdue). Not all 109 were classified: the remaining backlog (mostly pricing, NVX, docs, dependency bumps) is unreviewed and no receipts were written. Please treat coverage as incomplete.CI-004 (new): enclave regression fails at a finalization gate
unknown.jq '{checks, primaryFailure, secondaryFailures, resultValidated}' path/to/protected/finalization.json(read-only, secret-safe).primaryFailure, treat secondary (cleanup) failures separately; hosted acceptance remains separate.scripts/ci/run-enclave-agent-regression.js(finalization gates,AWF_ENCLAVE_REGRESSION_FINALIZATION),scripts/ci/collect-enclave-smoke-debug.cjs(FINALIZATION_REASONS), tests incollect-enclave-smoke-debug.test.tsandenclave-agent-regression.test.ts,docs/cloud-hypervisor-foundation.md.@lpcox; authored by Copilot agent).Validation
npm run diagnostics:validatepassed (22 findings). README index regenerated;.github/agentsand shared findings consumers were intentionally not included — trusted CI/reviewer should runnpm run diagnostics:render.Requires human review; not auto-merged.