GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #8368

New issue
Copy link
New issue
Copy link
Closed
Closed
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
Copy link
Assignees
dezren39
Labels
effort/mMedium: expected under 1 day of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 11, 2026
Issue body actions

Defect

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:

  1. 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
  2. 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

  • Task 8750 (repo-health-code-pilot), lane row 1587, issue aggregator: forecast per-pool quota exhaustion intervals #3983 (gate aggregator: finish quota throughput data + record the design contract (#851) #3933 closed — the implementation itself is ready to start).
  • Runbook: repo-queue-worker-instruction §1b (fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187/fix(queue): handoff sink gets its own status (handed_off) and the fake expiry timer is deleted #8234), the bound-session park rule this defect defeats.

Activity

Next
  1. developing-today commented on Nov 11, 2026

    @developing-today
    developing-todayBot
    on Nov 11, 2026 – with developing.today
    Contributor
    More actions

    CODE-2499

  2. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    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.

  3. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    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):

    • Lane row 6008: assigned_lane=opencode, session ses_e5e37cd8bf2ffe4aJXu2h8oY33, executed_at 2026-11-11T01:42:33Z; task progress records the session as cleared at 2026-11-11T01:42:32Z via park_task. The row has not changed since.
    • New datapoint — the feat(queue): Muse→opencode push — claim-by-id transfer verb (--from-session) + one-call send with notes and worktree #8210 send path cannot escape the loop either: send_to_opencode.py --task 14653 (dry-run ok) failed live at transfer: "claim_repo_task: transfer refused: task is already bound to session ses_e5e37cd8bf2ffe4aJXu2h8oY33: a bound launch is not a transfer" (rolled back; assignment unchanged). So a cleared-but-bound row admits no lane-side exit at all: no flip (fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 exclusion refused), no transfer, no fresh launch.
    • Ask stands: a broker-side clear/repair for rows whose session was cleared (row 6008 here; the task 8750 row in this issue's title), or a claimant sweep that reaps bindings whose sessions no longer exist.
  4. dezren39
    added
    epic/fleet-orchestrationReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  5. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  6. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    queue/queuedHas a queued queue task
    on Nov 17, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 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.
  8. dezren39
    added a commit that references this issue on Nov 17, 2026

    fix(fleet-queue): cleared-session lane rows flip direct + sink parks …

    68eda5e
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · in progress

    • Agent: queue worker (repo-worker-code), lane any-k
    • Session / ID: task 20135 (parked on the one remaining item below)
    • Found via: queue claim (packet from triage task 18645)
    • Task: The broker code fix is merged — PR fix(fleet-queue): cleared-session lane rows flip direct + sink parks honor explicit delay #10978 (squash 68eda5ed305878ad0ef37fd616e3090d12a7526b, 2026-11-17T04:58:03Z). One packet item remains: the live-row sweep.
    • Expectation: a follow-on pass runs the sweep, records its count here, and closes this issue; the code defect itself is repaired.
    • Links: task 20135 · PR fix(fleet-queue): cleared-session lane rows flip direct + sink parks honor explicit delay #10978 · 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

    What merged

    • bound_session / cleared_session_id in turso_queue.rs: a ledger session_id matching the task's progress.session_cleared.session_id is treated as unbound, so the fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 exclusion flip (and feat(queue): Muse→opencode push — claim-by-id transfer verb (--from-session) + one-call send with notes and worktree #8210 mirror) succeed for cleared-but-carrying rows; a successful flip NULLs the stale ledger session.
    • Live-bound flip refusals are now explicit errors naming the session and its state, in both flip directions.
    • verb_park's handoff-sink landing keeps an explicitly requested delay (delay_seconds / not_before) as not_before instead of discarding it; all other sink wait fields stay NULL.
    • Verification: cargo test -p fleet-queue --features queue-broker --lib — 368 passed, 0 failed, including two new 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 regression tests. (Note for whoever runs these next: the suite needs --features queue-broker, and a worktree-local CARGO_TARGET_DIR — the shared target dir served a stale 70-test binary without it.)

    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.

  10. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed
    queue/queuedHas a queued queue task
    on Nov 17, 2026
  11. 6 remaining items

  12. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 18, 2026
  13. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    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.

  14. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    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.

  15. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    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.

  16. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    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.

  17. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    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.

  18. dezren39 commented on Nov 19, 2026

    @dezren39
    dezren39
    on Nov 19, 2026
    MemberAuthor
    More actions

    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.

  19. dezren39
    closed this as completedon Nov 19, 2026
  20. developing-today
    added
    status:done
    on Nov 19, 2026
  21. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

effort/mMedium: expected under 1 day of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.