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

# Multi-verdict responses

> One /decide endpoint, per-domain findings under a single merged top-level verdict. A client reading only the top-level verdict is safe by construction.

**One endpoint, several judgments.** Your agent calls `POST /decide` with a tool call or message. The judge evaluates it across every domain the calling tenant is entitled to and returns one response: a per-domain `findings[]` array plus a merged top-level `verdict`. The same wire shape adapts to which domains a tenant's plan turns on. No new endpoints, no client-side branching when a new domain ships.

## The wire shape

```json theme={null}
{
  "verdict": "exclude",
  "severity": "high",
  "latency_ms": 162,
  "decision_id": "0123456789abcdef0123456789abcdef",
  "findings": [
    {
      "domain": "eeo",
      "verdict": "include",
      "severity": "low",
      "enforcement": "enforce",
      "rule_ids": [],
      "risk_labels": [],
      "evidence_span": null
    },
    {
      "domain": "pii",
      "verdict": "exclude",
      "severity": "high",
      "enforcement": "enforce",
      "rule_ids": ["pii:us_ssn"],
      "risk_labels": [],
      "evidence_span": "****6789"
    }
  ]
}
```

Five root fields are always present:

| Field | Meaning |
| - | - |
| `verdict` | Merged most-restrictive value across findings whose `enforcement` is `enforce` |
| `severity` | Merged severity on the same merge rule |
| `latency_ms` | End-to-end wall clock for the full evaluation |
| `decision_id` | The decision's 32-hex correlation key — [Verdict traces](https://docs.tenetlabs.com/concepts/traces.md#the-correlation-key) |
| `findings[]` | One entry per evaluated domain — `pii` adds one entry per detected type |

The set of domains that ran is derivable from `findings` directly. Dedupe it — `{f["domain"] for f in findings}` — because a request with an email and a phone number carries two `pii` findings.

## Per-finding shape

Each `Finding` carries the per-domain decision and what triggered it:

| Field | Meaning |
| - | - |
| `domain` | `eeo`, `pii`, `safety` (a bundle — see below) |
| `verdict` | Per-domain verdict. In the multi-domain case this can differ from the top-level merge (e.g. EEO `include` + PII enforce `exclude` → top-level `exclude`, the EEO finding still reads `include`) |
| `severity` | Per-domain severity |
| `enforcement` | `enforce` (participates in the top-level merge) or `audit_only` (visible, never gates) |
| `rule_ids` | Triggered rule IDs for this domain |
| `risk_labels` | Risk families that fired for this domain |
| `evidence_span` | The substring that triggered this domain's decision. For PII findings, this is a masked preview of the detected value (`j***@example.com`, `****6789`, `sha256:…`) — never the raw PII value |
| `sub_domain` | On entries inside a `safety` bundle, names the underlying sub-domain (`disclosure`, `injection`, `exfil`, …). Omitted on standalone findings |
| `sub_findings` | On a `safety` finding, the per-sub-domain detail. Omitted on standalone findings |

### The `safety` bundle

Non-EEO safety findings (disclosure, injection, exfil, and any other safety sub-domain) collapse onto the wire under a single `safety` finding. The granular per-sub-domain detail lives in `sub_findings`. A deterministic injection or exfil **guard** fire is attributed here too — `domain="safety"` with `sub_domain` `injection`/`exfil` and a `SAFETY-*` rule id (`SAFETY-INJECTION-GUARD-01`, `SAFETY-EXFIL-01`) — and lands as `enforcement="enforce"`, so it drives the top-level verdict rather than only reporting for audit:

```json theme={null}
{
  "domain": "safety",
  "verdict": "include",
  "severity": "low",
  "enforcement": "audit_only",
  "rule_ids": [],
  "risk_labels": [],
  "evidence_span": null,
  "sub_findings": [
    {
      "domain": "safety",
      "sub_domain": "injection",
      "verdict": "route_to_human",
      "severity": "medium",
      "enforcement": "audit_only",
      "rule_ids": ["SAFETY-INJECTION-01"],
      "risk_labels": ["imperative"],
      "evidence_span": "ignore the previous instructions"
    }
  ]
}
```

When the deterministic injection guard and the LLM injection rail both fire, the response carries one `safety` row, not two that disagree: the enforcing guard. The rail's audit-only detection is nested in that row's `sub_findings`, so you can still see that both fired:

```json theme={null}
{
  "domain": "safety",
  "sub_domain": "injection",
  "verdict": "route_to_human",
  "severity": "high",
  "enforcement": "enforce",
  "rule_ids": ["SAFETY-INJECTION-GUARD-01"],
  "sub_findings": [
    {"sub_domain": "injection", "enforcement": "audit_only", "rule_ids": ["SAFETY-INJECTION-01"], ...}
  ]
}
```

The nested rail finding never changes the verdict — the merge reads only top-level findings. A rail fire in a different family (guard `injection`, rail `exfil`) keeps its own row.

`pii` is **not** bundled — it always appears as a standalone finding alongside the safety bundle, because PII detection is the privacy floor (see [PII redaction posture](#pii-redaction-posture) below).

## How merging works

The top-level `verdict` is the **most-restrictive** value across findings whose `enforcement` is `"enforce"`. Verdict ordering, lowest to highest restriction:

```text theme={null}
include  <  include_with_caveats  <  defer  <  route_to_human  <  exclude
```

A single enforcing `exclude` makes the top-level `exclude`, regardless of what other domains returned. Unknown verdict strings normalize to `route_to_human`: a value the merge doesn't recognize can never resolve to `include`.

A client that reads only the top-level `verdict` and `severity` is safe by construction. One domain's `include` can never mask another enforcing domain's `exclude`.

## Enforcement modes

Every finding declares an `enforcement` mode:

| `enforcement` | Effect on top-level verdict |
| - | - |
| `enforce` | Participates in the merge — gates the verdict |
| `audit_only` | Reported in `findings[]`, never gates |

Your plan can also put a finding at `audit_only` — see [Tier entitlements](#tier-entitlements).

## Tier entitlements

Which domains enforce depends on your plan. PII detection runs on every plan — without the PII entitlement, its findings still report, as `audit_only`.

## PII redaction posture

PII detection is **always on** — every `/decide` request is scanned for emails, names, phone numbers, addresses, and structured secrets, regardless of plan.

Three consequences follow:

* **Every PII span the engine detects is redacted out of the request before any third-party LLM sees it** — with one deliberate exception, ages (below). The judge, the risk screener, and the safety rails all see redacted placeholder text (`<EMAIL_1>`, `<PERSON_1>`, …).
* **The wire response never carries the original PII.** Text the engine returns — `redacted` in [guardrails mode](https://docs.tenetlabs.com/api-reference/introduction.md#guardrails-mode) — carries the placeholder. A PII finding's `evidence_span` is a masked preview (`j***@example.com`, `****6789`, `sha256:…`).
* **De-redaction is yours.** The placeholder ↔ original map stays in Tenet's process memory and is not returned on the wire, and the SDK doesn't rehydrate placeholders. If you render engine text to users, map placeholders back on your side from the text you sent.

> [!WARNING]
>
> **Redaction covers only what is detected, and detection has a scope.** The engine scans every string message `content` plus a fixed set of context fields: `recruiter_prompt`, `resume_text`, `candidate_text`, `candidate_content`, `job_description`. Spans found there are redacted out of the messages, out of those same fields, and out of `context.tool_input` at any nesting depth, structure preserved.
>
> PII that appears **only** outside that set — only inside `context.tool_input`, only inside `context.tool_output`, or only under an application-specific context key of your own — is not detected today, and what isn't detected isn't redacted. The whole `context` dict is serialized into the judge prompt, so such a value reaches the provider as written. Put candidate and recruiter prose in the named fields, and keep [tool context](https://docs.tenetlabs.com/concepts/tool-context.md#cautions) to the facts that establish the basis for a call.

Placeholders are `<TYPE_N>`, numbered from 1; repeats of the same text get the same placeholder. A detection that starts or ends inside a word redacts the whole word, so a placeholder never fuses into surrounding text — the engine over-redacts rather than leaving part of a value readable. Two types need a note:

* **Dates** are `<DATE_N>`. A date becomes `<DOB_N>` only when the text marks it as a birth date ("DOB", "born", "date of birth"), so start and graduation dates don't read to the judge as an age signal.
* **Ages are detected but not substituted.** An age still raises a `pii` finding, but its digits stay in the text the judge reads: age is the protected attribute the EEO judge reasons about, and "Applicants must be 18 or older" is a lawful line the judge can't grade once the number is gone.

For an entitled tenant, high-severity PII findings — card numbers, SSNs, API keys and other credentials — land as `enforce` (`exclude`) and contribute to the top-level merge; lower-severity types such as emails and phone numbers stay `audit_only`. For a tenant without the entitlement, PII findings land as `audit_only` — but redaction of detected spans runs regardless: entitlement decides what gates, never what reaches a provider. The privacy floor isn't optional, within the scope above.

## Per-call domain narrowing

By default, `/decide` runs against the full entitled domain set. To narrow to a subset for a specific call, pass `domains` on the request body:

```json theme={null}
{
  "surface": "resume_triage",
  "messages": [{"role": "user", "content": "rank these candidates"}],
  "context": {"recruiter_prompt": "rank these candidates"},
  "domains": ["eeo"]
}
```

Rules:

* Omitted or `null` → full entitled set runs (the default — maximum coverage).
* Provided list → the effective set is `entitled ∩ requested`. Unknown or unentitled values are dropped without error.
* Empty list → 422; ask for nothing and you get an error, not a silent no-op.

## When to read `findings[]`

The top-level `verdict` and `severity` are the safe default for simple integrations — they carry the merged decision and the merged severity.

Read `findings[]` when you need any of:

* **Per-domain audit logs.** Persist each finding's `rule_ids`, `risk_labels`, and `evidence_span` next to your decision record so a compliance reviewer can see what each detector said, not just the merged verdict.
* **Domain-specific UX.** Render a different reviewer prompt for a disclosure finding than for an EEO finding — the merged top-level verdict can't tell them apart.
* **Visibility into audit-only signals.** Track audit-only findings' `severity` and rule hits so you can see what the privacy/safety floor catches.

The [SDK](https://docs.tenetlabs.com/sdk/tenet-client.md) ships helpers for the common access patterns — `findings_by_domain`, `eeo_finding`, `enforcing_findings`, `audit_only_findings`, `blocked_by_domain(name)`, `evidence_for(name)` — so you don't hand-roll the array walks.

> [!NOTE]
>
> **Codes vs. labels.** A finding's `rule_ids` are engine **codes** (`EEO-AGE-PROXY-01`) — the tokens `RiskLabelDisplay` and topic mappers key on — while `risk_labels` are human phrases (`"age discrimination"`). `JudgeVerdict.from_cloud_response` prefers the codes when promoting to `findings[*]["rule_id"]`, and the `JudgeVerdict.finding_labels` accessor returns the normalized list. See the [read-intent & wire contract](https://docs.tenetlabs.com/concepts/read-intent.md#rule-id-normalization).

## Latency

Detectors run in parallel where possible. The top-level `latency_ms` is the end-to-end server time for the whole evaluation, PII detection included — track its distribution on your own traffic rather than relying on a published figure.

## Links

* [API overview — `/decide` and the wire envelope](https://docs.tenetlabs.com/api-reference/introduction)
* [How the Judge decides — verdict vocabulary and the rule chain](https://docs.tenetlabs.com/concepts/decisions.md)
* [Surfaces — choosing the surface per request](https://docs.tenetlabs.com/concepts/surfaces.md)
* [tenet-client — `findings` and the parsing helpers](https://docs.tenetlabs.com/sdk/tenet-client#cloudjudgeresponse)


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