contract+hub+web: an outsider runs their own agent on their own runner and manages it from an Agents tab
tsk-s80r0zyp5ya3 In progress Maity Coder Claude 005
Part 2 of tsk-62ymtm5q4evk, split off. The maintainer (2026-11-29, on req-38z73g7c8myg): "Warum darf ein Außenstehender auf seinen eigenen Runner keinen Agent betreiben, der bei uns beitritt?" So: option B.
- Contract: an outsider places an agent of their own on a runner of their own like a member under "Bringing your own agent" (§15.6), as that agent's join, checked like the outsider's join (trust
outside, a role ofoutside_roles,reports_tothe caller or none, no areas or capabilities, the same quotas and rate limits), on a runner they own, with no attachment needed for it and no read of the project beyond that placement. This reverses the §3.1 sentence "An outsider places no agent on a runner…". - The outsider's own Agents tab in the dashed tab, reusing the member's Agents view (Agents, Managed agents) limited to their own: their agents' instances, credentials (revoke), placements on their runners (start/stop/restart/nudge, remove).
- An outsider removes their own agent from the project (lotse's recommendation; drop it only if the maintainer says no).
No parallel UI: reuse the member views. Contract hunks to lotse first.
Earlier analysis by maity-coder-claude-006 (hunks 1-3 proposed there; hunk 3 is now wanted):
tsk-62ymtm5q4evk, contract check done, nothing built yet.
Part 1 (Add your agent becomes Join an agent in the Team page head) needs no contract text. contribution and joins are already open to an outsider (access.py:224, 361-367). join.js already has the outsider mode. Following your note: the outsider-actions.js wrapper goes. M.teamHead shows the same M.joinButton for an outsider where contribution says can_join, and otherwise the limit/blocked reason. The wrapper's header slot, script tag, CSS and unused i18n keys are deleted.
Part 2 (an Agents tab for the outsider) needs contract text and hub work, and one question that I think is Oliver's call:
- Agents list: partly works today. GET /agents lists the outsider's memberships, and members/{id} and PATCH members/{id} are open to the owner. But the outsider's member view leaves out instances/session (api.md:1695-1705), and credentials/revoke are not in the owner's list (api.md:1751-1769, access.py:321-354) even though §10 names "the owner of the agent". There is also no way for an outsider to remove their own agent from the project.
- Managed agents: closed. GET placements is not in OUTSIDE_READS or OWNER_CALLS (access.py:735), and §3.1 (api.md:4975-4981) says on purpose "An outsider places no agent on a runner", every placement route not_found. A placement also needs a runner attached to the project, which needs members:admin. So today an outsider's agent can have no placement at all, and "set up a runner placement" goes against the contract.
Q1: (a) reads and management only, hunks 1 and 2: Managed agents stays empty for an outsider (the tab says so and links /runners). Or (b) also creation, adding hunk 3: the outsider places their own agent on their own runner without attaching it, under the join's limits. (b) reverses the §3.1 decision, so it is Oliver's call. Also: should an outsider be able to remove their own agent from the project? That is not in the hunks yet.
Proposed hunks:
Hunk 1, §2.3 owner's list (api.md:1765-1769). After "…and PATCH and DELETE …/placements/{id} (§15.3, §15.6)." insert:
"The owner of an agent with trust outside in the project also keeps, for that agent alone (the maintainer's report of 2026-11-29, tsk-62ymtm5q4evk: the outsider manages their agent from the project as a member does): GET …/members/{id} of it as a member reads an agent of their own, its instances included; GET …/members/{id}/credentials and POST …/credentials/{id}/revoke for its credentials (§10); GET …/placements, GET …/placements/{id} and GET …/placements/{id}/reports, which show such an owner only the placements of their own agent profiles and of their own runners, a list of other placements empty and another id not_found; and on those placements what §15.6 gives the agent profile's owner (PATCH with desired and workspace_retention, DELETE, POST …/placements/{id}/workspace/remove, and restart and nudge only on a runner of their own). GET …/members still lists the agent with the outsider's keys above; its own entry is read by id."
Hunk 2, §15.6 table, the Scope column of GET placements and GET placements/{id} (api.md:22627, 22629): append
"; a human who is no member but owns an agent with trust outside in the project: the placements of their own profiles and runners only (§2.3, "What an outsider reads")".
Hunk 3, only under (b), §3.1 (api.md:4975-4981). Replace "An outsider places no agent on a runner instead of a join: … on the placements of their own runner." with:
"An outsider places an agent of their own on a runner of their own as a member does under "Bringing your own agent" (§15.6, "A profile that is not a member yet"), while they could create a join for it now: the placement is that agent's join, taken and checked as the join above (trust outside, a role of outside_roles, reports_to the caller or none, no areas or capabilities, the same quotas and rate limits), on a runner they own, which needs no attachment for it (§15.4) and reads of the project only that placement (§15.8). Every other placement route answers an outsider as §2.3 says."
Hub work for 1 and 2: widen OWNER_CALLS in access.py, scope the reads in routes/placements.py, add hub tests. For 3 also creation without attachment. Proposal: I start part 1 now (no contract needed) and build part 2 after your and Oliver's ruling. Or should this be one PR after the ruling?
Notes
Lotse · Nov 29, 2026, 20:25 UTC
Maintainer (2026-11-29 20:25Z), the intended model: "Ich als owner eines runner kann sagen für welche projekte ich den runner nutzen will und in diesen projekten habe ich dann die möglichkeit agents am runner zu starten." So the runner owner chooses the projects their runner serves; no project admin attaches it. In such a project the owner (member or outsider) starts their own agents on it, within what they may do there (an outsider: the join limits). Check how §15.4 attachment works today against this and write the hunks to that model.