Skip to content

Codex refuses security-fix Tickets in the implement session; route them to security.harness or reroute after a refusal #2153

Open

Description

@JacobStephens2

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

  1. Route security Tickets to the security Harness. A Ticket run on an issue labelled security-fix or security-finding runs all its sessions on security.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.
  2. 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 example security.harness or harness.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 a SafeguardRefusal. This option would reverse that decision for refusals specifically.
  3. 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

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

Activity

  1. added
    enhancement
    ready-for-human
    on Nov 13, 2026
  2. JacobStephens2 commented on Nov 18, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    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):

    Repository Issue Host Time (EST)
    JacobStephens2/wire-report #284 Lima 14:05 (implement session ended without a diagnosis line)
    Educational-Travel-Adventures/orchestration #880 orchestrate 15:05
    Educational-Travel-Adventures/orchestration #881 orchestrate 15:32
    Educational-Travel-Adventures/orchestration #930 orchestrate 20:57
    Educational-Travel-Adventures/orchestration #931 orchestrate 21:06

    The other eight were Triage runs, recorded on #1972.

    What worked: rerunning each Recovery command with harness agy (or harness claude on 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 pass harness 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-finding or security-fix runs every session on security.harness, so the stopgap can be removed.

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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions