Repository navigation
Description
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_classreturnshostfor the twosubstantiverows above, for thefleet-jobspreflight message and for theverify_common.pysuffix, each withawake=0(new cases inscripts/fleet/tests/test_fleet_task_class.py;python3 scripts/fleet/tests/test_fleet_task_class.pypasses).- The same messages with
awake=1and at least one screen do not read ashost, and a decline with no display reading still readssubstantive(the same suite). - Positive control:
fleet-positive-control scripts/fleet/tests/test_fleet_task_class.py <pre-fix-ref>reportsMEANINGFUL.
Activity