Six ways to change something on the machine through the connector, and what stands in the way of each The deployment's settings — which machine it points at, the login's tier, and that login's write switch for each machine, one record per login — are read by the gates. An operator asks the OSPREY agent in plain language; every tool call that could write then passes the checks: may this login write to this machine (tier, owner, and the switch's position: off, asked or allowed), and does a human approve — at asked the operator answers the terminal prompt, at allowed the write runs without one; a channel write also passes a limits check on the way, which the other tools do not. Once approved, the call reaches its server: a channel write goes to the control-system server, which checks the limits once more; a Python run has its code read before it runs and then runs in its own guarded process, holding the machine's lock while it runs; a pyAML tool — one of pyAML's tuning routines, code OSPREY ships rather than code the agent wrote — runs on the Python server too: its prompt lists every setpoint the call steps, and it runs as a guarded run, holding the machine's lock, and its result lists each setpoint it moved with its value before the call; a run that stops leaves the machine where it stopped; queueing a plan reaches the Bluesky queue, which the operator can also drive from the panel without those checks, which needs a launch token to start or to take work while running, and where a start is bound to the queue the approver looked at and is refused if that queue changed; before and during a run every channel the plan declares must answer first, each write is checked as it happens, and the name on the queued item rides into the plan's task so each of its writes is judged against that person's tier and switch; a Jupyter cell is run by the operator directly, and its kernel re-reads the settings before every cell; a cell may not load a control-system client library, for reads as for writes, and reads and writes through osprey.runtime instead. A click on a CANOPY screen skips the checks too: at asked the panel asks for a confirm on every run and the write carries it, at allowed there is no dialog; its data process's session is bound to one machine, a new machine starts a new process, and each write is judged by the same verdict, held while any live session of the terminal is flagged. All six end at the connector, which asks the write verdict on every put — read-only run, tier, session hold, target, owner, record, switch, launch pin, first refusal wins — and every refusal ends in an osprey-refusal trailer naming its reason; a run started with writes held off is told to run again. The connector then checks the value against the limits where limits checking is on, sends the value, and, where the channel's policy asks for it, waits for the machine and reads the channel back. A Phoebus drive, possible only where a deployment enables the phoebus server and sets phoebus.agent_access to read_write, is not drawn: it passes the write verdict and the approval prompt, and the Phoebus product then writes the value through its own connections rather than through the connector, so the connector's verdict, its limits and its read-back do not apply to it. A request is named at two doors only, in the X-Osprey-Owner header: the terminal's proxy, and the sidecar's own login gate, each taking the name from the credential that got the request in rather than from what the request claimed. A job the agent fires leaves through the terminal's panel proxy, the one place that holds the dispatcher's key: it adds the key, stamps the same name, and the job's own writes re-enter at the top of the picture as tool calls. Three gaps are documented rather than closed: a plan added straight to the queue from inside a container, under any name it claims or none, a tier allowed a shell reaching the panel's dispatcher address, and a direct login at the panel's own address, which names nobody. The approval prompt attributes a write to a person and does not contain code already running in the container; the terminal's server and the dispatch worker keep their credentials out of that code's reach, so it cannot answer the prompt in the operator's name. A name that arrived by a door OSPREY does not mint at is unvouched, and it binds all the same, so the plan is judged against whoever it names. A plan nobody is named on writes nothing; an external-worker lane runs on the facility's own RunEngine and devices, outside the tier and the switch, where the name on an item is attribution. Deployment settings, read by the gates below which machine the deployment points at · the login's tier · that login's write switch per machine, one record per login the machine and the switch are read fresh by the next check, the next cell, the next write · the tier in config.yml takes a rebuild asks in plain language OSPREY agent can only act by calling tools Operator a person at the terminal each tool call that could write approves or refuses acts directly · no checks CHECKS BEFORE A TOOL THAT COULD WRITE RUNS a channel write run Python · run a pyAML tool · queue or start a plan May this login write? the write verdict tier never, session held, no owner, switch off: refused Is the value within limits? channel writes only · in the database · writable · range step size: left to the connector, which reads first Does a human approve? asked: the operator answers a prompt at the terminal allowed: no prompt, the switch record approves for a governed write the switch's position decides: asked prompts (Python code is shown in a review notebook) · allowed runs unprompted · other tools keep their own policy on a never tier, channel writes, pyAML tools and plan queueing are denied outright and Python is always asked · stopping a plan never is approved channel write run Python run a pyAML tool queue a plan control-system server one call · one or more channels the server checks again the limits, once more the machine is still the one the operator approved Python server code the agent wrote · read-only or read-write the code is read before it runs dangerous patterns are refused writes into the deployment's own files are refused read-only code may not import client libraries read-only code that spells a write is refused the code runs in its own process read-only code cannot write, even if it tries read-write: holds the machine's lock while it runs client-library writes are checked against limits it cannot write into the deployment's own files it is stopped after a time limit the result is saved before the process ends Python server · pyaml_measure one of pyAML's tools · code OSPREY ships the prompt showed the run the model, the kind, the view's digest every setpoint the call steps more than a prompt can list: refused, not asked the view is the one the build rendered a guarded run, in its own process one guarded run per machine: it holds the lock a stopped run leaves setpoints where they stopped its result lists them with their old values the same guards as the agent's Python a pyAML write outside this tool is refused Bluesky server queue a plan · start it BLUESKY panel operator clicks Start skips the checks above the queue start, or add while it runs: needs a launch token per lane and role · adds to a stopped queue need none a start is bound to the queue the approver saw changed since? refused, and the view refreshes before and during a run every channel the plan declares must answer first each write: owner's switch not off? within limits? the name on the item rides into the plan's task each write judged against that person's switch stopping a plan never needs a token JUPYTER cell the operator runs it skips the checks above the notebook kernel before each cell re-reads the settings; every write asks the verdict a refused write is shown in the cell no client libraries · read and write via osprey.runtime agent edits stay in notebooks/ and artifacts/ CANOPY panel the operator clicks skips the checks above the panel asks in place asked: a confirm on every run the write carries it unconfirmed: refused allowed: no dialog its control session bound to one machine new machine: new process per write, the verdict: tier · hold · record · switch held while any live session of the terminal is flagged Connector — the last step before the machine asks the verdict, on every write: may this login write to this machine now, and is its session held? — a refusal ends in [osprey-refusal: <reason>] either refusal stands whichever path the write took, a running plan included · a refusal the records decided ends its message in that word, so the reason survives into the run record and the audit line where limits checking is on, checks the value against the limits: allowed range · step size · may this channel be written sends the value · where that channel's policy asks for it, waits for the machine to confirm and reads the channel back to compare control system the machine WHOSE WRITE IS IT — AND WHAT THIS PICTURE DOES NOT COVER a request is named at two doors only: the terminal's proxy, and the sidecar's own login gate — each from the credential that got the request in, never from what the request claimed a name that arrived any other way is unvouched: it binds all the same, so the plan is judged against whoever it names a job the agent fires leaves through the terminal's panel proxy, the one place holding the dispatcher's key: it adds the key, stamps the same name, and the job's own writes re-enter above gaps: a plan added to the queue from inside a container, under any name or none · a tier allowed a shell reaching the panel's dispatcher address · a direct login at the panel's address, unnamed an unnamed plan writes nothing · an external-worker lane is the facility's own RunEngine: outside the tier and the switch, the name is attribution a fired job's own tool calls arrive here