POPL 2027
Sun 10 - Sat 16 January 2027 Mexico City, Mexico

Modern safety-critical systems are increasingly built from distributed blackbox components: cloud services, third-party APIs, autonomous systems, and AI agents whose source code or internal state may be unavailable for inspection. Ensuring their safety requires enforcing policies that constrain inter-component interactions, including multi-hop execution structure, data relationships, and concurrency. However, enforcing such expressive policies at runtime is challenging because the monitor needs to reason about distributed execution histories while being efficient and non-invasive. This creates a tension between policy expressiveness and practical deployability.

This tutorial presents Safe⟨T⟩, an automata-theoretic distributed runtime monitoring framework that bridges this gap. The framework includes a set of policy languages that get compiled into automaton-theoretic runtime monitors. We model distributed executions as structured words and use automata to incrementally summarize policy-relevant information: SafeTree uses nested words and visibly pushdown automata for hierarchical executions, SafeNom uses nominal words and automata for data-aware policies, and SafePar uses series-parallel nested words and series-parallel visibly pushdown automata for concurrent executions. We show how these theoretical foundations enable lightweight, distributed enforcement using the Istio service mesh and Envoy proxies, without modifying application code. Through worked examples and a hands-on demonstration, participants will learn the end-to-end pipeline from policy specification to automata-based enforcement. We conclude by examining a future extension of this technique to agentic AI systems.

The tutorial material is primarily based on our recent work and on landmark results in automata theory and runtime verification.