Skip to content

Report reproduction failures separately from completed Security audits #603

Closed

Description

@JacobStephens2

This was generated by AI during triage.

A Security run can complete its Security audit and record its findings privately, then fail during reproduction. Its Run notification currently reports both Result: audit failed and Audit: audit failed, hiding which stage actually failed.

Observed behavior

In the 2026-10-09 Security run, the audit finished after 35m 29s and recorded three private findings. The first reproduction session then received Codex's cybersecurity safeguard refusal after about 20 seconds, before running any tool calls. The notification said:

Result:       audit failed
Audit:        audit failed
Cause:        Codex's cybersecurity safeguard refusal

The overall Security run correctly failed. The incorrect part is describing the completed audit as failed. The remaining reproduction sessions never started, and the recorded findings had no reproduction evidence or severity.

Expected behavior

Preserve the completed Security audit's status and identify the failed reproduction separately. For this case, the notification should communicate an overall failed result, Audit: audit complete, and that reproduction 1 was refused, with the existing safe refusal cause and log pointers. The notification subject should identify the reproduction failure rather than an audit failure.

Existing implementation and coverage

The Security run's audit_and_record workflow combines auditing, private recording and reproductions into one result. Ending::account maps that failed result to audit failed, and notification formatting reuses the overall result for its Audit line on failure. Existing scenarios cover refusal handling and reproduction failures, but currently accept the misleading audit-failure wording.

This is a reporting follow-up to #547. That issue's intended behavior—fail the Security run on a safeguard refusal, retain private records, and stop before the next finding—remains correct.

Duplicate checks searched the tracker for audit/notification and reproduction/notification reports. No existing issue covering this stage-reporting defect was found, and no matching prior rejection was present.

Activity

  1. added
    bug
    needs-triage
    on Oct 9, 2026
  2. JacobStephens2 commented on Oct 9, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: bug
    Summary: Preserve a completed Security audit's status when reproduction fails, and report the failed reproduction in the Security run's outcome and Run notification.

    Current behavior:
    A completed audit followed by a refused, incomplete or otherwise failed reproduction becomes audit failed in the overall outcome and the notification's Audit line. Private records survive and the run correctly stops, but the Day shift cannot distinguish the successful audit from the failed reproduction without reading logs.

    Desired behavior:
    Track the completed audit independently from the subsequent reproduction outcome. When reproduction fails, the overall Security run remains failed; its reported outcome and notification subject identify a reproduction failure; its Audit line says audit complete; and the notification identifies the reproduction number and whether it was refused or otherwise failed. Keep the safe refusal cause and relevant Session log and Command log pointers. A genuine audit failure must still report an audit failure.

    Key interfaces:

    • Security run outcome accounting, including Ended and Ending::account: retain enough stage information to describe the completed audit and failed reproduction accurately.
    • Account and Run notification formatting: express audit status separately from the overall result and carry safe reproduction-stage metadata.
    • Existing Security run scenario harness with fake agent CLIs and captured Run notifications: verify user-visible output, command exit status and retained records.

    Acceptance criteria:

    • With a completed audit followed by a first-reproduction safeguard refusal, the command exits nonzero, the outcome and email subject identify reproduction failure, the Audit line says audit complete, and the notification identifies reproduction 1 as refused with the existing safe refusal cause.
    • With one successful reproduction followed by an incomplete or otherwise failed second reproduction, the notification identifies reproduction 2 as failed while retaining Audit: audit complete and the first finding's recorded severity.
    • A refusal or failure during the audit itself reports an audit failure and never claims audit completion or a started reproduction.
    • Failed reproduction still retains all records already created, stops before the next reproduction, and dispatches no fix.
    • Notification evidence includes safe metadata and relevant log pointers; private finding descriptions, tests, reproduction notes and raw provider diagnostics stay out of the email and subject. Cover public and private repositories using the existing scenario harness.
    • Successful Security runs retain accurate outcome reporting. Existing refusal, record-preservation and notification-privacy checks pass with expectations updated only where stage wording changes.

    Out of scope:
    Changing safeguard detection or access, automatic retries or Harness fallback, advisory grading, reproduction behavior, fix dispatch rules, Security run skip gates, or publishing private vulnerability details.

  3. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Oct 9, 2026
  4. removed
    in-progress
    on Oct 9, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions