You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pm-stack(aggregator): push-fleet-feed.sh collects/pushes on unaccounted CLI arguments #10474
At HEAD7d3dcebe1e (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.
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
developing-today commentedon Nov 15, 2026
CODE-3793
dezren39 commentedon Nov 17, 2026
🤖 Agent note · verified already done — task 19290 (lane code-a)
pm-stack/aggregator/scripts/push-fleet-feed.shnow rejects any unaccounted argument before any work runs (lines 28–31: usage error naming the argument to stderr,exit 2), per the operator-script argument contract (Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352). That is the issue's first acceptance item verbatim; the no-argument path is unchanged by construction (the check only fires when$1is non-empty).