Skip to content

fleet(monitor): monitor-digest queue_queued_missing_task over-flags 134 code issues — labelled/task join drops live tasks #7907

Closed

Description

@dezren39

Symptom

The fleet monitor's run-start digest (monitor-digest.py, used by repo-fleet-monitor per code#2154) flags 134 developing-today/code issues under queue_queued_missing_task — issues labelled queue/queued that the digest believes have no live queue task. Direct checks show sampled flagged issues DO have live tasks, so the flag list is unusable: the monitor's Duty 1 safety net cannot trust it and spends its bounded run re-verifying instead of reconciling.

Evidence

  • Fleet monitor run 2026-11-08 18:12 CST (run_id f52bdf5a-f312-4fe7-87fe-479ecf51b784): "Digest defect: queue_queued_missing_task over-flags 134 code items; sample of 3 all had live tasks via dedupe hit, indicating unhealthy join logic."
  • Digest on disk (hidden_files/monitor-digest.json, generated 2026-11-09T00:12:32Z): flags."developing-today/code".queue_queued_missing_task has 134 entries (first entries: issues 788, 941); the same flag is 0 for opencode, openchamber, and nix.
  • Code inspection (2026-11-09, dropped-thread-catcher): in monitor-digest.py, live_by_issue is built only from the digest's fetched tasks list, and queue_queued_missing_task = labelled queue/queued issues whose number is not in live_by_issue. If the task fetch is windowed/paginated differently from the label pull (label pull limit 500 per label), every issue whose live task falls outside the task fetch window is falsely flagged.

Scope

  • Fix the join in monitor-digest.py so queue_queued_missing_task only contains issues with genuinely no live (queued/claimed/parked) task in the corresponding pilot queue — e.g. fetch tasks keyed by dedupe/issue for the labelled set, or page the task fetch until it covers the labelled set.
  • Do not change the flag's name or the digest's output shape; other duties consume them.
  • Out of scope: the 133-item claim-evaporation backlog and any label repairs (the monitor's normal duties).

Acceptance check

  • A regenerated digest's queue_queued_missing_task list for developing-today/code, spot-checked on at least 5 flagged issues via direct dedupe/task lookup, contains only issues with no live task; and the count drops from 134 to the true number (expected near zero).
  • The next repo-fleet-monitor run reports the flag as trustworthy (no "over-flags / wasn't trusted" note).

Refs

Acceptance criteria

Activity

  1. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor
  2. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/fleet-monitorFiled or driven by the fleet monitor / operator reconciliation
    priority/highImportant and time-sensitive
    effort/sSmall: expected under 2 hours of work
    app/fleetpkgs/fleet multicall binary + platform crates
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 9, 2026
  3. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    Intake review

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 9, 2026
  5. 63 remaining items

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    queue/claimedQueue worker lifecycle state
    on Nov 10, 2026
  7. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — task 14260 pickup + handoff (lane code-g)

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off to opencode claimant

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Lane code-p picked up task 14260 (issue #7907) — handed off to opencode claimant.

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Fixed — queue_queued_missing_task join verified against live tasks per candidate (task 14260, lane code-m)

    The flag in monitor-digest.py joined the queue/queued label set against live_by_issue built only from the capped, priority-ordered task fetch window (1000 rows), so live tasks outside the window read as missing. The flag now verifies each candidate with a targeted queue lookup (payload issue number or dedupe-key suffix, live queued/claimed/parked statuses) and only flags issues that lookup also finds nothing for. Flag name and digest output shape unchanged.

    Verification (2026-11-11): regenerated digest — developing-today/code queue_queued_missing_task = 20 (was 134 at filing on 2026-11-08). Spot-checked 8 of the 20 flagged issues (#796, #1915, #1936, #4951, #5955, #6033, #6302, #7355) with an independent all-statuses lookup: every one has only done tasks — genuinely no live queued/claimed/parked task; their queue/queued labels are stale, which is exactly the divergence this flag exists to surface. Closing this issue as fixed.

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/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/fleet-monitorFiled or driven by the fleet monitor / operator reconciliationstatus/parkedDeliberately paused with a recorded resume conditionstatus:donework/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions