Case study: Tripwire

A local gateway that lets a coding agent work on a project while the owner controls every protected change. This page summarizes what was built, what was measured and what failed. Every number links to a logged run in the evidence log; nothing here is estimated.

Problem

Coding agents act through tools: they read files, write files and run commands. Prompt injection, mistakes and over-eager agents make some of those actions harmful. The project started as a research question, whether a small, fast classifier can decide allow / review / block on each tool call, and became a product question: what boundary lets an agent stay useful while the owner keeps control?

What was built

Research: the classifier

Dataset: 10,105 tool-call examples imported from AgentDojo, split by task and scenario with four injection tasks held out entirely. Labels are construction labels, and LLM labels for the gold set, not human gold.

ModelHeld-out attack recallTest false-block rateNotes
TF-IDF + logistic regression (shipped)0.071 [0.035, 0.119]0.0087.46 ms p95 end to end on a 4-vCPU Xeon
DeBERTa-v3-base, 3 seeds0.38 to 0.690.6% to 19.9%the dev-chosen 1% operating point did not transfer
Liquid d1.1, zero-shot0.527 [0.437, 0.631]0.4% (partial test)about $20 per million decisions
GLM-5.3-Flash judge, zero-shot590 of 5900 of 211 (test sample)about $185 per million; shares the labels' rubric

Brackets are 95% intervals over task templates. The full tables, including what failed (INT8 quantization collapsed the encoder; neither latency target was met by an encoder), are in the evaluation.

The decisive finding for the product: on file actions over real project files, the shipped classifier raised 0 of 66 risky actions the policy allowed to review, while Liquid raised 63 of 66 and none of 90 benign ones (evaluation). The capability policy, not the model, is what protects; the model is a reason to look, and Liquid is offered as an opt-in (ADR-0021).

Real agent runs

Claude Code 2.1.327, restricted to Tripwire's tools, fixed an access-control bug in a sample project: it proposed the fix and a regression test as one change set, waited for approval, applied it, then asked to run the tests and reported 7 of 7 passing (transcript). An earlier run exposed a real bug: two processes sharing the state directory could corrupt its SQLite database because closing a file descriptor dropped other connections' POSIX locks. A stress probe failed in 2 of 4 runs before the fix and 0 of 8 after it.

What I would say in an interview

Evidence-backed summary lines