Repository navigation
fix(fleet-queue): carry resume_session_id in the rich /list projection (#16939 gap 1) - #16957
Conversation
#16939) Gap 1 of #16939: a packet's top-level resume_session_id is persisted by verb_enqueue (task_from_packet copies it; the INSERT stores it; get_task/TASK_COLS read it back), but verb_list's hand-maintained rich projection omitted the column — the #14317 defect shape — so the claimant's own read path (rich /list) showed the hint as null and only a payload-carried hint ever surfaced. Add the column to the rich projection, add it to the queue show field list, and pin the seam with resume_hint_survives_rich_list_readback_16939: enqueue a hinted packet, read it back through rich /list, assert the hint; an unhinted task reads back null.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Verification verdict — Felix lane 0640-CM, 2026-11-29: this PR's gating run 46305490228 is VOID — the dispatched command had no |
|
Verification status (Felix lane 0640-CS, 2026-11-29): the original gate run 46305490228 is VOID — it ran cargo from the repo root ( |
|
Lane 0640-CT (Felix): branch refreshed with current main (83a8b82) — merge commit 6d6f31e, zero conflicts, no markers; the #16936 compile fix is in this branch's tree (placement.rs identical to main) and the #16939 oracle test is intact. Corrected verification dispatched against the refreshed branch: run 46309560005 ( |
|
🤖 Lane 0640-CV (Felix) — gate verdict: run 46308950358 does not prove this PR; corrected run 46311019794 dispatched. Full record on #16939 (comment 7262721337). In short: the run checked out this PR's head (6d6f31e) and concluded success, but its default-features |
|
🤖 Lane 0640-CV (Felix) — gate update: run 46311019794 (the |
|
Lane 0640-CT: run 46309560005 is VOID for this PR — read firsthand, it executed green but under default features, and the |
|
🤖 Lane 0640-CV (Felix) — gate GREEN, ready to merge. Run 46311641875 read firsthand: checkout at this PR's head (6d6f31e); the oracle |
|
Felix lane 0640-DJ: gate status — resume oracle PROVEN green on this head (6d6f31e) by run 46311641875 (verdicts: #16939 comments 7262905485 + concurrence 7262926830). Run 46311732518 verdicted VOID (openssl-sys, zero tests). The park_retains half of the gate pair is running as run 46312444244 in the fully-shaped form; its log completes the pair. Felix merges on this record. |
Refs #16939 (gap 1, code half — the launch-side gap 2 is lane any-o's slice).
Root cause
The issue offered two hypotheses for the null read-back — deployed broker lag, or an
/enqueuehandler divergence. The code says a third: the hint persists fine; the claimant's read path never projects it.Verified leg by leg on main:
cmd_enqueuesends the packet verbatim (client/commands_query.rs).dispatch(queue_broker.rs) passes the request unmodified for/enqueue→turso_queue::dispatch→verb_enqueue.verb_enqueuebuilds the task viatask_from_packet, which copies the packet's top-levelresume_session_id(trimmed) into the task (validate.rs); the INSERT stores it on the row and theenqueuedevent records it (turso_queue/claim.rs);get_taskreads it back via TASK_COLS, which includes the column. The storage tests (resume_hint_persists_from_packet_to_row_9178et al.) pin exactly this.verb_list's rich projection is a hand-maintained column list and omittedresume_session_id(turso_queue/admin.rs) — the fleet queue: park verb does not retain ready_condition (parked task reads back null) #14317 defect shape (that fix's comment even states the rule: the projection must carry every column the show field list reads). Poll's rich/listis the read path that showed null; a payload-carried hint surfaced only becausepayloadis projected.Change
turso_queue/admin.rs: addresume_session_idto the rich/listprojection, with the fleet queue: resume hint lost on live enqueue path + launch_one has no resume handling (#16895 evidence findings) #16939 note beside the fleet queue: park verb does not retain ready_condition (parked task reads back null) #14317 one.client/commands_query.rs: addresume_session_idto thequeue showfield list, so the hint is visible on the human read-back path too.turso_queue/lifecycle.rs: new oracle testresume_hint_survives_rich_list_readback_16939inresume_session_storage_tests— enqueue a hinted packet throughverb_enqueue, read it back through richverb_list, assert the hint; an unhinted task reads back null. (Pre-fix this fails: the projected row has no such key.)Verification
Remote run against this branch (fleet-command):
cargo test -p fleet-queue --lib resumeplus the #14317 rich-readback oracle. Run id and log verdict will be recorded on #16939 when the run executes — do not merge before its log has been read.Author: Felix lane 0640-BW (worker felix). Left unmerged for Felix.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-29T20:15:06Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.