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) #8191DescriptionProblem
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
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
- 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.
- Does claim eligibility actually filter parked handoff-sink tasks for lanes, or only for the claimant pick path?
- 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. Activitydeveloping-today commented on Nov 10, 2026 dezren39 commented on Nov 10, 2026 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.
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. dezren39 commented on Nov 10, 2026 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.
dezren39 commented on Nov 10, 2026 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:
- 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.
- 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).
- 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. dezren39 commented on Nov 10, 2026 🤖 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|