Skip to content

Design: session conductor — merge OpenChamber dispatcher + babysitter into one job (implements #2021 as the merged job) #2132

Closed

Description

@dezren39

Implement #2021 as a MERGE of openchamber-dispatcher + openchamber-babysitter into one session conductor with two phases (Drew approved 2026-10-29):

  • DISPATCH: take from the queue head, launch the session on the chosen pool (Workhorse default; Specialist/Summit for complex work), bind session↔task, log, move on to the next. Fire-and-forget; never babysit inside the dispatch phase.
  • SWEEP: one pass over ALL live sessions — answer their questions, nudge or kick stalls, and escalate when a session cannot crack its issue: change its routing pool (e.g. Workhorse → Specialist) or move it off an exhausted pool. A session that stops gets restarted or handed back to the queue with a reason, never left silent.

Cadence ~20m. Success metric: combined input per cycle ≤ 60% of the current pair's (dispatcher 149M + babysitter 124M per ~15h window at check-in #5), at equal sessions served. Update the fleet-watchdog roster to the merged job id. Keep the measurement gate binding: no dispatch without a quota picture ≤60 min old covering all pools.

Activity

  1. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    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.

  3. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  5. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    Triage verdict — premise CONFIRMED, design decided, implementation routed

    Premise check (live cron state, 2026-10-29): openchamber-dispatcher (15m, enabled, timeout 2700s) and openchamber-babysitter (20m, enabled, timeout 1800s) both work the same OpenChamber session population from two separate instruction files and two separate runs, delivering to the same chat. Each run independently rebuilds the session inventory and (dispatcher) the quota picture — exactly the duplicated fixed cost the merge removes. Baseline stands as filed: 149M + 124M input per ~15h window at check-in #5 (~273M combined). No premise corrections needed.

    Design decisions (the parts the issue left open)

    1. One job, one picture per cycle. openchamber-conductor, 20m cadence. Each run builds the capacity inventory and quota snapshot once and shares it across both phases — this sharing, plus halving the run count (7 runs/hour → 3), is where the ≤60% target comes from. Timeout 2700s (the dispatcher's, the larger of the pair).
    2. Phase order: SWEEP first, then DISPATCH. Sweeping first means stalls are answered and reroutes decided before new launches compete for the same pools, and capacity freed by hand-backs is available to the same cycle's dispatch. Dispatch stays fire-and-forget; nothing babysits inside the dispatch phase.
    3. Escalation ladder (answers design: scheduled OpenCode preliminary babysitter — sweep sessions, fix easy stalls, escalate the rest #2021's open question — the mechanism is internal, not a new channel): (a) answer/nudge/kick in place, within the babysitter's existing limits → (b) reroute the session's pool (Workhorse → Specialist; Summit only for synthesis-class work) → (c) move the session off an exhausted pool → (d) stop the session and hand its task back to the queue parked with the reason recorded — never silent. A GitHub issue is filed only when the blocker is a genuine decision/access item, per the standing escalation rules; routine stalls never become issues.
    4. Measurement gate stays binding across both phases: one quota picture ≤60 min old covering all pools gates dispatch and reroutes; no fresh picture → the cycle does observation and hand-backs only.
    5. Cutover is reversible: create the conductor, disable (never delete) the pair, update the fleet-watchdog roster to openchamber-conductor in the same pass. Rollback = re-enable the pair and disable the conductor.
    6. Success metric, made checkable: the daily token check-in compares the conductor's input per ~15h window against the 273M baseline for 48h after cutover, at equal sessions served (sessions swept + dispatched per window, from the conductor's log); target ≤60% (≈164M). First comparison is reported on Design: session conductor — merge OpenChamber dispatcher + babysitter into one job (implements #2021 as the merged job) #2132.

    Routing

    Implementation filed as #2153 (conductor job + merged instruction, cutover, watchdog roster, 48h cost comparison) and enqueued as queue task 3173, flagged live-fleet-change. Role note: the conductor is one Do job in the #2131 map, replacing the two Do entries for dispatcher and babysitter.

  6. 21 remaining items

  7. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  8. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  9. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  10. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  11. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  14. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  15. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    agent-note:v1
    task: 12029
    lane: code-f
    transition: handed_off
    Handed off to the opencode claimant per runbook 1b: fleet queue lane returned assigned_lane=opencode for task 12029 (triage, issue #2132). Fresh check (lane code-f, 2026-11-08): issue #2132 OPEN, no hard-stop labels. This lane does not work the task directly. Parking task 12029 for 1200s for claimant pickup. Attempts 5/6.

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

Metadata

Metadata

Assignees

Labels

priority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditionstatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions