ops: suppress non-blocking LiteLLM P2028 alerts - #52
Closed
seonghobae wants to merge 1 commit into
Closed
Conversation
Contributor
OpenCode Review Overview
Changed-File Evidence Mapflowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file (5 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (5 files)"]
R1 --> V1["required checks"]
Evidence --> S2["Docs (2 files)"]
S2 --> I2["operator or user guidance"]
I2 --> R2["Review risk: Docs (2 files)"]
R2 --> V2["docs review"]
Evidence --> S3["Test: test_operational_alerts.py"]
S3 --> I3["regression suite"]
I3 --> R3["Review risk: Test: test_operational_alerts.py"]
R3 --> V3["targeted test run"]
|
Contributor
Author
|
Closing this branch because it modeled the problem as alert suppression. CodeGraph review shows the correct fix belongs in PR #46: usage/cost telemetry must be non-blocking and prompt-safe at the contextual-orchestrator boundary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an admin-scoped operational alert classifier so the known LiteLLM Prisma P2028 spend-log transaction timeout does not become a service outage/page event when it is explicitly non-blocking.
Closes #51.
What changed
classify_operational_alert()with a complete suppression signature for LiteLLM + Prisma + P2028 + transaction-start timeout +[Non-Blocking]+update spend logs.POST /api/v1/operational_alert_classificationsas an admin-only endpoint that returns a derived routing decision without echoing the raw alert payload.Verification
python tests/test_operational_alerts.pypython tests/test_api_contract.pypython -m compileall contextual_orchestrator tests/test_operational_alerts.pygit diff --checkpython -m pytest -q-> 153 passedNotes
This does not mutate LiteLLM, PgCat, or PostgreSQL configuration. It prevents this specific non-blocking persistence-pressure signature from entering outage/page routing while leaving inference health, latency, 5xx, and customer-facing SLO alerts active.