You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A failure report links the most recent session's log, not the one that caused the failure #911
When a Run or Spec run fails because of one session, its failure report links a different session's log. The Day shift then opens the wrong transcript to find out why.
Evidence
Spec run #776's failure report on stephens, 2026-10-20 20:27:35 UTC:
The refused session is .../776-20261019T174001+0000~LJmxIJboDFKg513f-security-review.jsonl, which ran 15:51-15:56 UTC and ended with turn.failed ("This content was flagged for possible cybersecurity risk"). repair-2 was a later CI-fix Repair (19:16-19:18) that ended normally. The Command log's closing session log: line names repair-2 as well.
Category: bug Summary: A failure report's Session log names the session the failure came from, not the most recent session
Current behavior:
When a Run or Spec run fails, the terminal report, the Command log's closing session log: line and the Run notification give one Session log path. For #776, whose cause was a refused Security review, that path was the last session to run (a later CI-fix Repair), not the Security review.
Desired behavior:
The Session log in a failure report is the log of the session the cause came from. That covers a refused or incomplete Security review, a Repair that failed, a Spec review that failed, and an implement session that failed.
When the cause comes from no session (CI red with Repairs exhausted, a Declined CI fix, the upstream-move budget, a Harness check, git or GitHub errors), the report either names the most recent session or says no single session caused it. Pick one, apply it consistently, and document it in the guide where the failure report is described.
A cause that comes from an earlier session held to the end (a Security review hold reported only after Delivery finishes) still points at that earlier session.
The Run notification gives the same path as the terminal report.
Key interfaces:
Where the failure report's Session log is chosen, likely tracked as "the current or last session" during a Command.
Where a Security review's outcome becomes a hold (the Security review Outcome): it needs to carry its Session log with it.
The terminal report, the Command log's closing lines and the Run notification body.
Acceptance criteria:
A test with a refused Security review followed by a Repair: the failure report and notification name the Security review's Session log.
A failing Repair: the report names that Repair's log.
A cause with no session behind it follows the documented rule.
Activity
JacobStephens2 commentedon Oct 20, 2026
Agent Brief
Category: bug
Summary: A failure report's Session log names the session the failure came from, not the most recent session
Current behavior:
When a Run or Spec run fails, the terminal report, the Command log's closing
session log:line and the Run notification give one Session log path. For #776, whose cause was a refused Security review, that path was the last session to run (a later CI-fix Repair), not the Security review.Desired behavior:
Key interfaces:
Outcome): it needs to carry its Session log with it.Acceptance criteria:
cargo test,cargo clippy --all-targets -- -D warningsandcargo fmt --checkpass.Out of scope: