Repository navigation
Description
Split from #5462.
Problem: issue #5462 asks for two post-release measurements of search_code. The first measurement reads stage comments for 7 days: the characters of each answer, the searches of each run, and the read_file calls on src/devops_cli/commands/ci.py and src/devops_cli/roadmap/stage/stage_change.py. The second measurement reads real Service stage runs after release: the share of answers with at least one code line when the commit has code matches. The baseline is 0 of the 5 texts in issue #5462. Why deferred: a release and 7 days of real stage runs must happen first. The code fix can merge before that. Acceptance criteria: after release, collect the 7-day stage-comment metrics and report them. After release, collect the share of real Service stage answers with a code line and report it against the baseline. The report SHALL name the release and the date range.
Proposed design
Problem statement
The search_code fix of #5462 needs a post-release measurement before this item can close. This item reads 7 days of stage comments and real Service stage runs. It reports the answer sizes. It reports the search_code call count of each run. It reports the read_file calls on two paths. It reports the share of answers with a code line against the baseline 0 of 5. The report names the release and the date range.
Acceptance criteria
Requirement: Report file in the pull request
The pull request that closes #6239 SHALL add docs/roadmap/search-code-post-release.md.
Scenario: Report file in the pull request
- WHEN A person runs
git diff --name-only origin/main...HEADin the checkout of the pull request that closes test(roadmap): measure search_code answers after release #6239 - THEN The output lists
docs/roadmap/search-code-post-release.md.
Requirement: Report identity
The report SHALL name the release and the date range of its measurements.
Scenario: Report header
- WHEN A person reads the first section of
docs/roadmap/search-code-post-release.md - THEN The first section names the release and the start and end dates.
Requirement: Answer character sizes
The report SHALL give the character size of each search_code answer in the 7-day window from devops_cli_roadmap_tool_answer_chars.
Scenario: Answer sizes in the report
- WHEN A person runs
git show origin/main:docs/roadmap/search-code-post-release.mdafter the 7-day window closes - THEN The output gives the character size of each
search_codeanswer.
Requirement: Search call count
The report SHALL give the search_code call count of each stage run in the 7-day window.
Scenario: Search counts in the report
- WHEN A person runs
git show origin/main:docs/roadmap/search-code-post-release.mdafter the 7-day window closes - THEN The output gives the
search_codecall count of each stage run.
Requirement: Read file calls on two paths
The report SHALL give the number of read_file calls on src/devops_cli/commands/ci.py and src/devops_cli/roadmap/stage/stage_change.py in the 7-day window.
Scenario: Read file counts in the report
- WHEN A person runs
git show origin/main:docs/roadmap/search-code-post-release.mdafter the 7-day window closes - THEN The output gives the number of
read_filecalls on the two paths.
Requirement: Service answer code-line share
The report SHALL give the share of real Service stage answers with at least one code line for runs whose commit has code matches.
Scenario: Service share in the report
- WHEN A person runs
git show origin/main:docs/roadmap/search-code-post-release.mdafter real Service stage runs exist - THEN The output gives the share and the condition of code matches.
Requirement: Baseline comparison
The report SHALL compare the share with the baseline of 0 of 5.
Scenario: Baseline comparison in the report
- WHEN A person runs
git show origin/main:docs/roadmap/search-code-post-release.mdafter real Service stage runs exist - THEN The output gives the share and the baseline 0 of 5.
Existing Tool Considered
No alternatives check has run; the item has type test, a skip class (CONTEXT.md). The open, maintained gh CLI (https://github.com/cli/cli), run through uv run devops gh api, reads the stage comments and counts fields with --jq. The existing devops_cli_roadmap_tool_answer_chars histogram gives the answer sizes. gh lacks the answer size and the baseline comparison. The report takes sizes from the histogram and a person computes the comparison. The item writes no code, so it has no build cost.
Key questions
- Does the stage comment carry the character size of each answer?: No. The comment lists each tool call as
name(argument), then the calls and empty answers of each tool, but no answer size. Thedevops_cli_roadmap_tool_answer_charshistogram records the characters of each tool answer. [sources: src/devops_cli/roadmap/stage/stage.py, src/devops_cli/lang/en/messages.py, docs/TELEMETRY.md, src/devops_cli/telemetry/instruments.py] - What must happen before the measurements can start?: A release that includes the
search_codefix must ship first. A release ships every change merged intomainsince the last release. Then 7 days of real Service stage runs follow that release, and the window starts at the release. [sources: CONTEXT.md] - Where should the post-release report live?: A new document
docs/roadmap/search-code-post-release.mdin the item's pull request. (best practice) [sources: CONTEXT.md, docs/roadmap/job-success.md]- Chosen: A new document
docs/roadmap/search-code-post-release.mdin the item's pull request. The roadmap delivers each item by one pull request, and the roadmap docs already hold a measurement page, so the report sits beside it. - Rejected: An issue comment only. A comment is no pull request, so the item would not follow the roadmap process.
- Rejected: A new evaluation command. The measurement runs once, so the command adds code that no later run needs.
- Chosen: A new document
- Which tool reads the stage comments and counts the metrics?:
uv run devops gh apireads the comments with paced requests. Its--jqfilter counts thesearch_codecalls of each run and theread_filecalls on the two paths. The character sizes come from the existingdevops_cli_roadmap_tool_answer_charshistogram. A person writes the numbers into the report; no new code is needed. (best practice) [sources: AGENTS.md, docs/commands/gh.md, docs/CLUSTER.md, src/devops_cli/roadmap/stage/stage.py, docs/TELEMETRY.md]- Chosen:
uv run devops gh api --jqand the existingdevops_cli_roadmap_tool_answer_charshistogram.devops gh apiis the project's paced GitHub reader, its--jqfilter counts fields, the stage comment lists each call with its name and argument, and the histogram already records each answer's characters. - Rejected: Bare
ghandjq. AGENTS.md rule 7 forbids baregh, because it does not pace requests against the rate limit. - Rejected: Read the stage comment only. The comment lists each call and per-tool counts, but it holds no answer size.
- Rejected: A new evaluation command. The measurement runs once, so the command adds code to keep and fix.
- Chosen:
Fit
Fits in one pull request.
Suspected block
A release that includes the search_code fix, then 7 days of real Service stage runs after that release.
Activity
devops-cli-service commentedon Nov 18, 2026
Both concern search_code answer quality, but #5462 delivers the code fix while the candidate delivers the 7-day post-release measurement report.devops-cli-service commentedon Nov 19, 2026
Refine cannot set this item to Ready at 6ff83d4 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 21, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 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