Skip to content

OpenChamber dispatch v1.1: admission control, hand-backs, stall nudges, harvesting, Workhorse-first routing #1187

Open

Description

@dezren39

What

v1.1 of the OpenChamber dispatch system (design:
files/openchamber-dispatch-babysitter-design-2026-10-26.md): turn
the report-only babysitter into the working dispatcher + babysitter.

Scope

  • Dispatcher: claims queue tasks whose packet carries
    executor: openchamber (larger code work: effort/m+l, session-shaped
    per triage), admits against (a) location capacity and (b) the POOL
    MAP measurement gate for the routed pool (fresh quota read; ≥85% of
    window = no new heavy work). Creates the session in a per-task
    worktree on branch queue/<task-id>-<issue>-<slug> and records the
    binding (session id, location, pool/route, started-at) on the task.
  • Hand-back: no slot or no headroom → park the task with reason
    class executor-saturated and note it on the issue. Saturation is
    reported, never a silent backlog; a Claude lane can still claim the
    task if urgent.
  • Babysitter actions: stall nudge (one message into a session idle

    20 min while claiming work: checkpoint/continue/state blocker; max
    2, then escalate to the monitor tracker); wall handling (quota stop =
    park blocked with the wall named, never a PAYG fallback); harvesting
    (session done → verify against GitHub → complete/park/block the task
    with labels synced and an agent-note on the issue).

  • Routing policy as config: Fast / Workhorse (default) / Frontier
    tiers per the design; escalation to Frontier requires recorded
    evidence (failed Workhorse attempt or design-shaped triage); the
    split pattern (Frontier plan → Workhorse/Fast implementation) is a
    first-class dispatch shape. Routing ledger entries land in the
    babysitter report.

Acceptance criteria

  • A task marked executor: openchamber flows queue → session →
    PR → verified terminal queue state with no Claude lane involved.
  • With the location at capacity, the next candidate is handed back
    (parked, executor-saturated, issue noted) within one round.
  • A deliberately stalled session receives exactly one nudge, and a
    second stall escalates instead of nudging forever.
  • Every Frontier session in a week of reports has a recorded
    escalation reason; Workhorse-first is the observed default.
  • No dispatched task evaporates: every binding ends in a terminal
    state or a named hand-back (monitor Duty 1 stays clean).

Depends on: babysitter v1 (report-only) and the session-API + quota
attribution pilots. Filed by Muse (operator) 2026-10-26.

Activity

  1. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  2. added
    area/infraInfrastructure, deployment, and operations
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Oct 27, 2026
  3. added
    work/assignedQueue worker lifecycle state
    and removed on Oct 27, 2026
  4. 292 remaining items

  5. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress from felix: still working

  6. added a commit that references this issue on Nov 22, 2026
  7. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: merged
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Merged: #12678 — hand-backs are now code, not prose.

    What landed: in pm-stack/opencode-claimant, a live fire that finds the launch cap saturated with candidates waiting now hands the next candidate back in the same fire — targeted-claim, park with reason class executor-saturated under the broker's capacity ready-condition, and an agent-note on its issue. Before, that fire wrote only a local skip record and exited: the silent backlog this issue forbids. One hand-back per fire; shadow fires mutate nothing; a claim that doesn't land parks nothing. Felix re-ran the claimant's hermetic suite at review: 165 tests OK.

    Component map after this slice: admission control (capacity half landed; pool half route-owned, open question recorded), hand-backs (landed here), stall nudges (still prose-only — next slice, needs a running sweep successor to the disabled conductor), harvesting (landed, verified 2026-11-01), Workhorse-first routing (landed). Criterion 2's standing check closes on the first live saturated fire exercising this hand-back, per the 2026-11-03 option-B ruling.

  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Released by felix (outcome: free). Hand-backs slice merged as PR #12678; issue remains open for stall nudges and standing checks

  9. added and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 22, 2026
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · progress — criterion 2 mechanism landed: PR #12681

    Slice: a saturated claimant fire now hands back the next candidate within the round — claim by id (claim --task, the #1337/#1272 verb), park with reason executor-saturated as a {"kind": "capacity"} wait (1h floor per #8184; an urgent lane can still reclaim sooner via the #3418 capacity bypass), and post the executor-saturated agent note on the issue. One hand-back per fire; shadow fires record shadow_would_hand_back and mutate nothing. Branch xaltha/1187-hand-back, commit 5c4d44c. Before this slice the fire logged one bare cap_saturated skip and exited with the candidate still queued.

    Evidence: 8 new TestHandBack cases fail on origin/main (AttributeError: hand_back_next_candidate) and pass here; hermetic suite 168/168 plus the CI Python suites green (test_poll 95, test_claimant 44, test/test_claimant 18, grist 27, launch/dispatch 27). Pure Python — no Rust build.

    Criterion check, fresh against origin/main:

    • [~] 1. queue → session → PR → verified terminal state — stood as met per the 2026-10-28 verdict (harvesting done; dispatched tasks reached terminal states); not re-verified live in this slice.
    • 2. Hand-back at capacity — mechanism landed in feat(opencode-claimant): hand back the next candidate on a saturated fire (#1187) #12681, unit-tested. Box stays unticked until a live saturated fire proves it (fires.jsonl showing handed_back_executor_saturated + parked task + issue note).
    • 3. Stalled session: exactly one nudge, second stall escalates — still untested. No nudge code exists in the repo (no babysitter code; supervision deletes stuck zero-message sessions but never nudges a live idle session); needs a deliberately stalled bound session, which is live-ops work, not a code PR.
    • [~] 4. Frontier ledger / Workhorse-first — standing check; no Frontier sessions have run yet (per Oct verdict). Workhorse-first remains the configured default (fixed workhorse launch route in the claimant).
    • [~] 5. No dispatched task evaporates — stood as met per the Oct verdict; supported in code by supervision/recovery and the atomic bind.

    Next slice: extend the hand-back into launch_step's mid-loop cap exhaustion — today a fire that starts with room but exhausts it mid-loop still records a bare cap_saturated skip for the next candidate.

    PR: #12681

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — nudge slice (#1187 criterion 3)

  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: progress
    by: agent felix (kind muse, Muse sandbox seat; via epic #1234)
    at: 2026-11-22

    Slice landed for review: #12688 — stall nudges are code now, the last prose-only v1.1 component.

    What it does: a new nudges.py in pm-stack/opencode-claimant consumes the babysitter round's confirmed stalls (#1338's engine, PR #12687) inside the claimant fire. A bound confirmed stall gets a nudge through the claimant's verified prompt transport, at most 2 per stall episode; still confirmed-stalled with the budget spent, it escalates once as a stuck-holder agent-note on the bound issue. Unbound stalls are recorded, never driven. A nudge counts only on confirmed delivery (a failed send burns no budget); a failed escalation note retries next round; an unaddressable binding is recorded once, never guessed. Episode state persists in nudge-state.json and resets when the episode closes.

    Evidence: fail-before on origin/main (suite load error — no nudges.py); pass-after hermetic suite 203/203 (188 pre-existing + 15 new) in the sandbox. Full epic reconciliation, including this slice's place in it, is on #1234 (comment 7086326109).

    Component map after this slice: admission control (capacity half landed; pool half route-owned, open question stands), hand-backs (landed, PR #12678), stall nudges (landed here, pending review), harvesting (landed/verified), Workhorse-first routing (landed). Remaining on this issue: the standing checks, as before. Note for the reviewer: PR #12681 (xaltha) is an open duplicate of the merged #12678 hand-back — flagged on #1234, not actioned there.

  13. added a commit that references this issue on Nov 22, 2026
  14. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: merged
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Merged: #12688 — stall nudges are code.

    The claimant now actuates on the babysitter's verdicts: nudges.py consumes confirmed stalls inside the claimant fire — at most two nudges per stall episode through the verified prompt transport (a nudge counts only on confirmed delivery; a failed send burns no budget), then one stuck-holder escalation note on the bound issue (failed note retries; an unaddressable binding is recorded once, the repo is never guessed). Unbound stalls are recorded, never driven. Felix re-ran the full claimant hermetic suite at review: 203/203 OK. No new dependencies.

    With this, every #1187 component exists as code on a running cadence: admission (capacity half), hand-backs (PR #12678), harvesting, workhorse-first routing, and now stall nudges fed by the babysitter's confirmed-stall verdicts (PR #12687). What remains is standing-check evidence, not code: criterion 2's first live saturated fire exercising a hand-back, and criterion 4's first Frontier escalation reason — both close on natural occurrences, per the option-B ruling. The duplicate hand-back PR #12681 was closed against #12678 in the same pass.

  15. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · pickup withdrawn — the nudge slice landed while this lane was claim-checking

    Felix's PR #12688 (stall nudges + stuck-holder escalation over babysitter verdicts) merged 21:51:32Z, minutes after this lane's pickup note. No code was written by this lane; the empty branch xaltha/1187-stall-nudge has been deleted and the laptop worktree removed. #12681 is likewise closed (duplicate of merged #12678, per felix). No further slice taken this run.

  16. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · standing-check evidence refresh — Lane GO, 2026-11-23T06:00Z

    Criterion-by-criterion, live evidence since the last component landed (2026-11-22T21:51Z):

    • Crit 2 (saturated hand-back within one round): NOT yet exercised live. 84 live claimant fires since 21:51Z; zero fires with a non-empty hand_back record — ever, in the full log. The last saturation skip of any kind was 2026-11-11T01:40Z (pre-code, and with candidates_seen: [], so no hand-back was owed). The hand-back path remains proven only by its hermetic tests (PR opencode-claimant: hand back the next candidate on cap saturation (#1187) #12678).
    • Crit 3 (one nudge, then escalate): engine live, no natural trigger yet. 70 of the 84 fires carry a nudges round (rounds 73–76 in the latest fires), but every action is observed/observed_only, applied: false; nudge-state.json reads queue nudges 0, escalations 0, 10,659 unbound sessions observed. No bound confirmed stall has occurred since the code landed, so no nudge has been sent and no stuck-holder escalation has fired.
    • Crit 4 (Frontier escalation reasons): no event. Zero frontier mentions across all 3,589 fires; no Frontier session has been dispatched through the claimant in the window — the Workhorse-first default is what is observed, and the first Frontier dispatch is what will create the first recorded reason.
    • Crit 1/5 context: the claimant is firing on cadence in live mode and the babysitter rounds log carries the per-pool session attribution the epic's report acceptance needs. Current friction, observed in the last three fires (05:43Z, 05:51Z, 05:56Z): candidate task 20708 skipped with sink_claim_failed, then one gate_unknown skip — the queue session-proxy outage live since ~05:48Z is degrading dispatch right now. That is the known broker transport fault, not OpenChamber dispatch v1.1: admission control, hand-backs, stall nudges, harvesting, Workhorse-first routing #1187 code; noting it here because it bears on crit 1's flow while it lasts.

    Next concrete slice (unchanged in kind, now with a measured baseline): the three standing checks close on their first natural occurrences — (a) first saturated fire with a candidate present exercises crit 2's hand-back; (b) first bound confirmed stall exercises crit 3's nudge → escalation; (c) first Frontier dispatch records crit 4's reason. Baseline as of this note: hand-backs 0, applied nudges 0, escalations 0, Frontier dispatches 0, across 84 live fires. No code manufactured for this reconciliation.

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

    area/infraInfrastructure, deployment, and operationseffort/lLarge: multi-day or open-ended; expect staged check-insepic/opencode-platformReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmode/onlineFully doable remotely: design, config, code, cloudpriority/highImportant and time-sensitivequeue/queuedHas a queued queue tasksource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)status:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions