Skip to content

2 of 4 linters recommended safe-to-enforce in #55311 (closed completed) were never added to cgo.yml #72309

Not planned

Description

@github-actions

Summary
Issue #55311 (Sergo R61 deep-report, discussion #55268, 2026-08-24) audited 4 registered-but-unenforced linters in full and reported zero defects, recommending all 4 be turned on in CI immediately: generatedyamlheredoc, manualpathconcat, packagelevelmutableslicemap, walkfuncerrshadow. The issue was closed as completed the same day. Re-checked .github/workflows/cgo.yml LINTER_FLAGS today (native line 1668, wasm line 1695): only 2 of the 4 (generatedyamlheredoc, walkfuncerrshadow) are actually present. manualpathconcat and packagelevelmutableslicemap are still completely absent from both native and wasm LINTER_FLAGS, 2+ months after the tracking issue was marked complete, with no follow-up issue ever filed for the remaining two.

Evidence

  • grep of cgo.yml LINTER_FLAGS (both native:1668 and wasm:1695) for all 4 names: walkfuncerrshadow and generatedyamlheredoc each match twice (both CI targets); manualpathconcat and packagelevelmutableslicemap match zero times.
  • #55311s own body explicitly lists all 4 as the safe-to-enable set, with no caveat distinguishing manualpathconcat/packagelevelmutableslicemap from the other two.
  • No subsequent sergo-labeled or other open issue references either linter name for enforcement (gh issue search for manualpathconcat and packagelevelmutableslicemap in the title/body returns only the original creation and feature-gap issues, all already closed).

Why this matters
A process/tracking gap distinct from the standard code-level bug classes this audit usually finds: a remediation issue was closed as fully completed while only half its recommended scope was executed, and the gap then aged out of every subsequent runs bounded memory window (the topic never resurfaced because no code change was expected to be needed - the recommendation was CI config only). This is the same structural blind spot as the ci_target_asymmetry pattern (a closed/completed label does not guarantee the underlying change landed) but for a closed multi-item recommendation issue rather than a reverse-phantom single-issue refile.

Separately, this run also found a real code bug in manualpathconcat (see the companion paren_unwrap_gap issue filed this run) - had this issue been fully executed as described, that bug would already be live in CI today with zero test coverage for the parenthesized shapes it misses.

Recommendation

  • Add manualpathconcat and packagelevelmutableslicemap to cgo.yml LINTER_FLAGS in both the native and wasm jobs, matching generatedyamlheredoc/walkfuncerrshadows existing wiring.
  • For manualpathconcat specifically, land the paren_unwrap_gap fix (companion issue) first or in the same change, since enabling CI enforcement now would ship a linter with a known, code-verified detection gap.
  • Consider a lightweight habit for future multi-item recommendation issues: do not close as completed until every listed item is independently verified present in the target config file, not just spot-checked for one or two items.

Validation

  • manualpathconcat added to cgo.yml LINTER_FLAGS (native + wasm)
  • packagelevelmutableslicemap added to cgo.yml LINTER_FLAGS (native + wasm)
  • CI run confirms no new violations beyond an acceptable/triaged backlog

Effort: small (CI config change), contingent on the companion code fix for manualpathconcat.

Generated by 🤖 Sergo - Serena Go Expert · claude · agent · ~267 AIC · ⌖ ~1 AIC · ⊞ 4.1K · ◷

  • expires on Nov 2, 2026, 8:06 PM UTC-08:00

Activity

  1. added
    cookie
    on Oct 27, 2026
  2. github-actions commented on Oct 27, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 12.8K · ◷

  3. github-actions commented on Nov 3, 2026

    @github-actions
    ContributorAuthor

    This issue was automatically closed because it expired on 2026-11-03T04:06:42.843Z.

    Closed by Workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cookiesergo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions