Repository navigation
fix(dashboard): explain GitHub status warnings - #2148
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR preserves bounded GitHub failure causes in dashboard status warnings through projection and caching. Example: GitHub returns HTTP 503 while collecting completed workflow runs.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful diagnostics beyond current main, with no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe dashboard Worker collects GitHub and worker-health telemetry, projects it into bounded public status, and serves or caches that status through /api/status. flowchart LR
GitHub[GitHub HTTP responses] --> Requests[Existing request clients]
Requests --> Collection[Status collection]
Collection --> Projection[Bounded public projection]
Collection --> HealthCache[Worker health cache]
HealthCache --> Collection
Projection --> StatusStore[Status snapshot cache]
StatusStore --> API[Public status API]
Technical reviewBest possible solution: Preserve typed failure causes through the existing diagnostic and cache owners while retaining bounded public output. Do we have a high-confidence way to reproduce the issue? Current-main source demonstrably reduces failures to section codes; the supplied paired runtime observations show the candidate retaining bounded causes, but no target code was executed during this review. Is this the best way to solve the issue? The approach uses the existing typed GitHub client and projection owners, preserves ambiguous HTTP 403 classification, and avoids parsing upstream messages or introducing another diagnostic path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1265122ec07d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 7:10 PM ET / November 4, 2026, 00:10 UTC. |
What Problem This Solves
Dashboard warnings identify a failed section but discard the request failure that would explain it.
User Impact
Operators can distinguish HTTP rejection, rate limiting, request timeout, transport failure, invalid JSON and incomplete census. Existing section strings may gain a bounded
:causesuffix; warning counts and the 20-entry cap remain unchanged.The production collection stall is still unconfirmed. This change does not resolve it or publish partial causes when the global collection deadline returns a fallback.
Why This Change Was Made
The request and status producers own the failure metadata. Preserve their typed facts as closed codes through projection and caching, using the existing GitHub error and rate-limit contracts. Remove raw-message construction from the affected producer paths. HTTP 403 alone remains ambiguous.
Production delta: +76 lines; tests: +28 lines. The added production code implements the bounded public diagnostic contract, including response-body failures after headers. No permissions, queue policy, schema, retries, concurrency or production timing changes.
Documentation Impact
Updated the active status contract in
docs/live-dashboard.md, the existing proof recipe and one changelog fragment. Dashboard maintainers own these references; the source isdashboard/worker.ts. Verified changed scope at0d0b7c2c21ec92bbb82faa2e68ba54d04a37aec2; update when cause codes, projection, caching or the proof runtime change.Evidence
1265122ec07d137740c688d90d5bf9538aa03a78with the complete worker and dependency context: clean Codex P0–P3 review.pnpm run checkcompleted static checks, build and lint, then failed four existing proof fixtures that callgit rev-parse HEADin the source-only remote workspace. Normal Git-checkout CI is required to close that environment gap.git diff --checkand public-data scan pass.Real Behavior Proof
Claim/surface: real
/api/statuscollection and SQLite-backed StatusStore preserve safe cause codes across cache reuse and restart, then clear them after healthy replacement.Environment: secretless AWS Crabbox; Node 24.19.0, Wrangler 4.131.1 / Workerd, real loopback HTTP. The runner verified 368 baseline files and 380 candidate files from source capsules bound to the clean final head.
Observed: all 24 runs pass: 11 paired GitHub scenarios plus one paired worker-health regression. Cases cover HTTP 403/429/503, explicit rate-limit headers, stalled headers and bodies, connections dropped before and after headers, invalid JSON, incomplete successful census and App-token rejection with an ephemeral synthetic key. Baseline emits bare section codes; candidate emits their bounded cause. Warning counts match in all pairs (one normally; seven for the App-auth case). Non-App warm reads do not requery; SQLite restart preserves the diagnostic; healthy replacement clears it. Worker-health cache reuse and restart retain
worker_health_unavailable:http_503. Synthetic upstream text and tokens remain absent.Commands and receipt identity
Remote execution used the documented
--capsulemode rather than fabricating Git metadata.{ "candidate_head": "0d0b7c2c21ec92bbb82faa2e68ba54d04a37aec2", "candidate_dirty": false, "source_tree_sha256": "8cc02b298aa7ab9fd4141df8f5db8c291ff983f27bc16d9563918795b38d474e", "github_runs": 22, "worker_health_runs": 2, "production_mutations": 0 }Generated receipts under
.artifacts/status-publication-outcomes/:github-failures-summary.jsonSHA-256:07de5d123c07fdc0ff18e675f617ef96071868ee04bd79fcbb07cb146aced236telemetry-failures-summary.jsonSHA-256:48a2f8f5fa182be340c5710359ea1f98b30c795b7f99857816e9b3fcd820c3afLimits: synthetic GitHub responses and queue binding; real Worker route, HTTP and SQLite. No production credential, state, deployment or timing changes were exercised. This proves attribution and retention, not the production incident cause.