Skip to content

fleet: a sleeping-display decline is remembered for seven days instead of thirty minutes #5145

Closed

Description

@jakildev

Area: scripts/fleet/fleet_decline.py, scripts/fleet/tests/test_fleet_task_class.py
Model: sonnet
Blocked by: (none)

Context

A decline that reports a sleeping display is remembered for seven days instead of thirty minutes, so the target is not dispatched again after the display wakes.

fleet_decline.reason_class reads a decline as host (30-minute memory) only when its text matches DECLINE_HOST_RE: RESULT=NO-DISPLAY, 0 display monitors, no display and a few more. A decline that quotes the fleet-jobs preflight instead reads as substantive (seven days). Run on master 44955ae9f:

Decline text (as written by the worker) reason_class
… render-verify job 20261116T143033Z-render-verify-746fb0 found one online CoreGraphics display but awake=0, so engine monitor discovery would see zero; exited 69 before launch. (PR #5076) substantive
… job 20261116T153050Z-render-verify-3f76d6 exited 69, CoreGraphics online=1 awake=0 NSScreen=1 (engine discovers 0 monitors). (#4955) substantive
ir-run: RESULT=NO-DISPLAY exe=IRShapeDebug exit=69 host

Fired incident: the decline record for PR #5076's feedback target is dated 2026-11-16T14:31:06Z, and the dispatcher log shows no dispatch of that target after 14:40Z that day, 31 hours and counting. PR #5100 is parked behind it. #4955 stayed parked for the same reading until its thread was updated by hand.

scripts/fleet/fleet-jobs writes the preflight message as <n> online CoreGraphics display(s), awake=<n>, NSScreen=<n>, and scripts/verify_common.py writes CoreGraphics online=<n> awake=<n> NSScreen=<n>. Neither form is in the pattern.

Acceptance criteria

  • reason_class returns host for the two substantive rows above, for the fleet-jobs preflight message and for the verify_common.py suffix, each with awake=0 (new cases in scripts/fleet/tests/test_fleet_task_class.py; python3 scripts/fleet/tests/test_fleet_task_class.py passes).
  • The same messages with awake=1 and at least one screen do not read as host, and a decline with no display reading still reads substantive (the same suite).
  • Positive control: fleet-positive-control scripts/fleet/tests/test_fleet_task_class.py <pre-fix-ref> reports MEANINGFUL.

Activity

  1. added
    fleet:agent-approved
    fleet:no-plan
    on Nov 17, 2026
  2. added
    fleet:queued
    fleet:sonnet
    fleet:in-progress
    on Nov 17, 2026
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

    fleet:agent-approvedfleet:claim-mac-pool-6fleet:in-progressfleet:no-planfleet:queuedfleet:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions