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: fire log cannot distinguish a failed queue read from an empty queue, or say why a bind failed · Issue #8042 · developing-today/code

opencode-claimant: fire log cannot distinguish a failed queue read from an empty queue, or say why a bind failed #8042

New issue
Copy link
New issue
Copy link
Closed
#10946
Closed
opencode-claimant: fire log cannot distinguish a failed queue read from an empty queue, or say why a bind failed#8042
#10946
Copy link
Assignees
dezren39
Labels
epic/opencode-platformReprioritization program epic (2026-11-12)status:done

Description

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

Problem

Two fire-log gaps in pm-stack/opencode-claimant/claimant.py make a fire's outcome
impossible to reconstruct after the fact. Both were hit live on 2026-11-09.

1. A failed queue read is logged as "no candidates"

gate_step() runs poll.py and looks at candidates. poll.fetch_claimed_rows()
returns [] on any broker failure (it prints a warning to stderr). run_poll()
captures stderr and only checks the exit code, so a transient broker read failure is
indistinguishable from a genuinely empty queue, and the fire logs:

{"reason": "no_candidates"}

Observed: the 12:17:51Z fire logged no_candidates while poll.py run minutes
before and after returned four handed_off candidates for the same queue
(13723, 13748, 13813, 14120). Nothing launched either way (cap_room was 0),
but the log states a fact that was not established.

2. bind_failed discards the error, so a repeat failure is undiagnosable

In launch_step() a failed bind deletes the freshly created session and records
only {"reason": "bind_failed"}. bind_result.stderr — which is where
bind_repo_task_lane_session says exactly which precondition failed (task not
claimed with a live lease / no lane ledger row / already bound to session X /
task does not exist) — is dropped.

Observed: task 8750 hit bind_failed at the 10:06:00Z fire and again at the
12:29:18Z fire. Each attempt created and deleted a session, and the log cannot say
whether the lease had lapsed, or the ledger still held an old session id. The same
happened to 13932 at 10:06:00Z.

Why it matters

  • The fire log is the claimant's only audit trail and the thing the next reader
    (human or agent) reasons from. Saying "no candidates" when the queue could not be
    read is a false statement about the fleet.
  • A bind loop burns one session creation + one DELETE per fire, forever, with no
    recorded cause; the fixing move differs per cause (reclaim with the atomic
    compare-and-clear for a stale ledger binding vs. wait/let the lane re-claim for a
    lapsed lease).

Suggested fix

  • poll.py: report per-queue read success (e.g. queues[q]["read_ok"]), and have
    gate_step() log queue_read_failed skips when a queue could not be read rather
    than concluding "no candidates".
  • claimant.py: put the bind error text in the skip record
    ({"reason": "bind_failed", "error": <first line of stderr>}), truncated and
    credential-free.

Not blocking: both are logging-only; launch safety is unchanged.

Found while running the opencode lane claimant on the laptop (#3026 slice 1).

Activity

  1. developing-today commented on Nov 9, 2026

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

    CODE-2374

  2. dezren39
    added
    epic/opencode-platformReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  3. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  4. developing-today
    added
    status:in-review
    on Nov 17, 2026
  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 17, 2026
  6. dezren39
    added a commit that references this issue on Nov 17, 2026

    Merge pull request #10946 from developing-today/queue/18576-8042-clai…

    d3432d3
  7. dezren39
    closed this as completedin #10946on Nov 17, 2026
  8. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 17, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: done
    task: 18576
    lane: any-m
    worker: repo-worker-code

    Task 18576 (triage of issue #8042) — fixed and merged in the same claim (inline triage, section 1c):

    • Verified fresh: both gaps were still live on main — poll.py's _fetch_rows returned [] indistinguishably on broker failure, and claimant.py's bind_failed skip dropped bind_result.stderr.
    • PR fix(claimant): fire log distinguishes failed queue reads from empty, bind_failed records why (#8042) #10946 MERGED (d3432d3): poll.py records read failures (_READ_ERRORS) and publishes per-queue read_ok + read_errors; claimant gate_step returns UNKNOWN when a queue's read failed and no verified candidates exist (fire logs gate_unknown, never the false no_candidates); bind_failed skips now carry error = first non-empty stderr line (fallback stdout), truncated to 200 chars.
    • Tests, oracle = the issue's two observed 2026-11-09 failures: test_poll +3, test_claimant +5; full claimant suites on the laptop worktree pass (124 + 64 tests).
    • Review bots: Codex review failed to run (usage limits — no findings produced, zero inline comments) and CodeRabbit was rate-limited (no findings); nothing to disposition. Merge proceeded on the verified tests + diff review under the standing criteria.

    Issue #8042 closed by the merge.

  10. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 17, 2026
  11. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Agent note — task 20090: already_done concurrence (lane any-d, 2026-11-17)

    Fresh verification this shift: issue #8042 is CLOSED as COMPLETED (2026-11-17T03:48:47Z, status:done). Task 18576 (lane any-m) fixed it inline under §1c and merged PR #10946 — MERGED 2026-11-17T03:48:46Z, merge SHA d3432d3 (poll.py read-failure recording + claimant bind-failure stderr). Task 20090 is the triage follow-on created a minute after that closure; completing it as already_done. No follow-on needed.

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

epic/opencode-platformReprioritization program epic (2026-11-12)status:done

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.