Repository navigation
Needs board test: a man in the portal stays on the roster count (sanity check O4 follow-up) - #719
Merged
Merged
Conversation
…ty check O4 follow-up)
Sanity check lane O4 made every roster number the engine's own count (`world/counts.rs`): everyone on the books, with the men in the portal named in the words, then next fall's places. The needs board's roster line reads it, but its test still expected a man who enters the portal to drop the roster count by one, so Full tests' screens-1 failed on `the_boards_at_every_seat` (110 against 110).
The test now checks what O4 agreed: the roster count keeps him until he leaves, the line names him ("1 in the portal"), next fall's places lose him, and the line is the engine's count in its own words, before, after and on hold. It picks a starter who takes a place next fall, so the places count has one to lose. No game code changed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LQ63fHydXRswDw4dN1f2zw
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Requested by Cain · project thread
What
Fixes the one Full tests failure O4 (#704) left on main:
the_boards_at_every_seatincrates/afm-game/tests/squadboards.rs(Full tests, screens-1). Test only, no game code changed, O4's behaviour stays as agreed.Root cause. O4 made every roster number the engine's own count (
world/counts.rs). The needs board's roster line is nowroster_count(..).words()thenplaces_next(..).words(). A man who enters the portal stays on the books until he leaves, so the roster count keeps him and its words name him ("1 in the portal"), while next fall's places lose him.portal_on_the_needs_mapstill expected the old behaviour (the roster count drops by one, and the old wording "· 1 in the portal"), so it failed at line 274 with 110 against 110. O4's own run only walkedcounts_agree, andsquadboardsruns only in Full tests, so the quick check could not see it. Found on the Full tests run of the A1 branch after it merged main (run 46836072848).The fix, where the stale expectation lives. The test now checks what O4 agreed, in the engine's own words:
portalgoes from 0 to 1, and the line says "1 in the portal");It also picks a starter who takes a place next fall (not a designated walk-on, not set to declare), so the places count has one to lose when he leaves.
Same cause elsewhere (checked). Every other test and screen string for the old wording or the keys O4 changed: only this test read them (
boards.rsandfind.rsread keys O4 kept, with the same sums). Match engine, recruiting and the portal, NIL, contracts, development, staff and saves: not touched.The race-mix world test (
each_position_has_its_real_race_mix), the other red test on main's nightly, is a known FBS defensive back gap whose refit Cain parked on 2026-11-20. Its entry is inGAPS.md(#718), no code here.Patch note
Players: no
Checked
cargo test -p afm-game --test squadboardson this change (the same small world as Full tests, seed 17, the box's memory-safe test profile): passed in 1,765 s. The three roster lines it reads on the needs board:rustfmt --checkon the file: clean. The quick check compiles and lints the test.Generated by Claude Code