Repository navigation
Description
This was generated by AI during triage.
Problem
Codex's cyber safeguard ("This content was flagged for possible cybersecurity risk…") refuses defensive security work. On 2026-11-13 it failed four Pickup runs on Security findings in one night: tourbot #1926, manager-tourbots #111 (twice, 04:58 and 05:07) and manager-tourbots #114 (06:49). All four hosts run harness.default = "codex" with [security] harness = "grok".
The Command logs show every refusal came in the implement session, a few seconds after it read the issue body. None came in the Security review. security.harness doesn't help here: since ADR 0021, it chooses the Harness for a Security run and for every Security review, but never for the session that implements a fix. Each refusal leaves agent-failed, which counts toward pickup.failure_limit, so a queue of Security findings can stop a repository's Pickup runs. #1972 describes the same thing for Triage runs.
The refusal isn't consistent. A Fix run on factory, also on Codex, then completed #111 as PR #112.
What the Day shift raised
- Route security Tickets to the security Harness. A Ticket run on an issue labelled
security-fixorsecurity-findingruns all its sessions onsecurity.harness, not just the review. ADR 0021 calls itself "the first step towards choosing a Harness per session" and left a per-session map "for later: only the Security review has needed one so far". The implement session now needs one too. - Reroute after a refusal. When a session ends in a Harness safeguard refusal (the typed
SafeguardRefusal), retry that session once on a fallback Harness, for examplesecurity.harnessorharness.default, before failing. ADR 0021 rejected this option ("still spends a refused session first"), and Check the Security review's Harness at preflight and fall back to the default Harness when it can't be used #975 kept refusals out of the start-up fallback. Today the Security-review fallback deliberately passes over aSafeguardRefusal. This option would reverse that decision for refusals specifically. - Don't fail the Run on a refused review. Add a setting under which a Security review that the Model refused does not fail the Run. The PR would still be delivered ready for review, with the refusal plainly stated in the PR and the Run notification, and no Self-merge. This pulls against Run the Security review on security.harness when it is set #910's concern, where a Spec reached the Day shift without a review, so the setting would need to stay off by default and stay visible whenever it applies.
These options aren't exclusive. Option 1 prevents the refusal at the source. Option 2 recovers from refusals in any session, including Triage (#1972) and Security reviews. Option 3 lowers the cost of a refusal that remains.
Decision for the Day shift
- Which of 1, 2 and 3 to build, and in what order.
- For option 2: the fallback order, and whether one retry is enough.
- Whether a refusal that remains after a fallback should still count toward the Failure limit. A Harness's cybersecurity refusal on a Security finding fails the Triage run and counts toward the Failure limit #1972 asks the same question for Triage.
- Whether this needs a new ADR, or an addendum to ADR 0021.
ready-for-human because it revisits an option ADR 0021 rejected and decides how refusals interact with the Failure limit. Once that's decided, each chosen option can become its own Ticket.
Related
- A Harness's cybersecurity refusal on a Security finding fails the Triage run and counts toward the Failure limit #1972: a cyber refusal fails Triage runs and counts toward the Failure limit
- add fallback model setting for provider issues, like codex model at capacity #1546: a fallback Model setting for provider problems
- Apply for OpenAI Daybreak access so Codex security sessions aren't refused #912: apply for OpenAI Daybreak access, which would fix Codex itself
- Run the Security review on security.harness when it is set #910 and Check the Security review's Harness at preflight and fall back to the default Harness when it can't be used #975: ADR 0021 and its start-up fallback
Activity
JacobStephens2 commentedon Nov 18, 2026
More evidence (2026-11-17): 13 refusals in one day
Codex refused Security-finding work 13 times on 2026-11-17, all with the same cyber-safeguard message. Pickup runs (this issue):
The other eight were Triage runs, recorded on #1972.
What worked: rerunning each Recovery command with
harness agy(orharness claudeon Lima). wire-report #284 merged as PR #286 and orchestration #880 opened PR #977. The refusal is still inconsistent: #881's next Pickup on Codex succeeded (PR #978).The cost: each refusal leaves
agent-failed, and orchestration reached 4 of its Failure limit of 6 within the hour. As a stopgap, orchestrate's orchestration Pickup and Triage cron lines now passharness agy. That moves all of that repository's work off Codex, not just Security findings, which is why the routing in option 1 is still wanted.The Day shift asked for option 1 on 2026-11-17: a run on an issue labelled
security-findingorsecurity-fixruns every session onsecurity.harness, so the stopgap can be removed.