Skip to content

[audit] Dead code: delete pkg/instance/patterns.go (unreferenced anywhere) #287

Closed

Description

@scttfrdmn

Filed from the 2026-07-11 spawn audit. Full report: docs/spawn-audit-2026-07-11.md. Assessment-only — no code changed yet.

Phase: Phase 0 — do now (dead code)

Evidence

  • pkg/instance/patterns.go:13,48 — no importers anywhere in the repo (verified across lambda modules too)
  • lambda/sweep-orchestrator has its own private expandWildcard — does not use this

Recommendation
Delete patterns.go + patterns_test.go.

User-facing / SemVer: No — internal. No bump.

Adversarially verified during the audit (62/62 findings survived verification; severities/scope adjusted where the first pass was wrong).

Activity

  1. added
    audit:2026-07
    on Jul 11, 2026
  2. scttfrdmn commented on Jul 11, 2026

    @scttfrdmn
    ContributorAuthor

    Shipped in #330 (squash-merged to main). GitHub only auto-closed the first issue in the PR's closing list; closing the rest manually.

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

    audit:2026-07

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions