Repository navigation
fix(dashboard): remove dead per-item review telemetry - #1090
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 2:14 AM ET / 06:14 UTC. ClawSweeper reviewWhat this changesThis PR removes unused per-item review telemetry storage, write routes, health signals, and observability fields while preserving the public per-item read API as a validated empty response and retaining run-level freshness telemetry. Merge readinessThe prior public-contract blocker is resolved on the current head: the documented read endpoint now returns its validated empty envelope while the unproduced telemetry write/storage path is removed. No actionable correctness defect was found; this remains an ordinary maintainer merge decision rather than a cleanup close. Priority: P2 Review scores
Verification
How this fits togetherThe dashboard Worker exposes review-queue and observability APIs backed by the Exact Review Queue Durable Object. Signed workflow-run telemetry feeds durable run storage and lane freshness for dashboard operators, while the retained public read route provides a stable compatibility response. flowchart LR
A[Review workflows] --> B[Signed run telemetry]
B --> C[Exact Review Queue]
C --> D[Run telemetry storage]
C --> E[Review observability API]
F[Public review query] --> G[Validated empty response]
E --> H[Dashboard operators]
G --> H
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the narrow retirement of the producer-free telemetry path while retaining the public empty-envelope API and run-level observability contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this is cleanup work; the relevant verification is the after-change Durable Object upgrade and public API contract, both covered by the submitted proof and focused tests. Is this the best way to solve the issue? Yes. Removing only the unproduced private pipeline while retaining the documented read envelope is the narrowest compatibility-preserving solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 13709144f5bd. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Summary
Remove the producer-free per-item review telemetry pipeline while preserving its documented public read contract.
GET /api/exact-review-queue/reviewsremains available with the original query validation and returns the stable empty envelope{ ok: true, repo, item_number, reviews: [] }, matching production's observable behavior today.Retired:
exact_review_review_telemetrytable, its three indexes, retention and reconciliation machinery, and the schema-upgrade drop remains in place;POST /internal/exact-review/review-telemetryand the private Durable Object telemetry routes;review_telemetry_healthstatus field and dashboard-health input;/api/review-observability.Retained:
GET /api/exact-review-queue/reviewsas a stable empty-envelope compatibility contract;dashboard/review-run-telemetry.ts,exact_review_run_telemetry, the signedreview-run-telemetryroute,scripts/review-run-observer.mjs, and.github/workflows/exact-review-reconcile.yml;REVIEW_OBSERVABILITY_REQUIREDgating semantics./api/review-observabilitynow returns metadata plus exactly four run-derived lane freshness rows. Each row retainslane,label,status,last_run_at,last_success_at,item_count,run_count, andattribution.Verification before deletion
origin/mainsearch foundinternal/exact-review/review-telemetryonly in its Worker route registration anddocs/pr-674-observation-runbook.md; no producer posts to it.internal/exact-review/review-run-telemetryendpoint and remains wired intoexact-review-reconcile.yml.2026-07-21T01:26:09Z.pr-behavior-proof
Claim: an existing Durable Object upgrades cleanly after removal of the per-item table; the documented public per-item read endpoint preserves its validation and stable empty envelope; status and health expose the intended contract; signed run telemetry still feeds lane freshness; and the producer-free internal write route remains retired.
Exercised surface: the built dashboard Worker and real
ExactReviewQueueDurable Object under Wrangler 4.107.0 local persistence, driven over real HTTP.Scenario/fixture: initialize the real local DO, stop Wrangler, seed the persisted SQLite database with
exact_review_review_telemetry, its three indexes, and a row, then restart the current Worker against that persisted state. Post one signednormal_backfillrun record and query the public APIs.Command/environment: Node 24.19.0 on macOS;
DEAD_REVIEW_TELEMETRY_PROOF_OUTPUT=<temporary-directory> bash docs/proof/dead-review-telemetry/run-proof.sh.Crabbox container replay: the proof ran unchanged on pushed head
bc8086157ad850dfa6b3a40cd2ab44a8736f54eeinside a Docker-backed Crabboxlocal-containerusing Crabbox CLI 0.39.0, imagenode:24-bookworm, Docker 29.4.0 via OrbStack, leasecbx_3681075c5156, and a clean--fresh-prcheckout. Corepack was enabled into the unprivileged lease user's~/.local/bin. The run exited 0 withPROOF_RC=0; Crabbox reportedleaseStopped=true.Durable Object instantiation assertion: after the full Wrangler process tree stops and
/api/healthstops answering, the proof restarts the Worker and requires the unique postedrun_idto exist in the inspected queue database before it accepts the retired-schema assertion.Observable result, verbatim:
Artifact/trace:
docs/proof/dead-review-telemetry/run-proof.shis the reproducible proof harness. The local and clean-container runs above exercised the same script. The focused Worker tests cover the valid empty envelope and the exact 400 validation error while retaining 404 coverage for the removed internal and Durable Object routes. The pre-commit Codex autoreview was clean with no accepted/actionable findings.Limits: this proves the local Wrangler Worker/DO upgrade and HTTP contract. It does not deploy to production or establish production traffic volume.
Gates
pnpm run build:all— passpnpm run test:no-build— pass (3,224 tests; 3,215 passed, 9 skipped, 0 failed)pnpm run lint— passpnpm run format:check— passpnpm run check:dashboard-queue-boundary— passOpenClaw Bay impact
No Bay change is needed. Bay does not consume the retired per-item telemetry storage, ingest route, health field, or preserved empty-envelope endpoint, and this change neither adds nor alters any Bay observer or control surface.