MODEL ROUTER SPEC (ONE WORKFLOW) 1) Workflow definition - Name: ______________________________ - User value (one sentence): ______________________________ - Entry point (API route/UI action/cron): ______________________________ - Output format required (JSON schema / text / action plan): ______________________________ 2) Risk tier + constraints - Risk tier (low / medium / high / regulated): ____________ - Data allowed to leave your network (be explicit): ______________________________ - Redaction/DLP rules (what must be removed or masked): ______________________________ - Retention policy for prompts/outputs/logs: ______________________________ 3) Routing policy (write the rule, not the intention) - Default route: Provider _________ Model _________ - Fallback route: Provider _________ Model _________ Trigger: __________________ - “Hard no” route: conditions that must block the request (budget exceeded, missing consent, PII present, etc.): ______________________________ 4) Budget + rate limits (must be enforceable) - Per-tenant cap: ______________________________ - Per-user cap: ______________________________ - Per-workflow cap (optional): ______________________________ - Behavior on limit: block / degrade to smaller model / queue for later / require human review: ______________________________ 5) Caching plan - What is cached? (RAG retrieved docs / tool outputs / full model output): ______________________________ - Cache key components (must include prompt version + tool schema version): ______________________________ - TTL / invalidation rules: ______________________________ 6) Observability receipts (minimum fields to log) - traceparent propagation: yes/no (if yes, ensure W3C Trace Context) - Log fields: tenant_id, user_id, workflow_name, provider, model, latency_ms, token counts (if available), prompt_version, tool_schema_version, cache_hit, fallback_used, refusal_flag - Where logs live + access controls: ______________________________ 7) Eval gates (treat as QA) - Prompt set location (repo path): ______________________________ - What “pass” means (schema-valid, citations present, tool called, etc.): ______________________________ - CI trigger: on every commit / nightly / before deploy - Regression policy: what fails the build? ______________________________ 8) Human review hooks (only if needed) - When to require review: ______________________________ - Review UI/process owner: ______________________________ Acceptance test (must be runnable) - Given: a fixed set of N prompts in the eval set - When: routed through default + fallback conditions - Then: (a) logs contain required fields, (b) trace is visible end-to-end, (c) budget cap blocks or degrades correctly, (d) output meets schema/quality rules