TLA+ Specification and Model Checking of the Agoric Smart Contracts Kernel
summary
Industrial Agoric kernel is formalized in a TLA+ master model that types variables via Apalache, models the cisco/dispatch syscall pair between VATs and kernel, and isolates liveSlots and translation tables. A lightweight, 200-line reference-counted GC model verifies invariants (no early exporter free, consistent kernel refcounts) in ~1,200 states. Model-based testing converts Apalache traces into JS tests via a model-based testing harness (≈200 JS + 300 glue lines), generating thousands of executions and catching injected bugs.
AI-written summary · about
