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: bound session that never received its prompt (task 6722) has no recovery path — stuck claimed forever · Issue #4758 · developing-today/code

opencode-claimant: bound session that never received its prompt (task 6722) has no recovery path — stuck claimed forever #4758

New issue
Copy link
New issue
Copy link
Closed
#5338
Closed
opencode-claimant: bound session that never received its prompt (task 6722) has no recovery path — stuck claimed forever#4758
#5338
Copy link
Assignees
dezren39
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)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/design-architectFiled by the repo design architect jobsource/queue-workerFiled or worked by the queue/worker pilottask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 3, 2026
Issue body actions

Summary

Queue task 6722 (repo-health-code-pilot, issue #1348) is bound to session ses_e5e60bd3d74ffewwDg1Qd0n2Qa, and that session is alive but has zero messages. No rule in the claimant contract can unstick it:

  • it is not a launch candidate (it carries progress.session_id, and poll.py::is_candidate excludes bound tasks);
  • the one permitted prompt resend was already spent by an earlier fire (progress.reason: "prompt_async failed after one resend to same bound session", progress.error_type: "HTTPError");
  • the expired-lease relaunch rule in step 1 applies only when the session is gone — this one answers GET /api/session/<id> with 200.

State observed 2026-11-03T04:43Z:

field value
status claimed
stage handed_off
attempts 3 / 3
lease_until 2026-11-03T04:43:41Z (expired)
session messages 0
session markers no time.idle, no outcome, created == updated (2026-11-03T04:35:14Z)

Impact

The task occupies a claimed slot forever: no worker, no terminal state, and no path back to the candidate list. Its lease long-expired claim also keeps a queue row claimed, which suppresses dedupe for issue #1348.

Proposed fix

Add a recovery rule for the "created, never prompted, never active" case, distinct from the gone-session rule. For example: a bound session with zero messages and no activity for N minutes, whose task lease has expired, may be reclaimed to unbound (checkpoint stage: "launch_failed", clear session_id, keep the prior id in an audit field) so the next fire can relaunch it normally; or the task is terminally failed once attempts >= max_attempts is reached, with the bound session id in --execution. Either choice must be explicit, because "do nothing" is the current outcome.

Whichever rule wins, it should also tell Tend's fleet-watchdog (ledger backstop) what it did, since the watchdog sees the same stuck row.

Acceptance criteria

  • A bound session with zero messages, no activity markers, and an expired task lease has an explicit recovery path: either the task is reclaimed to unbound (checkpoint stage launch_failed, session_id cleared with the prior id kept in an audit field) so a later fire can relaunch it, or it is terminally failed with the bound session id recorded in the execution outcome.
  • The chosen rule is written into the claimant contract/instructions, including the inactivity threshold N.
  • Tend's fleet-watchdog (ledger backstop) is told what the rule did (or can read it from the task's progress), so both supervisors agree on the row's state.
  • A live, progressing bound session is never reclaimed or relaunched over (existing hard rule preserved).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/highImportant and time-sensitive
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    status/needs-triageNot yet triaged; needs a first look
    effort/mMedium: expected under 1 day of work
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    Intake review

    Origin: task 6722 (issue #1348) bound to a zero-message session, attempts 3/3, lease expired — the concrete stuck row this issue describes; PR #4665 exists for #1348's underlying fix. Still live at intake: no merged PR references this issue (verified this run). Risks: reclaiming too aggressively could double-launch over a merely slow session — the zero-messages + no-markers + expired-lease conjunction is the safety condition. Suggested approach: implement the reclaim-to-unbound variant (less destructive than terminal fail) in the claimant's supervision step, keyed on that conjunction.

    — fleet monitor intake (repo-fleet-monitor, 2026-11-03)

  3. github-actions
    assigned
    dezren39
    on Nov 3, 2026
  4. dezren39
    added a parent issue on Nov 3, 2026
    • design: judge a session by its own record — the opencode-claimant's session contract (per-id reads, verified create, every bound state dispositioned) #4912
  5. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Nov 3, 2026
  6. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    Adopted as Phase 3 of design #4912 (judge a session by its own record — the opencode-claimant's session contract), filed by the fleet design architect, pass 44 (2026-11-03). Design doc: files/designs/code-claimant-session-contract.md in the keep-the-four-repos-healthy goal workspace.

    Phase structure for triage: do NOT re-file, re-scope, or split this issue — it is the phase. The design pins this issue's either/or as follows (both halves recorded, per the state table on #4912):

    • Attempts remain: reclaim to unbound — DELETE the verified zero-message session per-id first (a failed delete keeps the binding, fail closed), then checkpoint stage: "launch_failed" clearing session_id, with the prior id kept in an audit field on the task's progress, so the next fire relaunches normally.
    • Attempts exhausted (attempts >= max_attempts — task 6722's case): terminally fail the task with the bound session id in --execution, deleting the empty session on the same terms.

    The inactivity threshold is 30 minutes, reusing poll.py's existing ACTIVE_WINDOW_MS zombie window rather than a second constant. The watchdog-agreement acceptance is met via the task's progress record, which Tend's fleet-watchdog already reads — no new notification channel. Phases 1 (#4757) and 2 (#4870) are independent; Phase 4 (#4916, closing audit) is gated on all three.

    agent-note:v1 — design-architect adoption note, pass 44.

  7. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  8. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 70 (priority/high). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  9. 25 remaining items

  10. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 4, 2026
  11. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked (awaiting CI)

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane c8b9355e-319a-4640-8096-7ad19480d151
    • Session / ID: task 9309
    • Found via: queue claim (repo-health-code-pilot)
    • Task: Updated PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 on queue/9309-4758-claimant-recovery; latest pushed head is c55557f3b06135ef23b647c52e8a3b286ba41ecf. Added migration 0022 with guarded atomic compare-and-clear of task progress and lane-ledger session IDs, records the prior ID and launch_failed stage, and increments attempts. Prompt now fails closed on unknown session/message reads and delays relaunch until the next fire.
    • Review disposition: Codex P1 was valid: progress-only clearing left the ledger bound, preventing a new bind. The migration fixes that path; replied on the review thread.
    • Verification: python3 -m unittest test_poll.py — 36 passed; bun test — 13 passed / 98 assertions; git diff --check clean. SQL was not runtime-tested against Postgres.
    • Resume: CI run 41798900836 was queued at park. Refresh CI and review state, then merge only if checks pass and the diff remains correct. Apply migration 0022 before installing/enabling the updated prompt.

    agent-note:v1

  12. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 4, 2026
  13. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 9309
    • Found via: queue claim · resume from checkpoint stage targeted_tests_passed
    • Task: Resuming task 9309 for issue opencode-claimant: bound session that never received its prompt (task 6722) has no recovery path — stuck claimed forever #4758 — PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 (claimant recovery rule) is at head c55557f with targeted tests passed (test_poll.py 36 passed; bun test 13 passed per checkpoint). Verifying Codex disposition + CI, then merging under standing criteria.
    • Expectation: effort s — done = PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 merged or task 9309 parked/blocked with a named reason.
    • Links: PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 · branch queue/9309-4758-claimant-recovery
  14. dezren39
    added a commit that references this issue on Nov 4, 2026

    Merge pull request #5338 from developing-today/queue/9309-4758-claima…

    ee58657
  15. dezren39
    closed this as completedin #5338on Nov 4, 2026
  16. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  17. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 9309
    • Found via: queue claim · resume from checkpoint stage targeted_tests_passed
    • Task: PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 merged under standing criteria. Codex P1 (ledger binding not cleared) was addressed in c55557f and the reply is on that thread; latest Codex review on head c55557f reports no findings. CI: contract corpus pass; the aggregator-tests failure is pre-existing on main (health-surface inbox tests, tracked by issue pm-stack(aggregator): health-surface inbox tests fail on main — loadConfig({}) throws the fixture-mode guard (conflicts-1282.test.ts) #5364) and PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 touches only pm-stack/opencode-claimant. Targeted tests per checkpoint: test_poll.py 36 passed, bun test 13 passed.
    • Expectation: done — PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 MERGED 2026-11-04T10:26:29Z, merge commit ee58657; issue opencode-claimant: bound session that never received its prompt (task 6722) has no recovery path — stuck claimed forever #4758 CLOSED; task 9309 completed as fixed_merged.
    • Links: PR opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338 opencode-claimant: recovery rule for bound sessions that never received their prompt (#4758) #5338
  18. dezren39
    added a commit that references this issue on Nov 4, 2026

    opencode-claimant: record #5001 session-binding migration as 0023 (00…

    281163f
  19. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    state: phase-4-audit
    task: 13022
    lane: code-w
    issue: "#4916"

    Phase 4 closing audit of design #4912 (issue #4916, PR #8224) — origin summary for this phase:

    Phase 3 (this issue, #4758) — landed and closed. Bound sessions that never received their prompt have a recovery path: verify zero messages per-id (GET /api/session/{id}/message), DELETE the session per-id, then atomically reclaim the binding; gone sessions get the parallel verify-absence-then-reclaim path, and exhausted attempts fail the task terminally with the session id recorded. These are rows in the bound-state table in the README's Session Contract section (contract rule 3: every bound state dispositioned).

    Phase 4's inventory dispositions the recovery calls compliant; an unavailable message read is treated as not verified, never as zero-message. This issue stays closed; no acceptance item was found unmet.

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

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)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/design-architectFiled by the repo design architect jobsource/queue-workerFiled or worked by the queue/worker pilottask/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.