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

# Borrower state estimation and agent evaluation

> RP-2026-08: incremental borrower state, outcome-sensitive signals, selective feedback, and sixteen-agent reliability.

![](https://mintcdn.com/amlok-docs/E2XhE7LcU8Z7MBXL/images/whitepapers/08-borrower-state-agents.svg?fit=max\&auto=format\&n=E2XhE7LcU8Z7MBXL\&q=85\&s=43a3a83f64fb682b98487cc099f71950)

**Research period:** August 2025 - November 2026 · [Research timeline](https://docs.amlok.io/research/index.md#research-timeline)

The November 2026 [completed workflow and monitoring evaluations](https://docs.amlok.io/research/resources/cohort-evaluations.md) follow the specified cases through calculation, output handling, review and alert scoring. They preserve failed cases and separate original-output correctness from review corrections. Their methods and results are distinct from the agent benchmark below.

**RP-2026-08** · [Research library](https://docs.amlok.io/research/library.md) · [Results workbook RS-2026-06](https://docs.amlok.io/research/resources/lifecycle-results.md)

## What this study compares

This paper evaluates AMLOK as a financial workflow: maintaining borrower evidence, choosing permitted tools, returning valid evidence references, and abstaining when an answer is unsupported. Model reasoning works alongside deterministic calculations and authorization checks. The workflow results measure the complete controlled system; the [investigation study](https://docs.amlok.io/whitepapers/05-monitoring-investigation.md#what-this-study-compares) supplies the separate raw-model versus controlled-model comparison.

| Financial workflow check | Evaluation population | AMLOK result | What the measure means |
| - | - | - | - |
| Select and invoke the right tool | 2,400 multi-step workflows | 98.9% tool precision | Correct tool use among evaluated invocations |
| Return valid structured evidence | The same workflow evaluation | 99.7% schema/reference validity | Outputs satisfy the contract and reference checks |
| Abstain when evidence does not support an answer | The same workflow evaluation | 99.4% abstention accuracy | Correct decisions about whether to abstain |
| Enforce tool authority under indirect prompt injection | Separate 1,200-attack suite | 0 unauthorized tool executions | No unauthorized execution in this tested attack set |

These are system-reliability measurements, with higher precision, validity, and abstention accuracy indicating better performance on their respective checks. The state-update figures below compare the work required for specific evidence changes, while the recovery and renewal results measure different financial outcomes. Each keeps its own population and unit.

Sources: [RP-2026-08, workflow reliability](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md#workflow-reliability) and [adversarial tool-use evaluation](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md#adversarial-tool-use-evaluation); [RS-2026-06, agent reliability](https://docs.amlok.io/research/resources/lifecycle-results.md#agent-reliability), `02_16_Agents_and_Unit_COGS`, aggregate row 21. The role rows describe the same evaluation and should not be added as independent trials.

## Abstract

Continuous assessment needs a way to update a borrower's financial representation when evidence changes. It also needs to distinguish a high-risk borrower from a borrower whose outcome may improve under a particular institution-led action. Selective analyst feedback creates another problem: reviewed alerts are not a random sample of the borrower population.

This paper combines an incremental state-space model, a dependency graph, cross-fitted treatment-effect estimation, and importance-weighted adjudication feedback. It evaluates sixteen logical agent responsibilities organized into six roles. The source reports a daily-bank update affecting 6.2% of catalog nodes in 5.1 milliseconds; a recovery uplift result of 11.4% and renewal net-interest-income lift of 18.6%; and aggregate tool precision of 98.9% across a 2,400-workflow evaluation. A separate 1,200-attack suite reports no unauthorized tool executions. [RP-2026-08](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md), [RS-2026-06](https://docs.amlok.io/research/resources/lifecycle-results.md).

## Persistent borrower state

A borrower state is a versioned representation of the evidence currently available for an assessment. It contains estimates and their uncertainty rather than an assumption that every fact is known. Each new financial event can change cash flow, obligations, collateral coverage, or related risk indicators.

The state-space model first advances the previous state through the elapsed time. It then updates that prediction using newly observed evidence. A dependency graph connects source observations to derived quantities. Only quantities downstream of a changed observation need recomputation. The graph denominator is 13,535 potential derived value slots: 24 dimension scores + 184 metric values + 45 group aggregates + 327 category aggregates + 12,805 windowed attributes + 150 cross-system attributes. These are computed values, not static taxonomy labels or raw source records. Unsupported slots remain distinct slots in the denominator. [RP-2026-08, section 1](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

### Incremental borrower-state update

<ol />

**Equation 8.1 - State prediction, evidence update, and dependency selection**

$$
\begin{aligned}
\widehat{\mathbf s}_i(t_k^-)
&=\mathbf F(\Delta t_k)\widehat{\mathbf s}_i(t_{k-1}),\\
\widehat{\mathbf s}_i(t_k)
&=\widehat{\mathbf s}_i(t_k^-)
+\mathbf K_k\left(\mathbf y_{\Delta E_k}-\mathbf H_k\widehat{\mathbf s}_i(t_k^-)\right),\\
\mathcal V_{\mathrm{recomp}}(\Delta E_k)
&=\mathrm{Descendants}_{\mathcal G_{13535}}(\Delta E_k).
\end{aligned}
$$

$\mathbf F$ advances the state through time. The residual between new observations $\mathbf y$ and the predicted observations $\mathbf H\widehat{\mathbf s}$ changes the estimate through gain $\mathbf K$. The descendant set identifies derived value-slot IDs affected by the new evidence batch $\Delta E_k$. Count each evaluated slot once; recomputation share is the number of affected evaluated slot IDs divided by 13,535. The rounded percentages below do not imply an unreported exact integer count.

A new payment-processor payout need not rebuild unrelated collateral or tax calculations. A new tax-lien observation can affect collateral priority and capacity without rerunning every transaction classifier. The dependency graph makes these distinctions explicit. Permission changes also constrain future processing; evidence retention and removal follow the applicable lifecycle policy rather than being inferred from state recomputation.

The daily-bank example reports 6.2% recomputation and 5.1 milliseconds, compared with 100% and 78.5 milliseconds for a full rebuild. These displayed timing values imply approximately 15.4 times faster recomputation for that comparison. The figures describe the evaluated evidence batches; they do not set an API response-time commitment. [RP-2026-08, Figure 8.1A](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

## Risk signals and expected response to an action

Risk ranking answers which borrower is more likely to experience an adverse outcome. Treatment-effect estimation asks a different question: how might the outcome differ under an available action? The source evaluates both protective intervention and renewal or credit-expansion scenarios using historical institution actions.

The method uses cross-fitted nuisance estimates to remove predictable variation in the outcome and action assignment. A causal forest then estimates how the remaining relationship varies across borrower characteristics. A candidate action is compared using estimated net present value after action cost. In the product boundary, AMLOK supplies assessment and intervention signals; institution staff perform outreach and intervention in their own systems. [RP-2026-08, section 2](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

**Equation 8.2 - Residualized treatment effect and action comparison**

$$
\begin{aligned}
Y_i-\widehat\ell(\mathbf X_i)
&=\tau_{\mathrm{CATE}}(\mathbf X_i)
\left(W_i-\widehat e(\mathbf X_i)\right)+\varepsilon_i,\\
\widehat a_i^*
&=\arg\max_{a\in\mathcal A_{\mathrm{policy}}}
\widehat\tau_{\mathrm{netNPV},a}(\mathbf X_i).
\end{aligned}
$$

$Y_i$ is an outcome, $W_i$ is the historical action, and $\mathbf X_i$ is the pre-action evidence. The nuisance functions estimate the expected outcome and action probability. $\tau_{\mathrm{CATE}}$ is a conditional average treatment effect. The second line compares policy-eligible actions using the estimated treatment effect on net present value after incremental action cost, including the no-action option with zero incremental value. Do not subtract action cost again after including it in the outcome.

For an observational interpretation, the comparison depends on consistent outcome definitions, sufficient overlap in action assignment, and adequate control for confounding. Cross-fitting reduces estimation bias from reusing observations; it does not remove unmeasured confounding. An effect estimate for a borrower group is also not a guarantee for an individual borrower.

### Outcome and recourse estimands

Recovery, renewal income, and recourse conversion use different eligible populations. The percentages are reported study summaries. Economic examples use them as explicit assumptions; an individual treatment effect remains a different quantity.

| Element | Normative definition |
| - | - |
| Recovery | Index an eligible distressed facility before action assignment. Let Y(a) be discounted recovery receipts minus recovery and incremental action costs in CAD over the next 365 days under action a. Deduplicate cost cash flows and subtract each once. Estimate E\[Y(1)-Y(0)] in CAD; relative lift is 100 × that difference / E\[Y(0)], defined only for a positive baseline. Fix assignment, action eligibility, and follow-up before scoring. |
| Renewal | Index a renewal-eligible facility before the renewal decision. Let Y(a) be 365-day interest and fees less funding cost, credit loss, and incremental action cost. Report the CAD treatment effect and, only with a positive control mean, relative net-income lift. Do not add its percentage to recovery lift. |
| Qini | Use the same 365-day discounted net recoveries as the CAD recovery endpoint, subtracting each recovery/action cost once, then divide by positive principal outstanding at the index date. Hold that denominator fixed under both actions. This normalized Y and its Qini index are dimensionless; the CAD recovery-lift endpoint stays separate. On held-out cases, rank by predicted effect on normalized Y, breaking score ties by stable borrower ID. Use known assignment probabilities or cross-fitted propensities with 0 \< e\_i \< 1 under the stated identification assumptions. At knots u = k/n, compute G(u) = (1/n) sum over the top k cases of \[W\_i Y\_i/e\_i - (1-W\_i)Y\_i/(1-e\_i)], with G(0) = 0. Join knots linearly and integrate G(u)-uG(1) using trapezoids. The reported 0.318 index is comparable only under this outcome scale and normalization. |
| Recourse conversion | Denominator: all eligible declined applications offered the specified feasible evidence/action plan. Numerator: those that satisfy the frozen model and policy constraints within 90 days. Report offered, attempted, completed, and qualifying counts separately. Conversion is a policy-feasibility event, not automatically disbursement. |
| Converted-group default | Denominator: converted cases that subsequently receive the reference facility and have completed 365-day outcome follow-up. Numerator: qualifying credit defaults in that group. Report unfunded conversions and censored cases separately. A group default frequency is not the predicted PD of the worked-example borrower. |
| Identification | Use randomized assignment or specify consistency, overlap, and conditional exchangeability given pre-action covariates. Cross-fit nuisance models by borrower. Report the target population, counts, effect interval, and sensitivity to confounding; cross-fitting alone does not establish a causal effect. |

The recovery-ranking evaluation reports a Qini value of 0.318. The versioned Qini definition above fixes its integration and outcome units for reproducible comparisons. Compare the reported 0.318 index only with evaluations using the same outcome scale and normalization. The reported 11.4% recovery lift and 18.6% renewal-income lift concern different outcomes and should not be added together. [RP-2026-08, Figure 8.1B and abstract](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

## Learning from selective adjudication

Analysts are more likely to review an alert than an uneventful case. Training directly on reviewed cases can therefore overrepresent suspected problems. The paper combines alert-driven review with a 2.0% stratified random sample. It weights confirmed outcomes by the inverse probability of review. [RP-2026-08, section 3](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

**Equation 8.3a - Importance-weighted feedback loss**

$$
\mathcal L_{\mathrm{Feedback}}(\theta)
=\sum_{i\in\mathcal R_{\mathrm{adj}}}
\frac{\ell(y_i^{\mathrm{adj}},f_\theta(\mathbf x_i))}
{P(\mathrm{Reviewed}=1\mid s_i,\mathcal E_i)}.
$$

The reviewed set is $\mathcal R_{\mathrm{adj}}$. An observation with a low probability of review receives more weight than one that was almost certain to be reviewed. The adjustment requires the review probability to be estimated or recorded and positive for the population being represented.

**Equation 8.3b - Population stability index**

$$
\begin{aligned}
B&=10,\qquad\alpha=\tfrac12,\\
\widetilde P_b&=\frac{n_{P,b}+\alpha}{n_P+B\alpha},\qquad
\widetilde Q_b=\frac{n_{Q,b}+\alpha}{n_Q+B\alpha},\\
\mathrm{PSI}(P,Q)&=\sum_{b=1}^{B}(\widetilde P_b-\widetilde Q_b)
\ln\frac{\widetilde P_b}{\widetilde Q_b},\qquad n_P,n_Q>0.
\end{aligned}
$$

Fix the ten bin boundaries from the training reference and reuse them for both distributions, including underflow and overflow in the edge bins. The counts $n_{P,b}$ and $n_{Q,b}$ sum to the observed totals $n_P$ and $n_Q$. Jeffreys smoothing adds 0.5 to every bin before normalization, so an empty bin has a finite logarithm. If either distribution has no observations, PSI is unavailable; smoothing does not invent a uniform observed distribution. The 0.10 reference threshold is an experimental monitoring choice alongside Brier calibration monitoring; distribution shift and calibration change remain different measures.

The random sample helps represent cases that an alert rule would otherwise miss. Importance weights address that review selection, while stability and calibration measurements track different consequences of changing evidence or population mix. The study rule does not establish a regulatory threshold or a universal model-replacement policy.

## Six roles and sixteen responsibilities

The architecture separates tool access, financial reasoning, risk calculation, policy and capacity analysis, monitoring, and explanation. A logical responsibility defines what an agent may evaluate and what evidence its output must carry. It does not grant authority to perform institution servicing or funding actions.

| Role | Logical responsibilities | Assessment output |
| - | - | - |
| A - Data and evidence | Data acquisition; document intelligence; entity resolution; data integrity | Permission-scoped, linked, reconciled evidence |
| B - Financial and graph | Financial intelligence; debt and exposure; relationship intelligence | Financial representations, obligations, and relationship signals |
| C - Risk and collateral | Credit risk; fraud intelligence; collateral intelligence | Risk estimates and collateral evidence |
| D - Policy and capacity signals | Policy evaluation; credit capacity; intervention signals | Deterministic policy results, capacity estimates, and institution-review signals |
| E - Monitoring and investigation | Continuous monitoring; investigation | Change detection and evidence-based hypothesis assessment |
| F - Explainability | Explainability | Grounded explanations and supporting references |

Source: [RP-2026-08, role table](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md) and [RS-2026-06, sixteen-agent results](https://docs.amlok.io/research/resources/lifecycle-results.md).

### Evidence and tool authority remain separate

<ol />

## Workflow reliability

The workflow evaluation covers 2,400 multi-step workflows. Tool precision measures correct tool selection and invocation. Schema and reference validity assess the output contract and its evidence references. Abstention accuracy measures whether the agent refrains from an unsupported answer when it should.

### Workflow scoring protocol

The 2,400-workflow scorecard and 1,200-attack suite describe different tests. Use these micro-aggregation rules for research-methods-v2; role averages and workflow counts are not substitutes for the relevant denominators.

| Element | Normative definition |
| - | - |
| Tool precision | Correct tool invocations / attempted tool invocations. Correctness requires the allowed tool, correct arguments and scope, and a valid prerequisite state. Count rejected attempts in the denominator; report zero-invocation workflows separately. |
| Schema and reference validity | Outputs passing both schema and evidence-reference checks / emitted outputs. Report missing required outputs separately as workflow failures; do not silently remove them from completion coverage. |
| Abstention accuracy | Correct answer-or-abstain decisions / required answer opportunities. A correct abstention is supported by an unanswerable annotation; a supported answer is correct only when the answer is accurate. Also report abstention recall on unanswerable opportunities and answer coverage on answerable opportunities. |
| Aggregation and uncertainty | Sum each metric numerator and denominator over all invocations or opportunities before dividing. A role table uses the same rule restricted to its role. A workflow-success rate instead requires every required step to pass. Bootstrap whole workflows or borrower clusters, not individual tool calls, for uncertainty. |
| Runtime | Measure wall-clock time from accepted workflow start to final validated output, including retries and tool waits. Name hardware, concurrency, workload, cache state, and percentile estimator. Role p95s remain role statistics. The 11.40-second scorecard total is a reference duration, not a defined workflow percentile or a sum-rule for percentiles. |
| Authority test | Count distinct attack cases and unauthorized executions. Repeated role-level zeroes refer to the same 1,200-case suite. Record the attempted tool, requested scope, enforcement decision, and execution receipt for each case. |

The source reports an aggregate tool precision of 98.9%, schema/reference validity of 99.7%, and abstention accuracy of 99.4%. Its reference total workflow duration is 11.40 seconds; the scorecard does not assign this total a percentile. This aggregate is reported separately from role-level p95 values and from the embedded assessment path in [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md). [RP-2026-08, benchmark table](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

### Reliability across 16 logical agents

Read the reported reliability of AMLOK agent responsibilities. These rows compare responsibilities within the system, not standalone language models.

The workbook also reports a 0.2% unsupported-claim rate for the explainability responsibility's grounding verifier. This is a claim-grounding measurement, separate from whether an output satisfies its schema. [RS-2026-06, explainability result](https://docs.amlok.io/research/resources/lifecycle-results.md).

## Adversarial tool-use evaluation

The separate security evaluation contains 1,200 indirect prompt-injection attacks placed in untrusted documents, transaction text, and public web content. The source reports zero unauthorized tool executions across this suite. Repeated zero counts in the role table refer to this same suite; they should not be summed into additional independent trials. [RP-2026-08, section 4](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

The result supports the tested separation between evidence content and deterministic authorization. It does not establish immunity to every future payload. Tool precision, valid output structure, correct abstention, and authorization enforcement remain distinct measurements.

## Interpretation and related work

Incremental updates reduce repeated computation while preserving the dependence between source evidence and derived facts. Treatment-effect estimates provide a separate lens from default-risk ranking. Weighted feedback addresses review selection. The role evaluation then measures how reliably the system uses those components in a workflow.

Read [the research catalog](https://docs.amlok.io/research/catalog.md) for the definition families, [monitoring](https://docs.amlok.io/research/monitoring.md) for change-driven assessment, and [agent architecture](https://docs.amlok.io/research/agents.md) for the public division of responsibilities. The next papers extend these methods to [institutional collaboration and geographic adaptation](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md) and [adaptive defense with constrained alternatives](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

## References

* [RP-2026-08 - Borrower state estimation and agent evaluation](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md): state-space, treatment-effect, feedback, workflow, and security methods and results.
* [RS-2026-06 - Document and agent evaluation results](https://docs.amlok.io/research/resources/lifecycle-results.md): individual-agent tool precision, schema validity, and abstention accuracy.
* [RP-2026-07 - Document integrity and loss estimation](https://docs.amlok.io/whitepapers/07-document-loss-models.md): evidence extraction and refresh inputs.


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