Skip to content

Demo Catalog ​

Seven self-contained demos, each deployed as an independent Helm chart under charts/demos/. Every demo requires the agent-orca platform and model-providers to be running first, but is otherwise independent — install only what you need, remove it cleanly when done.

Prerequisites (all demos) ​

bash
# 1. Export API keys (model-providers chart reads these at deploy time)
export ANTHROPIC_API_KEY=sk-ant-...
export OPENAI_API_KEY=sk-...
export GOOGLE_API_KEY=AIza...

# 2. Start the platform (operator + model-router + UI) and deploy model-providers:
skaffold dev -p dev
#   Deploys: agent-orca, agent-orca-resources, model-providers
#   Starts local llama-cpp servers with Metal GPU acceleration (macOS)

# 3. Deploy any demo profile:
skaffold run -p demo-soc-triage
skaffold run -p demo-escalation-chain
# etc.

Path 2 — Helm installs (CI / production-like) ​

Install in the same order Skaffold uses:

bash
# 1. Platform operator + model-router + UI
helm install agent-orca charts/agent-orca -n agent-orca-system --create-namespace \
  --set operator.image.pullPolicy=IfNotPresent \
  --set webhook.certManager=true

# 2. Platform resources (llama-cpp, base agents)
helm install agent-orca-resources charts/agent-orca-resources -n agent-orca-system

# 3. Model providers + selectors (required by all demos)
helm install model-providers charts/model-providers -n agent-orca-system \
  --set providerSecrets[0].apiKey=$ANTHROPIC_API_KEY \
  --set providerSecrets[1].apiKey=$OPENAI_API_KEY \
  --set providerSecrets[2].apiKey=$GOOGLE_API_KEY

# 4. Deploy a demo
helm install demo-soc-triage charts/demos/demo-soc-triage -n agent-orca-system

UI available at http://localhost:8080 (skaffold port-forwards automatically; for helm installs, run kubectl port-forward svc/agent-orca-ui 8080:80 -n agent-orca-system).


Demo overview ​

ChartDeploymentWhat it showsRequired ModelSelector
demo-mcp-appsops-advisor-chatMCP Apps · sandboxed iframe UI · allowApps gate · KV-cached HTML · multi-serverdefault
demo-financial-analysisfinancial-analysis-chatInteractive MCP Apps · RAG + MCP pipeline · Canvas chart with live sliders · multi-factor forecastdefault, embeddings
demo-soc-triagesoc-triageMulti-agent pipeline · MCP Apps · RAG · _clarify · sandboxed incident carddefault, embeddings
demo-escalation-chainplatform-deploysChild-run restrictions · _fail → _clarify escalation · continuation runscoding
demo-parallel-swarmresearch-swarmParallel child AgentRuns · per-agent spend · swarm synthesisdefault
demo-codebase-expertcodebase-expertGitHub MCP · RAG KnowledgeBase · live code search · _rag_ingest back-fillcodebase-expert, codebase-expert-embeddings + GitHub PAT
programming-agentsenior-programmer-chatSenior engineer persona · read-only GitHub MCP stdio sidecar · handbook RAG + live code search · _rag_ingest back-fill · warm-pool chatdefault, ollama-embed + GitHub PAT
demo-pen-testpentest-chatAutonomous pentesting · CVE correlation · safe vulnerability validation · executive report dashboarddefault, embeddings

MCP Apps — Sandboxed Iframe UI ​

An ops assistant backed by two live-data MCP servers. When a tool is called, agent-orca fetches the server's HTML dashboard via resources/read, caches it in Redis, and renders it as a sandboxed iframe directly below the tool result — no page navigation required.

What it shows:

  • MCP App rendering: _meta.ui.resourceUri in tools/list tells agent-orca to fetch and cache the tool's HTML; the UI renders a sandbox="allow-scripts" iframe below each result
  • Multiple MCP servers: two independent servers (health-mcp and system-monitor) each provide their own tools and HTML dashboards; the agent has access to all four tools
  • spec.allowApps gate: MCP Apps are disabled by default; both servers have allowApps: true set explicitly — other servers are unaffected
  • KV caching: HTML is cached per (mcpServer, toolName) with a 1-hour TTL; subsequent calls to the same tool skip the resources/read round-trip
  • Security model: opaque-origin iframe (sandbox without allow-same-origin) + connect-src 'none' CSP — the app cannot read the parent frame or make outbound requests
User (chat UI)
    │  POST /api/deployments/agent-orca-system/ops-advisor-chat/execute
    ▼
┌────────────────────────────────────────────────────────┐
│  ops-advisor  (AgentDeployment: ops-advisor-chat)      │
│  tools: health-mcp-check-service-health                │
│          health-mcp-list-incidents                     │
│          system-monitor-get-system-info                │
│          system-monitor-get-system-stats               │
└──────────┬─────────────────────────────┬───────────────┘
           │ MCP HTTP transport          │ MCP HTTP transport
           ▼                             ▼
┌─────────────────────────┐  ┌─────────────────────────────┐
│  health-mcp-server      │  │  system-monitor-server      │
│  (Python, HTTP)         │  │  (Python, HTTP)             │
│                         │  │                             │
│  check-service-health   │  │  get-system-info            │
│  list-incidents         │  │  get-system-stats           │
│  resources/read         │  │  resources/read             │
│  → health://dashboard   │  │  → system://monitor         │
│  → health://incidents   │  │                             │
└─────────────────────────┘  └─────────────────────────────┘
          │                             │
          └──────────┬──────────────────┘
                     ▼
           Redis KV cache → sandboxed iframe

Deploy / Remove ​

bash
# Skaffold
skaffold run -p demo-mcp-apps

# or Helm
helm install demo-mcp-apps charts/demos/demo-mcp-apps -n agent-orca-system

# Wait for the warm pod:
kubectl get pods -n agent-orca-system -l agentorca.io/deployment=ops-advisor-chat -w

helm uninstall demo-mcp-apps -n agent-orca-system

Scenarios ​

Scenario A — System status overview (calls check-service-health, renders dashboard iframe)

What's the current system status?

  1. Agent calls health-mcp-check-service-health with no filter
  2. Router fetches health://dashboard HTML via resources/read and caches it in Redis
  3. Text summary appears in the response; the health dashboard iframe renders below the tool result
  4. The dashboard shows all 6 services — payment-service is deliberately degraded (↑ error rate, ↑ latency)

Scenario B — Incident report (calls list-incidents, renders incidents iframe)

Any P1 incidents right now?

  1. Agent calls health-mcp-list-incidents with severity: P1
  2. An incidents dashboard iframe renders listing the open P1 with service, age, and description

Scenario C — Single service drill-down (iframe on second call served from cache)

How is the payment service doing?

  1. Agent calls health-mcp-check-service-health with service: payment-service
  2. If Scenario A was run first, the iframe is served from the Redis KV cache (no resources/read call to the MCP server — confirm in router logs)

Scenario D — Cluster resource overview (calls get-system-stats, renders system monitor iframe)

What's the cluster resource usage?

  1. Agent calls system-monitor-get-system-stats with no filter
  2. Router fetches system://monitor HTML via resources/read and caches it in Redis
  3. Text summary shows per-node CPU, memory, and disk usage; the system monitor iframe renders below with progress bars and CPU sparklines
  4. node-2 is deliberately running hot (~90% CPU) to make the dashboard interesting

Scenario E — Node drill-down (calls get-system-info for a specific node)

Tell me about node-2's hardware

  1. Agent calls system-monitor-get-system-info with node: node-2
  2. Returns static configuration: CPU model, core count, memory capacity, disk size, role, and availability zone

Scenario F — Cross-server query (agent uses tools from both MCP servers)

Is any node running hot on CPU? Are there related incidents?

  1. Agent calls system-monitor-get-system-stats to check resource usage
  2. Agent calls health-mcp-list-incidents to correlate with open incidents
  3. Both iframes render — system monitor shows the hot node, incidents timeline shows related alerts

Iframe security properties ​

PropertyValue
sandboxallow-scripts (no allow-same-origin → opaque origin)
Content-Security-Policydefault-src 'none'; script-src 'unsafe-inline' 'unsafe-eval'; style-src 'unsafe-inline'; img-src data:; connect-src 'none'
Parent-frame accessBlocked — opaque origin cannot read parent DOM, cookies, or localStorage
Outbound HTTP from iframeBlocked — connect-src 'none' prevents all fetch/XHR/WebSocket
allowApps on other serversfalse (default) — only health-mcp and system-monitor opt in

Resources ​

NameKindPurpose
health-mcp-server-codeConfigMapPython MCP server source (files/server.py)
health-mcp-serverDeployment + ServiceRuns the health MCP HTTP server on port 8080
health-mcpMCPServerHTTP transport; allowApps: true; tools: check-service-health, list-incidents
system-monitor-server-codeConfigMapPython MCP server source (files/system-monitor-server.py)
system-monitor-serverDeployment + ServiceRuns the system monitor MCP HTTP server on port 8080
system-monitorMCPServerHTTP transport; allowApps: true; tools: get-system-info, get-system-stats
ops-advisorAgentSRE assistant; calls all four tools; openai-compatible HTTP runtime
ops-advisor-chatAgentDeploymentChat endpoint; warm pool size 1

Financial Impact Analysis ​

A single question about how an event impacts downstream markets triggers a multi-step pipeline: RAG knowledge base search → market baseline fetch → multi-factor forecast with an interactive MCP Apps iframe. The forecast dashboard renders a Canvas-based chart with adjustable sliders — users can change assumptions (supply shock severity, duration, demand growth, central bank stance, geopolitical risk) and see projected price trajectories for correlated assets recalculate live in the browser.

What it shows:

  • RAG + MCP Apps pipeline: agent searches the financial-planning-kb KnowledgeBase for correlations and historical precedents, fetches current market baselines via MCP, then runs a multi-factor forecast whose result populates an interactive iframe dashboard
  • Interactive MCP App: forecast-impact tool declares _meta.ui.resourceUri; the dashboard includes 5 sliders, a multi-line Canvas chart with P10/P50/P90 confidence bands, a factor sensitivity heatmap, and 5-year outlook summary cards — all recalculating client-side via the postMessage V2 data injection protocol
  • Multi-factor modeling: 5 correlated assets tracked over 40 quarters (10 years) with correlation dampening, decay functions, and policy response modeling
  • Knowledge-enriched forecasting: agent system prompt enforces a 5-step workflow (_rag_search 2-3x → fetch-market-context → forecast-impact → written analysis)
User (chat UI)
    │  "How would a poor wheat harvest affect gold prices over 5 years?"
    │  POST /api/deployments/agent-orca-system/financial-analysis-chat/execute
    ▼
┌──────────────────────────────────────────────────────────────────────┐
│  financial-analyst  (AgentDeployment: financial-analysis-chat)        │
│                                                                      │
│  1. _rag_search × 2-3 (correlations, historical shocks, macro)      │
│  2. financial-mcp-fetch-market-context (baselines)                   │
│  3. financial-mcp-forecast-impact (enriched scenario)                │
│     └→ interactive Canvas dashboard iframe                           │
│  4. Written analysis with key findings                               │
└──────────┬───────────────────────┬───────────────────────────────────┘
           │ MCP HTTP              │ RAG query
           ▼                       ▼
┌──────────────────────────┐  ┌──────────────────────────┐
│  financial-mcp-server    │  │  financial-planning-kb   │
│  (Python, HTTP)          │  │  KnowledgeBase (Qdrant)  │
│                          │  │                          │
│  forecast-impact         │  │  commodity-correlations  │
│  → financial://forecast- │  │  historical-supply-shocks│
│    dashboard (iframe)    │  │  macroeconomic-factors   │
│                          │  └──────────────────────────┘
│  fetch-market-context    │
│  → financial://market-   │
│    context (iframe)      │
└──────────────────────────┘
           │
           ▼
  Redis KV cache → sandboxed iframe with live sliders

Deploy / Remove ​

bash
# Skaffold
skaffold run -p demo-financial-analysis

# or Helm
helm install demo-financial-analysis charts/demos/demo-financial-analysis -n agent-orca-system

# Wait for KB ingestion and warm pod:
kubectl get knowledgebase financial-planning-kb -n agent-orca-system -w   # → Ready
kubectl get pods -n agent-orca-system -l agentorca.io/deployment=financial-analysis-chat -w

helm uninstall demo-financial-analysis -n agent-orca-system

Scenarios ​

Scenario A — Agricultural supply shock → gold (full pipeline, interactive dashboard)

How would a poor wheat harvest in the US and Eastern Europe affect gold prices over the next 5 years?

  1. Agent calls _rag_search("wheat price correlations gold") → commodity correlation matrix, transmission mechanisms
  2. Agent calls _rag_search("wheat supply shock case study") → 2010 Russian export ban, 2022 Ukraine disruption
  3. Agent calls _rag_search("central bank reaction commodity inflation gold") → monetary policy reaction functions
  4. Agent calls financial-mcp-fetch-market-context(["wheat", "corn", "crude_oil", "gold", "usd_index"]) → current baselines; market context iframe renders
  5. Agent calls financial-mcp-forecast-impact(scenario="...", primary_commodity="wheat", supply_shock_severity=60, ...) → 16KB JSON forecast; interactive dashboard iframe renders with:
    • Multi-line Canvas chart: wheat (amber), corn (green), oil (blue), gold (yellow), USD (gray) trajectories over 10 years with P10-P90 confidence bands
    • 5 sliders: shock severity, duration, demand growth, central bank stance, geopolitical risk
    • Factor sensitivity heatmap: 5 factors × 5 assets
    • 5-year outlook cards with projected prices and percentage changes
  6. Agent presents written analysis: scenario overview, key findings, historical parallel (2010 Russian wheat crisis), critical uncertainty (central bank response)
  7. User adjusts sliders — chart and cards recalculate instantly in the browser

Scenario B — Energy shock (different primary commodity)

What happens to food prices and inflation hedges if crude oil doubles over the next year?

  1. Same pipeline, but primary_commodity="crude_oil" — correlated assets shift to crude_oil, wheat, corn, gold, usd_index
  2. RAG searches focus on energy-agriculture linkages and fertilizer cost pass-through
  3. Dashboard shows oil as primary with agricultural commodities as correlated impacts

Scenario C — Exploring assumptions (slider interaction)

After Scenario A completes, ask: "What if the Fed turns hawkish instead?"

  1. User clicks the Hawkish button in the dashboard — chart immediately recalculates
  2. Gold trajectory flips from positive to negative (hawkish policy suppresses gold)
  3. USD index rises, agricultural commodities moderate
  4. User can also ask the agent to re-run the forecast with explicit parameters for a new text analysis

Interactive dashboard controls ​

ControlRangeDefaultEffect
Supply Shock Severity0-100%From forecastIntensity of the supply disruption
Disruption Duration1-60 monthsFrom forecastHow long the disruption persists
Demand Growth Rate-5% to 10%From forecastAnnual global demand growth assumption
Central Bank StanceDovish / Neutral / HawkishFrom forecastMonetary policy response (dovish → weak USD, gold positive; hawkish → strong USD, gold negative)
Geopolitical Risk0-100From forecastRisk premium multiplier (0 = calm, 100 = extreme)

Commodity data reference ​

Baseline prices (synthetic, deterministic) used by the MCP server:

CommodityPriceUnitVolatility (30d)
wheat6.50$/bushel18.5%
corn4.80$/bushel16.2%
soybeans13.20$/bushel14.8%
crude_oil78.00$/barrel22.1%
gold2,050$/oz12.3%
silver24.50$/oz24.6%
usd_index104.0index6.8%
us_10yr4.25% yield8.2%

Knowledge base documents ​

DocumentContent
commodity-correlations.txtPairwise correlations (wheat-corn: 0.85, gold-USD: -0.65, etc.) and 7-step transmission mechanism timeline
historical-supply-shocks.txt3 case studies: 2010 Russian wheat export ban, 2022 Ukraine conflict, 2012 US drought — with price impacts and timelines
macroeconomic-factors.txtInflation transmission, central bank reaction functions (dovish/neutral/hawkish), geopolitical risk tiers, demand scenarios, gold-specific factor analysis

Resources ​

NameKindPurpose
financial-planning-kb-contentConfigMapSource documents for RAG ingestion (3 financial reference files)
financial-planning-kbKnowledgeBaseQdrant-backed vector store of commodity correlations, supply shocks, and macro factors
financial-mcp-server-codeConfigMapPython MCP server source (files/server.py)
financial-mcp-serverDeployment + ServiceRuns the financial MCP HTTP server on port 8080
financial-mcpMCPServerHTTP transport; allowApps: true; tools: forecast-impact, fetch-market-context
financial-analystAgentSingle agent with RAG + MCP tools; 5-step workflow system prompt
financial-analysis-chatAgentDeploymentChat-mode deployment

SOC Triage ​

A single security alert triggers a three-agent pipeline: enricher → risk assessor → orchestrator. The orchestrator uses _clarify to get human approval before acting on HIGH/CRITICAL findings and calls render-incident-report to display a styled incident card as a sandboxed MCP Apps iframe. Every agent runs as a separate Kubernetes pod with individual cost tracking.

What it shows:

  • Agent-as-tool pattern: orchestrator calls enricher and risk assessor as tools; executor spawns child AgentRun objects
  • MCP Apps (HTTP transport): soc-apps MCPServer with allowApps: true serves cmdb-user-lookup, cmdb-ip-lookup, and render-incident-report; each tool declares _meta.ui.resourceUri so the UI renders a sandboxed HTML panel below the result
  • HTML overlays: cmdb-user-lookup → personnel directory cards; cmdb-ip-lookup → IP threat intel panel; render-incident-report → severity-badged incident card (CRITICAL/HIGH/MEDIUM/LOW)
  • RAG: soc-enricher-agent searches the soc-runbooks KnowledgeBase (Qdrant) via _rag_search
  • Human-in-the-loop: orchestrator uses _clarify for HIGH/CRITICAL risk; runs enter WaitingForInput; LOW/MEDIUM close automatically
User (chat UI)
    │  POST /api/deployments/agent-orca-system/soc-triage/execute
    ▼
┌──────────────────────────────────────────────────────────────────────┐
│  soc-orchestrator-agent  (AgentDeployment: chat)                     │
│  tools: soc-enricher, soc-risk-assessor, render-incident-report,     │
│         _clarify                                                      │
└──────────┬─────────────────────┬────────────────────────┬────────────┘
           │ agent-as-tool       │ agent-as-tool           │ MCP HTTP
           ▼                     ▼                         ▼
┌────────────────────┐  ┌───────────────────────┐  ┌──────────────────────┐
│  soc-enricher-     │  │  soc-risk-assessor-   │  │  soc-apps MCPServer  │
│  agent             │  │  agent                │  │  render-incident-    │
│  tools:            │  │  no tools — reasoning │  │  report              │
│    cmdb-user-lookup│  └───────────────────────┘  │  → soc://incident    │
│    cmdb-ip-lookup  │                              │    iframe            │
│    _rag_search     │                              └──────────────────────┘
└─────────┬──────────┘
          │ MCP HTTP                    │ RAG query
          ▼                             ▼
┌────────────────────────────┐   ┌─────────────────┐
│  soc-apps MCPServer        │   │  soc-runbooks   │
│  cmdb-user-lookup          │   │  KnowledgeBase  │
│    → soc://cmdb iframe     │   │  (Qdrant)       │
│  cmdb-ip-lookup            │   └─────────────────┘
│    → soc://threat-intel    │
│      iframe                │
└────────────────────────────┘

Deploy / Remove ​

bash
# Skaffold
skaffold run -p demo-soc-triage

# or Helm
helm install demo-soc-triage charts/demos/demo-soc-triage -n agent-orca-system

# Wait for KB ingestion and warm pod:
kubectl get knowledgebase soc-runbooks -n agent-orca-system -w   # → Ready
kubectl get pods -n agent-orca-system -l agentorca.io/deployment=soc-triage -w

helm uninstall demo-soc-triage -n agent-orca-system

Scenarios ​

Scenario A — Data Exfiltration via Tor (HIGH risk, triggers _clarify, CMDB + threat-intel iframes)

Alert: User john.doe@acme.corp downloaded 3,847 records via /api/v2/export in 4 minutes. Source IP: 198.51.100.42. Timestamp: 2026-03-23T14:32:17Z

  1. Enricher calls cmdb-user-lookup("john.doe@acme.corp") → Sales Engineer L3, no privileged access; personnel card iframe renders below the tool result
  2. Enricher calls cmdb-ip-lookup("198.51.100.42") → TOR_EXIT_NODE, emergingthreats + abuseipdb; IP threat intel iframe renders
  3. Enricher calls _rag_search("bulk data export anomaly") → matches Data Exfiltration via API runbook
  4. Risk assessor scores HIGH — TOR + bulk export + IP outside all known corporate ranges
  5. Orchestrator uses _clarify → type yes → full incident report
  6. Orchestrator calls render-incident-report → styled incident card iframe renders (severity badge: HIGH, decision: approved)

Scenario B — Service Account Interactive Login (CRITICAL risk, incident card iframe)

Alert: Interactive login detected for admin-svc@acme.corp from 203.0.113.99. Auth method: password. Timestamp: 2026-03-23T09:15:03Z

  1. admin-svc@acme.corp → CI/CD Service Account, known IPs: 10.0.0.0/8 only; interactive login always anomalous; personnel card iframe renders
  2. 203.0.113.99 → THREAT_INTEL_FLAGGED, Bulletproof Hosting LLC (RU), active C2 infrastructure; IP threat intel iframe renders
  3. Risk assessor scores CRITICAL → orchestrator uses _clarify
  4. After approval, render-incident-report renders CRITICAL severity incident card

Scenario C — Legitimate Activity (LOW risk, no _clarify)

Alert: sarah.chen@acme.corp ran kubectl exec on pod payments-api-7d9f8b in namespace prod. Source IP: 10.10.44.21. Timestamp: 2026-03-23T11:02:50Z

  1. sarah.chen@acme.corp → Sr. DevOps Engineer L5, has prod-k8s-admin, known IPs include 10.10.0.0/16; personnel card iframe renders
  2. 10.10.44.21 → CORPORATE_INTERNAL — activity consistent with role
  3. Risk assessor scores LOW → orchestrator outputs report directly, no human prompt
  4. render-incident-report renders LOW severity incident card (auto-closed)

Audit trail ​

bash
kubectl get agentrun -n agent-orca-system \
  -l agentorca.io/deployment=soc-triage \
  --sort-by=.metadata.creationTimestamp

Resources ​

NameKindPurpose
soc-runbooks-contentConfigMapSource documents for RAG ingestion
soc-runbooksKnowledgeBaseQdrant-backed vector store of security runbooks
soc-apps-server-codeConfigMapPython HTTP MCP server source (files/server.py)
soc-apps-serverDeployment + ServiceRuns the Python MCP HTTP server on port 8080
soc-appsMCPServerHTTP transport; allowApps: true; tools: cmdb-user-lookup, cmdb-ip-lookup, render-incident-report
soc-apps-cmdb-user-lookupTool (MCP)Employee registry — renders personnel card iframe
soc-apps-cmdb-ip-lookupTool (MCP)IP threat intel classifier — renders threat intel iframe
soc-apps-render-incident-reportTool (MCP)Submits structured findings — renders incident card iframe
soc-enricherTool (agent)Wraps soc-enricher-agent as a callable tool
soc-risk-assessorTool (agent)Wraps soc-risk-assessor-agent as a callable tool
soc-enricher-agentAgentEnrichment sub-agent (CMDB + RAG)
soc-risk-assessor-agentAgentRisk scoring sub-agent (pure reasoning)
soc-orchestrator-agentAgentOrchestrator with _clarify for HIGH/CRITICAL + render-incident-report
soc-triageAgentDeploymentChat-mode deployment, warm pool size 1

CMDB reference ​

EmailRolePrivilegeKnown IPs
john.doe@acme.corpSales Engineer L3none10.50.0.0/16, 192.168.1.0/24
sarah.chen@acme.corpSr. DevOps Eng L5prod-k8s-admin, aws-iam-admin10.10.0.0/16, 192.168.10.0/24
admin-svc@acme.corpCI/CD Service Accountci-pipeline-deployer10.0.0.0/8 only
carlos.martinez@acme.corpSecurity Analyst L4splunk-admin, crowdstrike-admin10.20.0.0/16
IPClassification
10.x.x.xCORPORATE_INTERNAL
192.168.x.xCORPORATE_VPN
198.51.100.42TOR_EXIT_NODE (emergingthreats + abuseipdb)
198.51.100.17TOR_EXIT_NODE (emergingthreats)
203.0.113.5THREAT_INTEL_FLAGGED (C2, spamhaus + abuseipdb)
203.0.113.99THREAT_INTEL_FLAGGED (active C2, emergingthreats + Spamhaus DROP)
35.x / 52.x / 54.xAWS_CLOUD_HOSTING

Escalation Chain ​

A child agent deep in a pipeline hits a decision it isn't authorized to make. Instead of guessing or failing silently, the conflict travels up the agent hierarchy to the human — and the human's answer travels back down. Every step is a Kubernetes resource.

What it shows:

  • Structural child-run restrictions: child agents have only _done and _fail; _clarify, _handoff, and _spawn are withheld by the controller at the CRD level — not by prompt
  • _fail → _clarify escalation: child calls _fail with a conflict → executor returns it as a tool error → parent orchestrator (which does have _clarify) surfaces the question to the human
  • Continuation run: after the human answers, a new AgentRun is created with PriorRunRef pointing to the paused run, restoring full conversation context
  • Kubernetes audit trail: kubectl get agentrun shows orchestrator → child → continuation as distinct resources with individual phases and spend
User (chat UI)
    │  POST /api/deployments/agent-orca-system/platform-deploys/execute
    ▼
┌──────────────────────────────────────────────┐
│  deploy-orchestrator-agent  (AgentDeployment)│
│  tools: deploy-planner, _clarify             │
└──────────────────┬───────────────────────────┘
                   │ agent-as-tool (executor spawns AgentRun)
                   ▼
        ┌──────────────────────────┐
        │  deployment-planner-agent │
        │  tools: _done, _fail only │
        │  (child run, ParentRunRef │
        │   set by executor)        │
        └──────────────────────────┘
                   │
         conflict? │ calls _fail("payments-api v2.1.3 requires
                   │  auth-svc v2.0.0 — not certified. Options: A/B")
                   ▼
        tool error returned to orchestrator
                   │
                   ▼ calls _clarify → run enters WaitingForInput
        ┌──────────────────────────┐
        │  Human answers in UI     │
        └──────────────────────────┘
                   │
                   ▼ continuation AgentRun created
        orchestrator calls deploy-planner again with decision
                   │
                   ▼ child returns JSON plan
        orchestrator presents formatted deployment summary

Prerequisites ​

Requires the coding ModelSelector from the model-providers chart. Local models routinely hallucinate a successful deployment plan instead of calling _fail, breaking the escalation story — ensure ANTHROPIC_API_KEY is set before deploying model-providers.

Deploy / Remove ​

bash
# Skaffold
skaffold run -p demo-escalation-chain

# or Helm
helm install demo-escalation-chain charts/demos/demo-escalation-chain -n agent-orca-system

kubectl get pods -n agent-orca-system -l agentorca.io/deployment=platform-deploys -w

helm uninstall demo-escalation-chain -n agent-orca-system

Scenarios ​

Scenario A — Version Conflict (triggers escalation)

Deploy payments-api v2.1.3 to production using a canary strategy.

  1. Orchestrator calls deploy-planner(task="Deploy payments-api v2.1.3 ...")
  2. Child checks registry: v2.1.3 requires auth-svc >= v2.0.0, but v2.0.0 isn't certified
  3. Child calls _fail → child run transitions to Failed
  4. Executor returns failure as tool error to orchestrator
  5. Orchestrator calls _clarify with options A (pin to v2.1.2) and B (hold for certification)
  6. Type A → continuation run created → orchestrator re-calls planner with decision → plan returned

After the demo, inspect the audit trail:

bash
# All three runs: orchestrator, failed child, continuation
kubectl get agentrun -n agent-orca-system \
  -l agentorca.io/deployment=platform-deploys \
  --sort-by=.metadata.creationTimestamp

# Orchestrator run shows childRunRefs and continuationRunRef
kubectl describe agentrun <orchestrator-run> -n agent-orca-system

# Failed child run shows failureReason
kubectl describe agentrun <child-run> -n agent-orca-system

Scenario B — Clean deployment (no escalation)

Deploy inventory-svc v3.3.0 to production using a canary strategy.

No compatibility constraints. Child returns a plan immediately. Orchestrator presents the summary with no _clarify call — the human is only interrupted when there is a genuine decision to be made.

Scenario C — Decision already provided

Deploy payments-api v2.1.3. We've decided to pin to v2.1.2 to stay compatible with the current auth-svc.

Orchestrator passes the engineer's decision directly to deploy-planner. Child recognizes Option A is already chosen, skips _fail, returns a plan for v2.1.2.

Resources ​

NameKindPurpose
deploy-plannerTool (agent)Wraps deployment-planner-agent as a callable tool
deployment-planner-agentAgentChild planner — checks registry, calls _fail on conflicts
deploy-orchestrator-agentAgentOrchestrator — calls planner tool, escalates via _clarify
platform-deploysAgentDeploymentChat-mode deployment, warm pool size 1

Service registry reference ​

Hardcoded in deployment-planner-agent system prompt for demo reproducibility.

ServiceCurrent VersionNotes
payments-apiv2.1.0v2.1.3 blocked; v2.1.2 is latest safe version
auth-svcv1.9.0v2.0.0 pending security certification (ETA 2026-04-15)
inventory-svcv3.2.1No pending constraints
notification-svcv1.4.0No pending constraints

payments-api >= v2.1.3 requires auth-svc >= v2.0.0 (API v3 token claims). auth-svc v2.0.0 is not yet certified → deployment of payments-api v2.1.3 is blocked.


Parallel Research Swarm ​

One research question spawns three specialized child AgentRun objects simultaneously. Each runs independently with its own tools, cost, and audit entry. The orchestrator waits for all three, then synthesizes a report. Total wall time is far less than sequential.

What it shows:

  • Parallel child AgentRun objects: orchestrator calls all three tools in a single LLM turn; executor creates the child runs concurrently
  • Per-child spendUSD: each child's cost is tracked independently — kubectl get agentrun shows individual spend per researcher
  • ChildRunRefs[]: orchestrator AgentRun.status lists all three child runs
  • MCP stdio: cve-lookup runs an inline Python MCP server with a hardcoded CVE database
User (chat UI)
    │  POST /api/deployments/agent-orca-system/research-swarm/execute
    ▼
┌────────────────────────────────────────────────────────────────┐
│  research-orchestrator-agent  (AgentDeployment: chat)          │
│  Calls all 3 tools in ONE LLM turn → executor runs in parallel │
└──────────┬───────────────────┬──────────────────┬─────────────┘
           │                   │                  │
           ▼                   ▼                  ▼
┌──────────────────┐  ┌──────────────────┐  ┌─────────────────────┐
│ security-        │  │ cve-checker-     │  │ codebase-analyst-   │
│ researcher-agent │  │ agent            │  │ agent               │
│ pure reasoning   │  │ tools:           │  │ pure reasoning      │
│                  │  │   cve-lookup MCP │  │                     │
└──────────────────┘  └──────────────────┘  └─────────────────────┘
           │                   │                  │
           └───────────────────┴──────────────────┘
                               │
                   orchestrator synthesizes report

Deploy / Remove ​

bash
# Skaffold
skaffold run -p demo-parallel-swarm

# or Helm
helm install demo-parallel-swarm charts/demos/demo-parallel-swarm -n agent-orca-system

kubectl get pods -n agent-orca-system -l agentorca.io/deployment=research-swarm -w

helm uninstall demo-parallel-swarm -n agent-orca-system

Demo question ​

What are the risks of migrating our auth service from JWT to PASETO tokens?

Watch kubectl get agentrun as three child runs appear simultaneously. The orchestrator's AgentRun.status.childRunRefs lists all three. Total wall time ≈ max(individual times), not sum.

bash
# Watch child runs appear in real time
kubectl get agentrun -n agent-orca-system -w

# After completion — compare per-child spend
kubectl get agentrun -n agent-orca-system \
  -l agentorca.io/deployment=research-swarm \
  --sort-by=.metadata.creationTimestamp \
  -o custom-columns='NAME:.metadata.name,PHASE:.status.phase,SPEND:.status.spendUSD'

CVE database reference ​

Hardcoded in the cve-lookup MCP sidecar for demo reproducibility.

QueryCVEs included
jwtCVE-2022-21449 (ECDSA bypass), CVE-2015-9235 (alg:none), CVE-2018-0114 (key confusion)
pasetoNo CVEs — PASETO v2/v4 designed to eliminate JWT attack classes
oauth2CVE-2023-28107 (open redirect)
sessionCVE-2011-2107 (session fixation)

Resources ​

NameKindPurpose
cve-lookupTool (MCP)Inline Python CVE database sidecar
security-researcher-toolTool (agent)Wraps security-researcher-agent
cve-checker-toolTool (agent)Wraps cve-checker-agent
codebase-analyst-toolTool (agent)Wraps codebase-analyst-agent
security-researcher-agentAgentThreat model + attack vector analysis
cve-checker-agentAgentCalls cve-lookup, returns structured CVE report
codebase-analyst-agentAgentMigration complexity + breaking changes assessment
research-orchestrator-agentAgentOrchestrator — issues all 3 calls in one turn
research-swarmAgentDeploymentChat-mode deployment, warm pool size 1

Codebase Expert ​

A persistent expert agent for the agent-orca repository. The agent-orca-codebase KnowledgeBase is pre-populated via MCP ingestion on deploy and re-synced hourly — the agent can answer architecture questions from semantic search alone, then drill into live code via GitHub MCP tools when precision matters. Files read via MCP are back-filled into the KB via _rag_ingest so the vector store grows richer with each session.

What it shows:

  • MCP ingestion pipeline: KnowledgeBase.spec.ingestion.mcp — controller discovers repo files via get_file_contents, fetches content, and chunks into Qdrant automatically at deploy and on the hourly sync interval
  • _rag_search + GitHub MCP combination: agent starts with semantic retrieval, falls back to live search_code or get_file_contents when RAG results are insufficient
  • _rag_ingest back-fill: after reading a file via MCP the agent calls _rag_ingest to persist it, keeping the vector store current without a full re-sync
  • Scoped agent: system prompt enforces strict topic scope — questions outside agent-orca are politely refused
User (chat UI)
    │  POST /api/deployments/agent-orca-system/codebase-expert/execute
    ▼
┌──────────────────────────────────────────────────────────────────────┐
│  codebase-expert-agent  (AgentDeployment: chat, warm pool: 1)        │
│  tools: _rag_search, _rag_ingest, github-mcp-*                       │
│                                                                      │
│  1. _rag_search(agent-orca-codebase, query)  ─────────────────────┐  │
│  2. If needed: github-mcp-search-code / get-file-contents        │  │
│  3. _rag_ingest(new content read via MCP)   ←────────────────────┘  │
│                                                                      │
│  agent-orca-codebase KnowledgeBase (Qdrant, 10 Gi)                   │
│    populated at deploy via MCP ingestion  (up to 500 files)         │
│    re-synced every 3600 s                                            │
└──────────────────────────────────────────────────────────────────────┘

Prerequisites ​

  • GitHub Personal Access Token with repo (read) scope for ci-agent-orca/agent-orca
  • codebase-expert and codebase-expert-embeddings ModelSelectors (deployed by this chart) require providers from the model-providers chart (OPENAI_API_KEY or ANTHROPIC_API_KEY)

Deploy / Remove ​

bash
# Skaffold (token read from AGENT_ORCA_GITHUB_TOKEN env var)
export AGENT_ORCA_GITHUB_TOKEN=ghp_YOUR_TOKEN
skaffold run -p demo-codebase-expert

# or Helm
helm install demo-codebase-expert charts/demos/demo-codebase-expert -n agent-orca-system \
  --set githubToken=ghp_YOUR_TOKEN

# Wait for the KnowledgeBase ingestion job and warm pod:
kubectl get knowledgebase agent-orca-codebase -n agent-orca-system -w   # → Ready
kubectl get pods -n agent-orca-system -l agentorca.io/deployment=codebase-expert -w

helm uninstall demo-codebase-expert -n agent-orca-system

Running the demo ​

Chat endpoint: POST /api/deployments/agent-orca-system/codebase-expert/execute

Scenario 1 — Architecture overview

How does the model-router sidecar intercept tool calls?

Expected: agent calls _rag_search first; synthesizes an answer from indexed source files citing specific file paths (e.g. internal/router/router.go).

Scenario 2 — Live code lookup

Show me the AgentRun controller reconcile loop

Expected: agent calls _rag_search, then github-mcp-get-file-contents for internal/controller/agentrun_controller.go, then _rag_ingest to persist the read content, then returns an annotated explanation.

Scenario 3 — Recent changes

What changed in the last 5 commits?

Expected: agent calls github-mcp-list-commits and summarises the recent diff.

Audit trail ​

bash
# Each session = one AgentRun; inspect tool calls and spend
kubectl get agentrun -n agent-orca-system \
  -l agentorca.io/deployment=codebase-expert \
  --sort-by=.metadata.creationTimestamp

# Check KnowledgeBase ingestion status
kubectl describe knowledgebase agent-orca-codebase -n agent-orca-system

Resources ​

NameKindPurpose
github-mcp-tokenSecretGitHub PAT (repo read scope)
github-mcpMCPServerGitHub MCP sidecar — auto-creates Tool CRs; used by agent and KB ingestion
agent-orca-codebaseKnowledgeBaseQdrant-backed vector store; MCP-ingested from ci-agent-orca/agent-orca
codebase-expertModelSelectorMulti-provider rule-based selector (Opus, Sonnet, Gemini, GPT-4o)
codebase-expert-embeddingsModelSelectorEmbeddings selector (OpenAI text-embedding-3-large, Gemini fallback)
codebase-expert-agentAgentExpert agent with _rag_search, _rag_ingest, and GitHub MCP tools
codebase-expertAgentDeploymentChat endpoint, warm pool 1

Senior Programming Agent ​

A senior software-engineer persona for the agent-orca codebase. The senior-programmer agent answers architecture questions from a curated engineering KnowledgeBase first, then drills into live source via a read-only GitHub MCP server (stdio sidecar) when RAG results are insufficient — back-filling what it reads into the KB with _rag_ingest so the vector store grows richer with each session.

User (chat UI)
    │  POST /api/deployments/agent-orca-system/senior-programmer-chat/execute
    ▼
┌──────────────────────────────────────────────────────────────────────┐
│  senior-programmer  (AgentDeployment: chat, warm pool 1)              │
│  tools: github-mcp-get-file-contents, github-mcp-search-code,        │
│         github-mcp-list-commits, github-mcp-get-commit, …            │
│                                                                      │
│  1. _rag_search(agent-orca-codebase, query) ────────────────────────┐ │
│  2. If needed: search_code / get_file_contents (live)              │ │
│  3. _rag_ingest(read content)  ←───────────────────────────────────┘ │
│                                                                      │
│  agent-orca-codebase KnowledgeBase (Qdrant, 2Gi)                     │
│    ingested at deploy from a handbook ConfigMap; re-synced hourly    │
└──────────────────────────────────────────────────────────────────────┘

What it shows

  • MCP stdio sidecar: the official GitHub MCP server (ghcr.io/github/github-mcp-server) runs read-only inside the agent pod (--read-only --tools <allow-list>). The model-router mounts the image via an image volume and fork/execs the binary; credentials (GITHUB_PERSONAL_ACCESS_TOKEN) are injected through envFrom (secretKeyRef), never mcpConfig.auth (rejected by the webhook for stdio transport).
  • _rag_search + GitHub MCP combination: the agent consults the handbook KB first and falls back to live search_code/get_file_contents only when RAG is insufficient.
  • _rag_ingest back-fill: after reading a file via the GitHub MCP, the agent persists a summary into the KB so subsequent turns hit RAG first.
  • Warm-pool chat agent: inputMode: http, warmPoolSize: 1, with checkpoint/resume.

Prerequisites ​

  • GitHub PAT with repo (read) scope. Set via the AGENT_ORCA_GITHUB_TOKEN env var (Skaffold) or --set githubToken=ghp_... (Helm). The token is placed in the github-mcp-token Secret and never committed.
  • default ModelSelector + ollama-embed embedding selector (enable ollama-embeddings in charts/model-providers/values.yaml and deploy Ollama — same prerequisite as the other RAG demos).
  • The openai-reference:latest agent image (built + kind-loaded by skaffold dev).

Deploy / Remove ​

bash
# Skaffold (token read from AGENT_ORCA_GITHUB_TOKEN env var)
export AGENT_ORCA_GITHUB_TOKEN=ghp_YOUR_TOKEN
skaffold run -p demo-programming-agent

# or Helm
helm install programming-agent charts/demos/programming-agent -n agent-orca-system \
  --set githubToken=ghp_YOUR_TOKEN

kubectl get knowledgebase agent-orca-codebase -n agent-orca-system -w
kubectl get pods -n agent-orca-system -l agentorca.io/deployment=senior-programmer-chat -w

helm uninstall programming-agent -n agent-orca-system

Chat endpoint: POST /api/deployments/agent-orca-system/senior-programmer-chat/execute

Resources ​

NameKindPurpose
github-mcp-tokenSecretGitHub PAT (repo read scope) from githubToken value
programming-agent-handbookConfigMapEngineering handbook ingested into the KB
github-mcpMCPServerRead-only GitHub MCP stdio sidecar
github-mcp-<tool>Tool (×6)Auto-created child Tool CRs
agent-orca-codebaseKnowledgeBaseQdrant vector store of the handbook (ollama-embed)
senior-programmerAgentSenior-engineer persona, openai-reference, http warm-pool
senior-programmer-chatAgentDeploymentChat endpoint, warm pool 1

Penetration Testing ​

An autonomous penetration testing agent that discovers vulnerabilities, correlates them with known CVEs, safely validates exploitability, and generates interactive executive reports. Demonstrates security assessment capabilities with guardrails to prevent unauthorized scanning.

What it shows:

  • Multi-MCP orchestration: CVE lookup, network scanning, vulnerability detection, exploit validation, and report rendering MCP servers work together
  • CVE correlation: Vulnerability findings are matched against the simulated CVE knowledge base
  • Safe exploitation: The exploit validator performs read-only evidence collection only — NO actual exploitation is performed
  • Interactive executive dashboard: report-mcp-render-executive-summary creates a risk score gauge and severity matrix
  • GuardrailPolicy: Security controls block scanning of internal IP ranges and destructive commands
  • MCP Apps: Each security tool renders an interactive HTML dashboard via sandboxed iframe
  • KnowledgeBase: Findings persist in pentest-findings-kb for historical tracking
User (chat UI)
    │  POST /api/deployments/agent-orca-system/pentest-chat/execute
    ▼
┌─────────────────────────────────────────────────────────────────────────┐
│  pentest-orchestrator  (AgentDeployment: pentest-chat)                  │
│  tools: cve-mcp-*, network-mcp-*, vuln-mcp-*, exploit-mcp-*, report-mcp-*│
└──────────┬─────────────────────┬─────────────────────┬──────────────────┘
           │ MCP HTTP            │ MCP HTTP            │ MCP HTTP
           ▼                     ▼                     ▼
┌─────────────────┐  ┌─────────────────┐  ┌─────────────────┐  ┌─────────────────┐
│  cve-mcp        │  │  network-mcp    │  │  vuln-mcp       │  │  report-mcp     │
│  (search,       │  │  (scan-target,  │  │  (scan-host)    │  │  (render-exec   │
│   details)      │  │   enumerate)    │  │                 │  │   -summary)     │
└─────────────────┘  └────────┬────────┘  └────────┬────────┘  └─────────────────┘
                              │                     │
                              ▼                     ▼
                    ┌─────────────────┐  ┌─────────────────┐
                    │  exploit-mcp    │  │  KnowledgeBases │
                    │  (validate-vuln)│  │  cve-knowledge, │
                    │  READ-ONLY      │  │  pentest-findings│
                    └─────────────────┘  └─────────────────┘

Deploy / Remove ​

bash
# Skaffold
skaffold run -p demo-pen-test

# or Helm
helm install demo-pen-test charts/demos/demo-pen-test -n agent-orca-system

# Wait for the warm pod:
kubectl get pods -n agent-orca-system -l agentorca.io/deployment=pentest-chat -w

helm uninstall demo-pen-test -n agent-orca-system

Demo Targets ​

The network and vuln MCP servers include simulated targets for safe testing (demonstration only — not real vulnerable systems):

  • web-victim.example.com — Web server with Apache Tomcat 8.5.19 (VULNERABLE to CVE-2024-29944)
  • api-victim.example.com — API server with nginx 1.24.0
  • db-victim.example.com — Database server with MySQL/PostgreSQL

Scenarios ​

Scenario A — Full penetration test

"Perform a penetration test on web-victim.example.com"

  1. Agent calls network-mcp-scan-target → port scan results with service detection; network scan iframe renders
  2. Agent calls vuln-mcp-scan-host → vulnerability findings; vuln scan iframe renders with severity matrix
  3. Agent calls cve-mcp-search-cve for "Tomcat", then cve-mcp-get-cve-details for CVE-2024-29944
  4. Agent calls exploit-mcp-validate-vuln → safe validation results; validation iframe shows exploit evidence
  5. Agent calls report-mcp-render-executive-summary → executive dashboard with risk score gauge and findings

Scenario B — CVE research

"What are the details of CVE-2024-45269?"

  1. Agent calls cve-mcp-get-cve-details with CVE ID
  2. CVE details iframe renders with CVSS score, vector, and references

Scenario C — Specific port scan

"Scan ports 22,80,443 on api-victim.example.com"

  1. Agent calls network-mcp-scan-target with custom port list
  2. Scan results iframe shows open/closed status per port

Security Controls ​

ControlImplementation
GuardrailPolicy blocks internal IPsBlocks 10.x, 172.16-31.x, 192.168.x, localhost, 127.0.0.1
GuardrailPolicy blocks destructive commandsBlocks rm -rf, delete, meterpreter, reverse shell, etc.
Exploit MCP is read-onlyOnly performs banner/version checks — NO actual exploitation
MCP Apps sandboxedsandbox="allow-scripts" with CSP connect-src 'none'

Resources ​

NameKindPurpose
cve-mcp-serverDeployment + ServiceCVE database lookup MCP server
cve-mcpMCPServerCVE tools with MCP Apps enabled
network-mcp-serverDeployment + ServiceNetwork scanning MCP server
network-mcpMCPServerNetwork tools with MCP Apps enabled
vuln-mcp-serverDeployment + ServiceVulnerability scanning MCP server
vuln-mcpMCPServerVuln tools with MCP Apps enabled
exploit-mcp-serverDeployment + ServiceSafe validation MCP server (READ-ONLY)
exploit-mcpMCPServerValidation tools
report-mcp-serverDeployment + ServiceExecutive report MCP server
report-mcpMCPServerReport rendering with MCP Apps
cve-knowledge-kbKnowledgeBaseCVE knowledge for RAG
pentest-findings-kbKnowledgeBasePersistent findings storage
pentest-orchestratorAgentCombined security agent with guardrails
pentest-chatAgentDeploymentChat endpoint with warm pool
pentest-guardrailsGuardrailPolicySecurity controls for authorized scanning

Released under the Apache 2.0 License.