Kern
Verifies AI-generated code and blocks unsafe pull requests using formal SMT proofs, four-valued Belnap logic, and automated anti-cheat detection.
Kern operates as an L0–L5 zero-trust verification gateway positioned between AI coding agents and production repositories, preventing flawed or deceptive code from slipping through continuous integration. While standard CI pipelines only measure exit codes and often pass vacuous tests or hallucinated fixes, Kern leverages Z3 SMT solving, Lean 4 theorems, and a four-valued Belnap B₄ logic lattice to mathematically prove contracts across the entire domain or produce concrete counterexamples. Written in high-performance Zig, it detects common agent test-cheating techniques—such as swallowed assertions and bypassed tests—and exposes its verification capabilities via native C-ABIs, HTTP guardrails, and an MCP server interface.