905 B
905 B
Prime Model Policy (v1)
Core Principles
- Prime uses OAuth only for model providers.
- API keys are forbidden for runtime model access.
- Two-brain model is mandatory for engineering workflows:
- OpenAI brain: planning, architecture, decomposition, risk analysis, review strategy.
- Anthropic brain: implementation/coding execution.
Routing Rules
- Planning/design/review tasks route to OpenAI.
- Coding/change-implementation tasks route to Anthropic.
- If implementation fails validation, route back to OpenAI for revised plan.
- If a provider is unavailable, Prime queues task + alerts operator unless degrade mode is explicitly enabled.
Security Rules
- No model API tokens in repository, env files, logs, or chat history.
- Startup preflight must fail if API-key env vars are detected.
- OAuth session state must be handled by provider/runtime auth storage only.