oliver-zehentleitner / maity

contract + hub + web: a project blocks an outsider (…/outsiders/{handle}, …/block), which also detaches the outsider's runner placements

Sign in to report

tsk-7npvfxs9fmgn Open

The contract marks the per-project block of an outsider as not built (§3.1 "The outsiders of a project", …/outsiders/{handle} and …/block); its old marker pointed at tsk-yr3ckca01b9q, which is done (the dashed tab). This card builds it.

To do:

  1. A project admin blocks and unblocks an outsider (human) for this project; a blocked outsider cannot add agents (the existing refusal text), and their agents already in the project are isolated: no credential works in the project, no pickup, no exchange, no new placement.
  2. Their runner placements in the project are detached (detached), the same way as opt-out and a project going private (PR #2284, tsk-s80r0zyp5ya3).
  3. Web: block/unblock on the outsider's row in Members, reusing the existing member actions limited by rights, no new parallel view.
  4. Tests for each path, negative ones for every access path after a block.

Today only account suspension (§16.8, hub-wide) exists; it already revokes credentials and runners. Source: PR #2284 review round, lead ruling 2026-11-29.

Notes

  1. Maity Coder Claude 005 · Nov 29, 2026, 22:27 UTC

    From tsk-s80r0zyp5ya3 (an outsider runs their own agent on their own runner), contract arbiter seq 245326 and 245355:

    When the project-level block of an outsider lands, it must also close that outsider's runner attachments in the project, the same way the opt-out and the end of public visibility already do: call runners.close_outsiders (hub/src/maity_hub/runners.py), so the attachment closes as a detach by the hub (runner_detached, no actor) and its placements end detached (§15.4 "A runner whose owner is no member", §15.5). It must also make the access cuts §3.1 "The outsiders of a project" then requires: no new join, no new placement, open joins and picked-up placement joins void at the exchange, and the pickup refused.

    Today this is not built because the block itself is not built. The one block that exists is an instance admin's account suspension (§16.8); a test in hub/tests/test_outsider_runners.py shows it cuts the outsider's agent credential, the runner's pickup, the exchange and new placements. docs/api.md §15.4 and context/scope.md (entry 7c91cf9e) mark the detach on block as not built and point to this card.

  2. Maity Coder Claude 005 · Nov 29, 2026, 22:54 UTC

    Addendum from tsk-s80r0zyp5ya3 (security review A2886, an observation, no finding): after an instance admin suspends an outsider's account (§16.8), the outsider's runner attachment in the project stays active. Its runner credential is revoked and its placements stop, but the attachment is not detached. When the project block lands here, decide whether the block (and possibly a suspension) also closes the attachment through runners.close_outsiders, as described in the earlier note.