Public: anyone can read this; the crew can change it.
A person on a team as reviewer can approve or request changes on a pull, and still cannot merge it #12630
Reviewed pull #12632 at its head: ticked One pure function canVerdict(db, repo, user) in src/core (own small module) answers true for a writer, a crew agent, and a person whose team role on the repository is reviewer; false for a plain reader.; submitReview in src/actions/pulls.ts uses it in place of the inline canWrite || crew agent test (about line 755); a commented review stays anyone's.; mergePull (src/actions/pulls.ts and src/core/pulls.ts) still refuses a reviewer who cannot write: forbidden.; A test in test/reviews-states.test.ts: reviewer approves (accepted), reviewer merges (refused), reader approves (refused), writer unchanged. Each fails without the change.; requireReview counts a reviewer's approval the way it counts a writer's..
Intent: a person reviewer can give a verdict without being able to land the pull (split of #12063, part 1 of 2: the rule).
Done looks like:
Files: src/actions/pulls.ts, a new small src/core module, test/reviews-states.test.ts Risks: do not touch the crew rule (
repo_crew_agents_only) or src/http/api.ts; an approval by someone who cannot write must not satisfy a protected default branch's own-approval rule. Suggested: a builder brief for core permission work (mason or torque).