Integrity checks

The eight standard integrity checks and how to read them.

When a document fraud result is returned, fraud_detection.integrity_checks contains the following eight standard keys. Check execution and evidence depend on the document type and extraction path.

KeyApplicability
file_structureCommon document fraud assessment: file structure.
timestampsCommon document fraud assessment: timestamp consistency.
editing_softwareCommon document fraud assessment: editing-software indicators.
layout_analysisCommon document fraud assessment: layout consistency.
font_consistencyCommon document fraud assessment: font consistency.
template_consistencyBank-statement analysis when the extraction path produces template-consistency evidence.
visual_qualityBank-statement analysis when the extraction path produces visual-quality evidence.
data_qualityBank-statement data-quality analysis; a check result is emitted when data-quality signals are produced.

Read each check's status and description. pass, warn and fail describe a returned check result. not_run is used when the response has no result for that check, including when the check does not apply or the extraction path did not produce it. In particular, the data-quality path may produce no check entry when it has no signals to report. not_run is not a pass and is excluded from pass, warning and failure counts. Do not interpret the presence of a key as proof that its check executed.