Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python
1.3 KB
Raw Blame

Kernel: score maintenance

Source of truth: lean-proofs/Graff/Score.lean.

Process kernel, not a Turing machine: finite Event / step, no tape. The honest unit is the STAGE, never the item. N children do not mint N rows. attempt never files; capture (the post-join gate) files only when fleet is on, the slot is canonical, and stageScore is some. Unreached / all-fail / overflow stay silent — a 0 would poison the mean. The 1210-cell cube (240 filed) is the snapshot. Shape stays the observation ladder of one turn.

The diagram is the projection of the live Python step. Emit it with python3 spec/conformance.py --diagram score.

stateDiagram-v2
  [*] --> Off
  Armed --> Dry: attempt fail
  Armed --> Live: attempt ok
  Armed --> Off: fleetOff
  Armed --> Uncelled: setSlot none
  Dry --> Live: attempt ok
  Dry --> Off: fleetOff
  Dry --> Uncelled: setSlot none
  Filed --> Uncelled: capture
  Filed --> Off: fleetOff
  Live --> Filed: capture
  Live --> Off: fleetOff
  Live --> Uncelled: setSlot none
  Off --> Armed: fleetOn
  Off --> Dry: fleetOn
  Off --> Filed: fleetOn
  Off --> Live: fleetOn
  Off --> Uncelled: fleetOn
  Uncelled --> Off: fleetOff
  Uncelled --> Armed: setSlot
  Uncelled --> Dry: setSlot
  Uncelled --> Live: setSlot