grounded-decision

Act when the evidence holds. Hold back when it doesn't.

Automated systems act on scores. This library sits between the score and the action: an agent proposes, checks test the proposal against the evidence, and the gate acts, abstains, or falls back to a safe default, and records why either way.

Here you can watch it decide in eleven games, play against it, or let it guard your own moves, live in your browser on the same Python package as the command line.

Hexxagon: the ring trap

An agent proposes each move

  1. Propose —
  2. Check —
  3. Act or fall back to a safe move

Inspect every move of this game →

How one decision is made

  1. Propose

    An agent proposes an action: a search, a rule of thumb, a learned model, or you. Its score is a suggestion, not a licence.

  2. Check

    Each check tests the proposal against evidence it can stand behind: is it legal, does it lose material, can the opponent force a win? Every check records its evidence, pass or fail.

  3. Act, abstain or degrade

    Every check passes: the gate acts. One fails: it degrades to a safe fallback, or abstains and hands the decision to a person. The record says which check, and why.

Acted
The proposal passed every check and was played.
Overrode
A check failed, so the safe fallback was played instead: the verdict degrade.
Abstained
No safe action was certified, so the gate held back for a person.

Every game, three ways

Watch the agents and inspect every decision, take a seat against them, or play guarded: the gate checks your moves and explains each override.

Beyond games

One implementation, everywhere

The browser runs the very Python package the command line runs, in a background worker (Pyodide), so the tests and proofs behind it cover what you see here. Nothing is rewritten in JavaScript.

Every replay and every live game comes with the terminal command that plays it again, move for move, and a link that reopens it exactly: the settings, your moves and the position on show.

Display settings

Kept in this browser only; a shared link opens in each person's own settings.

Colour scheme
Boards
Motion