Skip to content

Verify production invariants with Kani and negative controls - #3

Merged
vynazevedo merged 1 commit into
mainfrom
feat/verification-pilot
Sep 21, 2026
Merged

vynazevedo merged 1 commit into
mainfrom
feat/verification-pilot

Conversation

@vynazevedo

@vynazevedo vynazevedo commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

Changes generated by AI need independently checked evidence for specific invariants. This pilot extracts three primitives used by the actual Rust engine and verifies that exact source with Kani 0.68.0: budget reservation, strict contract gates and bounded text-range preservation.

The report records input/log SHA-256 hashes, tool metadata, completed harness results and explicit scope. Three deliberate mutations must fail the corresponding assertions. Missing tools, timeouts, incomplete checks and stale reports cannot pass. The reusable test workflow now includes this verification job and stores its evidence; proof-policy diffs are exposed for independent review.

Validation locally: all three properties verified and all three mutations detected; 149 core tests, 29 CLI integration tests, MCP tests, three evaluation scenarios, collector regressions, fmt and clippy passed. Source links, frontmatter and release metadata validated.

Limits: the text proof covers 0–4 ASCII bytes with unwind 6, while Unicode and caller wiring have regression tests. The pilot does not prove parser/filesystem behavior, complete OpenAPI compatibility, whole-program correctness or release-compiler equivalence. Specification review remains necessary. The v1.5.0 tag/binaries are unchanged; this is documented as unreleased work.

See verification/PLAN.md, verification/RESULTS.md, verification/rules.json and docs/verification-pilot.md for reproduction and trust assumptions.

Remote validation: full test workflow and lint passed, including Linux/macOS/Windows, AST, ML, LSP, evaluations, all three Kani properties and all three negative controls. Downloaded the verification artifact, matched every source/log/result hash against this checkout, and successfully ran the report freshness checker on the downloaded evidence. Verification artifact.

@vynazevedo
vynazevedo merged commit b0597a0 into main Sep 21, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant