Skip to content

fix(hex-primality): preserve next-prime search work accounting - #9840

Merged
kim-em merged 2 commits into
mainfrom
issue-9799
Aug 30, 2026
Merged

fix(hex-primality): preserve next-prime search work accounting#9840
kim-em merged 2 commits into
mainfrom
issue-9799

Conversation

@kim-em

@kim-em kim-em commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Closes #9799.

Summary

  • split next-prime exhaustion accounting into conclusively rejected candidates and randomized certificate attempts
  • retain the failing candidate's decision-attempt subtotal and exact advanced Rand state
  • document failure-mode detection and resumption, and add focused guards for exhaustion and least-prime success across dispatch tiers

API note

  • this intentionally replaces the ambiguous public NextPrimeFailure.attempts field with rejectedCandidates and certAttempts

Verification

  • lake build HexPrimality HexConformance
  • lake build HexPrimality HexPrimality.Conformance

@kim-em
kim-em merged commit 2ae6cc3 into main Aug 30, 2026
1 check passed
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.

fix(hex-primality): preserve next-prime search work accounting

1 participant