Status: accepted 2026-10-23 by the owner ("there would be a request for accepting tasks, and I can approve or not"); being built. Amends ADR-044's "the receiver decides", which stays: this adds a third answer to it.
ADR-044 lets a session take tasks from caged agents or not (accept_caged),
with a caged sender named by its own agent: MACHINE/SESSION, which the cage
cannot change. The setting was all or nothing.
The case that broke it (2026-10-22): a caged session builds an app, and
jimmy-crib/publisher has to take its "sign and publish this" task. Turning
accept_caged on for the publisher makes it take tasks from every caged
agent on every machine, which is not what anyone wants of the one agent that
holds the signing keys. Leaving it off means the caged builder can never ask.
Files between agents (ADR-048) already solve the same shape of problem: an
allow list per session, MACHINE/SESSION or MACHINE/*, and a refused sender
shown to the owner as a request they can allow or set aside.
A session takes tasks from every caged agent (accept_caged), or from those
its owner allowed by name (accept_caged_from). A task from any other caged
agent is held for the owner, not refused.
accept_caged_from: MACHINE/SESSION or MACHINE/*,
kept with the session, set in the apps, by PATCH /v1/sessions/NAME, or
with shrooms-agent caged allow|deny. The names are those the sender's own
agent writes (ADR-044), so a cage cannot claim to be another.TASK_STATE_AUTH_REQUIRED and not sent to the session. The asker gets that
state straight away and its tools say what it means; it has nothing to do
but wait. A blocking asker is answered at once rather than kept waiting.task_requests: task, sender, title, when); the apps show them beside file
requests.decline_tasks_from, or shrooms-agent caged decline) rejects
the tasks held from that sender, with "declined by the owner", and tells
each asker. The sender is not remembered either way: its next task is a new
request.accept_caged on releases everything held.MACHINE/* on the files
list is not enough for a cage. As first built, files still asked for
accept_caged itself, so a cage allowed by name was refused its files, and
with no request to click.