Document Validation Flags and Three Outcomes
An extracted value is only useful if you know whether to trust it, and document validation flags answer that question. These coded findings name the problem, the severity and the field where it sits, so a reviewer can act quickly. Python validators run after extraction and compare values with the rules for the document type and the shared flag registry. Results are then rolled up into one of three outcomes: accepted, accepted with flags or rejected, with clear reasons attached. Each finding carries a suggested action, so the reviewer knows whether to confirm, correct or ask for a new document.
In addition, a shared registry, coded checks and one outcome rule keep the result consistent. Notably, it also states what document validation flags do not prove. A flag is a review signal, not a verdict.
Key takeaway
Each document ends accepted, accepted with flags or rejected. Python validators set the outcome from a shared registry, and a model may propose a code but never writes the message. A flag is a review signal, not a finding of fraud.
Why does extraction alone need a set of named flags?
A reader can return clean fields from a document that should not pass. For example, a paystub nets out above its gross pay.
A lease has no tenant signature. A passport expired last year.
Without document validation flags, teams add scripts, one per document type. Each script invents its own wording and its own severity levels. In fact, after a few months, nobody can say what a failed check means or who should act on it.
Three needs are very clear.
Document validation flags meet those needs with a registry of coded entries and a single outcome rule. Indeed, they also keep the human step honest. The reviewer reads a named finding, not a vague warning.
How are the flags produced for each document that is read?
First, every document that is read reaches the validation step. For simple documents it is the last extraction route. Instead, bank statements follow the balance phases first.
The validator for the document type applies its own rules to produce document validation flags. Also, a set of universal checks applies to all types. Document validation flags are produced in three places.
Most of them are decided by Python rules, and a model may propose additional flags. In addition, the pipeline itself writes a rejection when a document fails or has no handler.
The shared flag registry holds the message, severity, category and suggested action for each code. Only the code and the field path are supplied by the model.
Therefore, the wording stays stable. The pipeline overview shows where validation sits among the stages.
What does one flag contain when a reviewer opens it?
Each of the document validation flags is a small record with a fixed shape. Indeed, the shape of each entry in the flag registry is the same for every type.
What do the code and the severity tell a reader?
Each finding has a code. Rejection codes start with REJ, and flag codes start with FLG.
Notably, severity levels run from critical through high, medium and low to facts. A category is assigned to the finding, such as format, consistency, range or mandatory field.
Overall, the base flag registry lists 64 entries: 22 rejections, 41 flags and one marker for inferred fields. Moreover, across all validators, the code defines 385 distinct code entries, 88 rejections and 297 flags. Also, that count includes codes for individual document types.
How do the field path and action help a reviewer?
The field path points to the exact value, so a reviewer can go straight to it. The suggested action is one of four: review and confirm, request correction, request an additional document or contact the issuer.
Likewise, a message and facts complete the finding. The message is taken from the flag registry, so two documents with the same problem read the same way. The check level field shows C1, C2 or C3.
Besides, a separate field says whether Python or AI determined the finding.
Which checks run on all of the types we read?
Python raises several universal document validation flags on many types. For example, it tests email format and phone numbers that are not in E.164 form. It checks staleness, age against the date of birth, and an age range of 0 to 125.
Finally, it checks expiration, which gives the rejection REJ-EXP-001. These rejection codes stop an expired document at once.
AI proposes the rest of the universal flags. In fact, they cover date and amount formats and image quality.
They also cover layouts that depart from the standard, verification QR codes and security features. Notably, each type lists which universal codes apply to it.
What do the domain checks need each type to meet?
Domain validators know what a document type must satisfy. A paystub must have gross pay minus deductions equal to net pay within 0.01. A balance sheet needs assets equal to liabilities plus equity, within one unit.
A lease needs both signatures. Also, a void check needs a VOID or CANCELED mark. In fact, the next section gives further examples.
How does a flag ask for a new original document?
Some document validation flags carry a trigger for a document request. The base flag registry has five of them. They include the specimen, void and copy rejection codes that ask for an original document.
Notably, the request travels in the envelope. DaletParse does not contact the sender, so your team decides how to act on the request.
Which flags show up for each type of document we read?
Document validation flags differ by type because the documents differ. A few examples of rejection codes and flags show the range.
The identity extraction page covers the rest of the photo ID checks. Overall, bank statements are the exception. Their validator raises flags only, as described on the statement balance page.
How do the flags set one of the three outcomes?
First, the outcome rule has three lines. Any one of the rejection codes gives rejected.
Otherwise, any flag gives accepted with flags. Finally, a document with no findings is accepted.
Also, the envelope shows the status and the document validation flags together. A badge is added to each document in a web run, labeled accepted, accepted with flags or rejected. In addition, the report CSV lists each finding with its code, severity, category, field path, suggested action, message and facts.
However, a rejected document still produces a full output. Indeed, failures write a rejection envelope, a JSON file, a CSV mirror and a ZIP. The review step starts from a documented reason, not from a missing file.
In fact, the review workspace page shows how reviewers work through these lists.
How can severity route the flags on a review desk?
Severity levels are the sorting key for document validation flags on a review desk. First, critical and high findings go to the front of the queue. Notably, medium findings follow, and low and facts findings can wait for a weekly pass.
DaletParse does not enforce a queue, so your team sets the policy for the severity levels. Moreover, suggested actions help with routing as well.
A request for correction goes back to the person who supplied the file. A request for another document goes to the sender with the named original.
A contact-the-issuer action goes to someone who can call the bank or the agency. Besides, the check levels C1, C2 and C3 add a second axis. Use them to see which findings come from simple field tests and which come from deeper cross-checks.
Deduplication by code and field path keeps a repeated flag from filling the list. Severity levels rank review priority and never measure fault.
What does the flow look like for a rejected paystub file?
Take a pack that contains a paystub where the deductions add up to above the gross pay. This walk-through makes no claim about speed or accuracy.
The paystub validator subtracts the deductions from gross pay and compares the result with net pay. The two differ by over 0.01, so the validator raises one of the rejection codes, REJ-PS-001. Besides, the document status becomes rejected, and the finding names the net pay field.
Other document validation flags may sit beside it, such as a withholding rate outside the plausibility band. The reviewer sees all of them in one list. In addition, the decision to ask for a corrected paystub stays with the person, not the software.
How are the flags that an AI model proposes controlled?
A model helps with document validation flags that are hard to code. Image quality and layout conformity are two examples.
Indeed, the proposal runs at temperature 1.0, so it can vary between runs. The internal assessment notes that no seed is set.
The pipeline limits the damage in three ways. First, a model returns only a code and a field path, never free text. Second, Python resolves the message from the registry.
Third, proposals are dropped when their wording shows the model doubts itself, such as a phrase naming a false positive. Therefore, treat AI proposed document validation flags as softer than Python rules. The envelope shows which party is recorded as the source of each finding, so a reviewer can weigh them differently.
What do the flags and the outcomes not prove at all?
A flag is a review signal. A rejection is a processing result.
Moreover, neither one is a finding of fraud, a credit decision or a legal opinion. In short, document validation flags guide a reviewer and never replace one.
Besides, extraction confidence is a separate number, and it is a fixed 0.8 for simple extractors. The interface tooltip says it is not a statement that the document is genuine. The confidence and authenticity article explains why the two questions differ.
An optional DaletProof service can add an authenticity analysis. Administrators connect it for each deployment. The exception handling article shows how teams route flagged items to the right person.
What do named flags and one outcome rule give a team?
Overall, document validation flags give a team these gains.
- Every finding has a code, one of the severity levels, a field path and a suggested action.
- Messages are taken from one flag registry, so wording stays stable across types.
- One outcome rule sorts documents into accepted, flagged or rejected.
- Python decides most checks, and the envelope shows which ones AI proposed.
- Failures still produce a documented rejection and a ZIP.
- Document requests tell your team which original to ask for.
Which of your own files would you run the flags on first?
The fastest way to judge document validation flags is to read them on files you know well. Pick documents with known faults, such as a mismatched total or an unsigned lease.
Check that each fault produces a sensible flag at the right place among the severity levels. Look for flags your reviewers would not raise, and note them.
Ask for a meeting, and bring documents that have caused review trouble before.
Unfamiliar terms such as envelope, flag and outcome are defined in the document processing glossary.
Questions and answers on this topic from the product team
How is the final outcome of a document decided?
The rule is short. Any rejection makes the status rejected. Otherwise, any flag makes it accepted with flags.
Does a flag mean the document is fraudulent?
No. A flag is a review signal that a value is missing, inconsistent or unusual. A rejection is a processing result, such as an expired document or a missing signature.
What does each finding contain?
Each finding holds a code, a severity, a category, the field path, a message and facts. It also names a suggested action, a check level and whether Python or AI determined it. Rejections add a rejection category.
Can a model write the flag messages?
No. A model only proposes a flag code and a field path. Python looks up the message, the severity and the suggested action in the registry.
How many checks does DaletParse define?
The validators define 385 distinct codes: 88 rejections and 297 flags across all document types. Each document runs the codes defined for its own type.
What happens when a document needs another proof?
Some flags carry a trigger for a document request. The base registry has five such entries, including the specimen, void and copy rejections that ask for an original. The request travels in the envelope.
See how DaletParse fits the providers your team uses today
Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.