What
Retires the two pre-rename OpenAI door definitions from .opencode/opencode.jsonc:
"openai.main" (instanceOf: "openai", "OpenAI Main (drewrypope)")
"openai.alternate" (instanceOf: "openai", "OpenAI Alternate (Student - popesdrew)")
Both have been unseated since the #8163 rename (2026-11-10) seated the pool on _openai.main / _openai.alt, and were kept until now as the documented revert path. Each is replaced with a tombstone comment in the house style of the "openai-codex" retirement note above them. One present-tense sentence in the _openai.alt provenance block ("keeps its definition above") is updated to match; all other dated provenance comments are untouched history. The _openai.* credential rows, seats, weights, and chain membership are not touched.
Evidence that nothing references them
Parsed-config walk (the repo's own parseJsonc from bin/provider-catalog-sync.mjs, comments stripped, whole object tree walked for keys and string values), before this change:
parsed-config bare openai.main/alternate occurrences: {"openai.alternate":1,"openai.main":1}
KEY HIT at $.provider => openai.alternate
KEY HIT at $.provider => openai.main
provider keys containing openai: [ 'openai.alternate', '_openai.alt', 'openai.main', '_openai.main' ]
Exactly two occurrences in the entire effective config — the definitions themselves. No route pool, chain, tier, or agent string references either id in any form (bare, openai.main/<model>, or #effort spellings all contain the same literal the walk matches).
Corroborating reads:
- Raw grep of
.opencode/ (all jsonc/json/md/ts, .bak files excluded): the only non-comment hits are the two definition keys.
- The runtime overlay (
~/.local/state/opencode/opencode-runtime.jsonc): no bare openai.main/openai.alternate occurrences.
- The live fork binary's
opencode quota --json enumeration contains no openai.main/openai.alternate providerId — the doors answer as _openai.main/_openai.alt (plus the folded _openai answer).
- Repo-wide code grep: remaining hits are comments, docstrings, and dated prose notes only. One code-shaped hit was evaluated: the
'openai.alternate' entry in bin/provider-catalog-sync.mjs's PROVIDER_SOURCES table is a source classification looked up by config provider id (the tool iterates the config's providers, line 644/646) — for a provider absent from the config it is never consulted, exactly like the dormant fixture-proxy entry. Left in place deliberately; removing it is not needed for this retirement and would widen the diff.
After this change, the same parsed-config walk reports zero occurrences, and provider keys are [ '_openai.alt', '_openai.main' ].
Validation (the opencode-config-guard set, run on this branch)
node --test bin/check-opencode-metered-providers.test.mjs -> 18 pass, 0 fail
node bin/check-opencode-metered-providers.mjs .opencode/opencode.jsonc -> passed
node --test bin/check-opencode-go-seating.test.mjs -> 14 pass, 0 fail
node --test bin/provider-catalog-sync.test.mjs bin/provider-catalog-snapshot.test.mjs -> 48 pass, 0 fail
node --test bin/check-opencode-route-rules.test.mjs -> 18 pass, 0 fail
node bin/check-opencode-route-rules.mjs .opencode/opencode.jsonc -> passed (all four tiers)
The route-rules check is the load-bearing one here: it resolves every tier's seats against the tracked config, so a route still pointing at a removed provider would fail it.
Revert path
Revert this PR (or git revert of its merge commit) restores both definitions verbatim — they are two bare instanceOf blocks with no other state. The _openai.* doors serve throughout either way; nothing needs reseeding, since the provider id is the credential key and the _openai.* credentials are separate rows that this PR does not touch.
Part of the #8653 rename fallout (the retirement half of late-night pick #3). Config deploys ride the normal generation path; no restart here.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.