Group A · Business KPIs
Existed before AI. Is the invoice process faster, cheaper and better? 6 KPIs, before vs after.
Business case · Supplier invoice validation
How we judge whether the governed workflow pays off, and what we must watch because AI is part of it.
Two complementary KPI families
Group A is what the business measured before AI arrived. AI should move these numbers. Group B did not exist before: each new failure mode that AI brings needs its own measure. Functional safety works the same way. A new hazard gets a safety measure, and the measure gets a metric that proves it works. So the business case needs both: existing business outcomes to show the value, and new AI governance measures to show the AI behind it can still be trusted.
Existed before AI. Is the invoice process faster, cheaper and better? 6 KPIs, before vs after.
Exist because of AI. Can we still trust the AI that delivers the value? 7 KPIs, each with the new risk it watches.
Group A · Existing business KPIs
Manual checking of invoice lines, independent sources and exceptions consumes reviewer time.
Tier 1 and grounded Tier 2 resolve routine questions; review focuses on unresolved exceptions.
How we would prove it
Active reviewer minutes per eligible invoice, captured by timed activity events and compared in matched cohorts.
Not measured · invoice run
Not measured
Needs timed activity from real reviewers; the run used a scripted reviewer.
Published industry figures for these KPIs are listed on Resources. They describe other organisations, not this workflow.
Group B · KPIs introduced by AI
Each risk comes from how agents work, so the answer is in how the workflow is built. Agents run inside a fixed workflow, not on their own. A harness of rules, typed contracts and checks surrounds every model call, and the checks that verify a model are not models themselves. That is what lets the workflow grow without the KPIs drifting.
Are unusual cases routed to the model committee only when needed?
New risk: Over-escalation: model cost and delay spent on cases that rules can settle.
Built in: Code, not a model, routes the six-step graph. The committee wakes only when rules and evidence leave a question open.
6 / 15
cases reached the committee; 9 were settled by rules and evidence.
How much inference is used and at what attributable cost?
New risk: A new variable cost per invoice that grows with every model call.
Built in: Rules run first and models last. Tokens are spent only at the steps where the graph calls a model.
7,123 tokens
per invoice the committee argued (live run 2026-11-23, gemini-2.5-flash). Invoices the rules settle spend none.
How often is a factual claim rejected by source verification?
New risk: Hallucination: a fluent claim that no source record supports.
Built in: A model never grades its own claim. Each claim must match a source record, and Tier 1 rules are plain code.
5 / 35
model claims dropped by CoVe for lack of source support in the live committee run.
How often does a named human change an AI recommendation?
New risk: Automation bias: people stop challenging the machine.
Built in: The reviewer gets the evidence and both sides of the debate, not only a verdict, so a challenge stays possible.
Not measured
needs real reviewer decisions on AI advice.
How often do sanitization, policy and injection guards intervene?
New risk: Prompt injection: supplier text that tries to steer the model.
Built in: Each persona sees only sanitised evidence and at most 8 curated tools. The Attacker probes these guards on copies.
2 / 6
committee cases where a guard stepped in: an injected supplier instruction and an over-limit proposal set.
Can the workflow reconstruct its decisions and inputs?
New risk: Opaque reasoning: a decision nobody can rebuild later.
Built in: Every step writes to one event stream. Past cases never feed a new verdict; they become replay tests, so a verdict can be rebuilt.
15 / 15
cases have an event history; 0 of 112 recorded transitions fall outside the allowed set.
How often do validation runs record execution errors?
New risk: Agent failures: tool calls, provider outages and malformed output.
Built in: Typed contracts reject malformed output. A failed agent drops out of the debate instead of guessing.
1 / 15
cases with a contained adapter failure; the Opponent contributed nothing.
These design choices follow lessons on running agents at scale from the TUM × BCG lecture series; sources are on Resources.
API and backend boundary
Case access, reviewer identity, persistence and decisions need the backend, not a static site.
Contracts, purchase orders and rates come from authorised integrations.
Real API events supply timestamps, reviewer touch time, tokens and cost. Without them there is no proven before/after ROI.
This GitHub Pages site is a read-only reference. It shows measured runs, never live values.
Reference run · 15 scripted supplier cases
These numbers show how the controls routed and recorded each case.
10 synthetic invoices (18 submissions) went through supplier email, reviewer confirm, validation, the event stream and, after a failure, a corrected resubmission. The application's own KPI service computed Group A. A scripted reviewer asked for corrections, so no KPI that needs a real person is reported as measured.
Both runs repeat with python scripts/measure_kpis.py and call no model, mailbox or network.