PACT: an operations agent that writes only what you approve

About this project
Overview
PACT is an AI assistant for the staff of a small firm that installs and maintains security and IT equipment. Technicians and office staff handle contracts, field work, stock and purchasing by typing what happened, for example "swapped the sfp at ironwood yday, 1hr, used 1 from van". The assistant finds the records, prepares each change and shows it on a confirmation card. Nothing is written until the person approves.
How it works
A LangGraph harness runs Claude Haiku 5.5 at low effort, through OpenRouter.
Lookups are scoped to the signed-in user: the CEO sees the whole firm, a manager their department, an employee their own records.
Every change goes through an action registry that checks permissions, states and quantities in code before a card appears. The model never writes. The harness commits the approved draft exactly once, even after a crash.
Service agreements and handbook chapters are searched with Postgres full-text search and pgvector, limited to the contracts the user may see.
Text stored in records and documents reaches the model as data, and the tests include instructions planted in it.
What I measured
The question was how small a model can do this work reliably. A bench runs real tasks against the real harness on a fresh database, and code checks the change in the database.
On 81 held-out tasks, each run three times, Haiku at low effort passed 243 of 243 runs with no safety violation, at about a tenth of a cent per task. The same model without the harness passed 81.9 %.
I wrote those tasks with Claude, so OpenAI Codex wrote a blind set from a plain brief without seeing the code. The first version scored 89.2 % on it. After I fixed the gaps it found, the shipped version passed 96.6 % on 39 tasks it had never seen.
Try it
Sign in with any demo account listed on the login page (password: demo), for example field.lena@pact.example.test. The Experiments page shows every run with its transcript.
Built with Python, FastAPI, LangGraph, Postgres with pgvector, Next.js, Claude Haiku 5.5 through OpenRouter, Docker and Google Cloud Run.