2.2 KiB
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