Repository navigation
Add doctor updater workflows and refresh diagnosis guidance - #11379
Conversation
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 84e5b5a |
There was a problem hiding this comment.
🟡 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
Skip deadline checks on pull requests · New Use date-independent, workflow-scoped cache keys · New Deferred PRs starve first-time reviews · New Recover from invalid review receipts · New Refresh revisions for merges outside the merge window · New Detect append-open failures from protected diagnostics · New
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 | |||
| 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 |
| 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); |
| 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}`, |
| "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.", |
|
| 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
|
@copilot address all review feedback |
|
@copilot rebase onto main and resolve conflicts |
|
@copilot rebase onto main and resolve conflicts |
Co-authored-by: Copilot App <[email protected]>
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>
a635e33 to
4ba4d2c
Compare
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
| const code = character.charCodeAt(0); | ||
| return code < 0x20 || code === 0x7f ? ' ' : character; | ||
| }).join(''); | ||
| const neutralized = noControls |
|
@copilot address the review feedback |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (3 files)
Coverage comparison generated by |
Co-authored-by: lpcox <[email protected]>
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. |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
✅ Smoke Claude passed
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
🚀 Security Guard has started processing this pull request |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
✅ Build Test Suite completed successfully!
|
✅ Smoke Test: Copilot BYOK (Direct Mode) — PASS
All tests passed. Agent is correctly using api-proxy sidecar for Copilot authentication with real key held server-side.
|
|
EGRESS_RESULT allow=pass deny=pass
Overall: PASS — @lpcox
|
|
OTEL smoke test
|
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|
|
Smoke Copilot: PR "Extend CLI Flag Consistency Checker timeout to 25 minutes"
Overall: PASS — @lpcox
|
Smoke Test: Claude Engine
Overall result: PASS
|
|
Smoke test results
|
|
Smoke services: ✅ Redis PONG · ✅ pg_isready · ✅ SELECT 1 → PASS
|
Chroot Version Comparison
Result: some tests failed (Node.js mismatch), so the
|
🏗️ Build Test Suite Results
Overall: 7/8 ecosystems passed — FAIL Java failure: Note: .NET needed a temp The
|



Summary
npm run diagnostics:freshness -- --as-of YYYY-MM-DDplus 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.Direct documentation refresh
Reviewed merged changes and implementation/tests against main snapshot
3fb6affe7ebf6a0a5508409d3fe58738ed1b02e0; the dated evidence table is indocs/diagnostics/README.md.Validation
Boundaries and limitations
/tmp/prompt warning. Directly linting the existing workflow postprocessor reproduces three pre-existingno-regex-spaceserrors on both base and head; this PR only adds its three maintenance allowlist entries.Most added lines are the three required generated workflow locks.