Skip to content

Add doctor updater workflows and refresh diagnosis guidance - #11379

Merged
lpcox merged 6 commits into
mainfrom
lpcox-diagnostics-maintenance-workflows
Nov 9, 2026
Merged

lpcox merged 6 commits into
mainfrom
lpcox-diagnostics-maintenance-workflows

Conversation

@lpcox

@lpcox lpcox commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add daily Runtime & Enclave, Network, and CI & Integration Doctor Updaters, including compiled locks. Keep canonical publishing human-reviewed, permissions read-only, proposals bounded, and security findings in the restricted escalation lane.
  • Give all five maintenance updaters shared, deterministic merged-PR intake: enumerate every merge rather than keyword matches, persist checkpoints and exact-revision review receipts, traverse historical weekly windows, and expose unclassified/deferred changes in artifacts. Replace the existing runner updater's keyword-only preparation/gating and the auth updater's fixed two-day scan.
  • Add npm run diagnostics:freshness -- --as-of YYYY-MM-DD plus scheduled/PR freshness and generated-parity checks. Deadlines are inclusive UTC calendar dates; superseded records are excluded. Review dates are changed only for findings actually reviewed.
  • Expand the canonical registry from 13 to 21 findings, add source-linked read-only probes, correct three existing findings, regenerate the index/portable agent/shared catalog, and synchronize the legacy runner A4 probe.

Direct documentation refresh

Reviewed merged changes and implementation/tests against main snapshot 3fb6affe7ebf6a0a5508409d3fe58738ed1b02e0; the dated evidence table is in docs/diagnostics/README.md.

Validation

  • Final focused maintenance/registry regression run: 6 suites, 119 tests passed.
  • Broader source-evidence regression run: 22 suites, 1,093 tests passed.
  • Build, type-check, root pre-commit lint, changed diagnostic-tooling/test lint, Markdown lint, registry validation, generated parity, current freshness, overdue/invalid-date exit behavior, and diff checks passed.
  • Compiled all five updater workflows and both read-only consumers with gh-aw v1.2.1, then ran repository postprocessing. All three new workflows pass strict compilation with zero warnings.
  • Exercised real read-only merged-PR intake twice: 105 candidates, persistent checkpoints, and compact four-field metadata projection verified.

Boundaries and limitations

  • No live workflow dispatch, KVM/container acceptance run, provider inference, or token exchange was performed; none is claimed by this documentation refresh. Unknown fixed-release versions remain unknown.
  • Future updater output deliberately cannot edit generated prompts/agents; trusted review must regenerate consumers before parity passes. Cache eviction restarts overlapping intake/history traversal; saturated/incomplete GitHub search windows fail without advancing the checkpoint.
  • The existing runner doctor emits its pre-existing /tmp/ prompt warning. Directly linting the existing workflow postprocessor reproduces three pre-existing no-regex-spaces errors on both base and head; this PR only adds its three maintenance allowlist entries.

Most added lines are the three required generated workflow locks.

Copilot AI adaptive review requested due to automatic review settings November 9, 2026 17:31
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

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

Built from commit 84e5b5a

Comment thread scripts/diagnostics/intake.ts Resolved

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 deadline check runs on pull requests, allowing an overdue record to fail unrelated PRs despite the documented scheduled/manual-only scope.

6 open issues
What changed in this PR

Expands AWF’s diagnostic maintenance automation and refreshes the canonical registry while keeping documentation publishing human-reviewed.

Changes:

  • Add three daily boundary updaters and shared merged-PR intake with checkpoints and review receipts across all five updaters.
  • Add calendar-date validation, a freshness command, and scheduled/PR validation checks.
  • Expand the registry from 13 to 21 findings, correct existing probes, and regenerate diagnostic consumers.
File Description
scripts/​diagnostics/​registry.ts Add calendar-date validation and overdue-record selection.
scripts/​diagnostics/​registry.test.ts Cover deadlines and new diagnostic routing.
scripts/​diagnostics/​intake.ts Add merged-PR collection, checkpoints, and receipts.
scripts/​diagnostics/​intake.test.ts Cover intake pagination, state, and file safety.
scripts/​diagnostics/​cli.ts Expose the freshness command.
scripts/​ci/​self-hosted-runner-doctor-updater-workflow.test.ts Update runner workflow contract checks.
scripts/​ci/​diagnosis-maintenance-workflow.test.ts Cover all maintenance boundaries and freshness checks.
scripts/​ci/​auth-doctor-updater-workflow.test.ts Assert shared intake integration.
scripts/​ci/​apply-general-workflow-patches.ts Preserve released AWF installs for new updaters.
scripts/​ci/​apply-general-workflow-patches.test.ts Extend updater postprocessing coverage.
package.json Add diagnostics:freshness.
docs/​diagnostics/​README.md Document maintenance, reviewed evidence, and expanded index.
docs/​diagnostics/​patterns.md Define intake, receipt, deadline, and publication rules.
docs/​diagnostics/​findings/​runtime/​RT-004.json Document transcript-writer preflight failures.
docs/​diagnostics/​findings/​runtime/​RT-003.json Document rootfs verification capacity failures.
docs/​diagnostics/​findings/​runtime/​RT-002.json Document shared mount-propagation failures.
docs/​diagnostics/​findings/​runtime/​RT-001.json Clarify explicit versus default runtime selection.
docs/​diagnostics/​findings/​runner/​A4.json Correct the daemon OS identification probe.
docs/​diagnostics/​findings/​network/​NET-004.json Explain raw TLS versus explicit CONNECT behavior.
docs/​diagnostics/​findings/​network/​NET-003.json Document custom provider-port routing.
docs/​diagnostics/​findings/​network/​NET-002.json Correct resolver inspection and DNS guidance.
docs/​diagnostics/​findings/​ci/​CI-003.json Document regional OIDC admission failures.
docs/​diagnostics/​findings/​ci/​CI-002.json Document gateway readiness and handoff failures.
docs/​diagnostics/​findings/​auth/​AUTH-004.json Document API-proxy startup ordering failures.
docs/​cloud-hypervisor-foundation.md Reconcile historical propagation evidence with later fixes.
.github/​workflows/​shared/​self-hosted-failure-modes.md Synchronize the legacy A4 probe guidance.
.github/​workflows/​shared/​diagnosis-maintenance.md Add shared intake preparation and review instructions.
.github/​workflows/​shared/​diagnosis-findings.md Regenerate the shared diagnostic catalog.
.github/​workflows/​self-hosted-runner-doctor.lock.yml Refresh compiled prompt metadata.
.github/​workflows/​self-hosted-runner-doctor-updater.md Replace keyword-only gating with shared intake.
.github/​workflows/​self-hosted-runner-doctor-updater.lock.yml Compile shared intake and cache integration.
.github/​workflows/​runtime-enclave-doctor-updater.md Define bounded runtime/enclave documentation maintenance.
.github/​workflows/​network-doctor-updater.md Define bounded network documentation maintenance.
.github/​workflows/​diagnosis-freshness.yml Add registry parity and deadline checks.
.github/​workflows/​ci-integration-doctor-updater.md Define bounded CI/integration documentation maintenance.
.github/​workflows/​ci-doctor.lock.yml Refresh compiled diagnostic prompt metadata.
.github/​workflows/​auth-doctor-updater.md Replace the fixed scan window with shared intake.
.github/​workflows/​auth-doctor-updater.lock.yml Compile shared intake preparation.
.github/​agents/​self-hosted-runner-doctor.md Synchronize the legacy A4 probe description.
.github/​agents/​diagnose-awf.md Regenerate the portable diagnostic catalog.

Review effort: Max (auto)

@@ -1,8 +1,36 @@
---
tools:
cache-memory: true
Comment on lines +62 to +64
Review at most 50 pending PRs per run, oldest first; fetch changed files, body
and relevant tests. Classify **every** reviewed merge, including ones whose title
does not match domain keywords. Use keyword searches only to supplement intake
Comment on lines +65 to +73
export function validateReceipts(receipts: Receipt[]): void {
if (!Array.isArray(receipts)) throw new Error('Intake receipts must be an array');
for (const receipt of receipts) {
if (!Number.isSafeInteger(receipt.number) || receipt.number < 1 ||
!['covered', 'proposed', 'no-impact', 'needs-evidence'].includes(receipt.disposition) ||
typeof receipt.evidence !== 'string' || receipt.evidence.trim().length < 12) {
throw new Error('Every intake receipt requires a disposition and specific review evidence');
}
instant(receipt.updatedAt);
Comment thread scripts/diagnostics/intake.ts Outdated
let total = 0;
for (let page = 1; page <= 10; page++) {
const response = api<{ total_count: number; incomplete_results: boolean; items: Candidate[] }>([
'search/issues', '-f', `q=repo:${repository} is:pr is:merged merged:${since}..${until}`,
Comment on lines +16 to +17
"command": "grep '\"operation\":\"preflight-session-log\"' path/to/protected/enclave-session.log",
"expect": "Read only the already projected, credential-redacted operation/category/errno event. Missing transcript evidence is not success and does not by itself prove a credential problem.",
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

⚠️ Coverage Regression Detected

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

Overall Coverage

Metric Base PR Delta
Lines 93.83% 93.83% ➡️ +0.00%
Statements 92.38% 92.38% ➡️ +0.00%
Functions 93.06% 93.06% ➡️ +0.00%
Branches 86.76% 86.75% 📉 -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.ts 91.7% → 92.0% (+0.25%) 91.4% → 91.7% (+0.24%)

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

@lpcox

lpcox commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot address all review feedback

Copilot AI commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

@copilot address all review feedback

Addressed the review feedback in a635e33. Intake recovery, prioritization, rotation, and revision refresh; PR-safe deadline checks; durable updater caches; and the RT-004 probe are updated.

@lpcox

lpcox commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot rebase onto main and resolve conflicts

Copilot stopped work on behalf of lpcox due to an error November 9, 2026 18:26
@lpcox

lpcox commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot rebase onto main and resolve conflicts

Copilot stopped work on behalf of lpcox due to an error November 9, 2026 18:28
lpcox and others added 5 commits November 9, 2026 10:32
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@lpcox
lpcox force-pushed the lpcox-diagnostics-maintenance-workflows branch from a635e33 to 4ba4d2c Compare November 9, 2026 18:32
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

const code = character.charCodeAt(0);
return code < 0x20 || code === 0x7f ? ' ' : character;
}).join('');
const neutralized = noControls
Comment thread scripts/diagnostics/intake.test.ts Fixed
@lpcox

lpcox commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot address the review feedback

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.83% 93.83% ➡️ +0.00%
Statements 92.38% 92.38% ➡️ +0.00%
Functions 93.06% 93.06% ➡️ +0.00%
Branches 86.75% 86.76% 📈 +0.01%
📁 Per-file Coverage Changes (3 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%)
src/enclave/host-executor-server.ts 91.2% → 91.2% (+0.00%) 90.1% → 89.8% (-0.29%)
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

Copilot AI commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

@copilot address the review feedback

Addressed in 5591f3b: title sanitization now neutralizes role/instruction prefixes and imperative lead-ins, and invalid receipt handling no longer unlinks files by path. Focused tests could not run because dependency installation is blocked by sandbox network access.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Claude passed

Generated by Smoke Claude for #11379

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

🔮 The oracle has spoken through Smoke Codex

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

🛡️ Egress verdict from Smoke Copilot Network Isolation

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

📰 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 9, 2026

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

Tested by Smoke Chroot

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🔌 Smoke Services — All services reachable! ✅

🔌 Service connectivity validated by Smoke Services

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ Build Test Suite completed successfully!

Generated by Build Test Suite for #11379

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ Smoke Test: Copilot BYOK (Direct Mode) — PASS

Test Result Details
GitHub MCP ✅ PR data verified (PRs #11371, #11369 merged)
HTTP Connectivity ✅ github.com HTTP 200
File Write/Read ✅ smoke-test-copilot-byok.txt exists and readable
BYOK Inference ✅ Running in direct mode (COPILOT_PROVIDER_API_KEY) via api-proxy → api.githubcopilot.com

All tests passed. Agent is correctly using api-proxy sidecar for Copilot authentication with real key held server-side.

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

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

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

EGRESS_RESULT allow=pass deny=pass

  • ✅ Allowed domain (api.github.com → 200)
  • ✅ Blocked domain (example.com blocked)

Overall: PASS — @lpcox

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

OTEL smoke test

  • ✅ S1: otel.js loads and exports functions
  • ✅ S2: 75 OTEL tests passed (3 suites)
  • ✅ S3: OTEL forwarding present in env-passthrough.ts and api-proxy-env-config.ts
  • ✅ S4: onUsage hook present in token-tracker-http.js
  • ⚪ S5: Diagnostics post-step not evaluated (no export run in this check)

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Smoke Copilot: PR "Extend CLI Flag Consistency Checker timeout to 25 minutes"

  • GitHub MCP ✅
  • github.com connectivity ✅
  • File write/read ✅

Overall: PASS — @lpcox

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Smoke Test: Claude Engine

  • API status: ✅ PASS
  • gh check: ✅ PASS
  • File status: ✅ PASS

Overall result: PASS

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Smoke test results

  • test: exercise real Copilot, Claude and Codex with /reflect diagnostics
  • Refactor upstream HTTP handling into focused modules
  • Merged PR review ✅
  • PR detail lookup ✅
  • Playwright github.com title ❌
  • Temp file write/read ✅
  • AWF build ✅
  • Overall: FAIL

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Smoke services: ✅ Redis PONG · ✅ pg_isready · ✅ SELECT 1 → PASS

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Chroot Version Comparison

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

Result: some tests failed (Node.js mismatch), so the smoke-chroot label was not added.

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🏗️ 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 ✅ N/A ✅ PASS
.NET json-parse ✅ N/A ✅ PASS
Go color ✅ ok ✅ PASS
Go env ✅ ok ✅ PASS
Go uuid ✅ ok ✅ PASS
Java gson ❌ 0 run ❌ FAIL
Java caffeine ❌ 0 run ❌ FAIL
Node.js clsx ✅ passed ✅ PASS
Node.js execa ✅ passed ✅ PASS
Node.js p-limit ✅ passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 7/8 ecosystems passed — FAIL

Java failure: mvn compile fails. The default ~/.m2 repo was not accessible (LocalRepositoryNotAccessibleException). With a temp repo, Maven failed to resolve plugins from Maven Central: InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty (Java truststore has no trust anchors).

Note: .NET needed a temp DOTNET_CLI_HOME and XDG_RUNTIME_DIR, because /run/user/1001 is missing. Without them, the .NET CLI crashed on first use.

The build-test label was not added because of the Java failure.

Generated by Build Test Suite for #11379 · copilot · auto (Claude Sonnet 5.5) · ~24 AIC · ⊞ 5.9K · ◷
Add label ready-for-aw to run again

@lpcox
lpcox merged commit 95d8d0b into main Nov 9, 2026
148 of 149 checks passed
@lpcox
lpcox deleted the lpcox-diagnostics-maintenance-workflows branch November 9, 2026 20:06
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.

4 participants