Ideas: What alerting strategy should Phase 5 use? Fixed thresholds vs. sustained windows vs. adaptive Bollinger bands #218
web3guru888
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
Phase 5 gives ASI:BUILD a live self-modification loop. Issue #215 defines 12 metrics across 4 subsystems. But metrics alone don't tell operators what to do — you need an alerting strategy.
The question isn't just what to alert on, but how aggressive to be. False positives (alerting on normal STDP noise) train operators to ignore alerts. False negatives (missing a runaway learning episode) let the system degrade silently.
Option A: Fixed threshold alerts
The simplest approach: alert whenever a metric crosses its defined threshold for a single tick.
Pros: Simple, deterministic, easy to test.
Cons: Noisy. A single STDP burst can spike P95 above 0.3 for 1-2 ticks without indicating a real problem. Operators see alert fatigue.
Option B: Sustained threshold alerts (recommended baseline)
Alert only when the metric stays above threshold for N consecutive ticks:
Pros: Filters single-tick spikes. Tunable per severity (critical alerts faster, warnings require sustained evidence).
Cons: Still static — the same thresholds apply regardless of system load or phase.
Option C: Adaptive thresholds (Bollinger bands)
Use rolling mean ± 2σ to detect anomalies relative to recent baseline:
Pros: Self-calibrating. If STDP naturally produces delta norms around 0.15 on this workload, it won't alert until something deviates from that baseline, not the fixed 0.3 threshold.
Cons: Complex to test. May miss slow-drift regressions (the band adapts to the drift). Requires at least 200+ samples before meaningful.
Option D: Phase-aware alerting
Different thresholds for different CognitiveCycle phases:
Pros: More accurate to actual risk — a large weight delta during SLEEP_PHASE consolidation is safer than the same delta during a real-time perception tick.
Cons: More configuration surface, harder to reason about system state at a glance.
Recommendation
Start with Option B (sustained thresholds) for Phase 5 MVP:
Phase-aware multipliers (Option D) are worth adding for
episodic_consolidation_ratespecifically, since SLEEP_PHASE behavior is categorically different.Open questions
Should
Phase5RollbackManager(see #216) respond to sustained alerts automatically, or require operator acknowledgment for WARNING-level alerts?How should multi-agent alerting work? If Agent 2's
weight_delta_norm_p95goes critical but Agents 1, 3, 4 are normal, shouldMeshCoordinatorisolate Agent 2 or alert globally?Should we expose alerting configuration via the MCP tool interface (from Add CycleFaultSummary: per-tick fault report written to Blackboard and exposed via SSE health endpoint #144), so operators can tune thresholds without redeploying?
Related: #215 | #216 | #213 | #217
All reactions