persistence-agent
Persistent homology for agent behavior profiling — topological fingerprints.
This crate computes persistent homology from point clouds representing agent state trajectories and maps topological invariants to behavior archetypes.
Quick Start
use AgentProfiler;
// Agent observations over time (e.g. 2D state vectors)
let obs = vec!;
let profiler = new;
let profile = profiler.profile.unwrap;
println!;
println!;
Pipeline
- PointCloud — embed observations, compute distances
- VietorisRipsComplex — build filtration from pairwise distances
- BoundaryMatrix — mod-2 boundary matrix + column reduction
- Barcode — extract persistence pairs and Betti curves
- AgentProfiler — classify behavior into archetypes
Archetypes
| Archetype | Topological Signature |
|---|---|
| Steady | Single persistent cluster (β₀ = 1) |
| Explorer | Many short-lived loops |
| Volatile | Many disconnected components |
| Deep | Long-lived higher-dimensional features |
| Balanced | Mixed features, no dominant signature |