Repository navigation
fix(pm-projector): validate CLI argv before opening store - #11278
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 29 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Closes #8650. Declares allowed flags per projector subcommand and parses the full argv once before opening/migrating the DB. Unknown flags, positional arguments, missing/flag-shaped values, and invalid values fail with named usage errors and exit 2. Adds subprocess probes asserting invalid argv creates no DB file. Caller audit:
pm-stack/projector/src/cli.tsis invoked bypkgs/pm-projector/package.nixonly with no flags (defaults to reconcile); systemd timer/service triggers the wrapper, not CLI flags.queue-viewremains a documented manual invocation; no previously-ignored caller args found.Verification:
cd pm-stack/projector && bun test test/cli-argv.test.ts(9 pass);bun test(171 pass); manual validqueue-view --tasks <empty-json> --window-hours 24 --consumer queue-view --no-ack --format jsonprobe passed.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.