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): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) · Issue #8187 · developing-today/code

fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187

New issue
Copy link
New issue
Copy link
Closed
Closed
fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3)#8187
Copy link
Labels
status:done

Description

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

fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3)

Drew's order, 2026-11-10 (verbatim): "handoff shouldn't be a pause, launch the session and then it immediate takes that item. fix lane should fix unless triage is needed and even if triage needed just handle it and run it. stop handing off over and over without reason. there should be issues that only need 1 session to resolve not this Rube Goldberg bullshit that's not needed unless there's a reason"

What this reverses / builds on

  • Reverses Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097 Rule 3 (triage separation): fix lanes no longer refuse untriaged items. A lane that claims an untriaged item triages it inline (kind/priority/effort labels, triage agent note, backlog entry) and does the fix in the SAME session.
  • Supersedes the section 1b handoff chore (Move opencode executions to laptop-side scheduled tasks — retire the Muse boot handoff #3026 assignment): a handoff that parks and waits for the claimant poller is the defect. opencode-claimant: handed-off tasks are never launched — executed_lane/session_id stay null across repeated claim→handed_off→park cycles #6533 is the standing symptom (claimant never launches; executed_lane/session_id stay null across claim-handed_off-park cycles).
  • Builds on fix(queue): broker-owned waits — claim eligibility, wait TTL floors, no attempt burn on bookkeeping cycles #8184/fix(queue): broker-owned waits — claim eligibility, wait TTL floors, wake verb, handoff expiry sink (#8184) #8185 (broker-owned waits): claim-time exclusion of parked handoffs, wait TTL floors, wake verb, +0-attempt handoff sink all stay. External waits (CI, real dependency gates) still use broker waits.

Design

  1. Single session by default. One session claims an item, triages inline if needed, fixes it, and runs it to a terminal state. Multi-session flow only with a stated reason: real external wait (fix(queue): broker-owned waits — claim eligibility, wait TTL floors, no attempt burn on bookkeeping cycles #8184 broker waits), a platform/capability the session genuinely lacks, a hard stop (held/user-owned labels, user/escalated).
  2. Lane works by default. Claim-time lane assignment no longer routes the bulk of tasks to opencode away from the claiming lane. The claiming Muse lane is the default executor; non-direct routing survives only under a narrow, explicit rule.
  3. Handoff = immediate launch. Where an item is genuinely routed to another execution session, the handoff triggers that session's launch and the handing-off lane verifies a bound session exists before ending its touch. If launch fails or nothing binds in a short bounded wait, the assignment falls back to direct and the SAME lane works the item. No code path ends in "handed off and parked, nobody launched".
  4. Inline triage. Runbook section 1c rewritten: lanes triage claimed untriaged items inline and proceed; a triage-kind packet completes as triaged only when its fix genuinely belongs to a separate follow-on task. The awaiting_triage lane park path is removed (broker triage wait remains for not-yet-claimed feeder tickets).
  5. Triage-step job is retired or narrowed to pre-queue sweeping of feeder-filed GitHub tickets that have no queue task yet.

Acceptance

  • One real untriaged queued item: a single lane session triages it inline and carries it to a terminal fix state (or stated-reason block); task event history shows one session.
  • One real opencode-routed item: worked direct by the claiming lane, OR claimant session bound and running before the lane's touch ends (bound session id as evidence). No parked-handoff terminal state.
  • Broker/claimant regression tests pass; fleet-queue suite stays green.
  • A subsequent ordinary lane shift shows zero awaiting_triage parks and zero unlaunched handoffs.

Activity

  1. developing-today commented on Nov 10, 2026

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

    CODE-2421

  2. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Sharpening — Drew, 2026-11-10 (binding addition)

    Verbatim: "muse tasks should do real work too not just opencode. pass off only when required"

    Hard requirement on top of the design above:

    • The Muse lanes are executors, not dispatchers. The lane-assignment default for tasks claimed by a Muse lane is DIRECT — the claiming Muse session does the implementation work itself.
    • Opencode routing is the exception, used only when a task actually requires it: an explicit platform selector on the task, a capability the Muse session genuinely lacks, or another concrete stated requirement recorded on the task. Never the bulk/default assignment.
    • Failure evidence being fixed: whole bundles of 20/20 claims arriving assigned_lane=opencode, so Muse lanes did zero implementation.

    Acceptance addition: include the assignment distribution from a live claim sample or shift after the change (direct vs opencode counts) showing Muse lanes receiving real work by default.

  3. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Clarification — Drew, 2026-11-10 (binding addition)

    Verbatim: "it can pass off if it has a reason to, or if it's mostly done but reaching time limit etc"

    Added to the legitimate handoff-reason set: a session that has done most of the work but is reaching its time limit / budget (or is otherwise ending) MAY pass the item off — same family as the original Rule 4 session-ending / scheduled-task handoff reason.

    Conditions that keep it from becoming the old loop:

    • The handoff carries full state so the receiver RESUMES, not restarts: branch/worktree, PR if opened, checkpoint progress with the exact next step (runbook section 10, resume-don't-restart).
    • The receiving session must actually start (launch-on-handoff), or, if the pass is to the next scheduled lane via the broker, the item goes back as a resumable broker wait — not a fresh claim that redoes triage/verification from zero.
    • "Mostly done" means real progress exists (implementation checkpointed, PR open, findings posted). A handoff minutes after claiming with nothing done is not this reason, whatever the checkpoint says.
  4. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Final sharpening — Drew, 2026-11-10 (binding, targets the assignment step itself)

    Verbatim: "it shouldn't be assigning tasks to opencode or specific lanes by default and without specific reason."

    Required end state, upstream of lane behavior:

    • Tasks sit in the pool UNASSIGNED. Whoever claims a task owns it — no pre-routing.
    • A specific-lane/opencode assignment may exist only when a specific reason is recorded on the task at assignment time (explicit platform requirement, a capability only that lane has, a stated pass-off reason). No reason recorded → no assignment; the claim proceeds direct under the claiming session.
    • The default assignment is removed/narrowed at the source (broker lane verb, enqueue path, claimant configuration) — not merely worked around in lane behavior. After the change, fleet queue lane on an ordinary newly-claimed task comes back direct/unassigned with no opencode routing.
    • Acceptance: the live assignment split shows specific-lane assignments only where a reason is attached — sample a few and quote their reasons.
  5. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Final step — Drew, 2026-11-10 (binding; execute LAST, after deploy + live acceptance pass)

    Verbatim: "after this is all live should reset attempts and lanes and platform for all queue items"

    One-time clean-slate reset across non-terminal queue items:

    • attempts → 0 (clears the at-cap zombies created by bookkeeping churn; ~386 at-cap queued items become claimable again)
    • lane assignment cleared (no pre-assigned execution lane survives)
    • platform cleared (no legacy platform selector stamps survive; items that genuinely need a platform get it recorded fresh, with a reason, under the new rules)

    Scope rules: queued + parked are the target. Do not yank items under a live claimed lease — skip claimed items or let leases expire first, and say which. Terminal (done/cancelled) records are history — untouched. Blocked items: reset too if they are expected to re-enter the pool when unblocked, and say so; otherwise say why not.

    Mechanics: one auditable backend operation with an event record (not a pile of per-item verbs). Verify with before/after counts: queue health plus a direct read showing at_cap_queued = 0 (or any remainder explained), and attempts/lane/platform cleared on a sampled set across the fleet's queues (code pilot at minimum; name every queue reset).

  6. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Marking + audit requirement — Drew, 2026-11-10 (binding)

    Verbatim: "do mark the platform, lane, pool and model that is looking at an item but don't filter or require. ensure these changes are kept over time with a log or audit table etc"

    1. MARKING, NOT GATING. Whenever a session looks at / claims / works an item, record four marks on it: platform (the session's platform/family), lane (claiming lane id), pool (the queue it came from), model (provider/model/variant — extend/reuse the queue: stamp the claiming session's own model on the task at claim time #8176 claim stamp, don't rebuild). Observability only: marks must NOT be claim eligibility filters and must NOT be required — a claim declaring no platform/lane/model works exactly the same. This demotes the Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097 Rule 2 platform selector from a filter to a stamp: if the broker still filters picks by platform, remove the filter as part of this change. (Assignment/routing still needs a specific reason per the earlier order; marking who actually looked is different from routing.)
    2. AUDIT OVER TIME. Marks and every change to them are preserved as append-only history (the broker events stream, extended where it lacks the fields, or a dedicated audit table). Every claim, assignment change, wait, wake, pass-off, and completion leaves an audit row: timestamp, task, actor/worker, platform, lane, pool, model. Rows are never updated or deleted in normal operation. The clean-slate reset (final step) also writes audit rows for what it reset.
    3. Acceptance addition: demonstrate the audit trail on one real task — full history in order with platform/lane/pool/model per entry — and demonstrate a claim succeeding with no platform/model declared.
  7. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Addition — Drew, 2026-11-10

    Verbatim: "if you have session or task Id Include that too"

    The marking/audit field set extends to: platform, lane, pool, model, TASK ID (the queue task), and SESSION ID when one exists (the bound claimant session_id, or the claiming session's own id where the surface knows it). Same rule as the other marks: include when available, never required, never a filter. In the acceptance demo of one task's audit trail, entries show session ids where sessions were involved, so a reader can jump from the audit row straight to the session that did the work.

  8. developing-today
    added
    status:in-review
    on Nov 10, 2026
  9. dezren39
    added 2 commits that reference this issue on Nov 10, 2026

    fix(queue): platform is a mark, not a filter; audit marks on broker e…

    f722ed8

    Merge pull request #8189 from developing-today/queue/8187-8187-lane-d…

    9337c79
  10. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 10, 2026
  11. developing-today
    closed this as completedon Nov 10, 2026
  12. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #8190 from developing-today/queue/8187-8187-launch…

    e7b9041
  13. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Shipped + live-verified — closing summary (2026-11-10)

    Code

    • PR fix(queue): single-session by default — direct lane assignment, sink drain (#8187) #8189 (MERGED, merge 9337c79): broker default = direct with reason recorded (default_direct | exclusion | opencode_reason); 1:1 balancing deleted; opencode only via --opencode-reason (ledger column added); exclusion flips unbound opencode rows, never session-bound; default pick serves the parked-handoff sink to lanes (sink 60 -> draining; tasks 5804/5867/8500/14654 claimed by Muse lanes via pick=default within 2 min of deploy); platform demoted from filter to mark (platform_allows deleted; mismatched/no-platform claims claim identically); events carry audit marks (task_id, queue, pool, platform, lane_id, model provider/id/variant, session_id) on claimed/lane_assigned/lane_session_bound/parked/woken/completed/failed. Tests: cargo test -p fleet-queue --all-features = 149 lib + 2 integration, 0 failed (7 new fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 tests). Deployed like fix(queue): broker-owned waits — claim eligibility, wait TTL floors, wake verb, handoff expiry sink (#8184) #8185 (fleet.bak-20261110-8187 kept), queue-broker.service restarted MainPID 1681614.
    • PR feat(opencode-claimant): per-task launch trigger launch_one.py (#8187) #8190 (MERGED, e7b9041): per-task launch trigger pm-stack/opencode-claimant/launch_one.py (the broken state-dir helper, fixed and versioned) + 26 tests; existing claimant suites 77 pass. Live launch attempts during acceptance correctly created sessions and refused double-binds (tasks already bound by claimant fires), cleaning up their own sessions.
    • Enqueue path and claimant config audited: neither produces any default assignment; verb_lane was the only producer.

    Runbooks + jobs

    • repo-queue-worker-instruction.md §1b/§1c rewritten (single-session default, launch-on-handoff with direct fallback, inline triage reversing Rule 3, Rule 4 reason set incl. mostly-done/time-limit pass-off with resume conditions); same §1b + inline-triage text in the opencode/openchamber/nix runbooks; lane-shift-instruction.md step 3b rewritten.
    • triage-step cron narrowed (cron.update, same hourly cadence): pre-queue sweep only — skips any ticket with a live queue task; triages tickets nobody has queued; wakes a parked triage-wait task after triaging (feat(queue): triage step wakes broker-held triage waits on completion (#8184 follow-up) #8186 folded in here).

    Live acceptance

    • Single session: task 11300 / issue fleet-paperwork: create readback verifies only title+number, not the body/state/labels the README promises #6901 — one lane-code-m session woke it from the handoff sink, flipped assignment opencode->direct (event 161645, exclusion reason recorded), shepherded PR fix(fleet-paperwork): create readback compares body, state and labels (#6901) #7799 (committed the pending Copilot fixes e48c43c; 38 fleet-paperwork tests OK), MERGED d8e6354, issue closed, task completed fixed_merged (event 161659). Claim carried NO platform/model flags (stamps null) — marking is not required. Full audit trail in the events table, marks on every transition.
    • Opencode-routed items are binding, not stranding: tasks 5867 (ses_e5e3bd1fb35ffefCeAvx5C0Rv0), 9001 (ses_e5e5503af54ffeqYmnOGVe0qcT), 14654 (ses_e5e39248323ffek5zqr3f5lA90) all hold bound sessions post-deploy.
    • Assignment split since deploy (lane_assigned events id>161000): 7 direct/exclusion flips, 1 direct/default_direct fresh decision, ZERO new opencode assignments.
    • No queued item currently carries an untriaged issue (sampled) — inline triage's from-scratch exercise awaits the next feeder item a lane claims; the awaiting_triage lane park is deleted from every runbook.

    Clean-slate reset (Drew's final step, executed after acceptance)
    One auditable backend operation (Turso fleet-queue), audit event 161670 kind=queue_reset at 2026-11-10T19:21:53Z. Scope: ALL queues, statuses queued+parked+blocked (1136 tasks); claimed SKIPPED (67, live leases — incl. tasks 10501/5867/14654 then under claimant sessions); terminal untouched. attempts->0 on 1136 (1101 were nonzero), progress.lane removed on 958, 947 lane-ledger rows deleted, platform column already null across scope. Before: code-pilot at_cap_queued 395/397. After: at_cap_queued = 0 in every queue (health-verified), scope attempts nonzero = 0, non-terminal ledger rows = 0. Blocked items were reset too — they re-enter the pool when unblocked. Post-reset claims immediately show the new behavior (lanes code-w/code-j holding former sink tasks with progress.lane=direct).

    Follow-up filed: #8192 — parked-handoff stage source mismatch (broker reads progress.stage, claimant poll reads last_checkpoint.stage) strands rows whose top-level stage was overwritten after a handed_off checkpoint (task 10995 shape).

    Closing this issue: the redesign is live. Remaining observation: a full ordinary shift cycle under the new runbooks (zero awaiting_triage parks / zero unlaunched handoffs) completes as the in-flight pre-edit shifts drain.

  14. dezren39
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #15816 from developing-today/agent-next-23-local/2…

    747b069
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.