Skip to content

fix(roadmap): correct the facts and the stage SLI of the review - #6656

Merged
dan-petty merged 21 commits into
mainfrom
fix/6612-correct-the-facts-and-the-stage-sli-of-the-review
Nov 21, 2026
Merged

dan-petty merged 21 commits into
mainfrom
fix/6612-correct-the-facts-and-the-stage-sli-of-the-review

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The project review gave ok with 0 or no rows for values that it did not measure, and false disagreements.

Check after the release: the windows of points 1 and 2 of #6612 give their facts skipped.

Closes #6612

Change: openspec/changes/archive/2026-11-21-6612-correct-the-facts-and-the-stage-sli-of-the-review/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 21, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Live check before the merge (read only, from the branch at 592d3fd, devops roadmap review run --out <scratch>):

  • --since 2026-11-06T00:00:00Z --until 2026-11-07T00:00:00Z: prometheus.tool_limit_hits and prometheus.stage_gate_refusals are skipped (their counter has no series in the window). prometheus.runner_jobs_started is skipped (the window starts before 2026-11-14T22:29:00Z). prometheus.oldest_pending_update is skipped with the feat(monitoring): export outdated dependencies from Renovate #4911 reason. openspec.requirements is ok (base 1561, head 1731).
  • --since 2026-11-16T12:00:00Z --until 2026-11-17T12:00:00Z: prometheus.alertmanager_alerts and prometheus.silences_active are skipped (no series at the window end). prometheus.stage_sli is 0.3475. prometheus.runner_jobs_started is 18 against 17.12 of prometheus.implement_runner_jobs, so the pair runner_jobs is not a disagreement. Before the review fix, the same window gave 36 (a Job that ended keeps its series for 24 h).

The only disagreement in the two windows is spend (prometheus.cli_spend against prometheus.gateway_spend), which this change does not touch.

@dan-petty
dan-petty force-pushed the fix/6612-correct-the-facts-and-the-stage-sli-of-the-review branch from 7a4e632 to 901d0f4 Compare November 21, 2026 17:52
…e SLI

Plan #6612 as the change 6612-correct-the-facts-and-the-stage-sli-of-the-review:
the base metric rule, the probe of the end of the window, the first time
of a series, the path condition at the commits of the window, the reason
of a missing series, and the stage SLI by the outcomes of the items.
The tests fail on the base: the loader accepts the base x_calls_total
for a query of x_cuts_total, and refuses base_reason as an unknown
field.
The loader refuses a fact whose base metric does not occur in its
query, unless base_reason says why. prometheus.tool_limit_hits and
prometheus.stage_gate_refusals probe the metric that they read, and
the stage gate refusals read the repository of the review.
The new test fails on the base: the probe reads the whole window, so a
series earlier in the window makes an empty end answer ok with 0.
A fact whose query has no {range} reads only the window end, so its
probe is group(<base>) at the end. A series earlier in the window no
longer makes an empty end answer ok with no rows or 0.
…series

The tests fail on the base: the loader refuses not_before as an unknown
field.
A fact can give not_before. A window that starts before it skips the
fact and sends no read, so the pair runner_jobs is not compared across
the Job rename of #5739 (live at 2026-11-14T22:29:00Z). The dry run
shows the condition.
The tests fail on the base: the dispatcher reads the working tree, so
the replay of review_spec_path has no transcript yet, and the dry run
lists no ls-tree command.
A path:<path> condition holds when the base and the head commits hold
the path, read with git ls-tree through run_git, not the working tree.
A window from before the commit that added openspec/specs now skips the
openspec facts. A git failure stops the review. The dry run lists both
commands. New transcript review_spec_path; review_window records the
checks of its version window.
The tests fail on the base: the loader refuses no_series_reason as an
unknown field.
A fact with no base can give no_series_reason, the reason of skipped
when its query matches no series. prometheus.oldest_pending_update
says that no code emits its gauge before #4911 adds it, so the review
does not show it as a gauge that stopped.
The promtool test fails on the base: the shipped query reads the
Service rounds, so the stage item series give no value. The fixture
facts of a ratio of Service rounds take the id prometheus.service_slo1.
prometheus.stage_sli is the share of the stage items of the repository
that ended staged or needs_split, over the items that ended with a
result other than skipped, as the owner decided on 2026-11-21 (#4692).
A window with only bad outcomes gives 0, and a window with no outcome
gives no value.
ROADMAP_WORKFLOW.md says that the base metric is a metric of the query,
that the probe reads the window or its end, that a fact can give the
first time of its series, that a path condition reads the commits of
the window, and how prometheus.stage_sli counts the stage items.
…indow

kube-state-metrics keeps the series of a finished Job for 24 h, so
prometheus.runner_jobs_started also counted the Jobs that started
before the window. Group 8 plans the fix. Tasks 4.1 and 4.2 name
tests/core/test_git_contract.py, and task 7.1 lists and checks the two
test files whose docstrings it changes.
promtool evaluates the shipped query of prometheus.runner_jobs_started
over a Job that started before the window and still has a series in
it, a Job that started in the window and a Job of another repository.
The base gives 2; the count must be 1.
kube-state-metrics keeps the series of a Job for the 24 h of its
ttlSecondsAfterFinished, so prometheus.runner_jobs_started counted the
Jobs that started up to 1 day before the window. The query now keeps a
start time at or after the window start. Live, the day to
2026-11-17T12:00Z gives 18 Jobs in place of 36, against 17.12 of the
Service. The base kube_job_status_start_time{namespace="devops"} gives
0 for a window with Jobs in the namespace but no implement Job start.
…tage SLI

The spec roadmap-project-review takes the requirements of #6612.
The fail-to-pass replay puts the test files and tests/support of the head
on the base tree. The base has the module git_read but not holds_path, so
the import of the name stopped pytest before it collected a test (#6612).
The first commit of the scenario review_spec_path holds a file named --.
The ls-tree of the path check gave --end-of-options and --, so git took --
as a second path and printed the file. The path check then passed for a
commit that does not hold openspec/specs.
After --end-of-options, git ls-tree reads -- as a second path, so a commit
with a root file named -- held every path. The schema text of requires now
says that the base and the head commits of the window hold the path.
@dan-petty
dan-petty force-pushed the fix/6612-correct-the-facts-and-the-stage-sli-of-the-review branch from 901d0f4 to aea7a04 Compare November 21, 2026 18:25
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 18:42
@dan-petty
dan-petty merged commit b5dbcee into main Nov 21, 2026
29 checks passed
@dan-petty
dan-petty deleted the fix/6612-correct-the-facts-and-the-stage-sli-of-the-review branch November 21, 2026 18:46
@dan-petty

Copy link
Copy Markdown
Owner Author

Check after the merge: passed (main 04b46ec). The review runs from the local checkout, so the check needs no deployment.

  • Window 2026-11-06T00:00Z to 2026-11-07T00:00Z: prometheus.tool_limit_hits and prometheus.stage_gate_refusals are skipped (their base metric has no series in the window). prometheus.runner_jobs_started is skipped (the window starts before 2026-11-14T22:29:00Z). prometheus.oldest_pending_update is skipped with the feat(monitoring): export outdated dependencies from Renovate #4911 reason.
  • Window 2026-11-16T12:00Z to 2026-11-17T12:00Z: prometheus.alertmanager_alerts and prometheus.silences_active are skipped (no series at the window end). prometheus.runner_jobs_started is 18, against 17.12 counted by the Service, so the pair runner_jobs agrees. prometheus.stage_sli is 0.348.
  • The only disagreement in both windows is spend (83% and 26%), which fix(roadmap): the spend pair of the review compares different calls #6660 tracks.

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

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): correct the facts and the stage SLI of the review

1 participant