Skip to content

Backlog capture: housekeeping path has no author check — an operator-authored PR passed four reviewer rounds in a hub with a routed implementer #387

Open

Description

@davison

Observed on radiusred/tradedesk-miner PR #27 (2026-10-06), protocol 2.1, CLI v2.1.0.

What happened. The operator's primary session (coordinator seat, ~) authored and pushed a housekeeping PR itself — a tool-defined Cargo.lock refresh — in a hub whose implementer seat is routed to app:radiusred-cody. The reviewer (app:radiusred-checky) reviewed it four times under the housekeeping clause (tool named → rerun → byte-identical → approve) and never flagged the author. The merge then needed an org-admin bypass, because the operator is not the ruleset's bypass actor; the implementer App is. The coordinator contract's Never list already says "push" and "merge", so the author was in breach — but the protocol's own fence did not catch it.

The gap. SPEC §4 says of the light path: "no verb gates the merge, so the contracts (§7) are the fence." The reviewer contract's housekeeping test is three items — the tool is named, the diff is the tool's output and nothing else, no Decision to write — and none compares the PR author with the routing table. SPEC §4's tier table speaks of "the PR authored by someone else (an App-held seat, a colleague)" without saying that when the implementer seat is routed, that seat is the author. The implementer contract does say the implementer authors and rebase-merges housekeeping ("you rebase-merge it yourself"), but nothing on the reviewer's or coordinator's side enforces it, and gh codecrew status does not surface an open PR on the default branch by a non-seat principal.

Suggested fixes (any or all).

  1. Reviewer contract, Housekeeping PRs: a fourth check — the author: when gh codecrew role implementer resolves to app:/user:/team:, the PR author must be that holder (or the doc-synthesizer for the milestone record); an operator-authored housekeeping PR in a routed hub is a finding: request changes saying the implementer seat authors it.
  2. SPEC §4: state it outright — the housekeeping PR's author is the implementer seat's holder when routed; the operator authors only in pure solo.
  3. Coordinator contract: name housekeeping explicitly under Never ("…including a housekeeping PR; dispatch the implementer for it").
  4. CLI: status lists open PRs to the default branch whose author is not a routed seat's holder (author not a seat), so the coordination layer sees it before the review does.

Evidence: radiusred/tradedesk-miner#27 and its four reviews; the ruleset bypass actor on require-lint is App 3163997 (radiusred-cody).

Activity

  1. changed the title [-]Housekeeping path has no author check: an operator-authored PR passed four reviewer rounds in a hub with a routed implementer[/-] [+]Backlog capture: housekeeping path has no author check — an operator-authored PR passed four reviewer rounds in a hub with a routed implementer[/+] on Oct 6, 2026
  2. davison commented on Oct 6, 2026

    @davison
    ContributorAuthor

    Assessed 2026-10-06; held as a capture under the 2.1 bedding-in rule.

    Verified against radiusred/tradedesk-miner#27: author and merger are the operator, four radiusred-checky reviews (three on red checks and the one-PR-per-run rule, one approval on a byte-identical rerun), hub routes implementer to app:radiusred-cody and coordinator to ~. The reviewer did what its contract asks; the contract asks three things and the author is not one of them.

    The deduction that grounds fix 2. SPEC §4 says the housekeeping PR's author rebase-merges it. The coordinator contract says the coordinator never merges. So in a hub whose implementer seat is routed, an operator holding ~ as coordinator cannot coherently author a housekeeping PR: authoring obliges a merge the contract forbids. The admin bypass was the mechanics noticing what the contracts did not. Fixes 1 and 3 follow from stating that in §4.

    Cross-links.

    Available now without a protocol change. A hub may extend the reviewer contract through its own .codecrew/roles/reviewer.local.md (SPEC §7). tradedesk-miner can add the author check there today.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions