Skip to content

[audit] Refactor: split cmd/autoscale.go (1335 LOC, ~15 handlers) #321

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 3 — structural

Evidence

  • cmd/autoscale.go 1335 LOC; handler seams at 747/857/1138/1230/1274

Recommendation
Same-package split into autoscale_schedule.go / autoscale_policy.go. Sequence BEFORE the autoscale grouping renames (Phase 2) if doing both.

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
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