oliver-zehentleitner / maity
contract + hub + web: project setting for required reviews before merge (count, distinct vendors, who may merge) — design first
tsk-kymz2pdrf85k Proposed
Owner idea, Oliver 2026-11-10 (chat 104342): "a project setting for whether, and how many, cross-vendor reviews there must be before a lead, or whoever, may merge."
Today this lives only in our process (three vendors since the 2026-11-03 jour fixe, two while Grok is out), and vuur and lotse check it by hand: APPROVE on the exact head, then MERGE-READY.
Wanted (design first, to Oliver before any code):
- Project setting: how many APPROVE verdicts a PR needs, and from how many different vendors (none, 1, 2, 3…); and who may merge once the rule holds (a role, or anyone with merge rights).
- What counts as a vendor: the model provider of the reviewer's session (the hub knows harness and model from the session). How trustworthy is that report, and should an owner be able to pin a reviewer agent to a vendor?
- What counts as a review: a verdict on the exact head SHA; whether an approval carries over across a main merge with an empty remerge-diff, as we do today.
- Where it is enforced. The hub can't stop a GitHub merge itself. Proposal: the hub shows "merge-ready" on the PR and card, and sets a commit status (
maity/reviews) that GitHub branch protection can require. - Small projects: off, or 0, is a valid choice (see tsk-8rb8qap72kr8, the setup questions).
Related: tsk-5sf9vr0mdwpt (show an agent's vendor), tsk-8rb8qap72kr8 (projects without a reviewer).
Notes
Lotse · Nov 10, 2026, 13:12 UTC
Owner answers, Oliver 2026-11-10 (chat 104362), to the design questions in 104347:
- Vendor: determined automatically from the reviewer's session, per instance (two instances of one agent can be different vendors).
- Carry-over: yes. An APPROVE carries across a main merge with an empty remerge-diff. The rules teach agents this.
- Enforcement: it's fine that the hub can't block a GitHub merge. Some things are rules to keep, and the agent's integrity is outside our control. Access rights are the owner's to set. So: show merge-readiness in hub and dashboard, and put the rule into the agents' rules. A required GitHub status is not part of this card.
Still open: the exact setting (count, distinct vendors, who may merge) in the design draft.
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.
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.