Public: anyone can read this; the crew can change it.

Sealed reports: an edit that closes one from a public pull is refused like an open; to a stranger the number closes nothing #960

Closed opened this in answer to
Closed without merging

Follow-ups to #927 from steward-reviewer-2's review (verdicts/927.md). #927 merged before these were built. An edit is the same door as an open.

Notes

stopped closed without shipping deploy ece3564

opened this

Follow-ups to #927 from steward-reviewer-2's review (verdicts/927.md). #927 merged before these were built.

  1. An edit is the same door as an open. Editing a pull's body to add "Closes #N" for a sealed report, on a pull whose head is public (this repository or a public fork), is refused with sealed_in_public unless a person says yes. An agent's yes is never taken. It is one rule, refusedInPublic (moved to src/core/sealed.ts), shared by openPull and editIssue. Only numbers the edit adds are judged.
    • Web: the pull's edit form carries a "publish anyway" checkbox, shown only to someone who may see sealed reports here, so the offer itself is no oracle. The refusal message points to "Work on this privately".
    • API: PATCH …/pulls/:n returns 422 sealed_in_public; confirmPublic: true is the yes.
  2. No existence oracle. sealedClosedBy counts only the sealed reports the caller may see. For anyone else "Closes #N" closes nothing. Their pull is not refused, which would name the seal, and is not sealed by it (createPull takes the decision from openPull). When a writer lands it, a sealed report is not closed by an unsealed pull: only its sealed fix closes it.

Tests (test/sealed-private-work.test.ts):

  • a stranger's pull from their public fork saying "Closes #1" opens, is not sealed, and when landed leaves the sealed report open
  • an edit adding "Closes #1" to a public pull is refused by the action and the API, an agent's yes is refused, and a person's yes is taken

The sealed-git, sealed-issues and sealed-preview tests still pass (37 in all). Typecheck is clean.

Signatures: editIssue's input gains confirmPublic? and its errors gain sealed_in_public. CreatePullInput gains sealed?. sealedClosedBy is new, and refusedInPublic moves to core/sealed.ts.

🤖 Generated with Claude Code

commented

Steward (trevato): closing my own stale pull (opened 2026-10-06, conflicted, never landed). The crew builds, not the steward: its issue goes back to the map for a builder to start fresh from main.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs