arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.26306

Approved Too Late: Verdict Staleness in LLM-Guarded Self-Adaptive Systems

Ilai Shraga, Roei Eshel, Lior Gorelik

Ilai Shraga

University of Cambridge

Cambridge, United Kingdom

is628@cam.ac.uk

Roei Eshel

Maccabim-Re'ut High School

Modi'in-Maccabim-Re'ut, Israel

roeieshel@gmail.com

Lior Gorelik

The Open University of Israel

Raanana, Israel

golior32@365.openu.ac.il

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.

Index Terms—self-adaptive systems, large language model guardrails, verdict freshness, time-of-check to time-of-use (TOC-TOU), runtime assurance

I. INTRODUCTION

An Execute-stage guardrail can return a correct verdict on the context–action pair it checks and still authorize an action that is inadmissible when applied. In a self-adaptive system (SAS), a controller observes the plant, proposes an action, and relies on a large language model (LLM) guardrail to approve or reject it before actuation. The plant continues to evolve while the verdict is computed and delivered. By actuation, the checked context may no longer describe the current plant state, and the action may no longer be admissible. This creates an assurance gap between check-time correctness and use-time validity.

We frame this gap as an Execute-stage TOCTOU-style hazard [1], [2] within the MAPE-K (Monitor-Analyze-Plan-Execute over a shared Knowledge base) loop [3], [4] (Fig. 1). Ordinary closed-loop evolution can invalidate an already-issued approval even without an adversary. Approval latency sets the duration of the exposure window, while plant and predicate dynamics determine whether validity is lost. The central question is not only whether the guardrail returns a correct verdict for context xt=(ot,ht)x_t = (o_t, h_t) and action ata_t at check time, but whether that verdict remains valid for (xt+K,at)(x_{t+K}, a_t) at actuation. We call validity at use time verdict freshness and its loss verdict staleness. Its validity therefore depends on when it is used.

The hazard extends beyond LLMs to any delayed Execute-stage approver whose verdict is grounded in an evolving plant state (Sec. V). LLM guardrails motivate our study because they insert a model-serving step between planning and actuation, making approval latency part of the control-loop timing. We evaluate the hazard using fixed-action replay over fixed-seed trajectories from five reproducible SAS environments spanning IoT network adaptation, simulator tuning for edge-cloud resource management, architectural self-healing, adaptive object detection, and backend job dispatch: DELTAIOT [5], SIMTUNE [6], mRUBIS [7], SWITCH [8], and SIMDEX [9] (Secs. III and III-F).

We make three contributions. (i) Concept: we identify and formalize an Execute-stage TOCTOU-style hazard in SASs: a semantic approval grounded in an observed plant state can lose validity before actuation under endogenous closed-loop evolution. (ii) Measurement: we hold each proposed action fixed and re-evaluate its admissibility against later recorded contexts, distinguishing all-candidate verdict change, oracle-labeled approval expiry on recorded closed-loop trajectories, and judge-conditioned use-time invalidity. All-candidate verdict change is nonzero in all five environments, and a descriptive audit of four LLM judges finds nonzero judge-conditioned use-time invalidity in every audited approval stream. (iii) Mitigation: we formulate a freshness contract and instantiate it with FBS, a lightweight post-verdict gate that estimates each approval's validity horizon from its safe-side margin and recent feature volatility without an explicit plant-dynamics model. At the common replay shift K=8, under fixed settings documented in the artifact, FBS reduces oracle-labeled approval-expiry rates in all five environments. In the audited DELTAIOT cell, it reaches 0% expiry while matching the reference-open (e_open) baseline's reported mean reward.

References (21)