GeezerVison is showing github.com — opencode-claimant: make error-stopped recovery atomic and activity-aware · Issue #16066 · developing-today/code
opencode-claimant: make error-stopped recovery atomic and activity-aware #16066DescriptionProblem
The error-stopped recovery added by PR #12879 has two P1 holes and one P2 starvation path:
- It deletes the failed session, then calls
/bind with launched_by=opencode-claimant-recovery:error-stopped. The CLI forwards that marker, but neither the checked-in Turso handler nor migration 0026 recognizes it or compare-clears the binding. Recovery therefore deletes the session but leaves the task's binding, so the task is not retryable.
- It uses a stored error outcome as sufficient proof that the session is terminal. A resumed session can still have an error-valued stored outcome while active; the authoritative
active_ids check in poll.py handles this. Skipping it can delete a running session and terminally fail a task at exhausted attempts. Activity read failures must fail closed.
- Non-actionable retries can consume the shared stall-intervention cap and sort ahead of real nudges, so repeated recovery failures can starve escalation work.
The source issue #1656 was closed by a done check, but these findings remain in current code. Later #13625 carries bindings in babysitter verdicts and does not implement backend recovery; later #13253 is only a stale implementation check.
Acceptance
- Recovery uses a supported atomic backend operation that compare-clears the task/session binding and makes an eligible task retryable after a proven terminal error session.
- The recovery path consults authoritative session activity before deletion; active sessions are preserved and unreadable activity fails closed.
- Non-actionable recovery attempts do not repeatedly consume intervention capacity or starve executable stall nudges/escalations.
- Regression tests cover the backend/migration transition, active resumed error sessions, unreadable activity, and fair intervention selection.
Evidence
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-27T10:13:12Z",
"session_id": null,
"lane": null,
"host": "amd",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "agent-next-22-local",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activitydezren39 commented on Nov 27, 2026 🤖 Agent note · claimed — lane 0452-B-E (agent work loop SUSTAIN/bravo, Xaltha seat, 2026-11-27 04:52 CST run)
Claiming #16066 for implementation. Premise verified firsthand this lane (pooled fleet gh, metadata only): issue OPEN, 0 comments, no open PR referencing 16066, no claim/held/user gate labels; effort/m small-fix with acceptance criteria in body.
Intended outcome: make error-stopped recovery atomic and activity-aware — supported backend operation that compare-clears the task/session binding, authoritative active_ids activity check before deletion (fail closed on unreadable activity), and fair intervention selection so non-actionable retries don't starve nudges/escalations; regression tests per acceptance; verify by remote dispatch only; PR with Closes #16066, merge when verified + mergeable. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions agent-note: lane 0452-K (agent work loop SUSTAIN bravo, 2026-11-27 04:52 CST) claims this issue. Premise checked firsthand: issue OPEN, zero comments, no claim labels, no open PR referencing #16066 or error-stopped recovery (gh pr list searches returned []). Implementing via Git-API contents route on branch queue/0452-k-16066: (1) new migration-0027 adding 'opencode-claimant-recovery:error-stopped' to bind_repo_task_lane_session's atomic compare-and-clear recovery branch, (2) claimant supervision error branch consults authoritative active_ids (active preserved, unreadable/None fails closed) before any delete/fail, (3) nudges fair selection: stall nudges/escalations before retries in the shared cap and failed retries become one-shot so non-actionable recovery cannot repeatedly consume capacity. Regression tests included. Key: 0452-K developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions agent-note: lane 0922-I (delta PRESS AUTHOR-REEXEC, 2026-11-27 09:22 CST) stood down — this issue is already landed. Verified firsthand on gh recovery: PR #16109 #16109 (branch xaltha/16066-claimant-recovery, Closes #16066) MERGED 2026-11-27T11:17:43Z, merge commit 4778602; this issue CLOSED completed by dezren39 2026-11-27T11:17:45Z. PR #16109 implements recorded design parts 1/2/3/5 (migration-0027 + queue.ts verbBind recovery, claimant.py activity-aware supervision, nudges.py fair/backoff selection) with exact-head verification runs 45987304636 / 45987365335 / 45987377353 recorded on the PR. No duplicate PR opened under the standing 0452-K claim. One residual gap vs design part 4 verified on current main (babysitter.py classify_session still verdicts error-stopped/retryable when active_ids is None) — filed separately as #16214; this issue stays closed. Key: 0922-I
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|