Repository navigation
feat: add exact review lifecycle telemetry - #991
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 11:51 PM ET / August 1, 2026, 03:51 UTC. ClawSweeper reviewWhat this changesAdds a producer-only Durable Object aggregate that records exact-review lifecycle coverage and direct, batch, and non-batch publication outcomes with seven-day retention. Merge readinessThe focused source review and current-head controlled runtime trace support the producer-only behavior, and no discrete patch defect was identified. Keep this PR open for the coordinated roadmap decision in #898: the additive Durable Object telemetry contract and its persistent-storage boundary need explicit maintainer approval before the draft can move forward. Likely related people: Priority: P2 Review scores
Verification
How this fits togetherExact review events enter the queue and lifecycle projection inside a Durable Object, which then drives canonical publication and terminal handling. This PR records aggregate operational facts alongside those producer paths while deliberately exposing no public or operator reader. flowchart LR
Events[Exact-review events] --> Queue[Durable Object queue]
Queue --> Lifecycle[Lifecycle projection]
Queue --> Publication[Direct and batch publication]
Lifecycle --> Telemetry[Producer-only telemetry]
Publication --> Telemetry
Telemetry --> Storage[Durable Object SQL tables]
Decision needed
Why: The patch is technically bounded, but #898 reserves coordinated workstream scope and the new retained telemetry contract creates an operational product boundary that source review cannot approve on behalf of maintainers. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Record explicit maintainer approval for this narrow producer-only Workstream 3 contract, including its storage budget and the rule that any future reader is authenticated and outside Bay/public-status semantics, then land the additive implementation without broadening it into a presentation surface. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect reproduction: this is a new producer contract. The PR does provide a high-confidence controlled current-head trace of the changed Durable Object and queue entrypoints, with four targeted passing scenarios. Is this the best way to solve the issue? Unclear: the implementation is a coherent narrow way to add aggregate producer facts, but whether this persistent telemetry contract should exist now is reserved for the coordinated roadmap decision in #898. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8e620fc4fb3f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
Summary
Implements #898 Workstream 3 as a producer-only Durable Object telemetry contract:
ExactReviewLifecycleTelemetryV1.Problem
Actions/public item status can show a visible acknowledgement without proving the durable lifecycle is Completed. Operators need producer facts that distinguish a terminal lifecycle projection, an acknowledgement still pending observation, and unresolved/unknown work without treating workflow success as per-item lifecycle truth.
Implementation
dashboard/exact-review-lifecycle-telemetry.ts, theExactReviewLifecycleTelemetryV1aggregate contract and bounded telemetry tables.dashboard/exact-review-queue.ts: direct fallback/accepted/deduped/superseded outcomes; batch and non-batch retryable/permanent/superseded terminal outcomes; lifecycle receipt-derived accepted/deduped counts.Real Behavior Proof
Claim: telemetry reports durable lifecycle facts, not Actions success or visible command status.
Exercised surface: an in-memory Durable Object Worker with signed direct publication results and fenced publication batch/complete routes.
Scenarios and observed results:
acknowledgementPendinguntil its acknowledgement is observed; it is not represented as Completed.publishedcompletion does not create a synthetic accepted result.Commands and results:
All passed; the full Worker suite completed 290/290.
git diff --checkand targetedoxfmt --checkpassed.Controlled Linux/Docker current-head trace
Provider: Crabbox
local-containeron Linux Docker imagemcr.microsoft.com/playwright:v1.60.0-noble; one-shot leasecbx_8f5e8735cc4d(automatically stopped). The script asserted the reviewed head before building the repair dependency and exercising the actual Worker/queue producer entrypoints. The redacted terminal trace was:Limits: this is a controlled, isolated Docker proof of the current-head Worker/queue routes and durable-object storage behavior. It makes no production call, changes no queue/workflow authority, and adds no reader or public status surface.
Review
codex review --uncommitted: final closeout reported no correctness issues.codex review --base origin/main: no actionable correctness issues.Scope and risks
This PR is deliberately not a consumer or presentation change. It adds no Bay/Overview UI, public status/API expansion, authenticated operator route, R2 scan/backfill/replay, workflow/queue authority change, Workstream 1/2 semantic change, deployment, gate change, merge, or automerge.
The aggregate contract is producer-only by design. A future exact per-revision operator reader needs separate maintainer approval and must stay authenticated, redacted, and outside Bay/public status semantics. Telemetry write failures are non-blocking and cannot change publication/lifecycle behavior.
Rebased on current
origin/mainat8e620fc4fb3fe04761a8b0245b9e89cb553ebb5a(#990); its batch post-effect workflow/test ordering is preserved.Relates to #898, #947, #952, and #990.