Skip to content

wait-for-pr-review: report workflow runs that wait for a maintainer's approval #2976

Open

Description

@josecelano-bot

Parent EPIC: #2003 - Overhaul: Automation Tools and AI Agent Guardrails

Goal

Make the wait-for-pr-review poller report when a pull request's workflow runs wait for a maintainer's approval, and when they start, so a waiting session can tell the maintainer once and be woken when the runs are unblocked.

Problem

A pull request from a fork needs a maintainer to approve its workflow runs after every push. This is deliberate (ADR 20260926142648_adopt_self_hosted_hetzner_runner_for_container_tests.md). The runs then show as action_required. The poller has no event for that state (checked on develop at 7bc30738a: the tool's code does not mention action_required). A session that waits for checks sees nothing happen, and nothing wakes it when the maintainer approves.

Proposed scope

  • Two poller events: checks_waiting_approval (runs of the head commit are action_required; carries the head sha) and checks_unblocked (the runs started).
  • The wait-for-pr-review skill says what to do on each: tell the maintainer once per head commit, then keep waiting.
  • To verify in the specification: that a background poller exiting really wakes the waiting session in the harness the repository uses.
  • Coordinate with any open defect of the poller (earlier notes name two: waiting without limit for a gh call that already exited, and a panic on a too-large --timeout-seconds; their issue numbers were not found).

This is item A2 of the maintainer's backlog for the autonomous PR review loop, which lives outside this repository. A1 was #2822.

Notes

  • Not started. The order among the sub-issues is decided when a slot is free. The specification and the EPIC table row are written when the work starts.
  • Filed by the EPIC Overhaul: Automation Tools and AI Agent Guardrails #2003 coordinator session (AI assistant, Claude Code) on 2026-11-19 at the maintainer's request, so the idea is not lost. The details were recovered from that session's earlier notes; the specification must check them again.
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