Repository navigation
refactor(dashboard): use polling-only workflow health - #1926
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 makes dashboard workflow health polling-only and removes its webhook-source selector, snapshot reuse, and repair publication. Example: A deployment sets CLAWSWEEPER_DASHBOARD_WORKFLOW_SOURCE=webhook with usable workflow snapshots.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it makes a distinct, maintainer-authorized simplification that current main has not implemented, and inspection found no actionable correctness regression. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe dashboard Worker collects GitHub workflow runs and jobs, combines them with queue observations and cached state, and publishes bounded status responses for the dashboard and OpenClaw Bay. flowchart LR
A[Dashboard and Bay] --> B[Worker status endpoint]
B --> C[Bounded GitHub polling]
C --> D[Run and job health]
E[Status and job caches] --> D
F[Exact review queue] --> B
D --> B
Technical reviewBest possible solution: Retain one bounded polling owner for dashboard workflow health while preserving shared webhook ingress, read-model APIs, and existing cache formats. Do we have a high-confidence way to reproduce the issue? This PR addresses an authorized simplification rather than a reported bug; source inspection confirms both the current selector and its removal. Is this the best way to solve the issue? The change cleanly removes the alternate owner and its repair machinery while keeping the existing polling implementation, callers, error handling, and cache compatibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 01db57a7c1f9. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 11, 2026, 5:44 AM ET / 09:44 UTC. |
What Problem This Solves
Dashboard workflow health should have one supported source: bounded GitHub polling, which production already selects.
User Impact
Dashboard workflow health always polls GitHub.
CLAWSWEEPER_DASHBOARD_WORKFLOW_SOURCEis retired; setting it towebhookno longer selects snapshot reads, repair writes, or fallback warnings. Signed webhook ingress and the underlying read-model APIs remain available for their other consumers.Why This Change Was Made
Removes the alternate workflow-health path, stale snapshot revalidation, and job repair publication while preserving polling bounds, caches, errors, and coalesced refreshes. No storage migration or production mutation is included. Command-bound proof and repair retirement are deliberately excluded.
Whitespace-insensitive diff: 7 files, +37 / -707, net -670 lines (
git diff --stat -w origin/main...HEAD).OpenClaw Bay Impact
No public Bay field or presentation change. Bay continues to receive the same bounded polling-derived status, and the local runtime proof retained complete public queue responses.
Documentation Impact
Updated active source-of-truth descriptions in
docs/live-dashboard.mdanddocs/github-webhook-read-model.md, including removal of the retired revalidation procedure. Added the normal changelog fragment.Real Behavior Proof
/api/statususes polling even with the retired source override set towebhook;/api/exact-review-queuestill initializes its SQLite Durable Object successfully.CLAWSWEEPER_DASHBOARD_WORKFLOW_SOURCE=webhookand the same local signing secret.node /Users/obviyus/Developer/.agents/handoffs/clawsweeper-deslop/dashboard-polling-smoke.mjs, from this checkout; Node 24.21.0, Wrangler 4.131.1, macOS arm64./api/statusresponses were HTTP 200 and issued the seven bounded general run polls. Both queue responses were complete with pending=0 / leased=0. Origin/main emittedgithub_read_model_degraded; candidate did not.8981f00422ba7949fce358708dbac5f7d49095c2; committed worktree was clean..artifacts/dashboard-polling-retirement/{proof-summary.json,base-status.json,candidate-status.json,base-worker.log,candidate-worker.log}. This is a controlled local upstream, not production traffic evidence. An entrypoint shim exposes only the unchanged real handler/DO classes because workerd rejects numeric unit-test exports on both revisions. No live data was changed, and no schema/rollback completion is claimed.Evidence
test/repair/process-env.test.tstestCodex subprocess prevents pnpm deploy from installing target Git hooks: the unsafe fixture'spnpm deploydid not install the expectedcore.hooksPath. This PR does not change repair subprocesses, pnpm configuration, or that test. The full suite is not claimed green.codex review --base origin/main: no actionable regressions (pueue tasks 3432 and 3446).No merge/automerge or manual ClawSweeper re-review is requested.
Inspectable shipped-entry-point trace and baseline discrimination
The retained local workerd run invoked the shipped
fetchroute andstatusJson, not the status helpers directly: HTTPGET /api/status→statusJson→refreshStatus→ GitHub HTTP fixture.GET /api/exact-review-queueexercised the real SQLite Durable Object bootstrap. The shim only drops non-runtime numeric test exports; it does not replace handlers, fetches, stores, or queues.Recorded source identity: base
d14447b3cfb4e0ab8a0cb1a44278f39955032b5a; head8981f00422ba7949fce358708dbac5f7d49095c2with empty working diff. Both receiveCLAWSWEEPER_DASHBOARD_WORKFLOW_SOURCE=webhook.The last assertion is the intentional source-retirement regression: base falls back from the retired webhook selector and logs degradation; head does not select that path. Unchanged HTTP/queue/polling assertions pass on both revisions, as preservation checks should. This does not assert identical timestamps or byte-identical status bodies. Raw retained summary/response/log files and runner are named above; the decisive records are embedded here so review does not depend on access to a local path.
Merge danger: two-way door; a code/config revert restores the selector without data rollback. Blast radius: dashboard workflow-health source selection only; webhook ingress and persisted read models remain supported.