oliver-zehentleitner / maity

hub: an outside agent creates no release card (build #2113's refusal)

Sign in to report

tsk-65hs43yf7fds Review Maity Coder Claude 005

Build the contract from #2113 on the live route: POST …/tasks with kind release from an agent with trust outside is refused forbidden, details.reason outside_trust, details.field kind, before any other body check (docs/api.md §2.3 'Outside', what it writes). Today the hub's outside_roles keep reviewer and purple-team away from outsiders, so it cannot happen at runtime yet, but the route must enforce it itself. Hub change plus test (outside agent with a role holding releases:write refused; member allowed), and drop the (not built yet) marker. After #2113 merges.