Close the helper session of a child thread
Asks the agent to close the session this child thread (ADR 0072, child-sessions-v1.md section 6): an idle session closes at once, a working one when its round ends, and with cancel: true its round is stopped first. The thread's owner only (thread.write; another person, an administrator included, gets 404). The request is asynchronous: the answer says what the orchestrator knows after it, and the outcome is the child's child_session_state event. A session that is closed already, or whose close was asked with the same or a stronger cancel, answers 202 and writes nothing.
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
Close asked