mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-26 16:04:02 +00:00
- Add Pi-Key WASM cryptographic module with mathematical constant sizing - Pi-sized (314 bits/40 bytes) identity keys - Euler-sized (271 bits/34 bytes) session keys - Phi-sized (161 bits/21 bytes) genesis keys - Ed25519 signing + AES-256-GCM encryption - Add comprehensive TypeScript lifecycle simulation (sim/) - 6 source files, 1,420 lines - Validates all 4 phases: Genesis → Growth → Maturation → Independence - Economic sustainability and phase transition testing - Performance optimizations - FxHashMap for 30-50% faster lookups in evolution/mod.rs - VecDeque for O(1) front removal - Batched Q-learning updates in security/mod.rs - Fixed borrow checker error in process_batch_updates() - Add benchmarks and documentation - BENCHMARKS.md with performance metrics - PERFORMANCE_OPTIMIZATIONS.md with details - docs/FINAL_REPORT.md comprehensive summary 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
72 lines
No EOL
1.7 KiB
TypeScript
72 lines
No EOL
1.7 KiB
TypeScript
/**
|
|
* Report Generation
|
|
* Generates comprehensive JSON reports of simulation results
|
|
*/
|
|
import { Network } from './network.js';
|
|
import { MetricsCollector, PhaseMetrics } from './metrics.js';
|
|
export interface SimulationReport {
|
|
metadata: {
|
|
timestamp: string;
|
|
simulationVersion: string;
|
|
duration: number;
|
|
totalTicks: number;
|
|
};
|
|
configuration: {
|
|
genesisNodeCount: number;
|
|
targetNodeCount: number;
|
|
nodesPerTick: number;
|
|
taskGenerationRate: number;
|
|
baseTaskReward: number;
|
|
};
|
|
summary: {
|
|
phasesCompleted: number;
|
|
totalPassed: boolean;
|
|
phasesPassed: number;
|
|
phasesTotal: number;
|
|
finalNodeCount: number;
|
|
finalPhase: string;
|
|
};
|
|
phases: {
|
|
[key: string]: PhaseMetrics;
|
|
};
|
|
finalState: {
|
|
nodeCount: number;
|
|
genesisNodes: any;
|
|
economy: any;
|
|
network: any;
|
|
topPerformers: any[];
|
|
};
|
|
validation: {
|
|
overallPassed: boolean;
|
|
criticalIssues: string[];
|
|
warnings: string[];
|
|
successes: string[];
|
|
};
|
|
}
|
|
export declare class ReportGenerator {
|
|
private network;
|
|
private metrics;
|
|
private startTime;
|
|
constructor(network: Network, metrics: MetricsCollector);
|
|
/**
|
|
* Generate comprehensive simulation report
|
|
*/
|
|
generateReport(): SimulationReport;
|
|
/**
|
|
* Get top performing nodes
|
|
*/
|
|
private getTopPerformers;
|
|
/**
|
|
* Collect all validation issues
|
|
*/
|
|
private collectValidation;
|
|
/**
|
|
* Save report to file
|
|
*/
|
|
saveReport(filepath: string): void;
|
|
/**
|
|
* Print summary to console
|
|
*/
|
|
printSummary(): void;
|
|
}
|
|
//# sourceMappingURL=report.d.ts.map
|