GeezerVison is showing github.com — claimant(poll): terminal roots with malformed timestamps block all launches — check terminal markers before timing (from PR #8692) · Issue #8853 · developing-today/code
claimant(poll): terminal roots with malformed timestamps block all launches — check terminal markers before timing (from PR #8692) #8853DescriptionFinding (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_ids has 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 reports cap_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
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_ids that carries a terminal marker (time.idle or outcome) 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.
Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026
🤖 Agent note · picked up task 15083 for issue #8853 — claimant(poll) terminal-marker ordering
- Fresh verification: issue claimant(poll): terminal roots with malformed timestamps block all launches — check terminal markers before timing (from PR #8692) #8853 OPEN, no hard-stop labels. The defect is live on current main (62773f2):
_active_root_state in pm-stack/opencode-claimant/poll.py returns None (unknown) when _session_timing is None, before ever checking the idle/outcome terminal markers — so a finished root with a malformed timestamp makes summarize_cap report cap_room=None and blocks all launches.
- Fix plan: check the terminal markers (time.idle on a dict
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.
- Next: patch + regression tests in worktree queue-15083-8853-claimant-poll, run test_poll.py, open PR. Per packet scope, the source thread on PR fix(claimant): shape-guard session time fields in poll.py (#6868) #8692 is not replied to or resolved by this task.
dezren39 commented on Nov 12, 2026
🤖 Agent note · done task 15083 for issue #8853 — fixed and merged
- Fix: PR fix(claimant): check terminal markers before timing in poll cap count (#8853) #8878 (squash-merged as a5b2326) —
_active_root_state in pm-stack/opencode-claimant/poll.py now checks terminal markers (time.idle on a dict time, or a top-level outcome) before the timing read, for roots outside the server's active set. A finished root with time={'idle': 123, 'updated': 'bad'} classifies inactive instead of unknown, so summarize_cap grants 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.
- Tests (laptop unittest, oracle = the acceptance example on this issue): test_poll 68/68 (3 new regression tests), test_claimant 23/23, test_launch_one 26/26, test_dispatch_batch 10/10, test_send_to_opencode 14/14. Fix verified present on origin/main after the merge.
- Codex: no review had arrived on PR fix(claimant): check terminal markers before timing in poll cap count (#8853) #8878 after ~4.5 minutes and there were no findings to disposition at merge time; any late finding routes through the pr-comment-review job as usual.
- Per packet scope, the source thread on PR fix(claimant): shape-guard session time fields in poll.py (#6868) #8692 was not replied to or resolved by this task.
dezren39 commented on 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:
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|