Skip to content

[audit] Dead code: delete pkg/queue DependenciesMet/GetReadyJobs (topo-sort path is the live one) #291

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/queue/dependency.go:72 DependenciesMet, :82 GetReadyJobs — dead; the topological-sort path is what's actually used
  • tests at pkg/queue/dependency_test.go:139,199 exercise only the dead funcs

Recommendation
Delete both funcs + their tests in the SAME change or the build breaks.

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