Skip to content

A waiting Security finding no longer holds off Security audits #1043

Closed

Description

@JacobStephens2

This was generated by AI during triage.

On thirdshift, cron runs thirdshift secure base main every minute for this repository. Its Activity log shows no Security run started since 2026-10-10:

A Security run skips in any of these cases:

  • a Ready issue is waiting;
  • another Pass is running in the Launch directory;
  • a failed Security fix is still open;
  • a Security finding is waiting for the Day shift;
  • the Base branch hasn't changed since the last completed audit.

Pickup is usually busy and the Ready queue is rarely empty, so the Security run never gets a turn. Running thirdshift secure by hand skips for the same reasons. A single waiting finding also holds off every later audit.

To decide:

  • Should a Security run get a turn even while Ready issues wait, e.g. once a day or after some number of Pickup runs?
  • Should a waiting Security finding stop new audits, or only new Security fixes?
  • Should the Console or Inbox say when audits have been skipped for some days?

Activity

  1. added
    enhancement
    needs-triage
    on Oct 21, 2026
  2. JacobStephens2 commented on Oct 22, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Triage note, 2026-10-22: still happening on thirdshift

    Checked on the thirdshift host, where cron runs thirdshift secure base main every minute for this repository.

    The Security runs that ran last night ran on another host, for repositories with little Pickup work, so they don't bear on this one. The "To decide" questions above are still open.

  3. JacobStephens2 commented on Oct 22, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Decisions (Day shift, 2026-10-22)

    • A Ready issue still goes first. A Security run gets no turn while Ready issues wait. The gate stays as it is, and so does "another Pass is running".
    • A waiting Security finding holds off neither new audits nor new fixes. The "a Security finding is waiting for the Day shift" skip goes.
    • No Console or Inbox signal for skipped audits. The existing Needs you entry for a Security finding waiting on a decision is unrelated and stays.
    • A re-found waiting finding isn't reproduced again once a reproduction has completed for it. This keeps the cost of repeated audits bounded now that untriaged findings can pile up.

    Agent Brief

    Category: enhancement
    Summary: Drop the waiting-finding gate from Security runs, and skip reproduction for a re-found record that already has a completed reproduction.

    Current behavior:
    A Security run checks its gates in order: another Pass running, a Ready issue, a failed Security fix still open, a Security finding waiting for the Day shift, an unchanged Base branch. SecurityRecords::waiting_for_day_shift(fixing) is true for a draft advisory or needs-triage issue that is unreproduced and ungraded or, with fixing off, reproduced and not yet graded. While it is true, the run skips with the Activity log reason "a Security finding is waiting for the Day shift", so no new audit happens until the Day shift triages. When an audit re-finds an existing untriaged record, it runs a reproduction session for it again.

    Desired behavior:

    • The waiting-finding gate is gone. With the other gates clear, a Security run audits even while findings wait for the Day shift. The remaining gates keep their order: another Pass, a Ready issue, a failed Security fix, an unchanged Base branch.
    • With fixing allowed, the next reproduced finding is still fixed before auditing, as today.
    • When an audit re-finds a record that already has a completed reproduction outcome (reproduced, with its severity, or not reproduced), it keeps that outcome and runs no reproduction session for it. A record with no completed outcome (never run, failed, refused or interrupted) is reproduced as today. A record the Day shift graded is kept as today.
    • A re-found record is still listed in the notification with its known severity.
    • The "a Security finding is waiting for the Day shift" skip reason no longer appears. Its Skipped variant and in-memory-double coverage go with it.
    • The Inbox's Needs you entry for a Security finding waiting on a decision (security_findings_waiting on the Command record) is unchanged.

    Acceptance criteria:

    • With an untriaged draft advisory (or needs-triage finding issue) present, no Ready issue and a changed Base branch, a Security run audits instead of skipping. Tested through the Pass seam's in-memory double, with fixing on and off.
    • The remaining gate order is tested: another Pass, Ready issue, failed fix, unchanged Base branch.
    • An audit that re-finds a record with a completed reproduction outcome starts no reproduction session for it and preserves that outcome. One with no completed outcome is reproduced.
    • GLOSSARY (Security run, Security watch, Security finding), docs/guide.md (the gate list and the Security watch summary) and ADR 0015's consequence that triage "ends a finding's wait" no longer say a waiting finding holds off audits.

    Out of scope:

  4. changed the title [-]Security runs haven't started on thirdshift since 2026-10-10: Pickup work and a waiting finding always go first[/-] [+]A waiting Security finding no longer holds off Security audits[/+] on Oct 22, 2026
  5. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Oct 22, 2026
  6. removed
    in-progress
    on Oct 23, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions