Repository navigation
fix(dashboard): avoid webhook warnings in polling mode - #1486
Conversation
Select bounded GitHub polling for this deployment without workflow read-model reads, repairs, or missing-subscription warnings. Preserve webhook-first defaults, shared secret checks, caches, freshness, and genuine acquisition errors. Add focused source-selection and cache/coalescing coverage. Operational release context remains here and in the PR body under the release-only changelog policy.
|
🦞👀 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. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 10:05 PM ET / September 8, 2026, 02:05 UTC. ClawSweeper reviewWhat this changesAdds an explicit dashboard polling setting that skips workflow webhook snapshot reads, repairs, and subscription warnings while preserving existing health reporting and caches. Merge readiness✅ Ready for maintainer review The change remains useful on the pinned main revision, and no actionable defect was found. The supplied real-Worker proof supports the intended behavior; this member-authored PR is not eligible for cleanup closure. Priority: P2 Review scores
Verification
How this fits togetherThe dashboard Worker collects GitHub workflow runs and jobs to report automation health. It can reuse webhook-backed snapshots or poll GitHub, then publishes a cached, observer-only status projection for the dashboard and Bay. flowchart TD
A[Deployment setting] --> B{Workflow source}
B -->|Poll| C[Bounded GitHub reads]
B -->|Webhook| D[Workflow snapshots]
D -->|Unavailable| C
C --> E[Health and job summaries]
D --> E
E --> F[Cached dashboard and Bay status]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep workflow acquisition explicitly configurable at the dashboard boundary while retaining webhook defaults, bounded polling, existing cache expiry, and the unchanged Bay contract. Do we have a high-confidence way to reproduce the issue? Not applicable as a strict existing-behavior bug: this adds an explicit acquisition mode. Main's secret-based selection is source-confirmed, and the supplied Worker transcript demonstrates the new mode. Is this the best way to solve the issue? Yes. A dashboard-owned selector reuses the established acquisition paths and preserves unset behavior, avoiding changes to shared signing credentials or unrelated consumers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6297c4b6272. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(dashboard): avoid webhook warnings in polling mode This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
What Problem This Solves
Resolves a problem where dashboard workflow health emits missing-subscription
warnings and performs workflow read-model repair even when the deployment
intentionally uses GitHub polling without workflow webhook subscriptions.
Why This Change Was Made
The dashboard inferred its workflow source from a signing secret that also
serves unrelated ingress and queue operations. A dashboard-owned source
selector now governs workflow snapshot reads, fallback warnings, run repair,
job repair, and in-flight refresh identity.
This deployment selects
CLAWSWEEPER_DASHBOARD_WORKFLOW_SOURCE=poll. Unset orwebhookpreserves existing behavior, including separate secret checks.No new webhook, subscription, permission, timeout, concurrency, queue, schema,
or public response field is introduced. Persisted cache keys and TTLs are unchanged;
switching sources takes effect through normal cache expiry, not a flush.
Production TypeScript: +19 net lines; deployment configuration: +1;
tests: +204 net lines. The added runtime surface owns the explicit source
decision without changing the existing polling or read-model implementations.
User Impact
Dashboard workflow health uses bounded GitHub run/job polling without warnings
or repair work for workflow subscriptions it does not consume. Real acquisition
errors remain visible. Other installations keep webhook-first behavior unless
they explicitly select
poll.This does not diagnose or claim to repair the two separately observed generic
status errors. No production recovery claim is made.
OpenClaw Bay Impact
Bay's public data contract, queue projection, lifecycle records, and consumers
are unchanged. Poll mode still exercises unrelated Durable Object reads; the
focused suite includes existing dashboard/Bay projection and freshness tests.
The separate queue-projection changes are outside this branch.
Documentation Impact
Updated active documentation:
docs/github-webhook-read-model.mdanddocs/live-dashboard.md. The dashboard workflow-source owner isdashboard/worker.ts;dashboard/wrangler.tomlis this deployment's sourceof truth. The sections cover the reviewed branch behavior and must change if
source selection, default behavior, or cache lifecycle changes.
No
CHANGELOG.mdentry: this repository reserves it for releases. Theoperational release context is recorded here and in the commit message.
Evidence
GitHub API/ETag handling, and operational health.
snapshots; active/completed runs and jobs; freshness and job-cache reuse;
versioned complete/incomplete job censuses; errors; same-source coalescing
and distinct-source separation.
revalidation, signed ingress, and unrelated durable consumer tests passed.
git diff --check, targeted formatting, and documentation checks passed.build:repairdid not pass: the existing shared dependency installlacks
yauzlfrom the base branch. No installation or unrelated fix wasattempted. Matching-source emitted modules supported the focused tests;
this does not make the failed build successful.
pnpm run checkmust complete in exact-head hosted CI before landing.build or test work is planned; exact-head native proof had already completed.
Real Behavior Proof
Claim: explicit polling skips workflow read-model-only work while
preserving actual workflow health, cache/freshness behavior, unrelated durable
traffic, and genuine upstream errors.
Surface and environment: actual
dashboard/worker.tsserved throughWrangler 4.107.0/workerd 1.20260701.1 with native SQLite Durable Objects and
HTTP
/api/status; Node 26.7.0. The task-owned controller runsnode .artifacts/dashboard-polling-mode/run-proof.mjs committed-2a64a166withPROOF_WRANGLER_BINpointing to an existing cached Wrangler binary. It usesloopback GitHub HTTP fixtures, an ephemeral synthetic App key, and signed
workflow deliveries. The Worker transport guard rejects non-loopback requests.
Observed result: seven scenarios passed. Polling ignored both cold and
usable phantom workflow stores, returned one real active run/job and one
recent successful attempt, and left workflow rows/watermarks unchanged.
Default fallback still warned and repaired; unset and explicit
webhookreused the usable snapshot. Refresh saw a new run and fetched its job.
A fixture HTTP 503 produced health
unknownand one diagnostic error.Trace: 68 loopback GitHub requests, including two synthetic authentication
requests, zero GitHub mutations. ETag 304 revalidation occurred. Other Durable
Object traffic remained active in all polling cases. The owned Worker child
and process group exited, with no forced termination. Native receipt:
committed-2a64a166/result.json, observed September 8, 2026 at 01:59:02 UTCon exact head
2a64a166993df868a30c1da3e70b7063a218c4e1.Worker blob
575ced5823f28c6e9210a7fec31b836d6240f455; deployment config blob43f3a2610eede9f9430b3fc51af7b55d35f73aff.Limits: this is a local real-Worker proof with controlled GitHub transport,
not live production or live GitHub acquisition. It does not prove a deployment,
subscription change, or recovery of unrelated status errors. No production
credentials or production deployment, queue, or settings changes were used;
no cache flush occurred.
Earlier harness failures are retained separately; they are not reported as passes.