/ecosystem

Framework L2+ Production low usage

/ecosystem

Overview

/ecosystem is a production command in the Framework category of the Prismatic Platform that provides a comprehensive real-time overview of the entire platform ecosystem, including all umbrella applications, agents, commands, quality metrics, and infrastructure status. The platform consists of nearly 100 OTP applications, over 400 AIAD agents, and 228 slash commands, making a unified visibility tool essential for understanding the health and state of the system at any point in time.

This command operates under the L2+ authority level and is executed by the ecosystem-coordinator agent. It is part of the platform's 216-command slash command registry, built on the AIAD (Autonomous Intelligence Agent Design) standard. The ecosystem coordinator agent aggregates status information from multiple sources, including OTP application supervisors, the AIAD registry, the quality gate system, and the telemetry infrastructure.

Understanding the ecosystem as a whole is critical for making informed decisions about where to invest development effort, which components are healthy, and where bottlenecks or degradation might be occurring. The /ecosystem command replaces the need to manually query multiple subsystems and synthesizes their outputs into a single coherent view.

Architecture

The ecosystem monitoring system is structured as a multi-source aggregation pipeline that collects status data from every major platform subsystem and presents it through a unified interface.

Data Collection Architecture

SourceMethodData Provided
OTP ApplicationsApplication.started_applications/0App list, versions, dependency tree
AIAD RegistryRegistry ETS scanAgent count, command count, status
Quality Gatesmix quality.gates --jsonScore per domain, overall composite
Telemetry:telemetry event aggregationRequest rates, error rates, latencies
Git Repositorygit ls-treeFile counts, recent changes, LOC
Supervision TreesSupervisor.which_children/1Process health, restart counts
ETS Tables:ets.info/1Memory usage, table sizes

Aggregation Pipeline

OTP Apps ----+
AIAD Registry --+
Quality Gates ---+--> Aggregator --> Scorer --> Formatter --> Output
Telemetry ------+         |
Git Repo -------+         v
Supervision ----+    Health Engine
ETS Tables -----+    (composite score)

Health Scoring Model

The ecosystem health score is a weighted composite of individual subsystem health indicators.

DomainWeightHealthy ThresholdCritical Threshold
Compilation20%0 warningsAny warning
Test Suite20%100% pass< 95% pass
Quality Score20%95+ / 100< 80 / 100
Agent Availability15%> 98% agents responsive< 90% agents responsive
Process Health15%0 abnormal restarts> 5 restarts in 10 min
Memory Usage10%< 80% of allocation> 95% of allocation

Usage

# Full ecosystem overview
/ecosystem

# Show only application status
/ecosystem --apps

# Show only agent status
/ecosystem --agents

# Show only quality metrics
/ecosystem --quality

# Show infrastructure health
/ecosystem --infrastructure

# Generate machine-readable output
/ecosystem --format=json

# Show detailed view of a specific subsystem
/ecosystem --detail=prismatic_web

# Compare ecosystem state over time
/ecosystem --history --since="2026-01-01"

# Show dependency graph
/ecosystem --deps

# Quick health check only
/ecosystem --health

Options

OptionTypeDefaultDescription
--appsflagfalseShow only umbrella application status
--agentsflagfalseShow only AIAD agent status
--qualityflagfalseShow only quality gate metrics
--infrastructureflagfalseShow infrastructure health metrics
--detailstringnoneDetailed view of a specific subsystem
--depsflagfalseDisplay dependency graph
--healthflagfalseQuick composite health check
--historyflagfalseShow ecosystem metrics over time
--sincedate30 days agoStart date for history view
--formatstringtextOutput format: text, json, markdown, table
--verboseflagfalseInclude per-component details
--sortstringnameSort order: name, health, size, activity
--filterstringnoneFilter components by pattern

Execution Flow

  1. Source Discovery: The ecosystem coordinator identifies all available data sources by scanning OTP applications, the AIAD registry, and the infrastructure configuration.

  2. Parallel Collection: Status data is collected from all sources in parallel using Task.async_stream for optimal performance. Each source has a configurable timeout (default 5 seconds) to prevent slow sources from blocking the overall report.

  3. Data Normalization: Raw data from heterogeneous sources is normalized into a common schema with standardized health indicators (healthy, degraded, critical, unknown).

  4. Health Scoring: The composite health score is calculated from individual subsystem scores using the weighted model described in the Architecture section.

  5. Trend Analysis: If historical data is available, trends are computed for key metrics including quality score, test pass rate, agent availability, and compilation status.

  6. Report Generation: The normalized data, health scores, and trend analysis are formatted into the requested output format.

  7. Telemetry Emission: The ecosystem status itself is recorded as a telemetry event for historical tracking.

Integration Points

ComponentRelationshipDetails
Prismatic AgentsExecuted by ecosystem-coordinatorAggregates status from all agents
AIAD RegistryAgent and command inventorySource of agent/command counts and status
Quality GatesQuality metrics source13 quality domains with scores
TelemetryMetrics aggregationRuntime performance and health metrics
SEADFEvolution statusSelf-evolution subsystem health
Session LifecycleSession trackingActive session count and health
Git TreesCodebase metricsFile counts, LOC, recent changes
OTP SupervisionProcess healthSupervisor tree status and restart counts

Best Practices

Start sessions with ecosystem check. Running /ecosystem --health at the beginning of a development session provides immediate awareness of the platform state. This is especially valuable after pulling changes from other contributors.

Monitor trends, not just snapshots. The --history option reveals whether the ecosystem is improving or degrading over time. A slowly declining quality score that is still above threshold is more concerning than a momentary dip that recovers quickly.

Use detail mode for investigation. When the overview shows a degraded subsystem, use --detail=subsystem_name to drill into the specific component and identify the root cause.

Integrate with CI/CD. Use /ecosystem --format=json --health as a CI pipeline stage to automatically block deployments when the ecosystem health drops below acceptable levels.

Track agent availability. With over 400 agents, availability monitoring catches configuration issues, missing dependencies, and process crashes that might otherwise go unnoticed until a dependent command fails.

Error Handling

ErrorCauseResolution
source_timeoutA data source did not respond within timeoutSource is marked as "unknown" in report; investigate the specific subsystem
no_applications_runningOTP applications not startedEnsure the Prismatic application is running (iex -S mix)
aiad_registry_unavailableAIAD registry ETS table not initializedRun ./.aiad/bin/aiad index to rebuild the registry
quality_gates_failedQuality gate check command returned errorRun mix quality.gates directly to see detailed errors
insufficient_historyNot enough historical data for trend analysisAccumulate more data points or reduce --since window
invalid_subsystem--detail references non-existent subsystemUse --apps to list valid subsystem names

Advanced Usage

Ecosystem Comparison Across Branches

Compare ecosystem health between the current branch and main to assess the impact of in-progress work.

# Snapshot current state
/ecosystem --format=json --output=branch-state.json

# Switch to main and compare
git stash && git checkout main
/ecosystem --format=json --output=main-state.json
git checkout - && git stash pop

# Compare the two snapshots
/ecosystem --compare=main-state.json,branch-state.json

Custom Health Thresholds

Override default health thresholds for specific environments or quality standards.

# Stricter thresholds for production readiness
/ecosystem --health --threshold="quality:98,tests:100,warnings:0"

# Relaxed thresholds for development branches
/ecosystem --health --threshold="quality:80,tests:90"

Automated Ecosystem Reports

Generate periodic ecosystem reports for stakeholder communication.

# Weekly ecosystem report
/ecosystem --format=markdown --history --since="7 days ago" --output=weekly-report.md

# Monthly comprehensive report
/ecosystem --format=html --verbose --history --since="30 days ago" --output=monthly-report.html

SEADF Integration

Feed ecosystem data directly into the SEADF evolution engine for autonomous improvement targeting.

/ecosystem --format=json | mix seadf.ingest --source=ecosystem-status

Doctrine Compliance

All commands operate under the NO MERCY, NO DOUBTS doctrine:

  • NO MERCY: Zero tolerance for incomplete execution or quality violations. Ecosystem monitoring exposes every quality gap without hiding uncomfortable truths.
  • NO DOUBTS: Full investigation before action, evidence-based results. All health scores are computed from verifiable data sources with full provenance.
  • /seadf - Self-Evolving Autonomous Development Framework control and monitoring
  • /agents - List and manage agent ecosystem with status monitoring
  • /quality-gates - Enforce quality gate checkpoints with zero-warning compilation validation
  • /analyze - System architecture analysis with dependency mapping
  • /git-trees - Git tree-based codebase exploration at ~100x speed improvement
  • /inject - AIAD injection coordination for pattern and agent deployment
  • /integrate - Cross-system integration design and implementation

Connect & Contribute

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