fix(codex): ignore legacy model-valued MODEL_PROVIDER #47

Merged
hongming merged 1 commits from fix/ignore-legacy-model-provider into main 2026-05-24 02:06:39 +00:00
Owner

What

  • Treat MODEL_PROVIDER as an explicit Codex provider only when it matches the provider registry.
  • Ignore legacy model-id values like gpt-5.5 so subscription auth auto-detection still works.
  • Add regression coverage for the live staging failure shape.

Why

Live tenant smoke showed Codex workspaces booting with MODEL=gpt-5.5 and legacy MODEL_PROVIDER=gpt-5.5. The adapter interpreted that model id as a provider override and returned not_configured, causing A2A 503s.

Brief-falsification log

  • Hypothesis: L4 attachment byte delivery was still broken in Codex.
  • Evidence: live workspace console showed attachment image was never reached; adapter setup failed first with provider='gpt-5.5' not in registry.
  • Updated theory: runtime must tolerate stale controlplane/tenant MODEL_PROVIDER env during provider resolution.

Verification

  • PYTHONPATH=. pytest -q tests/test_modernization_pr1.py tests/test_provider_abstraction.py tests/test_executor.py
  • PYTHONPATH=. python3 -m py_compile adapter.py executor.py provider_config.py

Tier

L4 runtime adapter fix

## What - Treat MODEL_PROVIDER as an explicit Codex provider only when it matches the provider registry. - Ignore legacy model-id values like gpt-5.5 so subscription auth auto-detection still works. - Add regression coverage for the live staging failure shape. ## Why Live tenant smoke showed Codex workspaces booting with MODEL=gpt-5.5 and legacy MODEL_PROVIDER=gpt-5.5. The adapter interpreted that model id as a provider override and returned not_configured, causing A2A 503s. ## Brief-falsification log - Hypothesis: L4 attachment byte delivery was still broken in Codex. - Evidence: live workspace console showed attachment image was never reached; adapter setup failed first with provider='gpt-5.5' not in registry. - Updated theory: runtime must tolerate stale controlplane/tenant MODEL_PROVIDER env during provider resolution. ## Verification - PYTHONPATH=. pytest -q tests/test_modernization_pr1.py tests/test_provider_abstraction.py tests/test_executor.py - PYTHONPATH=. python3 -m py_compile adapter.py executor.py provider_config.py ## Tier L4 runtime adapter fix
hongming added 1 commit 2026-05-24 02:02:45 +00:00
fix(codex): ignore legacy model-valued MODEL_PROVIDER
CI / Template validation (static) (pull_request) Waiting to run
CI / Adapter unit tests (pull_request) Waiting to run
CI / Adapter unit tests (push) Successful in 13s
CI / Template validation (static) (push) Successful in 30s
CI / Template validation (runtime) (push) Successful in 4m44s
CI / T4 tier-4 conformance (live) (push) Successful in 4m45s
CI / validate (push) Successful in 3s
CI / Template validation (runtime) (pull_request) Has been cancelled
CI / T4 tier-4 conformance (live) (pull_request) Has been cancelled
CI / validate (pull_request) Has been cancelled
9244d9541a
infra-runtime-be approved these changes 2026-05-24 02:05:19 +00:00
infra-runtime-be left a comment
Member

Approved focused hotfix. Local parent verification: 60 passed across Codex modernization/provider/executor tests; subagent focused review found no blockers.

Approved focused hotfix. Local parent verification: 60 passed across Codex modernization/provider/executor tests; subagent focused review found no blockers.
core-devops approved these changes 2026-05-24 02:05:20 +00:00
core-devops left a comment
Member

Approved focused hotfix. Local parent verification: 60 passed across Codex modernization/provider/executor tests; subagent focused review found no blockers.

Approved focused hotfix. Local parent verification: 60 passed across Codex modernization/provider/executor tests; subagent focused review found no blockers.
hongming merged commit b07e128acc into main 2026-05-24 02:06:39 +00:00
hongming deleted branch fix/ignore-legacy-model-provider 2026-05-24 02:06:39 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-ai-workspace-template-codex#47