Repository navigation
Add a reusable PRISM candidate-storm instrument - #192
Merged
Merged
Conversation
This was referenced Sep 4, 2026
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
CandidateStormRigthat recreates the observed 3,120-row PRISM candidate storm against the shipped in-memory ledger and coordinator pathsoutstandingand restartreplay-inflightmarker cardinalities in discoveryWhy this is standalone
This extracts the instrument that falsified the first #183 bulk-collapse design without carrying any of that prototype. Live admission marks every durable candidate outstanding before bounded queue insertion, including coalesced wakeups; restart adoption marks every restored row replay-inflight before processing. Those markers describe process ownership of eventual disposition, not proof of a node offer.
The default run preserves the testnet4 cardinality: 3,120 durable rows, 32 live wakeups queued, 3,088 coalesced, and all 3,120 marked outstanding; after a fresh coordinator enumerates the same ledger, all 3,120 are queued for replay, marked replay-inflight, and protected by accepted-parent preview barriers.
This does not claim to close #183, #187, or #185. It gives #187 a real above-bounds restart fixture and #185 fixed component gauges to extend with drain and memory measurements. PostgreSQL wait, qbitd, wall-clock convergence, and post-drain retention remain outside this PR.
Verification
tests.test_prism_candidate_stormpython3 -m unittest tests.test_prism_candidate_stormos.spliceerrors and two spool assertions)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.