Skip to content

[docs] ci-doctor: add CI-009 supply-chain PR-image scan timeout finding - #11652

Merged
lpcox merged 6 commits into
mainfrom
ci-doctor/ci-009-supply-chain-shards-1794783380-e9b6b2e9923c5816
Nov 16, 2026
Merged

lpcox merged 6 commits into
mainfrom
ci-doctor/ci-009-supply-chain-shards-1794783380-e9b6b2e9923c5816

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

Adds one canonical CI record, CI-009, plus its regenerated registry index entry in docs/diagnostics/README.md. Generated prompt and agent consumers (.github/workflows/shared/diagnosis-findings.md, .github/agents/diagnose-awf.md) are intentionally not included; trusted CI or a reviewer should run npm run diagnostics:render. diagnostics:check therefore reports those two files as stale until that happens.

Finding CI-009

  • Boundary / status: ci / workaround
  • Version scope: introduced unknown, fixed unknown. No release or hosted run is claimed to prove the fix.
  • Symptom: Supply Chain Scan image-scans job cancelled at its 40-minute limit during a PR-image build, with no Grype High/Critical finding.
  • Root cause: Slow package-mirror retrieval consumed a single budget shared by nine sequential image builds. The originating PR measured a 36-minute build-tools layer. Sharding gives each set of images its own runner and budget but does not speed up the mirror. No hosted run yet shows 60 minutes is enough under a slow mirror, so the status is workaround, not fixed.
  • Probe (read-only, secret-safe): grep -n -e 'scan: pr-' -e 'timeout:' -e 'images:' .github/workflows/supply-chain-scan.yml. Classify the failing step first (build, cache export, Grype scan, or cancellation).
  • Action: Use source with the three-shard PR-image matrix. Do not weaken the blocking High/Critical gate, split enclave-agent from build-tools, ignore cache-export failures, or raise a single shared timeout. A repeat timeout at 60 minutes is new evidence.
  • Related: CI-008.
  • Provenance: fix(ci): reduce supply-chain scan timeouts with PR-image shards #11399, .github/workflows/supply-chain-scan.yml, scripts/ci/docker-registry-ci.test.ts, docs/INTEGRATION-TESTS.md#ci-image-retrieval.

Current-main verification

supply-chain-scan.yml has pr-toolchain (build-tools + enclave-agent), pr-agent and pr-services shards at timeout: 60; published-cves and licenses stay at 40. The inline Python rejects empty or unknown shards and an enclave-agent shard without build-tools. npx jest scripts/ci/docker-registry-ci.test.ts passes (63 tests).

Validation

  • npm run diagnostics:validate: registry valid, 29 findings.
  • npm run diagnostics:freshness: nothing overdue.
  • npm run diagnostics:render: only the README index differs within the allowed files.

Coverage and cursors

Review

Human review is required; do not auto-merge. Human mergers and reviewers of the cited PRs (for example lpcox as merger of #11399) retain credit for the underlying changes.

Acceptance gaps

Hosted-run acceptance of the 60-minute shard budgets is not shown. The reflect smoke harness and the npm-feed migration were not turned into records because causes are unproven.

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

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels Nov 15, 2026
@lpcox
lpcox marked this pull request as ready for review November 15, 2026 23:07
Copilot AI adaptive review requested due to automatic review settings November 15, 2026 23:07

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 diagnostic can misclassify unrelated build cancellations as slow package retrieval and recommend sharding without job-timeout evidence and apt transfer timings.

1 open issue
What changed in this PR

Adds CI-009 to AWF’s canonical diagnosis registry, documenting the supply-chain scan timeout investigated in #11399 and the three-shard workaround without claiming hosted-run validation.

Changes:

  • Records symptoms, conditions, a read-only probe, and safe remediation guidance.
  • Adds CI-009 to the registry index and symptom lookup.
  • Leaves generated prompt and agent consumers for trusted regeneration.
File Description
docs/​diagnostics/​README.md Indexes CI-009 and its timeout symptoms.
docs/​diagnostics/​findings/​ci/​CI-009.json Defines the diagnosis, workaround, evidence limits, and references.

Review effort: Balanced (dynamic)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@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 15, 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-11652 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 1c5b722

lpcox and others added 2 commits November 15, 2026 15:20
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Random 20-hex-digit suffixes can contain the PID digits by chance.
Assert only that the suffix is not derived from the PID.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Build Test Suite completed successfully!

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • 169.254.169.254

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "169.254.169.254"

See Network Configuration for more information.

Generated by Build Test Suite for #11652

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

Smoke Chroot

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke Chroot · routed: haiku55 high · ~1 AIC · ⊞ 2.6K · ◷

Tested by Smoke Chroot

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

Smoke Codex

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke Codex · gpt54 · ~15 AIC · ⊞ 22.5K · ◷

🔮 The oracle has spoken through Smoke Codex

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅

🛡️ Egress verdict from Smoke Copilot Network Isolation

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

Smoke OTel Tracing

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke OTel Tracing · routed: haiku55 xhigh · ~4 AIC · ⊞ 3.0K · ◷

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

Copy link
Copy Markdown
Contributor Author

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

🔌 Service connectivity validated by Smoke Services

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Smoke Claude passed

Generated by Smoke Claude for #11652

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

Smoke Copilot BYOK

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke Copilot BYOK · haiku45 · ~8 AIC · ⊞ 7.1K · ◷

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions github-actions Bot added the smoke-copilot-network-isolation Copilot network-isolation egress smoke test label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot Network Isolation ✅ PASS

Both egress checks completed successfully:

Check Result Details
Allow (api.github.com) ✅ Pass HTTP 200 response received
Deny (example.com) ✅ Pass Connection blocked (SNI guard)

EGRESS_RESULT allow=pass deny=pass

The AWF firewall is correctly:

  • ✅ Allowing traffic to whitelisted domains (api.github.com)
  • ✅ Blocking traffic to non-whitelisted domains (example.com)

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Claude Engine Validation

Check Result
API status ✅ PASS
GitHub check ✅ PASS
File status ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #11652 · claude · haiku45 · ~36 AIC · ⊞ 6.3K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK (Direct Mode) ✅

  • ✅ GitHub MCP: PR fetch successful
  • ✅ GitHub.com: HTTP 200
  • ✅ File I/O: Read verified
  • ✅ BYOK Inference: Direct mode active (api-proxy → api.githubcopilot.com)

Status: PASS | Running in direct BYOK mode via COPILOT_PROVIDER_API_KEY

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Chroot version comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.16 Python 3.12.16 ✅ YES
Node.js v24.22.2 v2.98.0 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Result: ALL_TESTS_PASSED=false. The Node.js versions differ, so the smoke-chroot label was not added.

The chroot Node.js value (v2.98.0) does not look like a Node.js release, so the chroot node --version lookup may be resolving a different binary. This is unverified and was not investigated further.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ✅ 1/1 passed ✅ PASS
Bun hono ✅ 1/1 passed ✅ PASS
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world ✅ (restore, build, run) N/A ✅ PASS
.NET json-parse ✅ (restore, build, run) N/A ✅ PASS
Go color ✅ 1/1 passed ✅ PASS
Go env ✅ 1/1 passed ✅ PASS
Go uuid ✅ 1/1 passed ✅ PASS
Java gson ✅ 1/1 passed ✅ PASS
Java caffeine ✅ 1/1 passed ✅ PASS
Node.js clsx ✅ All passed (script) ✅ PASS
Node.js execa ✅ All passed (script) ✅ PASS
Node.js p-limit ✅ All passed (script) ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — PASS

Runner workarounds (environment only, not code failures):

  • .NET: /run/user/1001 does not exist on the runner, so the first-run setup failed. Retried with XDG_RUNTIME_DIR set to a private temp directory.
  • Java: The JDK cacerts symlink points to /etc/ssl/certs/adoptium/, which is missing, so Maven had no TLS trust anchors. I built a session-local PKCS12 truststore from the OS CA bundle (TLS verification stays on). ~/.m2 is root-owned, so Maven used a temp -Dmaven.repo.local and a session settings file with the same squid-proxy:3128 config (passed via -s). The existing ~/.m2/settings.xml was neither read nor modified.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • 169.254.169.254

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "169.254.169.254"

See Network Configuration for more information.

Generated by Build Test Suite for #11652 · copilot · routed: haiku55 xhigh · ~4 AIC · ⊞ 6.1K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

OTel Tracing Smoke Test

  • ✅ 1. Module load: otel.js loads. Exports: startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, routerCallTracing, shutdown, isEnabled.
  • ✅ 2. Test suite: 3 suites, 75/75 passed (otel.test.js, otel-fanout.test.js, otel-workload-identity.test.js). The workflow step ends in || true, so it cannot catch failures by itself.
  • ✅ 3. Env forwarding: env-passthrough.ts forwards GITHUB_AW_OTEL_TRACE_ID and GITHUB_AW_OTEL_PARENT_SPAN_ID. api-proxy-env-config.ts buildOtelEnv() forwards the OTLP endpoint/headers and trace context.
  • ✅ 4. Token tracker: onUsage exists in token-tracker-http.js and is wired in upstream-token.js to otel.setTokenAttributes.
  • ⚠️ 5. Diagnostics (inconclusive): /tmp/gh-aw/otel.jsonl holds 1 span, gh-aw.agent.setup (workflow-level, not api-proxy). Engine traffic did reach the sidecar (172.30.0.30:10001/10002). The lock file sets GH_AW_OTLP_ENDPOINTS (fan-out mode), so sidecar spans should go to collectors rather than a local file. The diagnostics step only checks the local-fallback path, so the empty file does not show missing export. Export cannot be verified from the sandbox.

No unexpected failure confirmed. No issue filed.

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Cloud Hypervisor + Copilot smoke test

  1. Merged PR lookup: PASS
  2. github.com connectivity: PASS (HTTP 200)
  3. File write/read: PASS
  4. example.com blocked: PASS (HTTP 000)

Overall: PASS

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke services: ✅ Redis PONG, ✅ pg_isready, ✅ SELECT 1. Overall: PASS

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot (PR #11652)

Overall: PASS
Author: github-actions[bot] · Assignees: none

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke test: FAIL

  • Fix incomplete daily snapshot security reviews ✅
  • Fix incomplete Copilot token optimization reports ✅
  • GitHub PR details ✅
  • Playwright github.com title ❌
  • File write/read ✅
  • Build AWF ✅

Overall status: FAIL

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@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 94.06% 94.06% ➡️ +0.00%
Statements 92.65% 92.64% 📉 -0.01%
Functions 93.29% 93.29% ➡️ +0.00%
Branches 87.07% 87.06% ➡️ -0.01%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/nvx/one-shot-process.ts 84.0% → 81.5% (-2.47%) 76.8% → 74.7% (-2.11%)
src/commands/main-action-cleanup.ts 96.9% → 97.9% (+1.03%) 97.0% → 98.0% (+0.99%)

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

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 94.06% 94.06% ➡️ +0.00%
Statements 92.65% 92.65% ➡️ +0.00%
Functions 93.29% 93.29% ➡️ +0.00%
Branches 87.06% 87.07% ➡️ +0.01%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/commands/main-action-cleanup.ts 97.9% → 96.9% (-1.03%) 98.0% → 97.0% (-0.99%)
src/nvx/one-shot-process.ts 81.5% → 84.0% (+2.47%) 74.7% → 76.8% (+2.11%)

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

@lpcox
lpcox merged commit 72b14bf into main Nov 16, 2026
50 of 51 checks passed
@lpcox
lpcox deleted the ci-doctor/ci-009-supply-chain-shards-1794783380-e9b6b2e9923c5816 branch November 16, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants