A layered control architecture
The system prompt and model safety training are not enough on their own. Enforceable controls sit outside the model, so that each message, response, and action is checked at runtime rather than trusted by default.
| Layer | What it does |
|---|---|
| Input and context | Screen messages and restrict retrieved content to approved sources. |
| Output policy | Check every response before delivery against defined rules. |
| Tool and data scope | Validate each tool call against least-privilege agent permissions. |
| Escalation | Refuse or hand off to a human when a rule requires it. |
| Audit evidence | Log decisions and tie test results to specific controls. |
Start with failure modes, not the attack technique
Define controls around the failure you need to prevent, not around the specific prompt that triggers it. The failures of concern here are UDAAP-relevant: statements about fees, products, advice, and customer rights that a bank chatbot should not make.
Mapping attack paths to failures and controls
For each jailbreak path, record the UDAAP-relevant failure mode it could produce and the control layer that limits it. Each path should map to at least one layer in the table above, and each layer should be tied to the failures it is meant to contain.
Write output policies as testable rules
Output policies check every response before it reaches the customer. Write them as rules that can be tested, covering:
- Fee statements
- Product statements
- Advice
- Customer-rights statements
Each rule should have an owner, a version, and a defined action, such as refusing the response or handing off to a human. Rules written this way can be rerun against the same adversarial tests after any change.
Test adversarially and keep the evidence
Verify each control with repeatable adversarial tests, and map those tests to the controls and failure modes they exercise. Log every policy decision per interaction, and keep dated test results so that the evidence reflects how the controls actually behave.
Audit evidence to assemble
- A written output policy set with owners, versions, and defined actions
- Per-interaction policy decision logs showing rule, action, and outcome
- Tool-call and permission records tied to each agent identity
- An adversarial test suite mapped to controls and failure modes, with dated results
- Refusal and human escalation test results
- Change records for models, prompts, retrieval sources, and policies