BeClaude
Research2026-06-24

A Unified Framework for Runtime Verification and Model-Based Diagnosis in LOLA

Source: Arxiv CS.AI

arXiv:2606.23720v1 Announce Type: cross Abstract: We present an integrated framework that unifies runtime verification and model-based diagnosis within the stream specification language LOLA. By encoding system descriptions, component health states, and observations into a single stream-based...

A Unified Framework for Runtime Verification and Model-Based Diagnosis in LOLA

The paper introduces a novel integration of two traditionally separate software engineering disciplines—runtime verification and model-based diagnosis—within the LOLA stream specification language. Runtime verification monitors system execution against formal specifications in real time, while model-based diagnosis uses system models to identify faulty components when anomalies occur. The authors demonstrate that encoding system descriptions, component health states, and observations into a single stream-based framework allows both tasks to operate on a shared formal foundation.

This unification addresses a practical pain point: in current practice, verification and diagnosis often use different formalisms, tools, and data pipelines. A system might be monitored by one tool that flags violations, but diagnosing the root cause requires a separate analysis pipeline with different models. The LOLA framework eliminates this disconnect by treating both verification conditions and diagnostic reasoning as stream processing tasks over the same temporal data.

Why This Matters

The significance lies in three areas. First, operational efficiency improves because teams no longer maintain parallel verification and diagnostic systems. A single LOLA specification can simultaneously check whether a system satisfies safety properties and, if not, trace the failure to specific components. Second, the approach enables real-time diagnosis that was previously difficult to achieve. Traditional model-based diagnosis often requires offline computation, but stream-based processing in LOLA can flag both violations and likely root causes within the same latency bounds as verification alone. Third, the formal unification reduces the risk of inconsistencies between the verification model and the diagnostic model—a common source of false positives or missed failures in complex systems.

Implications for AI Practitioners

For AI engineers working with safety-critical or autonomous systems, this framework offers a practical path toward more robust runtime monitoring. Consider an autonomous vehicle perception stack: a LOLA specification could verify that object detection confidence remains above a threshold while simultaneously diagnosing which sensor modality (camera, LiDAR, radar) is degrading if confidence drops. This tight coupling between verification and diagnosis is particularly valuable for systems that must explain their failures in operation, not just after the fact.

The stream-based nature of LOLA also aligns well with modern AI pipelines that process temporal data—sensor streams, log sequences, or model inference outputs. Practitioners can now express both correctness conditions and diagnostic logic in the same declarative language, reducing the cognitive overhead of maintaining separate monitoring and debugging toolchains.

However, the approach assumes that system models are available and accurate. For AI systems where component behavior is learned rather than specified, encoding health states may require probabilistic or data-driven extensions to LOLA. The paper does not address how to derive such models automatically from training data, which remains an open challenge for practitioners.

Key Takeaways

  • The LOLA framework unifies runtime verification and model-based diagnosis in a single stream-processing language, eliminating the need for separate toolchains.
  • Real-time diagnostic reasoning becomes feasible, enabling systems to identify root causes of failures within the same latency as violation detection.
  • AI practitioners can apply this to autonomous systems and sensor fusion pipelines, where both correctness monitoring and failure explanation are critical.
  • The approach requires explicit system models, which may limit applicability to learned or black-box AI components without further extensions.
arxivpapers