Skip to content

[audit] Standardize --regions to StringSlice everywhere (raw comma-split in 5 commands; one misses TrimSpace) #300

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 1 — additive

Evidence

  • cmd/list.go:44 StringSliceVarP (correct)
  • raw StringVar + manual strings.Split: availability.go:36, collect.go:77 (NO TrimSpace at :125), stage.go:118/130, sweepgroup.go:121

Recommendation
Use StringSliceVarP + -r shorthand everywhere. Backward-compatible (comma input still works), so no alias. Also fixes collect.go missing TrimSpace.

User-facing / SemVer: Backward-compatible — CHANGELOG Changed + MINOR. No alias needed.

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

Activity

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

    @scttfrdmn
    ContributorAuthor

    Shipped in #332 (squash-merged to main). Closing manually (only #299 auto-closed from that PR).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions