standards: pre-existing debt the branch sweep correctly left alone — test names, snake_case files, gofmt, inert ctx #344
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#344
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 2026-08-08 whole-branch review fixed every standards violation the branch ADDED (commit range
5aaf315..7ba03b7), and its verifier ranked the pre-existing debt it deliberately did not touch. One mechanical commit, repo-wide:func Testnames with no underscore should find nothing; the pre-branch baseline is ~216/1318 (16%). The branch's own additions are now clean, leaving mixed shapes inside single files (e.g.internal/founding/privatepath_toolchain_test.go,internal/clan/calibration_test.go). Rename the remainder to the one-underscore shape; count-neutral,go test ./...green.internal/clan/internal/founding(the branch's three offenders weregit mved in53b10b1; match that).gofmt -lflags 10 files, none from this branch. Fix them, then makegofmt -l(orgofmt -dexit-code) a seam-CI gate so the debt cannot regrow.RenderWarmCommunity's ctx is inert — the sole caller (cmd/warm-repo/main.go) passescontext.Background()with no signal handling. Wire signal-aware ctx if the convention should bite; one file.Also worth carrying from the sweep's lesson: when scrubbing label/citation comments, grep the vocabulary word alone and READ the hits — two rounds of pattern-guessing (case, then separator) each missed one site.
Done in
a4132c2(on origin/main). Mechanical, repo-wide standards cleanup.Test naming (part 1) — every remaining underscore-less top-level
func Test…renamed to the CODING-STANDARDSTestSubject_Behaviourone-underscore shape. That came to 164 funcs: the pre-branch remainder the sweep left alone, plus the underscore-less names that landed onmainfrom other slices while this ran (surfaced on rebase —internal/fleetwire,internal/vm/waitready,internal/sshkey/hostkey,internal/founding/{privatepath,guest,calibration,readiness},internal/clan/{vmguest,seedcommunity},app/helperguest-lifecycle/scrub, …). Count-neutral (only thefunc Test…(line changed; top-level test funcs are referenced by nothing). Afunc Testsweep with no underscore now finds nothing.go test ./...green.gofmt debt (part 3) —
gofmt -won the 13gofmt -loffenders (pure alignment; none from this work), then wired agofmt -lguard into both the seam-CI Go stage (scripts/seam-smoke.sh) and the pre-push gate (.sandcastle/gate-lib.sh, which mirrors it) so the debt cannot regrow —go vet/golangci-lint never catch pure formatting drift. Proved the guard fires on a dirty file; gate self-test 15/15.Parts 2 & 4 had no target on
main— the issue was written against the unmerged review branch7ba03b7:privatepath,configrepo,acmedns) are accepted naming the branch itself ships, not violations. Nothing to rename.RenderWarmCommunityinert ctx:cmd/warm-repo/RenderWarmCommunitydo not exist onmain.Verification — in
nix develop .#go-ci: gofmt clean,go build/vet/test(withCI=truefor the pnpm-backed assemble-payload test) +golangci-lintgreen on both the fleet module and broker.Note for a follow-up (out of #344 scope): the local pre-push hook lints the whole module, and
internal/fleetwire(landed by another slice,ab37e30) is already lint-dirty on origin/main (errcheck + missing-GoDoc revive) — I touched only its test files. My commit is green for its own scope and does not worsenmain, so it was pushed past the hook. A sibling cleanup ofinternal/fleetwire's lint debt (and arguably a revive/errcheck posture like this issue's gofmt gate) is worth its own ticket.