Introduction
Hyperproperties represent a class of system specifications that describe relationships between multiple execution traces. Unlike standard trace properties that evaluate a single execution in isolation, hyperproperties are essential for defining critical system behaviors such as security policies (e.g., non-interference, observational determinism) and correctness criteria for concurrent systems (e.g., linearizability). However, the runtime monitoring of these properties has historically faced significant challenges due to the "monitorability gap."
The Challenge of Passive Monitoring
In traditional runtime verification, a monitor passively observes traces produced by a running system. The fundamental difficulty arises with properties involving quantifier alternation—statements such as "for every observed trace $\pi$, there exists a trace $\pi'$ such that..." If a monitor relies solely on observed traces, it cannot definitively prove the non-existence of a witness trace $\pi'$, as that trace might simply appear later in the system's execution. This limitation often renders complex asynchronous hyperproperties unmonitorable in practice.
Methodology: genHL and Active Construction
To address this, the authors introduce genHL (Hypernode Logic with Generator Functions). The core innovation is the shift from passive observation to active construction. The logic distinguishes between two types of quantifiers:
- Passive Quantifiers: These range over traces actually observed from the system under test.
- Active Quantifiers: These range over traces produced by generator functions.
Generator functions are integrated into the specification, allowing the monitor to create "ideal" or "reference" traces to serve as witnesses. For example, in a concurrent system, a generator can take a concurrent trace and produce all valid sequential linearizations, enabling the monitor to verify if a valid witness exists without waiting for the system to produce it.
The Monitoring Algorithm
The proposed monitoring framework utilizes an incremental, tree-based algorithm that decomposes complex formulas into a hierarchy of sub-monitors. To handle traces over infinite data domains (such as arbitrary integers or timestamps), the system employs Symbolic Transducers and Symbolic Register Automata. This architecture allows the monitor to process events as they arrive, updating the truth value of the property on the fly.
Experimental Evaluation
The effectiveness of the genHL approach was evaluated across three distinct scenarios:
- Robot Grid World: In a synthetic $10 \times 10$ grid environment, the monitor tested security properties like Observational Determinism and Initial-State Opacity. Active monitoring detected violations after observing only 1 or 2 traces, whereas passive monitoring required hundreds of traces or failed entirely.
- Michael-Scott Queue: The tool was used to monitor the linearizability of this well-known concurrent data structure.
- Scal Benchmark Suite: Using traces from existing concurrent system benchmarks, the monitor verified linearizability and checked sequential properties (such as queue size bounds). For a trace containing 1,000 "push" operations, the monitor completed verification in approximately 22 seconds.
Key Insights and Discussion
The study highlights that the monitor's performance can be significantly optimized by "tailoring" generators—for instance, configuring a generator to return a single specific witness rather than an exhaustive set. This flexibility allows for a trade-off between completeness and computational efficiency.
However, the approach remains dependent on the quality and complexity of user-provided generator functions. Manual definition of these functions can be labor-intensive, and overly complex generators may lead to performance bottlenecks. Furthermore, the monitor faces a potential combinatorial explosion when dealing with deeply nested quantifiers or high trace volumes.
Conclusion
By enabling monitors to actively construct reference traces, this research provides a path forward for monitoring complex asynchronous hyperproperties that were previously considered unmonitorable. Future work aims to automate the synthesis of generator functions from high-level models, further reducing the manual effort required for sophisticated runtime verification.
Summary updated