GeezerVison is showing github.com — fix(id/worker-poc): post-update-failure smoke fails on clean main — MemoryJournal stub misses worker.ts SELECT step query · Issue #6373 · developing-today/code
fix(id/worker-poc): post-update-failure smoke fails on clean main — MemoryJournal stub misses worker.ts SELECT step query #6373DescriptionBug: worker-poc smoke/post-update-failure.mjs fails on clean main — MemoryJournal stub doesn't handle worker.ts's SELECT step FROM journal query
Reproduced on clean origin/main @ 03d1a21eae (no local changes), laptop Node v24.21.0:
cd pkgs/id/worker-poc
node smoke/post-update-failure.mjs
# Error: unexpected SQL: SELECT step FROM journal ORDER BY step DESC LIMIT 1
# at MemoryJournal.exec (smoke/post-update-failure.mjs:37)
# at WorldObject.handle (src/worker.ts:128)
Cause
pkgs/id/worker-poc/src/worker.ts:128 issues SELECT step FROM journal ORDER BY step DESC LIMIT 1 (added by 999414c "fix(worker-poc): report journal step on cold start"). The smoke's MemoryJournal.exec stub handles the SELECT step, snapshot FROM journal ... shape (worker.ts:98) and the journal INSERT, but not the SELECT step FROM journal ... shape, so it throws unexpected SQL.
Verified pre-existing: the failure reproduces identically with all local changes stashed (found during task 10764 / issue #6372, which only wires participant-validation into the smoke chain — no source or smoke-file changes). counter-smoke and participant-validation are green on the same tree.
Acceptance
MemoryJournal in smoke/post-update-failure.mjs handles the SELECT step FROM journal ORDER BY step DESC LIMIT 1 query (returns the latest step), or worker.ts's query is aligned with the shapes the stub supports.
node smoke/post-update-failure.mjs passes on clean main.
npm run smoke in pkgs/id/worker-poc runs the full chain green.
Acceptance criteria
node smoke/post-update-failure.mjs in pkgs/id/worker-poc passes on clean main.
- The smoke's
MemoryJournal stub handles the SELECT step FROM journal ORDER BY step DESC LIMIT 1 query shape that src/worker.ts issues on cold start, returning the latest journaled step.
- The neighbouring smokes (
counter-smoke, participant-validation) still pass, and no production behaviour in src/worker.ts changes.
Activitydeveloping-today commented on Nov 5, 2026 developing-today commented on Nov 6, 2026 Intake review
Fleet monitor intake (§5 pass), 2026-11-05 run.
- Still live: merged-PR searches found no fix; PR ci(id/worker-poc): wire participant-validation smoke into entry points (#6372) #6374 (the issue ci(id/worker-poc): participant-validation.mjs — the #4074 regression smoke — has no entry point: not in the smoke chain, no script of its own, absent from the README #6372 wiring) only exposed this failure. The body's repro on clean
origin/main @ 03d1a21eae is fresh and self-contained.
- Related: issue ci(id/worker-poc): participant-validation.mjs — the #4074 regression smoke — has no entry point: not in the smoke chain, no script of its own, absent from the README #6372 (the participant-validation wiring task that surfaced this), commit
999414c1ab (added the cold-start step query the stub never learned).
- Notes: root cause is already pinned in the body —
MemoryJournal.exec handles the SELECT step, snapshot … shape and the INSERT, but not the SELECT step FROM journal … shape from worker.ts:128. This is a stub-fidelity bug in the smoke, not a worker bug.
- Risks: low. The main risk is a stub fix that hard-codes a step value and silently stops exercising the cold-start path — the stub should answer from its journaled rows.
- Suggested approach: extend
MemoryJournal.exec to recognise the step-only query and return the max journaled step (or an empty result when no rows exist, matching a fresh journal), then run the full smoke chain.
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026 🤖 Agent note · done — Agent: queue worker (repo-worker-code), lane code-b — Session/ID: task 14470, repo-queue-worker-shift-b 2026-11-09 run. Task 14470 (small_fix, direct lane row 5664) for issue #6373: fixed and merged. The MemoryJournal stub in pkgs/id/worker-poc/smoke/post-update-failure.mjs now handles the SELECT step FROM journal ORDER BY step DESC LIMIT 1 query issued by src/worker.ts:128 on cold start, returning the latest journaled step; no production behaviour changed. Reproduced the failure on clean main (02f4ece) before the fix; after the fix node smoke/post-update-failure.mjs passes and npm run smoke in pkgs/id/worker-poc runs the full chain green (counter-smoke, participant-clamp, post-update-failure, participant-validation). PR #8103 merged, merge sha 321ae7e; issue #6373 CLOSED by the merge. Codex review produced no findings (usage-limits notice only).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|