Test Prometheus recording rules before a dashboard uses them
A Prometheus configuration can load cleanly while a recording rule still produces the wrong number. That difference is easy to miss when a rule has valid YAML, valid PromQL, and a sensible name. The error often appears later, when a dashboard panel is unexpectedly high, an alert threshold is crossed early, or a dependent rule has no series to evaluate.
The useful gate is not another configuration check. It is a small rule test with known input series and an expected result. In an isolated Linux AMD64 validation with Prometheus 3.15.0-rc.1, a recording rule that summed two synthetic http_inprogress_requests series passed when the expected value was 7. Changing only the expected value to 6 made promtool test rules return exit status 1 and show the expected and actual samples. promtool check rules accepted the rule in both cases because its job is syntax and rule-file validation, not proving an intended result.