Skip to content

fix(opencode-claimant): raise poll gate timeout 30s -> 300s so live fires pass the gate - #13134

Merged
dezren39 merged 1 commit into
mainfrom
lane-oi-13112
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-oi-13112

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

Raises the opencode-claimant's poll gate timeout in run_poll() (pm-stack/opencode-claimant/claimant.py) from 30s to 300s.

Why (#13112)

poll.py's end-to-end latency measures 55–100s wall with ~2s CPU (sequential turso ledger reads + broker queries + the growing OpenCode session store), permanently above the hard-coded 30s gate timeout. Every live claimant fire failed closed as gate_unknown and launched nothing — 21 of the last 40 fires — while a real candidate (task 20708) waited unbound with cap_room=36.

Regression note

The timeout side moved, not the poll side. 300s covers the aggregate of poll.py's per-call timeouts (15s server GET, 30s broker POSTs) plus session-store growth, ~3x margin over the observed ~100s worst case. Fail-closed behavior is unchanged: a poll exceeding 300s or exiting non-zero still ends the fire as gate_unknown. The single-instance lock keeps overlapping fires impossible, so a slow poll only delays a fire; it cannot double-launch. Reducing poll.py's own latency (parallelizing its independent reads) remains a separate follow-up.

Provenance

Cherry-picked from the parked, never-pushed commit 8e472164d4cf (branch parked/opencode-claimant-poll-timeout-20261122 in the laptop primary), left unlanded by its author; landed here via worktree + PR for the #13112 acceptance.

Verification

This PR intentionally carries no closing keyword for #13112: the issue's acceptance also wants live fires passing the gate, which can only be observed after this lands on the primary clone. #13112 will be closed with that evidence once seen.


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ires pass the gate

poll.py's end-to-end latency (sequential turso ledger reads + broker
queries + the growing OpenCode session store) measures 55-100s wall
with ~2s CPU, permanently above claimant.py's hard-coded 30s gate
timeout. Every live fire failed closed as gate_unknown and launched
nothing, with a real candidate (task 20708) waiting unbound and
cap_room=36 (#13112).

Regression note: the timeout side moved, not the poll side. 300s
covers the aggregate of poll.py's per-call timeouts (15s server GET,
30s broker POSTs) plus session-store growth, ~3x margin over the
observed ~100s worst case. Fail-closed behavior is unchanged: a poll
that exceeds 300s or exits non-zero still ends the fire as
gate_unknown. The single-instance lock keeps overlapping fires
impossible, so a slow poll only delays a fire; it cannot
double-launch. Reducing poll.py's own latency (parallelizing its
independent reads) remains a separate follow-up.

Cherry-picked from the parked, never-pushed commit 8e47216
(branch parked/opencode-claimant-poll-timeout-20261122 in the laptop
primary), left unlanded by its author; landed here via worktree + PR
for the #13112 acceptance.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 47d97f93-a8da-45ba-b75e-1749d694fb01
Commits

Reviewing files that changed from the base of the PR and between 38ac705 and d257d3e.

Files selected for processing: 1

  • pm-stack/opencode-claimant/claimant.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T08:58:15.833953Z d257d3e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant