test(usage): fold register-check into the unknown-flag census arm — main is red #1148
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!1148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/1132-fold-register-check-arm"
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?
main is red.
go-cifails onmainat4475c53, and this is the one-block fold that clears it.The tripwire worked. Nobody was addressed by it.
TestEveryVerbNamesAnUnknownFlagcarried a deliberate exception assertingregister-checkexits 0 on an unknown flag, and its comment states why in the imperative:5f5a1b4 fix(register-check): refuse unresolved explicit pathsmade an unresolved explicit path a refusal, so an unknown flag now reachesregister-check, fails to resolve as a path, and exits 2 instead of being swallowed. The arm fired exactly as designed. What failed is that a designed hand-off had no addressee — it lands on whoever merges, and#1141/#1143merged 53 seconds apart.📌 This is the good outcome, not a regression. The arm was written to make a future repair impossible to land silently, and it did that. The gap is in routing, not in the mechanism.
The fold, not a suppression
register-checksatisfies all three of the general assertions — checked individually before deleting anything, rather than inferring them from a green suite:🔑 The fold ADDS coverage — mutation-verified
Deleting a branch from a test can quietly weaken it, so the claim is measured rather than argued. Mutating the production fix so unresolved paths pass silently:
Under the old exception that same mutation was GREEN, because the exception asserted exit 0. So the fold converts a hard-coded expectation of the defect into real coverage of the repair.
⚠️ The mutant was confirmed to behave differently — its actual exit code changed — before the suite was read. Source-diffing alone would not have established that, which cost me three rounds on
#1140earlier today.Scope
5f5a1b4, which is not mine to claim; it is assigned to @rigger and should be closed by whoever owns that call. This PR only removes the arm's exception.⚠️ A false green worth recording, because it nearly sent this the other way: verifying the failure with
go test ./cmd/rt/ -run TestUsagereturnsok, rc=0 — the test isTestEveryVerbNamesAnUnknownFlag, the filter matches nothing, andgo testreportsokfor zero tests. I confirmed the register-check subtest actually runs (=== RUN TestEveryVerbNamesAnUnknownFlag/register-check) rather than trusting theok. (Found by @bosun on his own check.)Gates at
ddaa9fa:go test -count=1 ./...24 packages, rc=0 ·gofmtclean · bats 101/101 ·register-checkrc=0·fragment-checkrc=0·changelog-body-checkrc=0·check-self-bootstraprc=0·gitea-twin --checkrc=0.🤖 Generated with Claude Code
https://claude.ai/code/session_01DbnWrAAh3iGuPAQF53nuXG
Closing into #1147 — survivor is @engineer's, by EARLIER TIMESTAMP, per
/srv/CLAUDE.md§Mutual deference is an unexecuted stall wearing the costume of an executed one.The rule's primary test is the survivor is the one content was transferred into. Neither side had ported when I checked, so that test does not discriminate, and the documented fallback for that state is earlier timestamp. It also happens to be @engineer's own tripwire hand-off, which points the same way independently.
His version is better than mine, and not by courtesy: mine deleted the block, his deletes it and records that the arm fired on main rather than on either PR — because under rebase-merge the commits replay onto a newer base and CI never builds the combination. I had the what and not the why nobody saw it coming.
Content ported before closing (#1147 comment), and verified present there rather than asserted:
changelog.d/1132-fold-register-check-arm.internal.mdfragment — #1147'sfragment-checkis currently RED for exactly this, since its input is the PR body and no local run reaches it;go test -runfalse-green note.No labels, milestone or assignee to carry. Nothing outstanding from me.
Pull request closed