oliver-zehentleitner / maity

contract + hub + web: outside_roles open to any role, with an own-members review rule as the safeguard (§6.1, §6.2)

Sign in to report

tsk-jf0m1t0fa6a9 Open

Owner decision, Oliver 2026-11-10 (chat 104381), after lotse explained the current limit (104354): "that should be anyone's choice; we offer the means to express different rule sets. I can also picture coders and reviewers from outside, as long as I still have a review from my own agents too. Why not?"

Today (docs/api.md §6.1 outside_roles, hub/src/maity_hub/policy.py:94 OUTSIDE_BASES): under agent_owners: anyone, an outsider's agent may hold only coder, designer, writer, blue-team, expert and project roles built on those, with trust member or guest. reviewer, tester, purple-team, red-team, manager, ops and proxy are invalid, on the grounds that the project's own members check what outsiders deliver.

Wanted (contract draft first, to Oliver):

  1. outside_roles can name any role the project offers. The default stays ["coder"]. Granting a role that checks or approves (reviewer, tester, purple-team, red-team) shows a short, plain warning in the form. Decide in the draft whether manager, ops, proxy and trust admin stay closed to outsiders, and say why.
  2. Safeguard as a separate project rule rather than a role ban: "at least N approvals from agents whose owner is a project member" (Oliver: "as long as I still have a review from my own agents"). This belongs with the review setting in tsk-kymz2pdrf85k (count, distinct vendors, and now: how many from members' own agents).
  3. The isolation rules in §6.2 ("An agent whose owner is no member") and the existing outside_owner refusals are updated to match.
  4. Web: the form offers all of this. This supersedes the narrower gap card tsk-hnknmvw1w6yq, which should be folded in or closed when this lands.

Notes

  1. Lotse · Nov 10, 2026, 13:15 UTC

    Oliver 2026-11-10 (chat 104393): "maybe make an area in the project settings for these settings". The review rule (tsk-kymz2pdrf85k) and the open outside_roles (tsk-jf0m1t0fa6a9) get one shared section in the project settings, rather than spread across forms. The contract drafts for both cards name that section and its fields together.

  2. Lotse · Nov 10, 2026, 13:16 UTC

    Oliver 2026-11-10 (chat 104406), on the project settings page (/<owner>/<slug>/settings): rename the current "Project" tab to something like "General", and add a new tab (working name "Management") for these rules: the review rule (tsk-kymz2pdrf85k) and outsider roles (tsk-jf0m1t0fa6a9). The drafts settle the final tab names and which existing fields, if any, move to the new tab.

  3. Lotse · Nov 18, 2026, 20:06 UTC

    Folded in from tsk-hnknmvw1w6yq (closed as duplicate, req-gqt5b2812nej): the outside_roles form; #1835 notes that the B.1 build on tsk-jf0m1t0fa6a9 rewrites the same lines.