Files
prime-core/policies/MODEL_POLICY.md
T

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

  1. Planning/design/review tasks route to OpenAI.
  2. Coding/change-implementation tasks route to Anthropic.
  3. If implementation fails validation, route back to OpenAI for revised plan.
  4. 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.