topology-anomaly-detector — extracted from SuperInstance oracle1-workspace
Project description
topology-anomaly-detector
Real-time anomaly detection on fleet coordination topology. Computes running TE, CSD, source counts, null multiplier against PLATO data and alerts on coordination failures.
Dependencies
coordination-topology (algorithm dependency)
Usage
python3 topology_anomaly_detector.py
Listens on port 8080 by default.
Anomaly Types Detected
| Type | Threshold | What It Means |
|---|---|---|
| TE collapse | SI-TE < 0.1 bits | Coordination structure lost |
| TE spike | SI-TE > 5.0 bits | Suspicious surge in predictability |
| CSD anomaly | τ | |
| Null multiplier spike | null_mult > 3.0 | Structure far beyond random chance |
| Source burst | >2 new sources in 5 min | Fleet composition changing |
| TE shock | ΔTE > 0.5 in 30s | Coordination topology regime shift |
Alerts
Publishes anomaly events to PLATO room topology-anomalies as tiles with:
type: anomaly type stringvalue: current metric valuethreshold: threshold exceededsources: active sources at time of eventconfidence: statistical confidence (1 - p-value)
API
GET /health— server statusGET /anomalies— recent anomaly historyGET /status— current coordination metrics
Shell Loading
from plato_shell_bridge import PlatoShell
shell = PlatoShell("agent-shell")
shell.load_tool("topology-anomaly-detector")
License
MIT — Part of the Cocapn Fleet Intelligence System
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topology_anomaly_detector-0.1.0.tar.gz.
File metadata
- Download URL: topology_anomaly_detector-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d33bf614925bdf613f2b6b44908346b6a23988ed875dce8899c9b6b3217dca37
|
|
| MD5 |
efabaf8f6321983b7caa4f886ec663de
|
|
| BLAKE2b-256 |
9f5943a9c706a4d7fafb84cc0efb0d083f0f8fa20b11d6cafab8bc5df87176b4
|
File details
Details for the file topology_anomaly_detector-0.1.0-py3-none-any.whl.
File metadata
- Download URL: topology_anomaly_detector-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
081b65d1bfb78eaa620ba983edc60bc64ba25ddc9690ee3943dc256e2f669573
|
|
| MD5 |
10facd22b0f8ced620cee95e514fff33
|
|
| BLAKE2b-256 |
85af9807d2af0fb99ee4cf8fc4a6fea28acc04e3a3fc3d3c1c1c512d88c3ffac
|