Skip to content

[docs] ci-doctor: add CI-010/CI-011 and refine CI-003 - #11754

Merged
lpcox merged 3 commits into
mainfrom
ci-doctor/ci-records-20261117-4b8b3205014fcd98
Nov 18, 2026
Merged

lpcox merged 3 commits into
mainfrom
ci-doctor/ci-records-20261117-4b8b3205014fcd98

Conversation

@github-actions

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.

Summary

Bounded canonical-record update from the CI and Integration Doctor Updater. It adds two CI-* findings and refines one, based on a review of merged PRs, each checked against current main code and tests. A human reviewer must approve it. Generated consumers (.github/workflows/shared/diagnosis-findings.md, .github/agents/diagnose-awf.md) are intentionally not included; trusted CI or a reviewer regenerates them with npm run diagnostics:render. The docs/diagnostics/README.md index is regenerated.

Changes

ID Boundary Status Version scope Change
CI-010 (new) ci fixed introduced/fixed unknown (Codex CLI 0.159.3 in the enclave image) Codex enclave exits 0 but its shell tool fails in nested bubblewrap, surfacing as result-empty
CI-011 (new) ci fixed introduced/fixed unknown (Codex CLI 0.159.3) Daily primary-agent guest fails at the Copilot placeholder check or the Codex stdin/provider contract
CI-003 (update) ci fixed unchanged Adds the earlier reusable-job OIDC claim expectation as a condition, and cites #11192

CI-010

  • Probe: jq '{failure: .session.failure, lastEvent: .session.lastEvent}' path/to/protected/diagnostics.json. It is read-only and projects only finite categories; raw bwrap text is never retained.
  • Action: use source where the trusted shared provider environment sets AWF_ENCLAVE_AGENT_CODEX_BYPASS_APPROVALS=true and the entrypoint adds --dangerously-bypass-approvals-and-sandbox. Keep the outer confinement and treat a missing /awf/out result as failure.
  • Provenance: Enable Codex shell tools inside hardened Docker enclaves #11190, fix: wire trusted Codex sandbox policy into enclave launches #11224.
  • Current main: containers/enclave/agent-executor/agent-provider-environment.js, containers/enclave/agent-entrypoint.py, src/enclave/agent-provider-environment.test.ts (docker/gvisor/cloud-hypervisor) and the shell-launch-failed case in src/enclave/agent-entrypoint-diagnostics.test.ts (exit 0 → result-empty).

CI-011

  • Probe: grep -n -e 'COPILOT_PLACEHOLDER_TOKEN' -e 'model_provider' -e 'dev/null' scripts/ci/run-agent-regression-guest.sh. It reads source only and never reads credential values.
  • Action: use a guest that loads the canonical compiled placeholder, accepts only an absent, empty or exact-placeholder value, and runs Codex non-interactively against the sidecar. Do not weaken isolation or point Codex elsewhere.
  • Provenance: fix: make daily Codex regression noninteractive and sidecar-backed #11159, Fix canonical Copilot placeholder checks in daily runtime regression #11161.
  • Current main: scripts/ci/run-agent-regression-guest.sh and scripts/ci/agent-runtime-regression.test.ts ("closes Codex stdin...", "explicitly routes Codex Responses...", placeholder accept/reject cases).
  • Related: CI-005, which covers the later completion/routing evidence gate.

CI-003

  • Fix Cloud Hypervisor enclave admission and expose early startup failures #11192 diagnosed the earlier reusable-job claim mismatch. Current src/enclave/cloud-hypervisor-conformance-acceptance.ts requires workflow_ref, workflow_sha, job_workflow_ref and job_workflow_sha to match the regression workflow at the compiled commit, and scripts/ci/enclave-agent-regression.test.ts rejects mismatched or reusable identities. The new condition is worded to match that code, not the PR body.

Coverage and cursors

Evidence limits

  • The changed-file lists of the reviewed PRs were removed by the GitHub integrity policy (pull_request_read get_files). Classification used PR bodies plus verification of the described behaviour in current main source and tests; no retry through another transport.
  • Hosted acceptance is not claimed. The affected PR bodies state live hosted acceptance remained outstanding. Version scopes stay unknown because the shipped release was not verified.

Review credit

Merged by @lpcox (automation-authored PRs credited to the human merger); #11198 and #11212 involved @rabeckett.

Validation

  • npm run diagnostics:validate: registry valid (34 findings).
  • npm run diagnostics:render: run; the generated prompt/agent files were left out for trusted CI.
  • npm run diagnostics:check: in sync before reverting the generated files.

Generated by CI and Integration Doctor Updater · copilot · routed: sonnet55 high · ~119 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

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

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 probe omits required engine-result metadata and exit code, then attributes missing output to bubblewrap without corroborating evidence that the trusted external-sandbox opt-in was absent.

1 open issue
What changed in this PR

This documentation-only PR expands AWF’s canonical diagnosis registry for CI failures, drawing on recent fixes while keeping hosted acceptance and release versions explicitly unverified.

Changes:

  • Adds CI-010 for Codex nested-sandbox failures and CI-011 for primary-agent credential and invocation failures.
  • Refines CI-003 with the ordinary-workflow identity requirements and supporting provenance.
  • Updates the registry index and symptom lookup; generated agent consumers remain deferred to trusted regeneration.
File Description
docs/​diagnostics/​README.md Indexes the new findings and their symptoms.
docs/​diagnostics/​findings/​ci/​CI-011.json Documents guest credential checks and sidecar-backed Codex invocation.
docs/​diagnostics/​findings/​ci/​CI-010.json Documents Codex nested-sandbox failures and trusted launch policy.
docs/​diagnostics/​findings/​ci/​CI-003.json Clarifies workflow identity conditions and adds provenance.

Review effort: Balanced (adaptive)

Updated the command and expect fields for the CI-010 finding to improve clarity and accuracy regarding Codex enclave failures.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

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 17, 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-11754 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 6c2cbdb

@lpcox

lpcox commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@copilot fix this failing ci check https://github.com/github/gh-aw-firewall/actions/runs/44202740488/job/134460749957?pr=11754

Fixed in commit 9c858f0: regenerated the diagnosis consumer files so the freshness check passes. The failure was caused by stale .github/workflows/shared/diagnosis-findings.md and .github/agents/diagnose-awf.md artifacts.

Copilot AI requested a review from lpcox November 18, 2026 00:05
@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 94.14% 94.34% 📈 +0.20%
Statements 92.75% 92.95% 📈 +0.20%
Functions 93.29% 93.53% 📈 +0.24%
Branches 86.97% 87.21% 📈 +0.24%
📁 Per-file Coverage Changes (11 files)
File Lines (Before → After) Statements (Before → After)
src/routing/bootstrap.ts 91.0% → 91.0% (+0.04%) 86.5% → 86.6% (+0.06%)
src/chroot-home-setup.ts 92.1% → 92.2% (+0.16%) 91.5% → 91.7% (+0.16%)
src/container-startup-diagnostics.ts 98.8% → 99.0% (+0.17%) 98.8% → 99.0% (+0.16%)
src/services/agent-volumes/credential-hiding.ts 96.7% → 96.9% (+0.20%) 96.4% → 96.6% (+0.25%)
src/services/agent-volumes/workspace-mounts.ts 95.9% → 96.2% (+0.28%) 96.0% → 96.3% (+0.31%)
src/commands/build-config.ts 87.2% → 87.5% (+0.33%) 87.7% → 88.0% (+0.30%)
src/commands/main-action-cleanup.ts 96.9% → 97.9% (+1.03%) 97.0% → 98.0% (+0.99%)
src/container-startup.ts 96.6% → 97.7% (+1.07%) 96.6% → 97.0% (+0.40%)
src/nvx/one-shot-process.ts 81.5% → 84.0% (+2.47%) 74.7% → 76.8% (+2.11%)
src/nvx/cleanup-record.ts 84.1% → 86.9% (+2.80%) 81.2% → 83.8% (+2.57%)
src/nvx/cleanup-registry.ts 54.1% → 68.4% (+14.33%) 55.7% → 68.8% (+13.13%)
✨ New Files (5 files)
  • src/agent-home.ts: 95.8% lines
  • src/nvx/cleanup-account-validation.ts: 100.0% lines
  • src/nvx/cleanup-network-state.ts: 100.0% lines
  • src/nvx/cleanup-process-identity.ts: 100.0% lines
  • src/services/agent-volumes/exposed-home-secrets.ts: 97.4% lines

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit cf9504c into main Nov 18, 2026
38 of 40 checks passed
@lpcox
lpcox deleted the ci-doctor/ci-records-20261117-4b8b3205014fcd98 branch November 18, 2026 05:36
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