Agentic systems in manufacturing are moving from advisory roles to write access on the plant itself. The targets range from setpoints in process control and motion programs in robot cells to the batch recipes and maintenance plans that production later executes. Once an agent’s tool calls can alter a physical process, containment can no longer be framed as confinement of the agent. The process is both the object of the agent’s work and the asset at risk.
This article sets out a consequence-based framework for containing such agents in process and discrete manufacturing. It treats an agent as one initiating cause among several and locates containment in independent controls between agent and plant. The framework has four parts:
A consequence chain of six links from agent input to plant recovery, each with a required control and a named owner.
An independence criterion, adapted from layer of protection analysis, that determines which controls may be credited.
A grading scheme that bounds the authority of each intervention class by severity, reversibility, coupling and time margin.
A derivation method that applies hazard and operability guide words to each intervention class to generate edge cases and expose gaps.
It extends earlier work in this series on bounded authority, the control plane, control by design, the plant ontology and prompt injection in Physical AI.
Scope and definitions.
The framework covers agents with direct or mediated write access to process variables, control sequences, motion programs, recipes, schedules or maintenance plans. Security of the agent runtime itself is out of scope, as existing agent containment guidance addresses it. The following terms carry specific meanings.
Intervention. A change initiated by an agent to a process variable, a control sequence or a record that the process later executes.
Intervention class. A type of intervention on a type of asset, such as a feed-rate change on a reactor. Each class runs as one agentic workflow with one accountable owner.
Consequence. The worst credible outcome of an intervention for people, equipment, product or the environment, assessed before credit is taken for independent protection.
Operating envelope. The states, rates of change and cumulative deviations within which the process remains safe and within specification.
Operating domain. The modes, products and data-quality conditions under which an authority is valid, analogous to the operational design domain of an automated driving system.
Containment control. A technical or procedural measure that interrupts an agent-initiated scenario before it reaches its consequence.
Authority grade. The extent of delegation an agent holds for one intervention class.
The problem, and where existing guidance stops.
Agent containment guidance derives largely from computer security, and none of it yet covers agents acting on physical processes. The Canadian AI Safety Institute’s Technical Guidelines for AI Agent Containment (November 2026) adapt least privilege, default-deny egress and out-of-band termination to agents. Physical processes are explicitly out of scope. In May 2026, the cyber agencies of the Five Eyes nations advised on careful adoption of agentic AI. The authors include the US Cybersecurity and Infrastructure Security Agency (CISA), the NSA and the UK National Cyber Security Centre (NCSC). They recommend graduated autonomy under human oversight, but address information technology and defer to separate principles for operational technology.
CISA, the NCSC, Germany’s Federal Office for Information Security (BSI) and partner agencies issued those principles in December 2025. They remain the principal government guidance on AI in operational technology, and state that large language models “almost certainly should not be used to make safety decisions” there. In the United States, the National Institute of Standards and Technology (NIST) has scoped an AI Risk Management Framework profile for critical infrastructure covering operational technology and agents. No controls have yet been published. In the European Union, the Machinery Regulation and the draft Good Manufacturing Practice (GMP) Annex 22 constrain AI in machinery and medicines manufacturing, as the worked examples show.
Three properties of physical processes defeat the isolation model. First, the actuated process is the protected asset, so the agent cannot be isolated from what it must change. Second, plant state is non-stationary: the conditions under which an intervention was authorised can lapse before it executes, a time-of-check to time-of-use problem. Third, interventions couple through process dynamics, other control loops and concurrent agents, so a change that is safe in isolation can be unsafe in combination. Existing guidance does not specify where controls must sit between an agent and the plant, how their independence is established or how far each class may be delegated.
Design principles.
Seven principles follow from these properties, and the rest of the framework implements them.
Contain the consequence, not the agent. The relevant boundary is the operating envelope, and controls are placed wherever a harmful change can still be interrupted.
Treat the agent as an initiating cause. Like a basic process control loop in layer of protection analysis, an agent can initiate a scenario and is never credited as protection against it.
Prefer independence to redundancy. Controls that share a sensor, a data source, a model, a write path or a decision-maker constitute a single control.
Scope authority by agent, class and condition. Authority is granted to one agent for one intervention class, within a declared operating domain and for a bounded period.
Let time margin decide who may act. Where harm can develop faster than people can detect and correct it, only automatic protection counts.
Fail to a defined state. Loss of the agent or of its authority leads to a hold state set by hazard analysis for the class, not to an improvised stop.
Assign every control an owner. Ownership is subject to the same independence criterion as the controls themselves.
The consequence chain.
A scenario initiated by, or propagated through, an agent reaches the plant through six links. For each link, the framework specifies a characteristic failure, a required control and an accountable owner.
L1 Information. Measurements, historian data, documents and ontology definitions consumed by the agent. Failure: corrupt, stale or misattributed data. Control: provenance, quality status and ontology definitions that the agent cannot modify. Owner: data owner.
L2 Proposal. The intervention generated by the agent. Failure: a plausible but incorrect proposal. Control: evaluation against a snapshot of plant state using approved predictive models, independent of the agent’s own rationale. Owner: model owner.
L3 Authorisation. The decision to proceed. Failure: authority exceeded, expired or exercised outside its operating domain. Control: a control plane external to the agent that authorises, refers or blocks the complete intervention against the agent’s grade. Owner: workflow owner.
L4 Actuation. The path by which the change reaches a controller or a record. Failure: wrong target, units or scaling, contested control ownership or wrong machine mode. Control: a write path inaccessible to the agent that verifies target, units, ownership and mode at the device immediately before the write. For records, management of change is the actuation control. Owner: control engineering.
L5 Process response. The dynamic response of the plant. Failure: an excursion towards the edge of the operating envelope. Control: safety functions and limits implemented outside any program writable by the agent, on instruments independent of its inputs. Owner: process safety.
L6 Recovery. The plant state after any link fails or authority lapses. Failure: an unplanned intermediate state. Control: a hold state defined by hazard analysis for the class, reachable without the agent, with a record that separates commanded from effected changes. Owner: operations.
Relative to the six tiers in my prompt-injection article, the chain generalises from injected instructions to any initiating cause. It removes model-level safeguards, which cannot be credited, and separates actuation from process response.
The independence criterion.
A control is credited against a scenario only if neither the initiating cause nor any other control credited against the same scenario can defeat it. This is the requirement for an independent protection layer in layer of protection analysis, applied here to every link rather than to the final layers alone. Five common-cause paths recur in agentic systems.
Shared measurement. A limit or digital twin fed by the same sensor as the agent fails with it.
Shared information. An approval based on the agent’s own explanation inherits the agent’s reasoning error.
Shared model. An evaluation model trained on the same data as the agent may share its blind spots.
Shared path. A limit held in a controller program writable by the agent can be altered by the agent’s own write.
Shared accountability. An owner who approves a workflow’s models and also authorises its interventions collapses the separation between L2 and L3.
Independence is necessary but not sufficient. A credited control must also be demonstrated to function on demand, which places proof testing on the same footing as design.
Graded authority.
Authority is assigned in two stages. Each intervention class receives a ceiling derived from its physical characteristics, and each agent then earns a grade for that class, up to the ceiling, on evidence.
G0 Inform. Analysis only, with no write path.
G1 Recommend. The agent proposes, and a person executes under the plant’s own procedures.
G2 Act on approval. Execution through L4 after an authorised person approves on evidence independent of the agent.
G3 Act within bounds. Authorisation by the control plane without a person, within limits defined for the class.
No grade permits action outside the control plane, and safety limits bind at every grade. Relative to the autonomy levels in my ontology article, G0 is added and unbounded autonomy is excluded.
The ceiling is a function of four variables.
Severity. The worst credible consequence, before credit for independent protection.
Reversibility. Whether the change and its effects can be reversed, and at what cost.
Coupling. The extent to which the change interacts with other loops, agents and products.
Time margin. The process safety time relative to the time required to detect, diagnose and correct a deviation.
Five rules determine the ceiling, and the first that applies is decisive.
If people cannot detect and correct a deviation within the process safety time, and no automatic protection independent of the agent covers the scenario, the ceiling is G0.
If the class can degrade a control credited in another class, the ceiling is G1.
If severity is high or the change is irreversible, the ceiling is G2.
If the class is tightly coupled to loops or agents whose interventions are not jointly evaluated, the ceiling is G2.
Otherwise, the ceiling is G3.
Rule 1 follows the condition underlying run-time assurance in control engineering. A monitor must switch to a verified backup while the system remains recoverable, after detection and actuation latency are taken into account. Prior approval can reject a defective proposal, but it cannot recover a change that diverges faster than people can respond.
Within the ceiling, the workflow owner raises an agent’s grade after a risk assessment and a sustained record of agreement between predicted and observed outcomes. An incident, a new model version or a change to the plant or operating domain reverts the agent to a lower grade. A signed, versioned authority register holds, for each agent and class, the grade, operating domain, expiry, granting owner and supporting evidence.
Deriving edge cases.
The framework derives edge cases from two sources. The first is industrial use cases worked through by my team, whose specific edge cases remain protected intellectual property. The second is a hazard and operability (HAZOP) study of each intervention class, using the guide words defined in IEC 61882, in five steps.
Specify the design intent of the class: parameter, direction, magnitude, timing and operating domain.
Apply each guide word to that intent: no, more, less, as well as, part of, reverse, other than, early, late, before and after.
Trace each deviation along the chain to the first link at which an independent control interrupts it.
Record any deviation that reaches the process without a credited control as a gap.
Set the class ceiling using the five rules, and close all gaps before any agent’s grade is raised.
The four cases below are illustrative rather than plant-specific. They were selected to span different time margins, consequence types and regulatory constraints.
Continuous process: feed rate on an exothermic reactor.
Design intent: at steady state, the agent increases the feed rate to a continuous exothermic reactor by 3% to raise throughput, within the normal operating window.
More. A scaling fault in the write path applies 30% rather than 3%. As the fault lies in L4, only L5 is credited: a high-temperature trip in the safety instrumented system (SIS), on dedicated sensors. A ramp limit in the feed controller is not credited, because the agent writes to that controller.
Less. The reactor temperature transmitter reads low, so the agent infers cooling capacity that does not exist. An L2 evaluation using the same transmitter concurs, and only independent temperature measurement at L5 detects the excursion.
As well as. An energy-optimisation agent reduces cooling water flow concurrently. Each change lies within its own limits, but together they erode the heat-removal margin. L2 detects this only if it evaluates interventions already authorised.
Early. The change arrives during start-up. L3 must reject it, because the authority is valid at steady state only.
Classification: for many exothermic systems, a runaway can develop faster than operators can reliably detect and respond. Rule 1 therefore requires an automatic high-temperature trip independent of both the agent and the basic process control system (BPCS). With that trip in place the class passes rule 1, but severity is high, so rule 3 sets the ceiling at G2.
Batch biopharmaceutical: feed strategy in a bioreactor.
Design intent: during the production phase, the agent increases the nutrient feed rate of a fed-batch cell culture to raise titre, within the ranges of the approved master batch record.
Other than. The change targets a parallel bioreactor running a different product. L4 must verify vessel and batch identity against both the controller and the batch record.
More. The proposal takes feed outside the master batch record ranges, a deviation requiring quality approval. Beyond the approved design space, ICH Q8(R2) treats the move as a change that would normally initiate a post-approval change procedure. L3 must block both, irrespective of grade.
Late. The adjustment arrives after the phase window defined in the batch recipe. L3 must revoke authority at the phase boundary.
Part of. The setpoint changes but the batch record does not. L4 must write to the controller and the electronic batch record atomically, with an audit trail, and L6 reconciles any mismatch.
Classification: a deviation can result in batch rejection, which is irreversible, so rule 3 sets the ceiling at G2, valid only within the master batch record ranges. The draft EU GMP Annex 22, not final on 2 December 2026, would exclude generative AI and large language models from critical GMP applications. Production feed control is critical, so under that draft a generative agent should not be used in this class at any grade. The G2 ceiling applies to static models with deterministic output. In my view, G3 is therefore unlikely for any quality-critical class in regulated pharmaceutical manufacturing.
Discrete manufacturing: path and speed in a robot cell.
Design intent: in automatic mode, the agent reduces cycle time in a robot cell with manual loading by modifying the motion path and increasing speed.
More. The new speed exceeds the limit permitted with an operator present. Harm can occur within a fraction of a second, so only safety-rated speed and separation monitoring in a safety controller is credited at L5.
Other than. The new path leaves the robot’s defined task space. A safety-rated zone limit must stop the motion regardless of the program.
Early. The change is applied while a technician is in the cell in manual mode. The robot’s safety functions must inhibit remote program changes in manual mode. An L4 check of mode and ownership is an additional barrier but is not credited.
Classification: the time margin is far below human response, so rule 1 requires safety functions that act autonomously and lie outside the agent’s write path. With these in place rule 1 does not bind, but rule 3 does: injury is irreversible, so path and speed changes are capped at G2. The 2025 editions of ISO 10218 incorporate the collaborative-application requirements of ISO/TS 15066, with Part 2 covering robot applications and cells.
From 20 January 2027, Regulation (EU) 2023/1230 requires control systems with self-evolving behaviour not to drive the machinery beyond its defined task and movement space. Where an agent’s interventions fall under that rule, the space must be enforced at L5 for every class above G1. It also assigns the obligations of a manufacturer to whoever makes a substantial modification, including by digital means, that the original manufacturer did not foresee or plan. In my assessment, an operator connecting an agent with a write path to an existing line may take on those obligations.
Records the process executes: recipes and maintenance plans.
Design intent: the agent amends the next campaign’s recipe in the manufacturing execution system (MES), or defers a task in the computerised maintenance management system (CMMS) to protect output.
Other than. The deferred task is the proof test of a sensor serving a safety function. No interlock observes the deferral, yet it degrades an L5 control on which other classes depend.
More. Successive recipe amendments, each within range, drift the product from its validated profile. Cumulative limits must be tracked across amendments, not per amendment.
Late. A recipe amendment takes effect after the equipment has been modified, so recipe and plant no longer correspond.
Classification: time margins are long, but consequences are latent and can disable controls in other classes. Management of change is the actuation control, as the OSHA process safety management standard requires for changes to process chemicals, technology, equipment and procedures. The ontology links each record to the assets, products and safety functions it affects, so the change can be classified by consequence. Those links must be verified independently, because the agent reads the same ontology. Rule 2 caps changes affecting the testing or maintenance of a safety function at G1.
Validation and limits.
The framework is analytical and must be instantiated plant by plant within existing hazard studies. Validation proceeds with the grades. At G0 and G1, proposals can be scored in shadow mode against operator decisions and observed outcomes at no process risk. Fault injection on a process simulator tests whether each credited control interrupts its scenarios, provided the simulator shares neither sensors nor models with the agent. At G2 and G3, the record of predicted against observed outcomes, and of amended or rejected proposals, supports each change of grade.
Three limits apply. The published ceilings rest on analysis and must be calibrated against operating evidence for each plant. Each class carries a cost in hazard review, hold-state design, ownership and maintained limits, which is the price of delegation. The framework also presumes functioning management of change and maintained safety functions. Where these are deficient, they must be remedied before any agent is given a write path.
Conclusion.
Containment of agentic systems in manufacturing is measured by how the process behaves when an agent is wrong. The framework places an owned control at each link between agent and plant, and credits only controls that are independent and proven. It bounds authority by consequence and time margin, and derives edge cases systematically rather than awaiting incidents. Its ceilings now need calibration against operating plants.
A note on application.
At Data Nucleus, Manufacturing Copilot applies the same separation. An independent control plane authorises, refers or blocks each intervention, and agents hold no write access. Protective functions and interlocks remain independent of agent optimisation.
Disclaimer: This article is for information only and may change without notice. It is provided “as is,” without warranties (including merchantability or fitness for a particular purpose), and does not create any contractual obligations. Data Nucleus Ltd is not liable for any direct, indirect, incidental, special, consequential, or exemplary damages arising from use of or reliance on this document.
Data protection/UK GDPR: data-controller@datanucleus.co.uk