Skip to content

Require the reviewer-role holder's review at task finish #91

Closed

Description

@radiusred-cody

Goal

Implement the model-review Decision on #73 (operator direction, 2026-08-25): task finish's review gate requires an approving review from the reviewer role's holder specifically — App or human — rather than any non-doer approval; other approvals coexist but do not satisfy the gate. Pure solo (reviewer ~, operator-authored PR) keeps the --operator-confirm path, and roles/implementer.md plus the AGENTS.md scaffold strongly encourage dispatching a clean-context reviewer session (optionally a different harness) whose findings land as a PR comment before confirmation. SPEC §6/§8 updated to state the norm. Tests ride along per #46. Sequenced after #90 (both touch task.go).

Requirements

M5-R1

Plan

  1. task finish: when the reviewer role routes to a distinct holder (App or username — anything but ~), the review gate requires an approving review from that holder specifically: each approving login is tested with HoldsRole(login, "reviewer") (the CLI's existing normalization). Absent, refuse refused[NO_HOLDER_REVIEW] naming the holder — --operator-confirm does not stand in when a distinct holder exists (the mandate half of the Decision). With the holder ~, behavior is unchanged: any non-doer approval, or the solo confirmation path.
  2. The check is extracted pure (holderReviewed(approvedBy, holds)) and table-tested per feat: request review from the reviewer-role holder #46, alongside refusal-path tests.
  3. Encouragement half: roles/implementer.md and the AGENTS.md scaffold say that in pure solo the strongly encouraged form is a dispatched clean-context reviewer session (optionally a different harness) whose findings land as a PR comment before --operator-confirm.
  4. SPEC §6's task-finish row states the holder requirement; §8's review layer gains the norm sentence.

Ask-the-human points

None — implements the model-review Decision recorded on #73.

Activity

  1. added
    cc:task
    on Aug 25, 2026
  2. radiusred-cody commented on Aug 25, 2026

    @radiusred-cody
    ContributorAuthor

    Started by @radiusred-cody[bot].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cc:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions