oliver-zehentleitner / maity
contract + hub + web: only a runner's owner places agents on it, even when the runner is attached to another project
tsk-qgmz0yrc3g5x Done An agent
The maintainer, 2026-11-16: "aber selbst wenn ich einen runner wo anders anhänge sollte dort niemand bei meinem runner agents erstellen dürfen" (even when I attach my runner to another project, nobody there may create agents on my runner).
Rule: only the runner's owner places agents on that runner. A runner attached to a project lets the project see it. It does not let that project's members, or their agents, start placements on it.
Scope:
- Contract (§15, placements): who may create a placement on a runner. Proposed: only the runner owner, or an agent proposing under that owner's consent. A placement by anyone else is refused with an error code that tells the caller why.
- Hub: enforce it on POST …/placements, with tests for the other project's member, their agent, and the owner.
- Web: the runner and placement views offer "start" only to the owner.
- Existing placements by others on a runner are listed for the owner, who can remove them.
Design note first, to the lead, before any code.