Repository navigation
Commit 7aa64bb
feat(cursor): derive the picker seed from the capability table and label every row (#3222)
* docs(cursor): diff-level roadmap for unified Cursor model identity
One published row per Cursor base with thinking/fast/1M as dimensions, a Codex
Fast toggle that reaches Cursor's fast variant, and a global switch that exposes
-fast identities to clients without a toggle.
Docs-only work-phase (wp1) of a four-phase unit. Contains 000_plan (work-phase
map + measured current state + RUN verifier table), 001_current_state (why the
picker never reads CURSOR_CAPABILITIES, where Codex Fast dies for Cursor),
002_audit_round1 (10 blockers from two review lanes, all folded), and diff-level
decade docs 010/020/030 for the three implementation phases.
Notable audit findings folded before any code: provider-level supportsServiceTier
short-circuits before the per-model map; tierLogForRunTurn runs BEFORE runTurn so
telemetry must recompute the variant rather than rebuild a non-pure request;
usage/log.ts and usage/cost.ts read wireKind by string comparison and are
invisible to tsc.
Refs devlog/_plan/260902_cursor_unified_identity
* feat(cursor): derive the picker seed from the capability table and label every row
CURSOR_STATIC_MODELS was a hand-maintained list that drifted from
CURSOR_CAPABILITIES: cursorUmbrellaRows() existed but only tests called it, so
collapsing a variant changed routing without changing what Codex listed. The
seed now derives from that function plus two declared lists for ids with no
capability record, so the two can no longer disagree.
Cursor rows also showed raw slugs (cursor/kimi-k3) because routedDisplayName
passes a routed slug through unchanged and nothing carried Cursor's labels into
the provider config. ProviderRegistryEntry had no modelDisplayNames field at all;
the consumer (configuredModelDisplayName) already existed. Wire it through
providerConfigSeed and enrichProviderFromRegistry, the latter per-model so an
existing install picks up labels without losing an operator rename.
The row set is unchanged (54 ids, none added or dropped) - this is a refactor of
where rows come from, plus labels and three corrected windows (gemini 1048576,
gpt-5.5-extra 200000) where the capability table was approximating the seed.
Fixes the frozen row-count assertion that went red when claude-fable-5-1 was
seeded in 5fc7d07: it now derives the expected count instead of hard-coding it.
Refs devlog/_plan/260902_cursor_unified_identity/010_wp2_umbrella_seed.md
* docs(cursor): park wp2/wp4 residuals in a numbered doc
The roadmap named residuals in prose with no home (audit B14): effort ladders on
a listed fast id, claude-4-sonnet-1m staying a real row, fastMode carrying two
meanings, and the five pre-existing test failures that reproduce on a clean
stash of this branch.
Each records what would change the decision, so a later cycle does not rediscover
them as new findings.
Refs devlog/_plan/260902_cursor_unified_identity/040_residuals.md
* docs(cursor): record the measured -fast round-trip that proves audit B11
The reviewer's claim that a bare -fast suffix picks the wrong dimension was not
theoretical. Measured: claude-opus-5-fast resolves to claude-opus-5-high-fast
(clamped, and in the quarantined regular family) while the Codex toggle would
send claude-opus-5-thinking-max-fast. The mirror case is just as wrong -grok-4.6-thinking-fast degrades to a bare grok-4.6 with no effort and no fast
marker, because grok has no thinkingFast spec.
Either fixed suffix is wrong for half the table, which is why cursorFastIdFor
composes from the base's defaultVariant.
---------
Co-authored-by: jun <[email protected]>1 parent 2cb5921 commit 7aa64bb
13 files changed
Lines changed: 1651 additions & 101 deletions
File tree
- devlog/_plan/260902_cursor_unified_identity
- src
- adapters/cursor
- providers
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments