GeezerVison is showing github.com — fleet queue: lane row with a cleared session can never flip direct — task loops claim/park and the park delay is not honored (task 8750) · Issue #8368 · developing-today/code
fleet queue: lane row with a cleared session can never flip direct — task loops claim/park and the park delay is not honored (task 8750) #8368DescriptionDefect
A queue lane row whose recorded session_id belongs to a session that was cleared (progress session_cleared via park_task) can never be flipped to direct, so the task it names is unworkable by every lane:
- The broker serves the task to Muse lanes (handed_off sink, fix(queue): handoff sink gets its own status (handed_off) and the fake expiry timer is deleted #8234 default pick) and re-serves it immediately after every park — the park delay is not honored (
not_before stays null), so a lane cannot move past it by claiming.
fleet queue lane <task> --exclusion-reason "..." returns the row unchanged (no error, assigned_lane stays opencode, exclusion_reason stays null) — three attempts on 2026-11-11, including the exact fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 recovery sequence (opencode launch failed cap_saturated, cap_room: 0, then flip) that the runbook prescribes for this case.
- The recorded session is dead: cleared 2026-11-05, and no live session owns the task.
Net effect: the task loops claim → park → claim across lanes (14 attempts so far on this one), burning lane shifts, and the underlying work never starts — even though its dependency gate has since landed, so the work itself is unblocked.
Evidence (2026-11-11, lane code-t, task 8750 / issue #3983)
- Lane row 1587:
assigned_lane: opencode, session_id: ses_e5e5668ee9dffew1e9HBjhjSbN, executed_at: 2026-11-05T02:45:01Z, updated_at never changes on flip attempts.
- Task progress:
session_cleared: {via: "park_task", cleared_at: "2026-11-05T02:45:00Z", session_id: "ses_e5e5668ee9dffew1e9HBjhjSbN"} — the broker itself cleared the binding, but the lane row still carries it.
- Parks at 1800s and 3600s were both followed by an immediate re-claim of task 8750 by the same lane (claim
attempts unchanged, not_before: null).
launch_one.py --launch repo-health-code-pilot:8750 → {ok: false, reason: "cap_saturated", cap_room: 0}.
Expected
One of:
- The lane flip succeeds when the row's session is recorded cleared in the task progress (the session is not bound in any live sense), or
- The flip refusal is an explicit error naming the bound session and its state (today it silently returns the unchanged row, indistinguishable from success at a glance), and a park of such a task honors its delay so lanes can move on.
Pointers
Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026
state: evidence (another instance of the claim/park loop)
lane any-d, 2026-11-11 — task 14653, issue #5302
Same loop on a second task shape: task 14653's lane row (id 6008) is assigned_lane=opencode with session ses_e5e37cd8bf2ffe4aJXu2h8oY33 bound (assigned 2026-11-10T18:08:47Z, executed 2026-11-11T01:42:33Z) — the session is present, not cleared, and the exclusion flip does not apply (verified on sibling task 6260: --exclusion-reason left exclusion_reason null). Following runbook 1b, lane any-d parked task 14653 three times (--delay-seconds 1800, bound session named each time); every park returned status=handed_off with not_before=null, and the next fleet queue claim --lane any-d re-served task 14653 immediately — three consecutive claims of the same task in one shift (05:49Z, 05:50Z, 05:52Z), after which the lane ended its bundle because no other item is reachable past it in claim order.
Net effect beyond task 8750's instance: while a handed_off task sits at the head of the global priority order, an unfiltered lane's whole bundle is consumed by the loop — the park is recorded, but with not_before null it excludes nothing. dezren39 commented on Nov 11, 2026 Fresh occurrence of this loop, task 14653 / issue #5302 (main-broken, priority/critical), 2026-11-11, lane any-b — the sixth lane to park this task today for the same binding (after code-c, any-c, code-d, any-a, code-b):
dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged — task 18645 (lane code-e)
- Work kind: task/small-fix · Priority: priority/high (priorities brief line 1: keep the fleet able to work — this loop consumed a whole unfiltered lane bundle on 2026-11-11, lane any-d's evidence) · Effort: effort/m · Kind: kind/bug
- Fresh state (2026-11-17): issue fleet queue: lane row with a cleared session can never flip direct — task loops claim/park and the park delay is not honored (task 8750) #8368 OPEN, labels epic/fleet-orchestration only, no hard-stop labels. The defect is still live on origin/main c4404b8:
lane_reassignment_flip (turso_queue.rs:4037) flips only when the ledger session_id is empty, and verb_lane never consults the task's progress.session_cleared — so a broker-cleared session still blocks every fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 flip, silently. The flip test (:9148) has no cleared-session case.
- Victims' status: task 8750 completed 2026-11-12 and task 14653 completed 2026-11-11 (queue timelines) — the filed instances escaped by other means; the broker predicate was never repaired, and no per-task data repair is owed for them.
- First concrete step for the fix: in
verb_lane, treat a ledger session_id equal to progress.session_cleared.session_id as unbound for the flip (and clear the ledger session_id at binding-clear time, turso_queue.rs:1692 path).
- Acceptance check: cleared-session flip succeeds (regression test); a genuinely bound flip refusal is an explicit error naming the session; a handed_off park sets
not_before and the task is not re-served early; a sweep repairs any remaining live cleared-but-bound rows with the count recorded here; fleet-queue tests pass.
- Follow-on: task 20135 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:8368; packet hidden_files/18645-fix-packet-8368.json). Issue stays OPEN.
dezren39 commented on Nov 17, 2026 🤖 Agent note · in progress
What merged
Remaining item (task 20135 parks on this)
The one-off sweep: find live ledger rows whose session_id equals their task's progress.session_cleared.session_id, clear those bindings, and record the count here. The filed victims (tasks 8750, 14653) already completed and are owed no repair, and current at-source paths (on_binding_cleared) already null the ledger, so the sweep is a bounded audit of rows formed under older code.
dezren39 commented on Nov 18, 2026 agent-note:v1
state: picked_up
task: 20135
lane: any-n (OpenChamber scheduled lane)
worker: repo-worker-code
Claimed and checkpointed task 20135. Fresh GitHub verification: issue #8368 remains OPEN and assigned to dezren39; PR #10978 is MERGED at 68eda5e. The only remaining acceptance is the live-row audit/sweep. Existing comments document that queue list output lacks the necessary ledger/task-progress fields; I will not infer zero or modify unverified rows. dezren39 commented on Nov 18, 2026 agent-note:v1
state: parked
task: 20135
lane: any-n (OpenChamber scheduled lane)
worker: repo-worker-code
Parked for 30 minutes. The code fix is merged, but the remaining live-row audit/sweep is blocked: the available fleet queue CLI exposes summaries only and has no bulk read/repair interface to correlate live ledger session_id values with progress.session_cleared. No rows or worktree touched. Resume when a documented safe bulk audit/repair path is available; do not infer zero from incomplete visibility. dezren39 commented on Nov 18, 2026 agent-note:v1
state: parked
actor: repo-worker-code (openchamber scheduled lane code-h)
task: 20135
reason: PR #10978 merged; remaining acceptance is the live cleared-but-bound ledger-row audit/sweep. No documented bulk read/repair surface in repo-queue, so no count recorded. Resume when one exists. Parked 1h. dezren39 commented on Nov 18, 2026 agent-note:v1
state: parked
task: 20135
lane: code-i (OpenChamber scheduled lane, worker repo-worker-code)
stage: verified -> parked
Resumed task 20135 and revalidated fresh: #8368 is OPEN (assigned to Drew); PR #10978 is MERGED. Acceptance code is merged. The remaining acceptance is a live cleared-but-bound ledger-row audit/repair sweep. No safe documented bulk read/repair surface is available in the queue helper; I did not infer zero rows or touch any live row. Parked for 30 minutes. Resume condition: a documented safe bulk audit-and-repair surface becomes available.
dezren39 commented on Nov 18, 2026 agent-note:v1
lane: code-g (openchamber-scheduled-lane) · queue task 20135 · state: parked
Picked up task 20135 (resume). Verified fresh: PR #10978 merged 2026-11-17T04:58:03Z; this issue still OPEN. Remaining acceptance is the live cleared-but-bound ledger-row sweep. No documented safe bulk audit/repair surface exists on origin/main 2e33d5f, so the sweep count is not recorded and no zero-count is inferred. Parked 24h with that resume condition. dezren39 commented on Nov 19, 2026 Sweep completed by scheduled lane oc-code-08 (task 20135), 2026-11-19.
One-off repair: cleared ledger bindings on live cleared-but-bound rows where repo_task_lane_ledger.session_id = progress.session_cleared.session_id.
- Live rows (status in blocked/claimed/parked/queued) repaired: 4
- task 5571 (blocked, repo-health-code-pilot, via park_task)
- task 5804 (blocked, repo-health-code-pilot, via fail_repo_task)
- task 10501 (blocked, repo-health-code-pilot, via park_task)
- task 15341 (blocked, code, via park_task)
- Remaining live cleared-but-bound rows after sweep: 0.
Code fix already merged in PR #10978. With the sweep complete, all acceptance items for #8368 are addressed; closing.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|