Skip to content

[docs] ci-doctor: add CI-004 enclave regression finalization finding - #11386

Merged
lpcox merged 2 commits into
mainfrom
ci-doctor/CI-004-finalization-9a5c20fcf3e32751
Nov 10, 2026
Merged

lpcox merged 2 commits into
mainfrom
ci-doctor/CI-004-finalization-9a5c20fcf3e32751

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Allow 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.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: request-review
      exclude:
        - .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-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

Coverage

Scan since 2026-11-02 (updatedSince 2026-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 the CI-001..003 freshness 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

  • Boundary/status: ci / fixed; versions introduced/fixed unknown.
  • Probe: jq '{checks, primaryFailure, secondaryFailures, resultValidated}' path/to/protected/finalization.json (read-only, secret-safe).
  • Action: use source that retains audit outside the AWF work dir and emits bounded finalization; fix the gate in primaryFailure, treat secondary (cleanup) failures separately; hosted acceptance remains separate.
  • Current-main evidence: scripts/ci/run-enclave-agent-regression.js (finalization gates, AWF_ENCLAVE_REGRESSION_FINALIZATION), scripts/ci/collect-enclave-smoke-debug.cjs (FINALIZATION_REASONS), tests in collect-enclave-smoke-debug.test.ts and enclave-agent-regression.test.ts, docs/cloud-hypervisor-foundation.md.
  • Provenance: fix: preserve enclave audit and expose finalization failures #11194 (merged by @lpcox; authored by Copilot agent).

Validation

npm run diagnostics:validate passed (22 findings). README index regenerated; .github/agents and shared findings consumers were intentionally not included — trusted CI/reviewer should run npm run diagnostics:render.

Requires human review; not auto-merged.

Generated by CI and Integration Doctor Updater · copilot · auto (Claude Sonnet 5.5) · ~37 AIC · ⌖ ~2 AIC · ⊞ 13.8K · ◷

@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels Nov 9, 2026
@lpcox
lpcox marked this pull request as ready for review November 10, 2026 01:58
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 01:58

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

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-004 record 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: true and exclude result-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",
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11386 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit c2df0b0

@lpcox

lpcox commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Addressed in 683e3b3: CI-004 now requires resultValidated: true and a non-result primary gate; I regenerated both diagnosis consumers and added the #11194 evidence row. Registry validation/parity, 47 focused tests, Markdown lint, and secret scanning passed.

Copilot AI requested a review from lpcox November 10, 2026 02:17
@github-actions

Copy link
Copy Markdown
Contributor Author

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

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

@lpcox
lpcox merged commit f2334c6 into main Nov 10, 2026
40 of 43 checks passed
@lpcox
lpcox deleted the ci-doctor/CI-004-finalization-9a5c20fcf3e32751 branch November 10, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants