Repository navigation
Description
Split from #4868.
Problem: The main issue asks for a fix-check panel by site, path and result and for the repair success share. No command, module, log line or counter writes a fix-check result, so no panel can show data. Why deferred: The fix-checks row of ADR 0021 section 8 is not built. ServiceRow.FIX_CHECKS exists, but nothing writes a result. The rest of the monitoring issue can ship. Acceptance criteria: - A roadmap step writes one fix-check result line or counter with site, path and result. - The Roadmap Job Success row of k8s/devops/dashboards/roadmap-service-telemetry.json shows fix checks by site, path and result and the repair success share. - uv run devops grafana dashboards lint k8s/devops/dashboards exits 0. - A fixture or live check shows a non-empty series for each new panel.
Proposed design
Problem statement
The fix-checks step exists, but it writes no per-check result line. The Roadmap Job Success row cannot show fix checks by site, path and result or the repair success share. This change adds one structured result line and two panels.
Acceptance criteria
Requirement: Fix-check result line
The fix-checks roadmap step SHALL write one structured fix-check result: line for each fix-check with the site, path, result and success flag.
Scenario: A failed repair
- WHEN A unit test runs the fix-checks step with a fake GitHub client, one failed check for site
github.comand path.github/workflows/ci.yml, and a repair that fails. - THEN The test asserts one
fix-check result:line withsite=github.com,path=.github/workflows/ci.yml,result=errorandsuccess=false.
Requirement: Repair success flag
The fix-checks roadmap step SHALL write success=true when a repair makes the failed check pass and success=false otherwise.
Scenario: A repaired check
- WHEN A unit test runs the fix-checks step with a fake GitHub client and a repair that makes the failed check pass.
- THEN The test asserts one
fix-check result:line withresult=repairedandsuccess=true.
Requirement: Fix-check breakdown panel
The Roadmap Job Success row of the telemetry dashboard SHALL show fix checks by site, path and result.
Scenario: Dashboard lint
- WHEN A developer runs
uv run devops grafana dashboards lint k8s/devops/dashboards. - THEN The command exits 0 and reports the dashboard as valid.
Requirement: Repair success share panel
The Roadmap Job Success row of the telemetry dashboard SHALL show the repair success share of fix checks.
Scenario: Dashboard lint
- WHEN A developer runs
uv run devops grafana dashboards lint k8s/devops/dashboards. - THEN The command exits 0 and reports the dashboard as valid.
Requirement: Pending a person after the merge
Each new fix-check panel SHALL show a non-empty series after one fix-check result line arrives.
Scenario: Post-merge live check
- WHEN After the merge, a person sends one
fix-check result:line and opens the Roadmap Job Success row in Grafana. - THEN Each new fix-check panel shows a non-empty series.
Existing Tool Considered
No alternatives check has run. Grafana is the open, maintained tool that covers the panels, and Loki and Prometheus are the existing data stores. No open tool covers the project-specific fix-check result line, so the change writes one small structured line. Written cost: about 12k tokens to build, 4k tokens per year to keep and fix, and 2 hours elapsed.
Key questions
- Does the fix-checks roadmap step exist, so this item does not wait on it?: Yes. The repository holds the fix-checks step, the fix-checks row and their tests. The missing part is the per-check result line. [sources: src/devops_cli/roadmap/steps/fix_checks.py, src/devops_cli/roadmap/fix_checks_row.py, tests/commands/test_roadmap_step_fix_checks.py]
- Which data path should carry the fix-check result: a Loki log line or a Prometheus counter?: Use one JSON
fix-check result:line in Loki. The Roadmap Job Success row already reads Loki. Site and path are high-cardinality values that a Prometheus counter should not hold. (best practice) [sources: k8s/devops/dashboards/roadmap-service-telemetry.json, CONTEXT.md]- Chosen: Loki structured log line. It uses the existing Roadmap Job Success row and keeps high-cardinality site and path values out of Prometheus labels.
- Rejected: Prometheus counter with site and path labels. It creates high-cardinality series and a second data path for the same result.
- Rejected: Both a log line and a counter. It writes the same fact twice and makes the two views disagree.
- How should the dashboard show the repair success share?: Add one stat panel to the Roadmap Job Success row. It divides the count of
success=truelines by all fix-check result lines. (best practice) [sources: k8s/devops/dashboards/roadmap-service-telemetry.json]- Chosen: Stat panel from the same Loki line. It uses the existing Roadmap Job Success row and one data source.
- Rejected: Prometheus recording rule. It adds a second data path and high-cardinality labels.
- Rejected: Separate dashboard. The issue asks for the Roadmap Job Success row of this dashboard.
- Which result words should the fix-check result line use?: Use the result words of the existing fix-checks row:
repaired,ready,none,erroranddeadline. Setsuccess=trueforrepairedandready. (best practice) [sources: src/devops_cli/roadmap/fix_checks_row.py, src/devops_cli/telemetry/instruments.py, tests/roadmap/steps/test_roadmap_step_fix_checks.py]- Chosen: Reuse the existing result words. The dashboard already groups fix-checks results with these words, so the new panels stay consistent.
- Rejected: Define new result words. It splits one concept across two vocabularies and needs a mapping in each query.
- Where should the fix-checks step write the result line?: Write the line in
src/devops_cli/roadmap/steps/fix_checks.pyafter the step records each check outcome. Use the existing structured result writer. (best practice) [sources: src/devops_cli/roadmap/steps/fix_checks.py, src/devops_cli/roadmap/job_result.py]- Chosen: Write from the fix-checks step. The step holds the site, path and result of each check.
- Rejected: Write from the watch row. The watch row does not hold the site and path of each check.
- Rejected: Write from the dashboard. The dashboard reads data and writes no result.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 25, 2026
Both cover fix-check results in a dashboard, but #4868 is the umbrella covering soft-cap, fix-check, and alerts, while this item is only the fix-check panel and its data source.devops-cli-service commentedon Nov 25, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 28, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.