revert: undo #892 legacy terminal reconciliation - #893
Conversation
This reverts commit 2345e9f. The merged protocol-v1 path does not select the stranded protocol-v2 root row.
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed July 27, 2026, 9:58 AM ET / 13:58 UTC. ClawSweeper reviewWhat this changesThis PR exactly reverts the recently merged bounded reconciliation path, client counters, documentation, and tests for terminal protocol-v1 exact-review publication rows. Merge readiness⛔ Blocked until stronger real behavior proof is added - 7 items remain Keep this PR open for revision rather than merge: the production dry run establishes that the cited stranded row is protocol-v2 and therefore not repaired by the new protocol-v1 path, but it does not establish that removing the bounded protocol-v1 reconciliation is safe. The unchanged branch still removes a recently merged, separately validated cleanup path for genuine protocol-v1 rows. Priority: P1 Review scores
Verification
How this fits togetherThe exact-review publication queue retains work items until their GitHub targets and durable acknowledgement state establish completion. Its maintenance reconciliation endpoint reads queue state and bounded target status, then removes only safe stale publication rows while reporting the results to repair tooling and operators. flowchart LR
A[Queued publication rows] --> B[Maintenance reconciliation request]
B --> C[Ownership and lineage safety checks]
C --> D[Bounded GitHub target-state read]
D --> E[Safe terminal-row removal]
E --> F[Queue state and reconciliation counters]
F --> G[Operator dry-run or apply review]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the proven protocol-v1 reconciliation path, then implement a separate narrowly scoped repair for the protocol-v2 stranded-row lifecycle only after its durable completion and acknowledgement conditions are demonstrated. Do we have a high-confidence way to reproduce the issue? No high-confidence after-fix reproduction is present. The diff and removed tests make the regression source-reproducible, but the submitted evidence does not run the reverted branch against both a genuine protocol-v1 terminal row and the cited protocol-v2 row. Is this the best way to solve the issue? No. The dry run correctly shows that the cited protocol-v2 row is outside the protocol-v1 selector, but removing the independently safe protocol-v1 path is broader than necessary; preserve it and repair protocol-v2 separately. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2345e9fb14dc. 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 re-review |
|
Closing as documented in the PR body: preserve #892's protocol-v1 safeguard; the correct follow-up is a separately proven protocol-v2 lifecycle repair. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
Disposition
Do not merge — this revert is withdrawn and will be closed.
The accepted P1 review finding is correct: the production dry run only proves that the cited stranded row is protocol-v2. It does not invalidate the separately tested bounded protocol-v1 reconciliation that this branch removes. Retaining that current-main safeguard is safer than globally reverting it while the protocol-v2 row remains unresolved.
Accepted review finding
Evidence
apply: falseand reportedlegacyTerminalCandidates: 0,legacyTerminalEligible: 0, andlegacyTerminalChanged: 0for the reported root; no queue mutation occurred.retry_exhausteddead letter. Its originating run 30091560737 recorded protocol version 2 andLIVE_PROCEEDED: true.pnpm run build:all; dashboard suite (240 passing); repair-client suite (6 passing); publication-batch suite (55 passing).codex review --uncommittedconfirmed no local patch.git fetch origin main --prune && codex review --base origin/mainaccepted the P1: this exact revert removes the only bounded terminal cleanup for genuine protocol-v1 rows without a replacement.Correct successor scope
The follow-up must preserve current-main protocol-v1 behavior and target only the stranded protocol-v2 state-batch lifecycle. Before any apply capability is proposed, it must demonstrate the producer-run completion, acknowledgement/delivery terminal condition, absence of active lease/batch ownership, and absence of newer authority for the exact row. This PR does not change queue state or authorize an apply.
Original proposal
This branch exactly reverts merge commit
2345e9fb14dc302404125038270996ed53e59858(#892). It is retained only as review evidence for the withdrawn revert; it must not merge.Links