# pi-verify The domain language for folding deterministic project verification and TLA+ design checks into the Pi agent loop. ## Language **Verification Gate**: A deterministic project check whose red result prevents the work from being considered done. _Avoid_: Check, test (when naming a configured gate) **Process Outcome**: The explicit classification of how a finished child process ended: `pass`, `exit`, `timeout`, `aborted`, `output-limit`, `spawn-error`, or `stream-error`. The gate runner and the JVM tools share the vocabulary and classification order but keep their own mechanics. _Avoid_: Exit status, tool failure (when naming the classification) **On-settle Gate**: A Verification Gate selected to run automatically before the agent settles. Untrusted projects never supply On-settle Gates. _Avoid_: Idle check, final test **Settle Policy**: The pure module that owns the On-settle Gate lifecycle: the mutation-capable dirty set, reset and re-arm rules, the per-prompt continuation budget, abort invariants, and the settle decision. The Pi adapter translates session events onto it; configuration resolution, gate execution, status, and message formatting stay in the adapter. _Avoid_: Dirty flag, continuation counter **Project Trust**: Pi's decision about whether project-local configuration and resources may be honored; it is not a command sandbox. An untrusted project cannot supply Verification Gates or TLA+ tool jars. _Avoid_: Command permission, sandbox approval **TLA+ Specification Check**: A syntax and basic semantic check of a TLA+ specification. A successful Specification Check does not establish that a model satisfies its properties. _Avoid_: Model check, proof **TLA+ Model Check**: An exhaustive check of a finite TLA+ model, yielding either evidence that its checked properties hold for that model or a counterexample. _Avoid_: Specification check, general proof **Deletion Guard**: The bash `tool_call` guard that requires confirmation before an in-scope command deletes test/spec paths, and blocks those commands when no human is available; uncertain operands and commands also require confirmation. Recognition and classification belong to the pure deletion policy module. _Avoid_: Test detector, shell sandbox