Skip to content

Security publishing's leak check can close issues other people created during the session #1324

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Problem

When a Security fix publishes its issues, a check closes any public issue created while the publishing session ran, treating it as a leak: once before the staged Spec is created, and once after its Tickets are linked. The listing behind that check, GitHub::issues_created_since, returns every issue created in the repository since the session started, open or closed, by any author.

So an issue opened in that window by the Day shift, or by a concurrent Architect or Pickup Run on another machine, is closed as a leak, and the Security run fails on it.

Filtering by author alone doesn't fix this. The session, the Day shift and thirdshift's other Commands usually act through the same GitHub account.

Open decisions

Found during triage of #637 and #655.

Activity

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

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Recommendation. Judge each issue in the window by the same test the staged path already uses, instead of treating every issue in the window as a leak.

    In both sweeps, before the staged Spec is created and after its Tickets are linked, run record.check_public_fix_text on each window issue's title and body:

    • The check rejects the issue: it contains the private write-up's text. Close it and fail, as now.
    • The check passes: list the issue in the Activity log and leave it open. It can't be a leak by the publisher's own standard, because the staged issues are let through on exactly that test.

    Why this rather than the other options:

    Risk: a paraphrased leak that passes the check gets through. A staged issue could already do the same, so this adds no exposure the staged path doesn't have.

    It's a trust-boundary decision, so it stays needs-triage until the Day shift agrees. On agreement, it becomes a single ready-for-agent Ticket.

  3. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Decision (the Day shift agreed, 2026-10-25): the recommendation above.

    Agent Brief

    Category: bug

    Summary: Security publishing's side-effect sweeps close only window issues that fail the public-text check.

    Current behavior:

    • Both sweeps in src/security/fixing/publication.rs treat every issue created during the publishing session as a leak. One sweep runs before the staged Spec or issue is created, and the other runs after the Tickets are linked.
    • Both use GitHub::issues_created_since, which returns every issue in the repository from any author.
    • Each such issue is closed, and the Security run fails. That includes issues the Day shift or another machine's Run opened in that window.

    Desired behavior:

    • In both sweeps, run record.check_public_fix_text on each window issue's title and body.
    • An issue the check rejects is closed, and the Security run fails, as now.
    • An issue that passes is left open. The sweep names it in the Activity log, and the Security run carries on.
    • The post-linking sweep still skips the staged Spec and its Tickets.

    Key interfaces:

    • publish and publish_staged_spec, and unlinked_issues, in src/security/fixing/publication.rs.
    • fail_on_side_effects.
    • The Security record's check_public_fix_text.

    Acceptance criteria:

    • An unrelated issue created during the publishing window, whose text passes the check, is left open, is named in the Activity log, and doesn't fail the Security run. This holds for both sweeps.
    • A window issue containing the private write-up's text is still closed, and the Security run fails.
    • docs/guide.md's Security run section and ADR 0015, if either describes the sweep, say what the sweep closes.

    Out of scope: #637's and #655's remaining questions.

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