Skip to content

Activity Monitor: Adopt now and Reroute to another clanker for PRs waiting on a contributor's clanker #15082

Closed

Description

@clubanderson

Problem

A PR waiting on a contributor's clanker (e.g. #15038 "Returned to contributor · waiting on @Danathar", stage 072; also 071-needs-author) offers only Hold / Re-evaluate / Mark needs-human / Open / Copy in the ⋯ row menu. An operator who can see the contributor's hive is gone (or stuck) has no way to end the wait short of waiting out the offline grace window and the maintainer policy.

Request

Two operator row actions (via runRowAction and the decision API POST /api/repos/{o}/{r}/items/{n}/decision):

  1. Adopt now — hive takes it over — forced adoption. Consequence line: "closes the contributor's PR after hive opens its copy; their commits + sign-off are preserved". Confirm dialog with don't-ask-again. Backend: decision adopt with force: true runs the existing supersede adoption path immediately regardless of online state and maintainer policy; records last_operator_action{action:"adopt-now"}; posts the standard hive:adopted marker with reason=operator-forced by=@login; if the clanker is online the adoption comment tells the author the maintainer took it over. Toast: "Adopted → #N (hive's copy), contributor PR will close when #N merges".
  2. Reroute to another clanker — submenu listing currently-online registered contributor clankers (login, hive name, online since, current load) plus "any available". Backend: decision reroute with to: <login|any> re-dispatches the PR's follow-up work as a kick targeted to that clanker's queue using the existing contributor work-offer mechanism. Author notified by hive:rerouted to=@X by=@op reason=…; row shows a "rerouted → @x" pill with presence; if the target does not pick it up within governor.reroute.pickup_timeout (default 30m) it falls back to Adopt now with an alert. With no clankers online the item is disabled: "no clankers online — use Adopt now".
  3. Both also in the needs-human popover options (decision_needed.options[]) when the blocker is a waiting-on-contributor condition, and in the delegated "Let hive decide" rules (hive picks adopt-now when grace already elapsed).
  4. Go tests for both decision handlers, node fixture tests for menu items / consequence lines / disabled reasons / toasts.
  5. Docs: dashboard-sections.md, labels-and-control-signals.md, operator-reference.md.

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 28, 2026
  2. added 8 commits that reference this issue on Oct 28, 2026
    4d0c845
    00b94d9
    7170f43
    87d2003
    990c5e3
    3e55e79
    9627c2d
    f4fc81b
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

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions