Skip to content

Cluster: Lead control loop: act on stuck work, review-aware landing, lead-owned workers #146

Open

Description

@n0rpan

Priority: P0 (v0.2.1) · Members: 19 · from the issue triage of 2026-11-19

Goal (what the user sees)

The lead notices stuck work and acts on it or escalates, never lands a head with an open review finding, and starts, stops and assigns workers itself.

Acceptance

  • The five stuck signals (main red, no merge for 45 minutes, over-age queue, queued run, unanswered ask) are visible in the lead view and each one triggers an action or an escalation before the lead waits again.
  • Enqueue, retry and manual queue paths all refuse a head with unresolved review threads; the sweep lists those threads per green PR.
  • The lead starts and stops workers, picks the model per role from owner settings, and gets a delivery receipt for every dispatch.
  • A four-hour run needs no manual intervention (M1 kill test in oxstack/ox-llm#1214).

Proposed PRs (each up to about 800 lines)

PR 1: Stuck-work signals and actions

Wire the five signals into the lead view and the loop; act or escalate before waiting; alert on main CI only for required checks.
Suggested author: oxa worker.

  • oxstack/ox-llm#1391 — Wire main-red, 45-min no-merge, over-age queue, queued-run and unanswered-ask signals into the protected Lead view; one authenticated live readback.
  • oxstack/ox-llm#1451 — Wire stuck signals into the Lead loop: per-PR failure reason, assign a worker to 'fix required CI', escalate only when nobody can take it.
  • oxstack/ox-llm#1575 — Lead must act on or escalate a stuck signal before it waits again (RP9b).
  • oxstack/ox-llm#1634 — Alert on main CI only for failed required checks at the exact head.

PR 2: Review-aware landing

One severity-aware thread check for every queue path, unresolved threads in the sweep, no action on unobserved queue entries, incomplete rows marked.
Suggested author: Claude.

PR 3: Lead owns workers

Land oxstack/ox-llm#1529; model per role with fallback, bounded dispatch receipt, explicit repository for waits, quota reserve before optional reads.
Suggested author: Claude designs, oxa worker implements.

PR 4: Routine failures handled

The remaining routine-failure behaviours and script rows from #13, with fake-GitHub tests.
Suggested author: Claude designs, oxa worker implements.

Other members (epics, trackers, decisions, likely delivered)

How to use this issue

Fix the members through the PRs above, not one by one. A PR names this issue and the members it closes. Members carry the cluster-member label.

Activity

  1. transferred this issue fromon Nov 26, 2026
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