Source-linked AI summary
Runtime Semantic Discovery for Evolving Action Alphabets
Pietro Bernabei, Rosario Pugliese
TL;DR
Evolving systems can change observable action alphabets while preserving functional intent, leaving fixed-alphabet monitors misaligned. The paper compares local trace-neighbor contexts to infer candidate correspondences across alphabets, and establishes a strict hierarchy of k-neighbor equivalences. These correspondences can support monitor and specification adaptation in selected evolution scenarios, but do not fully characterize behavioral preservation.
Problem
Runtime verification’s fixed-alphabet assumption can leave monitors and specifications misaligned when systems evolve, while manually revising them or rebuilding models may be costly or slow.
Source: §1 · p. 1Method
Results
Takeaways & Limitations
Neighbor preservation supplies local evidence for candidate action correspondences without reconstructing a global behavioral model.
Source: §7 · p. 9Neighbor equivalence is strictly weaker than trace equivalence; it is most applicable to renaming and controlled splitting, while fusing generally needs additional semantic information.
Source: §7 · p. 9
Abstract
from arXiv · showhide
Runtime Verification typically assumes a fixed alphabet of observable actions. This assumption becomes fragile in evolving software systems, where updates, reconfigurations, or architectural changes may rename, split, or fuse actions while preserving the system's high-level intent. In these cases, previously valid monitors and specifications may become misaligned with the running system. In this paper, we study runtime semantic discovery, namely the problem of identifying whether newly observed actions play the same operational role as previously known ones, without reconstructing a global behavioral model. To this end, we propose a local and runtime-computable notion of action similarity based on the neighbor contexts in which actions occur within execution traces. We define a family of k-neighbor equivalences and use them to compare systems whose observable alphabets differ. Our approach is intentionally lightweight: it does not aim to fully characterize behavioral preservation, but rather to identify candidate semantic correspondences between actions in evolving systems. We discuss the expressive power and limitations of neighbor-based equivalence and show how inferred correspondences can support the adaptation of runtime monitors and specifications under selected classes of alphabet evolution.
1 Introduction
Evolving systems can change their observable actions while preserving functional intent, leaving fixed-alphabet monitors and specifications misaligned. The paper proposes local neighbor-based equivalences to identify candidate action correspondences and support adaptation without claiming full behavioral preservation.
1 Introduction
- Fixed-alphabet monitors can become obsolete when updates, reconfigurations, or architectural changes alter observable actions despite unchanged functional intent.Frequent adaptation with limited human supervision makes manually revising specifications or rebuilding models costly or slow.Source: §1 · p. 1
- The approach infers possible semantic continuity from actions’ local trace contexts, then defines a hierarchy of k-neighbor equivalences as a runtime-computable comparison criterion.It is intended as a practical structural invariant, not a replacement for trace equivalence or bisimulation.Source: §1 · p. 1
- The framework targets alphabet evolution such as action renaming, splitting, and fusing, using neighbor preservation as evidence of a shared monitoring-relevant role.The aim is candidate correspondence, not full semantic equivalence.Source: §1 · p. 1
- The paper’s contributions include local action similarity generalized to k-neighbor equivalence and an abstraction framework for comparing systems with different observable alphabets.The framework captures renaming, splitting, fusing, and more general many-to-many mappings.Source: §1 · p. 2
- Neighbor-based equivalence is framed as a source of candidate mappings that can support monitor and specification adaptation, rather than a complete characterization of behavioral preservation.The paper aims to isolate what can be inferred incrementally and online from observed execution context.Source: §1 · p. 2
2 Motivating Example
A system update can replace an observable action without changing the step’s operational role, so an existing monitor may no longer recognize it. The example motivates using local trace context to identify plausible correspondences without reconstructing a full behavioral model.
2 Motivating Example
- The Secure Information Retrieval example monitors that messages are encrypted before being sent, with Encryptor marking the encryption step.After component replacement, the system may expose CryptoEngine instead, requiring the specification’s action to change.Source: §2 · p. 2
- Changing Encryptor to CryptoEngine can leave the original monitor unable to recognize the action associated with the same functional intent.The example updates the LTL requirement by substituting CryptoEngine for Encryptor.Source: §2 · p. 2
- The motivating question is whether runtime monitoring can identify same-role actions across one-to-many or many-to-one changes without rebuilding a full behavioral model.The proposed intuition is to compare local contexts in execution traces.Source: §2 · p. 2
3 Related Work
Related work addresses reuse of verification effort, monitor updates, behavioral comparison, refinement, and model learning, but the paper focuses on inferring candidate action correspondences online from local trace context. Its runtime criterion is positioned as complementary to approaches that depend on source changes, predefined mappings, or full models.
3.1 Incremental and adaptive verification
- Incremental verification reuses prior verification effort after system changes, whereas this work assumes only runtime action streams and uses local trace regularities rather than source changes or global models.The compared incremental approaches may rely on modular encapsulation, anticipated changes, or syntax-driven comparison [3] [17].Source: §3.1 · p. 2
3.2 Runtime verification under variation
- Existing runtime-verification approaches address richer action domains or externally specified updates, but do not infer correspondences between evolving action labels directly from runtime observations.Register-automata approaches still assume a known monitoring structure [12], while adaptive updates typically assume the transformation is known.Source: §3.2 · pp. 2–3
3.3 Behavioural equivalences and action refinement
- Global behavioral equivalences compare overall behavior, whereas action refinement is typically top-down and design-time; this work instead reconstructs candidate action correspondences at runtime from observed trace contexts rather than predefined relations.Source: §3.3 · p. 3
3.4 Process mining and evolution-aware monitoring
- Process mining reconstructs models from logs, whereas this approach restricts itself to local context that can be extracted incrementally and used online.That restriction sacrifices expressive power but better fits runtime-verification constraints; version-transition methods instead assume a suitable new specification is available.Source: §3.4 · p. 3
- The paper positions its contribution as an orthogonal, runtime-computable criterion for relating actions across alphabet evolution to support monitoring continuity.It addresses the earlier problem of recovering plausible action-vocabulary correspondences when no new specification is yet available.Source: §3.4 · p. 3
4 Methodology
The method compares actions through their preceding and following trace contexts rather than reconstructing complete behaviours or a global model. It targets candidate correspondences across evolving alphabets, including renaming, splitting, fusing, refinement, and multi-mapping.
4 Methodology
- The method compares preceding and following trace contexts to identify plausible monitoring-relevant correspondences without reconstructing a global model.Similar contexts make an updated action a plausible, not proven, match for a previously known action.Source: §4 · p. 4
- The criterion supplies evidence for candidate correspondences, not proof of strong semantic sameness or full behavioural equivalence.It can be applied incrementally to observed traces without knowing the transformation that produced the updated system.Source: §4 · p. 4
- The framework targets renaming, replacement by alternatives (splitting), abstraction of multiple actions into one (fusing), sequence refinement, and multi-mapping.These are conceptual evolution classes, not correspondences assumed to be known at runtime.Source: §4 · p. 4
- The framework formalizes trace-neighbour contexts and k-neighbour contexts to compare systems with equal or partially different observable alphabets.The evolution classes identify intended scenarios; they do not themselves define action correspondences.Source: §4 · p. 4
5 Neighbour Equivalence
Section 5 defines action equivalence through local trace contexts, extending the comparison to wider windows and systems with different alphabets to identify candidate correspondences rather than establish full behavioural equivalence. The example systems S0 and S3 are neighbour equivalent modulo μV, a comparison that can guide monitoring adaptation.
5 Neighbour Equivalence
- Over finite LTS traces, each action is characterized by its immediate predecessor and successor contexts, with the representation retaining each action’s own context set.The action-to-context association matters because collapsing contexts into an unlabelled union would lose the central action’s identity.Source: §5 · p. 5
- Trace equivalence implies neighbour equivalence, but not conversely: immediate contexts can hide repeated-block lengths and long-range dependencies.The examples show that systems can have the same neighbour sets but different trace languages.Source: §5 · p. 5
- The k-neighbour equivalences form a strict hierarchy: agreement at k+1 implies agreement at k, while the reverse can fail at every level.Projection from wider windows yields narrower contexts; extending the repeated-block construction witnesses strictness.Source: §5 · p. 6
- For differing alphabets, maximal subtraces over unshared actions become atomic lifted tokens before abstraction, masking internal sequence length while preserving local structure.This supports sequence refinement, such as the example where action c is replaced by sequence ef.Source: §5 · pp. 6–7
- Equivalence modulo the abstraction requires matching abstract boundary contexts for unshared parts and matching local abstract contexts for shared actions.The two conditions compare systems while ignoring differences internal to unshared fragments.Source: §5 · p. 7
- Because both conditions hold, the example systems S0 and S3 are neighbour equivalent modulo μV.Source: §5 · p. 8
- Neighbour equivalence modulo μV covers renaming, splitting, fusing, and many-to-many correspondences, identifying locally functionally similar actions under the chosen abstraction.When behaviour is refined while functionality is maintained, refined actions may share a monitoring-relevant role; inferred correspondences can guide monitoring adaptation and continuity.Source: §5 · p. 8
6 Monitor and Specification Adaptation
The adaptation patterns use neighbour-based correspondences to reinterpret stable monitoring requirements over an evolved action alphabet. They provide direct substitutions for selected changes and more cautious, context-dependent guidance for complex mappings.
6 Monitor and Specification Adaptation
- For pure renaming, replacing the old action with its correctly corresponding new action preserves its intended monitoring role.This claim assumes the alphabet change is observationally a pure renaming.Source: §6 · p. 8
- For splitting, a disjunction of new actions can substitute for the old action when they are alternative observable realizations of the same step.The heuristic is suited to actions monitored as witnesses of a system step; soundness depends on the formula’s occurrences of the old action.Source: §6 · p. 8
- Sequence adaptation expands an old action using LTL Next, but is restricted to cases where that action witnesses an abstract step.The passage cautions that this substitution is not strictly sound for arbitrary LTL formulas.Source: §6 · p. 8
- Fusing adaptation uses neighbour contexts to distinguish which old action a fused action represents, assuming the old actions had pairwise disjoint local contexts.It is a context-sensitive heuristic, not a generally sound translation for arbitrary LTL formulas.Source: §6 · p. 9
- Although the framework supports structural M-to-N mappings, a general LTL rule for them is non-trivial, so complex adaptations can be composed or guide manual rewriting.For cases where direct syntactic composition is not straightforward, neighbour compatibility narrows the plausible correspondences.Source: §6 · p. 9
- The framework is most naturally suited to direct translations such as renaming, splitting, and selected sequence expansions, while serving as a diagnostic guide for fusing and multi-mapping.The aim is to make manual updates more systematic and evidence-based, not to provide rigid fully automated translation for arbitrary alphabet changes.Source: §6 · pp. 8–9
7 Conclusions and Future Work
The conclusion presents neighbour equivalence as a lightweight way to derive candidate action correspondences from trace contexts and support monitor adaptation. It also marks the method’s limits and identifies extensions and evaluation as future work.
7 Conclusions and Future Work
- Neighbour contexts provide local structural evidence for comparing systems with equal or partially different alphabets without reconstructing a global behavioural model.The approach includes neighbour equivalence and its k-neighbour generalisation, compared through abstraction.Source: §7 · p. 9
- Neighbour equivalence is strictly weaker than trace equivalence and supports candidate correspondences, while fusing generally needs semantic information beyond local neighbour preservation.The conclusion identifies renaming and controlled splitting as more natural applications.Source: §7 · p. 9
- The framework contributes trace-computable local equivalences and a runtime-friendly way to narrow possible monitor and specification adaptations as action vocabularies change.The paper relates the local equivalences precisely to stronger behavioural notions such as trace equivalence.Source: §7 · p. 9
- Future work includes adding frequencies or probabilistic profiles, identifying fragments with provably sound adaptation rules, and empirically evaluating cost and correspondence accuracy under imperfect traces.The paper reports that framework implementation has begun.Source: §7 · p. 9