You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing over_budget exit status from 1 (critical) to 0 (OK) in ICINGA_EXIT_STATUS weakens the passive monitoring signal. If the engineering-loop reaches its daily budget, Icinga will now report OK instead of a warning, removing the visibility that the loop is at capacity. This is a tier/capability-envelope weakening: the operator loses awareness that the loop is consuming its full budget, which is a prerequisite for approving higher-tier auto-approval paths that depend on success-history evidence. The change should retain a non-zero exit for over_budget to preserve the monitoring invariant.
Changing over_budget exit status from 1 to 0 may cause Icinga to treat budget exhaustion as a success, potentially masking operational issues. Verify this aligns with the monitoring strategy for budget-related outcomes.
Why: The suggestion correctly identifies a potentially impactful change in the PR (changing over_budget exit status from 1 to 0). This could mask operational issues if not aligned with monitoring strategy, making it a relevant and important observation.
Medium
General
Add debug logging for skipped notifications
The early return for non-published outcomes will skip the webhook environment variable check, which may be intentional but could mask configuration issues. Consider logging a debug message when skipping to aid troubleshooting.
if report.outcome != "published":
+ logger.debug("Skipping Discord notification for non-published outcome: %s", report.outcome)
return False
Suggestion importance[1-10]: 4
__
Why: The suggestion is valid and could aid debugging, but it's a minor improvement. The early return is intentional per the PR's logic, and adding logging is not critical for correctness.
The over_budget OK status is intentional and matches the selected alerting policy:
the daily run/cost cap is a configured safety envelope and is expected to be reached during normal operation;
Icinga freshness still proves the hourly timer ran, and the passive-check output plus daemon journal retain the over_budget outcome and detail;
needs_triage remains warning, while refused_ci and error remain critical.
I also left out an extra debug line for each skipped Discord notification because the run outcome is already journaled and an hourly duplicate log would add another noise stream.
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
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
Validation
uv run pytest -q— 265 passeduv run ruff check src testsuv run --group dev mypy --strict srcRollout
Keep this draft until the engineering-loop Discord secret is moved from the legacy NOC webhook to the AI route.