bamauto
# BAMauto
BAMauto is Mallet's autopilot: a deterministic rules engine that turns telemetry into actionable diagnostics.
## Inputs
- BAM public metrics via Influx (`MALLET_BAM_METRICS_CONFIG`)
- Leader proximity via Solana RPC/Helius (`HELIUS_API_KEY`, `MALLET_IDENTITY_PUBKEY`)
## Outputs
- Human-readable diagnoses in the pseudo-TTY stream (`/api/session`)
- Structured diagnoses in `/api/bamauto` for the BAMauto panel
## Example rules
- Metrics stale (>30s): firewall/egress/DNS suspicion
- Leader slot soon + no telemetry: BAM URL/region or QUIC reachability
- Throughput-ish metric reads 0: region mismatch or blocked transport