Skip to content

feat(roadmap): Add requirement text to the stage context #3246

Closed

Description

@dan-petty

Problem

The stage context lists the names of the requirements of a capability (#3178), and _duplicate_problems checks only names. A plan can add a requirement whose name is new while a requirement of the same spec already states, or contradicts, the behavior. Evidence from the plan reviews of 2026-11-02:

Proposed change

When a plan cites a capability, or a requirement name, or a symbol that a requirement names, add the text of the matching requirements to the context, cut to a bound (for example 12 requirements and 6000 characters), most relevant first. Relevance is a name match, then a text match on the cited paths, commands and symbols. The read_spec tool stays for the rest.

Acceptance criteria

  1. A test with a fake spec shows that a plan that cites a command named in a requirement gets that requirement in the context.
  2. The bound is a named constant with a docstring, and a test shows the cut.
  3. The model verification pass (stage_verify.py) receives the same text, and a replay case shows a conflict that it now finds (a case from docs(openspec): plan #3060 plan model tier ladder for retries #3225 or docs(openspec): plan #3185 move intake-eval under roadmap eval #3228).
  4. The prompt tells the planner to use MODIFIED when a requirement of the context states the behavior.

Related: #3178, #3182, #3238.

Dependencies

Alternatives check of 2026-11-06: partly.
Tool: Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec), MIT, last activity 2026-11-05, maintained.

Proposed design

Problem statement

The stage context lists only the names of a capability's requirements, and _duplicate_problems checks only names. A plan can then add a requirement whose name is new while an existing requirement states or contradicts the behavior. The plan reviews of 2026-11-02 show four such conflicts. The change adds the text of the matching requirements to the context, cut to a bound and ordered by relevance. It gives the same text to the model verification pass, and it tells the planner to use MODIFIED.

Acceptance criteria

Requirement: Requirement text from a cited command

The stage context SHALL hold the text of each requirement that a cited capability, requirement name, path, command or symbol matches.

Scenario: A plan cites a command that a requirement names

  • WHEN A plan cites a command that the text of one requirement of a fake spec names.
  • THEN The stage context holds the name and the text of that requirement, and the test asserts both.

Requirement: Count bound on the requirement text

The stage context SHALL cut the matching requirements at a named constant that holds the maximum count.

Scenario: A spec with more matches than the count bound

  • WHEN A fake spec holds more matching requirements than the count constant allows.
  • THEN The stage context holds exactly the count constant's number of requirements, and the test asserts the count.

Requirement: Character bound on the requirement text

The stage context SHALL cut the requirement text at a named constant that holds the maximum characters.

Scenario: A match longer than the character bound

  • WHEN The text of the matching requirements is longer than the character constant allows.
  • THEN The requirement text in the context is at most the character constant's length, and the test asserts the length.

Requirement: Order by relevance

The stage context SHALL order the matching requirements by a name match first and a text match on the cited paths, commands and symbols second.

Scenario: A name match outranks a text match

  • WHEN A plan cites a requirement name and a command that the text of another requirement holds.
  • THEN The requirement with the name match comes before the requirement with the text match, and the test asserts the order.

Requirement: Same text in the verification pass

The model verification pass SHALL receive the same bounded requirement text as the planner.

Scenario: A replay of a plan that adds a conflicting requirement

  • WHEN A replay fixture holds a fake spec and a plan whose ADDED requirement conflicts with a requirement that the spec states.
  • THEN The verification pass reports the conflict, and the test asserts the report.

Requirement: Planner prompt names MODIFIED

The planner prompt SHALL tell the planner to use MODIFIED when a requirement of the context states the behavior.

Scenario: The rendered planner prompt

  • WHEN The stage job renders the planner prompt.
  • THEN The prompt holds the instruction to use MODIFIED for a requirement that states the behavior, and the test asserts its text.

Requirement: No OpenSpec binary

The stage job MUST continue with no requirement text when the OpenSpec binary is not installed.

Scenario: OpenSpec is not installed

  • WHEN The OpenSpec binary is not on the path of the stage job.
  • THEN The stage context holds no requirement text and names that OpenSpec is not installed, and the stage job continues.

Requirement: read_spec stays for the rest

The read_spec tool SHALL stay available for each requirement outside the bound.

Scenario: A plan reads a capability outside the bound

  • WHEN A plan calls read_spec for a capability whose requirements are not in the context.
  • THEN The tool returns the purpose and the full requirements of that capability, and the test asserts the text.

Existing Tool Considered

Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec), MIT, last activity 2026-11-05, is maintained. It covers the spec layer: it holds each capability's requirements with their names and full text, and its CLI prints them. It lacks relevance matching by a plan's cited capability, requirement name, paths, commands or symbols. It lacks a bound such as 12 requirements and 6000 characters. It lacks injection into the stage context and into the model verification pass, a replay case, and prompt guidance to use MODIFIED. This repository builds that selection, bound, injection and prompt text itself.

Key questions

  • Which part of the stage context holds the capability names today?: The Capabilities row of the context. It holds the names only, and read_spec gives the purpose and the requirements of one capability on demand. [sources: docs/roadmap/stage.md:71]
  • Where does the code that selects the requirement text live?: In src/devops_cli/roadmap/stage/stage_specs.py, beside read_spec at line 56. That module already reads the OpenSpec spec JSON, so the context builder and read_spec share one read. (best practice) [sources: src/devops_cli/roadmap/stage/stage_specs.py:56, openspec/changes/archive/2026-11-02-3037-the-stage-job-plans-with-a/design.md:20]
    • Chosen: Selection in stage_specs.py beside read_spec. read_spec already reads the spec JSON there, so one module holds the read and the selection.
    • Rejected: A new module for the selection. It repeats the OpenSpec JSON read that stage_specs.py holds.
  • How does the code get the text of each requirement?: From the OpenSpec CLI JSON of openspec show <capability> --type spec --json, through OpenSpecTool.read_json. No code parses the markdown of a spec. (best practice) [sources: openspec/changes/archive/2026-11-02-3037-the-stage-job-plans-with-a/design.md:20, src/devops_cli/roadmap/stage/stage_specs.py:56]
    • Chosen: Read the OpenSpec CLI JSON. The JSON holds the name, the text and the scenarios of each requirement.
    • Rejected: Parse the markdown of spec.md. It repeats a parse that the CLI does and breaks on a format change.
  • Which bounds does the context use?: Two module constants with docstrings in stage_specs.py: 12 requirements and 6000 characters. The count applies first, then the characters. (best practice) [sources: docs/roadmap/stage.md:71, src/devops_cli/roadmap/stage/stage_specs.py:56]
    • Chosen: 12 requirements and 6000 characters. The issue gives these values, and a fixed count and a fixed character count are easy to test.
    • Rejected: No bound. A large spec pushes the plan out of the context window.
    • Rejected: A token count as the bound. A character count needs no tokenizer and is easy to test.
  • What order of relevance does the context use?: A name match first: a cited capability or requirement name. Then a text match on the cited paths, commands and symbols. (best practice) [sources: docs/roadmap/stage.md:71]
    • Chosen: Name match, then text match. A name match is exact and cheap, and the text match adds the requirements that the plan touches.
    • Rejected: Text match only. It ranks a requirement that a cited name matches below one that shares a word.
    • Rejected: File order of the spec. It puts an unrelated requirement first.
  • Does _duplicate_problems change to read requirement text?: No. It keeps its Mapping[str, Collection[str]] of names at stage_change.py:734. The change adds the text to the context and the prompt only. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py:734, src/devops_cli/roadmap/stage/stage_change.py:928, openspec/changes/archive/2026-11-07-3287-detect-obsolete-spec-requirements-on-command/design.md:18]
    • Chosen: Keep names in _duplicate_problems. Six callers pass names, and a change of the value breaks the duplicate-name check and each caller.
    • Rejected: Change _duplicate_problems to text. It breaks the duplicate-name check and each caller that passes names.
  • How does the verification pass get the same text?: The verification pass calls the same selection function in stage_specs.py. stage_verify_eval.py already calls read_spec, so the eval path reuses that function. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify_eval.py, src/devops_cli/roadmap/stage/stage_specs.py:56, tests/roadmap/stage/test_roadmap_stage_verify.py]
    • Chosen: One selection function for planner and verifier. The same input gives the same text, so a replay shows the conflict.
    • Rejected: A second selection in the verification pass. Two selections can give different text and hide the conflict.
  • Which replay case shows a conflict that the verification pass now finds?: A fixture with a fake spec and a plan delta from docs(openspec): plan #3060 plan model tier ladder for retries #3225 or docs(openspec): plan #3185 move intake-eval under roadmap eval #3228 that adds a requirement which conflicts with a stated requirement. The test asserts the report. (best practice) [sources: tests/roadmap/stage/test_roadmap_stage_verify.py, src/devops_cli/roadmap/stage/stage_change.py:928]
  • What does the prompt tell the planner?: Use MODIFIED when a requirement of the context states the behavior, and name that requirement. The planner prompt holds the instruction. (best practice) [sources: docs/roadmap/stage.md:43, docs/roadmap/stage.md:71]
    • Chosen: Tell the planner to use MODIFIED for a stated behavior. The planner has the text in the context, so it can tell a stated behavior from a new one.
    • Rejected: Leave the delta type to the planner. The plan reviews of 2026-11-02 show that it adds a requirement that conflicts with a stated one.
  • What happens when the OpenSpec binary is not installed?: read_spec answers that OpenSpec is not installed, and the stage job continues with no requirement text. [sources: openspec/changes/archive/2026-11-02-3037-the-stage-job-plans-with-a/design.md:20]
  • Does the read_spec tool stay in the toolset?: Yes. The tool stays for each requirement outside the bound. It is defined at src/devops_cli/roadmap/stage/stage_tools.py:292 and documented at docs/roadmap/stage.md:43. (best practice) [sources: src/devops_cli/roadmap/stage/stage_tools.py:292, docs/roadmap/stage.md:43]
    • Chosen: Keep read_spec. The bound leaves requirements out, and the tool reads them on demand.
    • Rejected: Remove read_spec and rely on the context. A requirement outside the bound would never reach the plan.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 2, 2026
  2. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It reduces plan review rounds but does not block delivery.
    • Value: Medium. It cuts conflicting or redundant spec deltas that cost a person a review round.
    • Effort: Medium. It needs relevance matching, a bound, a prompt change, and tests.
    • Related: feat(roadmap): the stage context holds the callers and tests of each cited symbol #3012, which asks for a different change. Both enrich the stage context for the planner, but #3012 adds callers and tests while this adds requirement text.
  3. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 56c702a 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.

    • The proposal has no problem statement, no acceptance criterion with its requirement, scenario, WHEN and THEN, or no answer to the existing-tool question. State the problem, the requirements with their scenarios, and the open tool that covers the need or the cost of building it.
  4. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Tool: Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec)

    • License: MIT
    • Last activity: 2026-11-05
    • Maintained: yes

    Covers:

    • OpenSpec is the spec layer that holds each capability's requirements, with their names and full text, and the change deltas that touch them, so the requirement text the issue wants in the context already lives in one readable place.
    • Its CLI reads a spec or a change and prints its requirements, so the stage context can obtain requirement text from it instead of parsing the spec files by hand.
    • It already carries the delta vocabulary (ADDED/MODIFIED/REMOVED) that the planner must choose from, so the prompt change of criterion 4 can point at the same model.

    Lacks:

    • No relevance matching: it does not rank requirements by a plan's cited capability, requirement name, paths, commands or symbols, so the 'most relevant first' selection is the project's own code.
    • No bound: it has no cut such as 12 requirements / 6000 characters, and no named constant for one.
    • No injection into the stage context or into the model verification pass (stage_verify.py), and no replay case showing a newly found conflict.
    • No prompt guidance telling the planner to use MODIFIED when a requirement of the context already states the behavior; that stays a change in this repository.

    Searches run:

    • OpenSpec CLI show spec requirements text json
    • OpenSpec validate change proposal duplicate requirement MODIFIED
    • openspec cli spec requirements
    • openspec Fission-AI spec driven development
    • OpenSpec
    • spec delta requirement validation tool
    • openspec show command
    • openspec requirements delta spec text retrieval
    • AI coding agent spec context requirement relevance retrieval tool

    Sources:

    Checked on 2026-11-06. A person decides what this means for the item. The check changes no label and closes no issue.

  5. changed the title [-]feat(roadmap): the stage context holds the text of the requirements that the plan touches[/-] [+]feat(roadmap): Add requirement text to the stage context[/+] on Nov 6, 2026
  6. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    The job shortened the title of this item. The summary had 74 characters, and the limit is 60. The type and the scope stay.

    • Before: feat(roadmap): the stage context holds the text of the requirements that the plan touches
    • After: feat(roadmap): Add requirement text to the stage context
    • Source of the summary: the background model
  7. added
    status/ready
    and removed
    status/new
    on Nov 12, 2026
  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 8fdeea0 (see proposed design in issue body).

  9. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    New evidence from the start-context review of the roadmap jobs (2026-11-13). Source: the stage comments of 54 items, 2026-11-06 to 2026-11-13, 8,213 tool calls.

    • read_spec ran in 50 of 54 items: 500 calls for 290 distinct item and argument pairs (242 with a capability only, 232 with a capability and a requirement). 33 calls were in the first 10 calls of a run.
    • The mean answer is 1,896 characters (about 470 tokens).
    • Top capabilities: roadmap-stage in 18 items, roadmap-plan-check in 7, roadmap-stage-eval in 6.
    • The context gives only the requirement names (p50 1,172 tokens).

    Bound for this item:

    Experiment before the build, as a pre-registered arm of the pipeline split harness (E1 and E5), on the same 51 stage cases:

    • Arm A: requirement names (today). Arm B: the text of the requirements that the item cites.
    • Primary measure: read_spec calls and model requests for each run, paired by case. Per item until feat(roadmap): run records give the run, step and path class of tool calls #5460 gives the run index.
    • Screen: the stage eval score, with a non-inferiority margin set before the run. 51 cases detect only a change of 21 points or more.
    • Decision rule: arm B passes with fewer read_spec calls and fewer requests for each run, and a score inside the margin.
  10. 3 remaining items

  11. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Staged: branch feat/3246-add-requirement-text-to-the-stage, draft pull request #5651. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Select the requirement text in stage_specs: 34248 tokens
    2. Add the requirement text to the plan request context: 49096 tokens
    3. Give the review the same requirement text: 49906 tokens
    4. Add the golden-set case of the conflict of docs(openspec): plan #3060 plan model tier ladder for retries #3225: 45328 tokens
    5. Register the case of docs(openspec): plan #3060 plan model tier ladder for retries #3225 in the golden set: 17803 tokens
    6. Replay the case of docs(openspec): plan #3060 plan model tier ladder for retries #3225 through the review: 36858 tokens
    7. Tell the planner and the review about the requirement text: 43810 tokens

    A model review of the plan found these open findings. The stage keeps this pull request a draft with the label plan/needs-fix until a later round clears them:

    • major false_premise at tasks (4): Group 4 lists the case defect's type, severity, gate and evidence but not its where (and does not name problem), while Defect requires both where: str and problem: str; _read_case refuses the case, so the group's test and group 5's count test fail. Evidence: "one defect of the type spec_delta_wrong, the severity major and the gate none"

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • major spec_delta_wrong at spec roadmap-stage/context (The stage context holds the text of a cited requirement): The plan puts requirement names and text into the request context but leaves the base requirement "The model input holds the purpose and the requirement names of each capability" unmodified, and its scenario says the request holds no requirement name. The spec delta needs a modified entry for that requirement, as the issue asks for a stated behavior. Evidence: "- THEN the capabilities key holds the name of every capability in order, the request holds no purpose and no requirement name, and the run offers read_spec"
    • major spec_delta_wrong at spec roadmap-stage/verification (The verification pass reads the requirement text of the context): The plan adds a requirements key to the review input, but it leaves the base requirement "The first review of a plan keeps its request" unmodified, whose scenario says the request holds only number, title, body, plan and files. The spec delta needs a modified entry for that requirement. Evidence: "- THEN the request holds only number, title, body, plan and files, and the instructions are the prompt of the pass and the rules of the tools"
    • major verify_form at tasks (3): The group's verify runs only the verify module's test, while the group also changes src/devops_cli/roadmap/stage/stage.py (_input_of) and tests/roadmap/stage/test_roadmap_stage_apply.py. The _input_of wiring that passes the text to the pass is not run by the verify. Evidence: "uv run devops ci test tests/roadmap/stage/test_roadmap_stage_verify.py"
    • major false_premise at tasks (3): The group says it updates "the existing plan-request case" of tests/roadmap/stage/test_roadmap_stage_apply.py, but that file holds no plan-request case: its tests are about the writes of a stage. The existing request test is in tests/roadmap/stage/test_roadmap_stage_plan.py, so the group changes the wrong test file and the _input_of change stays untested. Evidence: "Update the existing plan-request case of tests/roadmap/stage/test_roadmap_stage_apply.py for the new input field"
    • major other at tasks (3): The group passes requirements= to VerificationInput.of, but the plan adds no requirements parameter to that classmethod, which builds the input from a fixed keyword list. The call raises TypeError and the group's test cannot set the field. Evidence: "pass requirements=requirement_text(self._specs, title=item.title, body=item.body)"
    • minor false_premise at tasks (2): The plan says the section stays empty because the checkout holds no openspec/specs folder, but the stage test repository holds openspec/specs/roadmap-refine/spec.md. The section is empty only because that spec holds no requirement, so the stated reason for the unchanged first-request count is false. Evidence: "The section stays empty when the checkout holds no openspec/specs folder"
    • minor other at spec roadmap-stage/context (The stage context bounds the requirement text): The requirement says each bound constant SHALL hold a docstring, but a module-level constant cannot hold one; the project's constants use comments and no test can assert a docstring. Evidence: "each constant SHALL hold a docstring"
    • minor other at tasks (4): The group is kind: other with test: null, but its implementation adds a test. An other group has no test, so the group should be behavior (its changes include a path under src/). Group 5 has the same form. Evidence: "Add test_the_prompt_says_to_use_modified_for_a_stated_behavior to tests/roadmap/stage/test_roadmap_stage_prompt_rules.py"
    • major criterion_dropped at issue (The model verification pass (stage_verify.py) receives the same text, and a replay case shows a conflict that it now finds (a case from docs(openspec): plan #3060 plan model tier ladder for retries #3225 or docs(openspec): plan #3185 move intake-eval under roadmap eval #3228).): Group 3 delivers the same text to the review with an inline fake-spec test and a scripted verifier, but no task replays a case from docs(openspec): plan #3060 plan model tier ladder for retries #3225 or docs(openspec): plan #3185 move intake-eval under roadmap eval #3228, so the criterion's replay case has no task. Evidence: "the second runs a plan against a fake spec whose requirement states the behavior and asserts that the finding stays open"
    • major spec_delta_wrong at spec roadmap-stage/verification (The first review of a plan keeps its request): The modified requirement keeps the name "The first review of a plan keeps its request" and the scenario name "The first review does not change", while its new text adds the requirements key to the request; the delta has no renamed entry, so the name says the opposite of the new text. Evidence: "Its request SHALL hold the bounded requirement text of the stage context in requirements."
    • minor spec_delta_wrong at spec roadmap-stage/verification (A quote of the requirement text opens a finding): The added requirement repeats the base requirement "An evidence-backed finding returns the plan for the set repair rounds": once requirements is in request_texts, a quote in it is already the input, and a quote in none of the input already goes into the comment. The delta should modify that requirement instead of adding a duplicate. Evidence: "A finding of the review SHALL stay open when its quote, with white space folded, is in the requirement text that the request holds, and SHALL be advice when its quote is in none of the texts of the request."
    • major false_premise at tasks (4): Group 4 records only the issue, the pull, the verdict, the state, the two commits and the defect in case.json, but StageCase also requires title, change, scores and summary, and _read_case reads issue.txt as the issue body only. The new case cannot load, so the test of the group and the count test of group 5 fail. Evidence: "Record in case.json issue 3060, pull 3225, verdict needs-fix, state merged, the two commits, and one defect of the type spec_delta_wrong"
    • minor other at spec roadmap-stage/verification (The first review of a plan sends the bounded requirement text): The requirement and its scenario say the first request holds requirements, but group 3 writes the key in payload only when the requirement text is not empty. A first review of a plan with no matching requirement therefore omits the key that the requirement says the request holds. Evidence: "Its request SHALL hold the bounded requirement text of the stage context in requirements."
    • minor false_premise at proposal (feasibility): The feasibility cites line 549 of test_roadmap_stage_plan.py as the assert that ### Registry places is in the context, but line 549 holds the registry-counts fixture string; the assert is line 559. Evidence: "tests/roadmap/stage/test_roadmap_stage_plan.py:549:assert "### Registry places" in request["context"]"
    • minor false_premise at proposal (feasibility): The feasibility calls stage.py:2019 the last section the planner appends to the context, but _Planner._request appends the facts context after it, at lines 2020-2024. Evidence: "the last section that the planner appends to the context"

    The runs of the planner and the review made 225 model request(s), and used 18083585 input tokens and 497645 output tokens. The tool calls, in order:

    1. list_files({"directory":"src/devops_cli/roadmap/stage"})
    2. read_spec({"capability":"roadmap-stage/context"})
    3. read_file({"path":"src/devops_cli/roadmap/stage/stage_specs.py"})
    4. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_context_facts.py"})
    5. search_code({"text":"request_entry"})
    6. search_code({"text":"read_base_specs"})
    7. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2030,"end_line":2110})
    8. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":850,"end_line":900})
    9. read_file({"path":"src/devops_cli/roadmap/stage/stage_request.py"})
    10. search_code({"text":"collect_context"})
    11. read_file({"path":"docs/roadmap/stage.md","start_line":30,"end_line":100})
    12. search_code({"text":"### Registry places"})
    13. search_code({"text":"_specs_on_demand"})
    14. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1960,"end_line":2030})
    15. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py"})
    16. search_code({"text":"class VerificationInput"})
    17. search_code({"text":"def verification_input"})
    18. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":380,"end_line":620})
    19. search_code({"text":"VerificationInput.of"})
    20. search_code({"text":"def _input_of"})
    21. read_file({"end_line":1960,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1880})
    22. read_file({"end_line":2960,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2880})
    23. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_specs.py"})
    24. search_code({"text":"read_spec"})
    25. read_file({"path":"docs/roadmap/stage.md","start_line":68,"end_line":95})
    26. search_code({"text":"Capabilities"})
    27. list_files({"directory":"src/devops_cli/ai/tasks"})
    28. search_code({"text":"MODIFIED"})
    29. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":1,"end_line":80})
    30. read_file({"end_line":45,"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":20})
    31. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":1,"end_line":80})
    32. search_code({"text":"def test_the_prompt"})
    33. search_code({"text":"capabilities' holds only names"})
    34. read_spec({"capability":"roadmap-stage/self-rules","requirement":"A plan that changes the stage prompt or a stage gate gives the eval replay task"})
    35. read_spec({"capability":"roadmap-stage/self-rules","requirement":"A prompt change lists the prompt-rule test"})
    36. read_file({"end_line":40,"path":"src/devops_cli/ai/tasks/roadmap_stage_verify.md","start_line":1})
    37. search_code({"text":"roadmap_stage_verify.md"})
    38. read_spec({"capability":"roadmap-stage/self-rules","requirement":"A prompt change verifies the prompt-rule test"})
    39. search_code({"text":"CONST_ROADMAP_STAGE_CONTEXT_MAX_TOKENS"})
    40. read_file({"end_line":120,"path":"tests/roadmap/stage/test_roadmap_stage_window.py","start_line":1})
    41. read_spec({"capability":"roadmap-stage/verification"})
    42. read_spec({"capability":"roadmap-stage/spec-delta"})
    43. list_files({"directory":"tests/roadmap/stage"})
    44. list_files({"directory":"src/devops_cli/roadmap/stage"})
    45. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_verify.py"})
    46. search_code({"text":"_input_of"})
    47. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1890,"end_line":2060})
    48. search_code({"text":"_specs"})
    49. search_code({"text":"self._specs"})
    50. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1255,"end_line":1295})
    51. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2055,"end_line":2075})
    52. read_file({"end_line":520,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":420})
    53. search_code({"text":"_Planner"})
    54. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_apply.py","start_line":1,"end_line":40})
    55. read_file({"end_line":80,"path":"docs/roadmap/stage.md","start_line":38})
    56. search_code({"text":"CONST_ROADMAP_STAGE_CONTEXT_MAX_TOKENS"})
    57. read_spec({"capability":"roadmap-stage/context"})
    58. read_spec({"capability":"roadmap-stage/verification"})
    59. read_spec({"capability":"roadmap-stage/spec-delta"})
    60. list_files({"directory":"src/devops_cli/ai/tasks"})
    61. find_issues({"terms":"requirement text stage context"})
    62. read_issue({"number":3228})
    63. search_code({"text":"request_entry"})
    64. read_file({"end_line":30,"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":14})
    65. read_file({"end_line":12,"path":"src/devops_cli/ai/tasks/roadmap_stage_verify.md","start_line":1})
    66. read_spec({})
    67. read_file({"path":"src/devops_cli/roadmap/stage/stage_specs.py","start_line":45,"end_line":100})
    68. search_code({"text":"self._requirement_texts"})
    69. search_code({"text":"self._specs"})
    70. search_code({"text":"_input_of"})
    71. search_code({"text":"class VerificationInput"})
    72. search_code({"text":"### Registry places"})
    73. search_code({"text":"_duplicate_problems"})
    74. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1890,"end_line":1935})
    75. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2000,"end_line":2035})
    76. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1255,"end_line":1295})
    77. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":725,"end_line":770})
    78. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":920,"end_line":940})
    79. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":415,"end_line":520})
    80. read_file({"path":"docs/roadmap/stage.md","start_line":38,"end_line":85})
    81. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":280,"end_line":310})
    82. read_spec({"capability":"roadmap-stage/context"})
    83. read_spec({"capability":"roadmap-stage/verification"})
    84. read_spec({"capability":"roadmap-stage/spec-delta"})
    85. read_file({"path":"src/devops_cli/config/constants.py","start_line":3400,"end_line":3415})
    86. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":10,"end_line":32})
    87. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_verify.md","start_line":1,"end_line":6})
    88. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2055,"end_line":2075})
    89. search_code({"text":"VerificationInput"})
    90. search_code({"text":"requirement_text"})
    91. search_code({"text":"Requirement text"})
    92. read_file({"path":"tests/support/roadmap_stage.py","start_line":1,"end_line":120})
    93. read_file({"path":"src/devops_cli/roadmap/stage/stage_specs.py","start_line":25,"end_line":44})
    94. list_files({"directory":"tests/roadmap/stage"})
    95. read_file({"path":"tests/support/roadmap_stage.py","start_line":120,"end_line":260})
    96. search_code({"text":"request_entry"})
    97. search_code({"text":"def test_"})
    98. search_code({"text":"openspec/specs"})
    99. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_apply.py"})
    100. search_code({"text":"plan-request"})
    101. search_code({"text":"\"request\""})
    102. search_code({"text":"3225"})
    103. search_code({"text":"3228"})
    104. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The model input holds the purpose and the requirement names of each capability"})
    105. read_spec({"capability":"roadmap-stage/verification","requirement":"A spec delta finding needs a scenario with no part that a test can assert"})
    106. read_spec({"capability":"roadmap-stage/context","requirement":"Planner Feasibility instruction"})
    107. read_spec({"capability":"roadmap-stage/context","requirement":"Repository-derived facts"})
    108. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_window.py","start_line":140,"end_line":230})
    109. read_spec({"capability":"roadmap-stage/verification","requirement":"The first review of a plan keeps its request"})
    110. read_spec({"capability":"roadmap-stage/verification","requirement":"A finding on a place that the plan does not hold is advice"})
    111. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The stage prompt requires a modified or removed requirement for a removed command"})
    112. read_spec({"capability":"roadmap-stage/context","requirement":"The stage prompt states the Dependencies rule"})
    113. read_spec({"capability":"roadmap-stage/context"})
    114. read_spec({"capability":"roadmap-stage/verification"})
    115. search_code({"text":"The model input holds the purpose and the requirement names"})
    116. read_spec({"capability":"roadmap-stage/verification","requirement":"The first review of a plan keeps its request"})
    117. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The model input holds the purpose and the requirement names of each capability"})
    118. read_spec({"capability":"roadmap-stage/spec-delta"})
    119. search_code({"text":"def ci_test"})
    120. list_files({"directory":"tests/roadmap/stage"})
    121. search_code({"text":"\"ci\", \"test\""})
    122. search_code({"text":"Registry places"})
    123. search_code({"text":"devops ci test"})
    124. search_code({"text":"def verify_problems"})
    125. search_code({"text":"_VERIFY"})
    126. search_code({"text":"_input_of"})
    127. search_code({"text":"class VerificationInput"})
    128. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1890,"end_line":1935})
    129. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":415,"end_line":480})
    130. read_file({"end_line":540,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":480})
    131. search_code({"text":"self._specs"})
    132. read_file({"end_line":2030,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1995})
    133. read_file({"end_line":80,"path":"docs/roadmap/stage.md","start_line":60})
    134. read_file({"end_line":570,"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":540})
    135. read_file({"end_line":1290,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1250})
    136. search_code({"text":"CONST_ROADMAP_STAGE_CONTEXT_MAX_TOKENS"})
    137. search_code({"text":"test_roadmap_stage_window"})
    138. search_code({"text":"VerificationInput.of"})
    139. search_code({"text":"_input_of"})
    140. search_code({"text":"def test_"})
    141. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_plan.py"})
    142. read_file({"end_line":190,"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":156})
    143. read_file({"end_line":542,"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":510})
    144. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_verify.py"})
    145. search_code({"text":"def _plan_with_review"})
    146. search_code({"text":"verifier="})
    147. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py"})
    148. list_files({"directory":"src/devops_cli/ai/tasks"})
    149. search_code({"text":"def code_spans"})
    150. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1980,"end_line":2040})
    151. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1890,"end_line":1935})
    152. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":400,"end_line":520})
    153. read_file({"path":"docs/roadmap/stage.md","start_line":35,"end_line":95})
    154. read_spec({"capability":"roadmap-stage/verification"})
    155. read_spec({"capability":"roadmap-stage/spec-delta"})
    156. read_spec({"capability":"roadmap-stage/context"})
    157. read_spec({"capability":"roadmap-stage/verification","requirement":"The first review of a plan keeps its request"})
    158. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The model input holds the purpose and the requirement names of each capability"})
    159. read_spec({"capability":"roadmap-stage/context","requirement":"The stage context lists an overlapping pull request"})
    160. read_spec({"capability":"roadmap-stage/verification","requirement":"Only a blocker or a major finding is open"})
    161. read_spec({"capability":"roadmap-stage/verification","requirement":"An evidence-backed finding returns the plan for the set repair rounds"})
    162. read_spec({"capability":"roadmap-stage/verification","requirement":"A finding on a place that the plan does not hold is advice"})
    163. search_code({"text":"self._specs"})
    164. search_code({"text":"GroupKind.OTHER"})
    165. search_code({"text":"def requirement_text"})
    166. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":530,"end_line":600})
    167. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1660,"end_line":1700})
    168. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":598,"end_line":650})
    169. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1250,"end_line":1295})
    170. read_file({"path":"src/devops_cli/config/constants.py","start_line":3400,"end_line":3412})
    171. search_code({"text":"def test_a_first_review_keeps_its_request_and_its_prompt"})
    172. search_code({"text":"def read_base_specs"})
    173. search_code({"text":"read_base_specs("})
    174. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":960,"end_line":1020})
    175. search_code({"text":"capability rule"})
    176. search_code({"text":"MODIFIED"})
    177. search_code({"text":"test_the_verify_prompt"})
    178. search_code({"text":"capabilit"})
    179. search_code({"text":"read_spec"})
    180. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":1,"end_line":80})
    181. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":80,"end_line":180})
    182. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":20,"end_line":79})
    183. read_issue({"number":5622})
    184. find_issues({"terms":"5622"})
    185. search_code({"text":"relevance"})
    186. search_code({"text":"statements"})
    187. list_files({"directory":"src/devops_cli/ai/tasks"})
    188. list_files({"directory":"tests/roadmap/stage"})
    189. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_requirements.py","start_line":1,"end_line":60})
    190. search_code({"text":"requirements"})
    191. search_code({"text":"def seed_stageable"})
    192. search_code({"text":"def test_a_first_request_with_the_context_and_the_body_at_their_caps"})
    193. read_file({"path":"tests/support/roadmap_stage.py","start_line":160,"end_line":230})
    194. search_code({"text":"def test_a_quote"})
    195. search_code({"text":"not in the input"})
    196. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":280,"end_line":310})
    197. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_window.py","start_line":130,"end_line":170})
    198. search_code({"text":"advice"})
    199. search_code({"text":"not_in_the_input"})
    200. search_code({"text":"contains("})
    201. read_spec({"capability":"roadmap-stage/verification","requirement":"The first review of a plan keeps its request"})
    202. list_files({"directory":"tests/roadmap/stage"})
    203. search_code({"text":"eval stage --replay"})
    204. list_files({"directory":"tests/roadmap/stage/__snapshots__"})
    205. search_code({"text":"stage_eval_cases"})
    206. list_files({"directory":"src/devops_cli/roadmap/stage"})
    207. search_code({"text":"3225"})
    208. search_code({"text":"3228"})
    209. list_files({"directory":"tests/fixtures/roadmap_eval/stage"})
    210. list_files({"directory":"tests/fixtures/roadmap_eval"})
    211. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_verify_eval.py"})
    212. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py"})
    213. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py"})
    214. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py"})
    215. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":84,"end_line":270})
    216. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py","start_line":60,"end_line":260})
    217. read_file({"path":"tests/fixtures/roadmap_eval/stage/3462-a-modified-requirement-over-the-limit/case.json"})
    218. read_file({"path":"tests/fixtures/roadmap_eval/stage/3462-a-modified-requirement-over-the-limit/facts.json"})
    219. read_file({"end_line":520,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":400})
    220. read_file({"end_line":310,"path":"src/devops_cli/roadmap/stage/stage_verify_eval.py","start_line":240})
    221. search_code({"text":"EVALUATED_PULLS"})
    222. read_file({"path":"tests/fixtures/roadmap_eval/stage/3408-a-plan-restates-the-missing-path-rule/case.json"})
    223. read_file({"path":"tests/fixtures/roadmap_eval/stage/3408-a-plan-restates-the-missing-path-rule/plan.json","start_line":1,"end_line":40})
    224. read_file({"path":"tests/fixtures/roadmap_eval/stage/3408-a-plan-restates-the-missing-path-rule/plan.json","start_line":150,"end_line":175})
    225. list_files({"directory":"tests/fixtures/roadmap_eval/stage/3328-missing-prompt-key"})
    226. file_symbols({"path":"src/devops_cli/roadmap/plan_read.py"})
    227. search_code({"text":"plan-read"})
    228. callers({"symbol":"read_change"})
    229. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_verify.py"})
    230. read_file({"end_line":635,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":584})
    231. read_file({"end_line":240,"path":"src/devops_cli/roadmap/stage/stage_verify_eval.py","start_line":60})
    232. search_code({"text":"openspec/changes/archive/2026-11-0"})
    233. search_code({"text":"3060-the-"})
    234. search_code({"text":"tier ladder"})
    235. read_file({"path":"tests/fixtures/roadmap_eval/stage/3328-missing-prompt-key/case.json"})
    236. read_file({"end_line":30,"path":"tests/fixtures/roadmap_eval/stage/3328-missing-prompt-key/plan.json","start_line":1})
    237. read_file({"end_line":800,"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py","start_line":700})
    238. read_issue({"number":3225})
    239. read_issue({"number":3228})
    240. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The model input holds the purpose and the requirement names of each capability"})
    241. search_code({"text":"EVALUATED_PULLS"})
    242. list_files({"directory":"tests/fixtures/roadmap_eval/stage"})
    243. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_eval_cases.py","start_line":40,"end_line":75})
    244. search_code({"text":"def requirement_text"})
    245. list_files({"directory":"tests/roadmap/stage"})
    246. list_files({"directory":"src/devops_cli/ai/tasks"})
    247. read_spec({"capability":"x"})
    248. read_spec({"capability":"roadmap-stage/tests-gate","requirement":"A test-only other group names its test function"})
    249. read_spec({"capability":""})
    250. search_code({"text":"class _Planner"})
    251. search_code({"text":"test_a_first_review_keeps_its_request_and_its_prompt"})
    252. search_code({"text":"def _run_cases"})
    253. read_spec({"capability":"roadmap-stage/verification"})
    254. read_spec({"capability":"roadmap-stage/context"})
    255. read_spec({"capability":"roadmap-stage/spec-delta"})
    256. read_spec({"capability":"roadmap-stage/tests-gate"})
    257. read_spec({"capability":"roadmap-stage/verification","requirement":"The first review of a plan keeps its request"})
    258. read_spec({"capability":"roadmap-stage/verification","requirement":"Every open finding returns the plan to the planner"})
    259. read_spec({"capability":"roadmap-stage/verification","requirement":"A finding on a place that the plan does not hold is advice"})
    260. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The model input holds the purpose and the requirement names of each capability"})
    261. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1200,"end_line":1420})
    262. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify_eval.py","start_line":180,"end_line":320})
    263. read_file({"end_line":660,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":380})
    264. read_file({"end_line":300,"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":120})
    265. read_spec({"capability":"roadmap-stage/tests-gate","requirement":"A manifest plan names the tests that reference it"})
    266. read_spec({"capability":"roadmap-stage/tests-gate","requirement":"A test-only other group names its test function"})
    267. search_code({"text":"MANIFEST"})
    268. search_code({"text":"class GroupKind"})
    269. search_code({"text":"manifest"})
    270. read_file({"end_line":560,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":480})
    271. search_code({"text":"MANIFEST"})
    272. read_file({"end_line":650,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":556})
    273. list_files({"directory":"tests/fixtures/roadmap_eval/stage"})
    274. read_file({"path":"tests/fixtures/roadmap_eval/stage/3408-a-plan-restates-the-missing-path-rule/case.json"})
    275. read_file({"path":"tests/fixtures/roadmap_eval/stage/3462-a-modified-requirement-over-the-limit/case.json"})
    276. search_code({"text":"def read_change"})
    277. read_file({"path":"src/devops_cli/roadmap/plan_read.py","start_line":1,"end_line":80})
    278. read_issue({"number":3225})
    279. read_spec({"capability":"roadmap-implement-step/verification"})
    280. read_file({"end_line":90,"path":"docs/roadmap/stage.md","start_line":55})
    281. read_file({"end_line":60,"path":"docs/roadmap/stage.md","start_line":35})
    282. search_code({"text":"3060-a-model-ladder"})
    283. search_code({"text":"plan #3060"})
    284. search_code({"text":"model tier ladder"})
    285. search_code({"text":"a model ladder"})
    286. search_code({"text":"tier"})
    287. read_file({"end_line":1010,"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":960})
    288. search_code({"text":"roadmap eval stage"})
    289. search_code({"text":"--replay"})
    290. read_spec({"capability":"roadmap-stage/context","requirement":"Repository-derived facts"})
    291. read_spec({"capability":"roadmap-stage/context","requirement":"The stage context lists an overlapping pull request"})
    292. search_code({"text":"_input_of"})
    293. search_code({"text":"test_the_verifier_gets_the_cited_file_of_the_checkout_of_the_case"})
    294. read_file({"end_line":640,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":575})
    295. read_file({"end_line":1940,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1885})
    296. search_code({"text":"def _request"})
    297. search_code({"text":"Registry places"})
    298. search_code({"text":"2026-11-0"})
    299. search_code({"text":"(#3005)"})
    300. references({"name":"The first review of a plan keeps its request"})
    301. references({"name":"The model input holds the purpose and the requirement names of each capability"})
    302. read_file({"end_line":95,"path":"docs/roadmap/stage.md","start_line":83})
    303. search_code({"text":"keeps its request"})
    304. search_code({"text":"The first review"})
    305. search_code({"text":"golden set"})
    306. search_code({"text":"keeps its request"})
    307. search_code({"text":"_DOCUMENTS"})
    308. search_code({"text":"_DOCUMENTS["})
    309. search_code({"text":"roadmap/stage.md"})
    310. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":1,"end_line":200})
    311. list_files({"directory":"tests/fixtures/roadmap_eval/stage"})
    312. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":168,"end_line":330})
    313. read_file({"path":"tests/fixtures/roadmap_eval/stage/3410-the-eval-field-group-is-dropped/case.json"})
    314. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py"})
    315. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_verify_eval.py"})
    316. read_file({"path":"tests/roadmap_stage_verify_eval.py","start_line":100,"end_line":180})
    317. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify_eval.py","start_line":226,"end_line":305})
    318. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py","start_line":60,"end_line":180})
    319. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py","start_line":226,"end_line":262})
    320. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_eval_cases.py"})
    321. read_file({"end_line":125,"path":"tests/roadmap/stage/test_roadmap_stage_eval_cases.py","start_line":60})
    322. search_code({"text":"def stage_repo"})
    323. search_code({"text":"openspec/specs"})
    324. read_file({"path":"tests/support/roadmap_stage.py","start_line":100,"end_line":200})
    325. search_code({"text":"checkout_at("})
    326. read_file({"end_line":60,"path":"tests/roadmap/stage/test_roadmap_stage_eval_cases.py","start_line":1})
    327. read_file({"path":"src/devops_cli/roadmap/clone_git.py","start_line":30,"end_line":80})
    328. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py","start_line":1,"end_line":60})
    329. read_file({"end_line":765,"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py","start_line":700})
    330. search_code({"text":"git(REPO_ROOT"})
    331. search_code({"text":"rev-parse\", \"HEAD"})
    332. search_code({"text":"_specs"})
    333. search_code({"text":"def code_spans"})
    334. search_code({"text":"read_base_specs"})
    335. search_code({"text":"self._specs"})
    336. search_code({"text":"### Registry places"})
    337. search_code({"text":"def _input_of"})
    338. read_file({"end_line":575,"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":500})
    339. read_file({"end_line":100,"path":"tests/support/roadmap_stage.py","start_line":60})
    340. read_file({"end_line":520,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":400})
    341. read_file({"end_line":640,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":580})
    342. read_spec({"capability":"roadmap-stage/verification","requirement":"The first review of a plan keeps its request"})
    343. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The model input holds the purpose and the requirement names of each capability"})
    344. read_spec({"capability":"roadmap-stage/context"})
    345. read_spec({"capability":"roadmap-stage/spec-delta"})
    346. read_spec({"capability":"roadmap-stage/verification"})
    347. list_files({"directory":"tests/roadmap/stage"})
    348. list_files({"directory":"src/devops_cli/ai/tasks"})
    349. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":150,"end_line":290})
    350. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify_eval.py","start_line":220,"end_line":320})
    351. read_spec({"capability":"roadmap-stage/context"})
    352. read_spec({"capability":"roadmap-stage/verification"})
    353. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":60,"end_line":150})
    354. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":400,"end_line":530})
    355. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":570,"end_line":650})
    356. read_spec({"capability":"roadmap-stage/spec-delta","requirement":"The model input holds the purpose and the requirement names of each capability"})
    357. read_spec({"capability":"roadmap-stage/verification","requirement":"The first review of a plan keeps its request"})
    358. read_file({"path":"docs/roadmap/stage.md","start_line":30,"end_line":95})
    359. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":535,"end_line":560})
    360. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1255,"end_line":1275})
    361. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2005,"end_line":2030})
    362. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_eval_cases.py","start_line":60,"end_line":80})
    363. read_file({"path":"src/devops_cli/roadmap/stage/stage_specs.py","start_line":60,"end_line":80})
    364. read_file({"path":"docs/roadmap/stage.md","start_line":68,"end_line":140})
    365. read_file({"path":"tests/support/roadmap_stage.py","start_line":55,"end_line":105})
    366. list_files({"directory":"tests/fixtures/roadmap_eval/stage"})
    367. read_issue({"number":3225})
    368. read_issue({"number":5622})
    369. search_code({"text":"_input_of"})
    370. search_code({"text":"def _request"})
    371. search_code({"text":"VerificationInput.of"})
    372. search_code({"text":"test_the_verifier_gets_the_issue_the_plan_and_the_cited_files_once_the_gates_pass"})
    373. search_code({"text":"test_a_first_review_keeps_its_request_and_its_prompt"})
    374. search_code({"text":"def collect_stage_facts_context"})
    375. read_file({"path":"src/devops_cli/roadmap/plan_read.py","start_line":300,"end_line":380})
    376. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":975,"end_line":1030})
    377. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1890,"end_line":1935})
    378. read_file({"path":"src/devops_cli/roadmap/stage/stage_context_facts.py","start_line":140,"end_line":175})
    379. search_code({"text":"def read_change"})
    380. search_code({"text":"def test_the_request_context_holds_the_text_of_a_cited_requirement"})
    381. search_code({"text":"devops ci test"})
    382. search_code({"text":"class FailureClass"})
    383. search_code({"text":"NOT_IN_RUNNER"})
    384. search_code({"text":"REQUIREMENT_TEXT_MAX_COUNT"})
    385. search_code({"text":"requirement_text"})
    386. read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":50,"end_line":120})
    387. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify_eval.py","start_line":100,"end_line":140})
    388. read_file({"path":"src/devops_cli/roadmap/stage/stage_specs.py","start_line":1,"end_line":60})
    389. search_code({"text":"openspec"})
    390. search_code({"text":"\"gh\""})
    391. read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":118,"end_line":145})
    392. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":1,"end_line":120})
    393. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":116,"end_line":280})
    394. read_file({"path":"tests/fixtures/roadmap_eval/stage/3410-the-eval-field-group-is-dropped/case.json"})
    395. read_file({"path":"tests/fixtures/roadmap_eval/stage/3410-the-eval-field-group-is-dropped/facts.json"})
    396. search_code({"text":"first request"})
    397. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_window.py","start_line":1,"end_line":120})
    398. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_window.py","start_line":120,"end_line":230})
    399. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":120,"end_line":200})
    400. search_code({"text":"class Defect"})
    401. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":200,"end_line":300})
    402. search_code({"text":"def _check_defect_gate"})
    403. read_file({"end_line":118,"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":80})
    404. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":90,"end_line":280})
    405. read_file({"path":"src/devops_cli/roadmap/stage/stage_specs.py","start_line":55,"end_line":85})
    406. read_issue({"number":3225})
    407. search_code({"text":"_input_of"})
    408. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1880,"end_line":1990})
    409. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":180,"end_line":330})
    410. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":380,"end_line":560})
    411. git_log({})
    412. search_code({"text":"def read_change"})
    413. search_code({"text":"3060-a-model-ladder"})
    414. list_files({"directory":"tests/fixtures/roadmap_eval/stage"})
    415. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_eval_cases.py","start_line":120,"end_line":300})
    416. search_code({"text":"model tier ladder"})
    417. git_log({"path":"openspec/changes"})
    418. search_code({"text":"spec_delta_wrong"})
    419. read_file({"path":"tests/fixtures/roadmap_eval/stage/3462-a-modified-requirement-over-the-limit/case.json"})
    420. read_file({"path":"tests/fixtures/roadmap_eval/stage/3408-a-plan-restates-the-missing-path-rule/case.json"})
    421. list_files({"directory":"openspec/specs/roadmap-implement-step"})
    422. read_spec({"capability":"roadmap-stage/verification"})
    423. list_files({"directory":"openspec/specs/roadmap-implement-step"})
    424. search_code({"text":"roadmap-implement-step/spec.md"})
    425. search_code({"text":"defect.reason"})
    426. search_code({"text":"reason"})
    427. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_eval_gates.py","start_line":560,"end_line":640})
    428. search_code({"text":"gate_for("})

    Tool calls: callers=1 (empty=0), file_symbols=15 (empty=0), find_issues=2 (empty=0), git_log=2 (empty=0), list_files=27 (empty=0), read_file=154 (empty=2), read_issue=8 (empty=0), read_spec=63 (empty=0), references=2 (empty=0), search_code=154 (empty=14)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

  12. removed
    owner/service
    on Nov 14, 2026
  13. added 2 commits that reference this issue on Nov 14, 2026
  14. added
    status/planned
    and removed
    status/ready
    on Nov 14, 2026
  15. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    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.

  16. added
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 23, 2026
  17. removed
    status/in-review
    on Nov 23, 2026
  18. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-23 04:05 UTC

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/mediumpriority/p2-mediumscope/roadmaptype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions