arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.17909cs.SEcs.LO
收藏

在完美和谐中:在基于行为的系统中协调因果性

In Perfect Harmony: Orchestrating Causality in Actor-Based Systems

NOVA University Lisbon(里斯本新大学);Instituto Superior Técnico(高等技术学院)

Vladyslav Mikytiv, Bernardo Toninho, Carla Ferreira

AI总结:

本文提出ACTORCHESTRA框架,用于Erlang系统的运行时验证,通过自动追踪多行为交互中的因果关系,提升系统可靠性。

摘要:

运行时验证作为一种轻量方法,已被用于提高受审查系统的保证性。执行运行时检查可实现动态监控和对异常行为的警报,从而提高可靠性和正确性。基于行为的系统对运行时验证提出了重大挑战。属性通常跨越多个行为者,具有复杂的因果依赖性,而非确定性消息交错可能模糊执行语义。此外,大多数现有监控工具都是为单进程行为设计的。本文提出了ACTORCHESTRA,一个用于Erlang的运行时验证框架,能够自动跟踪多行为交互中的因果性。该框架通过定向代码注入对符合OTP指南的Erlang系统进行仪器化。此方法建立了所需的 orchestration 基础设施,以在不需对目标系统进行手动修改的情况下跟踪行为者之间的因果关系。为了简化多行为者的属性指定,该框架提供WALTZ,一种规格语言,可自动将属性编译为可执行的Erlang监控器,与仪器化的系统集成。三个案例研究展示了ACTORCHESTRA在真实世界行为系统中检测复杂行为违规的有效性。性能评估量化了监控基础设施的运行时开销,并分析了增加的安全保证与执行成本之间的权衡。

英文摘要:

Runtime verification has gained popularity as a lightweight approach for increasing assurance in systems under scrutiny. Performing runtime checks enables dynamic monitoring and alerts for unexpected behavior, thereby improving reliability and correctness. Actor-based systems present significant challenges for runtime verification. Properties frequently span multiple actors with complex causal dependencies, while nondeterministic message interleavings can obscure execution semantics. Moreover, most existing monitoring tools are designed for single-process behavior. This paper presents ACTORCHESTRA, a runtime verification framework for Erlang that automatically tracks causality across multi-actor interactions. The framework instruments Erlang systems that comply with OTP guidelines via targeted code injection. This method establishes the orchestration infrastructure required to track causal relationships between actors without requiring manual modifications to the target system. To ease the specification of multi-actor properties, the framework provides WALTZ, a specification language that automatically compiles properties into executable Erlang monitors that integrate with the instrumented system. Three case studies demonstrate ACTORCHESTRA's effectiveness in detecting complex behavioral violations in real-world actor systems. A performance evaluation quantifies the runtime overhead of the monitoring infrastructure and analyzes the trade-offs between added safety guarantees and execution costs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑