Repository navigation
Carry post-merge review hardening for the accepted-block gap fix (#93) - #94
Merged
Merged
Conversation
…eads - an unknown pre-withdrawal probe verdict re-probes the chain after the blocking payout-preview withdrawal: a buried accepted block is not always re-observed as the tip (blockwait reports only the newest of rapid connects), so a healed view must be able to defer the terminal commit on its own; provably wrong-height verdicts stay immutable - startup replay treats a failed pool_block_state read as protection, not absence of proof: the candidate replays with restored acceptance evidence bounded by the observation window instead of racing a transient fork view unprotected after a flaky read Co-Authored-By: Claude Fable 5 <[email protected]>
…ations The disposition seal stops observation matching at a terminal commit, but the terminal cleanup after it can still fail (prepared-row rejection or the durable outbox update raising), retaining the candidate for a full re-disposition. Re-register the hash inside _retain_block_candidate_for_retry -- the funnel every retained path crosses -- so acceptance evidence arriving during the retry backoff registers again instead of vanishing behind the seal. The same-pass exclusion between a sealed commit and its rejection is unchanged: retention only happens after that pass has aborted. Co-Authored-By: Claude Fable 5 <[email protected]>
Member
Author
|
@codex review |
Member
Author
|
bugbot run |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 68aae45. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #93 merged at 22:56Z while its review loop was still converging; two review rounds landed after the merge point and this PR carries them onto 1.x.x unchanged (the tree here is byte-identical to the final fully-reviewed state of the #93 branch):
pool_block_stateread as protection rather than absence of proof — the candidate replays with restored acceptance evidence bounded by the observation window instead of racing a transient fork view unprotected_retain_block_candidate_for_retryre-registers the hash for tip-observation matching the moment a sealed terminal pass aborts (prepared-row rejection or the durable outbox update raising), so acceptance evidence arriving during retry backoff registers again instead of vanishing behind the disposition seal; the same-pass seal exclusion is unchangedBugbot's post-merge High on #93 ("Retain path omits outstanding re-register") describes the merged code exactly — the third item here is its fix.
Deployment
Deploy together with (or immediately after) #93's merge commit
d3ab0d1as part of the same-day rollout; these close review-identified corner cases in #93's own protections. Do NOT roll back the pin.Validation
python3 -m unittest tests.test_prism_coordinator_vardiff— 296 tests passedpython3 -m unittest discover -s tests -p 'test_*.py'— 1,248 tests passed, 3 skipped (baseline)git diff d3ab0d1..HEADequals the reviewed be61e24+0a8b1b7 diffs; tree matches the final Close the accepted-block blind spot behind lost submitblock acks #93 branch state byte-for-byte🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Changes timing and evidence rules in accepted-block abandonment and payout-preview coordination; mistakes could still wrongly abandon or defer candidates, but scope is narrow defensive fixes with matching unit tests.
Overview
Follow-up hardening on the prism coordinator’s accepted-block gap protections from #93, closing review-identified races where terminal abandonment or replay could drop real accepts.
Startup replay now treats a failed
pool_block_stateread like proven prepared/confirmed state: it restores outstanding-candidate and tip-observation evidence (bounded by the observation window) instead of replaying unprotected against a transient fork view.Terminal abandon runs a second chain probe after the blocking payout-preview withdrawal when the first probe was inconclusive, so a buried accepted block can defer abandonment on recovered probe truth even when blockwait never re-reports that hash as tip; a provably wrong-height probe still wins and is not re-probed.
Retry retention immediately re-registers the candidate hash for tip-observation matching when a sealed terminal pass aborts and the block is retained, so acceptance evidence during retry backoff is not lost behind the disposition seal.
Reviewed by Cursor Bugbot for commit 68aae45. Bugbot is set up for automated code reviews on this repo. Configure here.