Repository navigation
Description
Finding (from PR review)
PR #9341 (merged, feat(pm-stack): decision-set event pipeline — Turso sync + Cloudflare Worker/D1/DO (#9335)) adds the sync-decision-events.ts operator script. Codex's P2 finding: a failure to read the explicitly requested --outbox-dir is silently converted into an empty directory. If the supplied directory is unreadable, missing, or a regular file, the script continues with the default outbox file and can exit 0 reporting zero pending — while the requested source was never read at all, leaving its events unsynchronized with no diagnostic.
- Source PR: feat(pm-stack): decision-set event pipeline — Turso sync + Cloudflare Worker/D1/DO (#9335) #9341
- Review comment: feat(pm-stack): decision-set event pipeline — Turso sync + Cloudflare Worker/D1/DO (#9335) #9341 (comment)
- Reviewer:
chatgpt-codex-connector[bot], 2026-11-13T05:34:08Z (P2) - Flagged location:
pm-stack/aggregator/scripts/sync-decision-events.ts:108
"If the directory supplied through
--outbox-diris unreadable, missing, or actually a regular file, this catch converts the read failure into an empty directory without any diagnostic. The script then continues with the default outbox and can exit successfully with zero pending events while leaving the requested source completely unsynchronized. Propagate directory-read failures or report them and return a non-zero exit status so operators can distinguish a broken source from an empty outbox."
No-response evidence
- The review thread contains only the Codex comment — no replies (verified 2026-11-14 via the PR comments API and a GraphQL
reviewThreadsread:isResolved=false, 1 comment). - PR feat(pm-stack): decision-set event pipeline — Turso sync + Cloudflare Worker/D1/DO (#9335) #9341's only commit after the comment is
66940fb15f(2026-11-13T05:40:26Z), a merge oforigin/maininto the branch — it does not touch the flagged logic. The PR merged at 2026-11-13T05:45:31Z (merge commitaad1d3602a) with the finding unaddressed; the only later main commit touching these files is a treefmt style pass (d451641c31). - Dedupe: open/closed issue searches by comment id, file path, and keywords (fan-out, pagination cursor, outbox-dir, webhook acknowledgement) found no issue covering this finding; parent issue pm-stack decision sets v2: rich questions, event log, submit API + activity webhook/hook #9335 is closed and does not track it.
Still-live evidence (verified 2026-11-14 on current main)
pm-stack/aggregator/scripts/sync-decision-events.ts:107-110:const entries = await readdir(opts.outboxDir).catch(() => [] as string[]);— every read failure becomes an empty listing, with no log line and no effect on the exit status; the run proceeds with the default outbox file only (line 106).
Acceptance criteria
- An unreadable/missing/non-directory
--outbox-dirproduces a diagnostic and a non-zero exit (or the failure is propagated), so a broken source is distinguishable from an empty outbox. - A regression test (or scripted check) covers the missing-directory and regular-file cases.
- Or: a documented decision on this issue that this behavior is accepted, with the reasoning recorded.
Activity
dezren39 commentedon Nov 14, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 14, 2026
Picked up by
repo-worker-any-a— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilerepo-worker-any-aposts progress markers; after 30 minutes of silence any other worker may pick this up.)87 remaining items
dezren39 commentedon Nov 14, 2026
agent-note:v1
worker: repo-worker-code
lane: code-h
task_id: 16163
state: claimed
note: Picked up small_fix for #9615. Creating worktree and inspecting pm-stack/aggregator/scripts/sync-decision-events.ts.
dezren39 commentedon Nov 14, 2026
agent-note:v1
worker: repo-worker-code
lane: code-h
task_id: 16163
state: done
note: Opened PR #9636 (#9636) failing non-zero on unreadable --outbox-dir with regression tests. bun test: 2 pass, 0 fail.
Merge pull request #9636 from developing-today/queue/16163-9615-outbo…