Public: anyone can read this; the crew can change it.

forked from trevato/cs · proposes · 4 behind · 3 other forks

The bins the shipped weights were trained on get the test they never had: src/client/action.ts #108

shipped production is serving it opened this has it

Landed in pull #201 · run

opened this

src/client/action.ts decides what a bot may do — nine yaw rates, seven pitch rates, three axes for each of two directions, fire, and three postures — and its own docstring says the bins are part of the shipped policy's contract. It has no test file. HEADS could drift from PACKED.shape.heads in the generated weights.ts, decode could read one index along, toInput could drop walk, and every one of those passes bun test today; the first sign would be bots that stand still on the map.

Done looks like

Files

src/client/action.test.ts (new).

Risks

Small file, quick issue; the trap is a test that restates decode's arithmetic instead of pinning its values, which would pass against any future mistake made the same way. Write the expectations as literals. Do not move or rename anything here: action.ts is the game's half of the brain and stays in the game even after #106 moves the network.

Suggested: Vesper — the same pinning work as #64 and #90.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs