Repository navigation
Description
Problem
charly/.golangci.yml and the repo-root .golangci.yml disagree, and the
CI-exact invocation does not use the one the root config claims wins.
The root .golangci.yml states:
"golangci-lint discovers a config by walking UP from the working directory, so
this ONE file coverscharly/… Each module MAY keep its own closer config (the
closest wins):charly/does, because it needs a stricter, explicitly-curated
linter set … The eleven curated quality/idiom linters are … enabled in
charly/.golangci.yml, the module's own closer config, which wins forcharly/."
But .github/workflows/ci.yml runs the gate as
golangci-lint run ./charly/... from the repo ROOT. golangci-lint's config
discovery walks up from the working directory (the repo root), not from each
package — so it selects the ROOT .golangci.yml (6 linters), and
charly/.golangci.yml (the curated set that enables unconvert, unparam, …) is
never used.
Evidence (executed)
$ golangci-lint run ./charly/... # from repo root — the CI command
0 issues.
$ (cd charly && golangci-lint run ./...) # from inside charly/ — the module config
plugin_requires_test.go:24:13: reqCap - class always receives ClassVerb ("verb") (unparam)
engine_provider.go:50:69: unnecessary conversion (unconvert)
2 issues: * unconvert: 1 * unparam: 1
$ golangci-lint run ./charly/... --verbose | grep -i config
[config_reader] Used config file .golangci.yml
[lintersdb] Active 6 linters: [errcheck gofmt govet ineffassign staticcheck unused]
The two findings are byte-identical on origin/main (the files are not touched by
any recent change), so they are pre-existing — surfaced only under the module config
that CI never reaches for charly/.
Impact
The strict, curated charly/ linter set — the "AGENTS.md-compliance audit"
(/charly-internals:go-quality) — effectively never runs in CI. main can carry
unconvert/unparam/dupl-class debt indefinitely while CI shows green, because
the CI gate is the 6-linter baseline, not the curated set it claims to enforce.
The root config's own comment is the stale claim (R1: a doc diverging from reality).
Intended scope
Decide the one canonical invocation that makes charly/.golangci.yml actually
govern charly/ in CI (e.g. run the gate from within charly/, or add
--config charly/.golangci.yml, or move the curated linter set into the root
config), then fix the two pre-existing findings (engine_provider.go unconvert,
plugin_requires_test.go unparam) in the same cutover, and correct the stale root
comment. Owning skill: /charly-internals:go-quality.
Filed from opencharly/opencharly#342 (the charly task prune batch) — the
divergence was surfaced while gating a mechanical pin bump whose diff does not touch
either file.
Activity
aitrawog commentedon Oct 3, 2026
CLAIM — curated
charly/.golangci.ymlnever runs in CI.Working this in this session. Canonical invocation chosen: run the charly lint from inside
charly/(( cd charly && golangci-lint run ./... )), matching the committed local pre-commit gate, which already runs with cwd = the touched module root. Plus the two pre-existing findings (engine_provider.gounconvert,plugin_requires_test.gounparam) and the stale root-comment correction (R1). PR follows.Agent:
lint-canon· sessionses_eff40584bffe0JqilUWOh4UlTYAssisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
aitrawog commentedon Oct 3, 2026
CLAIM —
lint-canon(was unassigned).Being landed via
opencharly/charly#769(which will close this issue) together with its completeness sibling#774(nolintlint+ the 6 stale directives). The PR is currently HELD (no push) on#762, because the curated config now running in CI requires the two findings fixed, and the runtime one (engine_provider.gounconvert) can only be proven by thecheck-pod-overlaybed the#762skew blocks. Full RCA + plan in the PR body.Agent:
lint-canon· sessionses_eff40584bffe0JqilUWOh4UlTYAssisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
fix(lint): enable nolintlint and remove the 6 stale //nolint directiv…
fix(pluginsgen): extract collectWordRefs so generate stays under the …
fix(lint)!: run the curated golangci-lint from charly/ + enable nolin…
aitrawog commentedon Oct 4, 2026
RESOLVED — landed in #769 (squash
da779f20), taggedv2026.277.1722.The curated
charly/.golangci.ymlnow runs in CI:.github/workflows/ci.ymlinvokes it from insidecharly/(( cd charly && golangci-lint run ./... )), so cwd-based discovery selects the curated set — matching the local pre-commit gate. The findings it surfaced are fixed (engine_provider.gounconvert,plugin_requires_test.gounparam, and — via the folded #774 — the stale//nolintdirectives + thepluginsgengocyclo), and the stale root comment is corrected. Verified onmain: ci.yml carries thecd charlyinvocation,charly/.golangci.ymlcarriesnolintlint, curated run = 0 issues. Closing.Agent:
lint-canon· sessionses_eff40584bffe0JqilUWOh4UlTYAssisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)