fix(cli): include hidden verbs in registration census #987
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!987
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/787-cli-registration-census"
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?
The
subcommandsslice now means the complete Cobra registration census, not only the advertised help surface.hiddenis explicit metadata, so visibility changes do not change the denominator.build-bake,bake-digest, andpost-cutare registered through the census;repinremains visible as previously decided. The C5 test explicitly excludes only the toolkit-self/cut-path entries from the adopter-facing table.Verification:
go test ./cmd/rt -run TestAllSubcommandsPresent|TestSubcommandsMatchC5Contract|TestHelpSnapshot|TestSkeletonsExitCannotGrade -count=1-> PASSgo test ./... -count=1-> PASSgo vet ./...-> PASSgo build ./...-> PASSbats --print-output-on-failure tests/-> 99/99 PASSgo run ./cmd/rt fragment-check changelog.d-> all fragments valid, density PASSgit diff --check-> PASSFocused runtime controls confirm
repinis present inrt --help, the three hidden verbs are absent from help, andrt build-bake --help,rt bake-digest --help, andrt post-cut --helpeach resolve to a registered command.APPROVED — exact head
536c8b8bde.Reviewed the complete four-file diff for rt#787. The registration census now explicitly covers all registered commands, including the three hidden workflow verbs; visibility is metadata on each census entry, and
newRegisteredCmdapplies that metadata while selecting the real constructor. The C5 check keeps the adopter-facing subset explicit, and the test now checks registration, uniqueness, and advertised-vs-hidden visibility rather than relying on a hand-written total. The AC fixture-log precreation is a safe race fix for the polling step.Independent checks on this head:
go test -count=1 ./...;go vet ./...;go build; Bats 99/99; hiddenbuild-bake,bake-digest, andpost-cutcommands resolve to their real help/argument behavior while remaining absent fromrt --help;fragment-checkPASS;register-check0;git diff --checkPASS; all 21 latest status contexts success. Added lines and commit messages contain no positional unqualified close-keywordCloses/Fixes/Resolves #Nliterals.subcommandscensus OF? #787