instar 1.3.222 → 1.3.223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/frameworkSessionLaunch.d.ts.map +1 -1
- package/dist/core/frameworkSessionLaunch.js +7 -4
- package/dist/core/frameworkSessionLaunch.js.map +1 -1
- package/dist/providers/adapters/openai-codex/models.d.ts.map +1 -1
- package/dist/providers/adapters/openai-codex/models.js +46 -24
- package/dist/providers/adapters/openai-codex/models.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/upgrades/1.3.223.md +56 -0
- package/upgrades/codex-fast-model-gpt52-retired.eli16.md +26 -0
- package/upgrades/side-effects/codex-fast-model-gpt52-retired.md +59 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworkSessionLaunch.d.ts","sourceRoot":"","sources":["../../src/core/frameworkSessionLaunch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAO9E;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,qBAAqB,EAChC,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"frameworkSessionLaunch.d.ts","sourceRoot":"","sources":["../../src/core/frameworkSessionLaunch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAO9E;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,qBAA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AE,WAAW,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;IAC1E;;;;;;;;OAQG;IACH,kBAAkB,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC3C;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACzD;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,kFAAkF;IAClF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAqHD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,qBAAqB,EAChC,OAAO,EAAE,qBAAqB,GAC7B,kBAAkB,CAMpB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,SAAS,EAAE,qBAAqB,GAAG,MAAM,CAAC;IAC1C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,GAAG,MAAM,EAAE,CAUX"}
|
|
@@ -47,11 +47,14 @@ export function resolveModelForFramework(framework, modelOrTier) {
|
|
|
47
47
|
// sensible Codex equivalent (haiku→fast, sonnet→balanced,
|
|
48
48
|
// opus→capable) so an unported call site doesn't immediately
|
|
49
49
|
// crash for a Codex agent.
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
50
|
+
// Light/medium/heavy mapping. NOTE (2026-06-03): OpenAI retired gpt-5.2 from
|
|
51
|
+
// the ChatGPT-account Codex surface (it now 400s "not supported … with a
|
|
52
|
+
// ChatGPT account"), so the `fast` tier moved off it onto the cheapest model
|
|
53
|
+
// still accepted — gpt-5.4-mini (== balanced). Keep this in lockstep with
|
|
54
|
+
// src/providers/adapters/openai-codex/models.ts (the single source of the
|
|
55
|
+
// full rationale + the drift-resilience follow-up).
|
|
53
56
|
if (key === 'fast' || key === 'haiku')
|
|
54
|
-
return 'gpt-5.
|
|
57
|
+
return 'gpt-5.4-mini'; // light tier — gpt-5.2 retired 2026-06-03
|
|
55
58
|
if (key === 'balanced' || key === 'sonnet')
|
|
56
59
|
return 'gpt-5.4-mini'; // medium — cheapest reasoning
|
|
57
60
|
if (key === 'capable' || key === 'opus')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworkSessionLaunch.js","sourceRoot":"","sources":["../../src/core/frameworkSessionLaunch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EACL,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,4CAA4C,CAAC;AAWpD;;;;;;;;;GASG;AACH,MAAM,UAAU,wBAAwB,CACtC,SAAgC,EAChC,WAA+B;IAE/B,IAAI,CAAC,WAAW;QAAE,OAAO,SAAS,CAAC;IACnC,MAAM,GAAG,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC;IAEtC,IAAI,SAAS,KAAK,aAAa,EAAE,CAAC;QAChC,iEAAiE;QACjE,kEAAkE;QAClE,8DAA8D;QAC9D,IAAI,GAAG,KAAK,MAAM;YAAE,OAAO,OAAO,CAAC;QACnC,IAAI,GAAG,KAAK,UAAU;YAAE,OAAO,QAAQ,CAAC;QACxC,IAAI,GAAG,KAAK,SAAS;YAAE,OAAO,MAAM,CAAC;QACrC,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,IAAI,SAAS,KAAK,WAAW,EAAE,CAAC;QAC9B,iEAAiE;QACjE,+DAA+D;QAC/D,4DAA4D;QAC5D,0DAA0D;QAC1D,6DAA6D;QAC7D,2BAA2B;QAC3B,yEAAyE;QACzE,0EAA0E;QAC1E,
|
|
1
|
+
{"version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
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/providers/adapters/openai-codex/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/providers/adapters/openai-codex/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAuGhD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAMvF"}
|
|
@@ -28,31 +28,47 @@
|
|
|
28
28
|
* Pattern holds: plain gpt-5.x models work; `-codex` suffix is API-only
|
|
29
29
|
* EXCEPT the grandfathered gpt-5.3-codex.
|
|
30
30
|
*
|
|
31
|
+
* ⚠ RE-PROBED AGAIN 2026-06-03 (live, against Justin's ChatGPT subscription;
|
|
32
|
+
* triggered by codey's CommitmentSentinel failing fleet-wide). OpenAI has
|
|
33
|
+
* since RETIRED gpt-5.2 from the ChatGPT-account Codex surface — it now 400s:
|
|
34
|
+
* "The 'gpt-5.2' model is not supported when using Codex with a ChatGPT account."
|
|
35
|
+
* This silently broke EVERY cheap (`fast`-tier) internal codex call — gates,
|
|
36
|
+
* tone-gate, classification, CommitmentSentinel — on every codex agent, since
|
|
37
|
+
* `fast` was hardcoded to gpt-5.2 below.
|
|
38
|
+
* ✅ still working 2026-06-03: gpt-5.4, gpt-5.4-mini (both replied to a trivial probe)
|
|
39
|
+
* ❌ now rejected 2026-06-03: gpt-5.2 (the change since 2026-05-23)
|
|
40
|
+
* gpt-5.2 was the ONLY non-reasoning model. With it gone there is no longer a
|
|
41
|
+
* cheap non-reasoning option, so `fast` is moved to the cheapest model still
|
|
42
|
+
* accepted — gpt-5.4-mini (already the `balanced` choice). Consequence: `fast`
|
|
43
|
+
* now equals `balanced`, and cheap-call token burn rises (a reasoning model
|
|
44
|
+
* burns ~50–70x more than the old gpt-5.2 on a trivial prompt). This is an
|
|
45
|
+
* unavoidable cost regression — a working model beats a 400-ing one — but it
|
|
46
|
+
* is worth surfacing for the codex rate-limit picture (cf the self-inflicted
|
|
47
|
+
* cheap-call 429 volume). The structural fix (validate the resolved model
|
|
48
|
+
* against a known-good set + auto-fall-back on a "not supported" 400, so the
|
|
49
|
+
* NEXT retirement self-heals instead of breaking the fleet) is a follow-up —
|
|
50
|
+
* see the Drift-risk note below; this change just stops the active bleeding.
|
|
51
|
+
*
|
|
31
52
|
* TOKEN-BURN observation (same trivial "reply OK" prompt, 2026-05-23):
|
|
32
53
|
* gpt-5.2 = 103 tokens · gpt-5.3-codex = 5,574 · gpt-5.5 = 7,399.
|
|
33
54
|
* The reasoning models (5.3-codex, 5.5) burn ~50-70x more than gpt-5.2
|
|
34
|
-
* even on a trivial prompt (reasoning overhead).
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* torch quota. The reasoning burn is only worth it for real session work.
|
|
55
|
+
* even on a trivial prompt (reasoning overhead). gpt-5.2 was the cheap
|
|
56
|
+
* non-reasoning workhorse for the `fast` tier — now retired (see the
|
|
57
|
+
* 2026-06-03 note above), so the cost advantage is gone fleet-wide.
|
|
38
58
|
*
|
|
39
59
|
* Default tier choices below favor the subscription path. The light/medium/
|
|
40
60
|
* heavy mapping was confirmed by Justin on 2026-05-23 after deep research into
|
|
41
61
|
* how the ChatGPT subscription meters usage (token-weighted credits in a 5h +
|
|
42
62
|
* weekly window — so token-burn IS the right metric, not just an API proxy):
|
|
43
|
-
* - fast: gpt-5.
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* reasoning model and loses the non-reasoning cost advantage.)
|
|
63
|
+
* - fast: gpt-5.4-mini (was gpt-5.2 until its 2026-06-03 retirement; now
|
|
64
|
+
* the cheapest model still accepted on the ChatGPT account. NOTE:
|
|
65
|
+
* this is a *reasoning* model — the old non-reasoning cheap path
|
|
66
|
+
* is gone, so fast == balanced until a cheaper working model
|
|
67
|
+
* appears or the drift-resilient fallback lands.)
|
|
49
68
|
* - balanced: gpt-5.4-mini (MEDIUM — the cheapest *reasoning* model; a
|
|
50
69
|
* small worker gear for real-but-light work, e.g. searching a
|
|
51
|
-
* codebase or skimming a file.
|
|
52
|
-
*
|
|
53
|
-
* still emits reasoning tokens on trivial prompts, so it is the
|
|
54
|
-
* WRONG choice for the fast tier. Confirmed working on the
|
|
55
|
-
* ChatGPT subscription, live-tested 2026-05-23.)
|
|
70
|
+
* codebase or skimming a file. Confirmed working on the
|
|
71
|
+
* ChatGPT subscription, live-tested 2026-05-23 and 2026-06-03.)
|
|
56
72
|
* - capable: gpt-5.5 (HEAVY — newest frontier reasoning model + Codex CLI's
|
|
57
73
|
* own default; the main interactive session resolves here.
|
|
58
74
|
* Reserve for hard problems + the user's main chat.)
|
|
@@ -64,22 +80,28 @@
|
|
|
64
80
|
* overhead (see openai/codex#19996), not reasoning — the effort delta only
|
|
65
81
|
* shows on complex tasks. codey's ~/.codex/config.toml sets medium (OpenAI's
|
|
66
82
|
* recommended default); gpt-5.5 also uses fewer reasoning tokens than prior
|
|
67
|
-
* models at the same effort.
|
|
68
|
-
* (gpt-5.2), not turning reasoning down on a heavyweight model.
|
|
83
|
+
* models at the same effort.
|
|
69
84
|
*
|
|
70
85
|
* Callers on the API-key path can override these per-call to access the
|
|
71
86
|
* full model surface (gpt-5-codex, etc.) by passing a raw model name
|
|
72
87
|
* instead of a tier.
|
|
73
88
|
*
|
|
74
|
-
* Drift risk: model availability changes regularly
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
89
|
+
* Drift risk: model availability changes regularly (the gpt-5.2 retirement on
|
|
90
|
+
* 2026-06-03 is the second such break after the 2026-04-14 `-codex` retirement).
|
|
91
|
+
* This map is a Rule-3 surface and the codex event-normalizer canary catches the
|
|
92
|
+
* resulting upstream errors (auth-classified error events), but the authoritative
|
|
93
|
+
* fix — validate the resolved name against a known-good set and auto-fall-back on
|
|
94
|
+
* a "not supported" 400 so a retirement self-heals — belongs in a dedicated
|
|
95
|
+
* canary/fallback. Follow-up (the structural companion to this stop-the-bleeding
|
|
96
|
+
* re-point).
|
|
79
97
|
*/
|
|
80
98
|
const TIER_TO_MODEL = {
|
|
81
|
-
//
|
|
82
|
-
|
|
99
|
+
// fast — cheapest model accepted on the ChatGPT account. Was non-reasoning
|
|
100
|
+
// gpt-5.2 until OpenAI retired it (2026-06-03, see header); gpt-5.2 now 400s
|
|
101
|
+
// and broke every cheap codex call. No non-reasoning option remains, so this
|
|
102
|
+
// is gpt-5.4-mini (== balanced) — a reasoning model, raising cheap-call burn,
|
|
103
|
+
// but a working model beats a rejected one.
|
|
104
|
+
fast: 'gpt-5.4-mini',
|
|
83
105
|
// medium — cheapest reasoning model; everyday light work / worker subagents.
|
|
84
106
|
balanced: 'gpt-5.4-mini',
|
|
85
107
|
// heavy — frontier reasoning model; hard problems + the user's main chat.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/providers/adapters/openai-codex/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/providers/adapters/openai-codex/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,MAAM,aAAa,GAA8B;IAC/C,2EAA2E;IAC3E,6EAA6E;IAC7E,6EAA6E;IAC7E,8EAA8E;IAC9E,4CAA4C;IAC5C,IAAI,EAAE,cAAc;IACpB,6EAA6E;IAC7E,QAAQ,EAAE,cAAc;IACxB,0EAA0E;IAC1E,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,WAA2C;IAC7E,IAAI,CAAC,WAAW;QAAE,OAAO,aAAa,CAAC,QAAQ,CAAC;IAChD,IAAI,WAAW,IAAI,aAAa,EAAE,CAAC;QACjC,OAAO,aAAa,CAAC,WAAwB,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-06-
|
|
5
|
-
"instarVersion": "1.3.
|
|
4
|
+
"generatedAt": "2026-06-03T14:03:12.871Z",
|
|
5
|
+
"instarVersion": "1.3.223",
|
|
6
6
|
"entryCount": 195,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
Re-points the Codex `fast` model tier off the now-retired `gpt-5.2`.
|
|
9
|
+
|
|
10
|
+
**The bug (live, fleet-wide).** As of 2026-06-03 OpenAI retired `gpt-5.2` from the
|
|
11
|
+
ChatGPT-account Codex surface — `codex exec --model gpt-5.2` now returns HTTP 400
|
|
12
|
+
*"The 'gpt-5.2' model is not supported when using Codex with a ChatGPT account."*
|
|
13
|
+
Both Codex model-tier maps hardcoded the `fast`/`haiku` tier to `gpt-5.2`:
|
|
14
|
+
|
|
15
|
+
- `src/providers/adapters/openai-codex/models.ts` (`TIER_TO_MODEL.fast`) — the intel /
|
|
16
|
+
one-shot path (reviewers, sentinels, CommitmentSentinel, tone-gate, classification).
|
|
17
|
+
- `src/core/frameworkSessionLaunch.ts` (`resolveModelForFramework`, codex-cli) — the
|
|
18
|
+
session-launch path.
|
|
19
|
+
|
|
20
|
+
So **every cheap Codex call on every Codex agent was silently failing** — observed live as
|
|
21
|
+
`[CommitmentSentinel] LLM detection failed: … --model gpt-5.2 …` on codey, repeating.
|
|
22
|
+
|
|
23
|
+
**The fix.** Both maps now resolve `fast`/`haiku` to `gpt-5.4-mini` — the cheapest model
|
|
24
|
+
still accepted on the ChatGPT account (empirically re-probed 2026-06-03: `gpt-5.2` rejected,
|
|
25
|
+
`gpt-5.4`/`gpt-5.4-mini` accepted). `gpt-5.4-mini` is already the `balanced` choice, so the
|
|
26
|
+
`fast` and `balanced` tiers now coincide.
|
|
27
|
+
|
|
28
|
+
**Trade-off (intentional, documented).** `gpt-5.2` was the only *non-reasoning* model; with it
|
|
29
|
+
retired there is no cheaper option, so cheap Codex calls now run on a reasoning model (higher
|
|
30
|
+
token burn per call). A working model beats a 400-ing one, but this raises cheap-call quota
|
|
31
|
+
pressure on Codex agents until the structural follow-up lands.
|
|
32
|
+
|
|
33
|
+
**Follow-up (not in this patch).** Drift-resilience: validate the resolved model against a
|
|
34
|
+
known-good set and auto-fall-back on a "not supported" 400, so the *next* model retirement
|
|
35
|
+
self-heals instead of breaking the fleet (the second such break after the 2026-04-14 `-codex`
|
|
36
|
+
retirement). Tracked as a follow-up in `models.ts`.
|
|
37
|
+
|
|
38
|
+
## What to Tell Your User
|
|
39
|
+
|
|
40
|
+
Nothing required — this is an internal Codex reliability fix (agent-only). Codex agents'
|
|
41
|
+
cheap internal calls (commitment detection, tone gating, classification) were failing because
|
|
42
|
+
a model name they used got retired; they now use a supported model again.
|
|
43
|
+
|
|
44
|
+
## Summary of New Capabilities
|
|
45
|
+
|
|
46
|
+
None — bug fix only. No new routes, config, or surfaces.
|
|
47
|
+
|
|
48
|
+
## Evidence
|
|
49
|
+
|
|
50
|
+
- Live failure: codey `logs/server.log` — `[CommitmentSentinel] LLM detection failed: Codex CLI
|
|
51
|
+
error: … codex exec --model gpt-5.2 …` + the codex 400 `invalid_request_error`.
|
|
52
|
+
- Empirical re-probe (2026-06-03, Justin's ChatGPT subscription): `gpt-5.2` → 400 rejected;
|
|
53
|
+
`gpt-5.4` and `gpt-5.4-mini` → accepted.
|
|
54
|
+
- Tests: `tests/unit/codex-model-tier-resolution.test.ts` (new — pins both resolvers + a
|
|
55
|
+
retired-`gpt-5.2` regression guard across all tiers); updated `session-manager-behavioral`
|
|
56
|
+
and `StallTriageNurse` assertions (haiku/fast → `gpt-5.4-mini`).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Codex fast-model fix (gpt-5.2 retired) — ELI16
|
|
2
|
+
|
|
3
|
+
Viewable private artifact:
|
|
4
|
+
https://echo.dawn-tunnel.dev/view/7bc3a2fc-512a-4d1a-b038-725e253145e9?sig=80a2a9cad2adf1d5871bf3611dd6a3b298c07997b7927a730faae64d09193745
|
|
5
|
+
|
|
6
|
+
Every Codex-powered agent makes lots of small, cheap behind-the-scenes AI calls — spotting a
|
|
7
|
+
promise it made, keeping its tone plain, sorting a message. To keep those cheap, they all ran
|
|
8
|
+
on a lightweight model called **gpt-5.2**.
|
|
9
|
+
|
|
10
|
+
On June 3, OpenAI quietly **stopped allowing gpt-5.2** on the ChatGPT-subscription kind of
|
|
11
|
+
account these agents use. From that moment every one of those cheap calls started failing with
|
|
12
|
+
a flat error — so, for example, Codey could no longer detect the commitments it makes, all day,
|
|
13
|
+
silently.
|
|
14
|
+
|
|
15
|
+
The model name was **hardcoded in two places**, so this fix updates both to point at the
|
|
16
|
+
cheapest model that still works on the account: **gpt-5.4-mini**. The agents work again
|
|
17
|
+
immediately.
|
|
18
|
+
|
|
19
|
+
The one catch, called out honestly: gpt-5.2 was the only *non-thinking* (cheapest) model. The
|
|
20
|
+
replacement is a small *thinking* model, which costs more per call. There was no cheaper option
|
|
21
|
+
left, so this trades a bit more usage for actually working. A follow-up will make this self-heal
|
|
22
|
+
— when a model gets retired, the agent will automatically fall back to a working one instead of
|
|
23
|
+
breaking.
|
|
24
|
+
|
|
25
|
+
_Patch fix · branch `echo/codex-fast-model-retire` · found by scanning live fleet logs (the
|
|
26
|
+
see-what-breaks loop) and empirically re-probing which models the account still accepts._
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Side-Effects Review — Codex `fast` tier off retired `gpt-5.2`
|
|
2
|
+
|
|
3
|
+
**Version / slug:** `codex-fast-model-gpt52-retired`
|
|
4
|
+
**Date:** `2026-06-03`
|
|
5
|
+
**Author:** `echo`
|
|
6
|
+
**Second-pass reviewer:** `not required (Tier-1 bug fix — model-string re-point + tests, no decision surface)`
|
|
7
|
+
|
|
8
|
+
## Summary of the change
|
|
9
|
+
|
|
10
|
+
Two Codex model-tier maps hardcoded `fast`/`haiku` → `gpt-5.2`. OpenAI retired `gpt-5.2`
|
|
11
|
+
from the ChatGPT-account Codex surface (live 400 as of 2026-06-03), silently breaking every
|
|
12
|
+
cheap Codex call fleet-wide. Both maps now resolve `fast`/`haiku` → `gpt-5.4-mini` (the
|
|
13
|
+
cheapest model still accepted). A new unit test pins both resolvers and guards the retired
|
|
14
|
+
name. No routes, config, schema, or external surface change.
|
|
15
|
+
|
|
16
|
+
## Decision-point inventory
|
|
17
|
+
|
|
18
|
+
1. **Which replacement model?** Candidates still accepted (empirically probed 2026-06-03):
|
|
19
|
+
`gpt-5.4`, `gpt-5.4-mini`, `gpt-5.5`. Chose `gpt-5.4-mini` — the cheapest (it is already
|
|
20
|
+
the validated `balanced` tier; "mini" < plain `gpt-5.4`). `gpt-5.2` was the only
|
|
21
|
+
*non-reasoning* model, so no zero-reasoning option remains; this is the least-cost working
|
|
22
|
+
choice, not a free one.
|
|
23
|
+
2. **Re-point now vs. build the drift-resilient fallback first?** Chose to ship the re-point
|
|
24
|
+
immediately (it stops an active fleet-wide failure) and leave the structural fallback
|
|
25
|
+
(validate-against-known-good + auto-fall-back on a 400) as a follow-up. Rationale: the
|
|
26
|
+
urgent fix is small and regression-safe; the fallback is a larger, separately-testable
|
|
27
|
+
surface that shouldn't gate the stop-the-bleeding change.
|
|
28
|
+
|
|
29
|
+
## 1. Cost / quota
|
|
30
|
+
|
|
31
|
+
`fast` was the cheap non-reasoning tier (gpt-5.2 ≈ 103 tokens on a trivial prompt vs ~5–7k
|
|
32
|
+
for reasoning models). Moving it to a reasoning model (`gpt-5.4-mini`) raises per-call token
|
|
33
|
+
burn for all cheap Codex calls. This is **unavoidable** (gpt-5.2 is gone) but worth flagging
|
|
34
|
+
against the known self-inflicted cheap-call 429 pressure on the shared ChatGPT account — it
|
|
35
|
+
makes the structural drift-resilient fallback (and any cheap-call-volume reduction) more
|
|
36
|
+
valuable, not less. No way to keep the old cost without the retired model.
|
|
37
|
+
|
|
38
|
+
## 2. Tier collapse
|
|
39
|
+
|
|
40
|
+
`fast` now equals `balanced` (`gpt-5.4-mini`). Callers that distinguished the two tiers by
|
|
41
|
+
cost no longer get a cheaper `fast`. Acceptable: there is no cheaper accepted model. Reverts
|
|
42
|
+
automatically if/when a cheaper non-reasoning model is re-added to the map.
|
|
43
|
+
|
|
44
|
+
## 3. Blast radius / reversibility
|
|
45
|
+
|
|
46
|
+
Two string literals + comment updates + one new test + two updated assertions. Fully
|
|
47
|
+
reversible (revert the two map entries). Claude and Gemini resolvers are untouched
|
|
48
|
+
(framework-scoped branches). No effect on API-key callers passing raw model names (those
|
|
49
|
+
pass through verbatim — unchanged).
|
|
50
|
+
|
|
51
|
+
## 4. Tests
|
|
52
|
+
|
|
53
|
+
- New `tests/unit/codex-model-tier-resolution.test.ts`: both resolvers per tier + a
|
|
54
|
+
retired-`gpt-5.2` regression guard over `fast/balanced/capable/haiku/sonnet/opus` and the
|
|
55
|
+
undefined default.
|
|
56
|
+
- Updated `session-manager-behavioral` (codex session spawn: haiku → `gpt-5.4-mini`) and
|
|
57
|
+
`StallTriageNurse` (legacy haiku alias → `gpt-5.4-mini`).
|
|
58
|
+
- Transcript-fixture tests that contain `model: 'gpt-5.2'` (TokenLedger, CodexRolloutParser)
|
|
59
|
+
are unchanged — they parse historical rollouts and a past session legitimately used gpt-5.2.
|