Skip to content

Add a reusable PRISM candidate-storm instrument - #192

Merged
kiwidream merged 1 commit into
2.x.xfrom
add-candidate-storm-instrument
Aug 21, 2026
Merged

kiwidream merged 1 commit into
2.x.xfrom
add-candidate-storm-instrument

Conversation

@kiwidream

@kiwidream kiwidream commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a reusable CandidateStormRig that recreates the observed 3,120-row PRISM candidate storm against the shipped in-memory ledger and coordinator paths
  • exercise the production 32-entry live queue and paginated restart adoption above the 1,024-row replay page
  • emit compact JSON component gauges and pin the live outstanding and restart replay-inflight marker cardinalities in discovery

Why 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

  • Docker Python 3.12: compile all Python sources and run tests.test_prism_candidate_storm
  • focused host run: python3 -m unittest tests.test_prism_candidate_storm
  • full discovery: 2,519 tests; only the base branch's known macOS-only failures remain (three missing os.splice errors and two spool assertions)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant