-
-
Notifications
You must be signed in to change notification settings - Fork 155
Fix Fight for the Throne #7389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
matthewevans
merged 7 commits into
phase-rs:main
from
JacobWoodson:card/fight-for-the-throne-2
Aug 15, 2026
Merged
Fix Fight for the Throne #7389
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
be3049f
Partial: Fight for the Throne
JacobWoodson 0384967
fix(engine): consume a one-shot WhenNextEvent on a false intervening-if
JacobWoodson 10a6c8c
Merge origin/main into card/fight-for-the-throne-2
JacobWoodson 91ba9f4
fix(PR-7389): address review on the CR 603.4 delayed-trigger hoist
JacobWoodson b0690c2
test(PR-7389): correct the REVERT-TO-RED recipe to the measured one
JacobWoodson 1710d2a
Merge origin/main (cb402257) into card/fight-for-the-throne-2
JacobWoodson 82b1926
fix(PR-7389): correct intervening-if citations
matthewevans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Bind the
ownershipfield instead of eliding it with{ .. }.All three arms route to
commander_control_read(), which is notRwProfile::conservative(). The module's own "M3 binding mandate" (lines 69-75) states that{ .. }field elision is permitted only on arms whose RHS isRwProfile::conservative(); every other arm must bind all payload fields, because a precise arm that elides a field classifies whatever that field carries as nothing, which is fail-open.ability_scan.rshandles the same threeControlsCommandervariants correctly in this same PR, using{ ownership: _ }so a future field forces a re-audit.ability_rw.rsuses{ .. }for all three mirrors, which is inconsistent with that discipline and with the module's own stated rule.Based on this file's own module doc ("M3 binding mandate (review-blocking)...
{ .. }field elision is permitted ONLY on arms whose RHS is maximal-conservative") and the coding guideline "prefer... exhaustive matches over wildcard defaults" for**/*.rs.♻️ Proposed fix
Also applies to: 6352-6358, 6455-6463
🤖 Prompt for AI Agents
Source: Coding guidelines