Files

4.2 KiB

Changelog

[Unreleased]

Fixed

  • TLA+ Specification Check no longer reports SANY semantic errors as success when SANY exits 0; parse errors take precedence and semantic diagnostics are classified as failures.
  • Auto-SANY no longer hides PlusCal translation or SANY timeouts as success.
  • TLC results now distinguish deadlocks, invariant violations, temporal violations, specification errors, model-configuration errors, contradictions, and unexpected tool failures instead of labelling every Error: as a property violation.
  • Java 11+ is enforced per TLA+ operation through a direct java -version probe, with no bash wrapper or global cache.
  • Every SANY, PlusCal, and TLC JVM invocation now uses its own java.io.tmpdir, removed on success, failure, timeout, abort, and spawn error, so parallel checks cannot corrupt shared extracted standard modules.
  • Gate timeout, abort, and output overflow now terminate the gate's POSIX process group, so bash-spawned children still in that group do not survive; /verify forwards the context abort signal, and bounded finalization does not wait indefinitely on escaped descendants.
  • Gate output is limited to 20 MB per stream, with an actionable red diagnostic on overflow even when the command exits 0; output tails no longer split Unicode surrogate pairs.
  • JVM output overflows now report output-limit with the translation/SANY/TLC phase and actionable tail evidence instead of a generic tool failure; the 20 MB per-stream cap and the Java probe's setup classification are unchanged.

Added

  • Behavioral coverage for the full six-entry-point trust/configuration matrix, including fail-closed settle behavior, configuration re-arming after a mutation-capable tool, abort invariants, custom-run budget preservation, and the continuation cap.
  • Real JVM smoke tests (npm run test:jvm) against the vendored jar, plus a Gitea Actions verification workflow for Node 24 and Java 11.

Changed

  • Process outcomes are now explicit across gates and the JVM tools — pass, exit, timeout, aborted, output-limit, spawn-error, or stream-error — so synthetic exit codes and generic tool failures no longer mask why a run ended.
  • Project configuration now has one strict, validated owner: Project Trust is enforced for gates, automatic settle checks, and project-local TLA+ jars, and all entry points use the session project root (ctx.cwd) instead of the launch directory.
  • Trusted malformed or unreadable .pi/verify.json fails closed at settle with a red status, an actionable continuation, and the existing cap of 3; missing configuration and zero On-settle Gates remain normal skips.
  • Explicit run_gates and /verify filters that match no gates are errors instead of green zero-gate results.
  • The deletion guard now runs on the deletion policy: it recognizes git clean, quoted paths, sudo, subshell and command-substitution segments, and bash -c/sh -c bodies; uncertain commands confirm, and headless sessions block instead of silently allowing deletions.
  • The legacy unchecked configuration loader and duplicate gate execution path were removed.
  • The On-settle Gate lifecycle now lives in one Settle Policy module: the dirty set is mutation-capable tools (including the opt-in codemode, subagent, and subagent_async tools, but not bash), completed attempts re-arm only after a new mutation, custom runs never reset the budget, and aborted attempts burn no continuation and leave the dirty cycle armed. The cap remains 3.

[1.0.0] - 2026-11-23

First release as a pi package (previously a loose extension at ~/.pi/agent/extensions/verify/).

  • Ship tla2tools.jar (TLA+ Tools 2.0, 2024-08-08) in vendor/ — the TLA+ tools work out of the box; no manual jar download needed.
  • Tools: tla_check (SANY parse check with PlusCal re-translation), tlc (TLC model check with counterexample traces), run_gates (deterministic gates from .pi/verify.json).
  • Hooks: auto-SANY after .tla edits, on-settle gates with red-gate continuation, test/spec deletion guard.
  • Command: /verify [filter].
  • New jar resolution candidates: package vendor/ and ~/.pi/agent/vendor/ (survives package updates), in addition to .pi/verify.json tla2toolsJar, TLA2_TOOLS_JAR, and project vendor//tools/.