Skip to content

Decide how to stop a disobedient publishing session from leaking unvalidated public issues #637

Open

Description

@JacobStephens2

Spec-review finding C1 on the issue-629 change (PR from branch issue-629 against issue-626).

What the finding is: removing the session-created URL fallback (issue #629) stops thirdshift from building on session-created public issues for single fixes, but the publishing session keeps the capability to run gh issue create itself. A session that disobeys the prompt and creates a public issue carrying private write-up text, then stages nothing, makes publish() fail closed while the unvalidated issue it already created stays public.

Evidence: the reviewer's written-out test run verbatim against the issue-629 code: a session running gh issue create with body 'Private candidate write-up. Private record: ...GHSA-finding-0' and final line 'No protocol line' yields result.code Some(1) ('did not stage its proposed public issue text') yet gh_state bodies['8'] contains the private text. The leak is real; nothing deletes the orphan.

Which PR raised it: the issue-629 pull request (branch issue-629 against issue-626), Spec review finding C1.

Why this call is not the implementer's to make: the fixes are harness-level gh write restriction for publishing sessions, or orphan-issue cleanup on failure (deleting user-visible issues is a one-way door), or accepting prompt-advisory enforcement as sufficient. That tradeoff is a Spec/Day-shift decision.

Activity

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

    @JacobStephens2
    OwnerAuthor

    Update from the Spec #626 review (PR #634): the staged publishing path now sweeps for issues created during the publishing session window before thirdshift creates anything, closes each with an explanatory comment, and fails loudly naming the numbers (kept test a_session_side_effect_public_issue_fails_the_fix_and_is_closed). So a disobedient session's orphan is now closed, not left open — but its text stays readable until the Day shift redacts it, and stopping the creation itself still needs the harness-level restriction this issue tracks.

  3. added
    bug
    on Oct 17, 2026
  4. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Triage: ready for a human

    Partly mitigated: since PR #634, the pre-creation check closes any public issue the session created and fails the run. The session can still run gh issue create, and a closed issue's text stays readable. Options: (1) a harness-level gh write restriction for publishing sessions (a read-only token or a tool denylist); (2) deleting the orphan issue (a one-way door); (3) accept the check as enough. Note #1324: the check also closes issues other people create during the session.

    Next step: pick an option. If it's (1), it becomes a briefable Ticket.

  5. added
    ready-for-human
    and removed
    needs-triage
    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

    bugready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions