Skip to content

fix(container): drop the unused shortName parameter on electResolvedImage - #83

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/drop-the-unused-resolver-param
Aug 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/drop-the-unused-resolver-param

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

main is red, and this fixes it.

#82 split ResolveLocalImage into a candidate gather and an election. The election kept a shortName parameter it never reads — all the name filtering happens in gatherResolverCandidates, before election ever runs.

container/local_image_coneb.go:505:82: electResolvedImage - shortName is unused (unparam)

The gate caught its own author, one commit later

This was found by the golangci-lint step added in #78 — landed minutes earlier, and its first catch is my own regression. That is the argument for the gate, demonstrated rather than asserted: without it, this sits on main until it blocks whoever touches this repo next, because the pre-commit hook lints the whole repo rather than the diff.

It is also a straightforward process failure on my part. Before #82 I ran go build ./container/, go vet ./container/ and go test ./container/ — none of which see unparam — and not golangci-lint run ./..., the one check that would have.

How tested

$ go build ./...
build exit=0

$ golangci-lint run ./...
0 issues.

$ go test ./...
packages ok: 18   (no failures)

golangci-lint run ./... is the check that was failing; it is clean on this tree, and this PR's own go job is the gate confirming it.

Rulebook compliance

  • R1 (RCA) — the finding is quoted from the failing run, and the reason it escaped (the wrong subset of checks run locally) is stated rather than left implicit.
  • R2 (no deferral) — main is red now; fixed here, not filed.
  • R4 (no workarounds) — the dead parameter is removed, not silenced with a //nolint or an _ = shortName.
  • R6 (git safety) — feature branch, no force-push, no hook bypass.
  • R7 (prove the gate) — the exact failing command run locally and pasted, plus this PR's own CI.

Change classification

  • Change class: code change (one unused parameter removed from an unexported function)
  • Verification gate: golangci-lint run ./..., go build ./..., full go test ./... on the committed tree
  • Attribution tier: fully tested and validated — the failing check passes locally on this tree and the full suite is green

Assisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)

…mage

main is red. #82 split ResolveLocalImage into a gather and an election, and the
election kept a shortName parameter it never reads — the name filtering all
happens in gatherResolverCandidates, before election.

    container/local_image_coneb.go:505:82: electResolvedImage - shortName is
    unused (unparam)

Caught by the golangci-lint gate added in #78, one commit after it landed, on
its own author. That is the gate working exactly as intended: without it this
would have sat on main until it blocked whoever touched this repo next, because
the pre-commit hook lints the WHOLE repo rather than the diff.

I ran `go build ./container/`, `go vet ./container/` and `go test ./container/`
before #82 but not `golangci-lint run ./...` — the one check that would have
seen it.

Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 17c8aeaca564 (branch: fix/container-drop-unused-shortName)

Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no supply-chain changes. The diff is a single-parameter removal in an unexported function; no T1–T4 concerns.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body accounts for the single file, names the change-class gate (golangci-lint run ./..., go build ./..., go test ./...) with pasted output; fully tested and validated tier justified for a parameter-removal whose changed path is compiled and covered by the full suite; Assisted-by: line present in correct form.
  • B5 (R1): RCA given — the unparam finding is quoted and the escape reason (wrong local check subset) stated; no forbidden framing.
  • B6 (R2): fixed in-tree, not deferred.
  • B8 (R4): dead parameter removed, not silenced with //nolint or _ = shortName.
  • B10 (R5): call site and signature updated in the same commit; no transitional/backcompat path survives.
  • B12 (R10): pasted output internally consistent (build exit=0, lint 0 issues, 18 packages ok); diff aligns with what the checks verify.
  • B16 (architecture): placement: CORRECT — local cleanup of an unexported function in the container package; no layer change.
  • B18: no gofmt/lint/dead-code issues (that is the point of the change).
  • B13/B14/B15/B17: N/A (no candy/schema/concurrency/disposable-target surface touched).

No comments in thread to adjudicate.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 12:45
@github-actions
github-actions Bot merged commit 4b4f66f into main Aug 30, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
atrawog added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the fix/drop-the-unused-resolver-param branch September 25, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant