Repository navigation
fix(monitoring): accept source-approved paused rules in live verifier - #24978
Merged
Merged
Conversation
Treat an explicitly committed pause as part of the live definition contract. Reject both unexpected pauses and unpauses, retaining missing-rule and other drift failures. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Problem
The production monitoring import run 42585257121 failed its live verification on the three gated rules intentionally paused under #24938, ruling 699300. The verifier required every live rule to be unpaused even when the committed source required a pause.
Change
Compare live
isPausedagainst the committed source in the shared definition comparator. An explicit sourceisPaused=trueauthorizes a live pause; other source values require livefalse. Both the per-rule check and fleet gate use this comparison. Matching paused rules remain listed inPRESENT_BUT_PAUSEDand count as matching.A committed pause with a live unpause fails, because unpausing bypasses the reviewed hold and its recovery criteria. Missing/malformed live pause state also fails. Missing rules and all existing query, routing and definition drift checks remain failures. No rule is unpaused, no source rule is changed, and no
.githubworkflow is changed.Validation
gatedandall), rejects missing/nonboolean live states, and preserves missing-rule and other-definition-drift failures for intentionally paused rules.omi-heavy run -- .venv/bin/python -m pytest -q tests/unit/test_verify_pusher_live_alert_route.py tests/unit/test_provision_monitoring_alerts.pyfrombackend/: 155 passed, 17.44s pytest wall time on commit1e1a923a917e09a4e818c78dd0ad3e1a6edd3dfe.scripts/failure-class validate --pr-body-file .agent-brief/verifier-paused-pr-body.md --base origin/main --head HEAD --format text: passed.omi-heavy run --wait 3600 -- make preflight: 36 checks passed, 714.67s, on the same commit.git pushwithBACKEND_UNIT_FILE_BUDGET_SECONDS=900andOMI_PR_BODY_FILE: passed. Its 36 manifest checks passed (1051.02s); backend Pyright reported 0 errors (existing warnings remain); all 14 selected unit files / 2378 tests passed in isolated file processes; pinned Python formatting passed. No check was skipped via an override.A green production proof run needs the next prod monitoring import (batched David gate). No workflow dispatch, Grafana write/readback, production notification proof or deployment is performed in this PR.
Product invariants affected
none — this change corrects an operational definition verifier; it changes no application behavior, account data or alert source disposition.
Failure-Class: none
The existing alert/query and operator-prerequisite classes describe different contracts. This change addresses source-approved pause state comparison and pins it in the shared verifier's behavioral test suite.
🤖 Generated with Claude Code