Skip to content

Fall back to the default Harness when a Security review cannot start - #1116

Merged
JacobStephens2 merged 5 commits into
mainfrom
issue-975
Oct 23, 2026
Merged

JacobStephens2 merged 5 commits into
mainfrom
issue-975

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

preflight → check Command Harness and Security review Harness
  review unavailable → warn → check configured default Harness
Security review → startup Harness error with no work → retry once on default
  turns, tokens, model refusal or default failure → no retry
Spec run → apply the checked review choice to every Ticket and the Spec PR

Claude Code and Codex check sign-in with their non-billed status commands. Fallback uses the default Harness's configured Model and Effort; each attempt keeps its own records and email attribution. The guide, glossary, ADR and hand-written site pages describe the new behavior.

Closes #975

Evidence

  • Before: the signed-out preflight regression continued into a session; the unusable-review regression failed preflight; the Spec regression reviewed only the Spec PR. Each was observed failing before its implementation change.
    After: focused regressions pass for sign-in, preflight fallback and per-Ticket fallback. The review suite also covers no retry after turns/tokens, no retry on the default, and records/email for both attempts.
  • Before: the Spec reviewer's exact Agy classification and Run regressions both failed, allowing fallback after one reported turn.
    After: cargo test --test security_review an_agy_review_after_a_reported_turn_is_not_retried -- --exact passes; both regression tests are retained.
  • All CI checks pass on 13495a7, including the full Linux and macOS Rust suites, formatting, clippy, Python, site, Console and builds. cargo check --tests and focused Harness/Pickup regressions also pass locally.
  • Final local NEXTEST_TEST_THREADS=8 /usr/bin/time -p scripts/affected-tests main: all 43 site tests pass. Rust stopped after 513 passing tests on otlp_endpoint::a_stalled_receiver_cannot_delay_a_session_by_its_span_count: baseline 6.159s, stalled 8.414s, 0.26s beyond its allowance. Its exact isolated command, cargo test --test otlp_endpoint a_stalled_receiver_cannot_delay_a_session_by_its_span_count -- --exact, passes. The test and OTLP sender match main; no timing thresholds changed. Selector wall time was 601.11s, compilation included; Rust execution took 480.223s. Successful CI for this exact head supplies full Rust coverage, so the full suite was not repeated afterward.

Seams under test: the thirdshift CLI with fake external Harness commands (preflight, Security review execution, Spec Ticket dispatch, records and email); Harness interpretation of external session streams.

Review against main pinned at 99417ee: Standards found two P3 maintainability issues, both addressed; Spec found one P2 Agy turn-count issue, reproduced and fixed. Both reviewers inspected the initial 27 changed files, including generated HTML. A late CI-driven test-only update adds tests/pickup_run.rs: that file was left unread by both Standards and Spec after their one coverage follow-up. The changed-file total is 28. Generated-output exclusions: none.

Merge Danger

Door: two-way

Blast Radius: Runs

Harness preflight now rejects signed-out Claude Code/Codex. Requested Security reviews also run on Tickets, adding those review sessions. Only a non-default review's startup Harness error receives one fallback; other sessions keep their Harness.

Unaddressed findings

Standards

None.

Spec

None.

Security

None. Reviewed the Harness fallback change against 99417ee: sign-in checks run fixed argv with no shell, the review retry happens once, before the first turn, and never on a safeguard refusal, and the fallback re-checks the default Harness. No introduced findings.

Built with codex · gpt-6.1-sol · xhigh

Security review outcome

No unaddressed introduced findings.

@JacobStephens2
JacobStephens2 merged commit c8fa8b9 into main Oct 23, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-975 branch October 23, 2026 00:27
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant