How the Quality Score Works
How CargoLint turns the problems it finds on a document into one Quality score, what the colours mean, and what sends a document to Review.
Every document CargoLint reads gets a Quality score: a percentage that starts at 100% and loses a fixed amount for each problem found on the document. The score, the colours and the issues in the Document Issues panel all come from the same list of problems, so they always agree.
The Quality score
The score starts at 100%. Each problem takes off its cost, and the costs add up, down to 0%:
- A warning takes off 10%
- A problem that needs fixing takes off 20%
- A note is shown for context and costs nothing
So one warning gives 90%, two warnings or one problem that needs fixing 80%, one that needs fixing with a warning 70%, and five that need fixing 0%. Hovering the score shows what it is made of, problem by problem, with each one’s cost.
HS code problems count once per document, at their worst level. A 15-line invoice with no HS codes on it is one problem that needs fixing in the score, not fifteen; each line still shows its own state in Document Issues.
The Quality score counts the problems CargoLint found. It is not a measure of accuracy: a document read perfectly whose total does not add up scores below one where a misread value happened to pass every check.
What the colours mean
The same three colours mean the same thing on the document and on each field:
- Green: nothing wrong was found
- Amber: there is a warning, something worth a look
- Red: something needs fixing
A document takes the colour of its worst problem. Each field box takes the colour of the worst problem about that field, and hovering the box lists those problems and what each costs the score.
One level for every problem
Every kind of problem CargoLint can raise has one level, the same wherever it appears. The level depends on what the problem means for the document, not on which check found it. Problems come from four places:
The reading, about how the document was read:
- A value the AI says may have been garbled is a warning on its box; a value it is guessing needs fixing. Each rating the AI gives counts once: a line, a party’s name, address or tax ID, or a header field such as the invoice number. A value the AI did not rate is not a problem. Signature, stamp and endorsement boxes are not rated: the signature and endorsement checks judge them.
- Once a person corrects a box, a reading problem about that box no longer applies. A negative amount or line arithmetic that does not add up is worked out again from the corrected values, so a correction that brings one in is flagged.
- An identifier the AI returned that cannot be found in the document’s own text needs fixing; any other such value is a warning.
- An identifier read from a scan with low character confidence, line arithmetic that suggests a misread, and a degraded scan are warnings.
- A document whose type could not be identified, or where nothing could be read, needs fixing.
The document checks, about what the document says or lacks:
- A missing field takes the level set for that field. A missing shipper, consignee or exporter, invoice total, invoice lines, transport document number, certificate number or issuing authority, a certificate of origin’s country of origin (on a certificate an authority issues; a self-certified one, such as a USMCA certification, carries none of these three), or an insurance certificate’s insurer, insured or sum insured needs fixing. Other missing fields, such as the invoice number or date, an address, the currency, a port or a weight, are warnings. A missing Incoterm is a note.
- Totals or weights that do not add up, an Incoterm that is not one of the eleven ICC 2020 terms, an ambiguous currency symbol, an air waybill number that fails its check digit, or a certificate that is not signed or whose signature could not be read are warnings.
- A sanctions match is graded by how strong it is: an exact match in the same country needs fixing, a partial match is a warning, a match in a different country is a note. A CITES Appendix I species needs fixing; Appendix II or III is a warning.
- A destination requirement that is missing takes the level its destination profile sets, for example needs fixing above the value threshold and a warning below it.
The HS verdicts: a code that is missing, wrong, not recognised or possibly misread needs fixing; low confidence or a tariff-line doubt is a warning; a code checked at six digits only, a full code checked, or a national provision is a note. See Managing HS Codes.
CargoLint itself: a note on a document CargoLint generated, cloned or drafted, which costs nothing.
What sends a document to Review
After extraction, a document lands in Pending Approval or Review. It goes to Review when:
- Its problems add up: one problem that needs fixing, or two warnings, from any source: the reading, unclear reads, the document checks, or the HS verdicts (counted once). That is the same as a Quality score below 90%, so a document in Pending Approval scores 100% or 90% and is never red. The reading applies this as soon as the document is read; the rest applies once the document checks have run.
- HS codes wait for confirmation. HS codes are never applied automatically; a line without a confirmed code, or with a code that raises a warning or needs fixing, holds the document. A note about a code, such as a national provision or a code checked at six digits, never holds it.
- The scan is degraded, so the values may contain misread characters.
- A check found a blocking problem: an exact sanctions match, a CITES Appendix I species, or a check that could not complete.
- A shipment finding that needs fixing sends it back: a shipment consistency check found a conflict that needs fixing with another document in the shipment. A warning shows on the document without sending it back.
- CargoLint made the document: a packing list it generated or a document cloned from another waits for its first review.
A problem in the document itself, such as a field it really lacks or totals that do not add up, counts like any other: a reviewer looks at what is wrong and decides what happens next, for example asking whoever issued the document for a corrected copy. The Documents list, Document Details and the review editor show the hold reason for a document in Review.
A person gives the final sign-off on both paths before a document is marked complete.
One score for every document type
Every kind CargoLint reads, from the commercial invoice to the air waybill and the health certificate, is scored the same way, and a problem costs the same on every kind: a 90% invoice and a 90% packing list each carry one warning. A document of a kind CargoLint recognizes but does not read has no fields, so it has no score and is never reviewed (see Document Types).
What happens to your corrections
Every correction you make in review is logged with the document and field it applied to. HS code corrections build your organization’s classification history: within six hours, when a document declares a code your team has confirmed more than once for a near-identical description, CargoLint stops flagging that code as doubtful. The history confirms declared codes; it does not rank or choose suggested ones. Extraction corrections accumulate as training data used to evaluate and improve extraction models over time, unless you turn that off in your profile settings, which also keeps your corrections out of the classification history.
Once a person signs a document off, the reading problems no longer apply: they are left out of Document Issues and the score, and the document shows as Reviewed.