/evo-stats

Framework L2+ Production low usage

/evo-stats

Overview

/evo-stats is a production command in the Framework category of the Prismatic Platform. It provides comprehensive evolution statistics and metrics reporting, giving operators deep visibility into the platform's autonomous evolution trajectory across all 18 generations. The command aggregates data from every evolution cycle, quality gate checkpoint, and fitness evaluation to produce actionable intelligence about the platform's evolutionary health.

The Prismatic Platform operates on a biological evolution metaphor where the codebase, agents, patterns, and quality standards undergo continuous generational improvement. Each generation represents a measurable fitness improvement across multiple dimensions: code quality, test coverage, agent capability, pattern diversity, and architectural coherence. The /evo-stats command is the primary observability tool for this evolutionary process, transforming raw evolution data into structured reports that inform strategic decisions.

Understanding evolution statistics is essential for maintaining the platform's upward trajectory. Without visibility into fitness trends, mutation rates, and selection pressures, the evolution system risks stagnation or regression. The /evo-stats command surfaces early warning signals when fitness gains plateau, when specific quality domains lag behind others, or when evolution cycles are not producing meaningful improvements.

This command operates under the L2+ authority level and is executed by the evolution-orchestrator agent. It is part of the platform's 216-command slash command registry, built on the AIAD (Autonomous Intelligence Agent Design) standard.

Architecture

The evolution statistics system aggregates data from multiple platform subsystems into a unified reporting pipeline:

Evolution Engine --> Fitness Evaluator --> Metrics Aggregator --> Report Generator
      |                    |                      |                     |
 Generation DB       Quality Scores          Time Series           Visualization
      |                    |                      |                     |
 Gen 1..18 Data     13 Quality Domains      Trend Analysis        Charts/Tables
      \                    |                      /                     |
       --> Statistics Synthesizer --> Dashboard --> Output Formatter
                    |
              Anomaly Detector

Fitness Evaluator: Computes multi-dimensional fitness scores across the platform's 13 quality domains (Dialyzer, Credo, Compilation, DateTime Precision, Guard Functions, @impl Coverage, Memory Safety, Performance, Regression Prevention, Timing Patterns, TODO Management, Typespec Coverage, Unsafe Map Access). Each domain contributes a normalized score to the overall platform fitness.

Metrics Aggregator: Collects evolution metrics from all subsystems including the SEADF framework, quality gates, mycelial network, and Quality DNA persistence layer. Metrics are stored as time series for trend analysis.

Anomaly Detector: Monitors evolution metrics for anomalous patterns -- fitness regressions, stalled evolution cycles, quality domain divergence, or unusual mutation rates. Anomalies trigger alerts that surface in the report.

Report Generator: Produces structured reports in multiple formats (text, JSON, table, markdown) with configurable detail levels from executive summary to full diagnostic drill-down.

Usage

Quick Status Check

# Display current evolution status summary
/evo-stats

# Show current generation fitness
/evo-stats --current

# Brief one-line status
/evo-stats --brief

Detailed Analysis

# Full evolution history across all generations
/evo-stats --full-history

# Quality domain breakdown for current generation
/evo-stats --domains --verbose

# Fitness trend analysis over last 5 generations
/evo-stats --trend --generations=5

# Compare two specific generations
/evo-stats --compare --gen1=15 --gen2=18

Reporting

# Generate JSON report for CI/CD integration
/evo-stats --format=json --output=evolution-report.json

# Weekly evolution digest
/evo-stats --digest --period=7d

# Full evolution report with anomaly detection
/evo-stats --report --include-anomalies --format=markdown

Options & Parameters

OptionTypeDefaultDescription
--currentflagfalseShow only current generation statistics
--briefflagfalseOne-line summary of evolution status
--full-historyflagfalseComplete evolution history across all generations
--domainsflagfalseQuality domain breakdown with per-domain scores
--trendflagfalseFitness trend analysis with trajectory projection
--generationsinteger5Number of generations to include in trend analysis
--compareflagfalseCompare two generations side-by-side
--gen1integernoneFirst generation for comparison
--gen2integernoneSecond generation for comparison
--formatstringtextOutput format (text, json, table, markdown)
--outputstringstdoutOutput file path for report generation
--digestflagfalseGenerate periodic evolution digest
--periodstring7dTime period for digest generation
--include-anomaliesflagfalseInclude anomaly detection results
--reportflagfalseGenerate comprehensive evolution report
--verboseflagfalseInclude detailed metrics and diagnostics

Execution Flow

The /evo-stats command follows a structured 5-phase reporting pipeline:

  1. Data Collection: The command queries all evolution data sources including the generation database, quality gate results, fitness evaluation history, and mutation logs. Data is collected from both the runtime system (ETS tables) and persistent storage (Quality DNA files).

  2. Metric Computation: Raw data is transformed into computed metrics including fitness scores per domain, inter-generational deltas, moving averages, trend coefficients, and anomaly scores. All computations are deterministic and reproducible.

  3. Trend Analysis: Time-series analysis is applied to fitness trajectories. The system computes linear regression coefficients for each quality domain, identifies inflection points where fitness gain rates changed, and projects future trajectories based on current momentum.

  4. Anomaly Detection: Statistical anomaly detection identifies outliers in the evolution data. Sudden fitness drops, stalled evolution cycles, or domain-specific regressions are flagged with severity levels (INFO, WARNING, CRITICAL).

  5. Report Synthesis: All computed metrics, trends, and anomalies are synthesized into a structured report. The report format adapts to the requested output format and detail level.

Integration Points

ComponentIntegration TypeDescription
Evolution EngineData SourceGeneration data, mutation logs, selection results
Quality GatesData SourceGate pass/fail history, domain scores
Quality DNAPersistenceCross-session evolution state continuity
SEADFFrameworkSelf-evolving framework status and metrics
TelemetryMonitoringEvolution metrics event emission
Prismatic AgentsExecutionEvolution-orchestrator agent performs analysis
GitLab APIReportingEvolution reports published to GitLab milestones
AIAD RegistryDiscoveryCommand specification and agent binding

Best Practices

Monitor fitness trends, not absolute scores: A platform at 0.999 fitness has less room for improvement than one at 0.900. Focus on whether the trend is positive and whether gains are distributed across all quality domains rather than concentrated in easy wins.

Use domain breakdown for targeted improvement: When overall fitness stalls, the --domains view reveals which specific quality domains are lagging. This enables targeted evolution campaigns focused on the weakest domains.

Compare generations after major changes: After significant architectural changes or new feature integrations, use --compare to verify that the change did not degrade fitness in unexpected domains. Cross-cutting changes often have non-obvious quality impacts.

Enable anomaly detection in CI/CD: Include /evo-stats --include-anomalies --format=json in CI/CD pipelines to automatically detect evolution regressions. Anomalies with CRITICAL severity should block deployments.

Archive weekly digests: Generate and archive weekly evolution digests (--digest --period=7d) to maintain a historical record of the platform's evolutionary trajectory. This data is invaluable for long-term trend analysis and strategic planning.

Error Handling

ErrorCauseResolution
GENERATION_DATA_MISSINGRequested generation has no stored dataVerify generation number exists (current: Gen 18)
QUALITY_DNA_UNAVAILABLEQuality DNA persistence layer not accessibleCheck .claude/quality-dna/current-state.json
METRIC_COMPUTATION_TIMEOUTFull history analysis exceeds timeoutUse --generations to limit analysis scope
ANOMALY_DETECTOR_CALIBRATIONInsufficient data for statistical anomaly detectionRequires minimum 3 generations of data
FORMAT_UNSUPPORTEDRequested output format not availableUse supported formats: text, json, table, markdown

Advanced Usage

Custom Metric Dashboards

# Create a focused dashboard for specific domains
/evo-stats --domains=dialyzer,credo,compilation --trend --format=table

# Export evolution data for external visualization
/evo-stats --export --format=csv --include-raw-metrics

# Generate evolution heat map across all domains and generations
/evo-stats --heatmap --generations=all --format=html

Evolution Forecasting

# Project fitness trajectory for next 3 generations
/evo-stats --forecast --horizon=3 --confidence=0.80

# Identify evolution bottlenecks
/evo-stats --bottleneck-analysis --verbose

Integration with Autoevolve

The /evo-stats command is a critical input to the autoevolve system. Evolution statistics inform the mix autoevolve.mega command's strategy selection, helping it decide which quality domains to target and what mutation strategies to apply. When /evo-stats reports fitness stagnation in a domain, the autoevolve system increases mutation pressure in that domain.

Doctrine Compliance

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

  • NO MERCY: Zero tolerance for unmonitored evolution. Every evolution cycle must produce measurable, reported statistics. No blind evolution -- every generation must demonstrate its fitness contribution through quantified metrics.
  • NO DOUBTS: Full investigation before declaring fitness improvements. Statistics are computed from comprehensive data sources, not sampled or approximated. All reported metrics are deterministic and reproducible.

The evolution statistics system embodies the NABLA Infinity principle of provenance mandatory -- every fitness claim is traceable to specific quality domain measurements, and every trend projection includes explicit confidence intervals and methodology attribution.


Connect & Contribute

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