Task · BBI-0001

Fix check-tier-consistency.py: it cannot run in this repo's layout

Status
To Do
Labels
bug, grafana
Updated
2026-08-14

Description

src/grafana/check-tier-consistency.py loads bumblebee_alerts.py and bumblebee_recording_rules.yaml from its own directory. This repo ships alert-rules.py and recording-rules.yaml, so it raises FileNotFoundError on every invocation and has never run here.

Residue from a port off a deploy/ layout with underscored filenames — the files were renamed, the references were not.

This matters more than a broken utility usually would: the script is the only guard on the declared-only source_type alternation, which is duplicated across four places that cannot see each other (alert-rules.py, three inline copies in recording-rules.yaml, docs/alerting.md prose, and the fleet dashboard JSON in an external Git-Sync repo). Missing composer-lock in one of them on 2026-08-11 put 14 live packagist packages in two different tiers for a fortnight, silently. See the Wave operating model doc.

Verified 2026-08-14: the four in-repo copies currently agree at ten entries, so this is fixing the guard, not chasing a live drift.

Acceptance Criteria

Definition of Done

View the source file on GitHub