Skip to content

A Security run on a repository with issues turned off fails at Security fix publishing #2094

Closed

Description

@JacobStephens2

This was generated by AI during triage.

What happened

On 2026-11-11, three scheduled Security runs on thirdshift.app (0.29.1) failed at the end, each on a repository that has GitHub issues turned off. Each one:

  1. ran the full audit and recorded its findings as private Security advisories (3–8 per repository);
  2. started Security fix publishing (security-fix-publishing Session) for the top finding;
  3. failed when publication listed issues:
gh issue list failed: the '<owner>/<repo>' repository has disabled issues

One of them took 1 h 47 m before failing. Each lands in Needs you as a failed Security run, although the advisories are all there.

Where

src/security/fixing.rs publish() → publication::publish(...), which files the Security fix Ticket as an issue. Nothing checks beforehand whether the repository accepts issues.

Expected

A repository with issues turned off can't hold a Security fix Ticket. Possible approaches:

  • check has_issues before Security fix publishing, end the run with its findings recorded, and say why no Ticket was filed;
  • or check it before the run starts, if a Security run without a Ticket isn't wanted.

Either way, the run shouldn't spend a publishing Session and then report Failed.

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.

    Agent Brief

    Confirmed by source inspection at selected Base commit 5e573fe. Preserve Security auditing and private finding recording when public fix Tickets cannot be filed; skip fixing with an explicit explanation rather than failing after a publishing Session.

    Diagnosis and evidence

    • src/security/fixing.rs:53–68 creates the publishing Worktree and runs SecurityFixPublishing before publication validates the proposal.
    • src/security/fixing/publication.rs:149 unconditionally calls issues_created_since for an advisory-backed finding. src/github.rs:444 implements this with gh issue list; its failure propagates before Ticket creation.
    • src/security.rs:249 turns publication errors into failed fix outcomes, and src/processes/security.rs returns Outcome::Fixed even when publication failed before dispatch.
    • No has_issues, hasIssues or equivalent capability check exists in src or tests.
    • Checking only immediately before publication is insufficient: src/security.rs:214 selects an existing reproduced finding before the unchanged-Base gate, and src/processes/security.rs:61 skips auditing whenever that pending finding exists. An unfixable finding would repeatedly take priority over later audits.
    • ADR-0015 and docs/guide.md describe report-only Security runs as supported behavior. Findings waiting for the Day shift legitimately remain in Needs you independently of run failure.

    Recommended implementation

    1. Read repository issue capability through the GitHub adapter and use confirmed has_issues=false to disable fix selection/publication for that invocation, before selecting a pending fix. Preserve normal audit, reproduction and unchanged-Base behavior.
    2. Complete otherwise successful audits successfully, retaining their private records and waiting-finding metadata. Explain in progress output and the Run notification that fixing was skipped because repository issues are disabled. Do not describe the finding as attempted or fixed, create a fix link, dispatch a Ticket run, or start a Security fix publishing Session.
    3. Cover the shared Custom process path: src/processes/findings.rs also calls fix_record, and src/processes/security_audit.rs suppresses audits when an allowed fix is pending. Apply consistent capability handling so an unpublishable fix neither fails its Step nor suppresses an otherwise eligible audit.
    4. Distinguish a confirmed disabled setting from failed or malformed metadata reads. Preserve genuine dependency failures and existing publication privacy checks. Keep private-repository finding-storage failures outside this Ticket's scope; those findings themselves require issues.
    5. Document the behavior in docs/guide.md and affected hand-written site descriptions; regenerate the manual as required.

    Acceptance and validation

    Extend tests/fakes/gh.rs to represent has_issues, defaulting existing fixtures to enabled. Add regressions for findings reproduced by a new audit and an older reproduced finding on a changed Base, with issues disabled: audit/recording succeeds, publishing and dispatch do not run, the skip reason is visible, and advisory evidence remains intact. Cover both single-Ticket and Spec-sized fixes, repeated-run/unchanged-Base behavior, the Custom process path, and metadata errors. Keep enabled-repository fixing and report-only behavior passing. Use tests/security_run.rs, src/security/tests.rs and relevant process tests; finish implementation validation with scripts/affected-tests main.

    No source changes or GitHub writes were made during triage.

  3. added
    ready-for-agent
    in-progress
    and removed
    in-progress
    ready-for-agent
    on Nov 12, 2026
  4. 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions