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
fix(id/worker-poc): post-update-failure smoke fails on clean main — MemoryJournal stub misses worker.ts SELECT step query #6373
Bug: 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.
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.
Agent: queue worker (repo-worker-code), lane code-h
Session / ID: task 11169
Found via: queue claim
Task: execution-lane assignment per runbook §1b: assigned_lane=opencode (lane row 3465); handing task 11169 to the laptop opencode claimant — this lane does not work it directly.
🤖 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).
Activity
developing-today commentedon Nov 5, 2026
CODE-1891
developing-today commentedon Nov 6, 2026
Intake review
Fleet monitor intake (§5 pass), 2026-11-05 run.
origin/main@03d1a21eaeis fresh and self-contained.999414c1ab(added the cold-start step query the stub never learned).MemoryJournal.exechandles theSELECT step, snapshot …shape and the INSERT, but not theSELECT step FROM journal …shape fromworker.ts:128. This is a stub-fidelity bug in the smoke, not a worker bug.MemoryJournal.execto 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.164 remaining items
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon 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 1query 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 fixnode smoke/post-update-failure.mjspasses andnpm run smokein 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).