Title: Design+build: effort-aware seen/bench keys with learned granularity promotion · Issue #10367 · developing-today/code · GitHub
Open Graph Title: Design+build: effort-aware seen/bench keys with learned granularity promotion · Issue #10367 · developing-today/code
X Title: Design+build: effort-aware seen/bench keys with learned granularity promotion · Issue #10367 · developing-today/code
Description: Design+build: effort-aware seen/bench keys with learned granularity promotion Filed from Drew's design direction, 2026-11-14. Companion to the pool & effort design mill (#9399) and the retry classification work (fork PR #2440). Where we ...
Open Graph Description: Design+build: effort-aware seen/bench keys with learned granularity promotion Filed from Drew's design direction, 2026-11-14. Companion to the pool & effort design mill (#9399) and the retry classi...
X Description: Design+build: effort-aware seen/bench keys with learned granularity promotion Filed from Drew's design direction, 2026-11-14. Companion to the pool & effort design mill (#9399) and the retr...
Opengraph URL: https://github.com/developing-today/code/issues/10367
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design+build: effort-aware seen/bench keys with learned granularity promotion","articleBody":"# Design+build: effort-aware seen/bench keys with learned granularity promotion\n\nFiled from Drew's design direction, 2026-11-14. Companion to the pool & effort design mill (#9399) and the retry classification work (fork PR #2440).\n\n## Where we are\n\nThe route resolver's \"seen\" identity is **provider door + model, with no effort component** (fork `packages/core/src/model-resolver.ts`: `cascadeRefKey`; `model-route.ts`: `key()`). Effort lives only in the separate `variant` field and in `route_attempt` rows. Consequences:\n\n- Within one call, a failure of Flash at one effort marks Flash at **every** effort for the rest of that call's walk.\n- The cross-call bench (cooldown records restored across restarts) is keyed the same coarse way.\n\n## The gap Drew named\n\nEffort is becoming a real axis of the system: pool effort pins (`pool#effort`), leg-level effort remaps, and the per-effort pool variation designed on #9399. Some failure modes ARE effort-specific:\n\n- a door that rejects one effort's request shape (reasoning parameters it doesn't accept) but serves another effort fine;\n- timeouts that only bite at high effort, where generations run long;\n- doors with per-effort caps.\n\nWith the coarse key, those cases make the walk skip legs that would have worked — missed options that grow as remapping spreads.\n\nThe opposite risk is the one that burned the fleet on 2026-11-14: most real failures (quota walls, auth, account disabled) are **effort-independent**, and benching per-effort naively would multiply probes into dead doors by the number of efforts.\n\n## Design\n\n**1. Within-call tried set: key = provider / model / effort.** Cheap (the walk is bounded), and it directly fixes the missed-options problem: Flash@xhigh failing on request shape no longer skips Flash@medium reached through another pool in the same call. Route-on-path pruning (cycle safety for the fallback chains) is unchanged.\n\n**2. Cross-call bench: seed granularity by failure class.**\n- Quota / auth / account-disabled / no-route failures are account- or door-level by nature → bench at **model** granularity immediately (all efforts), exactly as today. The current crisis behaviour does not change.\n- Request-shape (400-class), timeout, and 5xx failures may be effort-specific → bench at **effort** granularity.\n\n**3. Learned promotion (Drew's rule).** A tracker over `route_attempt` history (which already records provider, model, variant, outcome, error, credential — no new instrumentation) promotes granularity when the evidence is perfect:\n- **effort → model**: for a given (provider, model), every observed failure window shows all tried efforts failing together (e.g. Luna High down on provider A ⟹ Luna Medium was always down too), over a minimum sample.\n- **model → provider**: for a given provider, failures are never model-discordant — whenever it is down for one model it is down for all (Luna, Haiku, DeepSeek alike) — promote to provider granularity. The existing simultaneity bench (enough models cooling ⇒ whole provider benched) becomes the mechanism this learner feeds, with per-provider evidence instead of one global threshold.\n\n**4. Instant demotion on the first counterexample.** Any success at a finer granularity while a coarser bench stands (e.g. Medium answers while a model-level bench from High's failures is active) drops that key back to the finer granularity and records the event. A \"100% of the time\" claim dies on its first exception, by construction.\n\n**5. Credentials stay separate.** Per-credential health (`provider/model#credentialID`) is unchanged; the model-level bench already applies regardless of which account served the attempt.\n\n## Acceptance\n\n- Test: a request-shape failure at one effort does not skip the same model at another effort within one call's walk (across pools and fallback chains).\n- Test: a quota/auth failure benches all efforts of that model immediately (today's behaviour preserved).\n- Test: promotion effort→model and model→provider from recorded `route_attempt` fixtures; demotion on the first discordant success.\n- The granularity state per key (level + evidence count) is inspectable somewhere an operator can read it (route-health surface or DB table), not buried in logs.\n\n## References\n\n- #9399 — pool & effort design mill (endpoint defaults + per-effort variation; this composes above it)\n- Fork PR #2440 — neverRetry classification, deadLeg guard (the refusal half goes live with the #10322 switch)\n- #8086 — per-instance quota benches from the quota record\n- #10306 — provider kind + modality marking (adjacent routing-metadata work)\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-14T19:52:17Z","url":"https://github.com/developing-today/code/issues/10367"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:996ccbcc-7868-64b1-cff2-dd59d173b100 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C00E:1FD7D4:873AE2:B4A4A6:6B063522 |
| html-safe-nonce | 40ea25b3fb2cdc0ec92883285f0d02286ce1b5f3e150e5dbe4dff467950ff554 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDBFOjFGRDdENDo4NzNBRTI6QjRBNEE2OjZCMDYzNTIyIiwidmlzaXRvcl9pZCI6Ijc0MjU0NjMzOTgxNDM3Njc4NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a679ef477b632544be35380e6bc3b3d9990aa416f47e2cda68e176e2d4cf45f8 |
| hovercard-subject-tag | issue:6395185134 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/10367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3144c575a71f81f32b396b0b4e8e2c4870a3b44c1e087fe636b685aed078fd43/developing-today/code/issues/10367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3144c575a71f81f32b396b0b4e8e2c4870a3b44c1e087fe636b685aed078fd43/developing-today/code/issues/10367 |
| og:image:alt | Design+build: effort-aware seen/bench keys with learned granularity promotion Filed from Drew's design direction, 2026-11-14. Companion to the pool & effort design mill (#9399) and the retry classi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width