Skip to content

Needs board test: a man in the portal stays on the roster count (sanity check O4 follow-up) - #719

Merged
cnbville merged 1 commit into
mainfrom
claude/project-thread-6rdfzr
Dec 2, 2026
Merged

cnbville merged 1 commit into
mainfrom
claude/project-thread-6rdfzr

Conversation

@cnbville

@cnbville cnbville commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Requested by Cain · project thread

What

Fixes the one Full tests failure O4 (#704) left on main: the_boards_at_every_seat in crates/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 now roster_count(..).words() then places_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_map still 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 walked counts_agree, and squadboards runs 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:

  • the roster count is the same before and after he enters (110 and 110) and on hold;
  • the engine's count names him (portal goes from 0 to 1, and the line says "1 in the portal");
  • next fall's places lose him (86 to 85 of 105);
  • the needs board's line equals the engine's count and places in their words, before, after and on hold.

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.rs and find.rs read 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 in GAPS.md (#718), no code here.

Patch note

Players: no

Checked

  • cargo test -p afm-game --test squadboards on 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:
before: 110 on the roster · 86 of 105 roster places taken for 2027
after:  110 on the roster (1 in the portal) · 85 of 105 roster places taken for 2027
held:   110 on the roster (1 in the portal) · 85 of 105 roster places taken for 2027
  • rustfmt --check on the file: clean. The quick check compiles and lints the test.

Generated by Claude Code

…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
@cnbville cnbville self-assigned this Dec 2, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T10:39:42.568109Z
We couldn’t complete this review. Comment @codex review to try again.
95dcd40 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@cnbville
cnbville merged commit 219510e into main Dec 2, 2026
6 checks 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.

2 participants