GeezerVison is showing github.com — feat(keeper): binding-aware supervision for queue-spawned OpenCode sessions (OpenCode-half step 3) · Issue #1656 · developing-today/code
feat(keeper): binding-aware supervision for queue-spawned OpenCode sessions (OpenCode-half step 3) #1656DescriptionPart of the OpenCode-half redesign (design: files/opencode-half-redesign-2026-10-28.md in the keep-the-four-repos-healthy goal workspace; tracking: #1425). Drew's order, 2026-10-28: at least half of fleet tasks execute via OpenCode sessions.
Scope
Make keeper (jules-review) and babysitter (openchamber-babysitter) supervision explicitly binding-aware for queue-spawned OpenCode sessions:
- Sessions launched by queue shifts carry a binding (session id ↔ task id ↔ issue) recorded in the task's progress at launch. The babysitter's rounds already enumerate every session at the laptop location; add the queue binding to its per-session record so queue sessions are distinguishable from dispatcher-launched and interactive ones.
- Keeper retry/failover rules apply to queue sessions (error-stopped: one retry, then model failover per the registry ladder) — but question-answering does NOT: a queue session waiting on a question is reported to its owning shift's lane, never answered by the keeper (the shift owns the packet context and the claim).
- Intervention caps: queue-session interventions are counted separately in the keeper state file so a burst of queue-session failures cannot silently consume the whole run's intervention budget; overflow is reported, not dropped.
Acceptance criteria
- Babysitter round output identifies queue-spawned sessions with their task/issue binding for 100% of sessions launched under the executor mode.
- An error-stopped queue session receives the standard retry/failover treatment and the intervention is logged with its binding.
- A queue session waiting on a question is never answered by the keeper; it appears in the keeper report as owned-by-shift.
- Keeper state separates queue-session interventions from Jules/OpenChamber ones.
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 dezren39 commented on Oct 31, 2026 Status — owner order 2026-10-28, stalled, re-surfaced 2026-10-31 (supersession check vs #2132).
Verdict of the owed supersession check, 2026-10-31:
NOT superseded by #2132 — partial overlap on one surface only. #2132 / its implementation #2153 merge the OpenChamber dispatcher + babysitter into the session conductor, so the babysitter-facing half of this step (per-session records on supervised sessions) will land in the conductor after cutover, not in the retiring babysitter job. Everything else in this step is outside #2132/#2153's scope and still owed:
- queue-spawned sessions carrying a binding (session ↔ task ↔ issue) recorded in the task's progress at launch;
- keeper (
jules-review) retry/failover rules applied to queue sessions, with the explicit rule that a queue session's questions are never answered by the keeper (the owning shift answers them);
- queue-session interventions counted separately in the keeper state file, with overflow reported rather than dropped.
Queue state, verified by direct read 2026-10-31: live triage task 2619 (repo-health-code-pilot, queued, priority 50, attempts 0/3). No duplicate packet enqueued. Triage note: read #2153's current state first and aim the babysitter-facing piece at the conductor. dezren39 commented on Nov 1, 2026 agent-note:v1 — holder: repo-worker-code (OpenChamber scheduled lane), since 2026-11-01. Picked up queue task 2619 for triage; validating the live issue and current main before routing a scoped follow-up or closing with evidence. dezren39 commented on Nov 23, 2026
agent-note:v1
event: picked-up
by: Lane DQ (archer seat, scale-up lane per Drew's 2026-11-22 order to run 6–12 lanes)
Picked up via fleet agent next (shortlist rank 5, dep-chain head). Premise check: issue OPEN; felix's 2026-11-22 evidence note stands — AC1 substrate landed (PRs #12687/#12688/#12689), AC3 superseded by Drew's 2026-11-12 ruling (ac3-rule-conflict-1656). No live claim on the issue.
Slice this lane: AC4 — keeper state separates queue-session interventions. In the current stack the interventions are nudges.py's actuations (nudges + escalations over babysitter verdicts); nudge-state.json counts nothing in aggregate and there is no run budget separation. Landing: per-class intervention counts (queue-bound vs unbound/observed) persisted in nudge-state.json and reported per round, a per-round cap on queue-class interventions, and overflow reported in the round record and deferred (episode state carried, re-planned next round) — never dropped.
AC2 (retry/failover treatment for error-stopped queue sessions) remains after this slice; #1656 stays open. dezren39 commented on Nov 23, 2026 agent-note:v1
event: progress — AC4 slice PR open
by: Lane DQ (archer seat)
PR: #12859 — binding-aware intervention accounting in nudges.py (per-class counts in nudge-state.json, per-round queue-intervention cap, overflow reported + deferred). Verification: 5 new tests pass, all 5 fail against origin/main's nudges.py (negative control), full hermetic suite 208 tests OK. Merging on the strength of that verification; #1656 stays open for AC2. dezren39 commented on Nov 23, 2026
agent-note:v1
event: merged — AC4 landed
by: Lane DQ (archer seat)
Slice landed: PR #12859 merged — AC4 (keeper state separates queue-session interventions) now holds in the live stack.
- PR: feat(claimant): binding-aware intervention accounting in nudges (#1656 AC4) #12859, merge commit
b9c74ef4d377981ec3d2f6214c1c798dd3c1573e, verified on main (nudges.py carries MAX_QUEUE_INTERVENTIONS_PER_ROUND / split_plan).
- What landed:
nudge-state.json carries cumulative per-class counts (queue {nudges, escalations} vs other {observed}) alongside the episodes; only applied actuations count; queue-class interventions capped at 10/round with overflow reported in the round record (overflow, detail: over_queue_cap) and deferred with episode state untouched — least-served-first, so deferral never starves. The nudge-step record gains interventions + overflow in live and shadow modes.
- Verification: 5 new
TestInterventionAccounting tests pass; all 5 fail against origin/main's nudges.py (negative control); full hermetic suite 208 tests OK.
Acceptance state of #1656 after this slice: AC1 substrate landed 2026-11-22 (PRs #12687/#12688/#12689, felix's evidence note); AC3 superseded by Drew's 2026-11-12 ruling (ac3-rule-conflict-1656); AC4 landed here. AC2 remains — an error-stopped queue session receives the standard retry/failover treatment, logged with its binding. That is the named next slice; #1656 correctly stays open for it. (Note for the #1658 resume gate: it needs #1656 + #1657 both closed, so AC2 is now the long pole on this side.)
Also this pass, for the record: the lane was first handed #12228 and stood down — criteria 1–2 verified PASS by prior lanes, criterion 3 is a soak observation due 2026-11-29, and the one code-shaped remainder (cross-route failover under Drew's 2026-11-22 decision) carries felix's live claim from 2026-11-23T03:12Z. No competing work was started there. dezren39 commented on Nov 23, 2026 🤖 Agent note — AC2 slice PR open
PR: #12879
After this PR, an expired queue task whose bound OpenCode session ends with an error-class outcome (error, failed, failure, timeout, or timed_out) is classified as error-stopped; supervision verifies the lease, deletes the failed session, compare-clears the queue binding, and records the task/queue/issue/repo binding plus requeued_retry in the fire log. The next fire re-launches the task through its recorded route/failover ladder. Attempts-exhausted tasks keep the existing terminal-fail path.
Evidence on branch d41a9ee61f4: 47 babysitter/nudge tests pass; 12 claimant supervision tests pass; Python compilation and git diff --check pass. The complete claimant file's live-fire tests require the local OpenCode HTTP endpoint, which was unavailable in this environment.
AC1 substrate and AC4 remain as previously recorded; AC2 is the remaining implementation slice for this issue until this PR merges. dezren39 commented on Nov 23, 2026 🤖 Agent note — AC2 merged
PR #12879 merged. Merge commit and current main verification are recorded by GitHub; the merged slice classifies expired error-stopped queue sessions, performs verified delete + atomic compare-clear, and logs the binding/requeued retry. AC2 is now landed for #1656. The remaining issue scope is only the already-recorded AC1/AC4 follow-up state and any future re-scope beyond this slice. dezren39 commented on Nov 23, 2026
agent-note:v1
event: done check run — all four criteria landed or superseded; closing
by: lane oc-code-07 (OpenChamber scheduled Fleet lane), 2026-11-23
Fresh done check against current origin/main (d18c12f), run because this issue is the long-pole gate for the step-5 rollout (#1658) and its merged work blocks its waiters (AGENTS.md finishing rule; no live claim holds it — lane_guard hold check: available, no hold label):
- AC1 — binding on the per-session record: landed.
babysitter.build_bindings (babysitter.py:421 on main) builds session -> {task_id, queue, issue_number, repo} from every queue's claimed rows (the broker rich read), so each session launched under executor mode carries its binding in the round record; unbound sessions are enumerated as observed, never driven. Landed via PRs feat(claimant): babysitter verdict rounds over all sessions (#1338) #12687/feat(opencode-claimant): stall nudges + stuck-holder escalation over babysitter verdicts (#1187) #12688/feat(pm-stack): quota gatherer writes the babysitter pool-state feed (#1338) #12689 (2026-11-22, felix's evidence note).
- AC2 — retry/failover for error-stopped queue sessions, logged with binding: landed. PR feat(opencode-claimant): retry error-stopped queue sessions #12879 merged (8429ed8): error-class outcomes (
error, failed, failure, timeout, timed_out) classify a bound expired task as error-stopped; supervision verifies the lease, deletes the failed session, compare-clears the binding atomically, and logs task/queue/issue/repo plus requeued_retry (claimant.py:638 _recover_error_stopped, LAUNCHED_BY_RECOVERY_ERROR_STOPPED). The prior slice's verification gap (live-fire tests needing the local OpenCode endpoint) is closed below to the extent the offline suite can.
- AC3 — superseded by Drew's 2026-11-12 ruling (pending-decisions item ac3-rule-conflict-1656): the conductor decided-context rule wins; verified already live behavior, no instruction surface encodes the old never-answer rule.
- AC4 — keeper state separates queue-session interventions: landed. PR feat(claimant): binding-aware intervention accounting in nudges (#1656 AC4) #12859 merged (9bbc9f4):
MAX_QUEUE_INTERVENTIONS_PER_ROUND = 10, split_plan per-class accounting in nudge-state.json, overflow reported in the round record and deferred, never dropped.
Verification this run (laptop, seat oc-code-07): full offline hermetic suite run_hermetic_tests.py — 224/226 pass; the 2 errors are TestCodeSourceFireLog.test_fire_entry_carries_code_source and test_reads_branch_and_commit, which fail only because the offline harness's subprocess guard rejects their local git init; run directly outside the guard they pass 3/3 (including test_unreadable_clone_fails_open). All four acceptance criteria are therefore landed or formally superseded by a recorded ruling; nothing named remains open on this issue. Closing.
Effect for the gate chain: #1658's resume condition now has one remaining leg — #1657 (daily lane-share publication, blocked on the primary-seat cron.apply chain recorded on task 5031), plus the already-resolved tracking home (#1658 itself). dezren39 commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 🤖 Agent note — AC1 slice PR open
PR: #13300
After this PR, every queue-bound babysitter verdict includes the public task/queue/issue/repo binding; the new regression test fails before and passes after the change. Focused babysitter suite (25 tests) and nudges suite pass. Ran on laptop at d69f628.
Remaining #1656 acceptance: AC3 (queue session waiting on a question is reported as owned-by-shift and never answered by keeper); AC1 executor-mode coverage may need runtime evidence.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|