Repository navigation
Closed
Labels
enhancementNew feature or request
Description
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 fromTicketBoard::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 theTickets: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 theTickets:lines and theCommand logalready carry it. - This covers every reason
standingcan 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 thespec_run.rstests and insrc/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 quotedTickets not donetext 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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity