💼 Agentic Finance Crew

A multi-agent expense-approval crew — Intake → Analyst → Approver — with a deterministic policy guardrail & human-in-the-loop.

CrewAILangGraphFastAPIlive: key-free local enginered team: 0 unauthorized approvalsreal Gemini red team: 0 unauthorizedseparation of dutiesdual control > $5,000tamper-evident audit

The model advises; deterministic code decides; a human signs anything that matters. Auto-approval only for small, compliant, low-risk requests (≤ $200) — everything else goes to a named reviewer. In the full system nobody approves their own expense, above $5,000 two different reviewers must approve, and every step is written to a tamper-evident, hash-chained audit trail.

Try it — evaluate an expense

Try an attack

Each preset is a real attack from the red-team suite. None of them can get auto-approved.

Run the red-team suite

61 attacks × 2 engines, live on this server: the deterministic engine, and the real CrewAI code path driven by a hostile stand-in model that always answers “AUTO_APPROVED”.

Safety approach, evidence & limitations

The same content as the GitHub README, in short.

🛡️ Safety approach
  • It cannot move money. There is no payment code; its only output is a recorded decision.
  • Its only autonomous action is auto-approve, and only when all hold: valid input · recognized category · within the category limit · ≤ $200 · receipt above $50 · not a duplicate · not a same-day split purchase · no prompt-injection finding · risk score < 60.
  • Everything else goes to a human or is rejected; above $2,000 a human always decides.
  • Human approval is deliberate and attributable: JWT + RBAC, approver from the token, no self-approval (separation of duties), and above $5,000 two different reviewers must approve (dual control).
  • Agents have no write capability — the LLM produces narrative only; the MCP server has no approve/reject tool.
  • Tamper-evident, hash-chained audit trail with an integrity check (GET /audit/verify).
  • Fail closed: unparseable flags, unknown categories, injection patterns or high risk go to a human, never to an approval.
🔬 Supporting evidence
EvidenceResult
Red-team suite — 61 attacks × 3 engines (incl. CrewAI driven by a hostile model that always says "approve")0 / 129 unauthorized approvals, 54 / 54 injections flagged, 183 / 183 runs pass. 129 = every policy-violating attack (incl. the 12 "injection + violation" runs); the 54 injection-only runs are measured separately. 183 = 129 + 54.
Before vs after hardeningThe same suite found 48 / 129 in the previous release — all fixed and regression-tested.
Real-LLM red team — real CrewAI crew with gemini-3.5-flash-lite (one run)0 / 43 unauthorized approvals, 61 / 61 completed, 0 errors, 18 / 18 injections flagged; the model recommended approval on 0 of the 38 policy-violating attacks it saw.
Evaluation benchmark — 1,000 synthetic cases100% policy conformance, 0 false approvals — policy compliance on synthetic cases, not proof of real-world financial safety.
Tests & CI265 tests; Python 3.10–3.12, Postgres, Docker, two safety gates.
⚠️ Limitations

A prototype for governed expense decisions — its controls reduce risk, they don't eliminate every failure.

  • Synthetic data, fictional policy; no production deployment.
  • Real-LLM evidence is one run, outside CI; other models may behave differently.
  • The input guard is heuristic — novel or encoded injections can slip past it, though they still can't approve spend.
  • Misleading model narratives could nudge a reviewer.
  • At most two approvers; reviewers can rubber-stamp, and routed requests wait for an available reviewer.
  • History look-back is bounded (90 days); split detection is same-day and same-category.
  • Tamper evidence, not tamper proofing — a full-database rewrite is caught only by comparing the ledger root with a copy kept elsewhere.
  • Not a certified financial-control system.

Fully synthetic data · no LLM key, no database in this demo · source, safety approach & limitations on GitHub » · red-team report »