Skip to content

A Security run fails to publish a fix Ticket for a finding that already has ready-for-human or agent-failed #2100

Open

Description

@JacobStephens2

This was generated by AI during triage.

What happened

On 2026-11-12 at about 05:37 EST, a manager-tourbots (Educational-Travel-Adventures) Security run failed at Security fix publishing for finding #73: "the Security fix Ticket must be labelled needs-triage with no other Unready Ticket label" (src/security/fixing/publication.rs:203 as of origin/main 5e573fe).

#73 already carried ready-for-human and agent-failed. Its earlier Triage run had failed with the category bug fixed by #2024 (#2018). The Security run then couldn't publish a fix Ticket for it, and the run failed.

Why needs-triage

Low priority: once the #2018-era findings are re-triaged after a release containing #2024, these labels should clear, and this may not recur. The Day shift should decide whether a Security run should:

  • skip an existing finding that already has a non-Triage state label (ready-for-human, agent-failed) and report it, rather than fail the whole run; or
  • keep failing loudly, since the labels mean a person must act first.

Also check whether a failure here loses the run's other findings; if it does, that is the bigger problem.

Activity

  1. added
    bug
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 12, 2026
  2. JacobStephens2 commented on Nov 12, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigated #2100 against selected Base commit 5e573fe. Recommend ready-for-human for the skip-versus-fail policy decision.

    Confirmed diagnosis:

    • src/github/advisories.rs:180–219 selects open reproduced findings by severity without checking their triage or failure labels. failed_fix() checks recorded fix markers, not a prior Triage failure's agent-failed label.
    • src/security/fixing/publication.rs:194–204 rejects a parent carrying ready-for-human, needs-info or wontfix after excluding needs-triage. Existing tests reproduce this rejection for private Specs and the equivalent rejection for private single Tickets.
    • agent-failed alone does not cause this diagnostic: src/labels.rs:73 defines the four Unready Ticket labels without agent-failed. In the reported combination, ready-for-human causes rejection. The exact reported message is consistent with the private Spec publication path; the original run's fix size was not independently verified.

    Other findings are preserved by the inspected code: src/security/findings.rs records findings and reproduction evidence privately before fixing; src/processes/security.rs retains the audit result even when fix publication fails; src/run_ending.rs:94–119 includes the audit's other findings in the notification account. No finding-loss path was identified here.

    The more significant inferred impact is repeated failure and delayed audits. src/security.rs:214–241 selects a pending fix before starting an audit, and publication failure precedes writing its fix link in fix_record(). An unchanged blocked finding can therefore be selected again on later runs, preventing both another fix and a fresh audit. This retry sequence was established by code inspection, not an end-to-end reproduction of the operator incident.

    Preferred next step, subject to Day shift approval: skip held private findings with a label-specific explanation, preserve their labels and evidence, and consider the next eligible finding. Check eligibility before a publishing Session, while retaining publication-time validation for intervening changes. Define agent-failed-only handling explicitly. Validate both single and Spec paths, selection of another eligible finding, retention of all audit findings after publication rejection, and unchanged handling of genuinely failed dispatched fixes.

    Validation: all 23 publication tests, 21 advisory-record tests, and the pending-fix-before-audit selection test passed. Open-issue searches found related but distinct #2094, #2097 and #2099; no duplicate was identified. #2024 fixes the earlier category guidance but does not add selection filtering or clear existing labels.

    Questionnaire

    For the Day shift deciding #2100:

    The selected Base still selects reproduced private findings whose labels publication later rejects. Other findings remain recorded; the potential continuing harm is repeatedly selecting the same blocked finding before another audit.

    1. Should Security runs skip findings carrying ready-for-human, needs-info or wontfix, explain the hold, and continue with another eligible finding or the normal audit gates (recommended), or retain the current fail-loud behavior? Alternatively, should this remain a cleanup-only incident with no code change? This determines whether to shape an implementation Ticket.
    2. If filtering is approved, should agent-failed from an earlier Triage failure also hold that finding for the Day shift (recommended)? That label alone currently passes the Unready Ticket guard. This decides whether unattended fixing may take over such a finding; existing failed-dispatched-fix handling should remain intact.
  3. added
    ready-for-human
    and removed
    in-progress
    on Nov 12, 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

    bugready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions