Skip to content

pm-stack(aggregator): push-fleet-feed.sh collects/pushes on unaccounted CLI arguments #10474

Closed

Description

@dezren39

Evidence

At HEAD 7d3dcebe1e (2026-11-15), pm-stack/aggregator/scripts/push-fleet-feed.sh is an operator script that collects the fleet feed and pushes it to the laptop aggregator, but it never parses or rejects its command line.

  • File: pm-stack/aggregator/scripts/push-fleet-feed.sh (217 lines). After setup it performs real work: takes a flock, collects via bun run scripts/collect-fleet-feed.ts --out "$FEED" (line ~77) and then pushes over the tailnet/proxy path.
  • No --help/usage handling and no rejection of unknown or extra arguments.

Repro (from repo root):

bash pm-stack/aggregator/scripts/push-fleet-feed.sh --bogus-arg-test

Observed: the script does not reject --bogus-arg-test. It proceeds into collection/push logic and exits 0 (on this host it collected the feed and attempted the push path; e.g. collector wrote the feed JSON and the script reported push status rather than a usage error).

Why it matters

Per AGENTS.md / doc/agents/operator-script-argument-contract.md (#3352), operator scripts must parse strictly and treat unaccounted arguments as a usage error with a non-zero exit before any subprocess, network, file write, lock, or deploy step. Ignoring extra arguments means a typo can silently trigger a feed collection and remote push (overwriting the laptop feed, as the script header notes) instead of failing fast.

Acceptance criteria / suggested fix

  • pm-stack/aggregator/scripts/push-fleet-feed.sh rejects any unaccounted argument before taking the lock, collecting, or pushing, printing usage to stderr and exiting non-zero.
  • --help/-h prints usage and exits 0 with no side effects.
  • Existing no-argument behavior remains unchanged.
  • Add/extend a regression check consistent with neighboring pm-stack scripts.

Activity

  1. developing-today commented on Nov 15, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · verified already done — task 19290 (lane code-a)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions