Repository navigation
Commit a279b9d
docs: record why the Codex model allowlist is static, not discovered
The obvious objection to the allowlist this PR corrects is that any static
list drifts. There is an authoritative per-account endpoint that would let us
derive it instead — `GET /backend-api/codex/models?client_version=<v>` — so I
probed it rather than leave the objection unanswered.
It works, and it accepts our own identity: `originator: altimate` plus our own
User-Agent, no impersonation. Its `visibility: "list"` slugs are exactly the
seven ids in `OAUTH_ALLOWED_MODELS`, which independently confirms the table
built by request-level probing.
It is still unusable as a runtime source of truth. `client_version` is
mandatory and is gated against each model's `minimal_client_version`, today
0.98.0 through 0.144.0 — Codex CLI release numbers, a line we are not on. Our
versions sit below all of them and the gate fails silently: our published
`0.9.7` returns `HTTP 200 {"models":[]}`, and a dev build's `local` returns
`400 {"detail":"Invalid client_version format"}`. Deriving the list would mean
asserting a Codex CLI version we are not, so the list stays static.
Comment-only; no behavior change. Records the endpoint, the corroboration, the
blocker, and the drop-in shape should a legitimate client_version ever exist,
so the next person does not repeat the investigation.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VqnuBDGkh1ZT65Ti7e6DHZ1 parent 71f25bd commit a279b9d
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
39 | 60 | | |
40 | 61 | | |
41 | 62 | | |
| |||
0 commit comments