Tripwire — Adversarial Mutation Testing & Oracle Hardening with Kane CLI & Cursor
We built Tripwire to expose and eliminate the coverage illusion in modern web development. Engineering teams often celebrate 100% test coverage, but coverage only measures which lines of code executed—not whether assertions would catch catastrophic silent failures. When an AI agent introduces a floating-point calculation error, a pricing string concatenation, or an off-by-one boundary defect, standard test suites still light up green. Tripwire is an adversarial mutation testing harness and oracle synthesizer designed for high-assurance web applications, e-commerce checkout flows, and fintech systems. It systematically injects 20 realistic semantic mutations across critical business logic (currency addition, tax calculations, free-shipping thresholds, and discount caps). Kane CLI serves as the autonomous adversarial evaluator. Operating under `--no-heal` mode on LambdaTest cloud browsers, Kane's multi-agent loop evaluates financial and domain invariants rather than superficial UI banners, exposing test blind spots and driving mutant survival down to zero.
HOW CURSOR & KANE CLI COMMUNICATE: Tripwire integrates Kane CLI into Cursor through a native stop-hook in `.cursor/hooks.json`. When tests pass under a planted mutant, the hook alerts Cursor that an escaping defect occurred. Cursor receives Kane's root cause analysis (RCA), evaluates the invariant discrepancy, and synthesizes tighter mathematical assertions and boundary validation oracles directly into the test suite. WHAT KANE CAUGHT: In LambdaTest session 9cb4a228, Mutant M01 converted cart addition into string concatenation ($4.50 + $3.00 = $04.503.00). Conventional tests checking for a success banner passed, but Kane flagged the invariant anomaly with 99% confidence and halted the pipeline. Cursor patched the accumulator in `m01-m18-agent-fix.patch`. In session c47b6c45 (117.67 total credits), our hardened oracle successfully killed Mutant M18 at the $50 free shipping cutoff with 97% confidence, achieving a 100% kill rate across all 20 mutants. HOW TO RUN IT: 1. Clone and install: `bun install` (or `npm install`) 2. Start flight recorder: `bun run dev` (http://localhost:5188) 3. Run adversarial Kane loop: `bash scripts/run-kane-live.sh` WHAT'S NEXT: Autonomous LLM property-based fuzzing that synthesizes property tests directly from OpenAPI and GraphQL schemas.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →