An autonomous verification and repair studio that uses Kane CLI's real-browser evidence to detect, repair and re-verify business-logic defects.
by Flash
The test passed. The money didn't add up. Invariant is an autonomous verification and repair studio built for developers, QA engineers and teams building software with AI coding agents. Traditional browser workflows can execute successfully while critical business rules remain broken. Invariant addresses this by combining Kane CLI's real-browser observations with deterministic business contracts and autonomous code repair. In our banking benchmark, a $100 transfer completed successfully, but the combined account balance increased from $1,500 to $1,600. Kane captured the actual browser state. Invariant detected the conservation violation and generated a structured evidence packet for Codex, which autonomously repaired the transaction logic. Kane then executed the identical browser objective against the repaired application, and Invariant confirmed that the combined balance remained $1,500. The verification engine was also demonstrated across a warehouse inventory application, establishing its applicability beyond banking. Results: - 38 passing automated tests. - 3 verified post-repair transfer scenarios. - 2 application benchmarks. - 19 protected file hashes preserved. Invariant includes reusable business contracts, execution receipts, repair diffs, an interactive evidence workspace and exportable verification reports. Kane observes. Invariant evaluates. Codex repairs. Kane re-verifies. Correctness beyond tests.
HOW THE CLOSED LOOP WORKS Invariant programmatically invokes Kane CLI and consumes its structured execution output. Named browser observations are normalized and evaluated against deterministic business contracts. When a contract is violated, Invariant generates a structured repair packet containing the observed discrepancy, expected behavior and permitted repair scope. Codex consumes this packet and repairs the application within a restricted workspace. The proposed patch is validated before Kane is invoked again using the unchanged browser objective. Repair acceptance depends on fresh browser evidence satisfying the original contract, not the coding agent's declaration of completion. WHAT THE EVIDENCE REVEALED Kane's browser observations exposed an unexpected $100 increase in LedgerLab's combined account balance and a 40-unit inventory discrepancy in the Warehouse benchmark. Invariant independently evaluated these observations and identified the business-rule violations. The banking defect was autonomously repaired and verified across three transaction amounts. The warehouse benchmark was a controlled comparison demonstrating cross-application verification. HOW TO RUN IT Clone the public repository, install dependencies with npm ci and start the application with npm run dev. The autonomous repair workflow is available through npm run repair, subject to the Kane CLI and Codex setup documented in the repository. The hosted demo provides a read-only workspace containing genuine historical execution receipts, verification results and repair evidence. WHAT'S NEXT Expand the contract library, support more complex multi-step business workflows and integrate deterministic verification into CI/CD pipelines, making business-rule correctness a release requirement for AI-generated software.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →