Skip to content

Should a successful Run notification say a session's background work was stopped and resumed? #2238

Open

Description

@JacobStephens2

What the finding is

The Spec review of pull request #2237 (for #2231) found a possible gap. A Run notification for a successful Ticket run does not say that a session's background work was stopped at Claude Code's background wait ceiling and then resumed.

Evidence

  • An implement session that ends with background helpers still running leaves its commits pushed but no PR, failing with 'no PR found' #2231's Desired behaviour 2 says: "When the Claude harness reports 'Background tasks still running … stopping them', the Command log and Run notification say the session's background work was stopped at the ceiling. If the Ticket then fails, the failure cause names it rather than only no PR found."
  • Its acceptance criterion is narrower: "A Claude session whose output includes the background-tasks-stopped line has that fact in the Command log and, on failure, in the cause."
  • Recover the pull request an implement session left unopened (#2231) #2237 meets that criterion:
    • The Command log says implement: background work was killed as the session ended; resuming it once.
    • On failure, the cause names the stopped work, and so does the Run notification's Cause line.
    • On success, though, the Run notification says nothing about the Resume or the ceiling. rg -n -i "killed|resum|ceiling" src/notification.rs finds nothing, and the notification's account has no field for session Resumes.

Raised by

The Spec review of #2237 (branch issue-2231).

Why the call is not the implementing session's

The Desired behaviour and the acceptance criterion disagree on whether a successful run's notification should mention this. Adding it would need new plumbing from sessions into the Run notification's account, for Resumes generally, not only ceiling stops. That changes what every successful Run notification can say. Whether that's wanted is a product decision for the Day shift.

Activity

  1. added
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 15, 2026
  2. JacobStephens2 commented on Nov 15, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Checked against main (dbf17d2). The finding holds as stated.

    Confirmed facts

    Inference: if success notifications are to mention it, the right unit is Resumes in general. Every session Step can get one, and a Resume that itself ends killed is currently recorded only in a progress line. Reporting only ceiling stops in implement sessions would make notifications inconsistent across Steps.

    Decision needed from the Day shift

    • A (recommended): keep things as they are. Successful runs keep the Resume in the Command log only. Edit An implement session that ends with background helpers still running leaves its commits pushed but no PR, failing with 'no PR found' #2231's Desired behaviour 2 to match its acceptance criterion (Command log always; cause and notification Cause line on failure). Then close this issue. No code change.
    • B: add a Resumes section to the notification. Make this a Ticket: record each Resume, its Step label, the killed work and whether that Resume also ended killed. Carry this from sessions into the Run notification's account, including child Ticket runs reported by Spec, Pickup and Architect runs. Render it on every outcome. Update GLOSSARY.md Run notification and Resume, docs/guide.md (then regenerate the site docs) and any hand-written site pages that describe notification contents.
    • C: implement sessions only. Narrower plumbing, but notifications would differ by Step.

    If B or C is chosen, relabel this issue ready-for-agent with the chosen scope, or split it into a Ticket, after #2237 lands, since it builds on #2237's killed-work plumbing.

  3. added
    enhancement
    ready-for-human
    and removed
    in-progress
    on Nov 15, 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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions