Skip to content

Name why each Ticket is not done in a Failed spec run's Cause #1518

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Problem

When a Spec run fails because Tickets are not done, the Cause line in the notification lists only which Tickets are unfinished, not why. The reasons are in the Tickets: block further down the email. To learn why the run stopped, the reader has to cross-reference the two.

Example: Educational-Travel-Adventures/tourbot#1689, a Pickup run on 2026-10-27 on dev.etadventures.com:

Cause:        Tickets not done: #1690, https://github.com/Educational-Travel-Adventures/orchestration/issues/789
...
Tickets:
https://github.com/Educational-Travel-Adventures/orchestration/issues/789 unready: outside the Spec's repository
#1690 unready: labelled ready-for-human
#1691 landed with https://github.com/Educational-Travel-Adventures/tourbot/pull/1705

Desired behavior

The Cause names each unfinished Ticket with its reason:

Cause:        Tickets not done: #1690 (labelled ready-for-human), https://github.com/Educational-Travel-Adventures/orchestration/issues/789 (outside the Spec's repository)

Agent brief

  • The Cause comes from the error raised in land_tickets (src/spec_run.rs, bail!("Tickets not done: {}", ...)), built from TicketBoard::not_done (src/spec_run/ticket_board.rs), which returns names only.
  • The reason text already exists in TicketBoard::standing. Reuse it so the Cause and the Tickets: lines can't disagree. Don't write a second copy of the wording.
  • Each entry is the Ticket's name followed by its reason in parentheses. Drop the unready: prefix. Don't include the session trace path, because the Tickets: lines and the Command log already carry it.
  • This covers every reason standing can give (failed: , interrupted, blocked by …, in a cycle, has sub-issues, bug not reproduced, outside the Spec's repository, labelled ), not only the unready labels.
  • Update the expected Tickets not done: … strings in the spec_run.rs tests and in src/run_ending.rs. Add or adjust one test that covers an unready label and a Ticket outside the Spec's repository together.
  • Check the hand-written site pages (site/index.html, site/how-it-works/, site/architecture/) for quoted Tickets not done text and update it.

Out of scope

The run stays a Failed spec run, and its exit code, Claim and Recovery stay the same. Treating a run whose only unfinished Tickets wait on the Day shift as "waiting" rather than "failed" is #585.

Activity

  1. added
    enhancement
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Oct 28, 2026
  2. removed
    in-progress
    on Oct 28, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions