> ## Documentation Index
> Fetch the complete documentation index at: https://secndai.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://secndai.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://secndai.manicule.dev/api/mcp.
> Every agent surface: https://secndai.manicule.dev/.well-known/llms-manifest.json

# Confidence and the gate (/confidence)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 462 · updated: 2026-11-12 -->
Related: [Introduction](/index.md), [Quickstart](/quickstart.md), [Authentication](/authentication.md), [Models](/models.md), [Changelog](/changelog.md), [Request limits](/limits.md)

> Use probabilities to route review, with an explicit risk policy.

`probabilities` describes the answer distribution. In the current gateway, `confidence` equals `p`: the probability of the selected answer. It is not an independent verifier or a separately learned certainty score.

## Server-side routing

Send `threshold` between `0` and `1`. The default is `0.9`, unless the service operator configures a different default. The effective value is returned in both `threshold` and `gate.threshold`.

* `confidence >= threshold` produces `action: "act"`.
* `confidence < threshold` produces `action: "ask_human"`.

Equality passes. The gate is a routing policy; it does not execute a refund, invoke a tool, or contact a reviewer for you. Your backend must honor `action` and enforce authorization and business constraints.

A threshold is not a guaranteed error bound. Calibrated probabilities describe frequencies over comparable decisions and can drift when data, prompts, rubrics, or model versions change. Validate the threshold against the cost of errors in your workflow.

## An illustrative response

```json title="response"
{
  "id": "dec_illustrative",
  "model": "ren-zero-2026-11-12",
  "type": "choice",
  "choice": "billing",
  "p": 0.82,
  "confidence": 0.82,
  "probabilities": {"billing": 0.82, "delivery": 0.18},
  "action": "ask_human",
  "threshold": 0.9,
  "gate": {"threshold": 0.9},
  "usage": {"input_tokens": 96, "output_tokens": 0, "model": "ren-zero-2026-11-12"}
}
```

These values are invented to show the wire format. They are not measurements. A higher threshold generally sends more work to review; it cannot repair missing categories or misleading evidence.

For true/false decisions, confidence describes the winning answer, including false. For scores, it describes the winning level, not the expected score.
