InfinitySDLC Engineering Guides · 12/12
Reference implementation guide, not a report of a completed client deployment. Code, configurations, metrics and policies are illustrative. Adapt and validate them before production use.
A hybrid enterprise agent stack needs an explicit model-selection layer. Without it, teams hard-code provider choices into prompts and lose control over privacy, cost, latency, capability and fallback behavior.

| Dimension | Examples |
|---|---|
| Data policy | public / internal / confidential / restricted / export-controlled |
| Task | code edit, reasoning, retrieval synthesis, classification, security triage, summarization |
| Agency | read-only, branch write, production proposal, approved production action |
| Capability | tool calling, long context, code execution, structured output, vision |
| Operational | latency SLO, budget, provider availability, local GPU capacity |
| Quality | task-specific eval score, historical success, confidence/uncertainty |
def route(task):
candidates = registry.models_supporting(task.capabilities)
candidates = [m for m in candidates if task.data_class <= m.max_data_class]
candidates = [m for m in candidates if task.agency <= m.max_agency]
scored = [
(m, 0.45*eval_score(m, task.type) + 0.20*latency_score(m)
+ 0.20*cost_score(m) + 0.15*availability_score(m))
for m in candidates
]
return max(scored, key=lambda x: x[1])[0]Policy filtering must happen before quality/cost scoring. If a task is restricted to on-prem inference, a superior cloud model is not a candidate. Model names should not appear in business prompts; agents request capability classes such as “frontier-code” or “local-reasoning,” and the router resolves the current model.
| Tier | Examples | Use |
|---|---|---|
| Frontier coding harness | Claude Code/Claude Agent SDK; OpenAI Codex | Long-horizon coding, repo-wide changes, difficult debugging, architecture synthesis |
| Local high-capacity reasoning | gpt-oss-120b; Mistral Small 4 or evaluated equivalent | Restricted analysis, structured decisions, internal knowledge synthesis |
| Local coding | Devstral Small 2; evaluated Qwen3-Coder-class model | Private code review, test generation, repetitive refactors |
| Local compact | gpt-oss-20b or smaller evaluated model | Classification, extraction, summarization, routing pre-checks |
Treat these as examples, not permanent rankings. Re-run your own golden tasks whenever a model, quantization, runtime or prompt template changes. A 24B model specialized for code can beat a much larger general model on the exact workflows that matter.
model_decision:
task_id: ...
capability_class: frontier-code
selected: codex
reason_codes: ["repo_edit", "eval_best", "data_policy_allows_cloud"]
alternatives_rejected:
- local-code: "golden-task score below threshold for migration refactor"
latency_ms: 84211
cost_usd: 1.72
outcome_score: 0.94Do not build a “Claude agent,” a “Codex agent,” and a “local agent” as three unrelated systems. Build one enterprise agent architecture with provider-specific adapters. Tools, retrieval, identity, approvals, audit and evaluation stay stable while the model/harness can change. That is the difference between a useful pilot and an enterprise platform that can survive the model landscape of the next two years.
ModelRecord { id, provider, endpoint, deployment_version,
capabilities:[code,tools,structured,vision], max_data_class, allowed_regions,
max_context, latency_slo, unit_cost, eval_scores, runtime, health, capacity }A correct route is the cheapest/fastest eligible model that clears quality and policy thresholds, not the model with the highest generic leaderboard score. Include provider outage, GPU saturation, restricted data, oversize context and missing tool capabilities in router evaluations.
Adapted from the September 2026 Enterprise AI Agent Mesh handbook, Article 12 and Blueprint 12. The Enterprise Agent Platform Foundation guide provides the shared identity, MCP, retrieval, sandbox, audit and evaluation design, plus the source handbook’s further-reading list. Validate model, protocol and tool versions before production use.