Repository navigation
Description
This was generated by AI during triage.
Problem
security.harness is set once per machine, in the User config. Every Command on that machine runs its Security review on that Harness, whatever repository it works on. Nothing on the command line can change that.
This came up on 2026-11-14, when Grok Build's balance ran out. The tourbot work needed Claude Code for its sessions and Antigravity (agy) for its Security reviews. The thirdshift and manager-tourbots work on the same hosts needed a different split. The cron lines could choose the tourbot Harness with harness claude, but its Security Harness could only change for the whole host. Setting security.harness = "agy" on factory therefore also moved the Security reviews for the thirdshift and manager-tourbots work there.
The request: the command chooses both Harnesses, and the command wins over the User config.
What already exists
- Default Harness: a command's
harness <name>(or--harness) already wins overharness.default. The guide says "the command wins, then the User config, then the default" (docs/guide.md, Harness section). Nothing is needed here beyond confirming it still holds whenharness.routesis set. - Security run: a
securecommand'sharness <name>already wins oversecurity.harness. The config comment says it applies "unless its command names one". - Security review: has no command-level choice. ADR 0021 considered "a command word for the review's Harness" and left it out because "the choice is about this machine's Harnesses … which is the User config's to say". This issue asks to revisit that, now that one machine serves several repositories that need different Security Harnesses.
Proposed behaviour
- A new command word, for example
security-harness <name>(or--security-harness), on every command that can run a Security review: a Ticket run,pickup,review,fix,architectwithout--plan-only, a Spec run and a Base fix. - Precedence for a Security review: the command's word, then
security.harness, then the Command's own Harness. This mirrors the existing order forharness. - On
secure, the new word means the same asharness. If a command names both with different values, it's an argument error, so the precedence is never ambiguous. - The review uses the chosen Harness's
[harness.<name>]Model and Effort, as ADR 0021 does today. - ADR 0021's fallback is unchanged. If the named Security Harness can't start, the review falls back to the Command's default Harness, with the same warning.
- A Spec run passes the choice to every Ticket and to the Spec PR's review. A Continuation or Recovery command reproduces it, which means the choice must now be recorded with the Command, because the User config no longer settles it.
- The Command log, the Session trace and the Run notification name the Harness the review ran on, as now.
Open questions
- Should there also be
security-modelandsecurity-effortwords, or is the[harness.<name>]section enough? - Should the word override
security.routestoo, or only the first choice before the routes are tried? - Is a repository-level setting a better fit than a command word? An example would be a
[security] harnessread from the repository's own config. Cron lines already set the Harness per repository, which favours the command word.
Acceptance criteria
thirdshift pickup base master harness claude security-harness agyruns implement sessions on Claude Code and the Security review on agy, on a machine whosesecurity.harnessisclaude.- A command without the word behaves exactly as today.
- ADR 0021 is amended, or a new ADR replaces its "command word" decision. The User config and Harness sections of
docs/guide.mddescribe the new precedence.
Activity
JacobStephens2 commentedon Nov 14, 2026
Investigation summary
This request reverses a recorded decision and leaves design questions open, so the Day shift must decide before an agent builds it. Once decided, it is a single Ticket; no split is needed.
Confirmed in the code (Base
main, 5372181)Flags::security_review_harness(src/asks.rs:186-198) takes the Security review's Harness only fromconfig.security_harness, "whatever the command'sharness,modelandeffortwords asked". The Run and the router read the same value:src/processes.rs:258andsrc/plan_usage.rs:308both callChoice::of_security_review(config.security_harness, &config.harness).securecommand'sharnessalready wins oversecurity.harness.Flags::security_harness(src/asks.rs:262-275) shows this, as the issue says.src/recovery.rs:198-253depends on that: it adds a line saying the Harness was "chosen by security.harness in the User config" and leaves the Recovery command without any security word. A command word means the Continuation or Recovery command (args::continuation) must carry it.Router::of(src/plan_usage/router.rs:78-125) routes only choices the User config made (ChosenBy::SecurityConfigorChosenBy::Routes). "A Harness or Model named by a command or a Step stays pinned": it keeps only its fallback toharness.defaultwhen it can't start. That is open question 2's answer if the existing convention is kept.src/console/start_controls.rs:334-336), and ADR 0026 requires/api/v1to do what the CLI can.Decisions for the Day shift
[security] harness. Recommendation: the command word, because cron lines already choose a Harness per repository. Record it in a new ADR that supersedes that part of 0021.security-modelandsecurity-effortwords? Recommendation: not now. The[harness.<name>]Model and Effort are enough, matching ADR 0021.security.routes? Recommendation: yes, it pins the review. Mark itChosenBy::Command, soRouter::ofskipssecurity.routes, the same way theharnessword pins ordinary sessions. ADR 0021/Check the Security review's Harness at preflight and fall back to the default Harness when it can't be used #975's fallback toharness.defaultstays.secure, what ifharnessandsecurity-harnessdiffer? Recommendation: an argument error, as the issue proposes.Ticket scope once decided
security-harness <name>/--security-harnesson every command that can run a Security review: Ticket run,pickup,review,fix,architectwithout--plan-only, Spec run, Base fix.Flags. Makesecurity_review_harnessandRouter::ofprefer it overconfig.security_harness.src/recovery.rs.ChosenBy's description (src/harness.rs:397), the Command log and the Session trace.docs/guide.md, then regeneratesite/docs.site/how-it-works/andsite/architecture/forsecurity.harnessand fix what they say.src/asks.rs(next toa_security_review_runs_on_security_harness_with_its_own_settings_whatever_the_command_asked) andsrc/plan_usage/router.rs. Cover the issue's acceptance case:pickup ... harness claude security-harness agyon a machine withsecurity.harness = "claude".Acceptance criteria as in the issue.