Module ingress
Expand description
Universal ingress policy contract types (RFC phase 1).
Structs§
- Ingress
Context - The envelope stamped by the entry layer; travels with the turn into the engine. See the module docs.
- Untrusted
Framing - Untrusted-data framing instructions for an
IngressDecision::Annotatedisposition. Minimal placeholder for phase 1; the framing fields are fleshed out whenAnnotatebecomes reachable (phase 3).
Enums§
- Ingress
Decision - Internal
Principal - The runtime-owned principal that initiated an internally driven turn —
who caused the turn to exist, distinct from the executing agent identity
the turn runs under. Stamped once at dispatch from the runtime’s own
resolved state (job config, canonical agent alias, runtime task id),
never from message content or tool arguments, and immutable for the
turn’s lifetime. Persisted records carry it verbatim as at-time-of-action
fact. Internal principals never appear in
peer_groupsand are never consulted by peer-membership checks — identity and delivery permission are separate axes. - Source
Class - Whether an inbound turn originates outside the agent (a transport peer) or from an internal driver (cron, an SOP step, a subagent).
- Transport
- The transport an inbound turn arrived on. Real per-transport stamping is
phase 2; phase 1 stamps
Transport::Internaleverywhere. - Trust
Class - Trust class resolved for the turn’s sender. Minimal for phase 1; peer-group resolution (the real source) is phase 2.
- Turn
Origin