1 agents

aiad-dashboard-commander

aiad-dashboard-commander

Overview

The AIAD Dashboard Commander operates as an L3 strategic command agent providing visual monitoring and operational oversight for the entire AIAD agent ecosystem within the Prismatic Platform. This agent manages real-time dashboards that display agent health status, execution metrics, quality gate compliance, and inter-agent communication patterns. Operators use these dashboards to maintain situational awareness across 400+ autonomous agents operating simultaneously.

Effective monitoring of an autonomous agent ecosystem requires more than simple uptime checks. The AIAD Dashboard Commander aggregates telemetry data from every active agent, correlates execution patterns across domains, and surfaces anomalies that indicate emerging issues before they escalate into failures. The dashboards render through Phoenix LiveView, providing real-time updates without page refreshes, and support drill-down navigation from ecosystem-wide overviews to individual agent execution traces.

Operational Domain

The Dashboard Commander operates across all AIAD domains, serving as the primary observability interface for the agent ecosystem. It collects metrics from agent registries, execution pipelines, quality gates, and the mycelial network to present a unified operational picture. This cross-cutting visibility makes it essential for both routine monitoring and incident response coordination.

Key Capabilities

  • Real-time agent health monitoring displaying status, uptime, and execution metrics for all registered agents with automatic anomaly highlighting when agents deviate from baseline performance
  • Cross-domain correlation views that map relationships between agent executions, showing how triggers in one domain propagate effects through the mycelial network to other domains
  • Quality gate compliance dashboards tracking compilation warnings, test coverage, Credo violations, and Dialyzer results across all platform applications in real-time
  • Historical trend analysis with configurable time windows that reveal performance degradation patterns, quality drift, and resource utilization trends across evolution generations
  • Incident response coordination providing focused views during crisis situations that filter noise and highlight only the agents and metrics relevant to the current incident

Technical Architecture

The Dashboard Commander is implemented as a Phoenix LiveView application backed by a GenServer that aggregates telemetry events from across the agent ecosystem. The architecture separates data collection (telemetry subscription and aggregation) from data presentation (LiveView rendering), enabling the aggregation layer to operate independently of whether any dashboard clients are connected.

defmodule PrismaticWeb.Live.DashboardLive do
  use PrismaticWeb, :live_view

  @refresh_interval_ms 1_000

  @impl true
  def mount(_params, _session, socket) do
    if connected?(socket) do
      :timer.send_interval(@refresh_interval_ms, :refresh)
      PrismaticAgents.DashboardAggregator.subscribe()
    end
    {:ok, assign(socket, agents: load_agent_status(), metrics: load_metrics())}
  end

  @impl true
  def handle_info(:refresh, socket) do
    {:noreply, assign(socket,
      agents: load_agent_status(),
      metrics: load_metrics(),
      last_updated: DateTime.utc_now()
    )}
  end
end

The telemetry aggregation layer subscribes to events under the [:prismatic_agents, :*, :*] namespace pattern, capturing agent lifecycle events, execution metrics, quality gate results, and error conditions. Events are aggregated into rolling time windows (1 minute, 5 minutes, 1 hour) using ETS-backed counters for O(1) increment operations. The aggregation layer maintains per-agent state maps that track health status, execution counts, error rates, and last-seen timestamps.

The LiveView rendering layer uses server-sent updates to push dashboard changes to connected clients without polling. When the aggregation layer detects a significant state change (agent health transition, quality gate failure, error spike), it broadcasts to all connected LiveView processes, ensuring real-time visibility across all monitoring consoles.

Decision Framework

The Dashboard Commander makes presentation decisions about which information to surface and how to prioritize it based on operational context.

Operational StateDashboard BehaviorPriority View
Normal operationsFull ecosystem overviewHealth grid + metric trends
Quality gate failureHighlight failing domainsFailing gates + affected agents
Agent health degradationAnomaly spotlightDegraded agents + correlation map
Deployment in progressDeployment trackingCanary metrics + rollback readiness
Incident responseCrisis focus modeAffected systems + escalation status
Evolution cycle activeEvolution progressFitness changes + validation results

Stale data detection activates automatically when a telemetry feed lapses beyond twice its expected interval. Stale indicators appear next to affected metrics, preventing operators from making decisions based on outdated information. This staleness detection is mandatory under the NO MERCY doctrine -- the dashboard must never present potentially stale data without explicit warning.

Authority Level

L3 - Strategic Command. The Dashboard Commander holds multi-domain coordination authority for monitoring and observability across the entire agent ecosystem. This authority permits read access to telemetry streams from all domains, enabling the cross-cutting visibility required for ecosystem-wide monitoring. The agent does not hold write authority -- it observes and displays but does not modify system state. The L3 designation enables coordination with other L3 agents to provide context-aware dashboard views during coordinated operations.

Coordination

AgentRelationshipPurpose
aiad-hot-reload-coordinatorReload MonitorDisplays hot reload events and validates post-reload agent health
alert-management-specialistAlert VisualizerRenders alert timelines and escalation status on monitoring dashboards
aiad-verification-engineVerification DisplayShows verification results and specification compliance status

Performance Characteristics

MetricCurrentTargetDescription
Dashboard refresh rate1s< 2sLiveView update interval for connected clients
Telemetry processing latency< 50ms< 100msTime from event emission to aggregation
Agent status accuracyReal-timeReal-timeFreshness of displayed agent health status
Concurrent dashboard clients> 20> 10Simultaneous LiveView connections supported
Historical data depth24hr rolling24hrTime window for trend analysis views
Stale data detection2x interval2x intervalStaleness threshold relative to expected feed rate

Enforcement

All dashboard operations are governed by the NO MERCY, NO DOUBTS doctrine. Dashboard data must reflect actual system state with no smoothing or averaging that could mask problems. Stale data indicators activate automatically when telemetry feeds lag beyond acceptable thresholds. No dashboard view may suppress error states, and all critical metric breaches trigger visual alerts that persist until the underlying condition is acknowledged and resolved. The dashboard code itself is subject to the same quality standards as any platform code: zero compilation warnings, comprehensive typespecs, and full test coverage of LiveView event handling.

Command Interface

CommandDescriptionAuthority
/dashboard statusDisplay current dashboard health and connected clientsL3
/dashboard refreshForce refresh of all telemetry aggregation dataL3
/dashboard crisisSwitch to crisis mode focused viewsL3
/dashboard exportExport dashboard metrics for reportingL3

Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL