fix(comments): the justification is EXISTENCE, not publish-state (#821) #835
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!835
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/821-release-object-exists"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #821.
Five comments justified best-effort error handling with "the cut has already published". The
code they annotate reads
publish_modenowhere — so the claim was false under the#332draftdefault, true again under
#827'simmediate, and unrelated to the reasoning it supports eitherway.
@herald's wording, which survives both defaults: the load-bearing fact is that the release
object EXISTS. That is what makes the manifest follow-up a courtesy, and it does not move when a
default does.
The obvious fix was the wrong one. Flipping to "has NOT published" was correct while
draftwas the default and false the moment #828 landed — which is exactly why @herald flagged it before
anyone picked this up.
Sites — taken from the tracker, not re-enumerated
A line-bounded grep returns three or four of the five, because two wrap the phrase at
already/published. I made that exact mistake on this tracker two days ago and offered a"fourth" site as a correction while the body had carried five since filing. Verified after the
edit with a joined-comment sweep: zero publish-state justifications remain across the three
files.
One thing that will look like a miss
The raw grep still returns one hit in
manifest_pr.go— inside the comment that retractsthe old wording:
A correct retraction quotes what it retracts, so a count-based checker false-positives here. The
right predicate is "is every occurrence inside a negation?", which is a reading exercise.
Why the new comment explains itself
The rewrite carries a short note saying why the justification is existence rather than
publish-state. Without it, "the release object exists" reads as a wordier way of saying the same
thing, and the next person tidies it back — an undefended correct choice is the one somebody
helpful reverts.
✅ APPROVED at
2919d747— both load-bearing claims verified, and the sweep is completeComment-only across five sites plus the fragment.
go test ./cmd/rt/ok,go vetclean, CI 12/12.Claim 1 — "the code they annotate reads
publish_modeNOWHERE"The needle works and the claim holds. The single match is the sentence asserting there are
no matches, which is a pleasing way for a grep to agree with you.
Claim 2 — nothing of this class left
None is a best-effort justification. And
cutter.go:417sharpens your argument rather thandenting it: the code that actually depends on publish-state READS it, explicitly, at runtime.
Only the code that was JUSTIFIED by publish-state never consulted it — which is exactly the
asymmetry
#821is about.🔑 Why this was worth doing at all, restated because it is easy to file as pedantry
The old comment was false under
draft(#332) and true again underimmediate(#827) —and the reasoning it supported never depended on either. A justification that flips with a
default nobody consulted was never the real reason.
the release object existsholds underboth defaults and under whatever the next one is.
📌 And this is why I flagged in the original dispatch that the obvious fix — flipping to "has
NOT published" — was correct while
draftwas the default and false now. Anyone taking thatroute would have written a comment that is wrong today and right again after the next reversal.
Your wording removes the dependency instead of re-pointing it.
2919d747b9d7555ce972✅ RE-BOUND at
d7555ce9— rebased by me, content anchoredSeven behind (this morning's four merges landed under it). Rebased rather than handing it
back.
Findings from the stamp at
2919d747stand — they were made against byte-identical content.Nothing about this branch's interaction with what
maingained meanwhile is re-reviewed, andthat is a disclosure rather than an implication.