fix(secrets): wire dev-department LLM env to MiniMax-M2.7 (Token Plan key) #9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/dev-department-minimax-llm-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Every
workspace.yamlin this subtree pinsruntime: claude-code+model: MiniMax-M2.7, butdev-lead/.env.exampleprovisionedCLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-...(Anthropic-direct OAuth). A freshly-imported dev-department workspace therefore got a Claude OAuth token and a MiniMax model reference that don't agree — the agent couldn't actually call its configured model. (Surfaced during theinternal#211MiniMax-key provisioning: there was noMINIMAX_API_KEYanywhere and the template never asked for one.)Decision (Hongming, 2026-05-10): keep dev-department on MiniMax-M2.7, do NOT migrate to OpenAI. So the fix is to wire the LLM env to MiniMax, not to change
model:.Change
dev-lead/.env.example— replace the# --- LLM ---block with the Claude-Code → MiniMax wiring: plus a comment that the same value lives in the operator SSOT asMINIMAX_API_KEY/MINIMAX_BASE_URL(seeinternal#211), and how to switch back to Anthropic-direct.SECRETS_MATRIX.md— the All workspaces row now states MiniMax-M2.7 (Token Plan key) is the current default LLM, with the SSOT pointer; Anthropic-direct / OpenAI listed as alternatives.No change to
workspace.yamlmodel:lines (they're correct) or the tree structure, so thevalidate-tree.py/validate-org-template.py/check-secrets.pygates are unaffected (sk-cp-...isn't a tracked secret pattern, and the line carries...).Verification
POST https://api.minimax.io/anthropic/v1/messageswith the MiniMax Token Plan key → HTTP 200, liveMiniMax-M2.7response. Key already in the operator SSOT (/etc/molecule-bootstrap/all-credentials.env) asMINIMAX_API_KEY+MINIMAX_BASE_URL.Out of scope / follow-ups
post-rebuild-setup.shthat also hardcodes MiniMax-M2.7 — not found in this repo. If it lives in the parent template (molecule-ai-org-template-molecule-dev) or CP deploy tooling and hardcodes the LLM env, it needs the same update.MINIMAX_API_KEY— operator'sinfisicalCLI isn't project-connected; tracked ininternal#211. Not blocking (mol_secret_v2SSOT-fallback covers it).model: MiniMax-M2.7→ endpoint itself (in which caseMINIMAX_API_KEYalone suffices and theANTHROPIC_*lines are belt-and-suspenders) — the.env.examplecomment notes this.Filed/authored by: orchestrator. Relates to
internal#211.