Deloitte LuxembourgProfessional services
Assigning Rules RPA and Agents to a Business Workflow
An invoice can be blocked by missing purchase-order information or an expired automation session. The workflow needs different owners and recovery steps for those two situations.
System overviewVisual summary
- LLM · read the invoiceUncertain text
Propose fields with source quotations.
- Rules · check the proposalExplicit checks
Resolve suppliers, purchase orders and totals.
- Human · approve a snapshotAccountability
Review the source, exceptions and version.
- RPA boundary · enter approved dataControlled action
Resume a fixed job in the mock ERP.
Persist the handoff between steps.
A restart should recover the work item, not ask a model to start again.
Independent local invoice experiment. The RPA boundary is simulated; no ERP or payment system is connected.
An invoice waiting for information is not a failed robot
An accounts-payable analyst receives a supplier invoice. Its amounts may be readable, yet the purchase-order reference is missing or does not match the supplier. Another invoice has already passed review but cannot reach the legacy application because the automation session expired. Both appear as unfinished work; they require different next actions.
The first needs a business clarification. The second needs a controlled technical retry. Sending both back to a language model wastes the reviewed work and can introduce different field values. The useful deliverable is a reviewable posting packet with its current state, evidence, blocking reason and next owner.
Deloitte Luxembourg’s published Intelligent Automation & Agentic AI Engineer role combines UiPath, document understanding, GenAI, Dataiku workflows and Python. Deloitte AI Institute’s July 2025 report illustrates invoice intake, extraction, ERP entry and exception handling, then presents possible agent enhancements. These are role requirements and an illustrative global scenario, not evidence of this workflow operating inside Deloitte Luxembourg. Sources checked on 30 November 2026. Published role · Illustrative invoice process, pp. 10–11
The independent lab uses synthetic invoice text and a local mock ERP. It does not implement OCR, UiPath or Dataiku, and it performs no payment.
Put variability at the extraction boundary
Five authored inputs cover a labelled invoice, prose wording, a missing PO, inconsistent totals and an unknown supplier with an ambiguous date. A fixed regex parser and a local Qwen extractor face the same inputs and business checks. This separates extraction coverage from the rules deciding whether a packet is ready for review.
The model proposes nine literal strings or nulls: invoice, supplier and PO identifiers; invoice and due dates; currency; net, tax and total amounts. Each value needs a unique source quote. This provides a review location, not proof that the selected phrase has the correct business meaning.
Rules check required fields, ISO dates, Decimal arithmetic and consistency with the synthetic supplier/PO registry. Rules calculate net + tax = total; extraction supplies the candidate amount strings. Supplier identity, currency and the PO’s authorised amount belong to reference-data checks. A missing PO must not be invented from an otherwise plausible invoice.
These rules cover positive EUR invoice postings, without assessing tax treatment. The regex baseline remains useful where a stable labelled format already provides the fields.
Uber’s invoice-processing engineering case, included in the supplied CSV, separates model extraction from business post-processing, human review and downstream integration. That is the mechanism adapted here. Its OCR, training, production scale and reported gains are not reproduced. Uber engineering
Give each component one accountable responsibility
Logical modules in the local Python prototype, with production connections shown separately.
INPUT
A bounded invoice work item
A fictional invoice text and its source fingerprint enter the local workflow. Public material supplies process context, not invoice data.
work item + source text + source versionPROCESSING RESPONSIBILITIES
Interpret unfamiliar wording
A fixed parser and a real local LLM propose invoice fields. The model retains source quotations and has no approval or ERP tools.
invoice text → candidate fields + evidenceApply deterministic business checks
The same rules resolve the supplier and purchase order, compare currency and amounts, and expose missing or conflicting inputs for review.
candidate + reference data + rule versionPersist the reviewed snapshot
SQLite checkpoints retain candidate, checks and workflow state. Human approval is bound to the snapshot rather than to a mutable invoice label.
source + candidate + references + rules → snapshotResume a controlled posting job
The simulated RPA boundary consumes the approved snapshot. Reopening the workflow recovers its checkpoint and downstream state instead of repeating extraction.
approved snapshot → mock ERP receipt
REVIEW OUTPUT
An inspectable posting handoff
Reviewers can see what was read, why an invoice was held, what was approved and where interrupted work resumed. A mock posting is not a payment.
state + findings + approval + simulated receiptDATA AND STATE KEPT BY THE PROTOTYPE
Source and extraction record
Original text, model response, parser output and their producing versions remain distinguishable.
Workflow checkpoints
Persisted stages and events explain which work is complete and which step must resume.
Approval and execution binding
A reviewed snapshot and downstream identity prevent a restart from silently changing the approved data.
A named local fixture actor approves a checked snapshot. The model cannot grant approval, resolve every exception or decide that a downstream write has succeeded.
Document intake and OCR → authenticated reviewers → authoritative procurement data → an actual ERP/RPA connector with documented lookup, retry and reconciliation behaviour.
| Component or actor | Responsibility in this design |
|---|---|
| Extractor | Propose source-bound fields from variable text. |
| Rules and reference data | Check types, amounts, supplier and PO consistency. |
| Reviewer | Decide whether the checked snapshot may proceed. |
| Workflow coordinator | Persist completed stages, blockers and the permitted next step. |
| Simulated RPA worker | Perform a fixed mock posting operation from an approved packet. |
The coordinator is an explicit workflow, not an autonomous LLM agent. The path is known, approval is a business decision, and the final data-entry operation is constrained. An agent could be considered for open-ended exception investigation, but it is an unexecuted architecture alternative here.
SQLite holds the source/candidate context and workflow checkpoints. Reopening the database should recover the work item without asking the model to interpret the same invoice again. A production worker, reviewer interface and enterprise identity system remain separate integration work.
Follow the packet from intake to a recoverable handoff
People and systems have separate responsibilities. Dashed steps connect the prototype to a proposed operational process.
Create one durable work item
Retain the incoming text and fingerprint before any interpretation. The lab starts from text and does not implement mailbox intake or OCR.
Read the uncertain wording once
Produce a candidate with evidence quotations. Store the original response so that a later restart does not produce a different interpretation.
Explain what needs attention
Check the candidate against the same purchase-order and supplier data as the parser baseline. Keep missing data and mismatches visible.
Approve the current snapshot
Inspect the source, candidate and findings. Changed inputs or reference versions require a new check and approval.
Recover the unfinished handoff
Reopen persisted state and continue the approved job. Distinguish a pre-write interruption from uncertain downstream completion.
Interpret once · inspect · resume
Follow an invoice through its actual handoffs
The model proposes fields. Business rules and the workflow decide what can proceed. These are recorded local runs; the page does not call a model or an ERP.
The first-pass model packet passed bounded rules. An authored checker approves its exact snapshot; an injected RPA-session failure stops before writing. Reopening and refreshing the mock session resumes posting without another extraction.
POSTED
Workflow packet origin: model validated.
Business checks and exceptions
No issue was returned by the bounded invoice rules. Human approval and downstream completion remain separate workflow steps.
Read the synthetic invoice text
SYNTHETIC INVOICE - NOT A PAYMENT INSTRUCTION Invoice ID: INV-1001 Supplier ID: SYN-SUP-001 PO ID: PO-001 Invoice date: 2026-11-30 Due date: 2026-12-15 Currency: EUR Net amount: 1000.00 Tax amount: 170.00 Total amount: 1170.00
Source SHA-256 · 16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5
Compare fields before trusting the workflow
Both extraction paths face the same rules. A literal quotation establishes where a value appeared; it does not prove that the interpretation is correct.
- Fixed parser · business checks
- valid
- LLM proposal · business checks
- valid
| Field | Fixed parser | LLM proposal | Model’s source quotation |
|---|---|---|---|
| Invoice | INV-1001 | INV-1001 | Invoice ID: INV-1001 |
| Supplier | SYN-SUP-001 | SYN-SUP-001 | Supplier ID: SYN-SUP-001 |
| Purchase order | PO-001 | PO-001 | PO ID: PO-001 |
| Invoice date | 2026-11-30 | 2026-11-30 | Invoice date: 2026-11-30 |
| Due date | 2026-12-15 | 2026-12-15 | Due date: 2026-12-15 |
| Currency | EUR | EUR | Currency: EUR |
| Net amount | 1000.00 | 1000.00 | Net amount: 1000.00 |
| Tax amount | 170.00 | 170.00 | Tax amount: 170.00 |
| Total amount | 1170.00 | 1170.00 | Total amount: 1170.00 |
Inspect extraction checks and original candidate
The parser and model share the business validator. This record also retains model parsing and source-binding findings.
{
"baseline": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1001",
"quote": "Invoice ID: INV-1001"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": "PO-001",
"quote": "PO ID: PO-001"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-15",
"quote": "Due date: 2026-12-15"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "1000.00",
"quote": "Net amount: 1000.00"
},
"tax_amount": {
"value": "170.00",
"quote": "Tax amount: 170.00"
},
"total_amount": {
"value": "1170.00",
"quote": "Total amount: 1170.00"
}
}
},
"validation": {
"status": "valid",
"issues": [],
"normalized": {
"invoice_id": "INV-1001",
"supplier_id": "SYN-SUP-001",
"po_id": "PO-001",
"invoice_date": "2026-11-30",
"due_date": "2026-12-15",
"currency": "EUR",
"net_amount": "1000.00",
"tax_amount": "170.00",
"total_amount": "1170.00"
},
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1001",
"quote": "Invoice ID: INV-1001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-001",
"quote": "PO ID: PO-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"due_date": {
"start": 141,
"end": 151,
"text": "2026-12-15",
"quote": "Due date: 2026-12-15",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"net_amount": {
"start": 178,
"end": 185,
"text": "1000.00",
"quote": "Net amount: 1000.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"tax_amount": {
"start": 198,
"end": 204,
"text": "170.00",
"quote": "Tax amount: 170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"total_amount": {
"start": 219,
"end": 226,
"text": "1170.00",
"quote": "Total amount: 1170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
}
}
}
},
"model": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1001",
"quote": "Invoice ID: INV-1001"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": "PO-001",
"quote": "PO ID: PO-001"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-15",
"quote": "Due date: 2026-12-15"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "1000.00",
"quote": "Net amount: 1000.00"
},
"tax_amount": {
"value": "170.00",
"quote": "Tax amount: 170.00"
},
"total_amount": {
"value": "1170.00",
"quote": "Total amount: 1170.00"
}
}
},
"parse_error": null,
"binding_issues": [],
"validation": {
"status": "valid",
"issues": [],
"normalized": {
"invoice_id": "INV-1001",
"supplier_id": "SYN-SUP-001",
"po_id": "PO-001",
"invoice_date": "2026-11-30",
"due_date": "2026-12-15",
"currency": "EUR",
"net_amount": "1000.00",
"tax_amount": "170.00",
"total_amount": "1170.00"
},
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1001",
"quote": "Invoice ID: INV-1001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-001",
"quote": "PO ID: PO-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"due_date": {
"start": 141,
"end": 151,
"text": "2026-12-15",
"quote": "Due date: 2026-12-15",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"net_amount": {
"start": 178,
"end": 185,
"text": "1000.00",
"quote": "Net amount: 1000.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"tax_amount": {
"start": 198,
"end": 204,
"text": "170.00",
"quote": "Tax amount: 170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"total_amount": {
"start": 219,
"end": 226,
"text": "1170.00",
"quote": "Total amount: 1170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
}
}
},
"raw_call_ref": "STRUCTURED"
}
}Recover the work item at its checkpoint
- 01intakeRECEIVED
Synthetic text saved with its source digest
- 02extractionEXTRACTED
First-pass model candidate retained; no execution authority
- 03rulesVALIDATED
Shared invoice/PO rules passed; awaiting human review
- 04reviewAPPROVED
Demo checker approved this exact source/candidate/reference/rule snapshot
- 05rpaPOST QUEUED
Deterministic RPA reads the approved normalized snapshot, never model prose
- 06rpaRPA BLOCKED
Injected expired mock session; stopped before any ERP write
- 07sessionRPA BLOCKED
Authored operator refresh restored the mock session after database reopen
- 08rpaPOST QUEUED
Deterministic RPA reads the approved normalized snapshot, never model prose
- 09rpaPOSTED
Local mockERP receipt saved; this is an invoice posting, never a payment
Inspect the approval, simulated events and mock receipt
The named actors, session failure and ERP receipt belong to this synthetic fixture. They are not evidence of a real approval, RPA connection or payment.
{
"approval": {
"reviewer": "checker-demo",
"snapshot_sha256": "26c7ad82eb1d1da4f5ce73c2baf81676bf85005ff2fc6eff867a55e218ed172a",
"valid": true,
"origin": "authored_local_review_action"
},
"erp_receipt": {
"origin": "local_mock_erp",
"posting_id": "mock-ea88af6394d9d6fe",
"job_id": "STRUCTURED",
"snapshot_sha256": "26c7ad82eb1d1da4f5ce73c2baf81676bf85005ff2fc6eff867a55e218ed172a",
"payload": {
"currency": "EUR",
"due_date": "2026-12-15",
"invoice_date": "2026-11-30",
"invoice_id": "INV-1001",
"net_amount": "1000.00",
"po_id": "PO-001",
"supplier_id": "SYN-SUP-001",
"tax_amount": "170.00",
"total_amount": "1170.00"
},
"payment_executed": false
},
"packet_origin": "model_validated",
"simulated_events": [
"EXPIRED_SESSION_BEFORE_WRITE",
"DATABASE_REOPEN",
"OPERATOR_SESSION_REFRESH"
],
"resume": {
"database_reopens": 1,
"model_calls_before": 1,
"model_calls_after": 1,
"additional_model_calls": 0,
"rpa_attempts": 2,
"skipped_stages": [
"extraction"
]
}
}The regex header baseline misses narrative fields. The recorded model packet is evaluated by the same rules; a new database connection resumes at the human-review checkpoint, not at extraction.
POSTED
Workflow packet origin: model validated.
Business checks and exceptions
No issue was returned by the bounded invoice rules. Human approval and downstream completion remain separate workflow steps.
Read the synthetic invoice text
SYNTHETIC INVOICE - NOT A PAYMENT INSTRUCTION Invoice INV-1002 was issued on 2026-11-29 by supplier SYN-SUP-001 against purchase order PO-002. This notice explicitly uses EUR. The net amount is 200.00 and the tax amount is 34.00. The total amount is 234.00, with payment due on 2026-12-20.
Source SHA-256 · f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953
Compare fields before trusting the workflow
Both extraction paths face the same rules. A literal quotation establishes where a value appeared; it does not prove that the interpretation is correct.
- Fixed parser · business checks
- needs review
- LLM proposal · business checks
- valid
| Field | Fixed parser | LLM proposal | Model’s source quotation |
|---|---|---|---|
| Invoice | Not extracted | INV-1002 | Invoice INV-1002 |
| Supplier | Not extracted | SYN-SUP-001 | by supplier SYN-SUP-001 |
| Purchase order | Not extracted | PO-002 | against purchase order PO-002 |
| Invoice date | Not extracted | 2026-11-29 | was issued on 2026-11-29 |
| Due date | Not extracted | 2026-12-20 | payment due on 2026-12-20 |
| Currency | Not extracted | EUR | This notice explicitly uses EUR. |
| Net amount | Not extracted | 200.00 | The net amount is 200.00 |
| Tax amount | Not extracted | 34.00 | the tax amount is 34.00. |
| Total amount | Not extracted | 234.00 | The total amount is 234.00 |
Inspect extraction checks and original candidate
The parser and model share the business validator. This record also retains model parsing and source-binding findings.
{
"baseline": {
"candidate": {
"fields": {
"invoice_id": {
"value": null,
"quote": null
},
"supplier_id": {
"value": null,
"quote": null
},
"po_id": {
"value": null,
"quote": null
},
"invoice_date": {
"value": null,
"quote": null
},
"due_date": {
"value": null,
"quote": null
},
"currency": {
"value": null,
"quote": null
},
"net_amount": {
"value": null,
"quote": null
},
"tax_amount": {
"value": null,
"quote": null
},
"total_amount": {
"value": null,
"quote": null
}
}
},
"validation": {
"status": "needs_review",
"issues": [
{
"field": "invoice_id",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "supplier_id",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "po_id",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "invoice_date",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "due_date",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "currency",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "net_amount",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "tax_amount",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "total_amount",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "currency",
"code": "CURRENCY_REVIEW",
"message": "Explicit supported currency is required"
},
{
"field": "supplier_id",
"code": "UNKNOWN_SUPPLIER",
"message": "Supplier is not in the trusted demo registry"
},
{
"field": "po_id",
"code": "PO_NOT_FOUND",
"message": "No matching trusted purchase order; do not guess one"
}
],
"normalized": null,
"source_spans": {}
}
},
"model": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1002",
"quote": "Invoice INV-1002"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "by supplier SYN-SUP-001"
},
"po_id": {
"value": "PO-002",
"quote": "against purchase order PO-002"
},
"invoice_date": {
"value": "2026-11-29",
"quote": "was issued on 2026-11-29"
},
"due_date": {
"value": "2026-12-20",
"quote": "payment due on 2026-12-20"
},
"currency": {
"value": "EUR",
"quote": "This notice explicitly uses EUR."
},
"net_amount": {
"value": "200.00",
"quote": "The net amount is 200.00"
},
"tax_amount": {
"value": "34.00",
"quote": "the tax amount is 34.00."
},
"total_amount": {
"value": "234.00",
"quote": "The total amount is 234.00"
}
}
},
"parse_error": null,
"binding_issues": [],
"validation": {
"status": "valid",
"issues": [],
"normalized": {
"invoice_id": "INV-1002",
"supplier_id": "SYN-SUP-001",
"po_id": "PO-002",
"invoice_date": "2026-11-29",
"due_date": "2026-12-20",
"currency": "EUR",
"net_amount": "200.00",
"tax_amount": "34.00",
"total_amount": "234.00"
},
"source_spans": {
"invoice_id": {
"start": 54,
"end": 62,
"text": "INV-1002",
"quote": "Invoice INV-1002",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"supplier_id": {
"start": 100,
"end": 111,
"text": "SYN-SUP-001",
"quote": "by supplier SYN-SUP-001",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"po_id": {
"start": 135,
"end": 141,
"text": "PO-002",
"quote": "against purchase order PO-002",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"invoice_date": {
"start": 77,
"end": 87,
"text": "2026-11-29",
"quote": "was issued on 2026-11-29",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"due_date": {
"start": 278,
"end": 288,
"text": "2026-12-20",
"quote": "payment due on 2026-12-20",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"currency": {
"start": 171,
"end": 174,
"text": "EUR",
"quote": "This notice explicitly uses EUR.",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"net_amount": {
"start": 194,
"end": 200,
"text": "200.00",
"quote": "The net amount is 200.00",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"tax_amount": {
"start": 223,
"end": 228,
"text": "34.00",
"quote": "the tax amount is 34.00.",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
},
"total_amount": {
"start": 250,
"end": 256,
"text": "234.00",
"quote": "The total amount is 234.00",
"source_sha256": "f4e5382a825ed433a2ca4ea0adcb224a5c5d59754a930acd97e9caeb8fae7953"
}
}
},
"raw_call_ref": "PROSE"
}
}Recover the work item at its checkpoint
- 01intakeRECEIVED
Synthetic text saved with its source digest
- 02extractionEXTRACTED
First-pass model candidate retained; no execution authority
- 03rulesVALIDATED
Shared invoice/PO rules passed; awaiting human review
- 04resumeVALIDATED
Reopened at human-review checkpoint; extraction is not repeated
- 05reviewAPPROVED
Demo checker approved this exact source/candidate/reference/rule snapshot
- 06rpaPOST QUEUED
Deterministic RPA reads the approved normalized snapshot, never model prose
- 07rpaPOSTED
Local mockERP receipt saved; this is an invoice posting, never a payment
Inspect the approval, simulated events and mock receipt
The named actors, session failure and ERP receipt belong to this synthetic fixture. They are not evidence of a real approval, RPA connection or payment.
{
"approval": {
"reviewer": "checker-demo",
"snapshot_sha256": "d2546db861da1ab86d8c6a8bdbba73a8326a523399b3035b61e3a5ddffd065c4",
"valid": true,
"origin": "authored_local_review_action"
},
"erp_receipt": {
"origin": "local_mock_erp",
"posting_id": "mock-67ba07efc4129a5a",
"job_id": "PROSE",
"snapshot_sha256": "d2546db861da1ab86d8c6a8bdbba73a8326a523399b3035b61e3a5ddffd065c4",
"payload": {
"currency": "EUR",
"due_date": "2026-12-20",
"invoice_date": "2026-11-29",
"invoice_id": "INV-1002",
"net_amount": "200.00",
"po_id": "PO-002",
"supplier_id": "SYN-SUP-001",
"tax_amount": "34.00",
"total_amount": "234.00"
},
"payment_executed": false
},
"packet_origin": "model_validated",
"simulated_events": [
"AUTHORED_WORKER_STOP_AT_COMMITTED_VALIDATION",
"DATABASE_REOPEN_BEFORE_REVIEW"
],
"resume": {
"database_reopens": 1,
"model_calls_before": 1,
"model_calls_after": 1,
"additional_model_calls": 0,
"rpa_attempts": 1,
"skipped_stages": [
"extraction"
]
}
}An absent purchase order remains a business exception. Neither model prose nor a worker restart can invent a PO or grant approval.
REVIEW REQUIRED
Workflow packet origin: model requires review.
Business checks and exceptions
- NULL WITH QUOTEPurchase order
Unresolved quoted text is not an accepted value
- MISSING FIELDPurchase order
An explicit source-bound value is required
- PO NOT FOUNDPurchase order
No matching trusted purchase order; do not guess one
Read the synthetic invoice text
SYNTHETIC INVOICE - NOT A PAYMENT INSTRUCTION Invoice ID: INV-1003 Supplier ID: SYN-SUP-001 Invoice date: 2026-11-30 Due date: 2026-12-16 Currency: EUR Net amount: 300.00 Tax amount: 51.00 Total amount: 351.00 The purchase order was not provided.
Source SHA-256 · b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d
Compare fields before trusting the workflow
Both extraction paths face the same rules. A literal quotation establishes where a value appeared; it does not prove that the interpretation is correct.
- Fixed parser · business checks
- needs review
- LLM proposal · business checks
- needs review
| Field | Fixed parser | LLM proposal | Model’s source quotation |
|---|---|---|---|
| Invoice | INV-1003 | INV-1003 | Invoice ID: INV-1003 |
| Supplier | SYN-SUP-001 | SYN-SUP-001 | Supplier ID: SYN-SUP-001 |
| Purchase order | Not extracted | Not extracted | The purchase order was not provided. |
| Invoice date | 2026-11-30 | 2026-11-30 | Invoice date: 2026-11-30 |
| Due date | 2026-12-16 | 2026-12-16 | Due date: 2026-12-16 |
| Currency | EUR | EUR | Currency: EUR |
| Net amount | 300.00 | 300.00 | Net amount: 300.00 |
| Tax amount | 51.00 | 51.00 | Tax amount: 51.00 |
| Total amount | 351.00 | 351.00 | Total amount: 351.00 |
Inspect extraction checks and original candidate
The parser and model share the business validator. This record also retains model parsing and source-binding findings.
{
"baseline": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1003",
"quote": "Invoice ID: INV-1003"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": null,
"quote": null
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-16",
"quote": "Due date: 2026-12-16"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "300.00",
"quote": "Net amount: 300.00"
},
"tax_amount": {
"value": "51.00",
"quote": "Tax amount: 51.00"
},
"total_amount": {
"value": "351.00",
"quote": "Total amount: 351.00"
}
}
},
"validation": {
"status": "needs_review",
"issues": [
{
"field": "po_id",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "po_id",
"code": "PO_NOT_FOUND",
"message": "No matching trusted purchase order; do not guess one"
}
],
"normalized": null,
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1003",
"quote": "Invoice ID: INV-1003",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"invoice_date": {
"start": 106,
"end": 116,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"due_date": {
"start": 127,
"end": 137,
"text": "2026-12-16",
"quote": "Due date: 2026-12-16",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"currency": {
"start": 148,
"end": 151,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"net_amount": {
"start": 164,
"end": 170,
"text": "300.00",
"quote": "Net amount: 300.00",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"tax_amount": {
"start": 183,
"end": 188,
"text": "51.00",
"quote": "Tax amount: 51.00",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"total_amount": {
"start": 203,
"end": 209,
"text": "351.00",
"quote": "Total amount: 351.00",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
}
}
}
},
"model": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1003",
"quote": "Invoice ID: INV-1003"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": null,
"quote": "The purchase order was not provided."
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-16",
"quote": "Due date: 2026-12-16"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "300.00",
"quote": "Net amount: 300.00"
},
"tax_amount": {
"value": "51.00",
"quote": "Tax amount: 51.00"
},
"total_amount": {
"value": "351.00",
"quote": "Total amount: 351.00"
}
}
},
"parse_error": null,
"binding_issues": [
{
"field": "po_id",
"code": "NULL_WITH_QUOTE",
"message": "Unresolved quoted text is not an accepted value"
}
],
"validation": {
"status": "needs_review",
"issues": [
{
"field": "po_id",
"code": "NULL_WITH_QUOTE",
"message": "Unresolved quoted text is not an accepted value"
},
{
"field": "po_id",
"code": "MISSING_FIELD",
"message": "An explicit source-bound value is required"
},
{
"field": "po_id",
"code": "PO_NOT_FOUND",
"message": "No matching trusted purchase order; do not guess one"
}
],
"normalized": null,
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1003",
"quote": "Invoice ID: INV-1003",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"invoice_date": {
"start": 106,
"end": 116,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"due_date": {
"start": 127,
"end": 137,
"text": "2026-12-16",
"quote": "Due date: 2026-12-16",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"currency": {
"start": 148,
"end": 151,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"net_amount": {
"start": 164,
"end": 170,
"text": "300.00",
"quote": "Net amount: 300.00",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"tax_amount": {
"start": 183,
"end": 188,
"text": "51.00",
"quote": "Tax amount: 51.00",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
},
"total_amount": {
"start": 203,
"end": 209,
"text": "351.00",
"quote": "Total amount: 351.00",
"source_sha256": "b68207b9091971055291ba331e2c0d3e88ce4d0b591e4dc3b647f2be24583a3d"
}
}
},
"raw_call_ref": "MISSING_PO"
}
}Recover the work item at its checkpoint
- 01intakeRECEIVED
Synthetic text saved with its source digest
- 02extractionEXTRACTED
First-pass model candidate retained; no execution authority
- 03rulesREVIEW REQUIRED
Rule or source issues require AP/PO-owner review
Inspect the approval, simulated events and mock receipt
The named actors, session failure and ERP receipt belong to this synthetic fixture. They are not evidence of a real approval, RPA connection or payment.
{
"approval": null,
"erp_receipt": null,
"packet_origin": "model_requires_review",
"simulated_events": [],
"resume": {
"database_reopens": 0,
"model_calls_before": 1,
"model_calls_after": 1,
"additional_model_calls": 0,
"rpa_attempts": 0,
"skipped_stages": [
"extraction"
]
}
}A stated total must survive arithmetic checks. The workflow does not silently recalculate the invoice or let RPA post a disputed amount.
REVIEW REQUIRED
Workflow packet origin: model requires review.
Business checks and exceptions
- TOTAL MISMATCHTotal amount
Stated net plus tax does not equal the stated total; do not repair it
Read the synthetic invoice text
SYNTHETIC INVOICE - NOT A PAYMENT INSTRUCTION Invoice ID: INV-1004 Supplier ID: SYN-SUP-001 PO ID: PO-004 Invoice date: 2026-11-30 Due date: 2026-12-18 Currency: EUR Net amount: 500.00 Tax amount: 85.00 Total amount: 600.00
Source SHA-256 · 1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b
Compare fields before trusting the workflow
Both extraction paths face the same rules. A literal quotation establishes where a value appeared; it does not prove that the interpretation is correct.
- Fixed parser · business checks
- needs review
- LLM proposal · business checks
- needs review
| Field | Fixed parser | LLM proposal | Model’s source quotation |
|---|---|---|---|
| Invoice | INV-1004 | INV-1004 | Invoice ID: INV-1004 |
| Supplier | SYN-SUP-001 | SYN-SUP-001 | Supplier ID: SYN-SUP-001 |
| Purchase order | PO-004 | PO-004 | PO ID: PO-004 |
| Invoice date | 2026-11-30 | 2026-11-30 | Invoice date: 2026-11-30 |
| Due date | 2026-12-18 | 2026-12-18 | Due date: 2026-12-18 |
| Currency | EUR | EUR | Currency: EUR |
| Net amount | 500.00 | 500.00 | Net amount: 500.00 |
| Tax amount | 85.00 | 85.00 | Tax amount: 85.00 |
| Total amount | 600.00 | 600.00 | Total amount: 600.00 |
Inspect extraction checks and original candidate
The parser and model share the business validator. This record also retains model parsing and source-binding findings.
{
"baseline": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1004",
"quote": "Invoice ID: INV-1004"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": "PO-004",
"quote": "PO ID: PO-004"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-18",
"quote": "Due date: 2026-12-18"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "500.00",
"quote": "Net amount: 500.00"
},
"tax_amount": {
"value": "85.00",
"quote": "Tax amount: 85.00"
},
"total_amount": {
"value": "600.00",
"quote": "Total amount: 600.00"
}
}
},
"validation": {
"status": "needs_review",
"issues": [
{
"field": "total_amount",
"code": "TOTAL_MISMATCH",
"message": "Stated net plus tax does not equal the stated total; do not repair it"
}
],
"normalized": null,
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1004",
"quote": "Invoice ID: INV-1004",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-004",
"quote": "PO ID: PO-004",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"due_date": {
"start": 141,
"end": 151,
"text": "2026-12-18",
"quote": "Due date: 2026-12-18",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"net_amount": {
"start": 178,
"end": 184,
"text": "500.00",
"quote": "Net amount: 500.00",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"tax_amount": {
"start": 197,
"end": 202,
"text": "85.00",
"quote": "Tax amount: 85.00",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"total_amount": {
"start": 217,
"end": 223,
"text": "600.00",
"quote": "Total amount: 600.00",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
}
}
}
},
"model": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1004",
"quote": "Invoice ID: INV-1004"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": "PO-004",
"quote": "PO ID: PO-004"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-18",
"quote": "Due date: 2026-12-18"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "500.00",
"quote": "Net amount: 500.00"
},
"tax_amount": {
"value": "85.00",
"quote": "Tax amount: 85.00"
},
"total_amount": {
"value": "600.00",
"quote": "Total amount: 600.00"
}
}
},
"parse_error": null,
"binding_issues": [],
"validation": {
"status": "needs_review",
"issues": [
{
"field": "total_amount",
"code": "TOTAL_MISMATCH",
"message": "Stated net plus tax does not equal the stated total; do not repair it"
}
],
"normalized": null,
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1004",
"quote": "Invoice ID: INV-1004",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-004",
"quote": "PO ID: PO-004",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"due_date": {
"start": 141,
"end": 151,
"text": "2026-12-18",
"quote": "Due date: 2026-12-18",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"net_amount": {
"start": 178,
"end": 184,
"text": "500.00",
"quote": "Net amount: 500.00",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"tax_amount": {
"start": 197,
"end": 202,
"text": "85.00",
"quote": "Tax amount: 85.00",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
},
"total_amount": {
"start": 217,
"end": 223,
"text": "600.00",
"quote": "Total amount: 600.00",
"source_sha256": "1e58563ea11c56d7d5ca8c2bf1327241af6ac5b82b2190825949469ada081b6b"
}
}
},
"raw_call_ref": "TOTAL_CONFLICT"
}
}Recover the work item at its checkpoint
- 01intakeRECEIVED
Synthetic text saved with its source digest
- 02extractionEXTRACTED
First-pass model candidate retained; no execution authority
- 03rulesREVIEW REQUIRED
Rule or source issues require AP/PO-owner review
Inspect the approval, simulated events and mock receipt
The named actors, session failure and ERP receipt belong to this synthetic fixture. They are not evidence of a real approval, RPA connection or payment.
{
"approval": null,
"erp_receipt": null,
"packet_origin": "model_requires_review",
"simulated_events": [],
"resume": {
"database_reopens": 0,
"model_calls_before": 1,
"model_calls_after": 1,
"additional_model_calls": 0,
"rpa_attempts": 0,
"skipped_stages": [
"extraction"
]
}
}Supplier identity and date ambiguity have separate owners. Matching an amount is insufficient to approve an invoice against a different trusted supplier.
REVIEW REQUIRED
Workflow packet origin: model requires review.
Business checks and exceptions
- DATE REVIEWDue date
Only explicit valid ISO dates are supported; no date inference
- UNKNOWN SUPPLIERSupplier
Supplier is not in the trusted demo registry
- PO SUPPLIER MISMATCHSupplier
Invoice supplier differs from the purchase order
Read the synthetic invoice text
SYNTHETIC INVOICE - NOT A PAYMENT INSTRUCTION Invoice ID: INV-1005 Supplier ID: SYN-SUP-999 PO ID: PO-005 Invoice date: 2026-11-30 Due date: 03/04/2027 Currency: EUR Net amount: 400.00 Tax amount: 68.00 Total amount: 468.00
Source SHA-256 · e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463
Compare fields before trusting the workflow
Both extraction paths face the same rules. A literal quotation establishes where a value appeared; it does not prove that the interpretation is correct.
- Fixed parser · business checks
- needs review
- LLM proposal · business checks
- needs review
| Field | Fixed parser | LLM proposal | Model’s source quotation |
|---|---|---|---|
| Invoice | INV-1005 | INV-1005 | Invoice ID: INV-1005 |
| Supplier | SYN-SUP-999 | SYN-SUP-999 | Supplier ID: SYN-SUP-999 |
| Purchase order | PO-005 | PO-005 | PO ID: PO-005 |
| Invoice date | 2026-11-30 | 2026-11-30 | Invoice date: 2026-11-30 |
| Due date | 03/04/2027 | 03/04/2027 | Due date: 03/04/2027 |
| Currency | EUR | EUR | Currency: EUR |
| Net amount | 400.00 | 400.00 | Net amount: 400.00 |
| Tax amount | 68.00 | 68.00 | Tax amount: 68.00 |
| Total amount | 468.00 | 468.00 | Total amount: 468.00 |
Inspect extraction checks and original candidate
The parser and model share the business validator. This record also retains model parsing and source-binding findings.
{
"baseline": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1005",
"quote": "Invoice ID: INV-1005"
},
"supplier_id": {
"value": "SYN-SUP-999",
"quote": "Supplier ID: SYN-SUP-999"
},
"po_id": {
"value": "PO-005",
"quote": "PO ID: PO-005"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "03/04/2027",
"quote": "Due date: 03/04/2027"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "400.00",
"quote": "Net amount: 400.00"
},
"tax_amount": {
"value": "68.00",
"quote": "Tax amount: 68.00"
},
"total_amount": {
"value": "468.00",
"quote": "Total amount: 468.00"
}
}
},
"validation": {
"status": "needs_review",
"issues": [
{
"field": "due_date",
"code": "DATE_REVIEW",
"message": "Only explicit valid ISO dates are supported; no date inference"
},
{
"field": "supplier_id",
"code": "UNKNOWN_SUPPLIER",
"message": "Supplier is not in the trusted demo registry"
},
{
"field": "supplier_id",
"code": "PO_SUPPLIER_MISMATCH",
"message": "Invoice supplier differs from the purchase order"
}
],
"normalized": null,
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1005",
"quote": "Invoice ID: INV-1005",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-999",
"quote": "Supplier ID: SYN-SUP-999",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-005",
"quote": "PO ID: PO-005",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"due_date": {
"start": 141,
"end": 151,
"text": "03/04/2027",
"quote": "Due date: 03/04/2027",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"net_amount": {
"start": 178,
"end": 184,
"text": "400.00",
"quote": "Net amount: 400.00",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"tax_amount": {
"start": 197,
"end": 202,
"text": "68.00",
"quote": "Tax amount: 68.00",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"total_amount": {
"start": 217,
"end": 223,
"text": "468.00",
"quote": "Total amount: 468.00",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
}
}
}
},
"model": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1005",
"quote": "Invoice ID: INV-1005"
},
"supplier_id": {
"value": "SYN-SUP-999",
"quote": "Supplier ID: SYN-SUP-999"
},
"po_id": {
"value": "PO-005",
"quote": "PO ID: PO-005"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "03/04/2027",
"quote": "Due date: 03/04/2027"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "400.00",
"quote": "Net amount: 400.00"
},
"tax_amount": {
"value": "68.00",
"quote": "Tax amount: 68.00"
},
"total_amount": {
"value": "468.00",
"quote": "Total amount: 468.00"
}
}
},
"parse_error": null,
"binding_issues": [],
"validation": {
"status": "needs_review",
"issues": [
{
"field": "due_date",
"code": "DATE_REVIEW",
"message": "Only explicit valid ISO dates are supported; no date inference"
},
{
"field": "supplier_id",
"code": "UNKNOWN_SUPPLIER",
"message": "Supplier is not in the trusted demo registry"
},
{
"field": "supplier_id",
"code": "PO_SUPPLIER_MISMATCH",
"message": "Invoice supplier differs from the purchase order"
}
],
"normalized": null,
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1005",
"quote": "Invoice ID: INV-1005",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-999",
"quote": "Supplier ID: SYN-SUP-999",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-005",
"quote": "PO ID: PO-005",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"due_date": {
"start": 141,
"end": 151,
"text": "03/04/2027",
"quote": "Due date: 03/04/2027",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"net_amount": {
"start": 178,
"end": 184,
"text": "400.00",
"quote": "Net amount: 400.00",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"tax_amount": {
"start": 197,
"end": 202,
"text": "68.00",
"quote": "Tax amount: 68.00",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
},
"total_amount": {
"start": 217,
"end": 223,
"text": "468.00",
"quote": "Total amount: 468.00",
"source_sha256": "e1937805d97be9ead96a86ea6aae25f2fcc7473a4fae9cc7ce26acabda7fe463"
}
}
},
"raw_call_ref": "UNKNOWN_SUPPLIER"
}
}Recover the work item at its checkpoint
- 01intakeRECEIVED
Synthetic text saved with its source digest
- 02extractionEXTRACTED
First-pass model candidate retained; no execution authority
- 03rulesREVIEW REQUIRED
Rule or source issues require AP/PO-owner review
Inspect the approval, simulated events and mock receipt
The named actors, session failure and ERP receipt belong to this synthetic fixture. They are not evidence of a real approval, RPA connection or payment.
{
"approval": null,
"erp_receipt": null,
"packet_origin": "model_requires_review",
"simulated_events": [],
"resume": {
"database_reopens": 0,
"model_calls_before": 1,
"model_calls_after": 1,
"additional_model_calls": 0,
"rpa_attempts": 0,
"skipped_stages": [
"extraction"
]
}
}The displayed model candidate read the original invoice only. An authored revised source invalidates that approval and requires new extraction; no additional model call or ERP write is performed here.
REEXTRACTION REQUIRED
Original workflow packet origin: model validated.
Checks of the original extraction
The original source passed the bounded checks. The later source revision requires new extraction and review; these earlier results do not approve it.
Read the synthetic invoice text
SYNTHETIC INVOICE - NOT A PAYMENT INSTRUCTION Invoice ID: INV-1001 Supplier ID: SYN-SUP-001 PO ID: PO-001 Invoice date: 2026-11-30 Due date: 2026-12-15 Currency: EUR Net amount: 1000.00 Tax amount: 170.00 Total amount: 1170.00
Source SHA-256 · 16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5
Read the later source revision that invalidated approval
The extraction below belongs to the original source. This later revision has not been re-extracted or approved.
SYNTHETIC INVOICE - NOT A PAYMENT INSTRUCTION Invoice ID: INV-1001 Supplier ID: SYN-SUP-001 PO ID: PO-001 Invoice date: 2026-11-30 Due date: 2026-12-22 Currency: EUR Net amount: 1000.00 Tax amount: 170.00 Total amount: 1170.00 Revision: 2
Revision 2 · SHA-256 b280a58a3687c03e9ca9855e76e0b66647d03f14dcb54676f6e39d5d837a4aa7
Compare fields before trusting the workflow
Both extraction paths face the same rules. A literal quotation establishes where a value appeared; it does not prove that the interpretation is correct.
- Fixed parser · business checks
- valid
- LLM proposal · business checks
- valid
| Field | Fixed parser | LLM proposal | Model’s source quotation |
|---|---|---|---|
| Invoice | INV-1001 | INV-1001 | Invoice ID: INV-1001 |
| Supplier | SYN-SUP-001 | SYN-SUP-001 | Supplier ID: SYN-SUP-001 |
| Purchase order | PO-001 | PO-001 | PO ID: PO-001 |
| Invoice date | 2026-11-30 | 2026-11-30 | Invoice date: 2026-11-30 |
| Due date | 2026-12-15 | 2026-12-15 | Due date: 2026-12-15 |
| Currency | EUR | EUR | Currency: EUR |
| Net amount | 1000.00 | 1000.00 | Net amount: 1000.00 |
| Tax amount | 170.00 | 170.00 | Tax amount: 170.00 |
| Total amount | 1170.00 | 1170.00 | Total amount: 1170.00 |
Inspect extraction checks and original candidate
The parser and model share the business validator. This record also retains model parsing and source-binding findings.
{
"baseline": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1001",
"quote": "Invoice ID: INV-1001"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": "PO-001",
"quote": "PO ID: PO-001"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-15",
"quote": "Due date: 2026-12-15"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "1000.00",
"quote": "Net amount: 1000.00"
},
"tax_amount": {
"value": "170.00",
"quote": "Tax amount: 170.00"
},
"total_amount": {
"value": "1170.00",
"quote": "Total amount: 1170.00"
}
}
},
"validation": {
"status": "valid",
"issues": [],
"normalized": {
"invoice_id": "INV-1001",
"supplier_id": "SYN-SUP-001",
"po_id": "PO-001",
"invoice_date": "2026-11-30",
"due_date": "2026-12-15",
"currency": "EUR",
"net_amount": "1000.00",
"tax_amount": "170.00",
"total_amount": "1170.00"
},
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1001",
"quote": "Invoice ID: INV-1001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-001",
"quote": "PO ID: PO-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"due_date": {
"start": 141,
"end": 151,
"text": "2026-12-15",
"quote": "Due date: 2026-12-15",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"net_amount": {
"start": 178,
"end": 185,
"text": "1000.00",
"quote": "Net amount: 1000.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"tax_amount": {
"start": 198,
"end": 204,
"text": "170.00",
"quote": "Tax amount: 170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"total_amount": {
"start": 219,
"end": 226,
"text": "1170.00",
"quote": "Total amount: 1170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
}
}
}
},
"model": {
"candidate": {
"fields": {
"invoice_id": {
"value": "INV-1001",
"quote": "Invoice ID: INV-1001"
},
"supplier_id": {
"value": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001"
},
"po_id": {
"value": "PO-001",
"quote": "PO ID: PO-001"
},
"invoice_date": {
"value": "2026-11-30",
"quote": "Invoice date: 2026-11-30"
},
"due_date": {
"value": "2026-12-15",
"quote": "Due date: 2026-12-15"
},
"currency": {
"value": "EUR",
"quote": "Currency: EUR"
},
"net_amount": {
"value": "1000.00",
"quote": "Net amount: 1000.00"
},
"tax_amount": {
"value": "170.00",
"quote": "Tax amount: 170.00"
},
"total_amount": {
"value": "1170.00",
"quote": "Total amount: 1170.00"
}
}
},
"parse_error": null,
"binding_issues": [],
"validation": {
"status": "valid",
"issues": [],
"normalized": {
"invoice_id": "INV-1001",
"supplier_id": "SYN-SUP-001",
"po_id": "PO-001",
"invoice_date": "2026-11-30",
"due_date": "2026-12-15",
"currency": "EUR",
"net_amount": "1000.00",
"tax_amount": "170.00",
"total_amount": "1170.00"
},
"source_spans": {
"invoice_id": {
"start": 58,
"end": 66,
"text": "INV-1001",
"quote": "Invoice ID: INV-1001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"supplier_id": {
"start": 80,
"end": 91,
"text": "SYN-SUP-001",
"quote": "Supplier ID: SYN-SUP-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"po_id": {
"start": 99,
"end": 105,
"text": "PO-001",
"quote": "PO ID: PO-001",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"invoice_date": {
"start": 120,
"end": 130,
"text": "2026-11-30",
"quote": "Invoice date: 2026-11-30",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"due_date": {
"start": 141,
"end": 151,
"text": "2026-12-15",
"quote": "Due date: 2026-12-15",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"currency": {
"start": 162,
"end": 165,
"text": "EUR",
"quote": "Currency: EUR",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"net_amount": {
"start": 178,
"end": 185,
"text": "1000.00",
"quote": "Net amount: 1000.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"tax_amount": {
"start": 198,
"end": 204,
"text": "170.00",
"quote": "Tax amount: 170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
},
"total_amount": {
"start": 219,
"end": 226,
"text": "1170.00",
"quote": "Total amount: 1170.00",
"source_sha256": "16eb71024ac61437b39064452251555db06d4f54da83c6c96d917064b6163ff5"
}
}
},
"raw_call_ref": "STRUCTURED"
}
}Recover the work item at its checkpoint
- 01intakeRECEIVED
Synthetic text saved with its source digest
- 02extractionEXTRACTED
First-pass model candidate retained; no execution authority
- 03rulesVALIDATED
Shared invoice/PO rules passed; awaiting human review
- 04reviewAPPROVED
Demo checker approved this exact source/candidate/reference/rule snapshot
- 05revisionREEXTRACTION REQUIRED
Authored source revision invalidated the old approval; no new extraction is performed in this recording
- 06reviewREEXTRACTION REQUIRED
Old approval attempt rejected against the changed source revision
Inspect the approval, simulated events and mock receipt
The named actors, session failure and ERP receipt belong to this synthetic fixture. They are not evidence of a real approval, RPA connection or payment.
{
"approval": {
"reviewer": "checker-demo",
"snapshot_sha256": "26c7ad82eb1d1da4f5ce73c2baf81676bf85005ff2fc6eff867a55e218ed172a",
"valid": false,
"origin": "authored_local_review_action",
"invalidated_by": "source_revision_changed"
},
"erp_receipt": null,
"packet_origin": "model_validated",
"simulated_events": [
"AUTHORED_SOURCE_REVISION",
"ATTEMPT_OLD_APPROVAL",
"REOPEN_WITHOUT_REEXTRACTION"
],
"resume": {
"database_reopens": 1,
"model_calls_before": 1,
"model_calls_after": 1,
"additional_model_calls": 0,
"rpa_attempts": 0,
"skipped_stages": [
"extraction"
]
}
}Inspect the experiment identity and source manifest
{
"experiment": {
"id": "deloitte-invoice-checkpoints-v1",
"model": {
"name": "qwen3-vl:4b-instruct-q4_K_M",
"model": "qwen3-vl:4b-instruct-q4_K_M",
"modified_at": "2026-11-25T21:56:46.663784614+01:00",
"size": 3337226771,
"digest": "8708ab6acc5eed95c57d3d4b68c08f85eb197840827c097c7d9ed49f2a030c6e",
"details": {
"parent_model": "dhiltgen/qwen3-vl:4b-instruct-q4_K_M-llamacpp",
"format": "gguf",
"family": "qwen3vl",
"families": [
"qwen3vl",
"clip"
],
"parameter_size": "4.0B",
"quantization_level": "Q4_K_M",
"context_length": 262144,
"embedding_length": 2560,
"runner": "llamacpp"
},
"capabilities": [
"completion",
"vision",
"tools"
]
},
"runtime": {
"version": "0.40.18"
},
"recorded_at": "2026-11-30T13:18:27.006192+00:00",
"repository_anchor": "cb9d6c2fd8847e0e7c1313349834102b52aa91a5",
"prompt_sha256": "beed9241fbfaed003b8b93bd695d7f1e48bc373ccc282fe5d91a472d322638dd",
"schema_sha256": "42f305cbae321d54874f4a350a5085be7d2b854072a792655bc90f427f21498f",
"source_hashes": {
"extraction.py": "32bb617fcfb221efaf904790360eaffb2f85a54842fc64ea37c0506fe23daeff",
"validation.py": "c13e61d4e5b13421b955323c7de5f6f61331b37794f276a33ab9d93665098fc6",
"run.py": "a79b661c26792d8aafee13acb4034480fd44c7492eef113ca2fbc2213e9aea38",
"fixtures.json": "8abfe7547a10d7588e040af662978b6f13a7be7dba320eb434eb36408ac070a5",
"registry.json": "69b4ed927a7d5b8881e55804fe086a6516ea525aaf44c3bad6831ad3450a3ee7",
"rules.json": "0cba1a70dfb89e5bf04a5a3ef10d85de7242830877b95587e114a5c1e5776b04",
"expected.json": "b5c2a3ee386a66aedf155237fa0047fa3cf2cfa30a9c5673dd8418c282ca7f26"
},
"workflow_source_hashes": {
"workflow.py": "8aaf628e40eb6334c44b55169bac411c93e3493a21d104fcdd8bba17f378256a",
"replay.py": "80226db6d29eb6e39e03dec8af96087b26f9dea040069a614f2c1fb01855a401"
},
"boundary": "Five real first-pass local text extractions, then deterministic persistent-workflow execution over retained candidates. Authored human actions/restarts/session fault; local mockERP only. No Deloitte integration, OCR, actual RPA product, autonomous agent or payment."
},
"summary": {
"real_extraction_calls": 5,
"additional_resume_model_calls": 0,
"boundary": "Counts identify this recording; no pooled accuracy, production impact, autonomous-agent comparison or fresh latency benchmark."
},
"source_manifest": {
"company_context": {
"title": "Generative AI agents in collaborative automation",
"publisher": "Deloitte AI Institute",
"date": "2025-07",
"url": "https://www.deloitte.com/content/dam/assets-shared/docs/about/2025/generative-ai-agents-in-collaborative-automation.pdf",
"location": "Printed pages10–11; PDF pages10–11",
"supported_context": "The invoice-processing discussion is an illustrative collaborative-automation scenario. It is not evidence that Deloitte Luxembourg deployed this lab or this architecture.",
"boundary": "Independent synthetic-text experiment; no Deloitte internal invoice, infrastructure, OCR/RPA product or ERP integration."
},
"design_references": [
{
"title": "Advancing invoice document processing using GenAI",
"publisher": "Uber Engineering",
"date": "2025-04-17",
"url": "https://www.uber.com/in/en/blog/advancing-invoice-document-processing-using-genai/",
"bibliography": "Reference CSV physical row62, as verified during case research",
"adaptation": "Separate extraction proposals from business post-processing and human review. This lab implements its own small SQLite workflow and does not claim Uber's production scale or framework."
},
{
"title": "The LinkedIn Generative AI Application Tech Stack — Extending to Build AI Agents",
"publisher": "LinkedIn Engineering",
"url": "https://www.linkedin.com/blog/engineering/generative-ai/the-linkedin-generative-ai-application-tech-stack-extending-to-build-ai-agents",
"bibliography": "Reference CSV physical row201, as verified during case research",
"adaptation": "Make task history, registry contracts and execution boundaries explicit; no LinkedIn framework is imported."
}
],
"data_and_rights": "All five invoice texts, purchase orders, suppliers, reviewer identities, expected labels and workflow actions are authored synthetic fixtures. No complete third-party document, model weights, customer records or private runtime log is redistributed.",
"provenance_anchor": "cb9d6c2fd8847e0e7c1313349834102b52aa91a5",
"scope": "Five actual first-pass local model calls plus separately executed deterministic workflow scenarios. Agent-vs-workflow discussion is an unexecuted architecture tradeoff, not a benchmark."
}
}Counts identify this recording; no pooled accuracy, production impact, autonomous-agent comparison or fresh latency benchmark.
The analyst reviews the source and candidate together, then examines the rule exceptions. A supplier or PO problem is visible business work; an automation-session problem is operational work. The workflow records this distinction instead of treating every incomplete invoice as the same error.
Both methods pass the labelled invoice. On the prose input, the model candidate passes the same bounded checks while the fixed-label regex misses required fields. This is the observed role for language handling; neither validated packet is automatically approved.
The remaining inputs stay in REVIEW_REQUIRED. The missing PO is null, but the model supplies a non-null quote, violating the null/quote contract; missing-field and PO checks also block progress. For the disputed invoice, the model correctly preserves the stated total of 600: rules reject 500 + 85 ≠ 600 instead of repairing the source. The unknown supplier and literal 03/04/2027 date trigger registry and ISO-date review. Those are business exceptions, not evidence that every extracted number is wrong.
Approve a snapshot, then resume the unfinished stage
Approval identifies the source, candidate, normalised payload, PO reference and rule snapshot the reviewer saw. The implementation recomputes the snapshot hash and checks its components before approval and resumption. If they change, the old decision cannot authorise a revised packet. The recorded checker action is explicitly authored, not a model decision or a production authentication event.
def approve_snapshot(self, item_id, expected_snapshot_sha, reviewer):
with self.transaction():
row = self.item(item_id)
if reviewer not in self.registry["reviewers"]:
raise WorkflowError("Reviewer is not in the trusted demo registry")
if row["state"] != "VALIDATED" or row["snapshot_sha"] != expected_snapshot_sha or not self.is_current(row):
raise WorkflowError("Stale or unvalidated approval snapshot")
approval = {"reviewer": reviewer, "snapshot_sha256": expected_snapshot_sha,
"valid": True, "origin": "authored_local_review_action"}
self.db.execute("UPDATE items SET state='APPROVED',approval=? WHERE id=?", (json.dumps(approval), item_id))
self.event(item_id, "review", "APPROVED", "Demo checker approved this exact source/candidate/reference/rule snapshot")
return self.receipt(item_id)The structured packet follows VALIDATED → APPROVED → POST_QUEUED → RPA_BLOCKED. An injected expired session stops before any ERP write. After closing and reopening SQLite, an authored operator refresh restores the mock session. Resumption reaches POSTED using the same approved packet: two RPA attempts, one mock row, no repeated extraction. The receipt records a local invoice posting, not payment.
Inspect the resume boundary
def resume_workitem(self, item_id):
row = self.item(item_id)
if row["state"] in ("REVIEW_REQUIRED", "REEXTRACTION_REQUIRED", "REVALIDATION_REQUIRED", "POSTED"):
return self.receipt(item_id)
if not self.is_current(row):
self.db.execute("UPDATE items SET state='REVALIDATION_REQUIRED',approval=NULL WHERE id=?", (item_id,))
self.event(item_id, "resume", "REVALIDATION_REQUIRED", "Reference/rule/source snapshot changed; prior approval cannot be reused")
return self.receipt(item_id)
if row["state"] == "VALIDATED":
self.event(item_id, "resume", "VALIDATED", "Reopened at human-review checkpoint; extraction is not repeated")
return self.receipt(item_id)
approval = json.loads(row["approval"] or "null")
if not approval or not approval["valid"] or approval["snapshot_sha256"] != row["snapshot_sha"]:
raise WorkflowError("A current snapshot-bound approval is required before RPA")
self.db.execute("UPDATE items SET state='POST_QUEUED',rpa_attempts=rpa_attempts+1 WHERE id=?", (item_id,))
self.event(item_id, "rpa", "POST_QUEUED", "Deterministic RPA reads the approved normalized snapshot, never model prose")
try:
receipt = self.erp.post(item_id, row["snapshot_sha"], json.loads(row["snapshot"])["normalized"])
except SessionExpired:
self.db.execute("UPDATE items SET state='RPA_BLOCKED' WHERE id=?", (item_id,))
self.event(item_id, "rpa", "RPA_BLOCKED", "Injected expired mock session; stopped before any ERP write")
return self.receipt(item_id)
self.db.execute("UPDATE items SET state='POSTED',receipt=? WHERE id=?", (json.dumps(receipt), item_id))
self.event(item_id, "rpa", "POSTED", "Local mockERP receipt saved; this is an invoice posting, never a payment")
return self.receipt(item_id)The prose case separately reopens at the committed human-review checkpoint, then proceeds only after the checker approves. A sixth workflow scenario reuses the structured model candidate and changes the source due date from 15 to 22 December. Its approval becomes invalid and the state is REEXTRACTION_REQUIRED; no sixth model call or ERP write occurs. The displayed original candidate still refers to the original source.
LinkedIn’s agent-stack article, also in the CSV, uses persistent history and retry mechanisms for long-running work. The local adaptation is a stored workflow checkpoint and explicit recovery step, rather than its messaging or agent infrastructure. LinkedIn engineering
Use an agent only where the workflow needs one
The decision is about task boundaries. Variable invoice text may justify model assistance; arithmetic and reference matching need deterministic checks. Human approval belongs to an accountable reviewer. A fixed legacy entry step needs a constrained worker, while persistence protects progress across waits and restarts.
For these five authored documents, the model adds useful prose-format coverage, while the shared rules and reviewer preserve the posting boundary. This supports a small hybrid workflow, not a general extraction-accuracy claim. An explicit coordinator also makes the next owner and recovery point inspectable. No single-agent alternative was executed, so the recording does not establish that a workflow outperforms an agent.
Inspect the recordings and reproduce the local workflow
The downloadable lab retains five actual first-pass local Qwen text extractions, their regex comparisons and six workflow scenarios. There are no model retries, repaired outputs or human field fallbacks. Approval, source revision, session failure and restart are labelled authored events. Database reopen and mock posting execute locally.
From the standalone folder, run python3 replay.py, python3 verify_recording.py and python3 smoke.py. They use saved candidates without inference. At portfolio root, npm run prepare:deloitte exports the page recording and package. The lab does not measure production latency, handling-time savings or autonomous-agent performance.