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§
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
uidright now, when it is notblock_idand 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
registerrequest is refused, if it is:pane_uidis the agent the pane belongs to (Nonefor a pane with no agent, which any name may register),sentthe name as sent androutedafter sanitising. A pane for an agent another live pane of this AgentMux already holds is refused too. - unregister_
refusal 🔒 - Why an
unregisterrequest 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).