Repository navigation
Description
Finding (unaddressed PR review comment)
Codex P2 on merged PR #8692 — comment #8692 (comment) by chatgpt-codex-connector[bot], 2026-11-11T14:03:33Z, at pm-stack/opencode-claimant/poll.py:260:
Check terminal markers before requiring readable timestamps — When a root outside
active_idshas a terminal marker but a malformed timestamp—for example,time={"idle": 123, "updated": "bad"}—this now returns unknown before checking the marker. Previously, that root was correctly excluded without inspecting its timestamp.summarize_cap()consequently reportscap_room=None, preventing all claimant launches; because finished roots remain in the session list indefinitely, one such record can persistently block the fleet. Keep active-set membership authoritative, but check available terminal markers before requiring readable activity timestamps.
No-response evidence
- PR fix(claimant): shape-guard session time fields in poll.py (#6868) #8692 merged; the flagged code merged in the reviewed shape.
- Fresh re-read (2026-11-11, this run): the PR's only inline comment is this Codex original, with no replies; no conversation comment addresses it.
- GraphQL
reviewThreadscheck: the thread is unresolved. - Searched open and closed issues for "8692", "4538831312", and "poll.py terminal markers" — no existing issue covers this finding (parent issue opencode-claimant(poll): a session entry with a wrong-shaped time crashes all of poll.py — one malformed session kills candidate discovery for every queue #6868 is the session-timing change this PR implemented; it does not cover this ordering defect).
Still live on current main (verified 2026-11-11, two gh api reads)
pm-stack/opencode-claimant/poll.py on main: _active_root_state (lines ~258–263) still calls _session_timing(s) and returns None (unknown) when it is None, before checking idle or s.get("outcome"). _session_timing (lines ~169–199) returns None when a present updated/created value is non-numeric, even when time.idle is present. count_active_roots propagates None, and summarize_cap then reports cap_room=None, so one finished root with a malformed timestamp persistently blocks all claimant launches.
Acceptance criteria
- A root outside
active_idsthat carries a terminal marker (time.idleoroutcome) is classified inactive without requiring a readable activity timestamp, while active-set membership stays authoritative and genuinely undecidable roots still fail closed — or the finding is resolved by a documented decision on this issue. - Regression coverage exists for a terminal root with a malformed timestamp (e.g.
time={"idle": 123, "updated": "bad"}) not blocking cap room.
Activity
developing-today commentedon Nov 12, 2026
CODE-2670
dezren39 commentedon Nov 12, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 12, 2026
🤖 Agent note · picked up
14 remaining items
dezren39 commentedon Nov 12, 2026
🤖 Agent note · picked up task 15083 for issue #8853 — claimant(poll) terminal-marker ordering
_active_root_statein pm-stack/opencode-claimant/poll.py returns None (unknown) when_session_timingis None, before ever checking the idle/outcome terminal markers — so a finished root with a malformed timestamp makessummarize_capreport cap_room=None and blocks all launches.time, or a top-level outcome) before the timing read, for roots outside the server's active set (active-set membership stays authoritative and is checked first). Roots with malformed timing and NO terminal marker still fail closed as unknown.fix(claimant): check terminal markers before timing in poll cap count (…
dezren39 commentedon Nov 12, 2026
🤖 Agent note · done task 15083 for issue #8853 — fixed and merged
_active_root_statein pm-stack/opencode-claimant/poll.py now checks terminal markers (time.idle on a dicttime, or a top-level outcome) before the timing read, for roots outside the server's active set. A finished root withtime={'idle': 123, 'updated': 'bad'}classifies inactive instead of unknown, sosummarize_capgrants cap room again. Malformed timing with no terminal marker still fails closed as unknown (opencode-claimant(poll): a session entry with a wrong-shaped time crashes all of poll.py — one malformed session kills candidate discovery for every queue #6868 discipline preserved); active-set membership still overrides stored markers.dezren39 commentedon Nov 12, 2026
🤖 Agent note · correction to the done note on task 15083 for issue #8853
The earlier done note omitted a material fact this lane only discovered in the backlog afterward: PR #8859 (from triage task 15078, claimed again under task 15083 by lane code-c and parked as a CI wait) already carried an equivalent fix for this issue. This lane's revalidation missed PR #8859, built PR #8878, and merged it — creating a duplicate that has now been dispositioned per the queue §8 protocol: