Skip to content

watch: focus PRs and stall detection — a blocked PR with a silent lane looks identical to a healthy one #91

Closed

Description

@lx-0

Observation (meinKontext v2 coordinator run, 15 Nov 2026)

PR #1896 in context-mcp (a local page-sweep harness that the Atomic Design chain S03a… waits on) sat for about an hour in a state that neither ytstack-watch nor PR Watch flagged as needing action:

  • r1 review was blocking at ~13:40 UTC. The lane then spent the next hour in a long local run (a 23-minute self-comparison) and pushed nothing.
  • At ~14:30 #1867 merged and #1896 became CONFLICTING. PR Watch reported the conflict on every tick, together with ~15 other PRs, so the coordinator relayed "merge main" and treated the PR as "waiting on the lane".
  • Nothing distinguished "the lane is working on it" from "the lane is stuck / silent". The operator had to escalate twice ("1896 hat merge conflicts checkst du sowas nicht???", "bitte 1896 intensiver verfolgen").
  • The coordinator only noticed the stall after the operator's second message. A driver then found the lane stuck with 7 Chrome processes and an unpushed commit, and took the branch over in a separate worktree.

The watchers have one priority for every PR. ytstack-watch --pr N --interval S prints only on change, so a PR on which nothing happens is exactly as silent as a PR that is fine.

Proposal

  1. Focus PRs. Add ytstack-watch --focus N or a PR Watch register --focus: a shorter interval, and the PR is listed first and separately in the per-prompt evidence instead of among 15 others.
  2. Stall detection. Emit a STALL line when a PR has been in an actionable state with no new head for T minutes (default 15, configurable). Actionable states: blocking review, conflict, red check. A blocking review followed by silence is the most important case.
  3. Owner liveness. When LANES.md (or the frontier) names the lane that holds the PR, include the time since that lane's last commit or last report in the STALL line, so the coordinator can tell "working" from "gone".
  4. Coordinate skill. coordinate Step 7 should say: on STALL, ask the lane for an ETA once; if no head appears within the next window, hand the branch to a fresh worker (ytstack-frontier release + claim), instead of relaying the same instruction again.

As a stopgap the coordinator ran a hand-written Monitor loop that combines ytstack-watch --once with a thread count and a 15-minute stall line. That loop is the shape this proposal would make standard.

Related: #83 (core loop bypassed), #76 (explicit usage instructions).

🤖 Generated with Claude Code

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