revert: draft contingency rollback for #846#847
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 25, 2026, 1:25 AM ET / 05:25 UTC. ClawSweeper reviewWhat this changesThis draft selectively reverts the durable-state tuple-baseline capture introduced by the merged exact-review publication fix and removes its regression test. Merge readiness⛔ Blocked until real behavior proof is added - 6 items remain Keep this draft open for an explicit incident decision, but it is not a safe normal merge candidate: its stated effect is to restore the exact-review publication failure fixed on current Priority: P1 Review scores
Verification
How this fits togetherExact-review workers produce review artifacts in isolated directories, and the event publisher compares those artifacts with durable state before publishing the result. The baseline snapshot determines whether a new review record can be safely applied to the durable ClawSweeper state store. flowchart LR
A[Exact review worker] --> B[Isolated review artifact]
C[Durable state checkout] --> D[Baseline tuple snapshot]
B --> E[Event snapshot comparison]
D --> E
E --> F[Safe publication decision]
F --> G[Durable review records]
Decision needed
Why: The branch intentionally reintroduces a production publication failure, so preserving it as an incident-only artifact versus closing it is an operational ownership decision rather than a code-correctness choice. Before merge
Findings
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:
Technical reviewBest possible solution: Keep the durable-state baseline behavior from current main; if a future incident truly requires rollback, use a separately approved, time-bounded rollback plan that documents the affected queue behavior and recovery path. Do we have a high-confidence way to reproduce the issue? Yes, from source and the deleted regression test: an empty isolated worker plus an existing durable tuple and a fresh review tuple exercises the restored invalid-baseline comparison path. This review did not execute the reproduction because the target checkout is read-only. Is this the best way to solve the issue? No. Current main's durable-state baseline is the narrow fix for the documented publication failure; reverting it is appropriate only after a separately evidenced incident decision. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4707e591f3a7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Thanks @brokemac79 for preparing this contingency. This rollback would recreate the durable-tuple baseline failure where an empty isolated worker is compared against existing durable state, which can strand an otherwise valid review publication. The current fix and its focused regression test remain healthy, so we are closing this draft. Please open a fresh revert PR if an actual production incident demonstrates that a rollback is needed. |
Draft contingency rollback — do not merge without explicit incident approval
This draft is a contingency rollback for #846, merged as
4707e591f3a7ab04b52d13768dba57b5059a0d99on 2026-07-25.It is deliberately a draft: #846 fixes the proven cause of the missing #93584 re-review completion. Do not merge this PR to address #93584; its existing DLQ item does not auto-replay. Use it only if a new, post-deploy incident proves that #846 itself must be rolled back, and obtain explicit maintainer approval first.
Scope
This selectively restores the pre-#846 production behavior:
It intentionally retains the unrelated verified-pull fixture from #843's follow-up CI repair. A complete textual revert would reintroduce the known deterministic
pnpm checkfailure because it removes the/repos/openclaw/clawsweeper/pulls/842mock. This draft therefore contains no change to that fixture and no other production behavior.Risk
Merging this draft reintroduces the #93584 root cause in the isolated exact-review batch path: when a durable tuple already exists, an empty worker-root base is compared with the durable-state candidate and can terminalise as
tuple_protocol_invalidwithmissing comparable state-mutation timestamp. It does not replay, repair, or otherwise mutate #93584.The separate stale-publication revision conflict observed for #111368 is unaffected.
Validation
pnpm run build:allnode --test test/dashboard-worker.test.ts— 208 passedpnpm run lint:repairpnpm run lint:scriptspnpm exec oxfmt --check src/repair/event-record-store.ts src/repair/publish-event-result.ts test/repair/event-record-store.test.tsgit diff --cached --checkCodex review closeout
codex review --uncommittedreported the expected P1: the rollback restores the durable-tuple failure.codex review --base origin/mainreported the same expected P1 atsrc/repair/publish-event-result.ts:156.That finding is intentionally rejected only because this PR is an explicit, user-requested contingency rollback. It is not a clean safety fix and must remain a draft unless a separate incident decision authorizes this exact risk.