Publish and poll
mermaid
sequenceDiagram
participant S as Studio
participant CP as ControlPlane
participant PG as PostgreSQL
participant RT as RuntimeCore
participant D as Drivers
S->>CP: PUT workspace resources
CP->>PG: workspace deltas
S->>CP: POST validate / publish
CP->>PG: immutable revision
CP->>CP: compile snapshot
S->>CP: POST activate
CP->>RT: StageSnapshot
CP->>RT: ActivateSnapshot
loop every ~1s
RT->>D: poll sources
RT->>RT: scale, alarm, SOE, spool
end
S->>RT: GET tags / alarms / commandsPublish rules
- If there are errors, no revision is written
- On success, revision, snapshot, and audit are in the same transaction
- Secret key names do not enter the overlay
- Activation goes to the bound runtime; unbound →
409 runtime.unbound
Polling
Scale → alarm → SOE → command validation → historian spool. The hot path does not go to the engineering DB.