Repository navigation
[sergo] Sergo Report: Gap-Reconcile + Delta-Audit - 2026-08-13 #52430
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-14T04:41:52.160Z.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Executive summary
This run (R61) opened with a reconciliation problem: the local strategy/stats cache (
sergo-strategies.jsonl/sergo-stats.json) hadn't been updated since R60 (2026-07-08), but GitHub issue history runs continuously to #52231, meaning roughly 5 weeks of untracked runs happened in between. The registry had also grown from 43 to 64 analyzers, and the old detection heuristic for that (grep -c Analyzer cmd/linters/main.go) is now dead. After reconciling, I filed 2 new, verified-non-duplicate issues and corrected the local memory cache.Key findings
collectKnownPathConstsapplies the same!c.Exported()filter to both the current package's own constants and imported "constants" packages. For the current package, exportedness is irrelevant — same-package code can reference unexported constants freely — so unexported same-package path constants are wrongly dropped from the known-constants map, causing the linter to suggest "extract a new constant" instead of "reuse constant X" when one already exists. Real-world echo:pkg/cli/mcp_config_file.go:19andpkg/cli/bootstrap_shared.go:18are two separate unexported constants for the identical".github/mcp.json"literal — exactly the duplication this linter should help surface/consolidate.console,parser,styles,tty,workflow) already carries a justified(nolint/redacted):regexpdynamicpattern, matching the already-closed Remediate dynamic-regexp custom-linter findings across pkg/agentdrain, stringutil, parser, cli, workflow #50995 remediation. Zero unsuppressed true positives remain — proposed adding-regexpdynamicpatternto bothLINTER_FLAGSlines in.github/workflows/cgo.yml.Registry delta reconciliation
Registry grew 43 → 64 (+21); detection method had to change
grep -c Analyzer cmd/linters/main.gonow returns 0 —main.gowas refactored tomultichecker.Main(linters.All()...), so analyzers are no longer listed directly in that file.grep -c 'Analyzer,' pkg/linters/registry.go(canonical registry) or thedoc.go"All NN active analyzers:" header — both agree at 64 this run, anddoc.gois in sync withregistry.go(no doc-drift finding needed, unlike several historical doc-sync issues).gh api search/issuesand thesergolabel history, so none needed re-auditing from scratch this run.cgo.ymlLINTER_FLAGS, 2 near-identical lines including the wasm variant). The 13 still unenforced:errormessage,errorfwrapv,excessivefuncparams,httprespbodyclose,httpstatuscode,largefunc,regexpdynamicpattern(addressed above),ssljson,seenmapbool,sprintferrdot,stringsconcatloop,lenstringzero,hardcodedfilepath.Housekeeping: stale probe issues need human cleanup
Three open issues labeled
sergo— #52229, #52230, #52231 (titledprobe3/4/5-DELETE-ME) — appear to be leftover test artifacts from a prior run, not real findings. No safe-output tool in this workflow's configuration can close issues, so they're called out here for a maintainer to close manually rather than left silently unresolved.Strategy and metrics
Strategy this run followed the standard 50/50 split: one cached-pattern reuse (enforce-readiness, reapplied to
regexpdynamicpattern) and one new exploration (const-collector export-filter bug inhardcodedfilepath, an older linter never previously audited from this angle). Combined with the registry/cache reconciliation work, this run scores 8/10 — full marks withheld only because the analyzer binary itself could not be run (go/go build/go testare blocked pending approval in this sandbox), so both findings rest on code-reading plus targeted grep rather than a live tool run; flagged as a verification caveat in both filed issues.Historical context (last 3 runs)
Next-run recommendations
go/go buildsandbox access has been restored, to allow live analyzer validation instead of code-reading approximation.pkg/linters/registry.gofor a 65th analyzer.References:
sergoAll reactions