Repository navigation
feat: add exact review lifecycle projection - #952
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 9:53 PM ET / August 1, 2026, 01:53 UTC. ClawSweeper reviewWhat this changesAdds a versioned Durable Object lifecycle record for each exact-review revision and uses it to coordinate canonical publication receipts, terminal outcomes, and a single guarded GitHub command-status acknowledgement. Merge readiness⛔ Blocked until stronger real behavior proof is added - 5 items remain This PR remains necessary: it adds the proposed lifecycle projection rather than duplicating functionality already on current Priority: P1 Review scores
Verification
How this fits togetherExact-review automation receives GitHub review work, queues it through the Cloudflare Worker, and persists canonical publication facts before workflows acknowledge command-originated work. This PR inserts a durable lifecycle projection between those queue/publication facts and the terminal GitHub status update so completion reflects the required durable receipts. flowchart LR
A[GitHub review request] --> B[Exact review queue]
B --> C[Worker lifecycle projection]
C --> D[Canonical publication receipt]
D --> E[Terminal disposition]
E --> F[Guarded command acknowledgement]
E --> G[Queue completion or retry]
Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Attach a redacted current-head terminal transcript or runtime log that visibly shows canonical/router receipt recording, an acknowledgement retry or release path, and the final observed acknowledgement receipt; then obtain a refreshed review before maintainer merge consideration. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this is a new lifecycle projection. The relevant pre-merge proof is an after-fix controlled Worker/workflow run demonstrating the claimed receipt and acknowledgement transitions. Is this the best way to solve the issue? Yes, conditionally: a durable projection is a coherent bounded way to keep lifecycle facts separate from transient workflow activity, and the PR preserves a separate follow-up for the stated superseded-receipt collision. The remaining requirement is inspectable runtime proof for the current head. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8fbb46bd20a9. 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 (10 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f3f2a10 to
8aa6208
Compare
8aa6208 to
ebbcb2b
Compare
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat: add exact review lifecycle projection 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. |
* feat: add exact review lifecycle projection * feat: finalize exact review lifecycle acknowledgements * fix: recover direct lifecycle finalization * fix: retain batch lifecycle admission during rollout * test: cover lifecycle finalization contract * fix: harden exact review lifecycle finalization * fix: converge exact review lifecycle retries * fix: guard exact review terminal delivery
Summary
Implements the approved post-cutover Workstream 2 slice of #898: an additive, versioned Worker lifecycle projection for each exact-review revision, with durable terminal finalization and one guarded final command acknowledgement.
Approved contract and implementation
canonicalTargetKey, exactfenceKey, revision, and claim provenance. It retains immutable admission/claim and review-result facts, GitHub effect identity/digest, canonical receipt, router receipt, acknowledgement attempt/observed receipt, and terminal disposition.review_completed_routedis Completed only after durable routing; command-originated work additionally requires an observed final acknowledgement receipt.The maintainer-approved Workstream 2 contract is recorded on #898 and its explicit lifecycle-semantics addendum. CSW-076 remains the retained, unchanged read-only decision record.
Validation
Current head:
ebbcb2b97ad89fa3b781729ac154ce743c51c09a, mechanically rebased on currentorigin/main8fbb46bd20a9d0d67d3446a4e46e417a45314dadwith no source conflict.pnpm run buildandpnpm run lintpassed.pnpm exec oxfmt --checkon all changed TypeScript/workflow-adjacent source and test files passed.git diff --check origin/main...HEADandgit diff --checkpassed.actionlintis unavailable on this host. The changed workflow paths are covered by the focused workflow/Bash tests; this PR adds no CI or platform support.Real Behavior Proof
ExactReviewQueuecompletion, direct publication finalization, terminal-finalization acknowledgement, and the guarded command-status updater.mcr.microsoft.com/playwright:v1.60.0-noble,--no-hydrate, local Wrangler/Durable Object storage, and focusednode --testselections. The focused lease wascbx_c33402055f0f.pendingafter canonical receipt, two allowed guarded acknowledgement attempts separated by a released failure receipt, thencompletedwith acknowledgementobserved; the workflow trace records the direct router handoff plusterminal_context_claimed,terminal_attempt_allowed,ack_failure_receipt_recorded,ack_retry_requeued, andverified_status_id_only_receipt_observed.Codex review closeout
origin/main8fbb46bd20a9d0d67d3446a4e46e417a45314dad: no P0/P1 finding. Its one P2 is explicitly split out below rather than silently carried in this PR.Follow-up deliberately outside this PR
CSW-086 owns the non-blocking P2 superseded-receipt versus stale artifact-terminal-plan precedence retry. It is deliberately not implemented or claimed fixed here. In that narrow collision, a post-effect may retry until the follow-up makes superseded receipt precedence explicit; this PR preserves the durable projection and does not broaden into that repair.
Maintainer proof override — known limitation only
A maintainer expressly authorizes a normal manual merge of this exact reviewed head despite ClawSweeper's remaining request for stronger inspectable real-behavior evidence. This override is limited to that known proof limitation: the current evidence is a controlled Linux Crabbox Worker/Durable Object trace with synthetic GitHub router and terminal-workflow boundaries, not a live GitHub-connected after-fix workflow run or an uploaded inspectable artifact. No unrun proof is claimed.
The
status: 📣 needs proofandP1labels remain as transparent advisory markers of this limitation; the exact-head ClawSweeper review reports Findings: None and Security: None. This override does not waive any P0/P1 code or security finding, current-head CI/check, GitHub mergeability, ruleset, or requested-changes condition; it does not authorize CI repair, gate changes, queue replay, production mutation, automerge, or a revert. The CSW-086 P2 disclosure below remains unchanged.Boundaries
No Bay/Overview or Workstreams 4–5 work, telemetry redesign, Workstream 1 change, historical backfill/replay, Git-state restoration, key trimming, CI/platform expansion, gate change, production mutation, queue replay, or automerge. The sole exception is the separately authorized normal manual merge after the current preflight passes; it does not authorize production action or a later revert.