Skip to content

[audit] Dead code: delete cmd one-off helpers waitForDCV / getTagValue / formatTTLDuration #292

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

  • cmd/app.go:610 waitForDCV, cmd/completion.go:169 getTagValue, cmd/extend.go:307 formatTTLDuration — dead
  • tests: cmd/utils_test.go:220, cmd/extend_test.go:160
  • NOTE: lambda/dashboard-api has its OWN live getTagValue — do not touch that one

Recommendation
Delete all three + their tests.

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