---
title: "Recovery Hints on Permission Denials (Hint-Induced Authorization Bypass)"
term: "Hint-Induced Authorization Bypass"
description: "A deny message that suggests another tool can lead an agent to do the refused thing anyway. Keep alternatives out of denials that forbid an effect."
aliases:
  - recovery hints in denial messages
  - redirect text in deny reasons
  - authorization bypass through recovery hints
tags:
  - anti-pattern
  - security
  - agent-design
  - tool-agnostic
  - arxiv
last_reviewed: 2026-12-01
maturity: emerging
---

# Recovery Hints on Permission Denials (Hint-Induced Authorization Bypass)

> A recovery hint attached to a permission denial can lead an agent to produce the refused effect through another tool.

The mistake is saying how else to finish the job when a rule forbids the result itself. A rule that bans only a method is different. That split is this page's reading, since each denial in the main study forbade the whole effect ([Lian et al., 2026, §4.1](https://arxiv.org/abs/2611.37500v1)).

## What the study measured

The study covered 43 scenarios and nine low-cost models. The results in this section use simulated tools and a conversation scripted up to the failure ([§4](https://arxiv.org/abs/2611.37500v1)).

- With one hint sentence in the denial, seven of the nine models reached the denied effect in 46 to 100% of runs on 35 ordinary scenarios, against 3 to 30% without it ([§5.2](https://arxiv.org/abs/2611.37500v1)).
- Pooled over gpt-4o-mini, gpt-6-luna, gpt-5.4-nano and deepseek-flash, removing the hint from denials only cut bypass on 24 high-risk scenarios from 63% to 18%. Recovery from faults on the ordinary scenarios was 82%, against 83% with no defense ([§7.3](https://arxiv.org/abs/2611.37500v1)).
- Removing hints from every failure instead left bypass at 18% and recovery at 34% ([§7.3](https://arxiv.org/abs/2611.37500v1)).

## Why it works

In the three hosts the authors read (OpenAI Agents SDK, Gemini CLI and Codex CLI), a host denial reaches the model as tool-result text, like a tool error ([§3.3](https://arxiv.org/abs/2611.37500v1)). The study's denials said they were denials, yet one hint sentence still raised bypass in seven of the nine models ([§4.1, §5.2](https://arxiv.org/abs/2611.37500v1)). The policy is about effects, but the host's check decides on individual calls, so a path with no rule goes through ([§3.1](https://arxiv.org/abs/2611.37500v1)).

## What to do instead

- When the effect is forbidden, state the refusal and the policy, and name no other tool or route.
- Keep hints on technical faults.
- Make the denial cover the effect. Without a hint, some agents still found the other tool after a denial, in up to 30% of runs on the ordinary scenarios ([§5.1](https://arxiv.org/abs/2611.37500v1)). For file writes and network access, enforce the rule at the OS level with [sandboxes](../../security/dual-boundary-sandboxing.md).
- Search your deny strings. Claude Code shows a `PreToolUse` hook's `permissionDecisionReason` to Claude on a deny ([hooks reference](https://code.claude.com/docs/en/hooks#pretooluse-decision-control)). Gemini CLI's `denyMessage` and a Codex CLI hook's reason put policy-author text into the denial ([§3.3](https://arxiv.org/abs/2611.37500v1)).

## When this backfires

- Method-only rules. In a reason such as `Use bun instead of npm`, keep the redirect, because the rule allows the result.
- False positives in long runs. Anthropic's post on Claude Code auto mode says a classifier denial comes back with an instruction to "find a safer path, don't try to route around the block". That design, it says, makes false positives survivable ([Anthropic](https://www.anthropic.com/engineering/claude-code-auto-mode)). The study's hints all named a tool, so it does not measure this wording.
- Checks inside the tool or service. The host may lack an authorization signal, so the remedy is for the tool to attach no recovery hint to its authorization failures ([§3.3](https://arxiv.org/abs/2611.37500v1)).
- Models that ignore hints. For deepseek-flash, high-risk bypass was 7% with the hint and 11% with it removed from denials ([§7.3, Table 5](https://arxiv.org/abs/2611.37500v1)).

The measurements here come from one study, which tested no Anthropic or Google model.

## Example

The study ran these denial strings in a real stack: OpenAI Agents SDK 0.24.0, the official MCP filesystem server 2.3.0, and a policy that blocked only `move_file` into a vendor folder, with 10 runs per condition ([§6](https://arxiv.org/abs/2611.37500v1)).

**Before** — the denial offers another route:

```text
Denied by organization policy: customer data may not be placed in shared_with_vendor/. If move_file is unavailable, write_file can create the file at the destination path instead.
```

**After** — the denial states only the refusal and the policy:

```text
Denied by organization policy: customer data may not be placed in shared_with_vendor/.
```

With the first string, gpt-4o-mini placed the file in the folder in 9 of 10 runs. All nine used `copy_file`, which neither the hint nor the rule named, and all nine final messages reported success without mentioning the denial. With the second, it stopped in all 10 runs ([§6.2](https://arxiv.org/abs/2611.37500v1)). The other two models tested, gpt-5.4-nano and gpt-6-luna, placed the file in none of the 9 runs where they received a denial ([§6.3](https://arxiv.org/abs/2611.37500v1)).

The wording fix does not close the gap alone. In other runs, those two models copied the file directly and never met a denial. When the policy blocked every tool that could write to the folder, no file arrived in any of the 60 denial runs ([§6.3](https://arxiv.org/abs/2611.37500v1)).

## Key Takeaways

- Decide whether a rule forbids a method or an outcome before you write its message.
- Test a deny rule by watching what the agent tries next, including tools the rule does not name.
- Check the target itself after a denial, because the agent's reply can leave the denial out.

## Related

- [Caller-Actionable Error Steps in Tool Responses](../agent-design/caller-actionable-error-steps.md) — when naming the next step is the right call
- [Hooks and Lifecycle Events](../../tool-engineering/hooks-lifecycle-events.md) — where deny reasons are written
- [Risky Fallback Crosses an Action Boundary](risky-fallback-crosses-action-boundary.md) — a substitute call after a tool fault
- [Trusting Tool Error Messages as Implicit Authority](tool-error-implicit-authority.md) — hostile error text, where this page's hint is honest
