Skip to content

test(ai): correct two mistyped figures in the ladder comments - #103

Open
pip-robot[bot] wants to merge 1 commit into
mainfrom
fix/ai-test-comment-figures
Open

test(ai): correct two mistyped figures in the ladder comments#103
pip-robot[bot] wants to merge 1 commit into
mainfrom
fix/ai-test-comment-figures

Conversation

@pip-robot

@pip-robot pip-robot Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Closing the loop on technology#68. #88 fixed the real defect (the band tests read ALL_VENUES instead of a retyped copy of three rungs). Re-verifying its numbers on today's main found two digits in that file's own comments that were mistyped when I wrote them.

What is wrong

  • The ladder table says riverboat 42%. Re-measured it is 40.8%, so 41%.
  • The sample-size note says the 150-hand spread lands in 9.0-12.9. Re-measured it tops out at 12.6.

Every other figure in the file reproduces exactly: the ten-rung entries-raised table (32 / 41 / 46 / 48 / 40 / 41 / 43 / 45 / 51 / 60), VPIP 35.2% at the Garage down to 19.0% at the Main Event, and the 18-hand spread 18.4 / 3.4 / 10.7 / 6.0 / 4.8.

These are slips, not drift, and that is checked rather than assumed

src/lib/poker/ai/policy.ts has changed since #88 merged (the postflop fair-share work in #98), so "the numbers moved" was the obvious suspect. It is not what happened:

  • Every preflop ? ... branch in policy.ts is byte-identical to the test(ai): measure the preflop bands against every shipped venue #88 merge commit (0a99172). The whole diff is the postflop gates.
  • src/config/venues.ts is unchanged since that commit.
  • The measurement stops the moment the preflop betting round closes, so nothing postflop can reach it.

So no public claim moves. "The ladder gets more aggressive as stakes climb" and "up to The Main Event" still hold, with the same margins, and the shape assertions were green throughout.

Also

The ladder table is now marked as a dated snapshot rather than reading as current truth. The assertions below it are the shape and they print the live table on failure. technology#68 exists because hand-typed numbers in this file went stale once already, so a comment that looks like a measurement should say when it was one.

Gate

pnpm test:all green (550 tests), pnpm build green. Comment-only change to a test file, so there is nothing UI-shaped in it, and there is no browser here either way.

Both were transcription slips when the tables were written, not drift.
Re-measured on v1.18.0: riverboat enters as a raiser 40.8% of the time
(41%, not 42%), and the 150-hand sample-size spread tops out at 12.6,
not 12.9. Every other figure reproduces exactly.

Proven not to be drift rather than assumed: policy.ts changed since #88
(the postflop fair-share work in #98), but every preflop branch in it is
byte-identical and venues.ts is unchanged, and the measurement stops at
the preflop betting round closing.

Also marks the ladder table as a dated snapshot. It is documentation of a
run, not a live assertion, and this issue exists because hand-typed
numbers in this file went stale once already.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pip-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4343dd8
Status: ✅  Deploy successful!
Preview URL: https://65ef04f6.pip-web-9oj.pages.dev
Branch Preview URL: https://fix-ai-test-comment-figures.pip-web-9oj.pages.dev

View logs

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.

0 participants