Approved Too Late: Verdict Staleness in LLM-Guarded Self-Adaptive Systems
Organizations: University of Cambridge Cambridge, United Kingdom · Maccabim-Re’ut High School Modi’in-Maccabim-Re’ut, Israel · The Open University of Israel Raanana, Israel
Abstract
A large language model (LLM) guardrail for a self-adaptive system (SAS) may issue an approval that is correct at check time but stale by actuation. This creates an Execute-stage time-of-check to time-of-use (TOCTOU) hazard. We study verdict freshness: whether a guardrail verdict remains valid when used. We distinguish three quantities that answer different questions: all-candidate verdict change under fixed-action replay, oracle-labeled approval expiry on recorded closed-loop trajectories, and judge-conditioned use-time invalidity. Across five reproducible SAS environments, all-candidate verdict-change rates span 5.3-48.4% at a common replay shift of eight simulator steps. We introduce the Freshness-Bounded Shield (FBS), which estimates each approval's validity horizon from its safe-side margin and recent feature volatility, without an explicit plant-dynamics model. Using fixed settings documented in the artifact, FBS reduces oracle-labeled approval-expiry rates from 3.4-24.7% to 0-1.8% at the same shift. A separate audit of four LLM judges finds nonzero judge-conditioned use-time invalidity in every approval stream. We formulate a freshness contract: every approval must be correct at check time and remain valid at use time.
Figures & tables
| Env | Domain | Gate feature | Admissible | |
|---|---|---|---|---|
| DeltaIoT | IoT network | packet_loss | 0.10 | |
| SimTune | Edge–cloud | rt_err | 2.0 | |
| m RUBiS | Self-healing | per-step utility | 27.0 | |
| Switch | Adaptive vision | utility | calib. | |
| SimDex | Job dispatch | delay_avg | 5.0 |
| Variant | DeltaIoT | SimTune | m RUBiS | Switch | SimDex |
|---|---|---|---|---|---|
| Ref.-open ( e_open ) | 24.0 | 24.7 | 13.8 | 6.8 | 3.4 |
| margin_only | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| vol_only | 23.9 | 24.0 | 8.9 | 6.7 | 0.6 |
| FBS | 0.0 | 0.0 | 1.8 | 0.0 | 0.6 |
| Method | Expiry (%) | Mean reward |
|---|---|---|
| Ref.-open ( e_open ) | 24.0 | |
| FBS | 0.0 | |
| margin_only | 0.0 | |
| vol_only | 23.9 | |
| e_deadline | 0.0 |
LLM Guardrails
Large language model guardrails detect or constrain harmful outputs, prompt attacks, and unsafe agent actions before they cause harm.
See all 194 papers