TL;DR
The ENTRUST methodology bridges the gap between self-adaptive software and rigorous industry safety standards by automatically generating dynamic assurance cases at runtime. By combining design-time verification of the controller with runtime probabilistic model checking, it ensures that autonomous systems can safely adapt to unpredictable environments while continuously proving their own safety and compliance.
What Problem Does This Paper Address?
Modern software systems are increasingly autonomous, using closed-loop control (as shown in Figure 1) to adapt to environmental uncertainties, hardware failures, or shifting workloads. For instance, an unmanned underwater vehicle (UUV) might need to change its speed or switch between redundant sensors if one begins to fail.

However, in safety-critical domains like healthcare, aerospace, and finance, software cannot just be smart—it must be trustworthy. Regulators require an "assurance case": a structured, evidence-backed argument proving the system is safe for its intended application. Traditionally, assurance cases are static documents created before deployment. This creates a fundamental conflict: how do you certify a system whose architecture and parameters change dynamically at runtime?
Methods
The authors introduce ENTRUST (ENgineering of TRUstworthy Self-adaptive sofTware), a 7-stage end-to-end methodology that splits the assurance burden between design time and runtime:
- Design-Time Verification: Engineers create verifiable models of the controller using timed automata. Tools like UPPAAL mathematically prove that the controller itself is free of flaws (e.g., deadlocks) and that failsafe states are always reachable.
- The Trusted Virtual Machine: Instead of compiling the controller models into raw code (which would require additional, complex verification), ENTRUST deploys a verified Trusted Virtual Machine that directly interprets and executes the models at runtime.
- Runtime Probabilistic Model Checking: When the system encounters real-world changes, the controller updates its internal stochastic models (like Markov chains). It uses the PRISM verification engine to check all possible new configurations against non-functional requirements (like reliability, battery usage, or response time) on the fly.
- Dynamic Argument Synthesis: Once a safe and optimal configuration is selected, the system automatically plugs this new runtime evidence into a pre-defined Goal Structuring Notation (GSN) template, generating a living, updated assurance case.
Datasets
Because this paper focuses on software engineering methodology rather than machine learning, it evaluates its approach using two distinct, realistic system simulators developed by the authors:
- UUV System Simulator: A simulated autonomous underwater vehicle tasked with a data-gathering mission using a configurable array of three sensors, navigating trade-offs between sensor accuracy, energy consumption, and vehicle speed.
- Foreign Exchange (FX) Trading System: A service-based financial workflow (depicted in Figure 5) that dynamically selects between different third-party web service implementations to optimize reliability, price, and response time.

Key Insights and Ideas
- Assurance as a Living Process: Assurance for self-adaptive systems cannot be completed entirely at design time. It must be a continuous process where the system continuously challenges and updates its own safety arguments based on live operational data.
- Separation of Concerns: By verifying application-independent properties (like controller deadlock-freeness) at design time and application-dependent properties (like current sensor reliability) at runtime, the system keeps the computational overhead of formal verification manageable.
- Eliminating Code Generation Risks: Executing models directly via a Trusted Virtual Machine bypasses the traditional, error-prone step of code generation, significantly reducing the surface area that needs to be certified.
Key Results
The authors evaluated ENTRUST on a MacBook Pro (2.5 GHz Intel Core i7, 16 GB RAM) to measure correctness and efficiency:
- Correctness: In both the UUV and FX scenarios, the ENTRUST controller successfully identified optimal configurations during simulated sensor degradations and service failures, consistently generating valid, structured GSN safety arguments.
- Design-Time Efficiency: Verifying the generic controller properties took less than 12 minutes per property, an acceptable one-time cost during development.
- Runtime Efficiency: The overhead for runtime model checking was exceptionally low—under 1.5 seconds for the UUV system and under 2 seconds for the FX system. Per individual configuration, verification took less than 10ms (UUV) and 30ms (FX).
Limitations and Future Work
The primary limitation of the current toolset is scalability. Because model checking suffers from the "state-space explosion problem," the runtime verification overhead increases exponentially with the number of system configurations. The current implementation handles up to hundreds of alternative configurations smoothly, but larger systems will require more advanced verification techniques.
To address this, the authors point to future work integrating compositional, incremental, and lookahead verification methods, as well as expanding the runtime checks to cover complex functional requirements alongside non-functional ones.
Summary updated