Skip to content

[audit] Flags: local --output/-o in queue/slurm/pipeline shadow the root format flag with a different meaning #309

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 2 — rename (design)

Evidence

  • root.go:78 persistent -o/--output = format
  • queue.go:168 (results -o = output DIR), :171/:175 (template gen/init -o = output FILE), slurm.go:110 (convert -o = param file), pipeline.go:160 (collect --output = dir)

Recommendation
Rename the path flags to --output-file/-f or --output-dir (precedent: sweepgroup.go:116); keep --output/-o as deprecated aliases. Extend flag_conventions_test.go to lock this.

User-facing / SemVer: User-facing — deprecated aliases + CHANGELOG + MINOR.

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