standards: golangci-clean — the 33 findings the resurrected seam CI surfaced #148
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#148
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?
Parent
Standards debt, same family as #133–#142 — filed 2026-07-27 by the seam-CI resurrection. The
ci/seam workflow had never actually run (no nix on the runner until today), sogolangci-lint run ./...— whichdocs/CODING-STANDARDS.mdandscripts/seam-smoke.shclaim as the standing gate — had never gated anything. First real run: 33 findings across both Go modules (errcheck ×12, revive unused-parameter ×~19, staticcheck ×1, misc).What to do
Fix every finding below so
golangci-lint run ./...is clean in both modules (root +broker/), insidenix develop(that shell's pinned golangci-lint is the gate: runbash scripts/seam-smoke.shto verify end-to-end). Mechanical intent-preserving fixes only: handle or explicitly discard errors (errcheck), rename genuinely-unused params to_(revive), drop dead assignments (staticcheck). Where a finding reveals a real dropped error path, handle it properly rather than silencing.Findings (nix-shell golangci-lint, 2026-07-27)
Acceptance criteria
bash scripts/seam-smoke.shinsidenix developcompletes to "seam smoke OK" (both languages).//nolintadded without a reason comment.Blocked by
None (rebase over in-flight ports work #133/#134 if it lands mid-flight — same files).
Task manifest
Done in
f97bc48(onorigin/main).The seam CI's reported 33 findings were the
max-same-issues=3/max-issues-per-lintercap over a real 102 — capping only limits display, so fixing the 33 alone would have surfaced the hidden ones and kept the gate red. All 102 are paid, intent-preserving, no//nolint:fmt.Fprint*terminal writes (two-value discard_, _ =), and tests'res.Body.Closeand rescue-seamGrantSupporterKey/ShareLogBundlecalls, now explicitly discard.ctx/decl/home/preRef/answersparams renamed to_(revive reports one unused param per signature at a time, so this was looped to a fixpoint); thecopy/new/minbuiltin-shadowing params renamed;join.JoinResult→Resultandbackup.BackupAction→Actionde-stuttered (both package-local); exported-const blocks inupdate/founding/breakglassgiven block comments; the twocontrolapifile headers (backups.go,rescue.go) detached from thepackageclause sohandler.go's canonical// Package controlapi …stands alone;drainToDonereordered ctx-first.s :=assignment dropped indeviceladder_test.go.Verification (go1.23.4 + golangci-lint v1.62.2, matching
.golangci.yml): uncappedgolangci-lint run ./...is clean in both modules (root +broker/); both build/vet/test green;go build -tags dev ./...still links. The only residual golangci hit isnode_modules/flatted/golang/pkg/flatted/flatted.go— a gitignored raw-npm-layout artefact that is absent under CI's pnpm symlink layout (golangci does not follow symlinked dirs), which is why the seam-CI baseline never listed it; out of scope. STATUS.md header + milestone-log updated in the same commit.