Skip to content

fix(monitoring): alert on capacity_full exhaustion and per-provider STT terminal failures - #22505

Merged
Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/stt-capacity-alerts-1019
Oct 19, 2026
Merged

Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/stt-capacity-alerts-1019

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds two warning alerts for Live STT failures that the current rules cannot see. On 2026-10-19, Modulate legs connected cleanly (196 successes, 0 connect failures in 30m) while sessions died after connecting and exhausted on capacity_full, mostly subtype=replay_ring_cap. The connect-error rules ("provider leg connection errors", "Modulate failing") key on connect failures and stayed silent. The chain-exhaustion rule's 0.35 threshold is too coarse to catch this.

  • omi-stt-capacity-full-exhausted: fires per to_mode when exhausted capacity_full fallbacks exceed 15% of listen-accepted sessions (at least 100 accepted in 15m) for 30m. safe_next_action says to split by the log field subtype=: only admission means pod or window capacity; replay_ring_cap/buffer_cap are session-local.
  • omi-stt-provider-terminal-failure-ratio: fires per provider when terminal failures exceed 75% of successful leg connects (at least 30 connects in 15m) for 30m.

Verification

  • Backtest: 7 days of prod Prometheus (2026-10-12..10-19, 5m steps, through the Grafana proxy):
    • capacity_full to parakeet: p50 0.037, p99 0.168, max 0.206. The rule fires 2× (10-14 18:22Z, 10-15 17:22Z). Other targets peak at 0.108.
    • Terminal ratio for modulate: p50 0.18, p90 0.50, p99 0.77. For parakeet: p99 0.79. At >0.75 for 30m the rule fires 2× (modulate 10-18 05:32Z, parakeet 10-14 17:47Z). At >0.6 it would fire 5×, at >0.5 10×.
    • At 14:05Z today both are below threshold: capacity_full parakeet 0.043, modulate terminal 0.25–0.41.
  • Lints: scripts/provision_monitoring_alerts.py --lint validated 143 definitions; scripts/alert_backtest.py --lint passed with no new failures.
  • Tests: pytest tests/unit/test_monitoring_alert_rule_contract.py test_provision_monitoring_alerts.py test_monitoring_alert_backtest.py test_monitoring_gmp_shadow.py test_live_stt_alert_behavior.py → 196 passed.
  • GMP inventory: regenerated.

Product invariants affected

none

UI-Evidence: none -- alert rule definitions only

Failure-Class: FC-alert-never-provably-fired

🤖 Generated with Claude Code

View guided diff

Git-on-my-level and others added 3 commits October 19, 2026 21:12
…TT terminal failures

On 2026-10-19 Modulate legs connected cleanly (0 connect failures) while
sessions died after connecting and exhausted on capacity_full, mostly
replay_ring_cap. The connect-error and chain-exhaustion alerts could not
see it. Add two warning rules, backtested over 7 days of prod Prometheus:

- omi-stt-capacity-full-exhausted: per to_mode, exhausted capacity_full
  fallbacks / listen-accepted > 0.15 (>= 100 accepted, 15m), for 30m.
  Fires 2x in 7d (parakeet, 10-14/10-15).
- omi-stt-provider-terminal-failure-ratio: per provider, terminal
  failures / successful leg connects > 0.75 (>= 30 connects, 15m), for
  30m. Fires 2x in 7d (modulate 10-18, parakeet 10-14).

Failure-Class: FC-alert-never-provably-fired

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…list and live gate

Failure-Class: FC-alert-never-provably-fired

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Failure-Class: FC-alert-never-provably-fired

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-19T14:37:00.890570Z 034818b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Git-on-my-level
Git-on-my-level merged commit 089ffd5 into BasedHardware:main Oct 19, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant