purushah opened a new issue, #1424: URL: https://github.com/apache/flink-agents/issues/1424
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description Follow-up to #1363 (quality-triggered escalation). Reported by @sangkyoonnam in the review. With tiers and fallback on, fallback walks the candidate list and escalation walks the tiers. Neither knows what the other already tried in the request. So a tier that failed can be called again. **Repro 1.** Tiers `small, big`, `defaultModel("big")`, fallback on, `big` is down. The calls are `big, small, big`. `big` fails after its retries. Fallback gets an answer from `small`. The verifier rejects it, and escalation sends the request to `big` again. `big` spends its retries a second time and the request fails with its error. **Repro 2.** Tiers `small, medium, big`, `defaultModel("medium")`, fallback on, `medium` is down. The request does reach `big`, but only after a second round of retries on `medium`. #1363 documents this order in the interplay table of the Model Routing page. This issue is about changing it. **Options.** 1. A tier that failed in the request is not called again. Escalation goes to the next higher tier that was not tried. If there is none, the current answer is kept. This is the smallest change. It lives in `ModelRoutingExecutor` and `EscalationEvaluator`. 2. With tiers declared, fallback follows the tiers. A failed tier goes up to the next tier, not back to the top of the candidate list, and is not called again. Candidates outside the tiers stay fallback only. Routers without tiers keep today's order. 3. Tiers become exclusive with `strategy(...)` and `defaultModel(...)`. Every request starts on the first tier, so a higher tier cannot fail before a lower one answers. Strict first, relax later. I lean to option 1 as the first step. **Open points for 1 and 2.** - Top tier fails: fail the request, or use a candidate outside the tiers as a last resort. - A lower tier's answer is kept because no higher tier is reachable: does the verifier still run so the verdict is recorded, or is it skipped as for the last tier today. **Tests.** sangkyoonnam has a test for the two-tier case. The three-tier case should be covered too. Related: #1328, #1363. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
