Repository navigation
Description
Split from #3667.
Problem: The live metric sum(increase(devops_cli_github_requests_total{job=roadmap-service}[24h])) was 39248 at 2026-11-04T15:05Z. The change removes comment reads for unchanged refine items, but the metric has no endpoint label. A plan cannot test the live drop offline. Why deferred: The measure waits on deployment and a 24-hour window. The code change and its offline tests do not need this measure. Acceptance criteria: - The measurement issue states the expected share of the drop before it measures. - After the change is live for 24 hours, the query is lower than 39248 by the stated share. - The measurement issue names the other changes live at the time of the measure. - The measurement issue records the query time and the result.
Proposed design
Problem statement
The measure waits on the release that ships #3667 and a 24-hour window. Read the filtered refine baseline before that release. The refine row reads the comments of each waiting item, and #3667 removes those reads for unchanged items. The aggregate request metric cannot show the drop, because it counts every row and every 304 answer. This item records a comparable before and after measure of the refine row over 24 hours.
Acceptance criteria
Requirement: Filtered pre-change baseline
The measure MUST read the pre-change baseline with sum(increase(devops_cli_github_requests_total{job="roadmap-service", row="refine", status!="304"}[24h])) before the release that ships #3667 is live.
Scenario: Baseline read before the release
- WHEN
uv run devops prometheus query 'sum(increase(devops_cli_github_requests_total{job="roadmap-service", row="refine", status!="304"}[24h]))'runs before the release is live - THEN the command prints one numeric value for the refine row with the 304 answers left out
Requirement: Expected share stated with the baseline
The measure SHALL record the expected share of the drop, as a percentage of the baseline, with the baseline value.
Scenario: Share recorded before the post-change query
- WHEN the baseline query runs before the release is live
- THEN the issue holds the baseline value, its UTC time and the expected share
Requirement: Pending a person after the merge
A person MUST run the same query after the release that ships #3667 is live for 24 hours and record the result in the issue.
Scenario: Post-change query after the window
- WHEN
uv run devops prometheus query 'sum(increase(devops_cli_github_requests_total{job="roadmap-service", row="refine", status!="304"}[24h]))'runs 24 hours after the release is live - THEN the command prints one numeric value lower than the recorded baseline by at least the stated share, and the issue holds that value and its UTC time
Requirement: Record of the measure
The measure SHALL record each query time, each value and each other change that is live in the 24-hour window.
Scenario: Times, values and concurrent changes recorded
- WHEN the post-change query runs
- THEN the issue holds both query times, both values and each other live change, or states that there is none
Existing Tool Considered
No alternatives check has run. Prometheus is the open, maintained monitoring system that already stores devops_cli_github_requests_total and serves it through devops prometheus query (docs/commands/prometheus.md; docs/CLUSTER.md:53). It covers the 24-hour measure with no new code. The counter has no endpoint label, but its row and status labels select the refine row and leave out the 304 answers. This change builds no code; the cost is two queries and one issue record.
Key questions
- Which command runs the PromQL query?:
devops prometheus queryruns an instant PromQL query. [sources: docs/commands/prometheus.md] - Which metric and label filter gives a comparable measure of the refine row?: Use
sum(increase(devops_cli_github_requests_total{job="roadmap-service", row="refine", status!="304"}[24h])). Therow="refine"filter names the row that the change touches, andstatus!="304"leaves out the answers that GitHub does not count. (best practice) [sources: docs/CLUSTER.md:53, .ast-grep/rules/github-request-scope-row.yml:6, src/devops_cli/github/request_scope.py, src/devops_cli/github/rate_limiter.py:1712]- Chosen: Filtered refine query. It isolates the refine row and leaves out the 304 answers, so the drop is attributable and matches the rate limit.
- Rejected: Aggregate job query. It counts every row and every 304 answer, so a drop in refine is diluted and cannot be attributed.
- Rejected: Budget query with no row filter. It matches the budget but counts every row, so it cannot attribute the drop to refine.
- Which baseline does the measure compare against?: Read a new filtered baseline in the 24 hours before the release is live. The body holds 39248 for the unfiltered 24-hour aggregate at 2026-11-04T15:05Z. That value counts every row and every 304 answer, so a filtered result is not comparable with it. (best practice) [sources: docs/CLUSTER.md:53, openspec/changes/archive/2026-11-07-3667-refine-unchanged-reads-no-comments/proposal.md]
- Chosen: New filtered baseline. It uses the same query as the result and is read before the change, so the two values are comparable.
- Rejected: The 39248 aggregate. It counts every row and every 304 answer, so a filtered result cannot be compared with it.
- Rejected: A baseline after the change. It cannot show a drop.
- Who states the expected share, and when?: The issue states it with the baseline, before the release is live. The share is a prediction from the baseline and the fix(roadmap): an unchanged refine item reads no comments #3667 count of 7727 refine GET requests, where the comment reads are the largest part. The issue records the evidence for the number. (best practice) [sources: openspec/changes/archive/2026-11-07-3667-refine-unchanged-reads-no-comments/proposal.md, docs/CLUSTER.md:53]
- Chosen: The issue states the share with the baseline. The share is a prediction from recorded evidence, and it must come before the post-change query.
- Rejected: A person states the share. The repository holds the evidence, so this is no person-only decision.
- Rejected: State the share after the window. A later number cannot test the drop.
- Who ships the change and starts the 24-hour window?: A person merges the release pull request, or the scheduled release merge does. The 24-hour window starts when the release is live. [sources: AGENTS.md, CONTEXT.md]
Fit
Fits in one pull request.
Suspected block
The release that ships the refine comment skip (#3667) and the 24-hour live window after it.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 6, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
choreprefix of the title gives the type.(roadmap)scope of the title gives the scope.The task waits on deployment and a 24-hour window; it blocks nothing.It confirms the fix reduced requests as expected, but the fix itself is the valuable part.The work is one query run and a short record of the result.Both concern the refine comment-read reduction, but #3667 delivers the code fix and the candidate delivers a post-deployment measurement report.[-]chore(roadmap): measure the GitHub request drop after refine skips unchanged comments[/-][+]chore(roadmap): measure the GitHub request drop after refine skips comments[/+]devops-cli-service commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 69 characters, and the limit is 60. The type and the scope stay.
chore(roadmap): measure the GitHub request drop after refine skips unchanged commentschore(roadmap): measure the GitHub request drop after refine skips commentsdan-petty commentedon Nov 7, 2026
Baseline for this measure, read on 2026-11-07 in Prometheus (
job="roadmap-service", one hour). The rowrefinesent 286 requests that GitHub counts (status other than 304): 187 with status 200 and 71 with no status. The other rows:metrics288,other236,implement139. The metric has arowlabel, so the query for this item can userow="refine", status!="304". #3939 makes the Service budget leave out the 304 answers, so the measure of this item should use the same filter.devops-cli-service commentedon Nov 9, 2026
Refine cannot set this item to Ready at 1b37dbc until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
dan-petty commentedon Nov 14, 2026
Needs a person and a 24-hour live window after #3667 deployed. The acceptance requires the measurement issue to state the expected share before it measures, then record the query time and the result of sum(increase(devops_cli_github_requests_total{job=roadmap-service}[24h])) after the change is live for 24 hours. An agent session cannot state a share in advance of its own measurement, cannot see the deployed window, and cannot record a real result offline; a fabricated number would break the issue's own rule. #3667 is delivered, so the measure follows on the deployment.
devops-cli-service commentedon Nov 19, 2026
Owner question: See the first point of Open questions 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 23, 2026
Owner question: See the first point of Open questions 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
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