S · Scope · Gate 01
Name the outcome and its owner.
Prepare a checked invoice draft and its evidence for an accounts-payable reviewer.
Compare against manual entry plus OCR and deterministic validation on the same documents. Count accepted records, corrections and reviewer minutes, including exceptions.
Leave this gate withAn owner, a task boundary, a manual or rules-based baseline, a definition of done and a list of unacceptable outcomes. Agree on a pilot end date before building.
H · Harden · Gates 02, 03, 05
Give each capability a narrow contract.
One tenant, an approved document collection and a staging ledger. Read purchase orders and vendor records. Never issue a payment, change bank details or approve your own output.
✓ ReadVerified identity, permitted sources and approved tools.
⏸ ReviewThe AP reviewer sees the source pages, field differences, validation results, target record and exact proposed arguments. Approval binds to this payload and expires if it changes.
× DenyUnknown tools, cross-tenant data, changed payloads and authority escalation.
Enforce these rules at retrieval and tool execution. A prompt, skill, MCP connection or approval screen cannot replace server-side authorization. A delegated agent receives the intersection of its own scope and the caller's scope, never broader inherited powers.
Leave this gate withIdentity and data-flow diagrams, tool schemas, input validation, reviewer roles, expiration rules, idempotency, a retry policy and a tested stop path.
A · Anchor · Gate 04
Make evidence traceable all the way back.
Quarantine and scan uploads; validate file type and size; classify the document; extract fields and table structure with page coordinates. Preserve the original and its content hash under the retention policy.
Check required fields, duplicate invoice keys, totals, currency and purchase-order references in code. Retrieve only permitted policy passages. Treat document text as evidence, never as a new instruction or permission.
Evidence card · synthetic exampleInvoice INV-DEMO-104, page 1; purchase order PO-DEMO-28; current invoice policy with owner, version and review date. All records in this lesson are synthetic.
Separate the source of truth, the search index, the current context and stored conversation state. Each has its own access and deletion rules. Re-check permission on later turns; do not let a cache or memory reintroduce revoked material.
Leave this gate withA source register, ingestion and deletion pipeline, permission propagation tests, citation format, freshness rule and an explicit insufficient-evidence outcome.
M · Measure · Gates 06, 07
Prove the outcome, including the failures.
Measure field exact-match and document-level acceptance on held-out vendors, layouts, scans and languages. Calibrate review thresholds against observed field errors. Extraction confidence is not proof that an invoice is legitimate.
Compare the full system with its baseline on the same held-out tasks. Repeat variable model trials. Check the final business state in code, use domain reviewers for judgment, and calibrate model graders against those reviewers. Report denominators and failures by slice.
Total cost per accepted outcome = model + extraction + search + infrastructure + retries + human review, divided by accepted outcomes. If none succeed, report no successful outcome, not a zero cost.
Leave this gate withA versioned test set, agreed quality and latency thresholds, a risk review, unit economics and release criteria. No universal confidence score or benchmark can approve this system for your estate.
S · Sustain · Gate 08
Release a version you can observe and withdraw.
Watch correction rate by field and vendor, exception queue age, duplicate prevention, extraction drift, receipt reconciliation and total cost per accepted record.
Progress from offline tests to shadow operation, then a limited pilot and a staged release when agreed gates pass. Shadow runs do not execute business writes. Pin the prompt, model deployment, retrieval configuration, policy and tool schema together.
Leave this gate withAn on-call owner, incident thresholds, a review queue with an escalation time, versioned release evidence, rollback instructions and a tested kill switch. Stopping an agent does not undo completed external actions; reconcile them separately.
Run the existing eight-gate review →