At a glance
| Capability | How Backstop uses it | Where |
|---|---|---|
| AI Gateway | Every diagnosis call routes through the gateway via the OpenAI SDK pointed at the gateway base URL. | prod-triage virtual model |
| Virtual Models — priority fallback | One virtual model with a four-hop chain: Claude Sonnet → Llama 4 Maverick → Amazon Nova Pro → Claude Haiku, with retry/fallback on 401/403/404/408/429/5xx. | gateway config |
| Rate-limit policy | A limit on the primary target so a live run visibly fails Sonnet over to Llama. | gateway policy |
| Budget / cost policy | A daily spend cap across the chain. | gateway policy |
| Observability | X-TFY-LOGGING-CONFIG on every call → request traces, fallback events, and per-model cost in AI Monitoring. | gateway |
| MCP Gateway — official remote MCP | On resolution, the agent files an incident ticket in Linear through a curated virtual MCP server. | backstop-notify |
| MCP Gateway — custom MCP server | A read-only “infra” MCP server exposes live cluster signals (get_signals, deployment_status, namespaces) over streamable-http. | backstop-infra |
| MCP — tool scoping / toggling | Destructive Linear tools are toggled off; only ticket creation is exposed. | virtual MCP |
| Guardrails — native | Secrets Detection + PII/PHI redaction on the input hook, masking credentials before the model sees them. | input hook |
| Guardrails — custom | A hosted guardrail validates the model’s diagnosis on the output hook. | output hook · /tfy/quality |
| Prompts registry | The diagnosis system prompt is versioned in the registry and fetched at runtime (with a local fallback). | prompt FQN |
| AWS Bedrock | Foundation models (Claude, Llama, Nova) served through Bedrock’s managed inference, proxied by the gateway. | provider |
What this demonstrates
AI Gateway
Routing, the priority fallback chain, rate-limit and budget policies, and full request tracing in AI Monitoring.
MCP Gateway
Scoped, audited tool access — an official remote MCP (Linear) and a custom read-only infra MCP, with destructive tools removed.
Guardrails
Native Secrets + PII redaction on the way in, a custom groundedness check on the way out, plus in-agent gates that block destructive actions.
Auditability
Every run emits a tamper-evident receipt — every model, fallback, guardrail decision, and action, with a recomputable hash.

