Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
PR #6586 (#4692) added the fact catalog of the project review (src/devops_cli/roadmap/project_review/catalog.yaml and dispatch.py). Its second review ended after the merge. It confirmed these fact defects on main (752c6ed). Each one gives ok with 0 or no rows for a value that was not measured, or gives a false disagreement:
prometheus.tool_limit_hitsqueriesdevops_cli_roadmap_tool_cuts_total, but itsbaseisdevops_cli_roadmap_tool_calls_total.prometheus.stage_gate_refusalsqueriesdevops_cli_roadmap_stage_gate_refusals_total, but itsbaseisdevops_cli_roadmap_stage_total. The probe finds the base metric, so a window from before the counter existed (before 2026-11-14 for cuts, feat(roadmap): mark each cut tool answer with its cap #5622; before about 2026-11-09 for refusals, feat(telemetry): send stage step seconds and gate refusal counts #4176) givesokwith[]or0.0. Live:--since 2026-11-06T00:00:00Z --until 2026-11-07T00:00:00Zprintsprometheus.tool_limit_hits: [] cuts.- The base probe
_PROBE(dispatch.pyline 94) isgroup(last_over_time({base}[{range}]))over the whole window. Nine facts read their query only at the window end (no[{range}]), for exampleprometheus.alertmanager_alerts,prometheus.silences_activeandprometheus.argocd_apps. When the series is absent at the window end, the fact givesokwith no rows. Live: the window that ends 2026-11-17T12:00Z givesalertmanager_alertsok with[]andsilences_activeok with0.0, but 20 minutes before, 18 alerts were active. In the last 30 days,alertmanager_alertswas absent for 542 minutes. - The disagreement pair
prometheus.implement_runner_jobsandprometheus.runner_jobs_started(catalog.yamlline 861) breaks for a window that crosses the Job rename of feat(roadmap): label Service Jobs by repository and item #5739 (2026-11-14). The right fact counts only the new Job names. Live: the 7 days to 2026-11-16T00:00Z give 48.43 against 15, a false disagreement of about 69 %. - The
path:openspec/specscondition (dispatch.pyline 161) is checked on the working tree, not at the base and head commits of the window. A window from before 2026-10-23 (commit f209f6c added the folder) givesopenspec.requirementsok with{"base": 0, "head": 0}. prometheus.oldest_pending_updatereads a gauge that no code emits yet (feat(monitoring): export outdated dependencies from Renovate #4911 adds it). Each review givesskipped: No series matched the query., which looks like a gauge that stopped.- The owner decided on 2026-11-21 (comment on feat(roadmap): read project review facts through a catalog #4692) that SLO 1 of the stage row counts item outcomes, not Service rounds.
prometheus.stage_slistill divides the rounds ofdevops_cli_service_jobs_total, and since feat(roadmap): run each stage item in its own Job #5559 a round plans no item. PR feat(roadmap): read project review facts through a catalog #6586 added the item outcomes only as the rows factprometheus.stage_item_results.
Expected
basenames the queried metric. A catalog load check refuses a fact whose base metric does not occur in its query. An explicit field lets a fact use another metric on purpose.- The probe has the time scope of the query: a fact with no
[{range}]probesgroup(<base>)at the window end. - A window that starts before the rename of feat(roadmap): label Service Jobs by repository and item #5739 does not read the pair: a not-before time on
runner_jobs_started, or the pair leaves the disagreement list for that window. - The path condition is checked at the base and head commits (for example
git cat-file -e <sha>:openspec/specs). It givesskippedwith a reason when the path is not there. - The skip reason of
oldest_pending_updatesays that the gauge comes with feat(monitoring): export outdated dependencies from Renovate #4911. prometheus.stage_sliis the share of the stage item outcomes (devops_cli_roadmap_stage_total,result!="skipped") that are good. The design names which results are good (staged, and whetherneeds_splitis), and the definition names the owner decision.
Acceptance criteria
- Test first for each point, with fixtures. Each test fails on the base.
- A catalog test: a fact whose base metric is not in its query is refused.
- A dispatcher test: an end-instant fact with an empty answer, a range probe with a series and an instant probe with no series gives
skipped. - A dispatcher test: a window that crosses the rename time does not report the runner pair.
- A test with a fixture repository whose base commit has no
openspec/specs: the fact isskipped. - A test:
stage_slireadsdevops_cli_roadmap_stage_totaland gives the share of good item outcomes. - The live check after the merge: rerun the windows of points 1 and 2 read-only. The facts of points 1 and 2 are
skipped.
Dependencies
None.
Source
Source: #6586
Alternatives check of 2026-11-21: none.
Tool: none found.
Reason: Searches found no relevant tool; the nearest are a PromQL rule linter, a PromQL parser and an SLO rule generator, none of which checks the fact catalog, the probe scope, the window gating or the item-outcome SLI.
Lacks:
- No check that a fact's base metric occurs in its query
- No probe scoped to the window end for instant facts
- No window gating of the runner metric pair across a rename
- No path condition checked at the base and head commits
- No stage SLI computed from item outcomes
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 21, 2026
Both concern the project review fact catalog; #4692 added the catalog, the candidate fixes six correctness defects in it.devops-cli-service commentedon Nov 21, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (8)
Tools considered:
Searches run:
Sources:
fix(roadmap): keep other projects' workload names out of the review (#…
test(roadmap): import the git reader as a module in the git scenarios
docs(openspec): plan the corrections of the review facts and the stag…
docs(openspec): archive the corrections of the review facts and the s…
test(roadmap): import the git reader as a module in the git scenarios
docs(openspec): plan the corrections of the review facts and the stag…
docs(openspec): archive the corrections of the review facts and the s…
test(roadmap): import the git reader as a module in the git scenarios
test(roadmap): a root file named -- is no path of the commit (#6612)
fix(roadmap): give the path check no -- after --end-of-options (#6612)
devops-cli-service commentedon Nov 21, 2026
Released in v0.188.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.188.3
devops-cli-service commentedon Nov 21, 2026
Live since 2026-11-21 19:08 UTC