Skip to content

feat(monitoring): show fix-check results and repair success #7089

Backlog

Description

@devops-cli-service

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.com and path .github/workflows/ci.yml, and a repair that fails.
  • THEN The test asserts one fix-check result: line with site=github.com, path=.github/workflows/ci.yml, result=error and success=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 with result=repaired and success=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=true lines 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, error and deadline. Set success=true for repaired and ready. (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.py after 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

  1. added
    type/feature
    source/agent
    status/new
    value/medium
    effort/medium
    scope/monitoring
    on Nov 25, 2026
  2. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  4. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/monitoringsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions