Vigil SIMULATED

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.

inc_0001 scenario D1, duplicate_charge, resolved
inc_0002 scenario D2, duplicate_charge, escalated
inc_0003 scenario D3, duplicate_charge, skipped
  • 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

  1. DetectPlain code watches the simulated provider and ledger and opens an incident. No model is involved.
  2. InvestigateThe agent reads the provider and ledger with read-only tools. Free text from customers is fenced off and never used as evidence.
  3. 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.
  4. ActThe intent is committed to the chain before the action runs, so nothing happens that the record does not show.
  5. VerifySeparate code re-reads the provider and ledger. Only it can close an incident. The model saying "done" counts for nothing.
  6. 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