Skip to content

fix(genesis): map consume race to GenesisChallengeError#47

Merged
Undline merged 1 commit intomainfrom
dev
Apr 8, 2026
Merged

fix(genesis): map consume race to GenesisChallengeError#47
Undline merged 1 commit intomainfrom
dev

Conversation

@Undline
Copy link
Copy Markdown
Contributor

@Undline Undline commented Apr 8, 2026

  • mark_consumed returns bool instead of raising RuntimeError on 0-row update.

  • verify_and_consume raises challenge already consumed when the conditional update loses (e.g. concurrent verify).

  • Expand Google-style docstrings on GenesisChallengeService and repository.

  • Tests: double mark_consumed; monkeypatched failed mark after valid signature.

- mark_consumed returns bool instead of raising RuntimeError on 0-row update.

- verify_and_consume raises challenge already consumed when the conditional update loses (e.g. concurrent verify).

- Expand Google-style docstrings on GenesisChallengeService and repository.

- Tests: double mark_consumed; monkeypatched failed mark after valid signature.

Made-with: Cursor
@Undline Undline merged commit d6ed573 into main Apr 8, 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.

1 participant