Skip to content

fix(monitoring): accept source-approved paused rules in live verifier - #24978

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/verifier-paused
Nov 9, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/verifier-paused

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

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 isPaused against the committed source in the shared definition comparator. An explicit source isPaused=true authorizes a live pause; other source values require live false. Both the per-rule check and fleet gate use this comparison. Matching paused rules remain listed in PRESENT_BUT_PAUSED and 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 .github workflow is changed.

Validation

  • Unit coverage exercises all four boolean pause combinations in both per-rule and fleet checks (gated and all), rejects missing/nonboolean live states, and preserves missing-rule and other-definition-drift failures for intentionally paused rules.
  • Production/development live-STT import fixtures require the exact three approved source pauses to pass without hiding their paused report.
  • omi-heavy run -- .venv/bin/python -m pytest -q tests/unit/test_verify_pusher_live_alert_route.py tests/unit/test_provision_monitoring_alerts.py from backend/: 155 passed, 17.44s pytest wall time on commit 1e1a923a917e09a4e818c78dd0ad3e1a6edd3dfe.
  • 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.
  • Required credential-scrubbed git push with BACKEND_UNIT_FILE_BUDGET_SECONDS=900 and OMI_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.

View guided diff Turn on auto-fix

🤖 Generated with Claude Code

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T10:49:51.384166Z 1e1a923 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.

@Git-on-my-level
Git-on-my-level merged commit e409b2e into main Nov 9, 2026
68 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/verifier-paused branch November 9, 2026 11:22
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