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 Security review whose Harness fails reports a generic cause that names neither the Harness nor its error #974
On 2026-10-21 on thirdshift, five Pickup runs failed with the same cause: #924, #936, #947, #953 and #288. #608 was about to be the sixth.
failed: Security review incomplete: session failed, ended early or omitted a valid final line; see Session log
The Runs were on codex gpt-6.1-sol, but security.harness = "grok" in the User config sent each Security review to grok, and grok wasn't signed in on that host. Each review session ended after 0 seconds, with 0 tokens. The Command log showed the real reason:
security-review: on grok · default model · default effort, chosen by security.harness in the User config
security-review: error: Not signed in. To authenticate without a browser, run:
grok login --device-code
The Session log held only that error ("subtype":"error_during_execution", "errors":["Not signed in. …"]).
The cause the Run reported, which the Activity log, the email and the Console show, says none of this. It doesn't name grok, and it reads like a broken or malformed review. With the Run on codex and the Recovery command saying harness codex … security-review, it looked like a codex problem. Following the Recovery command as written would have reviewed on grok again and failed again.
#607 fixed the cause for a review that deliberately ends incomplete. This is the other case: the Harness itself fails, before the session does anything.
Left out here: checking the Security review's Harness at preflight and falling back to the default Harness, which is #975.
Category: bug Summary: When a Security review's session fails with a Harness error, the Run's cause names the Harness and that error
Current behavior:
A Security review session that ends with a Harness error, such as Not signed in from grok, gets the same cause as a crash or a malformed final line: Security review incomplete: session failed, ended early or omitted a valid final line; see Session log. Session interpretation already pulls a diagnostic out of the failed result (its errors, or else its result text), and the Command log prints it as security-review: error: …. The Security review's Outcome throws that diagnostic away.
Desired behavior:
When the review session failed and session interpretation gives a diagnostic, the cause names the Harness that ran the review and the diagnostic's first line:
Security review on grok failed: Not signed in. To authenticate without a browser, run:
That's the first non-empty line, trimmed; the rest stays in the Session log. The cause flows unchanged to everywhere a Run's cause already goes: the Activity log, status, the email and the Console.
a session that failed with no diagnostic, ended early, or omitted a valid final line: the generic text
The Recovery command should no longer imply the review runs on the Run's own Harness. When the review's Harness was chosen by security.harness and differs from the Run's, the Recovery guidance says which Harness the review will use, so a retry isn't mistaken for a codex retry.
Key interfaces:
The Security review's Outcome::of and the error it receives: it needs the session's diagnostic and the Harness name, not only a bare failure.
Session interpretation's failure diagnostic (built from a failed result event's errors or result): reuse it rather than parsing the Session log again.
The Harness Choice and its ChosenBy::SecurityConfig: where the review's Harness, and why it was chosen, come from.
Acceptance criteria:
A Run whose Security review session ends with a failed result carrying errors: ["Not signed in. …"] on grok fails with a cause starting Security review on grok failed: Not signed in.
A review session that crashes with no diagnostic, or ends without a valid final line, still gets the generic cause.
A deliberate incomplete review and a Safeguard refusal keep their current causes.
When security.harness picked a different Harness from the Run's, the failure's Recovery guidance names the review's Harness.
Tests cover the first three criteria and fail if the change is removed.
Activity
JacobStephens2 commentedon Oct 21, 2026
Agent Brief
Category: bug
Summary: When a Security review's session fails with a Harness error, the Run's cause names the Harness and that error
Current behavior:
A Security review session that ends with a Harness error, such as
Not signed infrom grok, gets the same cause as a crash or a malformed final line:Security review incomplete: session failed, ended early or omitted a valid final line; see Session log. Session interpretation already pulls a diagnostic out of the failed result (itserrors, or else itsresulttext), and the Command log prints it assecurity-review: error: …. The Security review'sOutcomethrows that diagnostic away.Desired behavior:
When the review session failed and session interpretation gives a diagnostic, the cause names the Harness that ran the review and the diagnostic's first line:
That's the first non-empty line, trimmed; the rest stays in the Session log. The cause flows unchanged to everywhere a Run's cause already goes: the Activity log,
status, the email and the Console.These cases keep their current text:
Security review incomplete: <reason>Security review refused: …The Recovery command should no longer imply the review runs on the Run's own Harness. When the review's Harness was chosen by
security.harnessand differs from the Run's, the Recovery guidance says which Harness the review will use, so a retry isn't mistaken for a codex retry.Key interfaces:
Outcome::ofand the error it receives: it needs the session's diagnostic and the Harness name, not only a bare failure.resultevent'serrorsorresult): reuse it rather than parsing the Session log again.Choiceand itsChosenBy::SecurityConfig: where the review's Harness, and why it was chosen, come from.Acceptance criteria:
errors: ["Not signed in. …"]on grok fails with a cause startingSecurity review on grok failed: Not signed in.security.harnesspicked a different Harness from the Run's, the failure's Recovery guidance names the review's Harness.Out of scope: