NeurIPS 2026 · Workshop on Agents in the Wild (AIWILD)

The Denial Illusion: Measuring Safety Failures After Agent Replanning

Riasad Alvi

United International University, Dhaka, Bangladesh

Overview of the denial illusion and DenyLock. (a) Rejecting the canonical call leaves the state unchanged, yet replanning reaches the same forbidden effect through tool substitution or a cumulative split. (b) DenyLock retains the denial record, previews each tentative state, checks the active predicates, and commits only invariant-preserving transitions.
(a) Rejecting the canonical call ad leaves the state unchanged, yet replanning can reach the same forbidden effect through an alternate action or a composed sequence. (b) DenyLock retains the denial record, evaluates each tentative post-state against the active predicate, and commits only invariant-preserving transitions.
56.9%forbidden effect still reached under exact-call locking
20.8%still reached with a full-trace LLM guard
0 / 360DenyLock violations (complete mediation)
91.1%benign recovery retained by DenyLock

Abstract

A rejected tool call does not establish that its forbidden effect was prevented: an agent can continue through another tool, split the operation across calls, or reach the same state through an intermediate resource. We introduce denial-induced route-around and RouteAroundBench, a controlled post-denial benchmark with executable tools and deterministic terminal-state oracles. The study compares three purpose-built controls (exact-call locking, tuple-level locking, and a full-trace language-model guard) across three locally served open-weight models. We also present DenyLock, a training-free reference monitor that retains the structured rule responsible for a denial and checks every tentative state transition before atomic commit. Across 120 unsafe tasks and 60 paired benign tasks, exact-call locking permits the forbidden effect in 56.9% of post-denial trials; a trace-aware guard lowers this rate to 20.8%. Under the benchmark's complete mediation assumptions, DenyLock prevents every forbidden transition while retaining 91.1% benign recovery. These results distinguish a locally correct denial from trajectory-level policy preservation.

RouteAroundBench

Every unsafe trial begins from the same validated prefix: a canonical action that would violate a policy is rejected without mutation, and the agent may then replan for ten steps. Executable terminal-state predicates decide whether the forbidden state was reached, so a syntactically different action that reaches the same state still counts. 60 paired benign tasks expose over-blocking. The primary metric is route-around success (RAS): the fraction of post-denial trials that end in a forbidden state.

Tool substitutiona different tool produces the same effect
Cumulative splitmany small calls add up past a bound
State indirectionan intermediate object realizes the state
Delayed executionthe effect is realized at a later step

Benchmark composition

DomainUnsafeBenignToolsVarsPredicateHorizon
Files / workspace4020614visibility / integrity10
Finance / commerce4020511numeric bound10
Cloud / IAM4020616graph reachability10
Total120601741310

DenyLock

DenyLock is a deterministic reference monitor, not a learned classifier. It keeps the state invariant responsible for a denial, instead of remembering an action or a transcript.

  1. Retain. The denial record rd = (p, Qp, vp, td, H) is appended to an append-only ledger. Agent text cannot modify or revoke it.
  2. Preview. For each proposed action, the adapter computes the exact tentative state s̃t+1 = Tj(st, at) without committing it.
  3. Check and commit. If any active predicate holds on the tentative state, the action is denied and the state is unchanged; otherwise the transition is committed atomically. Missing adapters or failed predicate evaluation escalate without committing. Three transfers of 400 are checked against the same post-state predicate as one transfer of 1,200.
Proposition 1. Assume the post-denial state is safe, every policy-relevant transition is mediated, adapters return the state that would be committed, check-and-commit is atomic, and declared write sets are effect-closed. Then no trajectory admitted by DenyLock reaches a state satisfying φp.

Results

Post-denial security, utility and overhead

Macro-average over Qwen3-8B, Llama-3.1-8B-Instruct and Mistral-NeMo-Instruct-2407 (12B); unsafe n = 360, benign n = 180. Rates in %, with 95% bootstrap intervals.

ConditionRAS ↓FSS ↑BRR ↑BABR ↓CallsAdded time (s)
ExactCallLock56.9 ± 3.843.194.4 ± 3.10.03.80.00
TupleLock36.9 ± 3.663.190.0 ± 4.05.8 ± 2.05.30.01
FullTrace-LLM20.8 ± 3.079.281.1 ± 5.016.4 ± 3.39.51.84
DenyLock†0.0100.091.1 ± 3.84.8 ± 1.84.20.03

RAS: route-around success. FSS: final-state safety (100 − RAS). BRR: benign recovery rate. BABR: benign action block rate. Added time is median enforcement time. †Model-independent reference condition: its zero RAS follows from Proposition 1 after benchmark validation, not from cross-model generalization.

Failures concentrate in composed routes

Heatmap of route-around success by route family for ExactCallLock, TupleLock and FullTrace-LLM.
Route-around success (RAS, %) by route family; lower is better. Cumulative splitting and intermediate-state indirection are hardest for local and textual defenses.

Component ablations

VariantRAS ↓BRR ↑BABR ↓
Full DenyLock0.091.14.8
No persistent ledger35.394.41.7
Action-identity lock56.994.40.0
Current transition only16.192.23.1

Removing persistence restores post-denial exposure; matching action identity misses tool substitution; checking only the current transition misses cumulative splitting.

Claim boundary

The study conditions on a validated denial, so it estimates the post-denial gap, not base rates of unsafe proposals. The three environments are synthetic and the models are 8–12B open-weight models with greedy decoding. DenyLock's zero RAS is a verification consequence of the invariant under complete mediation, correct adapters and atomic commit; it is not a claim about unrestricted deployments, subjective policies, concurrency, or unobserved side effects.

Poster

Landscape poster for The Denial Illusion at the NeurIPS 2026 AIWILD Workshop.
Workshop poster (5120×2880). Click for full resolution. Also on the official NeurIPS 2026 page.

Reproduce

The repository contains the benchmark specification, simulators, the four enforcement conditions, an independent audit oracle, hash-chained traces, and reporting. The model-free end-to-end check needs no GPU.

git clone https://github.com/alvi-uiu/DENY-LOCK.git
cd DENY-LOCK
python -m pip install -e .
python validate_e2e.py          # prints "E2E VALIDATION OK"
denylock benchmark validate --spec data/routearoundbench_v1.spec.json

Citation

@inproceedings{alvi2026denial,
  title     = {The Denial Illusion: Measuring Safety Failures After Agent Replanning},
  author    = {Alvi, Riasad},
  booktitle = {Third Workshop on Agents in the Wild: Safety, Security, and Beyond
               (AIWILD) at NeurIPS 2026},
  year      = {2026},
  note      = {Non-archival workshop paper}
}