Repository navigation
Project player-safe round completion scoring details - #49
Merged
Merged
Conversation
lisbun
commented
Aug 29, 2026
lisbun
left a comment
Owner
Author
There was a problem hiding this comment.
Review result
blocking findingなし。merge可能です。
Issue #48のscope / acceptance criteriaとcurrent engine contractに照らして確認しました。
- winner-specific detailは
WinningPlayerResult/WinningContext/WinningScoreSelectionからwhitelist projectionされ、non-winner concealed handやphysical tile IDは公開されていません。 max_score_candidatesは任意のrepresentativeへ潰さず全件をprojectionし、consumer-facing orderもdeterministicです。- normal hand / explicit yakuman / counted yakumanのhan・fu・yakuman units・dora semanticsは既存
ScoreCalculation/HandValueEvaluationと整合しています。 - ura / kan-ura indicatorは、少なくとも1人のwinnerがRIICHI / DOUBLE_RIICHIの場合だけtable-publicとして公開され、非立直和了ではhidden snapshotを落としています。multiple ronでwinnerごとのura countが異なる場合もindicator公開とcandidate countを混同していません。
- settlement transfer / riichi-stick awardは既存確定値のprojectionで、
TransferReasonsemanticsを維持しています。 - legacy
RoundCompletionWinner(seat, win_method)constructionとexistingRoundCompletionFactfieldsも維持されています。 - CLI layout、fu component breakdown、scoring / settlement calculation変更はscope外のままです。
PR head 9de1714d0aa87ea238ebd16da7cfd9e4fee62d46 のCI successも確認しました。
追加修正を必須とするfindingはありません。
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
RoundCompletionWinnerwith player-safe winning tile, concealed tiles, declared melds, and all maximum-score candidatesTransferReasondistinctionsPublic contract
New immutable values:
RoundCompletionYakuRoundCompletionDoraCountRoundCompletionScoreCandidateRoundCompletionDoraIndicatorsRoundCompletionSettlementTransferRoundCompletionRiichiStickAwardRoundCompletionWinner.seatand.win_methodremain compatible; projected winners additionally carry the detailed fields. Legacy two-argument construction remains valid.Candidate and disclosure semantics
WinningScoreSelection.max_score_candidatesvalue is projectedArchitecture
CompletedRound,WinResult, andRoundSettlementPublicTile/PublicMeld; no physical tile identity is exposedWinningContext, score candidate, dora indicator, settlement, round state, or provenance object crosses the public contractVerification
.venv\Scripts\python.exe -m unittest discover -s tests -v: 1449 tests passed in 321.839s.venv\Scripts\python.exe -m ruff format --check .: 118 files formatted.venv\Scripts\python.exe -m ruff check .: passedgit diff --check: passedFocused coverage includes ron/tsumo, winning hand/meld/red projection, mangan through counted yakuman, single/double yakuman, all dora categories, ura disclosure safety, indicator order, mixed-riichi multiple ron, tied maximum candidates, settlement reasons, honba, riichi-stick awards, and recursive internal/physical-type exclusion.
Migration reference
Used the following python-study commits only as UX and regression references; no legacy schema or runtime API was copied:
35fde67e754d6f9b0d60219e359159cac592220d05cc40ca4176d8a253142565a67e939924941e6aCloses #48