Skip to main content

Module pane_binding

Module pane_binding 

Source
Expand description

A pane belongs to one agent. The window registers and unregisters panes over HTTP with no token, so these checks hang on the pane, not on who asks: a registration must name the agent the pane belongs to, and a request that does carry an agent’s token acts on that agent’s own panes only.

Constants§

WINDOW_ONLY 🔒

Functions§

forbidden 🔒
handle_takeover 🔒
POST /api/v1/agent/takeover: an agent, for its own pane. The window takes an agent over through its socket.
handle_unregister 🔒
POST /agentmux/reactive/unregister: an agent, for its own pane. The window unregisters over its socket.
live_holder_elsewhere 🔒
The pane that holds uid right now, when it is not block_id and still runs. Registering a second pane for the agent would move the agent’s name, UID and relay entry to a pane that is refused its turns (identity eviction treats the newcomer as a respawn), and every message to the agent would then be refused at the pane it was routed to. The pane that holds the agent’s lease is the holder; the registry’s own entry stands in until one has claimed it.
register_refusal 🔒
Why a register request is refused, if it is: pane_uid is the agent the pane belongs to (None for a pane with no agent, which any name may register), sent the name as sent and routed after sanitising. A pane for an agent another live pane of this AgentMux already holds is refused too.
unregister_refusal 🔒
Why an unregister request is refused, if it is: a caller with a token may unregister its own panes only. The panes a name stands for are the ones the registry itself would tear down for it (unregister_agent).