Skip to content

PR watch under load: skipped checks read as action_required, stale heads, a block per hook event, review-lessons on every merge #61

Closed

Description

@lx-0

Field report from a coordinator session that ran PR watch (0.9.1, then 0.9.2) for about three hours with 8 to 12 open pull requests and 20 background agents. The watch is useful: merge notices and conflict notices arrived once and on time, and it replaced a hand-made monitor that expired every 30 minutes. Four things made its output hard to act on.

1. Skipped checks are reported as action_required.
Almost every watched pull request showed action_required on every turn, with reasons such as Check documentation: skipped; Check content: skipped; Check archive-copy: skipped; +20 more. In that repository a change-class workflow skips most jobs on purpose, so a skipped check is the normal green state. A pull request that was green, reviewed and queued for auto-merge read the same as one that needed work. Proposal: a check with conclusion skipped (or neutral) is not a reason; action_required only for a failed required check, a merge conflict, an unresolved review thread or a missing required check after the run finished. A pull request whose checks are still running is waiting, not action_required.

2. The status block lags the head.
After a push the block kept naming the old head for several worker ticks, sometimes with the old head's conflict: one pull request was listed as Merge conflict with base branch on a head that had been replaced by a clean merge minutes earlier, another showed the head from two pushes ago. The line says "re-fetch before acting", but a coordinator reading ten lines per turn starts acting on the conflict line. Proposal: when the stored head is not the pull request's current head, say head moved, not yet polled instead of repeating the old head's findings; and poll a pull request at once when the session that owns it pushes to it.

3. The whole block repeats on every hook event.
With background agents reporting, the hook fired several times a minute, and each firing injected the full list of all watched pull requests, unchanged. Over the session that was several hundred copies of the same ten lines in the context. Proposal: inject the block only when a line changed since the last injection in this session, plus the one-time actionable notices; otherwise nothing, or a single line PR watch: no change (N watched).

4. review-lessons is suggested for every merged pull request.
Every merge produced PR merged; if this project declares own reviewers, run ytstack:review-lessons for #N, including documents-only pull requests and ones with no bot review at all. In three hours that was about fifteen suggestions; the one run that was done found no bot finding and produced its lesson from a CI failure instead. Proposal: suggest it only when the merged pull request has bot review findings that no own reviewer raised (the watch already has the reviews), or batch it: one suggestion per day or per N merges naming the pull requests worth a look. bin/ytstack-upkeep could carry the batch.

Smaller observations

  • A session keeps the skill text it loaded: this session was started on 0.7.0 and still followed the 0.7.0 coordinate after the plugin went to 0.9.2. The changelog says this for hooks; it holds for skills too, and resume-session or the SessionStart hook could say "plugin updated since this session started: reload the skills you use".
  • coordinate asks to rotate after one compaction. The session ran through two because open lanes and a production incident never left a quiet moment. A rotation that can be done in one step while lanes run (write handoff, register the watches to the new session, hand the background agents' addresses over) would make the rule followable under load.

🤖 Generated with Claude Code

Activity

  1. lx-0 commented on Nov 14, 2026

    @lx-0
    MemberAuthor

    For completeness, what worked well in the same session, so the report is not only the problems:

    • PR watch delivery, once correctly attributed (0.9.2). Merge and conflict notices arrived once each and on time, including the merge of a production manifest change the session was waiting for. register --all-open picked up the pull requests that subagents had opened in one call. The watch replaced a hand-made polling monitor that expired every 30 minutes.
    • review-lessons. One run on a merged pull request produced a concrete checklist line for the project's code reviewer role ("a path, glob or pattern in build, bundler, CI, lint or deploy configuration that still names a moved or deleted location", rated high), recorded as a question, answered, and merged as its own small pull request. The path from finding to rule took about twenty minutes.
    • ytstack-questions. Recording the reviewer-role question with options and a recommendation, and answering it with the decider named, worked as described.
    • Risk routing is adopted in the project's review rules, but every change there routes to person (as noted in Make the factory tools explicit in coordinator mode: risk routing, PR watch for subagent PRs, release watch, version awareness #54), so it has not saved a review yet.
    • 0.9.1 and 0.9.2 turnaround. Both fixes (subagent pull requests not watched; a session id stored without the claude: prefix) arrived within hours of the reports and solved the reported cases.

    One follow-up from the project side: it converted its standing instructions to one file per entry today (.ytstack/standing/, with STANDING.md as an index), which is the shape #57 describes. The coordinate skill still reads only STANDING.md.

    🤖 Generated with Claude Code

  2. lx-0 commented on Nov 15, 2026

    @lx-0
    MemberAuthor

    Shipped: points 1-4 in 0.10.0 (PRs #62, #64), the two smaller observations in 0.11.0 (version notice after a plugin update; one-step coordinator rotation, PR #66).

    🤖 Generated with Claude Code

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