Skip to main content

Module composer_origin

Module composer_origin 

Source
Expand description

Who typed into an agent’s composer (agentinput), decided from the connection, never from the request (SPEC_MESSAGE_ORIGIN_AND_ONE_CONTAINER_2026_10_25.md §3.4).

TurnOrigin::User is the human, the one thing nothing else may pass itself off as, so the agentinput route takes it from the caller:

  • a connection registered as an agent is refused: agents send with the Message tool, which is delivered as a jekt;
  • the AgentMux window, proven by the CEF host (RpcContext::operator_only), is the human (System for a hidden memory reinjection, or a message the pane sends on AgentMux’s behalf, such as its start-up document: the request says so with system);
  • any other connection is refused when srv runs with a CEF host (every desktop build); a headless srv (the cloud web host) has no CEF host and logs the call. The mode comes from how srv was started, never from anything the connection says.

Constants§

WHY 🔒

Functions§

composer_origin 🔒
The origin of an agentinput turn from the caller, or why it is refused. lowered (a hidden reinjection, a message the pane sends on AgentMux’s behalf) can only turn the window’s User into System.
composer_origin_in 🔒
window_only 🔒
Whether the caller may put text into an agent’s input as the person does (agent.send): the same decision as the composer’s, for a call that has no turn origin of its own. Refused for a registered agent in every mode, and for any connection the CEF host did not prove when srv has a host.