Architecture#

OSPREY deploys agentic AI in safety-critical control system environments, such as particle accelerators. It uses the OSPREY agent as the orchestrator, MCP servers as the tool interface, and pluggable connectors for protocol-agnostic hardware access.

Osprey system architecture — from operator to facility, with the safety gate and approval workflow in-line.

Osprey system architecture — from operator to facility, with the safety gate and approval workflow in-line.#

Nine pages break that picture down — how a write is guarded on its way to the machine, how reading differs from writing, how one facility description feeds every service and how its code splits into packages, the subsystems with architecture of their own, and how all of it is tested:

Safety Chain

The six ways a write reaches the machine through the connector, the Phoebus drive that bypasses it, and the checks and gates on each path.

Safety Chain
Retrieval Paths

The three independent read stacks — ARIEL’s Postgres, the qmd sidecar, and the embedding-free channel finder — and which of them needs an embedding provider on the host.

Retrieval Paths
MCP Servers

The ten core stdio servers the agent reaches, grouped by what they do, with the complete tool list for each.

MCP Servers
Python Executor

How agent-written Python actually runs: ten safety layers, the readonly/readwrite execution modes, and the zones executed code may not touch.

Python Executor
Facility File and Its Views

One description of the facility under data/facility/, the facility file the build makes of it, the view each service reads, the schema behind it and the simulation models.

Facility File and Its Views
Facility Relations

Relations as claims, not device fields: the standing the build gives each, the place a located_in claim projects, the views that read them, and the sector-3 example.

Facility Relations
Facility Packages

How the facility code leaves the framework as osprey-facility and osprey-panels: the nine decisions behind the split and the boundary check that holds the code to them.

Facility Packages
Virtual Accelerator

A whole facility on real EPICS with LUME-backed physics — the layer map, the two transports, and the model seam that makes the physics replaceable.

Virtual Accelerator
Testing

The inventory of the suite — what each family of tests proves, when each lane runs, how a scenario stages a fault for the agent to find, and what the benchmarks measure.

Testing

See also

Use Connectors

How to add a custom control system connector.

Container Deployment

How to create and deploy an OSPREY project.