Manuscript Offprint

arXiv:2609.05692

Regret Dominates Surprise: Design-Time Requirements Engineering for Agentic-AI Safety

Nuwayyir Almohammadi, Rami Bahsoon, Tao Chen

Nuwayyir Almohammadi

School of Computer Science

University of Birmingham

Birmingham, United Kingdom

Nra406@student.bham.ac.uk

Rami Bahsoon

School of Computer Science

University of Birmingham

Birmingham, United Kingdom

r.bahsoon@bham.ac.uk

Tao Chen

School of Computer Science

University of Birmingham

Birmingham, United Kingdom

t.chen@bham.ac.uk

Abstract—Requirements Engineers for Agentic-AI domains face challenges in evaluating and verifying the modeling, elaboration, and operationalization of safe autonomy in these systems. Mainstream frameworks, such as Goal-Oriented Requirements Engineering (GORE), lack mechanisms to systematically address these challenges in the face of epistemic uncertainty.

We contribute to an approach that builds on GORE to model and simulate safe autonomy in agentic-AI systems. We introduce a novel Regret-Dominance Mechanism(MS-RGR) to assist requirements engineers in operationalising for safer autonomy. MS-RGR uses two signals: epistemic surprise (novelty detection) and cognitive regret (evaluative risk) to model and simulate, the problem we coin as the trilemma problem for safe autonomy: should the agent operate in routine autonomy, undergo reflective reasoning or escalate to human?

We instantiate the MS-RGR in two workflow domains: elderly-care monitoring and autonomous driving decision sequences. A domain-agnostic 100-seed stochastic simulation with structural ablations shows MS-RGR reduces silent-failure incidence to near-zero and detects risk roughly 17.5×17.5\times faster than a sensor-only baseline, while remaining formally traceable via LTL safety properties. A retrospective proxy instantiation, applying the DRI gate post-hoc over recorded execution traces from 208 AGENTHARM scenarios across seven LLMs, shows the gate meaningfully improves harmful-task refusal only for the two models with strong baseline safety behavior (>80% pre-gate refusal), e.g. 84.1%→90.9% for one model, while leaving the remaining five unaffected, indicating MS-RGR amplifies rather than substitutes for model-level safety training. We discuss this and other threats to validity, positioning MS-RGR as initial feasibility evidence for design-time, evaluative safety constraints in agentic-AI requirements engineering.

Index Terms—Goal-Oriented Requirements Engineering (GORE), Agentic-AI Systems, MS-RGR Framework, Multi-signal Gating, Obstacle Resolution, Cognitive Regret, Epistemic Uncertainty, Safety Constraints, Regret-Dominance, Goal Elaboration.

I. INTRODUCTION

Agentic-AI systems are increasingly being deployed as autonomous decision-makers in high-stakes domains such as healthcare, banking, autonomous driving, and child-facing applications, where misbehavior or unsafe actions can cause real-world harm without immediate human oversight [1], [2]. The shift towards Agentic-AI autonomy challenges requirements modeling, elaboration, operationalization, and design-time assumptions, to account for the ‘unknown unknowns’ encountered in agentic environments and the design for safe autonomy, covering: routine autonomy with assured safety; undergoing reflective reasoning for safer autonomy; or overriding autonomy with human-in-the-loop interactive support for safety. To address this problem, we propose a multi-signal mechanism that leverages GORE to capture and operationalize the interplay between surprise (epistemic mismatch) [3] and regret (evaluative risk) in the modeling for safe autonomy in agentic-AI systems.

Consider a medical-monitoring agent trained on a standard hospital data that encounters a rare, non-harmful cardiac irregularity. Without an explicit “unknown” category, it misclassifies the condition as cardiac arrest. Unlike traditional diagnostic AI systems, which produce a classification for a clinician to act upon, Agentic-AI systems possess autonomous executive authority to independently plan and execute a critical response [4], and administer a high-voltage shock [1] without immediate human oversight. The functional requirement is satisfied; the evaluative question—“would notifying a human caregiver have been safer?”—was never asked. This confident failure [1] arises not from probabilistic uncertainty about outcomes but from the absence of a mechanism to compare the safety of available tactics at the moment of decision. Although recent research has explored “regret” in LLM agents [5] and the role of “surprise” as a meta-cognitive signal for identifying model incompleteness [3], [6], these approaches remain largely post-hoc or runtime-focused which may prove insufficient for safety-critical contexts. Both tend to operate after the decision cycle has begun, offering limited protection when interventions are instantaneous and irreversible. More critically, relying on such signals risks leaving boundary decisions, such as when to override agent autonomy and escalate to a human, to emergent runtime heuristics rather than verifiable engineering constraints, with no clear guarantee that escalation occurs before harm is done. This work argues that Requirements Engineering plays a vital role in proactively modeling verifiable safety constraints that mitigate the risk of confident failures characteristic of the agentic era [1]. We operationalize regret and surprise at design time, and provide feasibility evidence through stochastic simulation and proxy instantiation against AGENTHARM benchmark. AGENTHARM is a set of 208 agentic evaluation scenarios spanning eight harm categories, where harmful intent is embedded within tool-use framing rather than stated explicitly, making it a suitable stress-test for design-time safety gating mechanisms such as MS-RGR for the said purpose.

Following Meta-cognitive Explanation-Based (MEB) theory [7], we frame surprise as a signal of explanatory difficulty [7], [6] that identifies mismatches between runtime outcomes and the agent's internal model. This multi-signal approach enables a transition from routine execution to a regret-aware evaluation phase [3], where design-time constraints govern the selection of resolution tactics. By anchoring these cognitive signals in a GORE framework, we provide a structured method to define safety thresholds that remain traceable to stakeholder requirements.

Contributions. We contribute to an approach that requirements engineers can leverage to model and simulate the trilemma problem of safe autonomy in agentic-AI systems, considering: routine autonomy with guaranteed safety; undergoing reflective reasoning for safer and "cautioned" autonomy; or overriding autonomy with human-in-the-loop interactivity for safety. We build on van Lamsweerde and Letyer's goal-obstacle modeling and resolution strategies [8] and MAPE-K architecture of Cailliau and van Lamsweerde [9] as engineering substrate. We introduce a novel regret-dominance mechanism that complements safety probabilistic satisfaction metrics with ordinal and design-time thresholds to address the trilemma. The mechanism makes novel use of cognitive regret as a design-time safety signal when handling GORE modeling and obstacles resolution. It shifts evaluative safety decisions from aftermath runtime heuristics to a priori verifiable safety thresholds specified, simulated and verified before deployment. Grounded in Simon's Satisficing principle [10], the framework treats mathematically optimal execution as a system failure when it provokes excessive user regret, enforcing structured halts within predefined engineering bounds. Specifically, we make the following interrelated major contributions to Requirements Engineering of Agentic-AI Safety:

  • A Multi-Signal Gating Mechanism (Regret-Dominance Gate): We design a novel dynamic traffic-control mechanism that monitors autonomous runtime behavior by consolidating two unique trace metrics: the Epistemic Surprise Signal and the Evaluative Regret. The resulting Regret-Dominance Gate adjudicates the autonomy trilemma across three cognitive tiers:
  • System 1 (Routine Autonomy): Safe automated execution under low regret.

  • System 2 (Reflective Reasoning): Regret-aware adjustment applying Loss Aversion [11], [12], [13] when DRI ≥τ\geq \tau.

  • Human Escalation: Agent replaced by human when DRI ≥τcrit\geq \tau_{crit}.

  • Pre-Modeled Design-Time Resolution Tactics: We operationalize runtime adaptation by enabling requirements engineers to embed automated, deterministic resolution tactics directly into the goal model based on risk severity. Moderate risks trigger goal weakening via the Back-

off tactic, while critical risks trigger Goal Sacrificing, dropping the functional goal entirely to initiate an emergency escalation that replaces the software agent with a human caregiver. Crucially, these adaptations represent explicit design-time RE boundary decisions rather than autonomous runtime model choices, thereby preserving a safe, cooperative relationship with the user.

Anonymised replication package available here.

The primary users of MS-RGR are requirements engineers evaluating safety requirements and their constraints before deployment. The Regret-Dominance Gate governs agentic behavior under epistemic uncertainty by constraining tactic selection within design-time safety thresholds; human users benefit indirectly through regret-aware, evaluatively safeguarded agentic behavior under epistemic uncertainty. MS-RGR reduces silent-failure to near-zero vs. 96% sensor-only baseline and detects risk 17.5×17.5 \times faster (Section VII).

References (44)