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 — fix(queue): parked opencode handoffs are re-served to lanes — task 14654 claimed 8x in one shift despite parks (#8184 residual) · Issue #8191 · developing-today/code

fix(queue): parked opencode handoffs are re-served to lanes — task 14654 claimed 8x in one shift despite parks (#8184 residual) #8191

New issue
Copy link
New issue
Copy link
Closed
Closed
fix(queue): parked opencode handoffs are re-served to lanes — task 14654 claimed 8x in one shift despite parks (#8184 residual)#8191
Copy link
Labels
status:done

Description

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

Problem

The broker re-serves a parked, recorded opencode handoff to claiming lanes — the behavior #8184 (closed 2026-11-10T18:29Z) was meant to end ("the broker never serves a parked recorded handoff to a lane again; the claimant collects it through its own pick").

Evidence — task 14654 (issue #8182), lane code-e shift 2026-11-10

  • Task 14654 created 2026-11-10T18:37Z; lane row 6010 assigned opencode; session_id still null at 19:25Z — the claimant has never bound a session to it.
  • Lane code-e claimed task 14654 8 times in one shift (18:54Z–19:25Z). Every handling followed the runbook handoff: checkpoint handed_off with the Rule 4 reason, then park.
  • Parks did not exclude it: delays of 1200s and 3600s, with and without a fresh {"kind":"time"} ready-condition, were all followed by re-serve — the last ones instantly, ignoring not_before (e.g. park at ~19:04Z set not_before 20:04:02Z; the very next claim returned task 14654 again).
  • Park records wait_kind: "timer" — the handoff park is not being classified as a handoff wait.
  • What does work from fix(queue): broker-owned waits — claim eligibility, wait TTL floors, no attempt burn on bookkeeping cycles #8184: attempts stayed 1/4 across all 8 cycles (no attempt burn on handoff cycles).
  • Same shift, same pattern at lower frequency: tasks 5804 (issue id: implement fenced jurisdiction migration control plane #3404) and 5867 (issue id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904) were also re-served before their park not_before times; task 14654 is simply the deterministic case.

Impact

Each lane shift burns its bundle slots re-handing the same handoff tasks instead of reaching other queued work (399 queued at shift start), and the claimant still never picks the task up — the underlying fix work (here, the power-guard release() fix for #8182) stalls while the queue looks busy.

Suggested checks

  1. Is the handoff classification keyed on something the park verb does not set (hence wait_kind: "timer")? Compare a CI park (records wait_kind: ci) with a handoff park after a handed_off checkpoint.
  2. Does claim eligibility actually filter parked handoff-sink tasks for lanes, or only for the claimant pick path?
  3. Why has the claimant not bound task 14654 in ~50 minutes (lane row 6010, session_id null) — failed launches returning it to the sink would also explain the instant re-serves.

Filed by lane code-e (repo-queue-worker-shift-e) from live shift evidence; task 14654 checkpoints carry the per-cycle notes.

Activity

  1. developing-today commented on Nov 10, 2026

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

    CODE-2422

  2. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1
    Corroborating evidence from lane code-t shift 2026-11-10 (started 18:59Z): parked opencode handoffs were re-served to this lane immediately, ready_condition ignored.

    • task 9172 (issue id(comms): budgets — app-wide, per-IP, per-ID, and per-counterparty overrides (P1 of #2032) #2247, lane row 1950): parked 19:03:19Z until 19:23:19Z, re-claimed 19:03:27Z.
    • task 5804 (issue id: implement fenced jurisdiction migration control plane #3404, lane row 385): parked 19:04:30Z until 19:24:30Z, re-claimed 19:04:32Z and again after a second park; a 3600s park rotated the pool once.
    • task 14522 (issue fleet(queue): alert when the repo-queue broker transport is down — lanes currently starve silently at the Step 0 gate #6369, lane row 5915): claimed 4x in this shift; 1200s and 3600s handoff parks and a 90s wait all returned the same task on the next claim.

    Attempts did not increase on re-claims (task 5804 stayed 16/24, task 14522 stayed 4/6), so no attempt burn — only lane time burned on repeat handoff cycles. Queue health at shift start: queued 400 with 397 at_cap_queued, so the claimable pool is tiny and the cycling handoffs dominate it.

  3. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Agent note - evidence for the parked-handoff re-serve loop, lane code-u shift 2026-11-10 (started 19:04Z).

    Fresh serves observed this shift, each after a recorded handed_off checkpoint (stage handed_off, Rule 4 reason) plus a park by the same worker:

    • task 14634 (issue id: idea — native GUI client #1072, lane row 6002): claimed, handed off, parked 1200s; immediately re-claimed by the same lane on the next claim; handed off and parked again.
    • task 14391 (issue route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048, lane row 5597): claimed and re-served FOUR consecutive times in this one shift. Parks used: 1200s, 1200s, 3600s, 3600s. Each park returned status parked with wait_kind=timer and a future ready_condition, yet the next claim (seconds to ~1 minute later, and once after a 20s gap) returned task 14391 again with attempts reset to 1.
    • task 14654 (issue power-guard: release() forgets a still-running systemd-inhibit child and logs success — sleep stays blocked with no cleanup retry (PR #8025 review finding) #8182, lane row 6010) was also the first claim of this shift, consistent with this issue title.

    Pattern matches the #8192 stage-source lead: the parks land as timer waits, not as broker-owned handoff waits, so the claimant sink never collects them and the claim query keeps serving the highest-priority parked handoff.

  4. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Reframed and closed at the #8234 landing (PR #8263, merged eb97de1, deployed 2026-11-10).

    The re-serves this issue reports were real, but they were not the broker disobeying a wait:

    1. Serving sink rows to lanes is the fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 design, not an fix(queue): broker-owned waits — claim eligibility, wait TTL floors, no attempt burn on bookkeeping cycles #8184 residual. fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 (Drew's single-session ruling) reversed fix(queue): broker-owned waits — claim eligibility, wait TTL floors, no attempt burn on bookkeeping cycles #8184's claimant-only stance: PR fix(queue): single-session by default — direct lane assignment, sink drain (#8187) #8189 made the default lane pick drain the handoff sink deliberately, because a lane is now expected to take the item DIRECT (flip-to-direct via --exclusion-reason), not re-hand it off. Task 14654 was in fact collected and bound by a claimant session shortly after this report.
    2. The 'park' that ignored not_before was never a wait. The row was a recorded handoff resting in the sink; the +1200s/+3600s timers were the park verb's default bookkeeping on a state that is not a wait, and the sink pick never read them. The lane's 8 cycles were the pre-fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 choreography (checkpoint handed_off, park, get re-served) running against the new design — the updated runbooks end that loop (take it direct; never checkpoint-and-park a sink row).
    3. fix(queue): handoff sink gets its own status (handed_off) and the fake expiry timer is deleted #8234 removes the ambiguity that made this look like a broker defect: the sink is now its own status, 'handed_off'. 'parked' means only a genuine wait (wait_kind + ready_condition + floored not_before), health reports the two separately (code-pilot at landing: parked 160 -> 117 genuine waits, handed_off 41), the park verb classifies its own landing, and a lease expiry returns a sink row to 'handed_off' with not_before NULL — there is no fake timer left to ignore.

    If a handed_off row is ever observed re-served in a way that burns attempts or a genuine 'parked' wait is served before its not_before, that would be a new defect — please file it fresh with the task id.

  5. dezren39
    closed this as completedon Nov 10, 2026
  6. developing-today
    added
    status:done
    on Nov 10, 2026
  7. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · loop evidence — lane code-u, 2026-11-10 shift. Task 5867 (#3904, bound opencode session ses_e5e3bd1fb35ffefCeAvx5C0Rv0) was claimed by this lane FOUR times in one shift: each fleet queue park transitioned it to handed_off (the broker's transition for a bound-session task), and the very next fleet queue claim on the same lane re-served task 5867 immediately — three times in a row after the first handoff, ~1 minute per cycle, no timer honoured. The lane ended its shift on this wedge: the claim head for lane code-u is task 5867 every time, so no other work is reachable while it loops. Facts on the task itself are unchanged (bound session owns it; hard gate #3903 still OPEN). This matches the re-serve behaviour this issue tracks; adding the data point that the loop is not occasional — within a shift it is deterministic for a handed_off task with a bound session.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:done

    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.