Skip to content

Commit 90668e8

Browse files
authored
feat(catalog): opt-in admit policy for curated selections and honest arrival status (#8511)
* feat(catalog): opt-in admit policy for curated selections and honest arrival status #8236, as decided on the issue: - Arrival status follows the catalog's visibility rules. GET /api/model-discovery and ocx models new-arrivals report enabled, not-selected (the provider's selection leaves it out), auto-disabled (the off policy disabled it, or a row recorded before this change) or disabled (someone else disabled it). New arrival rows record disabledByPolicy, and admitted when admitted. - newModelPolicy gains an opt-in "admit" value (global or per provider, same precedence) that appends each genuine arrival to the provider's custom selectedModels once. A later deselect sticks because the id is already known. admit never widens a preset-derived selection and the default stays "on". - PUT /api/model-discovery and ocx models new-policy accept admit; the dashboard's per-provider new-model policy control gains Admit (all 11 catalogs); the capability registry, generated skill surface and docs are updated. Closes #8236 * fix(catalog): adopt admitted selections live and match arrival state to the picker An admit (#8236) was persisted but never adopted, so the running catalog kept hiding the arrival and a later picker save could drop it. The committed selection additions now move into the live config and its merge baseline together. The drifted read projection copies provider selections so admit never edits the live list unsaved. Arrival status now applies the catalog's Antigravity projection and family disable rules over the provider's cached discovery rows.
1 parent 9336ce8 commit 90668e8

30 files changed

Lines changed: 334 additions & 52 deletions

‎docs-site/src/content/docs/guides/model-routing.md‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,18 @@ Routing and catalog visibility are separate controls:
9292
using a temporary projection; they leave the running configuration and saved choices untouched.
9393
Use `ocx models new-policy off` globally, add `--provider <name>` for an override, and inspect
9494
`ocx models new-arrivals [--json]`. Failed/degraded fetches never change the baseline. Providers
95-
with a non-empty `selectedModels` (including preset mode) are already curated, so this policy is
96-
deliberately inert for them.
95+
with a non-empty `selectedModels` (including preset mode) are already curated, so `on` and `off`
96+
are deliberately inert for them. To keep a hand-picked selection and still get new releases, set
97+
the policy to `admit` (`ocx models new-policy admit --provider <name>`, or **Admit** in the
98+
provider's new-model policy control): each genuine arrival is appended to that provider's custom
99+
`selectedModels` once, saved and applied to the running proxy without a restart. A model you
100+
later deselect stays deselected, and `admit` never widens a preset-derived selection or changes
101+
a provider without a selection.
102+
- `ocx models new-arrivals` and `GET /api/model-discovery` report each recent arrival as
103+
`enabled` (visible in the picker), `not-selected` (the provider's selection leaves it out),
104+
`auto-disabled` (the `off` policy disabled it) or `disabled` (disabled by you). The status uses
105+
the picker's own rules, so an Antigravity model selected through one of its effort tiers reads
106+
`enabled`, and one whose known tiers you all disabled reads `disabled`.
97107
- `provider.disabled: true` removes that provider from catalog discovery. Explicit
98108
`provider/model` requests fail, and `defaultModel` / `models[]` scans skip it.
99109
- Routed catalog rows are cloned from the Codex-native template, so native-only delivery flags are

‎docs-site/src/content/docs/reference/cli/providers-accounts.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ from custom-model `edit`.
12941294
| `selected <provider>` | `--set <id,id...>`, `--clear`, `--json` | Read or replace the provider model allowlist. `--clear` removes the allowlist so every model is offered. |
12951295
| `preset show` | `--provider <name>`, `--json` | Read shipped preset versions and the applied mode, optionally for one provider. |
12961296
| `preset apply <provider>` | `--all`, `--json` | Apply the curated preset; `--all` clears the allowlist. A zero-match preset leaves selection unchanged and reports `fallback: "preset-empty"`. |
1297-
| `new-policy [on\|off]` | `--provider <name>`, `--json` | Read or change exposure policy for newly discovered models; omission of provider selects global policy. A provider read can report `inherit`. |
1297+
| `new-policy [on\|off\|admit]` | `--provider <name>`, `--json` | Read or change exposure policy for newly discovered models; omission of provider selects global policy. `admit` appends arrivals to a custom `selectedModels`. A provider read can report `inherit`. |
12981298
| `new-arrivals` | `--json` | Read recorded recent discoveries by provider; does not force a new upstream discovery. |
12991299
| `context <status\|value <tokens> [--set-all]\|provider <name> on [--value <tokens>]\|provider <name> off\|all <on\|off>>` | `--json` | Read or set the context-window cap, globally or per provider. `value <tokens> --set-all` also re-points every routed provider (like the dashboard toggle); without it the value only becomes the default. `provider ... on --value <tokens>` sets an explicit cap for that provider only (`--value` is valid with `on` only). |
13001300
| `shadow <status\|set> [model\|-]` | `--enabled <on\|off>`, `--json` | Read or set the replacement model for Codex's background helper calls. `-` clears the model. `status` also reports `sourceModels`, the helper slugs the proxy intercepts (default: `gpt-6-luna`, `gpt-5.6-luna`; clients through 0.144.x used `gpt-5.4-mini`, which an explicit `sourceModels` override can restore). |

‎gui/src/i18n/de.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3867,7 +3867,7 @@ export const de: Record<TKey, string> = {
38673867
"dash.codexRemoteHistoryHint": "Provider-Tabellen können vorhandene Threads mit openai-Kennung in manchen mobilen Remote-Listen ausblenden. Der Verlauf wird nicht gelöscht. Der Remote-Client muss alle Provider auflisten; dieser Schalter korrigiert dessen Filter nicht.",
38683868
"models.newPolicyGlobal": "Neue Modelle zunächst deaktivieren", "models.newPolicyProvider": "Richtlinie für neue Modelle",
38693869
"models.fastProvider": "Fast-Modus", "models.fastProviderHint": "Verbraucht Nutzungsguthaben zum doppelten Preis", "models.fastEnabled": "Fast-Modus an", "models.fastDisabled": "Fast-Modus aus", "models.fastSaveFailed": "Fast-Modus konnte nicht gespeichert werden",
3870-
"models.newPolicy_inherit": "Übernehmen", "models.newPolicy_off": "Aus", "models.newPolicy_on": "An", "models.newBadge": "NEU", "models.newCount": "{count} neu, aus",
3870+
"models.newPolicy_inherit": "Übernehmen", "models.newPolicy_off": "Aus", "models.newPolicy_on": "An", "models.newPolicy_admit": "Aufnehmen", "models.newBadge": "NEU", "models.newCount": "{count} neu, aus",
38713871
"models.aliases": "Aliase",
38723872
"models.aliasesTable": "Alias-Tabelle",
38733873
"models.aliasPrompt": "Anbieter-Alias (leer lassen zum Entfernen)",

‎gui/src/i18n/en.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3946,7 +3946,7 @@ export const en = {
39463946

39473947
"models.newPolicyGlobal": "New models start disabled", "models.newPolicyProvider": "New model policy",
39483948
"models.fastProvider": "Fast mode", "models.fastProviderHint": "Uses usage credits at 2x price", "models.fastEnabled": "Fast mode on", "models.fastDisabled": "Fast mode off", "models.fastSaveFailed": "Could not save Fast mode",
3949-
"models.newPolicy_inherit": "Inherit", "models.newPolicy_off": "Off", "models.newPolicy_on": "On",
3949+
"models.newPolicy_inherit": "Inherit", "models.newPolicy_off": "Off", "models.newPolicy_on": "On", "models.newPolicy_admit": "Admit",
39503950
"models.newBadge": "NEW", "models.newCount": "{count} new, off",
39513951
"models.aliases": "Aliases",
39523952
"models.aliasesTable": "Alias table",

‎gui/src/i18n/fr.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3856,7 +3856,7 @@ export const fr: Record<TKey, string> = {
38563856
"lab.layer.task_effectiveness": "Efficacité des tâches",
38573857
"models.newPolicyGlobal": "Désactiver les nouveaux modèles par défaut", "models.newPolicyProvider": "Politique des nouveaux modèles",
38583858
"models.fastProvider": "Mode Fast", "models.fastProviderHint": "Consomme des crédits d'utilisation au double du prix", "models.fastEnabled": "Mode Fast activé", "models.fastDisabled": "Mode Fast désactivé", "models.fastSaveFailed": "Impossible d'enregistrer le mode Fast",
3859-
"models.newPolicy_inherit": "Hériter", "models.newPolicy_off": "Désactivé", "models.newPolicy_on": "Activé", "models.newBadge": "NOUVEAU", "models.newCount": "{count} nouveaux, désactivés",
3859+
"models.newPolicy_inherit": "Hériter", "models.newPolicy_off": "Désactivé", "models.newPolicy_on": "Activé", "models.newPolicy_admit": "Admettre", "models.newBadge": "NOUVEAU", "models.newCount": "{count} nouveaux, désactivés",
38603860
"models.aliases": "Alias",
38613861
"models.aliasesTable": "Table des alias",
38623862
"models.aliasPrompt": "Alias du fournisseur (laisser vide pour effacer)",

‎gui/src/i18n/ja.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3889,7 +3889,7 @@ export const ja: Record<TKey, string> = {
38893889
"dash.codexRemoteHistoryHint": "プロバイダーテーブル方式では、一部のモバイルリモート一覧で既存の openai タグ付きスレッドが表示されない場合があります。履歴は削除されていません。リモートクライアントは全プロバイダーを一覧取得する必要があり、このスイッチはそのフィルターを修正しません。",
38903890
"models.newPolicyGlobal": "新しいモデルを無効で追加", "models.newPolicyProvider": "新しいモデルのポリシー",
38913891
"models.fastProvider": "Fast モード", "models.fastProviderHint": "使用クレジットを 2 倍の料金で消費します", "models.fastEnabled": "Fast モードをオンにしました", "models.fastDisabled": "Fast モードをオフにしました", "models.fastSaveFailed": "Fast モードを保存できませんでした",
3892-
"models.newPolicy_inherit": "継承", "models.newPolicy_off": "オフ", "models.newPolicy_on": "オン", "models.newBadge": "新着", "models.newCount": "新着 {count} 件、オフ",
3892+
"models.newPolicy_inherit": "継承", "models.newPolicy_off": "オフ", "models.newPolicy_on": "オン", "models.newPolicy_admit": "選択に追加", "models.newBadge": "新着", "models.newCount": "新着 {count} 件、オフ",
38933893
"models.aliases": "エイリアス",
38943894
"models.aliasesTable": "エイリアス一覧",
38953895
"models.aliasPrompt": "プロバイダーのエイリアス(空にすると解除)",

‎gui/src/i18n/ko.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3889,7 +3889,7 @@ export const ko: Record<TKey, string> = {
38893889
"dash.codexRemoteHistoryHint": "제공자 테이블 방식에서는 일부 모바일 원격 목록에 기존 openai 태그 스레드가 보이지 않을 수 있습니다. 기록이 삭제된 것은 아닙니다. 원격 클라이언트가 모든 제공자를 조회해야 하며, 이 스위치는 해당 목록 필터를 수정하지 않습니다.",
38903890
"models.newPolicyGlobal": "새 모델을 비활성화 상태로 추가", "models.newPolicyProvider": "새 모델 정책",
38913891
"models.fastProvider": "Fast 모드", "models.fastProviderHint": "사용 크레딧을 2배 가격으로 소모합니다", "models.fastEnabled": "Fast 모드를 켰습니다", "models.fastDisabled": "Fast 모드를 껐습니다", "models.fastSaveFailed": "Fast 모드를 저장하지 못했습니다",
3892-
"models.newPolicy_inherit": "상속", "models.newPolicy_off": "끔", "models.newPolicy_on": "켬", "models.newBadge": "신규", "models.newCount": "신규 {count}개, 꺼짐",
3892+
"models.newPolicy_inherit": "상속", "models.newPolicy_off": "끔", "models.newPolicy_on": "켬", "models.newPolicy_admit": "선택에 추가", "models.newBadge": "신규", "models.newCount": "신규 {count}개, 꺼짐",
38933893
"models.aliases": "별칭",
38943894
"models.aliasesTable": "별칭 표",
38953895
"models.aliasPrompt": "공급자 별칭 (비우면 해제)",

‎gui/src/i18n/pt.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3906,7 +3906,7 @@ export const pt: Record<TKey, string> = {
39063906
"models.fastSaveFailed": "Não foi possível salvar o modo Fast",
39073907
"models.newPolicy_inherit": "Herdar",
39083908
"models.newPolicy_off": "Desativado",
3909-
"models.newPolicy_on": "Ativado",
3909+
"models.newPolicy_on": "Ativado", "models.newPolicy_admit": "Admitir",
39103910
"models.newBadge": "NOVO",
39113911
"models.newCount": "{count} novos, desativados",
39123912
"models.aliases": "Aliases",

‎gui/src/i18n/ru.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3890,7 +3890,7 @@ export const ru: Record<TKey, string> = {
38903890
"dash.codexRemoteHistoryHint": "Таблица провайдеров может скрыть существующие диалоги с меткой openai в некоторых мобильных удалённых списках. История не удаляется. Удалённый клиент должен запрашивать все провайдеры; этот переключатель не исправляет его фильтр.",
38913891
"models.newPolicyGlobal": "Добавлять новые модели выключенными", "models.newPolicyProvider": "Политика новых моделей",
38923892
"models.fastProvider": "Режим Fast", "models.fastProviderHint": "Расходует кредиты использования по двойной цене", "models.fastEnabled": "Режим Fast включён", "models.fastDisabled": "Режим Fast выключен", "models.fastSaveFailed": "Не удалось сохранить режим Fast",
3893-
"models.newPolicy_inherit": "Наследовать", "models.newPolicy_off": "Выкл.", "models.newPolicy_on": "Вкл.", "models.newBadge": "НОВАЯ", "models.newCount": "Новых: {count}, выкл.",
3893+
"models.newPolicy_inherit": "Наследовать", "models.newPolicy_off": "Выкл.", "models.newPolicy_on": "Вкл.", "models.newPolicy_admit": "Добавлять", "models.newBadge": "НОВАЯ", "models.newCount": "Новых: {count}, выкл.",
38943894
"models.aliases": "Псевдонимы",
38953895
"models.aliasesTable": "Таблица псевдонимов",
38963896
"models.aliasPrompt": "Псевдоним провайдера (оставьте пустым, чтобы очистить)",

‎gui/src/i18n/tr.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3890,7 +3890,7 @@ export const tr: Record<TKey, string> = {
38903890
"dash.codexRemoteHistoryHint": "Sağlayıcı tablosuyla yönlendirme, mevcut openai etiketli konuşmaları bazı mobil uzak listelerde gizleyebilir. Geçmiş silinmez. Uzak istemci tüm sağlayıcıları listelemelidir; bu anahtar istemcinin filtresini düzeltmez.",
38913891
"models.newPolicyGlobal": "Yeni modeller devre dışı başlasın", "models.newPolicyProvider": "Yeni model ilkesi",
38923892
"models.fastProvider": "Fast modu", "models.fastProviderHint": "Kullanım kredilerini 2 kat fiyatla harcar", "models.fastEnabled": "Fast modu açık", "models.fastDisabled": "Fast modu kapalı", "models.fastSaveFailed": "Fast modu kaydedilemedi",
3893-
"models.newPolicy_inherit": "Devral", "models.newPolicy_off": "Kapalı", "models.newPolicy_on": "Açık", "models.newBadge": "YENİ", "models.newCount": "{count} yeni, kapalı",
3893+
"models.newPolicy_inherit": "Devral", "models.newPolicy_off": "Kapalı", "models.newPolicy_on": "Açık", "models.newPolicy_admit": "Seçime ekle", "models.newBadge": "YENİ", "models.newCount": "{count} yeni, kapalı",
38943894
"models.aliases": "Takma adlar",
38953895
"models.aliasesTable": "Takma ad tablosu",
38963896
"models.aliasPrompt": "Sağlayıcı takma adı (temizlemek için boş bırakın)",

0 commit comments

Comments
 (0)