Manuscript Offprint

arXiv:2610.27971

Execution-Time Validation of Context-Carrying Action Intents in Industrial Cyber-Physical Systems

Luca D'Agati, Giuseppe Tricomi, Fabio Orazio Mirto, Giovanni Merlino

Abstract

In industrial cells, commands from learned policies, operators and schedulers reach the controller after inference, confirmation and transport, and the plant may have changed meanwhile, for instance by an operator pause. Such a command is released, or takes effect, when it is no longer correct. We call this the execution gap and ask which component should make the last check, and against which version of which state. The Action Intent Schema (AIS) is a contract in which a producer states how long its decision stays valid and what it assumes. The runtime XAIR rechecks each intent before release, can commit its authorization atomically in the context store, and can release it as a version-conditional command, which the controller executes only if its version of the state is unchanged. In controlled ablations with declared ground truth on emulated and physical cells, OpenPLC and ARM and RISC-V boards, a check on a replica always left an unprotected interval: a pause written from a few to over 100 ms after submission escaped it. Only a check in the scan of a software controller, either a controller-local interlock or the version-conditional command, closed the interval for the state that controller owns; only the version-conditional command also refused commands after a pause that had been undone. A global version revoked up to every valid command under unrelated updates. Versions scoped to what the intent reads, or to the truth of its predicates, did not; with continuous signals on the variables the intent reads, only the latter avoided false revocations, though it burdens the store as predicates accumulate. On one embedded-board core, XAIR validated 148–168 intents/s.

Keywords: execution-time validation, action intent, edge computing, programmable logic controllers, OPC UA, cyber-physical systems

*Corresponding author.

Email address: ldagati@unime.it (Luca D'Agati a^{a})

Preprint submitted to Journal of Systems Architecture

October 21, 2026

Abbreviations

Abbr.MeaningAbbr.Meaning
AISAction Intent SchemaOPAOpen Policy Agent
CAScompare-and-setOPC UAOpen Platform Communications Unified Architecture
CPScyber-physical systemsPLCprogrammable logic controller
E2Eend-to-endROS 2Robot Operating System 2
FPRfalse-positive revocation rateRQresearch question
LANlocal area networkRSSresident set size
LLMlarge language modelSERstale-release rate
MESmanufacturing execution systemTOCTOUtime of check to time of use
NTPNetwork Time ProtocolXAIReXecution-time Action Intent Runtime

Testbeds in the evaluation: S single host, D distributed, R reserved cores, P wide-area physical nodes, L local-LAN node, B embedded boards.

1. Introduction

Industrial cyber-physical systems (CPS) increasingly combine certified control with machine perception, learned policies, and human supervision [1]. Making such learning-enabled systems safe is an open problem [2], and part of it is untouched by faster perception or planning. Inference, queuing, and transport separate the moment an action is decided (tdt_d) from the moment it is released into middleware (tmt_m), and the plant keeps changing in between.

Consider, as an example, a collaborative assembly station in which a task planner built on a language model decides to restart the station's conveyor (stopped while the station waits) and to pick the next part. Inference alone takes about a second, and the proposal may then wait for an operator to confirm it. If, in the meantime, the operator pauses the line to clear a jam, or the manufacturing execution system (MES) switches the station to another product variant, the command that eventually reaches the cell controller is still well formed, but the state it was based on no longer exists. We refer to this failure mode as the execution gap, i.e., the release of an action that was admissible when it was proposed but is no longer admissible when it is released.

Several lines of work already check or correct the outputs of such systems, from runtime enforcement and shields to middleware monitors and, more recently, firewalls for planners and gateways for agents built on large language models (LLMs), and since 2025 the same time-of-check-to-time-of-use (TOCTOU) race has been studied for such agents. Section 2 reviews them. Rechecking an action when it is executed is therefore not new, and we do not claim it as our contribution. What these works leave open is the case of an industrial cell, in which several producers act on a plant state that is spread over a context store, the middleware and the controllers. Each of these components orders updates in its own serialization domain, with its own clock and with replicas of the others' state, so that a check placed in one domain cannot see changes ordered in another. For this reason we regard the problem as an architectural one, in which what the last check can guarantee depends mostly on where it runs and on which version it compares, and much less on how fast it is.

In this paper we address this question with an explicit contract, a runtime that enforces it, and an evaluation of where in the architecture the check has to run. Specifically, we make the following contributions.

(i) We model the execution gap by separating decision, validation, the last check, an optional commit, release and effect, and by distinguishing what holds in the plant from what a check is able to observe. The model shows that any check performed on a replica leaves an unprotected interval, which can only be removed by a check in the serialization domain that owns the context, and that the scope of the compared version determines whether a change undone before the effect is detected at all.

(ii) We present the Action Intent Schema (AIS), through which each producer declares how long its decision remains valid and which plant conditions it relies on, together with the eXecution-time Action Intent Runtime (XAIR). XAIR adds conditions mandated by the operator and rechecks every intent before it is released, either optimistically or through an atomic commit in the context store. It can also release an intent as a command that the controller owning the context will execute only if its state has not changed in the meantime. This resembles If-Match, compare-and-swap and fencing tokens, but the expected version is stated in the contract by a producer that never talks to the controller, and that is what lets the controller refuse a command built on state it did not see.

(iii) We evaluate the approach in controlled experiments with ground truth declared before execution, on six testbed configurations (a single host, a container-distributed testbed, reserved server cores, a wide-area node, a local-network node, and an embedded configuration with an ARM and a RISC-V board) and on an OpenPLC runtime, against a policy engine and a controller-local interlock as baselines and with two public industrial datasets. The implementation, the per-trial data and the analysis scripts are publicly available.

Our results are prototype evidence obtained with software controllers, and they do not certify safety: what XAIR enforces is that the assumptions an intent declares, together with those the operator mandates, still hold when it is released, a narrower property than physical safety (Section 4.1). Section 2 discusses related work, Section 3 positions and formalizes the problem, and Section 4 describes AIS and XAIR, while Sections 5 and 6 present the evaluation and discuss its implications, among them a placement rule that we turn into a design guide for edge deployments.

References (45)