Domain-agnostic coherence control compiler built on Kuramoto/UPDE phase dynamics.
Treats Kuramoto phase dynamics as a universal synchrony state-space. Any hierarchical coupled-cycle system — plasma, cloud infrastructure, traffic, power grids, factories, biology — maps onto the same engine.
Domain Binder → Oscillator Extractors (P/I/S) → UPDE Engine → Supervisor → Actuation Mapper
| Channel | Source | Phase Extraction |
|---|---|---|
| Physical (P) | Continuous waveforms | Hilbert transform, zero-crossing |
| Informational (I) | Event/decision streams | Event-phase from message timing |
| Symbolic (S) | Discrete state sequences | Ring-phase θ=2πs/N, graph-walk |
| Knob | Meaning |
|---|---|
| K | Coupling strength (Knm matrix) |
| α | Phase lag (transport/actuator delays) |
| ζ | Driver strength (external forcing) |
| Ψ | Reference phase (control target) |
- R_good: Coherence to maintain (actuator ↔ target phase-lock)
- R_bad: Coherence to suppress (harmful mode-locking)
# Install from PyPI
pip install scpn-phase-orchestrator
# Or with optional extras
pip install scpn-phase-orchestrator[queuewaves] # FastAPI cascade detector
pip install scpn-phase-orchestrator[plot] # matplotlib visualisation
pip install scpn-phase-orchestrator[otel] # OpenTelemetry export
# Scaffold a new domainpack
spo scaffold my_domain
# Validate a domain binding spec
spo validate domainpacks/minimal_domain/binding_spec.yaml
# Run a domain simulation
spo run domainpacks/queuewaves/binding_spec.yaml --steps 1000
# Replay from audit log
spo replay audit.jsonl --output report.jsonFor development, clone the repo and install in editable mode:
git clone https://github.com/anulum/scpn-phase-orchestrator.git
cd scpn-phase-orchestrator
pip install -e ".[dev]"| Platform | Python engine | Rust FFI (optional) |
|---|---|---|
| Linux | Full | Full |
| macOS | Full | Full |
| Windows | Full | Experimental (requires MSVC toolchain) |
The PyPI package is pure Python. Rust FFI provides optional acceleration
and is built from source via maturin develop.
| Pack | Domain | Purpose |
|---|---|---|
autonomous_vehicles |
Vehicles | Platoon phase-locking, leader-follower sync (3 layers, 8 oscillators) |
bio_stub |
Biology | Multi-scale biological oscillators (4 layers, 16 oscillators) |
cardiac_rhythm |
Cardiology | Gap-junction coupling, arrhythmia (4 layers, 10 oscillators) |
chemical_reactor |
Process control | Hopf bifurcation, Semenov limit (4 layers, 10 oscillators) |
circadian_biology |
Chronobiology | SCN clock-gene coupled oscillators (4 layers, 10 oscillators) |
epidemic_sir |
Epidemiology | Epidemic wave synchronisation (3 layers, 8 oscillators) |
firefly_swarm |
Ecology | Flash synchronisation, Mirollo-Strogatz (2 layers, 8 oscillators) |
fusion_equilibrium |
Fusion equilibrium | Grad-Shafranov + FusionCoreBridge (6 layers, 12 oscillators) |
geometry_walk |
Graph systems | Random-walk phase coupling (2 layers, 8 oscillators) |
laser_array |
Photonics | Semiconductor laser phase-locking (3 layers, 8 oscillators) |
manufacturing_spc |
Manufacturing | Statistical process control (3 layers, 9 oscillators) |
metaphysics_demo |
P/I/S showcase | Imprint + geometry ablation (3 layers, 7 oscillators) |
minimal_domain |
Synthetic | Minimal-but-complete pipeline example (2 layers, 4 oscillators) |
network_security |
Cybersecurity | Traffic anomaly detection, DDoS suppression (3 layers, 8 oscillators) |
neuroscience_eeg |
Neuroscience | EEG band->phase, seizure detection (6 layers, 14 oscillators) |
plasma_control |
Tokamak plasma | MHD/transport multi-scale control (8 layers, 16 oscillators) |
pll_clock |
Telecommunications | PLL network clock synchronisation (3 layers, 8 oscillators) |
power_grid |
Power systems | Swing equation = Kuramoto (5 layers, 12 oscillators) |
quantum_simulation |
Quantum computing | Qubit register phase coupling (3 layers, 8 oscillators) |
queuewaves |
Cloud/queues | Retry storm desynchronisation (3 layers, 6 oscillators) |
rotating_machinery |
Vibration | Harmonics, ISO 10816 boundaries (4 layers, 10 oscillators) |
satellite_constellation |
Aerospace | Orbital slot synchronisation, beam handover (3 layers, 8 oscillators) |
swarm_robotics |
Robotics | Vicsek collective motion (3 layers, 8 oscillators) |
traffic_flow |
Transportation | Signal coordination = phase sync (4 layers, 10 oscillators) |
financial_markets |
Finance | Stock synchronization, crash detection |
gene_oscillator |
Synthetic biology | Repressilator quorum coupling |
vortex_shedding |
Fluid dynamics | Wake station Stuart-Landau |
robotic_cpg |
Robotics | Joint CPG locomotion |
sleep_architecture |
Sleep medicine | AASM sleep staging from R |
musical_acoustics |
Acoustics | Consonance = R, groove = alpha |
brain_connectome |
Neuroscience | HCP-inspired coupling |
- Create
domainpacks/<name>/binding_spec.yamldeclaring layers, oscillator families, coupling, drivers, objectives, and boundaries. - Optionally add
policy.yamlfor declarative supervisor rules. - Validate:
spo validate domainpacks/<name>/binding_spec.yaml - Run:
spo run domainpacks/<name>/binding_spec.yaml --steps 1000
See metaphysics_demo for a full
example exercising all three channels, imprint modulation, geometry
projection, and policy-driven control. Spec format reference:
binding_spec.schema.json.
pip install -e ".[dev]"
ruff check src/ tests/
ruff format --check src/ tests/
pytest tests/ -v --tb=short
mkdocs buildAGPL-3.0-or-later. Commercial licensing available — contact protoscience@anulum.li.
See CITATION.cff.
© 1996–2026 Miroslav Šotek. All rights reserved. Contact: www.anulum.li | protoscience@anulum.li
