GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — aggregator(charges-producer): a trailing or flag-like --start/--end/--out value is silently replaced by the defaults — the producer overwrites the live candidates file for the wrong period and exits 0 · Issue #3333 · developing-today/code Closed Labels app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item Descriptionaggregator(charges-producer): a trailing or flag-like
|
| Case | Result |
|---|---|
control: --skip-gmail --start 2026-09-01 --end 2026-09-30 --out <probe>/control.json |
exit 0; control.json written with period 2026-09-01..2026-09-30; stub logged --start-date 2026-09-01 --end-date 2026-09-30; default file untouched |
trailing --out: ... --start 2026-09-01 --end 2026-09-30 --out |
exit 0; silently wrote the default candidates path (wrote .../default-out.json) — in a real run that is the live hidden_files/charges-candidates.json, overwritten when the operator asked for a custom file and forgot its value |
trailing --start: --skip-gmail --end 2026-09-30 --out <probe>/trailstart.json --start |
exit 0; period became 2026-11-01..2026-09-30 (start after end); the stub was queried with --start-date 2026-11-01 --end-date 2026-09-30, and the inverted period was persisted into the written file |
flag-like --out value: --start 2026-09-01 --end 2026-09-30 --out --skip-gmail |
exit 0; wrote a file literally named --skip-gmail in the working directory (producer: wrote --skip-gmail), and the same token also switched Gmail off |
unvalidated date: --skip-gmail --start banana --end 2026-09-30 --out <probe>/banana.json |
exit 0; stub queried with --start-date banana; the written file's period.start is the string "banana" |
The failure is silent in exactly the dangerous direction: the operator
believes they produced a custom period into a scratch file, while the
script actually (a) regenerates the current month into the live
candidates file, or (b) persists a candidates file whose declared period is
inverted or not a date at all, which the collector then matches and surfaces
as if it were the requested period. Nothing in the output line looks wrong —
it prints the substituted values as if they were requested.
Distinct from: #3295 (append-usage-snapshots --by voiding observedBy),
#3330 (backfill --dir crash / flag-named directory), #3285 (compact
--months 0) — same unchecked-argv family, different script, different
failure: here the ?? fallback masks the missing value instead of
crashing or misdirecting, and the target of the silent write is the live
charges pipeline input. Also distinct from #3224/#3120/#3121 (amount/subject
parsing inside this same producer) and #2448 (a garbled Gmail date throwing
inside gmailCandidates).
--start, --end, or --out with no following value, or with a--, prints a usage/error message--start / --end values that are not real calendar dates inYYYY-MM-DD form, or a start after end, exit 2 with an error namingPLAID_CLI) covers the trailing-flag, flag-like-value, and🤖 Agent note · filed
Adopted as Phase 2 of design #3352 (corollary 3: present-but-valueless is not absent). The design records the contract this issue's fix must follow: every argument is accounted for before any side effect; unknown/typo'd arguments are a usage error naming the argument (exit non-zero, 2 where no usage code is established) before any subprocess/network/file/lock/deploy step. Triage: do NOT re-file, re-scope or split this issue — record the phase structure and verdict, and keep this issue's own acceptance criteria as the phase's acceptance. Design doc: files/designs/code-operator-argument-contract.md (keep-the-four-repos-healthy goal workspace).
🤖 Agent note · done — PR opened, not merged
pr_opened; PR fix(aggregator): validate charges producer CLI args (#3333) #5145 is open. The policy-listed PR/merge-group check did not run, so no merge was attempted. CI trigger coverage is tracked in CI policy PR checks are missing workflow triggers #5149; this issue remains open pending PR merge.bun test test/produce-charge-candidates.test.ts — 43 passed, 0 failed. The package typecheck failure is pre-existing on clean main.🤖 Agent note · picked up
Merge pull request #5145 from developing-today/queue/8704-3333-charge…
🤖 Agent note · done
pm-stack/aggregator/scripts/produce-charge-candidates.ts and its test file; diff implements exit-2 on missing/flag-like --start/--end/--out values before any connector call or file write, real-calendar-date validation, and start<=end validation, with defaults unchanged. Codex review on PR fix(aggregator): validate charges producer CLI args (#3333) #5145 completed with zero findings (nothing to disposition). Targeted tests re-run on the laptop: bun test test/produce-charge-candidates.test.ts — 43 pass, 0 fail, 113 assertions.🤖 Agent note · done (already_done — duplicate follow-on)
gh pr view 5145 — MERGED 2026-11-08T03:15:49Z, merge commit 1edecf8. Current origin/main a26e974 carries the validation in pm-stack/aggregator/scripts/produce-charge-candidates.ts (exit-2 paths on missing/flag-like values). Issue aggregator(charges-producer): a trailing or flag-like --start/--end/--out value is silently replaced by the defaults — the producer overwrites the live candidates file for the wrong period and exits 0 #3333 is CLOSED with no queue/work labels left. Task 12110 also re-ran the targeted suite green (43 tests, 113 assertions) and dispositioned the Codex review (zero findings).already_done; no new work, no competing PR.🤖 Agent note · correction to the task 12633 done note above (comment 6717925476)
fleet queue complete 12633 returned complete_task: task 12633 is not claimed by repo-worker-code (broker exit 5) immediately after a successful bookkeeping checkpoint at 2026-11-08T05:51:41Z, and a follow-up checkpoint returned the same verdict. Either the completion applied and later verbs correctly refuse a finished task, or the broker claim was lost/reassigned in that window (same pattern lane code-g hit on task 12495 this shift). Per runbook §0b this note carries the full structured outcome durably: {"outcome": "already_done", "issue_state": "closed", "pr": {"number": 5145, "state": "merged"}, "merge_sha": "1edecf809f08ed44a07a12f9175e755e3a713a1b", "follow_up_task_ids": []}. If task 12633 resurfaces as queued/parked, complete it against this evidence — do not redo the work.