> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sahlfinancial.com/llms.txt
> Use this file to discover all available pages before exploring further.

# KYC policy and document integrity

> The policy parameters that change a verdict, the checks and signals a document can raise, and what each one does and does not prove.

Every call to `/v1/kyc/extract`, `/verify` and `/assess` runs under your workspace's **KYC policy** for the client kind (`kyc` for a person, `kyb` for any entity) and the environment. The policy is saved in the console, under **Settings, KYC policy**, by a workspace admin. A key cannot read or change it: the policy routes need a console session. Each answer says which policy ran in its `policy` object: `id`, `version`, `source` (`tenant`, `preset`, `legacy` or `fallback`), `regime`, `regulator`, `purpose` and `overrides_refused`. See [Verify a profile](https://docs.sahlfinancial.com/guides/verification.md#policy-and-switches).

A request switch can add checks but cannot turn off an item the policy locks. A refused switch is listed in `policy.overrides_refused`. It is not an error.

## Parameters

The policy values below are the ones that change what a document or a party does to the verdict. The defaults are today's behaviour: a workspace that never saved a policy gets them.

### `thresholds`

| Parameter | Type and range | Default | Effect |
| - | - | - | - |
| `document_recency_days` | integer, 1 to 365 | 90 | A proof of address or a statement older than this fails the recency check. |
| `backdate_days` | integer, 1 to 365 | 14 | File metadata this much older than the printed date is flagged. |
| `id_expiry_days` | integer, 0 to 365 | 90 | An ID expiring within this many days is flagged for renewal. |
| `max_document_age_days_by_type` | map of document type to days, 1 to 3650 | empty | A document type's own maximum age, instead of `document_recency_days`. Keys are the document types the engine knows: `passport`, `national_id`, `drivers_license`, `pr_card`, `residence_permit`, `utility_bill`, `bank_statement`, `void_cheque`, `invoice`, `proof_of_address`, `articles_of_incorporation`, `business_registration`, `payslip`, `bylaws`, `beneficial_ownership`, `directors_register`, `board_resolution`, `financial_statements`, `trust_deed`, `beneficiary_list`, `other`. An unknown key is refused when you save. |
| `name_match_threshold` | number, 0.5 to 1.0 | 0.5 | How closely the names on different documents must match. 0.5 keeps the baseline comparison. A higher value is stricter: a pair of names that agrees must also reach this similarity. It cannot be loosened. |
| `min_applicant_age_years` | integer, 0 to 100 | 0 (off) | The applicant must be at least this old by the date of birth read from their ID. Check `policy:min_applicant_age`: critical when it fails, a warning that did not pass when no date of birth could be read. The 18-or-over check always runs. |
| `max_id_age_years` | integer, 0 to 100 | 0 (off) | The ID must have been issued no more than this many years ago, by its printed issue date. Check `policy:max_id_age:<document>`: critical when it fails, a warning when no issue date could be read. |
| `duplicate_document_action` | `flag`, `review` or `reject` | `flag` | What a document already seen on another case does. `flag`: a signal on the case. `review`: the case is held for a person and its automatic decision becomes `manual_review`. `reject`: a failed check names the duplicate and the policy, and the automatic decision becomes `refused` with that check as the reason. |
| `duplicate_hamming_threshold` | integer, 0 to 12 | 6 | How many of the 64 bits of two pictures' fingerprints may differ and still count as the same picture. 0 means identical fingerprints only. |

### Top level

| Parameter | Values | Default | Effect |
| - | - | - | - |
| `fake_image_action` | `flag`, `review` or `reject` | `flag` | What the pixel-level fake-image hints do. `flag`: shown to the reviewer as an info check. `review`: a warning. `reject`: a critical check, which blocks the file until a person clears it. |
| `sanctions_pep_action` | `refuse`, `review` or `flag` | `refuse` | What a sanctions-list hit does to the verdict. `refuse`: a blocking check. `review`: a warning for a person to clear. `flag`: recorded only. A PEP hit stays a warning under `refuse` and `review`. Must stay `refuse` while sanctions screening is locked. |
| `sanctions_name_match_threshold` | number, 0.75 to 0.98 | 0.88 | The name-match score at or above which a party counts as a list hit. Lower means more hits. It may not go above 0.88 while sanctions screening is locked. |
| `liveness_strictness` | `standard`, `strict` or `lenient` | `standard` | How tight the face-match and presentation-attack thresholds are in the verification widget and face checks. `lenient` is refused while identity verification is locked. |

Other values in the same policy (risk bands, required documents, enabled checks, locks, `eid_required_non_face_to_face`) are listed in [Verify a profile](https://docs.sahlfinancial.com/guides/verification.md#policy-and-switches).

> [!NOTE]
>
> A workspace under a regulatory regime with a saved policy can still not weaken what its regime locks. Saving a policy that drops a mandated lock, or goes below a regime's floor, answers 422 `kyc_policy_lock_required`. Locks and presets are described in [Verify a profile](https://docs.sahlfinancial.com/guides/verification.md#policy-and-switches).

## Signals a file can raise

Sahl looks at what a file says about how it was made, before anyone reads it. These are **reasons to look, never an automatic refusal** (apart from the policy actions above, which you choose). The published error rates of automated document forensics are wide, and none of these signals is specific enough to turn a client away by itself.

### In `/v1/kyc/extract` and `/v1/kyc/verify`

These come back as checks in `checks`, matched by `id`, never by `label`.

| Check id | Raised when | Severity |
| - | - | - |
| `provenance:editor:<document>` | The file names an editing application (an image or PDF editor) as its creator or producer. | Warning |
| `provenance:fake_image:<code>:<document>` | A fake-image hint fired on a photograph (see below). | Set by `fake_image_action`: info, warning or critical. A hint that is itself only informational stays info. |
| `authenticity:specimen:<document>` | The document is a specimen, sample or void template. | Critical. It fails on every specimen, in Sandbox as in Production. |
| `policy:min_applicant_age`, `policy:max_id_age:<document>` | The policy parameters above. | Critical or warning |

The fake-image hints on a document photograph:

| Code | What it says |
| - | - |
| `image_ela_local` | One rectangular area was saved differently from the rest of the image. |
| `image_noise_patch` | One rectangular area has a different grain from the rest of the image. |
| `image_web_origin_likely` | The file looks like it came from a website or a design tool. |
| `image_stock_marker` | The file names a stock-photo agency. |

### On documents processed in the console

Documents uploaded in the console, and documents collected through [document requests](https://docs.sahlfinancial.com/guides/document-requests.md), are inspected when they are read, and the signals are shown to the reviewer on the document and the case. Each has a level: `info` (worth knowing), `notice` (unusual, often innocent) or `review` (a person should look before the document counts).

| Signal | Level | What it says |
| - | - | - |
| `duplicate_file` | review | The same file is already on another case. |
| `near_duplicate_image` | set by the duplicate policy | A picture almost identical to one on another case (see `duplicate_hamming_threshold`). |
| `pdf_written_by_editor` | review | The PDF was written by an editing application. |
| `pdf_future_date` | review | The PDF's creation date is in the future. |
| `pdf_page_fonts_differ` | review | Some pages use different fonts from the rest. |
| `pdf_printed_from_browser` | notice | The PDF was printed from a browser or a converter. |
| `pdf_no_metadata`, `pdf_unreadable_metadata` | info | No producer or dates, or metadata that could not be read. |
| `image_edited_software` | review | The image was saved by an editing application. |
| `image_screenshot_likely` | notice | It looks like a phone screenshot. |
| `image_low_resolution` | notice | A very small image. |
| `image_unreadable` | notice | The image could not be decoded. |
| `image_no_exif`, `image_camera_trail` | info | No camera data, or a camera make and model present. |
| `image_ela_local`, `image_noise_patch`, `image_web_origin_likely`, `image_stock_marker` | notice or review | The fake-image hints above. Their level follows `fake_image_action`. |

On a selfie, the hints are `selfie_moire` (a regular screen or print pattern), `selfie_uniform_border` (a plain frame), `selfie_no_motion` (almost no movement in a liveness recording), `selfie_is_the_id_photo`, and the reuse of a selfie or ID photo on another case.

### What these hints can and cannot catch

* The pixel-level hints are **weak on a phone photograph of a paper document**. Their thresholds are engineering choices checked on synthetic images. Sahl has not measured their false-positive rate on its own population. Treat "no hint" as "no information".
* They are not a reverse image search. A photo copied from the internet and saved again by a phone is invisible to them.
* A file that was edited and then resized, screenshotted or re-saved can pass. A document that was never edited can raise a notice (a forwarded camera JPEG, for example).
* A duplicate check compares against documents already on **your** workspace, never another customer's.

Use the checks to route a file to a person, and let the person decide.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.