Skip to content

[codex] Add governed Claude model profiles#2

Merged
waitdeadai merged 2 commits into
mainfrom
codex/model-profile-flexibility
May 7, 2026
Merged

[codex] Add governed Claude model profiles#2
waitdeadai merged 2 commits into
mainfrom
codex/model-profile-flexibility

Conversation

@waitdeadai
Copy link
Copy Markdown
Owner

What changed

  • Added first-class /opusworkflow --model-profile minimax|opussonnet|sonnet|opus|default|custom routing.
  • Extended /opusminimax artifacts with model_profile and model_route metadata so requested planner/executor models and provider boundaries are explicit.
  • Relaxed artifact-lint only where appropriate so all-Sonnet, all-Opus, default, and custom Anthropic routes validate without MiniMax leakage.
  • Updated the doctor, static smokes, schema, fixture coverage, generated capability map, README, CLAUDE/AGENTS guidance, and route skills.

Why

The harness already supported Claude Code model switching at the product level, but the local governance scripts made the model path too rigid. This lets operators intentionally choose Sonnet, Opus, Opus+Sonnet, account default, or custom model IDs without changing the default cost-optimized MiniMax route or weakening runtime identity honesty.

Impact

  • Default behavior remains model_profile=minimax with MiniMax execution.
  • Anthropic-only profiles reject MiniMax base URLs and MiniMax executor model IDs.
  • Static artifacts prove request shape only; live Opus/Sonnet identity still requires /status, sentinel, or equivalent runtime evidence.
  • Existing --executor-provider claude-sonnet usage remains backward-compatible as the opussonnet profile.

Verification

  • bash -n scripts/opusworkflow.sh scripts/opusminimax.sh scripts/opusminimax-doctor.sh scripts/artifact-lint.sh scripts/opusworkflow-smoke.sh scripts/opussonnetworkflow.sh scripts/test-harness.sh
  • python3 -m json.tool schemas/opusminimax-run.schema.json
  • python3 -m json.tool .taste/fixtures/artifact-lint/green/valid-sonnet-model-profile-run.json
  • bash scripts/opusworkflow-smoke.sh
  • bash scripts/artifact-lint.sh --fixtures
  • bash scripts/security-smoke.sh
  • bash scripts/harness-capability-map.sh --write
  • bash scripts/harness-capability-map.sh --check --json
  • bash scripts/harness-eval.sh --json
  • env HARNESS_STATIC_CI=1 bash scripts/test-harness.sh
  • bash scripts/release-check.sh --static-only
  • git diff --check

@waitdeadai waitdeadai marked this pull request as ready for review May 7, 2026 20:43
@waitdeadai waitdeadai merged commit 8bd6252 into main May 7, 2026
1 check passed
@waitdeadai waitdeadai deleted the codex/model-profile-flexibility branch May 7, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant