KIP 2.0 Formal Verification

September 15, 2026 · View on GitHub

Suite 8 also runs Memory Interface schema and scenario-model checks for processing barriers, out-of-order completion, idempotent intake, task scope and honest coverage. These are executable contract tests, not an exhaustive proof or a production Brain result. Real binding scenarios run through the optional interface adapter suite.

English | 中文

Machine-checked models of the KIP 2.0 specification. Results, findings, and scope limits are in REPORT.md.

SuiteToolTarget
alloy/kip-core.alsAlloy 6 (temporal)Core data model: Proposition/Assertion/Evidence lifecycle, Concept merge, Same-Space closure, epistemic root conservation (§23), origin-bound authority (§31.5)
tla/KipTransactions.tlaTLA+ / TLCTransactions: atomic commit, EXPECT VERSION, idempotency (incl. no_effect interaction), space_seq/Commit Record (§32–§36)
governance/check_governance.pyPython (exhaustive)§30 policy evaluation: deny-overrides, invariant supremacy, order-independence
grammar/check_ebnf.pyPython (static)KQL/KML/META EBNF: well-formedness, reachability, cross-grammar drift
lifecycle/check_lifecycle.pyPython (bounded input enumeration and transition scenarios)Independent attempt aggregation, immutable trial/evaluation replay, revision reset, re-trial, legal promotion, same-state monitoring, late outcomes, correction and origin exclusions
watch/check_watch.pyPython (explicit-state, exhaustive)Watch firing under two concurrent evaluators with redelivery: exactly-once firing, match-only, silence soundness (Profile §5.11; Spec §34, §35.1, §36.3)
purge/check_purge.pyPython (explicit-state, exhaustive)Erasure: reference policies, legal hold before policy and through cascades, digest stubs, payload purge (Spec §19.1, §60.3, §60.6, Invariant 34)

The current consistency revision is reported separately in CONSISTENCY-REPORT.md. Its Node contract suite adds generation/fencing, basis/context, numeric and typed-artifact checks; build packages/kip-lang after installing workspace dependencies before running it. These oracles are not Nexus engine results.

Run everything (expected results asserted, including intended counterexamples in the bug-injection configs). The Python suites need no Java; without the jars the Java suites are skipped and the run exits 3:

export ALLOY_JAR=/path/to/org.alloytools.alloy.dist.jar   # Alloy >= 6.2
export TLA_JAR=/path/to/tla2tools.jar
./run.sh

These artifacts verify the protocol layer within bounded scopes. They do not — and cannot — verify cognitive-layer claims (memory influence, learning); those are Brain-level empirical benchmarks by design (Architecture §21.3).

Historical full run (previous draft)

2026-09-02, all seven suites, run.sh with ALLOY_JAR / TLA_JAR set (Java 17, Alloy 6.2.0, TLC 2.19): all pass, 4 min 33 s wall clock; every bug-injection mode produced its counterexample. Details in REPORT.md §12. On a machine where java is not on PATH, point JAVA= at the JRE binary before running.