Skip to content

Check the Security review's Harness at preflight and fall back to the default Harness when it can't be used #975

Closed

Description

@JacobStephens2

This was generated by AI during triage.

On 2026-10-21 on thirdshift, five Pickup runs (#924, #936, #947, #953, #288) each spent 30–60 minutes implementing and then failed at their Security review. security.harness = "grok" sent the review to Grok Build, which wasn't signed in on that host, so each review session ended after 0 seconds. The Runs' own Harness, codex (harness.default), was working the whole time. #974 covers the failure cause, which hid the reason.

Nothing checked the review's Harness before the work started: a Run's preflight checks only the Run's own Harness, and only its PATH and model catalog, not whether it is signed in. And when the review's Harness failed, nothing tried another one.

The maintainer has decided:

  • A Run checks at preflight that its Security review's Harness can be used.
  • The fallback for the Security review is the default Harness.

Activity

  1. added
    enhancement
    needs-triage
    on Oct 21, 2026
  2. JacobStephens2 commented on Oct 21, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement
    Summary: A Run checks its Security review's Harness at preflight, and the review falls back to the default Harness when that Harness can't be used

    Current behavior:
    A Run that will make a Security review checks only its own Harness at preflight, and that check covers only PATH and the model catalog. The review's Harness, which security.harness can make different, isn't checked until the review session starts, often an hour later. If that session fails, the Run fails.

    Desired behavior:

    1. Sign-in is part of a Harness check. Each Harness says whether it is signed in, using its CLI's own non-billed status command where it has one (claude auth status, codex login status). Where the CLI has none (Grok Build today), use any check that starts no billed session. If there is none, the check passes and step 3 covers it.

    2. Preflight. A Run that will make a Security review also checks the review's Harness, with the same PATH, model and sign-in checks, before any session starts.

      • If that Harness is the default Harness (harness.default, or Claude Code when blank), a failed check fails the Run at preflight with the Harness's reason, as a failed check of the Run's own Harness does.
      • Otherwise, a failed check makes the review use the default Harness, with its [harness.<name>] Model and Effort. stderr gets one warning: line naming both Harnesses and the reason, for example warning: Security review on grok can't be used (not signed in); reviewing on codex, the default Harness. If the default Harness also fails its check, the Run fails at preflight.
    3. At review time. If the review session on a non-default Harness fails before its first turn with a Harness error (no turns, no tokens, a failed result with an error), the review runs once more on the default Harness, with the same warning: line. A failure on the default Harness, or a failure after the first turn, is not retried. It fails the Run with the cause A Security review whose Harness fails reports a generic cause that names neither the Harness nor its error #974 defines.

    4. Records. The Run's records and email name the Harness the review actually ran on, as they already do for the review's Harness.

    Key interfaces:

    • The Harness adapter's check(&self, choice: &mut Choice): gains the sign-in check for each Harness.
    • The Harness Choice and ChosenBy (including ChosenBy::SecurityConfig): which Harness the review uses and why, and the default Harness to fall back to.
    • A Run's preflight, where its own Harness is checked today.
    • The Security review session runner and its Outcome: the single retry on the default Harness.
    • docs/guide.md (Harness checks, security.harness, Security review) and GLOSSARY.md if a term changes.

    Acceptance criteria:

    • With security.harness set to a Harness whose check fails and a working default Harness, a Run passes preflight, prints the warning: line, and makes its Security review on the default Harness.
    • With the review's Harness equal to the default Harness and its check failing, the Run fails at preflight, before any session, with the Harness's reason.
    • With both the review's Harness and the default Harness failing their checks, the Run fails at preflight.
    • When a non-default review Harness passes preflight but its session fails before its first turn with a Harness error, the review runs once on the default Harness and the Run continues on that review's result.
    • A review session that fails after its first turn is not retried.
    • A Run with Security review off checks no review Harness.
    • The Claude Code and Codex checks report not signed in when their status commands say so, using fakes in the tests.
    • Tests cover each criterion and fail if the change is removed.

    Out of scope:

  3. added
    ready-for-agent
    and removed
    needs-triage
    on Oct 21, 2026
  4. JacobStephens2 commented on Oct 21, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Addendum to the Agent Brief: Spec runs. A Spec run hands its Security review, and the Harness that runs it, to every Ticket's Run (Asks::of_child_run copies security_review and security_review_harness). So with a security.harness that can't be used, every Ticket implements and then fails at its review. A failed Ticket stops only the Tickets it blocks. But in a Spec like #700, three Tickets block a fourth, and that fourth blocks the rest, so nearly every Ticket stops.

    Please also cover:

    • In a Spec run whose security.harness fails its check while the default Harness passes, every Ticket's Run reviews on the default Harness with the warning: line, and so does the Spec PR's Security review.
    • If the default Harness fails its check too, the Spec run fails at preflight, before any Ticket starts.
  5. added
    in-progress
    and removed
    ready-for-agent
    on Oct 22, 2026
  6. removed
    in-progress
    on Oct 23, 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