Start with a policy boundary, not a prompt
The first control is a policy, not a prompt. The policy is a versioned definition of permitted information and prohibited recommendations. It draws the boundary between information and advice, so that every other control has something specific to enforce and to be tested against.
A system prompt can state the scope and refusal behavior, and it is useful for tone and default behavior. It can be overridden by prompt injection, ambiguous phrasing, or model changes, so it should be treated as guidance, not control.
Enforce at runtime, outside the model
Advice prevention is runtime enforcement, not prompt writing. Input checks classify intent before the model sees the request, and output checks evaluate the response before the customer sees it. Both sit outside the model, so they continue to apply when the model, prompt, or phrasing changes.
Control points between the customer and the model
| Control point | Description |
|---|---|
| Policy boundary | A versioned definition of permitted information and prohibited recommendations. |
| Input enforcement | Intent classification before the model sees the request. |
| Output enforcement | Policy checks on the response before the customer sees it. |
| Access control | Tool and data permissions enforced outside the model. |
| Evidence | Logged decisions tied to the policy version applied. |
A layered control architecture and the limits of each layer
No layer is sufficient alone. Each one catches a different class of failure and has a known weakness that the next layer should cover.
| Layer | What it does | Known weakness |
|---|---|---|
| 1. System prompt | States the scope and refusal behavior. Useful for tone and default behavior. | Can be overridden by prompt injection, ambiguous phrasing, or model changes. Treat it as guidance, not control. |
| 2. Input intent classification | Flags requests seeking recommendations before generation, which reduces exposure. | Will misclassify borderline phrasing in both directions. |
| 3. Output policy check | Evaluates the drafted response against the policy before delivery. Catches advice the model produced despite earlier layers. | Adds latency and can block acceptable answers. |
| 4. Tool and data permissions | Limits what the model can retrieve or call, which reduces the material available for advice. | Does not stop the model from generating advice from general knowledge. |
| 5. Human escalation | Routes advice-seeking conversations to a licensed human or a defined handoff. | Depends on staffing, routing accuracy, and clear customer messaging. |
| 6. Decision logging | Records what each layer decided and why. | Does not prevent anything, but without it the other layers cannot be verified or audited. |
Restrict tools and data, then define escalation
Restricted tool and data access limits what the model can retrieve or call. Because these permissions are enforced outside the model, they reduce the material available for advice even if earlier layers miss a request.
Escalation routes advice-seeking conversations to a licensed human advisor or a defined handoff. Neither control is sufficient alone: permissions do not stop the model from generating advice from general knowledge, and escalation depends on staffing, routing accuracy, and clear customer messaging.
Log decisions so enforcement can be shown, not asserted
Decision logging records what each layer decided and why, tied to the policy version applied. Logging does not prevent anything by itself, but without it the other layers cannot be verified or audited. It is the evidence that the no-advice policy is enforced in practice.
Test the controls before and after release
Testing confirms that each layer behaves as intended, alone and in combination.
- Build a labeled test set covering informational, advice-seeking, and ambiguous prompts, approved by compliance.
- Measure false positive and false negative rates for the input and output layers separately and combined.
- Red-team with prompt injection, role-play framing, multi-turn drift, and requests embedded in pasted documents.
- Test each layer with the others disabled to see what it catches alone.
- Rerun the full suite whenever the model, prompt, policy, or tool set changes.
- Sample live production conversations for human review and feed misses back into the test set.