GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #16066

New issue
Copy link
New issue
Copy link
Done
#16109
Done
opencode-claimant: make error-stopped recovery atomic and activity-aware#16066
#16109
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@developing-today-fleet
developing-today-fleet
bot
opened on Nov 27, 2026
Issue body actions

Problem

The error-stopped recovery added by PR #12879 has two P1 holes and one P2 starvation path:

  1. 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.
  2. 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.
  3. 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

  • PR feat(opencode-claimant): retry error-stopped queue sessions #12879 review findings #4661821282, #4661821289, and #4661821294.
  • Current issue discussion feat(keeper): binding-aware supervision for queue-spawned OpenCode sessions (OpenCode-half step 3) #1656 comments #7101177507 and #7102138388 records the closure and later remaining AC1/runtime note; Lane 4 has not reopened it.
  • Refs feat(keeper): binding-aware supervision for queue-spawned OpenCode sessions (OpenCode-half step 3) #1656, feat(opencode-claimant): retry error-stopped queue sessions #12879, fix(opencode-claimant): carry queue binding in all babysitter verdicts #13625, verify_slice1: update stale expectations to the current claimant mechanisms #13253.
{
  "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)"
  }
}

Activity

  1. developing-today-fleet
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    source/agentCreated by an agent worker
    on Nov 27, 2026
  2. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    fix(claimant): atomically recover inactive error-stopped sessions (#1…

    b1e5d16
  3. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    Member
    More actions

    🤖 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.

  4. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    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

  5. dezren39
    added a commit that references this issue on Nov 27, 2026

    opencode-claimant: make error-stopped recovery atomic and activity-aw…

    e1e685d
  6. dezren39
    closed this as completedin #16109on Nov 27, 2026
  7. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    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

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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.