Skip to content

Add transaction-committed selector decision delivery - #57

Merged
lisbun merged 1 commit into
mainfrom
issue-56-selector-decision-delivery
Aug 30, 2026
Merged

lisbun merged 1 commit into
mainfrom
issue-56-selector-decision-delivery

Conversation

@lisbun

@lisbun lisbun commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • add immutable SelectorDecision / SelectorDecisionCommit public values using the existing seat-relative observation and action descriptor contracts
  • deliver selector decisions only after successful RoundState.apply() / resolve_reactions(), and after the existing on_delivery callback for the same transaction
  • preserve all three canonical reaction-seat choices, including Pass-only seats and losing Chi / Pon / Ron choices, without recomputing resolver outcomes
  • document that multi-seat decision bundles are not single-player-safe global-public records

Callback ordering

successful engine transaction
    -> existing on_delivery (when public facts exist)
    -> on_selector_decision_commit
    -> next engine transition

An on_delivery failure prevents decision publication. A decision callback failure propagates fail-fast after the already-committed transaction and before the next transition.

Validation

  • python -m unittest discover -s tests -p test_driver_decision_delivery.py -v (14 tests)
  • python -m unittest discover -s tests -p test_driver.py -v (20 tests)
  • python -m unittest discover -s tests -p test_driver_delivery.py -v (15 tests)
  • python -m unittest discover -s tests -p test_round_evidence_completion.py -v (27 tests)
  • python -m ruff format --check .
  • python -m ruff check .
  • git diff --check

Closes #56

@lisbun
lisbun merged commit 11e83d0 into main Aug 30, 2026
1 check passed
@lisbun
lisbun deleted the issue-56-selector-decision-delivery branch August 30, 2026 08:17
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.

run_hanchan() にtransaction-committed selector decision deliveryを追加する

1 participant