GeezerVison is showing github.com — Shift batching, creator-style: lane handoff snapshots + supervision mode for queue lanes · Issue #2140 · developing-today/code
Shift batching, creator-style: lane handoff snapshots + supervision mode for queue lanes #2140DescriptionQueue shifts already bundle up to 10 tasks; their cost (6–13M input/run at check-in #5; the 9-lane shift family was 52% of all cron spend) is per-start state re-derivation plus in-shift supervision context — the same overhead class the creator batching change attacked (3.93M → ~1.4M input per filed issue).
Do:
- Per-lane handoff snapshots: persist checked state + task checkpoints between shifts so a shift starts from the snapshot instead of re-reading the full instruction/queue/GitHub/log state (fleet-watchdog's SQL-first rewrite is the template).
- Supervision mode: as dispatcher session↔task binding lands (the binding gap tracked on the queue pilot), lanes shift from executing tasks themselves to batch-supervising dispatched OpenCode sessions — target 15–20 supervised sessions per shift.
- Evaluate 40m → 2h cadence once supervision mode is real; report per-queue tokens per completed task before/after in the daily check-in.
Tested implementation slices
- Publish the offline completed-cohort input-usage measurement primitive — PR feat(fleet): measure completed-cohort input usage for #2140 #14655 (oc-code-06); 16/16 focused tests passed remotely at 88635c8. Published for review, not yet merged; this does not complete criterion 3.
- Collect complete source/binding history, integrate daily check-in publication and perform the before/after cadence evaluation; full-shift spend and sustained supervision throughput remain unmeasured by this slice.
Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 TOP PRIORITY (Drew, 2026-10-29 01:23 CDT): Batch 3 fleet consolidation — pick this up in the next runs, ahead of routine work. Being enqueued to repo-health-code-pilot at top priority now. dezren39 commented on Oct 29, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), Lane B shift
- Session / ID: queue task 3169
- Found via: queue claim
- Task: Triage Shift batching, creator-style: lane handoff snapshots + supervision mode for queue lanes #2140 (Batch 3, Drew-approved): verify the shift-overhead premise, design lane handoff snapshots + supervision mode (with its binding gate), route implementation in the same pass, update epic epic: fleet expansion & placement program (2026-10-28 directive, LIST 1–5) #2055.
- Expectation: m — done looks like a verdict + design on Shift batching, creator-style: lane handoff snapshots + supervision mode for queue lanes #2140, a follow-on packet or linked implementation issue, and an epic epic: fleet expansion & placement program (2026-10-28 directive, LIST 1–5) #2055 update.
- Links: epic epic: fleet expansion & placement program (2026-10-28 directive, LIST 1–5) #2055 · conductor Implement the session conductor: merge openchamber-dispatcher + openchamber-babysitter into openchamber-conductor #2153
dezren39 commented on Oct 29, 2026 🤖 Agent note · done
Triage verdict — premise CONFIRMED, design decided, Part 1 routed
Premise check: verified from the inside — this triage was executed by a Lane B shift that itself re-read the full worker instruction, re-derived queue health (including one 12s health timeout + retry), and re-validated every task's GitHub state from zero, exactly the per-start overhead this issue names. The scale figures stand as filed (9-lane family = 52% of cron spend at check-in #5; 6–13M input/run; creator batching precedent 3.93M → ~1.4M per filed issue). One refinement: shifts do not start from nothing — checkpoints and progress survive in the queue itself. What is missing is a lane-level digest of everything around the tasks (infra state, in-flight PR/CI pointers, dead ends already discovered), which is what the snapshot below adds. It complements task checkpoints; it does not replace them.
Design
Part 1 — lane handoff snapshots (landable now)
- Write: at shift exit (after the signal refresh, before lock release) the lane overwrites
hidden_files/lane-handoff-<queue>-<lane>.json:
{generated_at, lane, queue_health:{queued, claimed, parked, blocked}, worked:[{task, issue, outcome, pr, links}], in_flight:[{task, issue, pr, ci_state, resume_condition}], infra_notes:[{note, first_seen}], leads:[task ids worth claiming next and why]}
- Read: the next shift of the same lane reads it right after the Step 0 gate. Leads, not truth: the snapshot replaces search (what exists, where things stand, what was already ruled out) and never verification — claims, CI state, and labels are still checked fresh before acting, and anything contradicted by a fresh check loses to the fresh check. Entries older than ~2 cadences are context only.
- Why this shape: it is the fleet's proven digest pattern (watchdog's live-state digest, the monitor rewrite in Slim repo-fleet-monitor: snapshot/SQL-first state fetch + 2h cadence (target ≤3M/run) #2134) applied to the lane boundary; one small file per lane, overwritten, no log archaeology, no new store.
- Success test: daily check-in reports per-lane input/run for two weeks post-landing vs the 6–13M range; success = median down with tasks/shift held or rising.
Part 2 — supervision mode (designed, GATED — not routed for implementation)
- Gate (both required): (a) the session conductor (Implement the session conductor: merge openchamber-dispatcher + openchamber-babysitter into openchamber-conductor #2153) is cut over, and (b) session↔task binding is recorded on queue tasks (a claimed task's progress names its OpenCode session id). Until both hold, lanes keep executing directly; a half-bound supervision mode would recreate the dispatcher/babysitter split this batch just merged.
- Mode, once gated in: a shift batch-supervises 15–20 dispatched sessions (checkpoint reviews, stall nudges through the conductor's escalation ladder, hand-backs with reasons) and executes directly only what no session holds.
- Cadence: the 40m → 2h evaluation happens only after the gate, and a cadence change is a rate change — it needs Drew's explicit word at that time, with before/after tokens-per-completed-task from the daily check-in as the evidence pack. Nothing in this triage pre-approves it.
Routing
Part 1 implementation filed as #2158 (snapshot steps in all lane shift bodies, one evidenced handoff, two-week measurement; Part 2 gate state recorded, not started) and enqueued as queue task 3183, flagged live-fleet-change. Role note: lanes stay Do in the #2131 map in both parts; supervision changes how Do works, not which role owns it. dezren39 commented on Oct 30, 2026 🤖 Agent note · Part 2 gate state (recorded per #2158 acceptance, queue task 3812, 2026-10-30)
Gate NOT satisfied on either count — no supervision mode started, no cadence change made.
Part 1 (per-lane handoff snapshots) landed today under #2158: snapshot write + read steps are in both shared lane instruction files, and the two-week input/run measurement clock starts 2026-10-30. When both gate conditions above flip, file the Part 2 activation as a fresh follow-on from this issue — the 40m → 2h cadence evaluation additionally needs Drew's explicit word even then.
dezren39 commented on Nov 23, 2026 Lane code-f progress: per-lane handoff snapshot read/write and supervision-mode gate state on #2140 and #2158 remain as recorded (Part 2 gated; Part 3 cadence is owner-side, and #2158's input/run delta is tracked on #2135 instrumentation).
Open slice this run: PR #13625 — carry the queue binding on all queue-bound babysitter verdicts, not only error-stopped; rebased on current main (4473da0), 1 negative-control failure fixed, babies\n\nsuite 25/25, nudges 23/23, hermetic 227/227 on the laptop. Remainder stays as recorded in #2140/#1656's notes; nothing left on this lane's rung. dezren39 commented on Nov 23, 2026
Agent note — stand-down, no claim (xaltha lane)
Picked up via fleet agent next (priority rung, rank 3). Fresh verification this run (gh, 2026-11-23 ~17:45Z):
No claim held, no work started. Re-handing to take the next item. dezren39 commented on Nov 24, 2026
Lane code-j took this from the shortlist and is releasing it unworked: it is a triage-stage epic, and this scheduled run does not have the budget for a feature-slice. No PR from code-j. It stays available for the next claim. dezren39 commented on Nov 24, 2026
Lane code-g — remainder closed, no open slice left. Fresh verification this run (gh, 2026-11-24 ~03:45Z):
No further lane slice is landable from this issue; it remains the design record pending Drew's cadence decision. Next: taking the next queue item. dezren39 commented on Nov 24, 2026
Agent note — stand-down, no slice landable (xaltha lane)
Picked up via fleet agent next (shortlist rung, rank 3). Fresh verification this run (pooled fleet gh, 2026-11-24 ~11:50 CST) confirms lane code-g's 2026-11-24T03:45Z reconciliation:
No PR opened; no duplicate slice attempted. Issue stays open as the design record pending that cadence decision. dezren39 commented on Nov 24, 2026 🤖 Agent note · gate re-check (xaltha lane, hourly work-loop 2026-11-24)
Next slice when binding is confirmed: file the Part 2 activation as a fresh follow-on from this issue.
dezren39 commented on Nov 24, 2026 Stand-down — OpenChamber lane oc-code-04, served by fleet agent next on the priority rung (2026-11-24). Fresh read confirms Part 1 (#2158) and Part 2 implementation (#1656/#13625) complete; the remaining cadence change is explicitly Drew’s decision and not lane-actionable. The latest note also says the session↔task binding gate has not been verified, so supervision activation is not justified. No code or branch started; returning to intake. dezren39 commented on Nov 24, 2026
One tested measurement slice is ready for review: #14655 (not merged).
Corrected premise: #2135 is quota-steward snapshot/probe/follow-up work; its closure does not establish per-queue tokens/completed-task reporting. The repeated no-slice reconciliations missed that gap. Part 1 remains evidenced by #2158; binding-aware supervision substrate by #1656/#13625. Full cadence reporting is still unmeasured.
After this PR: python3 -I scripts/fleet_completion_usage.py --snapshot cohort.json --start <ISO> --end <ISO> reports exact known cumulative bound-session input by completed-task cohort/queue, plus coverage; ratios remain null unless usage and explicitly attested retry history are complete. Native ledger writes overwrite earlier sessions, so a raw latest-binding export does not prove complete retry cost. This is not full window/shift spend or a production before/after result.
Evidence: red interface run https://github.com/dezren39/fleet/actions/runs/45507367501 ran 9 tests and failed on missing aggregation behavior; green https://github.com/dezren39/fleet/actions/runs/45507683570 SUCCEEDED, 16/16 tests at 88635c8. Oracle: console latest-finishing-event/current-done model, integer token sums, seeded permutation properties. Independent reviewer accepted the retry-history completeness fix. No local builds/tests run.
Decided: measurement first; no cadence/schedule change in this slice. Why: source coverage and comparable full-shift measurements are not established. Undo: a later evidence-backed cadence PR can change this default. By: oc-code-06. No owner-answer gate or new escalation is introduced; #2140 remains open.
Next slice: after its PR, a read-only collector preserves every launch/retry binding and session input counter before pruning, and the daily check-in consumes this report with explicit source coverage; only then can a throughput-controlled cadence comparison be reported honestly. developing-today-fleet commented on Nov 26, 2026
Decided: Keep the current 40-minute lane cadence unchanged; do not evaluate or implement the proposed 2-hour cadence until a complete, comparable measurement window includes all launches, retries, and source-coverage evidence.
Why: PR #14655 is merged and provides completed-cohort usage reporting, but its evidence does not establish full-shift or before/after input per run. The remaining collector and daily-check-in slice is now live as queue task 25055.
Undo: A later evidence-backed cadence evaluation can recommend a different interval without changing this measurement work.
By: any-o
Triage revalidation (2026-11-26): Part 1 snapshots are complete (#2158); Part 2 supervision/binding is complete (#1656, #12879, #13625); the cohort usage script is merged (#14655). The still-open measurement remainder is explicitly scoped in task 25055, which preserves launch/retry counters and feeds a coverage-aware daily report. No cadence or schedule change was made. #2140 remains open as the design record while that measurement slice runs.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|