Skip to content

The Inbox shows a Pass and the Spec run it dispatched as two Ready for review rows #1428

Closed

Description

@JacobStephens2

This was generated by AI during triage.

A Pass whose dispatched Spec run ends ready for review shows up twice in the Inbox's Ready for review section. The outer Pickup run gets one row, and the Spec run it dispatched gets a second one, both for the same issue and pull request.

Seen on the Console at /?section=ready-for-review and in thirdshift status (0.16.5; the code is unchanged on main at v0.16.5-3-g73deb5e9).

Console: Ready for review 2, with two identical rows. Both read "Ready · Educational-Travel-Adventures/orchestration#741 · Spec: Tourbot Health page on the status dashboard · ready for review", and each has its own Dismiss button.

thirdshift status:

Ready for review:
Pickup run Educational-Travel-Adventures/orchestration#741 … pull/749 · Ready · … · ready for review
  Spec run Educational-Travel-Adventures/orchestration#741 … pull/749 · ended · … · ready for review
    Ticket #742 · merged
    …
Spec run Educational-Travel-Adventures/orchestration#741 … pull/749 · Ready · … · ready for review
  Ticket #742 · merged
  …

That contradicts the Inbox's own note: "Each outer Command counts once, in any section: a Spec run's Tickets, and the run a Pass dispatched, are part of its run."

Cause: when the Inbox evaluation builds its observations, it chains every ready dispatched run in as a row of its own, next to its outer Command. That's right when the outer Pass isn't ready itself. Here the Pickup run also records outcome ready for review with the same pull_request, so the same work gets two rows.

Nearby but not duplicates: #936 (Stages/Lanes head a Pickup run and its Run identically) and #1083 (merged PRs lingering in Ready for review).

Activity

  1. JacobStephens2 commented on Oct 27, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: bug
    Summary: A ready dispatched run gets its own Inbox row even when its outer Pass is already in Ready for review for the same pull request

    Current behavior:
    The Inbox evaluation lifts every dispatched run whose facts are ready (outcome ready for review and a pull_request) out of its outer Command and into a row of its own. A Pickup run that dispatches a Spec run ends with the same outcome and pull request as that Spec run. Both then land in Ready for review, so thirdshift status and the Console list the work twice. The Console header counts 2, and each row has its own Dismiss button.

    Desired behavior:
    Each outer Command counts once, as the Inbox note promises. A ready dispatched run gets its own row only when its outer Command is not itself in Ready for review for the same pull request. When the outer row is there, the dispatched run stays nested under it, as it already appears now, and does not appear again at top level. Any case that relies on lifting a ready dispatched run out today keeps working: an outer Pass that is not ready but dispatched a ready run still surfaces that run.

    Key interfaces:

    • The Inbox evaluation (evaluate over Captured observations, where dispatched runs are chained in by facts().ready): this is where the duplicate enters.
    • Facts::ready: whether a Command counts as ready for review. Compare pull requests so that an outer and a dispatched run naming the same PR collapse, and different PRs do not.
    • Whatever feeds the Ready for review count in the Console (ready_for_review()), the thirdshift status text, and Dismiss row selectors. All three should follow from the single row, with no separate fix in each.

    Acceptance criteria:

    • A regression test: a Pickup run with outcome ready for review and PR X dispatched a Spec run with outcome ready for review and PR X. The Inbox yields exactly one Ready for review row, the Pickup run's, with the Spec run nested under it.
    • A test: an outer Pass that is not ready but dispatched a ready run still yields a Ready for review row for the dispatched run (existing behavior is kept).
    • A test: an outer ready Command and a dispatched ready run on different pull requests still yield two rows.
    • The Console's Ready for review count and the "Pull requests are waiting" summary match the deduplicated rows.
    • Dismissing the remaining row clears the item. No orphaned second row reappears.

    Out of scope:

  2. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Oct 27, 2026
  3. removed
    in-progress
    on Oct 27, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions