Skip to content

Refuse and bypass: task finish under uncounted App approvals #82

Closed

Description

@radiusred-cody

Goal

Fold back finding 10 on #73: task finish passed its gates and then GitHub refused the merge, so three numberguess PRs merged around the protocol's one merge point. Implement the R1 Decision: when the PR's only approving reviews are from App identities and GitHub's review decision still demands review, refuse with a precise machine code and guidance naming the supported configurations (bypass actor for solo operator-authored PRs; non-author human approval on the App's recommendation for App-authored PRs). Add an explicit bypass path inside the verb — permitted only when the ruleset lets the caller bypass — that performs the admin merge and records the bypass as a PR comment, keeping the audit trail in the protocol instead of around it. Tests ride along per #46.

Requirements

M5-R1

Plan

  1. tracker.PR gains ReviewDecision (gh's reviewDecision: empty when no rule, APPROVED when satisfied, REVIEW_REQUIRED when GitHub still demands review); PRInfo populates it. MergePRBypass joins the Tracker interface: rebase-merge with --admin.
  2. task finish: after the protocol's own review gate passes (non-doer approval or recorded operator confirmation), a REVIEW_REQUIRED decision refuses with refused[REVIEW_NOT_COUNTED] naming the supported paths from the R1 Decision — a non-author human approves on the reviewer's recommendation, or --bypass. With --bypass: the invoker must be a human identity (crew identities refuse — a bypass is an operator act), a **Merge bypass:** comment is recorded on the PR citing the R1 Decision, then the admin merge runs; if the ruleset lists no bypass actor GitHub's own rejection surfaces unchanged.
  3. The merge-path choice is extracted pure (mergeGate) and unit-tested per feat: request review from the reviewer-role holder #46; usage text, SPEC §6's task-finish row, and the identities.md "Known quirks" bullet (which said "verify before depending" — it now has the verified answer) updated in the same PR.

Ask-the-human points

None — implements the R1 Decision as 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