# `Nous.Plugins.DecisionGuard.Packs.ModelOutput`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/nous/plugins/decision_guard/packs/model_output.ex#L1)

`Nous.Plugins.DecisionGuard.Pack` for the model-output surface
(`:post_response`, blocking): does the assistant's reply leak secrets,
its instructions or personal data, or show signs that it was hijacked?

> #### Provisional bands {: .warning}
>
> These bands come from an 8-item probe per surface on Clef-Flash
> (4 benign, 4 malicious), not a benchmark. Re-tune them on your own
> traffic before relying on them.

## Questions (all `:noul`, `true` = risky)

| id | band (allow below / deny at) |
|---|---|
| `secret_leak` | 0.20 / 0.70 |
| `system_prompt_leak` | 0.25 / 0.80 |
| `pii_exposure` | 0.25 / 0.85 |
| `compromised_output` | 0.30 / 0.80 |

## Opt-in group

  * `include: [:content_safety]` adds `harmful_content` (band 0.30 / 0.90,
    **not measured**): application policy, not security.

The system prompt is never sent (it would cost tokens and leak to a hosted
backend). For verbatim system-prompt leaks, a canary string embedded in
the system prompt and matched in the output is the stronger control.

A deny withholds the response: the run returns
`{:error, %Nous.Errors.ResponseDenied{}}`. Under `stream: true` the tokens
have already been delivered by the time the response is classified.

## State

    %{"surface" => "model_output", "task" => "...",
      "untrusted_content" => "<the response text>"}

Tool calls in the same response are not included; the tool-call surface
classifies them.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
