Skip to content

test(roadmap): measure search_code answers after release #6239

Open

Description

@devops-cli-service

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

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.md after the 7-day window closes
  • THEN The output gives the character size of each search_code answer.

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.md after the 7-day window closes
  • THEN The output gives the search_code call 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.md after the 7-day window closes
  • THEN The output gives the number of read_file calls 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.md after 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.md after 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. The devops_cli_roadmap_tool_answer_chars histogram 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_code fix must ship first. A release ships every change merged into main since 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.md in 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.md in 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.
  • Which tool reads the stage comments and counts the metrics?: uv run devops gh api reads the comments with paced requests. Its --jq filter counts the search_code calls of each run and the read_file calls on the two paths. The character sizes come from the existing devops_cli_roadmap_tool_answer_chars histogram. 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 --jq and the existing devops_cli_roadmap_tool_answer_chars histogram. devops gh api is the project's paced GitHub reader, its --jq filter counts fields, the stage comment lists each call with its name and argument, and the histogram already records each answer's characters.
    • Rejected: Bare gh and jq. AGENTS.md rule 7 forbids bare gh, 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.

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.

Dependencies

#6521

Activity

  1. added
    type/test
    on Nov 18, 2026
  2. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/low
    priority/p2-medium
    on Nov 18, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  5. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    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.

  6. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  7. devops-cli-service commented on Dec 1, 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

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/lowpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions