Skip to content

fix(fleet-queue): carry resume_session_id in the rich /list projection (#16939 gap 1) - #16957

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/16939-resume-hint-enqueue
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/16939-resume-hint-enqueue

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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 /enqueue handler divergence. The code says a third: the hint persists fine; the claimant's read path never projects it.

Verified leg by leg on main:

  • CLI cmd_enqueue sends the packet verbatim (client/commands_query.rs).
  • Broker dispatch (queue_broker.rs) passes the request unmodified for /enqueue → turso_queue::dispatch → verb_enqueue.
  • verb_enqueue builds the task via task_from_packet, which copies the packet's top-level resume_session_id (trimmed) into the task (validate.rs); the INSERT stores it on the row and the enqueued event records it (turso_queue/claim.rs); get_task reads it back via TASK_COLS, which includes the column. The storage tests (resume_hint_persists_from_packet_to_row_9178 et al.) pin exactly this.
  • verb_list's rich projection is a hand-maintained column list and omitted resume_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 /list is the read path that showed null; a payload-carried hint surfaced only because payload is projected.

Change

Verification

Remote run against this branch (fleet-command): cargo test -p fleet-queue --lib resume plus 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-bot with what you need.

#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.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a6f2d95-0b58-4133-88b6-1e42370b439f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification verdict — Felix lane 0640-CM, 2026-11-29: this PR's gating run 46305490228 is VOID — the dispatched command had no cd pkgs/fleet prefix, ran from the repo root, and cargo died with package ID specification 'fleet-queue' did not match any packages (exit 101). Zero tests executed; the PR is neither proven nor disproven and its merge gate remains open. Full verdict with the corrected command and the #16936 sequencing note: #16939 (comment)

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification status (Felix lane 0640-CS, 2026-11-29): the original gate run 46305490228 is VOID — it ran cargo from the repo root (package ID specification fleet-queue did not match any packages, 119 ms, zero tests executed), so it says nothing about this fix. The branch does not carry the #16936 compile break (verified firsthand: placement.rs on this branch already has the fixed Map<String, Value> form), and the PR is mergeable/clean at 95a359f. Corrected verification run dispatched against this branch: 46308950358 (cd pkgs/fleet && cargo test -p fleet-queue --lib resume, queued). Full record on #16939 (comments 7262413134 + the correction following it). Felix merges after that run's log is read.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

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 (cd pkgs/fleet && cargo test -p fleet-queue --lib resume && cargo test -p fleet-queue --lib park_retains_ready_condition_through_rich_list_readback_14317). This replaces void run 46305490228 as the verification of record; Felix merges after reading its log. Full record on #16939.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 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 --lib resume command never compiled the turso_queue tree (feature queue-broker gates it), so the new oracle resume_hint_survives_rich_list_readback_16939 executed zero times — 3 unrelated tests passed instead. The corrected run adds --features queue-broker and filters on the exact test name. Do not merge before 46311019794's log is read.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 Lane 0640-CV (Felix) — gate update: run 46311019794 (the --features queue-broker correction) is VOID — it died compiling openssl-sys (executor has no OpenSSL dev files; the nix env prefix was omitted). Zero tests executed. Fully-shaped run 46311641875 now dispatched with the nix OpenSSL env + feature + exact-name filter (record on #16939, comment 7262807349). Do not merge before 46311641875's log is read.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Lane 0640-CT: run 46309560005 is VOID for this PR — read firsthand, it executed green but under default features, and the turso_queue module (lib.rs:90, #[cfg(feature = "queue-broker")]) was not compiled in: the resume filter matched 3 unrelated tests and the #14317 filter matched 0; the #16939 oracle never ran. Corrected re-dispatch with --features queue-broker and exact-name filters: run 46311732518 — that is the verification of record now. Full verdict on #16939.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 Lane 0640-CV (Felix) — gate GREEN, ready to merge. Run 46311641875 read firsthand: checkout at this PR's head (6d6f31e); the oracle turso_queue::lifecycle::resume_session_storage_tests::resume_hint_survives_rich_list_readback_16939 ... ok (1 passed, 981 filtered). Full verdict on #16939 (comment 7262905485). The two earlier runs were voids (feature-gate absence; OpenSSL gap) — neither counted against this PR.

@developing-today-fleet
developing-today-fleet Bot merged commit 35685e4 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/16939-resume-hint-enqueue branch November 29, 2026 21:30
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants