Pipeline boilerplate word "flaky" routes every guarded dev brief to Opus #9

Closed
opened 2026-11-20 22:48:36 +01:00 by admin · 1 comment
Owner

Every dev agent the ems-agent pipeline manager starts runs on Opus, unverified (20 of 20 router_check events since EV-05, e.g. EV-19 T5).

Cause: HEAVY in hooks/router.ts includes flaky. pipeline-guard appends its standing-constraints block to every pipeline brief, and that block contains: "A rerun only for a named, reproduced flaky test, ...". So heuristic() returns opus: approach still open for every pipeline dev brief, whatever the brief says. The classifier never runs.

Wanted: boilerplate cannot route a brief to Opus. Options: (a) ignore text under a ## Standing constraints heading when matching HEAVY/LIGHT; (b) match HEAVY only in the task part of the brief; (c) narrow flaky/intermittent to task phrasing (e.g. "fix the flaky", "flaky test in"). A test with the guard block appended to a Sonnet-shaped brief must route to the classifier, not Opus.

Short-term workaround on the tooling side: reword that standing-constraints line without "flaky" (ems-dev-tooling).

Every dev agent the ems-agent pipeline manager starts runs on Opus, unverified (20 of 20 router_check events since EV-05, e.g. EV-19 T5). Cause: `HEAVY` in hooks/router.ts includes `flaky`. pipeline-guard appends its standing-constraints block to every pipeline brief, and that block contains: "A rerun only for a named, reproduced flaky test, ...". So `heuristic()` returns `opus: approach still open` for every pipeline dev brief, whatever the brief says. The classifier never runs. Wanted: boilerplate cannot route a brief to Opus. Options: (a) ignore text under a `## Standing constraints` heading when matching HEAVY/LIGHT; (b) match HEAVY only in the task part of the brief; (c) narrow `flaky`/`intermittent` to task phrasing (e.g. "fix the flaky", "flaky test in"). A test with the guard block appended to a Sonnet-shaped brief must route to the classifier, not Opus. Short-term workaround on the tooling side: reword that standing-constraints line without "flaky" (ems-dev-tooling).
Author
Owner

Pipeline side fixed: PIPE-17 (bin/standing-constraints, main d97b62d) and PIPE-19 (templates/brief.md, main e8eb9f1) in admin/ems-dev-tooling remove every HEAVY word from guarded dev text; installed with --opt-only on 2026-11-21 ~09:00. First manager dev spawn after the install (EV-16, T6) was routed to a non-Opus model and went to verification. The router itself needed no change; leaving this open for the owner to close.

Pipeline side fixed: PIPE-17 (bin/standing-constraints, main d97b62d) and PIPE-19 (templates/brief.md, main e8eb9f1) in admin/ems-dev-tooling remove every HEAVY word from guarded dev text; installed with --opt-only on 2026-11-21 ~09:00. First manager dev spawn after the install (EV-16, T6) was routed to a non-Opus model and went to verification. The router itself needed no change; leaving this open for the owner to close.
admin closed this issue 2026-11-24 03:09:08 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/model-router#9