Skip to content

claimant(poll): terminal roots with malformed timestamps block all launches — check terminal markers before timing (from PR #8692) #8853

Closed

Description

@dezren39

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_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.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 12, 2026
  2. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 12, 2026
  5. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  6. 14 remaining items

  7. added
    status/parkedDeliberately paused with a recorded resume condition
    epic/pm-stackReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  8. added this to the PM stack coherence milestone on Nov 12, 2026
  9. added
    queue/claimedQueue 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 12, 2026
  10. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up task 15083 for issue #8853 — claimant(poll) terminal-marker ordering

  11. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done task 15083 for issue #8853 — fixed and merged

  12. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    🤖 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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeepic/pm-stackReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobstatus:in-reviewtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions