I would start by measuring accuracy field by field rather than per document, with a rubric that sets a threshold for each group of fields and a confidence threshold that decides what goes to human review. Then I would propose a gradual rollout with rollback, moving from reviewing every document to reviewing a sample. The customs fields would always stay in the hands of a person. For this scenario I estimate 4 phases over roughly 8-10 weeks.
Context: a logistics operator between paper and electronic data
The scenario is a mid-sized logistics operator that combines road haulage, sea and air freight forwarding and customs brokerage for its customers, in one or several jurisdictions. Every month it receives thousands of delivery notes, consignment notes, bills of lading and customs declarations, and a back-office team keys their data by hand into the transport management system and the customs software. Some of them arrive scanned or photographed; the rest arrive as a digital file or as structured data. The size and volume ranges are in the assumptions table.
Not every field matters equally. An error in the package count on a delivery note gets corrected at delivery; an error in the commodity code goes into a declaration that a person signs. The same operator handles low-risk and high-risk fields, and that is why accuracy would be measured per field.
The digitization of the sector is moving forward piece by piece. According to the European statistics on the use of AI in enterprises, in 2025 logistics was the least cited purpose among European enterprises that used AI, at 6.08%. Among those that did not use it, transport and storage was the second sector least likely to have considered using it, at 10.28%. At the same time, the European regulation on electronic freight transport information aims to replace paper with electronic data in road, rail, inland waterway and air transport, and it will apply in full from 9 July 2027. In sea transport, the container shipping industry association records the commitment of its carriers to issue 50% of their bills of lading in electronic form within 5 years and 100% by 2030. For years, the intake would mix scanned documents and structured data, and the design would have to accept both.
The POC-to-Production Sprint is designed for that starting point: a proof of concept that already extracts data in a demo and needs to reach production with measured accuracy, human review where it matters and a rollout that allows going back.
Diagnosis: what the proof of concept lacks to reach production
In this scenario there is a proof of concept that extracts data well from clean documents in a demo. The problem is not the model but how it is measured: per document rather than per field, so nobody knows which fields fail. That hides the failure that costs the most in logistics: an almost correct document with the weight or the container number wrong.
On top of that, there is no confidence threshold and no rule for what goes to human review, nothing is validated against the order or against format rules, the customs fields get the same treatment as the rest, and there is no plan to move from reviewing everything to reviewing a sample. These are variants of the causes I describe when explaining why generative AI pilots fail to reach production: there is no definition of ready and no evaluation that measures it, and the architecture is designed for the demo.
The diagnosis would review five dimensions, and each one leads to a deliverable. The first is accuracy per field and per document type, together with scan quality, which is the basis of the per-field accuracy rubric. The second is the confidence threshold and the review queue: at what value a field goes through without a person looking at it, and how that value is calibrated, which is the decision on the confidence threshold. The third is validation against the order and against format rules. The fourth, the handling of the customs fields. The fifth, the move from full review to sampling: which signals allow moving forward, which ones send the flow back and who decides.
The diagnosis would end with a sample of real documents by type and scan quality, with personal data minimized, and with the available ways to load data into the target system.
Proposal: per-field extraction, deterministic validation and human review
The proposal separates what the model proposes (a value and its confidence), what the code checks (rules and the match against the order) and what only a person decides (the customs declaration). The full path is in the annotated extraction and review flow.
A single intake with document classification
Every document would come in through a single path: email, customer portal or scanner. The first step would be to classify the type, because each type has its own fields, rules and thresholds. A document that does not fit any known type would go to full review. Documents that already arrive as structured data would skip extraction and go straight to validation.
Extraction with confidence and deterministic validation
Extraction would use a multimodal model that returns each field with its value, its position in the document and a confidence score, hosted in the cloud with agreed data residency. The position makes it possible to highlight the field in the review queue.
After that, a deterministic validation would check formats, plausible dates, the check digit of the container number and the match against the order in the transport management system. This layer catches errors that the model returns with high confidence, such as transposed digits. A field would go through without review only if its confidence reaches the threshold and it passes validation.
Human review, customs fields and corrections
The queue would show the document with the field highlighted. The customs fields (commodity code, country of origin and declared value) would always go to human review, in every phase, because a person signs the declaration. The design is meant to support that responsibility, not to replace it, and the same goes for the obligations of the case’s regulatory framework, which would be validated with the legal team in each jurisdiction.
Every correction would be recorded and would feed the evaluation set. The method is the one I explain in how to evaluate an LLM agent before deployment, applied to fields rather than conversations; the same approach of a gate with a published verdict can be seen in the AI agent for regulated industries.
Four phases with an evaluation gate
The work would follow the stages of the Sprint in 4 phases: diagnosis and criteria; building the evaluation set, the extraction and the validation; the rollout from full review to sampling; and the handoff. The per-field evaluation harness would act as a go/no-go gate before each phase, and the rollout would advance step by step with rollback, according to the rollout plan from full review to sampling. The handoff would leave the team with the harness, the rubric and the validation rules.
Assumptions in this scenario
- The back-office team could set aside hours to label the evaluation set.
- The target system would accept an automatic load or a file import.
- The document types with the most volume would cover most of the intake.
- The duration is an estimate for the scenario, not the standard length of the Sprint.
| Assumption | Range | Source |
|---|---|---|
| Operator size | between 300 and 1,500 employees | delegated illustrative assumption |
| Documents received | between 20,000 and 100,000 a month | delegated illustrative assumption |
| Back-office team | between 8 and 25 people | delegated illustrative assumption |
| Scanned or photographed documents | between 40% and 70% | delegated illustrative assumption |
| Fields to capture per document | between 10 and 30 | delegated illustrative assumption |
| Evaluation set | between 400 and 800 labelled documents | delegated illustrative assumption |
| Length of the work | between 8 and 10 weeks | delegated illustrative assumption |
How success would be measured: the rubric thresholds as the gate
Success would be measured with the same targets as the rubric and the rollout plan, so that the case does not carry two versions of ready: at least 99% accuracy on identifiers, 98% on dates and quantities, 95% on parties and addresses and 98% on customs fields, the latter with 100% human review. And one condition with no margin: zero invented values in customs fields, both in the evaluation set and in review. The thresholds are a proposal for this scenario, not an industry standard, and they are stricter where an error sends goods to the wrong place or goes into a declaration.
Before each phase, the harness would compare each group with its threshold, and a group below it would block progress. In the rollout phases, the sample would measure the same accuracy on real documents.
The share of fields that go through without review and the time from receipt to the data in the target system would be measured every week against the baseline from the diagnosis, with no fixed target. They are a consequence of the threshold, not a goal that pushes it: an automation target would invite lowering the threshold.
What could go wrong
Each risk would have a stop signal. With fewer than 400 labelled documents at the close of the diagnosis, the build would not start. Without a way to load data, the scope would shrink to filling in the review screen. A new type would not come in until it had been evaluated. If review catches less than 95% of the seeded errors, the phase would not advance. With more electronic data, the scope would be reviewed at the handoff.
| Risk | How it would be detected | Mitigation |
|---|---|---|
| No time to label | There are few labelled documents at the close of the diagnosis | Start from documents already corrected and set aside team hours |
| No automatic load | There is no interface and no file import | A file import agreed with the systems team |
| More formats than expected | The sample brings formats outside the defined types | The highest-volume types first |
| Review without looking | Seeded errors in control documents | Review rotates, and the team is shown which fields fail most |
| More electronic data | The share of structured inputs grows | The intake accepts them and skips extraction |
Deliverables: four work products from this scenario
The four deliverables use synthetic data, marked as sample data, and the same thresholds and ranges as the case.
- Per-field accuracy rubric
- Annotated extraction and review flow
- Rollout plan: from full review to sampling
- ADR: confidence threshold for human review
Per-field accuracy rubric
The rubric would decide which groups of fields go through without review; the harness would apply it before each phase to labelled documents, such as the sample delivery note #ALB-2041 or the sample bill of lading #BL-0388. The gate would return no-go if a group falls below its threshold or if an invented value appears in a customs field.
| Field | Accuracy threshold | Below the threshold | Human review |
|---|---|---|---|
| Identifiers: delivery note, bill of lading and container numbers | At least 99% exact match | The whole group goes back to human review on documents of that type | According to the rollout phase |
| Dates and quantities: loading date, number of packages, gross weight in kg | At least 98% | The whole group goes back to human review on documents of that type | According to the rollout phase |
| Parties and addresses: shipper, consignee, delivery address | At least 95% after normalizing case, spaces and abbreviations | The whole group goes back to human review on documents of that type | According to the rollout phase |
| Customs fields: commodity code, country of origin, declared value | At least 98%, with no invented value at all | No-go for the rollout of that document type | Always, in every phase |
rubric: per_field_accuracy
data: synthetic_sample
evaluation_set:
documents: between_400_and_800
labelling: by_hand_by_back_office
split: by_document_type_and_scan_quality
groups:
- name: identifiers
fields: [delivery_note_number, bill_of_lading_number, container_number]
comparison: exact_match
min_threshold_pct: 99
- name: dates_and_quantities
fields: [loading_date, number_of_packages, gross_weight_kg]
min_threshold_pct: 98
- name: parties_and_addresses
fields: [shipper, consignee, delivery_address]
comparison: after_normalizing
min_threshold_pct: 95
- name: customs_fields
fields: [commodity_code, country_of_origin, declared_value]
min_threshold_pct: 98
human_review: always
below_threshold: whole_group_to_human_review
no_go:
- any_group_below_its_threshold
- invented_value_in_customs_field
Annotated extraction and review flow
The diagram would show where the code decides and where a person decides; the technical team would use it to build the flow.
Illustrative example: annotated extraction and review flow
- Document intake: email, customer portal and scanner.
- Classification of the document type, which sets its fields, rules and thresholds.
- Per-field extraction: value, position in the document and confidence.
- Deterministic validation: format, plausible dates, container check digit and match against the order. Synthetic example: the sample order #P-5531 states a sample gross weight of 1,240 kg and the extraction returns 1,420 kg with high confidence; the match against the order sends it to review.
- Decision: is the confidence at or above the threshold, did validation pass and is the field not a customs field?
- Yes: the data goes to the target system.
- No: human review in the queue, with the field highlighted, and then the target system.
- Corrections: each one is recorded and feeds the evaluation set.
Rollout plan: from full review to sampling
The plan would say how review is reduced step by step and which signal sends the flow back. Each phase would last at least two weeks, and in all three the customs fields would be reviewed on 100% of documents.
| Phase | Scope and traffic | Moves forward if | Rolls back if |
|---|---|---|---|
| Full review | A person reviews 100% of documents with the fields already filled in | After at least two weeks in the phase, accuracy holds the rubric thresholds in every group of fields | There is no earlier phase: if a new document type or format arrives, outside the evaluation set, the phase stops and does not move forward until it has been evaluated. Decides: product owner |
| Confidence-based review | Only fields below the threshold or that failed validation, plus a random sample of 20% of accepted documents | After at least two weeks in the phase, the sample holds the rubric thresholds in every group of fields | An error in an identifier found after the data was loaded, for example a delivery sent to the wrong destination, returns the flow to full review at once. Decides: operations manager |
| Sampling | A random sample of 5% of accepted documents | The sample keeps holding the rubric thresholds in every group of fields | A group of fields below its threshold in the sample returns the flow to confidence-based review. Decides: document administration lead. An error in an identifier that was already loaded returns the flow to full review at once. Decides: operations manager |
ADR: confidence threshold for human review
The decision record would set how the confidence threshold of each group of fields is chosen and recalculated.
---
status: Proposed (illustrative scenario)
date: the date of the case
deciders: document administration lead and technical lead
---
# Sample ADR: confidence threshold for human review
## Context and Problem Statement
Extraction returns a confidence score per field, but that confidence is not
calibrated: a value can be wrong with high confidence.
## Decision Drivers
- The costliest errors: identifiers and customs fields.
- The rubric's accuracy thresholds, per group of fields.
- The review workload of the back-office team.
## Considered Options
1. A threshold per group of fields calibrated on the evaluation set,
combined with deterministic validation.
2. A single threshold per document.
3. Human review of everything, with no threshold.
## Decision Outcome
Recommended option: the first, a threshold per group with deterministic validation.
### Consequences
- A field goes through without review only if it reaches its threshold and passes validation.
- Customs fields are outside the threshold and are always reviewed.
- The threshold is recalculated when the model changes or a new document type comes in.
### Confirmation
For each group, the chosen threshold is the lowest one at which the accuracy of
the fields accepted without review reaches the rubric threshold on the
evaluation set. Synthetic example: a sample confidence threshold of 0.90 for
dates and quantities; a field with a sample confidence of 0.72 goes to the queue.
## Pros and Cons of the Options
- Per group: requires calibrating each group; separates fields of different risk.
- Single per document: simple; a weak field hides in the average.
- Review of everything: accepts nothing unchecked; does not reduce the review load.