surveys live proof: two unchecked resp.Body.Close() calls hold main's Go lint red (errcheck, #1945 drift) #1947
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#1947
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?
main is RED:
golangci-lint run ./...refuses main's head with twoerrcheckfaults in
internal/clan/surveys_live_test.go. Filed by the swarm healer(heal run
heal-Matou-idss-1790555763-2463013, signature961c6a1e670e,ci run https://git.matou.nz/Matou/idss/actions/runs/34587).
The fault
Seam stage
Go: go.work resolves both modules; build, vet, test, lint each,exit 1:
Reproduced at main's head
40f970e2on the runner host with the repo's pinned.golangci.ymland go 1.25.11: exactly 2 issues repo-wide, both in this onefile. Nothing else on main is lint-red —
go build,go vet,go test,gofmt and the broker module are all clean.
Root cause
The file arrived in
76ff333e("surveys: an operator who steps down stillsigns in — the member template lands under superadmin (GOTCHAS #354)"), merged
as PR #1945 /
9ca9fd60. Tworesp.Body.Close()calls there drop the errorreturn, against the repo-wide convention every other Go file already follows —
_ = resp.Body.Close()(bare) ordefer func() { _ = resp.Body.Close() }()(deferred). See
internal/idp/seam_test.go:131,internal/doorprobe/prober.go:98,internal/enrollwire/client.go:138for the established shape.The PR's own
ci / seamcheck did catch this — it wentfailureat23:49:38 — and the merge landed at 23:51:22, about two minutes later. So no
harness gate is missing; the red simply rode in over a failing check.
What to change
Two lines, no behaviour change:
internal/clan/surveys_live_test.go:75—resp.Body.Close()inside theinstall-wait loop →
_ = resp.Body.Close().internal/clan/surveys_live_test.go:151—defer resp.Body.Close()→defer func() { _ = resp.Body.Close() }().Acceptance criteria
golangci-lint run ./...is clean at the repo root (0 issues).gofmt -l .(excludingnode_modules/) reports nothing.go build ./... && go vet ./... && go test ./...still pass; the live surveysproof keeps self-skipping without its opt-in env var (no change to when it runs).
scripts/seam-smoke.sh's Go stage reaches green on main.Why the healer did not fix it
internal/**is product source — the healer charter forbids product codechanges and requires a ticket instead. No repair was attempted.
swarm-claim host=matou-dev-server-01 run=34616
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1947 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope