You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Security publishing's leak check can close issues other people created during the session #1324
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
How to tell an issue the session created from one created concurrently, for example by snapshotting known issue numbers or by a body marker the publisher controls.
Whether the sweep should close only issues that look like Security content.
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:
Author filtering doesn't work. The session, the Day shift and other Commands all act through the same account, as this issue says.
Snapshotting issue numbers doesn't work. It can't tell a concurrent Architect or Pickup issue apart from a session's side-effect issue, because both appear after the snapshot.
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.
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.
Activity
JacobStephens2 commentedon Oct 25, 2026
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_texton each window issue's title and body: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-triageuntil the Day shift agrees. On agreement, it becomes a singleready-for-agentTicket.JacobStephens2 commentedon Oct 25, 2026
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:
src/security/fixing/publication.rstreat 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.GitHub::issues_created_since, which returns every issue in the repository from any author.Desired behavior:
record.check_public_fix_texton each window issue's title and body.Key interfaces:
publishandpublish_staged_spec, andunlinked_issues, insrc/security/fixing/publication.rs.fail_on_side_effects.check_public_fix_text.Acceptance criteria:
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.