KYB Agentic Review Engine
The KYB agent that reviews KYB cases runs on a multi-role agentic review engine. Rather than a single AI loop that both reasons and acts, the engine separates the work into distinct phases: three analytic roles assess the case, a deterministic (non-AI) guard decides whether the case may be approved, and a tool-constrained actuator carries out exactly one outcome. Every decision is recorded against a versioned policy and written to the case's audit trail.
This page describes how the engine works and how the KYB Agent Mode you pick on the flow step controls it.
You do not configure the review engine directly. It is driven by the KYB Agent Mode on the KYB step (Disabled, Suggest, or Auto-pilot). This page describes what happens behind that setting.
How a review runs
When a KYB case is ready for review, the engine builds a case file from the case and any open clarifications. If the flow lets the agent research on its own, it first tries to close what the case alone cannot. It then runs the case file through the pipeline below. Each phase has a single responsibility, and the analytic phase cannot mutate any record.
The three analytic roles
The analytic phase runs three roles in sequence: one raises concerns, one answers them, and a third weighs the two. None of them can change the stored record.
| Role | Responsibility | Notes |
|---|---|---|
| Prosecutor | Produces structured risk findings across the case file. | LLM with structured (schema-constrained) output. |
| Defender | Produces mitigations that answer the findings. | LLM. Skipped when the Prosecutor returns zero findings. |
| Judge | Weighs findings against mitigations and issues a verdict with a rationale. | LLM. Its decision is one of Approve, Escalate, or Deny. |
Each role uses a provider-agnostic, strict-mode structured-output schema and is driven by a versioned prompt. The versions a run used are listed under Prompt versions in its details on the case page (see Agent reviews). Where your compliance policy has procedure clauses, the roles read them as context, and a review shows the clauses it rested on.
The deterministic guard
The Judge's verdict does not decide approval on its own. It is checked by a deterministic guard, written in Rust and running no LLM, that has the final say on whether the case may be approved. Approval requires all of:
- Screening is complete: every person and entity the case must screen has been screened, and no match still holds the case.
- Every document-backed field cross-check matched, and each uploaded document is the document it claims to be.
- No unresolved clarifications remain, and nothing else blocks the case.
If any condition fails, the guard vetoes the approval. An Approve verdict that coincides with a Deny signal is forced to Escalate. An LLM verdict cannot override the guard.
The actuator
The actuator runs only after the guard, and it can take only one action. Its tool allowlist is the intersection of the Judge's decision and the Agent Mode gate:
- For an
Escalateverdict, theapprove_kyb_resulttool is not in the allowlist and cannot be called. - An
Approveverdict under Suggest mode is recorded but not enacted. - The mutating tools are idempotent, so a retry re-runs the same stateless evaluation instead of producing a second, independent action.
How Agent Mode controls the engine
The KYB Agent Mode on the flow step determines how far the actuator is allowed to go:
| Mode | Engine behavior |
|---|---|
| Disabled | The pipeline does not run. Fields still receive a match type, but there is no AI reasoning, verdict, or suggested value, reviewers decide everything by hand. |
| Suggest | The full pipeline runs. Clarification requests and escalations are enacted; an Approve verdict is recorded as a suggestion only, for a reviewer to follow or not. |
| Auto-pilot | The actuator may also approve. An Approve verdict is enacted only when the deterministic guard passes and the case's decision rules allow it (readiness, exceptions, and the approval matrix); anything else is escalated to a reviewer. |
Guarantees
The engine enforces the following, independent of the LLM's output:
- The guard is final. Approval requires complete screening with no holding match, every document-backed field cross-check matched, and no unresolved clarifications. An LLM verdict cannot override it.
- The allowlist is
decision ∩ mode. The actuator for anEscalateverdict cannot callapprove_kyb_result, andApproveunderSuggestdoes not run the actuator at all. - The agent is never the second signature. Where the approval matrix requires two signatures, the agent's approval is only a proposal; a person confirms it.
- The guard runs again server-side.
approve_kyb_resultre-runs the strict guard when it is called; the engine-side guard passing is not sufficient on its own. - Retries are safe. All mutating actions are idempotent. A retryable actuator failure re-runs the stateless evaluation, and the audit entry flags it (
actuator_will_retry) so a retry reads as another attempt rather than an independent review. - The engine can be switched off. Zyphe can switch it off without a redeploy: no new review starts, reviews in flight are released, and cases stay with your reviewers.
- Clarifications round-trip. The guard distinguishes "awaiting the client" (a veto) from "submitted and cross-check matched." Once a clarification is submitted and matches, the actuator reviews the fields, closes the request, and may then approve.
Audit trail
Every run writes a KYB_AGENT_REVIEWED entry to the case's audit trail. The entry records both the model's verdict and the action the system took:
| Field | Meaning |
|---|---|
| Findings count | How many risk findings the Prosecutor raised. |
| Judge verdict | Approve, Escalate, or Deny with the Judge's rationale. |
| Guard outcome | Whether the deterministic guard passed or vetoed, and why. |
| Enacted decision | The action the actuator took (or none, under Suggest). |
| Policy version | The versioned policy the decision was made under. |
| Actuator status | Success, or a retryable failure flagged with actuator_will_retry. |
When a run ends it is anchored on the tamper-evident audit log. The audit trail flags a run that changed afterwards as Changed since it ended.
Research
With Let the agent research on its own on the Know Your Business step (Research on its own in the guided setup), the agent may look up what the case alone cannot settle before the analytic roles run. It has four sources:
| Source | What it consults |
|---|---|
| Register record | The company's record in the official register. |
| Ownership graph | Who owns the company, up the chain. |
| Adverse media | News coverage of the company and its people. |
| Web search | The open web. |
Each review is held to the flow's Research spend per review and Web searches per review. With a spend of 0, the agent only reuses data your organization already holds; with 0 searches, web search is off and the register lookups stay on. The platform may hold a review to a lower limit. Every source a run consulted is listed in its details with its outcome: Adopted (reused), Purchased, Searched, Skipped, Refused: over the limit, or Failed.
Research informs the analytic roles only: the deterministic guard never reads it, so research cannot make a case approvable. A review whose research was recorded but not given to the roles is marked Shadow research.
Explainability
What the engine did on a case can be reconstructed and handed over:
- Input hashes. Each agent run and each case-planner run records a hash of the exact input it was sent. On the case page, Show what the panel was sent (and Show what the planner was sent) displays that input and checks it still hashes to the recorded value; an input changed after the run is flagged.
- Run details. Each review on the case lists its verdict, residual risk, findings and mitigations, open gaps, the sources it consulted, its research spend and searches, the model, and the prompt versions. See Agent reviews.
- Explanation dossier. Download explanation dossier in the case's audit trail exports what the AI did on the case and what people decided, for the whole case or for one subject, to answer a data subject's request. Zyphe never sends it to the person.
Related
- AML Agentic Review Engine, the parallel multi-role engine for sanctions, PEP, and adverse-media moderation