Skip to content

Runtime Verification

Check an observed computational execution trace against an explicit behavioral property with a monitor that returns a trace-relative verdict.

Core Idea

Runtime verification compares a computational system's observed execution trace with an explicit behavioral property. A monitor consumes relevant events or states and returns a trace-relative verdict: violation, satisfaction, or—under some finite-prefix semantics—an inconclusive result while later events could change the answer. It can work online as events arrive or offline on a recorded run. Its claim is about the run examined, not all possible runs.[1]

Detecting the result is the core method. A later alert, block or recovery action may use that verdict but is not necessary for runtime verification. Neither automatic monitor synthesis nor instrumentation woven into application code is universal.[1][2]

How would you explain it like I'm…

The Program Referee

A robot has a rule: always close the door after going through. A helper watches the robot as it moves and checks each step against the rule. If the robot forgets, the helper says, 'Rule broken!' But the helper only knows about what it actually saw, not every trip the robot might ever make.

Checking One Run Against Rules

Runtime verification is a way to check a computer program while it runs, or afterward using a record of what it did. First you write down a rule the program should follow, like 'never open a file without closing it.' Then you watch what the program actually does and record the steps. A checker called a monitor compares those steps to the rule and says whether the rule was followed or broken. This only tells you about that one run, not every way the program could ever run. Just watching numbers on a screen doesn't count unless you're checking them against a rule.

Checking an Execution Against a Property

Runtime verification is a way of checking whether one actual run of a computer system obeys a stated rule about its behavior. It has three parts: a property that says what counts as correct, an observation mechanism that records a trace of events or states, and a monitor that reads the trace and gives a verdict. The monitor can work live, step by step, or examine a saved trace later. Just watching a system isn't enough: a dashboard or log only counts if it's checked against a defined correctness property. And its result is about that execution only, unlike formal verification that tries to prove all possible executions are correct. Sometimes the verdict is 'inconclusive', because what happens next could still change the answer.

 

Runtime verification determines whether an observed execution of a computational system satisfies or violates a specified behavioral property. It combines a property specification, an observation mechanism that yields an event or state trace, and a monitor that interprets the trace and issues a verdict. Monitoring can be online, incrementally while the system runs, or offline over a recorded trace. Its conclusions concern the evidence from that execution only, not a proof about all possible executions. The concept is narrower than general observability: dashboards, log collectors, and performance counters do not count unless their observations are judged against a defined correctness property. It is also broader than any one implementation: temporal logics and generated automata are common, but no particular notation, automatic synthesis, bytecode instrumentation, or three-valued output is required. Some finite-prefix semantics use true, false, and inconclusive, since a continuation may still change the judgment. Responding to violations by logging, halting, or recovery is optional and belongs to a separate enforcement or control layer.

Scope of Application

In Havelund and Roșu's JPaX/X9 case, a K9 rover executive executed test plans while action-start and termination events were collected. Temporal properties associated with each plan were checked against that run's trace; seeded errors produced reported violations and witness traces. This was test-time diagnosis, not a proof of every rover execution.[3]

Farrell and colleagues generated ROSMonitoring checks from formalized requirements for a robotic debris-grasping system. They analyzed logs from simulation and a physical testbed offline. An intentionally low-grasp-force run violated force and grasping requirements, and the monitors reported the inconsistency. They did not demonstrate online recovery or an on-orbit deployment in that study.[2]

Clarity

“Runtime” means the evidence comes from an actual execution, not that the monitor must be simultaneous with it: a log can be checked afterward. “Satisfied” must be understood under a declared finite-trace semantics; a currently good prefix may remain inconclusive if a later event could violate a property. An observed violation can be decisive for that run, but an observed success is not a global safety guarantee.[1][2]

This is distinct from live Model Checking, which examines possible executions of a model, and from generic telemetry, which need not evaluate any stated correctness property. It is a narrower child of live prime Verification, not a synonym for its theorem-strength Formal Verification neighbor.[1]

Manages Complexity

The method reduces a large system to property → selected events → monitor state → verdict. K9 checks linked violating plans to concrete traces rather than relying on manual inspection of lengthy output. The robotics testbed checks selected message fields against requirements instead of treating all log data as undifferentiated telemetry.[3][2]

That simplification has a cost: the monitor can judge only the events projected into its trace and the requirement it was given. Missing events or an inadequate property can make a verdict misleading. Online observation also has resource and latency costs.[1][2]

Abstract Reasoning

Specify a monitorable property and the event vocabulary it needs. Capture an execution, evaluate its trace, then interpret the verdict under the chosen finite-prefix semantics. If the result is inconclusive, ask what continuation would settle it. If it is violated, locate the witness event and verify that the instrumented observation matches the intended requirement.[1]

Knowledge Transfer

Rover-plan tests and robotic-grasping logs differ in code, event sources and operational setting. Both instantiate the same trace-property-monitor-verdict structure, which transfers literally. Their particular temporal formulas and coverage do not. The proposed strict parent is live prime Verification, the general conformance-to-criterion relation; the computational execution trace and monitor keep this entry domain-specific.[3][2]

Relationships to Other Abstractions

Local relationship map for Runtime VerificationParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Runtime VerificationDOMAINPrime abstraction: Verification — is a kind ofVerificationPRIME

Current abstraction Runtime Verification Domain-specific

Parents (1) — outgoing typed relations

  • Runtime Verification is a kind of Verification Prime

    Runtime verification checks an observed system run against a stated correctness property and yields a trace-relative verdict.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Runtime Verification sits in a sparse region of the domain-specific corpus (76th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Generic Domain Practice Definitions (22 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Martin Leucker and Christian Schallhart, “A Brief Account of Runtime Verification”, original author-hosted preprint, published Journal of Logic and Algebraic Programming 78 (2009), 293–303; PDF pp. 2–9. registry ↩a ↩b ↩c ↩d ↩e ↩f

[2] Marie Farrell, Nikos Mavrakis, Angelo Ferrando, Clare Dixon and Yang Gao, “Formal Modelling and Runtime Verification of Autonomous Grasping for Active Debris Removal”, Frontiers in Robotics and AI 8 (2021), published 27 January 2022, §§5–7. registry ↩a ↩b ↩c ↩d ↩e ↩f

[3] Klaus Havelund and Grigore Roșu, “An Overview of the Runtime Verification Tool Java PathExplorer”, original author-hosted full paper (2003), PDF pp. 0–7 and 28–30. registry ↩a ↩b ↩c