Plug-and-Play AIOps Governance: Building a Human-on-the-Loop Operations Center (Part 2)
How dynamic Spring AI routing agents, Milvus RAG evaluation criteria, and an 8 GB NVIDIA Jetson Orin Nano turn raw OpenTelemetry traces into governed, auditable incident response—with zero hand-written code.
- Monitored Microservice & Adaptive UI: htotapally/geo-time-adaptive-agent
- Autonomous Trace Inspector & Remediation MCP Server: htotapally/jaeger-aiops-guardian
- AIOps Governance Orchestrator & Operations Center (Part 2): htotapally/aiops-governance-orchestrator
1. Recap: Why Governance Matters Beyond Auto-Remediation
In Part 1, we split workloads across a 64 GB Windows Docker Desktop host and an 8 GB NVIDIA Jetson Orin Nano GPU node (192.168.1.171:11434 running qwen2.5:3b and nomic-embed-text). When Jaeger captured a 1,024 ms trace (459eed2edf029bfc8a36ac609145caf1) breaching our 800 ms SLO, jaeger-aiops-guardian pinpointed timeapi.io and tripped its circuit breaker—dropping tail latency from 386 ms to < 5 ms via deterministic java.time.ZoneId fallback.
However, blindly auto-remediating every anomaly does not scale to production fleets. Different Spring Boot microservices have different SLO thresholds, runbook rules, and risk tolerances—and hardcoded if/else orchestrators quickly become brittle.
In Part 2, we built aiops-governance-orchestrator (:8085) from scratch around four core principles:
- Easy Application Onboarding: Register any Spring Boot service via YAML or the Web UI with custom SLOs, allowed actions, and approval policies.
- Per-App Evaluation Criteria in Milvus RAG: Upload Markdown, text, or JSON runbooks embedded via
nomic-embed-textso each app is evaluated against its own operational rules. - Dual Plug-and-Play Routing Patterns: Dynamic specialist selection for both Runbook Analysts and Remediation Executors using Spring's
@Orderbean discovery. - Human-on-the-Loop (HITL) Operations Center: A lightweight Tailwind + Alpine.js web console at
http://localhost:8085that pauses high-impact actions for operator sign-off while recording a completeagentTimeline.
2. Hybrid Architecture & Dual Routing Patterns
Rather than wiring brittle point-to-point calls between agents, every specialist reads from and appends its structured findings to an immutable IncidentCase shared blackboard. TelemetryScoutAgent inspects OpenTelemetry spans from Jaeger and dynamically routes the incident through two plug-and-play Spring component registries:
- Routing Pattern #1 (
RunbookAnalystAgent): Evaluates incomingSpanSignallists in@Orderpriority—dispatching security-sensitive paths toSecurityAnomalyAnalystAgent(@Order(5)), HTTP 5xx/exception traces toErrorRunbookAnalyst(@Order(10)), and pure latency breaches toLatencyRunbookAnalyst(@Order(20)). - Routing Pattern #2 (
RemediationAgent): OncePolicyGatekeeperAgent(or a human operator) approves the recommended action, the orchestrator dynamically selects the matching executor (CircuitBreakerRemediationAgentorCacheWarmupRemediationAgent).
aiops-governance-orchestrator (:8085), featuring dual plug-and-play routing registries, Milvus RAG criteria storage, PostgreSQL state, and an optional Bifrost AI Gateway (:18080).3. Per-App Evaluation Criteria with Milvus RAG
To ensure each onboarded Spring Boot application is judged by its own operational runbooks rather than generic prompts, CriteriaKnowledgeService chunks uploaded runbook documents, embeds them into 768-dimensional vectors using nomic-embed-text on the Jetson Orin GPU, and stores them in Milvus (governance_criteria_rag) tagged with appName.
# Upload per-app evaluation criteria into Milvus via Jetson Orin (nomic-embed-text)
$runbook = @{
source = "geo-time-slo-runbook.md"
content = "Rule 1: If nominatim lookup-location spans exceed 400ms, recommend CLEAR_CACHE on nominatim.`n`nRule 2: If timeapi get-time-zone spans exceed 800ms or fail with HTTP 5xx, recommend OPEN_CIRCUIT_BREAKER on timeapi."
} | ConvertTo-Json
Invoke-RestMethod -Method Post -Uri "http://localhost:8085/api/governance/apps/geo-time-mcp-server/criteria" -ContentType "application/json" -Body $runbook
During every scan, the selected analyst queries Milvus filtered strictly by appName == policy.getAppName(), retrieving the exact runbook rules before invoking qwen2.5:3b for structured root-cause diagnosis.
4. Proving Zero-Touch Extensibility: Adding a 20-Line Security Agent
The true test of a plug-and-play architecture is adding a brand-new capability without modifying a single line of existing orchestrator code. To prove this, we dropped SecurityAnomalyAnalystAgent into the agent package at @Order(5)—giving it higher priority than both error and latency analysts whenever a Jaeger span touches an /admin or /auth path:
@Component
@Order(5) // Highest priority: evaluated before ErrorRunbookAnalyst (@Order 10) and LatencyRunbookAnalyst (@Order 20)
public class SecurityAnomalyAnalystAgent implements RunbookAnalystAgent {
private final ChatClient chatClient;
private final CriteriaKnowledgeService criteriaKnowledgeService;
private record LlmDiagnosis(String severity, String summary, String rootCauseComponent, String recommendedAction) {}
public SecurityAnomalyAnalystAgent(ChatClient.Builder builder, CriteriaKnowledgeService criteriaKnowledgeService) {
this.chatClient = builder.build();
this.criteriaKnowledgeService = criteriaKnowledgeService;
}
@Override
public String analystType() { return "SecurityAnomalyAnalystAgent"; }
@Override
public boolean supports(List<SpanSignal> signals) {
return signals.stream().anyMatch(s ->
s.operationName().toLowerCase().contains("admin")
|| s.operationName().toLowerCase().contains("auth")
|| s.operationName().toLowerCase().contains("forbidden")
);
}
@Override
public IncidentCase analyze(AppPolicy policy, List<SpanSignal> signals) {
String criteria = criteriaKnowledgeService.retrieveAppCriteria(
policy.getAppName(), signals.toString(), policy.getEvaluationCriteria()
);
LlmDiagnosis d = chatClient.prompt()
.user("Security Analyst for " + policy.getAppName() + ". Criteria:\n" + criteria
+ "\nSet rootCauseComponent to timeapi or nominatim. Pick action from " + policy.getAllowedActions()
+ ". Spans: " + signals)
.call()
.entity(LlmDiagnosis.class);
return IncidentCase.detected(policy.getAppName(), signals)
.withAnalysis(analystType(), d.severity(), d.summary(), d.rootCauseComponent(), d.recommendedAction());
}
}
After rebuilding the container and triggering a request to POST /api/admin/remediate, TelemetryScoutAgent captured the http post /api/admin/remediate span (traceId: a0fef50d73d4990aab6f1945a75047c7) and automatically routed it to SecurityAnomalyAnalystAgent:
TelemetryScoutAgent detected http post /api/admin/remediate, dynamically selected SecurityAnomalyAnalystAgent, and paused at PolicyGatekeeperAgent for operator sign-off.SecurityAnomalyAnalystAgent required zero edits to TelemetryScoutAgent, PolicyGatekeeperAgent, GovernancePipelineService, or the frontend UI. Spring's dependency injection automatically discovered the new @Order(5) bean and placed it at the front of the routing chain.
5. Human-on-the-Loop Operations Center in Action
Opening http://localhost:8085 brings the entire governance loop into a single dark-mode dashboard. Operators can inspect all active plug-and-play agents, onboard new Spring Boot applications, upload Milvus criteria files, and review the full four-step agentTimeline before clicking Approve & Execute Remediation:
:8085) after approving incident INC-0A340B71—displaying the complete handoff from TelemetryScoutAgent → SecurityAnomalyAnalystAgent → PolicyGatekeeperAgent → CircuitBreakerRemediationAgent (REMEDIATED).6. Looking Ahead (Part 3): Evolving Toward an External Registry
In Part 2, keeping the application and agent registry inside aiops-governance-orchestrator gave us rapid iteration and tight integration with Spring's @Order lifecycle. As the platform scales across multiple teams and production replicas, externalizing the registry is the natural next architectural phase:
| Evolution Phase | Architecture Pattern | Key Capabilities Unlocked |
|---|---|---|
| Phase 1 (Part 2) | In-App Registry + Spring @Order Beans |
Single-node deployment, zero-friction local testing, in-process specialist routing. |
| Phase 2 (Persistence) | Externalized Policy Store (PostgreSQL :5433) |
Persists onboarded apps, SLOs, and IncidentCase audit logs across container restarts and replicas. |
| Phase 3 (Federation) | External Agent & MCP Control Plane (PostgreSQL + Bifrost :18080) |
Standalone specialist agents self-register over HTTP/MCP while Bifrost centralizes LLM & MCP tool governance. |


