Governance as Code / Supplier invoice verification
Right invoice.
Right contract.
Right context.
Before an AI agent comments on a disputed supplier charge, it needs the approved contract and rate card, relevant case history and trusted validation instructions. These sources must match the task, case and reader. The result helps a human reviewer examine exceptions—it is not payment authorization.
Conceptual context selection—not a claim that a live enterprise knowledge compiler or source registry is deployed.
00 / Follow one disputed invoice rate
How does a supplier claim become a reviewable finding?
The same number means very different things depending on its provenance. A supplier can claim a new rate; only the relevant authorized agreement can establish whether it applies.
01 · Incoming claim · Not authoritative
Supplier invoice and draft email
Example invoice: €120/hour. An attached email asserts that the rate increased. Neither document establishes an approved amendment, and neither may issue instructions to the AI.
02 · Independently approved record
Signed contract and effective rate card
Example approved rate: €95/hour, with a documented source, version, effective date and scope. A draft fee increase cannot silently replace it.
03 · Build the smallest sufficient context packet
Select evidence; do not dump every available document into the model
Applicable signed rate card and contract clause.
Earlier correction for this case, if authorized.
Trusted checking rules and reviewer escalation.
04 · Verifiable discrepancy
Claim differs by €25 per hour
Code calculates the difference. The workflow must still establish whether a valid contract amendment exists. Missing evidence leads to uncertainty and escalation—not model certainty.
05 · Accountable decision
The named reviewer decides
AI may summarize an exception, but cannot approve payment, invent source authority or alter a signed rate card. Retain the source evidence and human disposition.
All figures and records in this example are fabricated teaching data; no invoice is actually checked by this page. Inspect the workflow architecture.
01 / Distinguish the layers
Long-term memory is not the context window
What the organization knows
- Scope
- Every case, kept over time
- Size
- Large, and it grows
- Reaches the model
- Only the part selected for one step
- Control
- Owner, approved version, validity
What the model sees now
- Scope
- This case, this step
- Size
- Small, bounded by the window
- Contents
- Role instructions, verified facts, permitted tools, selected evidence
- Lifetime
- Rebuilt for each step; supplier claims stay marked unverified
Right evidence, right step, right case.
Long-term memory holds three kinds of knowledge
Semantic memory
What the business authorized: signed terms, current rate cards, validity periods and approved supplier rates.
Control: source owner, approved version, validity and scope.
Episodic memory
What happened in this case: revisions, earlier corrections, review concerns and decision history.
Control: case isolation; history is not automatically a policy.
Procedural memory
How the review must be performed: deterministic checks, permitted tools, evidence validation and escalation.
Control: instructions and permissions come from trusted code, not retrieved prose.
02 / Interactive model · browser-only
Try assembling evidence for one invoice.
Choose a review task, case, reader role and evidence budget. Watch the source-eligibility gates reject unapproved, expired or unrelated material and report whether required invoice evidence survives.
Case A: the invoice asserts a changed rate; compare the claim with the approved contract and effective rate card. Withdraw the fee policy or reduce the evidence budget to see when required records disappear.
Available knowledge candidates
case recordsAssembled runtime context
selected for next actionADMITTED CASE EVIDENCE
Required records present. This demonstrates source eligibility, not correct AI reasoning or approval.
03 / Make corporate knowledge trustworthy
A draft supplier rate cannot silently become an approved rate.
The contract owner determines when a rate amendment becomes valid, the service it covers and which revision is authoritative. Draft proposals can support investigation, but cannot supersede a signed rate card or authorize payment.
- 01CreateRecord the proposed fee change, source and owner.
- 02ChallengeProcurement checks the claim against signed terms.
- 03ValidateVerify authority, scope, revision and effective dates.
- 04ApproveAuthorized owners publish the operative rate revision.
- 05RetrieveUse only current, case-relevant approved evidence.
Three signals keep knowledge current
04 / AI-first is process redesign
Start with the reviewer's decision, then trace the checks and sources.
An accountable invoice disposition depends on the reviewer's authority, the right source records and the workflow's checks. The skin/meat/skeleton view makes these dependencies explicit before any task is delegated to AI.
An accountable invoice disposition
The named reviewer accepts, challenges or requests corrections using verified evidence.
Verified, reviewable steps
Document intake → Tier 1 arithmetic → Tier 2 contract checks → optional Tier 3 → human review.
Controlled capabilities
Invoice schemas, signed rate cards, tool contracts, case history, audit events and permissions.
Five organizational dimensions must move together
05 / Where safety thinking helps
Treat context selection as an assurance argument.
Trace a decision back to the right source, version, owner, scope and verification method. Preserve the distinction between an AI recommendation and an authorized human action.
01 Source authority
Is this an approved operational fact, or an attractive but unsupported claim?
02 Memory boundaries
Are episodic records restricted to the correct case and least-privilege role?
03 Freshness
Does the exact revision remain effective, or must its owner review it?
04 Context budget
Were relevant complete sources selected rather than noisy or truncated fragments?
05 Independent checks
Do deterministic calculations and Chain-of-Verification support the model’s claims?
06 Human decision
Is escalation visible, the reviewer attributable, and final approval still human-controlled?
What exists versus what is being developed
Case-continuity history, compact prior-run digests, contract clause retrieval, deterministic rules, case isolation, CoVe and human decision boundaries.
Enterprise knowledge publication registry, owner-approved source lifecycle, shared refresh queues and governed context compilation wired into live agent runs.
An invoice claim is not contract authority.
Review requires evidence and accountability.
Use approved records, isolate case history and enforce procedures through trusted code. AI may assist investigation; a human reviewer retains the final decision.