Start a helper session from a thread
A person starts a helper session of the thread's agent (ADR 0072, child-sessions-v1.md section 4): text is round 1's prompt, which the parent's model does not read. The thread's owner only (thread.write, and agent.invoke on the thread's agent). Asynchronous: the answer is 202 with the request's id, written before anything is sent to the agent; the outcome is the parent's child_session_start_ended event, opened with the child thread or failed with the agent's own words (reason, untrusted), which cover what only the agent can refuse: its limit of open sessions, of rounds working at once, of rounds per session. The text of a start that fails is not kept: a client keeps the draft until the outcome arrives. The request's id makes a repeat safe: the same id again answers 202 and writes nothing. At most 4 starts of one thread may wait for their outcome.
Every refusal below is decided before anything is written. The helper sessions of a child thread are never started from it, and the card is read live (a card that stops offering the extension, or does not list the helper, refuses).
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Request Body
Responses
Start asked; the outcome arrives as child_session_start_ended in this thread's log