list-ready-tasks: labels=standing-drive query fans out over EVERY open issue when the label does not exist — lister blows the 30s prompt-expansion budget #115

Closed
opened 2026-08-28 20:32:02 +00:00 by ben · 2 comments
Owner

Observed (matou-app, hotfixed locally in matou-app 89792e0, 2026-08-27)

Forgejo IGNORES an unknown labels= filter rather than matching nothing. In a repo with no standing-drive label, the drive-blocker ordering query in list-ready-tasks.sh returns EVERY open issue (23/23 on matou-app), and the loop then makes one SERIAL /dependencies call per open issue — 25.5s of a 29.7s lister — so the claim expansion REDs with PromptExpansionTimeoutError (matou-app run 7707) before CLAIM_NEXT_BUDGET is ever consulted. It also promotes any ready ticket that blocks ANY open issue as a "drive blocker".

Fix

Upstream matou-apps hotfix: re-filter the response CLIENT-side on the standing-drivelabel (zero extra calls,blocker_numsstays[], emit order byte-identical to the documented fallback) and bound the ordering loop by wall clock (LIST_READY_DRIVE_BUDGET, default 8s). Ratchet with an offline case: an unlabelled drives response must issue no /dependencies` calls.

Found while re-vendoring matou-app to 79c92ed: its main fails its own drift check at the old pin BECAUSE of this hotfix, so the factory must carry it before matou-app can bump.

## Observed (matou-app, hotfixed locally in matou-app `89792e0`, 2026-08-27) Forgejo IGNORES an unknown `labels=` filter rather than matching nothing. In a repo with no `standing-drive` label, the drive-blocker ordering query in `list-ready-tasks.sh` returns EVERY open issue (23/23 on matou-app), and the loop then makes one SERIAL `/dependencies` call per open issue — 25.5s of a 29.7s lister — so the claim expansion REDs with `PromptExpansionTimeoutError` (matou-app run 7707) before `CLAIM_NEXT_BUDGET` is ever consulted. It also promotes any ready ticket that blocks ANY open issue as a "drive blocker". ## Fix Upstream matou-app`s hotfix: re-filter the response CLIENT-side on the `standing-drive` label (zero extra calls, `blocker_nums` stays `[]`, emit order byte-identical to the documented fallback) and bound the ordering loop by wall clock (`LIST_READY_DRIVE_BUDGET`, default 8s). Ratchet with an offline case: an unlabelled drives response must issue no `/dependencies` calls. Found while re-vendoring matou-app to `79c92ed`: its `main` fails its own drift check at the old pin BECAUSE of this hotfix, so the factory must carry it before matou-app can bump.
Author
Owner

Landed in d56ad59 on main — matou-app's hotfix 89792e0 upstreamed verbatim (client-side standing-drive re-filter + LIST_READY_DRIVE_BUDGET bound). Proof: tests/list-ready-tasks-test.sh case 10c — an unlabelled drives response issues no drive-candidate /dependencies read; verified the case FAILS with the filter removed. Full offline suite green. GOTCHAS 39. matou-app's bump PR follows at this sha.

Landed in `d56ad59` on main — matou-app's hotfix `89792e0` upstreamed verbatim (client-side `standing-drive` re-filter + `LIST_READY_DRIVE_BUDGET` bound). Proof: `tests/list-ready-tasks-test.sh` case 10c — an unlabelled drives response issues no drive-candidate `/dependencies` read; verified the case FAILS with the filter removed. Full offline suite green. GOTCHAS 39. matou-app's bump PR follows at this sha.
ben 2026-08-28 21:03:23 +00:00
Author
Owner

Correction: the swarm landed #113 on main in between, so the actual landing sha is ad4bb4e (rebased; the hazard is GOTCHAS 40, #113 took 39).

Correction: the swarm landed #113 on main in between, so the actual landing sha is `ad4bb4e` (rebased; the hazard is GOTCHAS **40**, #113 took 39).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#115
No description provided.