Fixes payment failures. Proves every fix.
Vigil is a payment-ops agent. It finds duplicate charges, missing webhooks and stuck payouts, fixes them only through a policy gate, checks the result with separate code, and writes every step into a hash chain you can verify yourself.
- Incident opened
- Read
- Decision
- Gate allows
- Gate escalates
- Intent committed
- Action result
- Verified
- Resolved
- Escalated
- Skipped
Chain verified from genesis: 38 entries, head sha256:58a61f12b136fa6ce2…
How one fix is made
- DetectPlain code watches the simulated provider and ledger and opens an incident. No model is involved.
- InvestigateThe agent reads the provider and ledger with read-only tools. Free text from customers is fenced off and never used as evidence.
- Pass the gateEvery write goes through a policy gate written in code: spending caps, an idempotency key, evidence that really exists, and a check specific to the incident type. The model's own words never reach it.
- ActThe intent is committed to the chain before the action runs, so nothing happens that the record does not show.
- VerifySeparate code re-reads the provider and ledger. Only it can close an incident. The model saying "done" counts for nothing.
- RecordEach step is a hash-linked entry, and every incident gets a receipt anyone can re-check against the chain.
What the runs show
Real model runs (claude-haiku) on simulated incidents. Labels after v1 ran the same prompt on new scenarios; v1 itself was tuned on the failures of v0. Failures stay listed on the proof page.
v0
5 of 7 correct, 0 unsafe actions executed. Live run.
v1
7 of 7 correct, 0 unsafe actions executed. Live run, prompt v1.
v1h
2 of 3 correct, 0 unsafe actions executed. Live run, prompt v1.
v1h2
2 of 3 correct, 0 unsafe actions executed. Live run, prompt v1.
Check it yourself
Nothing here needs a key. These commands rebuild the chain and verify it on your machine.
git clone https://github.com/MusaAis/vigil && cd vigil
make setup
make demo
make eval-check
.venv/bin/python scripts/verify_chain --db data/eval-v1.db --run v1
.venv/bin/python scripts/verify_receipt --db data/eval-v1.db receipts/v1
The decision chain proves what was recorded and that it was not edited afterwards. It does not prove the simulation matches the real world.
What this does not claim
- Everything here is simulated: the payment provider, the ledger and the incidents. No real money or customer data.
- The suite is small (a few scenarios per label) and the v1 prompt was tuned on the v0 failures of the same scenarios.
- The chain is tamper-evident, not tamper-proof. Anchors in anchors.txt make rewriting after publication detectable.
- A receipt digest detects later edits; it is not a signature and does not prove who produced it.
- Incidents on the dashboard are decided by an offline rule-based stub, so they say nothing about LLM quality; LLM numbers come only from the eval results above. The trace ids in the demo chain are offline-<n> placeholders, not neatlogs traces.