Documentation
¶
Overview ¶
Package launch is the refresh-then-exec path: compose, project, and hand off to the real harness with a recursion guard and a last-known-good net.
Index ¶
Constants ¶
const ( SessionBundleEnv = "AGENT_COMPOSE_SESSION_BUNDLE" SessionLayoutEnv = "AGENT_COMPOSE_SESSION_LAYOUT" )
SessionBundleEnv and SessionLayoutEnv bind a session to the bundle it was launched with, which a path walk cannot do. See docs/whoami.md.
const AttributionRoleEnv = "AGENT_GIT_ATTRIBUTION_ROLE"
AttributionRoleEnv carries the composed role to the git attribution shim. Per-session: the host projection is global. See coilysiren/inbox#362.
const EnvDepth = "AGENT_COMPOSE_LAUNCH_DEPTH"
EnvDepth counts the agent-compose launches a process sits inside, where the sentinel only says that it is inside one. Absent means none.
const EnvSentinel = "AGENT_COMPOSE_LAUNCH"
EnvSentinel marks a process launched by agent-compose. Both call sites read it to skip work a parent already did, and neither refuses on it alone.
const MaxNestedDepth = 1
MaxNestedDepth bounds deliberate agent-to-agent launches. One hop lets a session start a second seat while a runaway loop still terminates.
Variables ¶
This section is empty.
Functions ¶
func NestedDepth ¶
NestedDepth resolves the depth a launched child runs at, refusing anything past MaxNestedDepth. The bound is the guard rather than an opt-in. #403