| Layer | Pick | License |
|---|---|---|
| Trace ingest | LangSmith SDK / AgentEvals | MIT + SaaS |
| Normalization | OpenLLMetry (OTel-native) + custom JSONL | Apache-2.0 |
| Trajectory-first | Future AGI 2026 — 7 metrics on AgentTrajectoryInput | Apache-2.0 |
| Task graph | agentevals strict / unordered / subset / superset matchers | MIT |
| Judge ensemble | Prometheus-2 (7B) + GPT-5-mini + spot humans | mixed |
| Metric suite | τ-bench · τ²-bench · SWE-Bench · GAIA · AgentBench | MIT |
| Pytest layer | DeepEval 50+ metrics · @observe span attach | Apache-2.0 |
| OTel surface | Arize Phoenix OpenInference auto-instrumentation (14+ frameworks) | ELv2 |
| CI alarm | GitHub Actions · Slack webhook · PR comment with failing trajectory | — |
| Storage | Postgres + pgvector + OTEL-compatible TSDB | Postgres |
Future AGI (Apache-2.0, 7 metrics on a single AgentTrajectoryInput) is the OSS default. DeepEval + Phoenix if you live in pytest/OTel. LangSmith if you live in LangGraph. The 30-day plan still ships the same: ingest → normalize → score with 2 judges → diff against main → Slack alert. Don't waste day 31 on a leaderboard.| Layer | Pick | License |
|---|---|---|
| Drop-in API | Mem0 v3 94.4 LongMemEval · 7k tok/query · 91% p95 latency cut | Apache-2.0 |
| Agent runtime | Letta (ex-MemGPT) — core/recall/archival blocks, self-edited | Apache-2.0 |
| Temporal graph | Zep + Graphiti — 94.8% DMR, 90% latency cut, auto contradiction invalidation | Apache-2.0 |
| Vector store | Qdrant / pgvector / Chroma | Apache-2.0 |
| Hyperscaler | AWS Bedrock AgentCore Memory · MS Foundry user-scoped | SaaS |
| Anthropic native | Claude Managed Agents /memory file dir Apr 2026 · Rakuten: −97% errors, −27% cost, −34% latency | SaaS |
| Graph store | Neo4j / FalkorDB | various |
| Working memory | Redis sliding window · 200 tok | BSD |
| Async bus | NATS JetStream (writes never block the response pipeline) | Apache-2.0 |
| Forgetting | CRON · contradiction resolver (Graphiti) · budget per user | — |
| Security | OWASP Agent Memory Guard May 2026 — memory as attack surface | — |
/memory filesystem for Managed Agents lands Rakuten at −97% errors. Compose: Mem0 (vector) + Zep/Graphiti (temporal) + Letta (stateful) + Redis (working) + NATS (async writes) + OWASP guard. Writes async, reads sync, budget per user, forget on a schedule.| Layer | Pick | License |
|---|---|---|
| Policy engine | NeMo Guardrails 0.22.0 May 2026 — Colang 2.0, async IORails | Apache-2.0 |
| Input classifier | LlamaGuard 3 8B + Prompt Armor + Lakera Guard | Llama C-2.0 / SaaS |
| PII redaction | Microsoft Presidio + Bedrock Guardrails PII | MIT |
| Tool-call gate | OPA/Rego on capability tokens (MCP) | Apache-2.0 |
| Circuit breaker | Custom: rate, cost, schema — Anthropic-style kill-path | — |
| Hyperscaler | AWS Bedrock Guardrails · Azure AI Content Safety · Vertex Safety | SaaS |
| Observability | Langfuse hooks · Arize Phoenix · OpenLLMetry | MIT / ELv2 |
| Test | Promptfoo · Garak · PyRIT | MIT |
| Runtime | Menlo Security agent runtime 2026 — in-session containment | SaaS |
| MCP control | MCP Gateways 2026 — unified policy plane | OSS |
AsyncWorkQueue to IORails and made LangChain optional — the proxy intercepts at request time regardless of what the model was trained to do. Menlo Security's 2026 thesis: "autonomy must be earned, observable, and reversible through deterministic guardrails embedded at the execution layer." The 30-day plan: NeMo 0.22 in front of vLLM, LlamaGuard-3 batched 5ms async, OPA/Rego on every tool call, kill-path circuit breaker on cost/schema/rate, and an OTel audit log that exports to your SIEM. Save the content-safety SaaS for things you can't run yourself.| Layer | Pick | License |
|---|---|---|
| Spec ingest | Stoplight Spectral + openapi-schemas/validator | Apache-2.0 |
| Doc → tool | ToolFactory 2025 paper + APILlama (fine-tuned Llama-3) | Apache-2.0 |
| Spec → tool | Google ADK OpenAPIToolset · openapi-llm · Agentify CLI (9 output formats) | Apache-2.0 / MIT |
| Tool surface | openapi-servers reference FastAPI impls (filesystem, git, web) | MIT |
| Auth | Auth0 AI Agents · Composio · Arcade OAuth per-agent scoped | mixed |
| Retry/cache | Tenacity · GPTCache (semantic + exact) | Apache-2.0 |
| PII | Microsoft Presidio + Bedrock Guardrails PII | MIT |
| Expose | MCP server per tool · SDK for Claude / Cursor / VS Code | MIT |
| Registry | Internal: Pydantic + Postgres + OpenAPI doc-as-source-of-truth | MIT |
| Composability | AgentTool (agent-as-tool) — wrap sub-agent as callable | Apache-2.0 |
OpenAPIToolset turned "spec → RestApiTool × N" into a one-liner, and the openapi-servers reference FastAPI impls gave us a turnkey MCP surface. ToolFactory (arXiv 2501.16945) + APILlama is the fallback when all you have is docs. The 30-day plan: lint every spec with Spectral, generate tools with ADK, wrap auth with Auth0/Composio for per-agent scoped tokens, run a PII filter on every request/response, expose as MCP servers with versioned tool-cards. Then the killer feature: AgentTool wraps a whole sub-agent as one tool, so your tool surface scales with your agent graph.| Layer | Pick | License |
|---|---|---|
| Capture | LangSmith traces + thumbs + DSPy feedback | MIT |
| Failure classifier | Prometheus-2 7B (self-host) + DeepEval GEval cluster | Apache-2.0 |
| Self-instruct | DSPy AWS Sagemaker pattern + Promethia | Apache-2.0 |
| DPO / SFT | TRL · Unsloth (2-5x speed, 50-70% mem) · Axolotl · LLaMA Factory | Apache-2.0 |
| RL (large-scale) | OpenRLHF (PPO/DPO/REINFORCE++) · verl GRPO · NeMo Aligner | Apache-2.0 |
| Algorithms 2026 | SFT · DPO · KTO · IPO · ORPO · PPO · GRPO · DAPO · RLVR · REINFORCE++ | — |
| PEFT | LoRA · QLoRA · DoRA · RingAttention | Apache-2.0 |
| Infrastructure | Ray cluster + vLLM 0.22 + DeepSpeed + H100/MI300 | mixed |
| Eval / canary | τ-bench · SWE-Bench · LiveCodeBench · lm-eval-harness | MIT |
| Rollback | Model registry (MLflow / BentoML) + 5% shadow + 5% canary | Apache-2.0 |
Unsloth QLoRA DPO on a single 8×A100 box (3.4× faster than naive HF Trainer) → canary 5% on τ-bench + LiveCodeBench → auto-rollback if delta < 0. The AWS SageMaker self-instruct pattern (DSPy compound system) is the cleanest reference. Don't ship without the rollback gate — 14% of canaries fail for a reason.| Layer | Pick | License |
|---|---|---|
| Graph / state | LangGraph 38% prod share · typed state · durable · cycles | MIT |
| Role prototyping | CrewAI — Flows (2025) for predictable event-driven | MIT |
| Conversation | AutoGen / AG2 42k stars · free · .NET support | Apache-2.0 |
| Rapid scaffold | OpenAI Swarm — function-calling handoff, lowest latency | MIT |
| Debate / consensus | AgentVerse · MetaGPT · ChatDev | MIT |
| Observability | LangSmith traces · Phoenix OTel · OpenLLMetry | MIT / ELv2 |
| Memory | Mem0 / Letta shared CRDT-ish state | Apache-2.0 |
| Provenance | Custom: content-hash + actor-id + confidence JSONL → SIEM | — |
| Human gate | LangGraph interrupt_before · Slack approval · LangSmith threads | MIT |
| Git-native | GNAP 2026 — 4 JSON files, no server, MIT | MIT |
{actor, content-hash, why, confidence} tuple, and the audit log is JSONL that a regulator can replay. GNAP (4 JSON files, git-native, MIT) is the new option for "I don't want to run a server."| Layer | Pick | License |
|---|---|---|
| Apple silicon | MLX · MLX-LM WWDC 2026 · MLX-Swift-LM | MIT |
| Apple Foundation Models | Foundation Models framework open-sourcing summer 2026 · Python SDK · CLI · Linux via Swift | Apple OSS |
| Private cloud | Apple Private Cloud Compute — no-store, hardware-attested, externally verifiable | SaaS |
| Cross-platform on-device | llama.cpp · Ollama · ExecuTorch · ONNX Runtime | MIT / BSD |
| App-level | Cactus 2026 — MIT, on-device + opt-in cloud | MIT |
| Agent runtime | OpenClaw (local-first) · OpenCode (Xcode-integrated) | MIT |
| Memory | Local SQLite + Mem0 local + Letta self-hosted | Apache-2.0 |
| PII | Presidio local · local regex bank · schema-aware | MIT |
| Audit | Local JSONL + content-hash + sync to your own S3 | — |
| Verifiability | PCC publish attestation bundle · periodic academic review (arXiv 2605.24239) | — |
MLX-LM + llama.cpp + Cactus are the cross-platform OSS triad. Private Cloud Compute set the new bar: no-store, per-request, externally verifiable (arXiv 2605.24239). The 30-day plan: MLX-LM server on the user's machine → on-device first → PCC fallback for the genuinely hard queries → Claude/Gemini only with explicit consent and PII redaction. Local-only with 8B is now 52 tok/s on M3 Max — the capability ceiling is gone.| Layer | Pick | License |
|---|---|---|
| Proxy / gateway | LiteLLM (MIT) · Portkey (trace-aware) · Cloudflare AI Gateway | MIT / SaaS |
| Routing brain | GenAI-Router (Apache-2.0) · NotDiamond (acq. by Fndr 2026) · RouteLLM | mixed |
| Commercial router | Martian −98% cost claimed · 300+ companies · $9M NEA+GC | SaaS |
| Hyperscaler router | AWS Bedrock Intelligent Prompt Routing · Azure AI Foundry Model Router · Vercel AI Gateway | SaaS |
| Inference-layer | vLLM Semantic Router (Iris) Jan 2026 — Go/Rust + Envoy, LoRA multitask (ModernBERT) | Apache-2.0 |
| Cache | GPTCache · Redis (exact) · Qdrant (semantic) · session-key (episodic) | Apache-2.0 |
| Judge | Prometheus-2 (7B) for quality estimate + re-route gate | Apache-2.0 |
| Research | AutoMix · FrugalGPT · LLM-Blender · BaRP · PILOT | MIT |
| OpenRouter base | OpenRouter Auto +5% margin — vendor benchmark, no per-step | SaaS |
| Batch | LiteLLM async 5ms batch + Together AI / Fireworks batch APIs | mixed |
LiteLLM or Portkey as the proxy + fallback backbone, GenAI-Router or NotDiamond as the policy brain, GPTCache + Redis + Qdrant as the cache, Prometheus-2 as the judge that re-routes any step scoring < 0.7. vLLM Iris (Jan 2026) moves routing into the inference serving layer itself with a single LoRA multitask ModernBERT for intent + complexity + tool filtering. NotDiamond was acquired by Fndr in 2026 — keep an eye on pricing. Target: −78% cost / task at −3pt quality. The full deep-dive is in 2026-08-08_inference-router-deepdive.html.