Evidence, Sources & Guards
Read a binding plan in a binding resolution response: trust grade, evidence from your documents, source fields, how values combine, which document types apply.
Each entry in resolutions[].bindings[] is one plan with everything you need to decide whether to trust it. This page explains each field so a developer or an agent can pick the right plan, or abstain, without guessing. Plans are ranked best first: plans already active and verified in your workspace, then by ci95_low, highest first.
Three fields grade a plan. trust is how well proven it is: inferred (based on names), mined (tested against your documents) or verified (confirmed in your workspace). status is where it stands: candidate (inactive), active (used by your Runs) or retired; this endpoint only ever creates candidate. ladder is how this call found the plan: L0 a plan saved from an earlier call, L1 a match on field names, L2 a plan tested against your documents, L3 a plan proposed from the target's name, type and description (only with allow_llm).
evidence reports how the plan performed on documents where both its source fields and a known correct value were present: n documents tested, agree documents where the plan produced the correct value, agreement (agree / n), and ci95_low, the lower bound of the 95% confidence interval for agreement. Rank on ci95_low, not agreement: 3 out of 3 scores 100% but proves little, while 179 out of 184 is strong. distinct_values counts how many different values agreed; agreement on one repeated value, such as every document saying "EUR", says little. method records where the plan came from: mining, synthesis or human. evidence is null when the plan has not been tested yet.
sources[] lists the workspace fields the plan reads, each with registry_id, a role (the plan's own name for that input) and canonical_name. If a source field has since been merged or deleted, it stays in the list with canonical_name: null, so you always see the full plan. combine says how source values become the target value: first_of (first non-empty value in priority order), template (text assembled from several inputs, empty unless every input has a value), date_from_parts or amount_currency.
guard limits which document types a plan applies to, by doc_type_id_in and/or doc_type_name_in (names match without regard to case). A null guard applies the plan to every document. When a guard does not match, or a source value is missing or cannot be read, the plan leaves the value empty instead of failing. An active plan always gives the same output for the same input.
trust "verified" with status "active" is already used by your Runs. trust "mined" with a high ci95_low and a healthy distinct_values is a strong option to approve. trust "inferred" with null evidence is a guess based on names: useful context, not something to rely on unattended.bindings[] fields
inferred (based on names), mined (tested on your documents), verified (confirmed in your workspace).candidate (inactive), active (used by your Runs) or retired.L0, L1, L2 or L3.{ n, agree, agreement, ci95_low, distinct_values, method, notes }. null when the plan has not been tested.{ registry_id, role, canonical_name }. canonical_name is null when that field no longer exists.first_of, template, date_from_parts or amount_currency.{ doc_type_id_in, doc_type_name_in }. null applies to every document; a mismatch leaves the value empty.One binding
{
"plan_id": "4a6c8e0b-2d4f-4a7c-9e1b-3f5d7a9c1e3b",
"trust": "mined",
"status": "candidate",
"ladder": "L2",
"evidence": {
"n": 184,
"agree": 179,
"agreement": 0.9728,
"ci95_low": 0.9391,
"distinct_values": 172,
"method": "mining",
"notes": null
},
"sources": [
{ "registry_id": "9b1d3f5a-7c9e-4b2d-8a4c-6e0f2b4d6a8c", "role": "rechnungsnummer", "canonical_name": "Rechnungsnummer" }
],
"combine": "first_of",
"guard": { "doc_type_id_in": null, "doc_type_name_in": ["Rechnung", "Invoice"] }
}Pick a well-proven plan (Node)
const res = await fetch('https://api.talonic.com/v1/binding-resolutions', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
targets: [{ field_key: 'invoice_number', data_type: 'string' }],
min_trust: 'mined',
}),
}).then((r) => r.json());
for (const { field_key, bindings } of res.resolutions) {
const best = bindings.find(
(b) => b.evidence && b.evidence.ci95_low >= 0.9 && b.evidence.distinct_values >= 5,
);
console.log(field_key, best ? `bind via ${best.sources.map((s) => s.canonical_name).join(' + ')}` : 'no plan');
}Frequently asked questions
Why rank by ci95_low instead of agreement?+
ci95_low is only high when both the rate and the number of documents are.What does distinct_values protect against?+
distinct_values count means the plan was right across genuinely different values.