Skip to content

v0.4.0 — the API to start from

Latest

Choose a tag to compare

@amyodov amyodov released this 11 Sep 16:24

The largest release so far, and a breaking one: nearly every public name changed shape between 0.3.0 and here. It is also the first release whose API we would call decent and convenient. 0.3.x code does not compile or import against it unchanged; every rename is listed in the CHANGELOG, old → new. Treat 0.4.0 as the version to start from.

  • Typed facts are the API. Position::facts() answers 221 named facts in 14 groups, plus 27 per legal move, each with a real type, read by absolute colour (.white, .black), documented in one generated catalogue (docs/features.md) that the code cannot drift from.
  • One JSON form for the facts, identical from Rust (serde) and Python (to_dict()), with a JSON Schema.
  • Typed tensors (esca::facts::tensors, esca.tensors): one array per fact with its own dtype and shape, expanded or bit-packed, saved as safetensors. No normalisation; that is the trainer's business.
  • Named endings with theory verdicts and technique names, and a plain-English describe() beside every explanation enum.
  • A Position answers rules questions (legal_moves, san, play, outcome) without a Game; the vocabulary parses from text and prints as text; a Game pickles; errors say what they refused.
  • chess-esca-mcp: an MCP server over the library, released from this same tag as the PyPI package chess-esca-mcp (uvx chess-esca-mcp), with a Claude Code plugin in AnglerfishChess/plugins.
  • Examples in examples/ and python/examples/: the three programs each reviewer wrote as a newcomer, kept as they were written.

The f32 training encoder left the library; it belongs to the anglerfish trainer.