Skip to content

feat(roadmap): the stage plan states constant claims in a structured field #3388

Closed

Description

@dan-petty

Problem or Motivation

The plan check reads constant claims from prose. This is brittle in two ways. A sentence with two numbers is skipped as ambiguous, so a plan can write a wrong bound beside a note number and pass. A plan can also give an existing bound a new name, as PLAN_SUMMARY_MAX_CHARS = 47 did in PR #3260, and the check skips it because the staged tree defines no such name. The model must then remember the prompt rule, and the check cannot compare the claim.

A structured claim gives the check one number, one name and no prose to parse.

Proposed Solution & Architectural Design

  • Add constant_claims: list[StageConstantClaim] to StageProposal in src/devops_cli/roadmap/stage_change.py. Each entry has name and value.
  • Add the key to src/devops_cli/ai/tasks/roadmap_stage_change.md under the reply keys, and tell the model to list each constant that the plan relies on with its staged value.
  • In check_proposal, compare each claim with the staged value that staged_constants reads with git grep, git show and ast. Keep the prose scan only as a fallback when the list is empty, so an older reply still works.
  • Refuse a claim that names a value the tree does not define, and name the constant and the staged value in the message.
  • Add tests in tests/roadmap/test_roadmap_stage_constants.py and tests/roadmap/test_roadmap_stage_plan.py, and update the prompt key test in tests/roadmap/test_roadmap_stage_prompt_rules.py.

Target Subsystem

SDLC, Git & PR Governance

Existing Tool Considered

No open tool compares a plan constant with a staged Python constant. The change reuses the ast reader and the git grep and git show pattern of src/devops_cli/roadmap/stage_probe.py, and adds no dependency. Estimated cost: 12,000 tokens to build, 3,000 tokens per month to keep and fix, and 1 to 2 elapsed days.

Source: #3329

Dependencies

Alternatives check of 2026-11-06: none.
Tool: none found.

Proposed design

Problem statement

The stage plan states its constant claims in prose. The plan check skips a sentence with two numbers, so a wrong bound can pass. It also skips a new name for an existing bound, as PLAN_SUMMARY_MAX_CHARS = 47 did. This item adds constant_claims to the stage reply and compares each claim with the staged value.

Acceptance criteria

Requirement: The stage reply holds structured constant claims

StageProposal SHALL hold constant_claims, a list of StageConstantClaim entries that each give a constant name and an integer value.

Scenario: A reply with one claim

  • WHEN A reply gives constant_claims with the name BODY_MAX_CHARS and the value 800
  • THEN The validated proposal holds one entry, and the entry keeps the name BODY_MAX_CHARS and the value 800

Requirement: A claim name is a Python identifier

StageConstantClaim MUST refuse a name that is not a Python identifier.

Scenario: A name with a hyphen

  • WHEN A reply gives the claim name BODY-MAX
  • THEN Validation raises an error for constant_claims

Requirement: The claim list defaults to empty

StageProposal MUST give constant_claims an empty list when a reply omits the key.

Scenario: A reply with no claim list

  • WHEN A reply gives no constant_claims
  • THEN The validated proposal holds an empty constant_claims and no validation error

Requirement: The prompt lists the claim key

The stage prompt SHALL list constant_claims among the reply keys and state that the plan lists each constant it relies on with its staged value.

Scenario: The prompt key test

  • WHEN The test reads the reply keys of src/devops_cli/ai/tasks/roadmap_stage_change.md
  • THEN The keys equal the fields of StageProposal, and constant_claims is one of them

Requirement: The prompt states which constants a claim names

The stage prompt SHALL state that a claim names a constant that the staged tree defines, and that a constant the plan creates is no claim.

Scenario: The prompt claim rule

  • WHEN The test reads the text of src/devops_cli/ai/tasks/roadmap_stage_change.md
  • THEN The text holds the sentence that a claim names a constant of the staged tree and that a constant the plan creates is no claim

Requirement: A correct claim passes

check_proposal SHALL return no constant-claim problem for a claim whose value equals the staged value.

Scenario: A claim with the staged value

  • WHEN The plan claims BODY_MAX_CHARS is 800 and the staged value is 800
  • THEN No problem names BODY_MAX_CHARS

Requirement: A wrong claim is refused

check_proposal SHALL refuse a claim whose value differs from the staged value, and the message SHALL name the constant and the staged value.

Scenario: A claim with another value

  • WHEN The plan claims BODY_MAX_CHARS is 900 and the staged value is 800
  • THEN One problem names BODY_MAX_CHARS and 800

Requirement: A claim with no staged definition is refused

check_proposal SHALL refuse a claim whose name the staged tree defines as no module-level integer literal, and the message SHALL name the constant.

Scenario: An invented name

  • WHEN The plan claims PLAN_SUMMARY_MAX_CHARS is 47 and the staged reader finds no such module-level integer literal
  • THEN One problem names PLAN_SUMMARY_MAX_CHARS

Requirement: The prose scan runs when the claim list is empty

check_proposal SHALL run the existing prose scan of constant claims only when constant_claims is empty.

Scenario: A reply with no claim list and a prose claim

  • WHEN A reply gives no constant_claims and states a constant claim in prose
  • THEN check_proposal returns the prose problem for that text

Requirement: A claim list suppresses the prose scan

check_proposal SHALL return no prose problem for a reply that gives constant_claims.

Scenario: A reply with a claim list and a prose claim

  • WHEN A reply claims BODY_MAX_CHARS is 800 and its prose holds a sentence with two numbers
  • THEN check_proposal returns no prose problem for that sentence

Requirement: The replay judges no claim

check_proposal SHALL judge no constant claim when the caller gives no staged values.

Scenario: A caller with no staged values

  • WHEN check_proposal runs with no constants argument on a plan that claims BODY_MAX_CHARS is 900
  • THEN No problem names BODY_MAX_CHARS

Requirement: The claim model has one home

StageConstantClaim SHALL live in src/devops_cli/roadmap/stage/stage_change.py beside StageProposal.

Scenario: The import of the claim model

  • WHEN A test imports StageConstantClaim from devops_cli.roadmap.stage.stage_change
  • THEN The import succeeds, and the staged-constant reader module holds no StageConstantClaim

Requirement: The stage job passes the staged values

The stage job SHALL pass the staged values that the reader gives to check_proposal.

Scenario: A plan with a wrong claim

  • WHEN The stage job plans an item whose reply claims BODY_MAX_CHARS is 900 and the staged value is 800
  • THEN The item fails with a problem that names BODY_MAX_CHARS and 800

Existing Tool Considered

The alternatives check of 2026-11-06 found no tool. No open, maintained tool or library compares the constant claims of a plan with the module-level integer literals of a staged Python tree. The change builds its own code and adds no dependency. Written cost: 12,000 tokens to build, 3,000 tokens per month to keep and fix, and 1 to 2 elapsed days. It deletes no internal code.

Key questions

  • Which module holds the reply model of the stage plan?: StageProposal lives in src/devops_cli/roadmap/stage/stage_change.py, and that module holds the reply models and their limits. [sources: src/devops_cli/roadmap/stage/stage_change.py, docs/roadmap/package-layout.md]
  • Where does StageConstantClaim live?: StageConstantClaim lives in src/devops_cli/roadmap/stage/stage_change.py beside StageProposal. The staged-constant reader keeps its own module, and this item adds no second reader. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py, docs/roadmap/package-layout.md, src/devops_cli/roadmap/stage/stage_probe.py]
    • Chosen: In stage_change.py beside StageProposal. The model is part of the reply, and the module already holds the reply fields and their limits.
    • Rejected: In the staged-constant reader module. It puts a reply model in the reader and gives the model two homes.
    • Rejected: In stage_probe.py. The probe reads the premise of an item, and this item changes the plan check.
  • Is constant_claims a required key of the reply?: No. constant_claims defaults to an empty list, so a reply that gives no list still validates. The prompt lists the key, because the prompt-rule test compares the reply keys with the fields of StageProposal. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py, tests/roadmap/stage/test_roadmap_stage_prompt_rules.py, openspec/changes/3247-require-a-security-section-for-sensitive/proposal.md:38]
    • Chosen: Optional, with an empty default. An older reply still validates, and the prose scan judges it.
    • Rejected: Required in the reply. It breaks every reply that an older prompt produced.
  • How does check_proposal receive the staged values?: check_proposal takes a keyword-only constants: Mapping[str, int] | None. The mapping holds the value of each claimed name that the reader found, so a name that the mapping lacks is undefined. None means that the caller read no value: the check judges no claim and reads no git. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py, docs/ROADMAP_WORKFLOW.md, openspec/changes/3344-the-stage-probe-checks-client-model/design.md:16]
    • Chosen: A keyword-only mapping. The caller has the checkout and the commit, and the replay passes None and reads no git.
    • Rejected: check_proposal reads git itself. The replay calls check_proposal and must read no git.
    • Rejected: StagedTree holds the constants. StagedTree holds paths only, and the reader needs the checkout and the commit.
  • When does the prose scan of a constant claim run?: The prose scan runs only when constant_claims is empty. A plan that gives claims is judged by the claims. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, openspec/changes/archive/2026-11-07-3308-the-plan-check-compares-a-number/design.md, src/devops_cli/roadmap/stage/stage_change.py]
    • Chosen: Only when the list is empty. The issue asks for the fallback, and a plan with claims is judged by the claims.
    • Rejected: Always. The prose parse stays brittle for a plan that gives the claims.
  • Does this item still wait for feat(roadmap): check a plan number against its constant #3308?: No. The change of feat(roadmap): check a plan number against its constant #3308 is archived under openspec/changes/archive/2026-11-07-3308-the-plan-check-compares-a-number/, so its reader and its prose scan are on the default branch. An archived change creates no dependency. [sources: openspec/changes/archive/2026-11-07-3308-the-plan-check-compares-a-number/proposal.md, openspec/changes/archive/2026-11-07-3308-the-plan-check-compares-a-number/specs/roadmap-stage/spec.md, docs/ROADMAP_WORKFLOW.md]
  • How does the check treat a structured claim whose name the staged tree does not define?: check_proposal refuses the claim and names the constant. The prose scan still skips an undefined name, because feat(roadmap): check a plan number against its constant #3308 rejected a refusal there to keep a valid plan that names PLAN_SUMMARY_MAX_CHARS = 47. The prompt says that a claim names a constant of the staged tree. (best practice) [sources: openspec/changes/archive/2026-11-07-3308-the-plan-check-compares-a-number/design.md, openspec/changes/archive/2026-11-07-3308-the-plan-check-compares-a-number/proposal.md:47, openspec/changes/archive/2026-11-07-3308-the-plan-check-compares-a-number/specs/roadmap-stage/spec.md]
  • What does the stage check require of a plan that changes the stage prompt or check_proposal?: The plan needs one group task with uv run devops roadmap eval stage --replay and the words score, before and after. A behavior group that changes src/devops_cli/roadmap/stage/stage_change.py also needs a group test that builds the plan's own StageProposal and asserts that content_problems returns no problem for it. [sources: docs/ROADMAP_WORKFLOW.md, src/devops_cli/ai/tasks/roadmap_stage_change.md]
  • Where do the new tests go?: A new test module goes under tests/roadmap/stage/, which mirrors the package of the code. The change extends tests/roadmap/stage/test_roadmap_stage_constants.py and tests/roadmap/stage/test_roadmap_stage_plan.py, and updates tests/roadmap/stage/test_roadmap_stage_prompt_rules.py. [sources: tests/roadmap/stage/test_roadmap_stage_constants.py, tests/roadmap/stage/test_roadmap_stage_plan.py, tests/roadmap/stage/test_roadmap_stage_prompt_rules.py, src/devops_cli/ai/tasks/roadmap_stage_change.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 3, 2026
  2. dan-petty commented on Nov 3, 2026

    @dan-petty
    OwnerAuthor

    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 hardens an existing check against two failure modes but does not block delivery or fix a security gap.
    • Value: Medium. It removes two brittle parsing cases so a plan cannot pass with a wrong or renamed bound.
    • Effort: Medium. It adds a typed field, a prompt key, a compare branch in check_proposal, and tests across three files, estimated at 1 to 2 days.
    • Related: feat(roadmap): check a plan number against its constant #3308, which asks for a different change. Both verify constant claims in a plan against staged values, but #3308 parses prose while the candidate adds a structured list field and keeps prose as a fallback.
  3. added
    priority/p2-medium
    on Nov 3, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 3, 2026
  5. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 6c86ec9 (see proposed design in issue body).

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

    @devops-cli-service
    Contributor

    Staged: branch feat/3388-the-stage-plan-states-constant-claims, draft pull request #3396. 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 40000 tokens:

    1. Add the claim entry and the reader of the staged values: 28796 tokens
    2. Judge the claims in the plan check: 26591 tokens
    3. List the claim key in the stage prompt: 6912 tokens

    The plan run made 3 model request(s), and used 233010 input tokens and 11603 output tokens. The model made no tool call.

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

    • other at group 2: The plan adds messages for a wrong claim and an unknown claim name, but no group changes the file that holds the messages. The code reads its messages from devops_cli.lang, which no group lists. Evidence: "Add the messages of a wrong claim and of an unknown claim name, and the tests of the reader, the check and the prompt key"
  7. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    #3388 cannot be built as written: the base has no prose scan of constant claims.

    check_proposal in src/devops_cli/roadmap/stage_change.py has no constant-claim check. git grep -n "stage_constants\|constant_claims" 6c15a64a -- src tests finds nothing, and src/devops_cli/roadmap/stage_constants.py is absent.

    The prose scan is only planned by #3308 (plan PR #3329, issue status Planned). That plan creates src/devops_cli/roadmap/stage_constants.py and tests/roadmap/test_roadmap_stage_constants.py, the same new files that the plan of #3388 creates. The plan of #3388 also creates the same module and test module, and it records no dependency.

    The item waits for #3308. Plan PR #3396 is closed. The Service will stage #3388 again after #3308 closes.

  8. added
    status/new
    and removed
    status/ready
    on Nov 4, 2026
  9. 13 remaining items

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

    @devops-cli-service
    Contributor

    Staged: branch feat/3388-the-stage-plan-states-constant-claims, draft pull request #5649. 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. Add the constant-claim field to the stage reply and the prompt: 47002 tokens
    2. Judge each structured claim in the plan check: 52184 tokens
    3. Read the staged value of each claimed name: 33318 tokens
    4. Describe the claim list in the stage guide: 18390 tokens

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

    • minor spec_delta_wrong at spec roadmap-stage/claims (The prose scan runs only when the claim list is empty): The scenario's prose claim is a sentence with two numbers, which the existing prose scan already skips (constant_problems continues when len(numbers) != 1), so the scenario passes on the base and cannot show that a claim list suppresses the scan. Use a prose claim the scan would flag, such as SUMMARY_MAX_CHARS is 40. Evidence: "A reply gives a claim for SUMMARY_MAX_CHARS and a sentence holds two numbers beside it."
    • minor other at spec roadmap-stage/claims (The prompt asks for the staged value of a constant): The spec delta's 'Prompt claim rule' scenario needs a test that reads the prompt and asserts the new sentence, but group 1's test task adds only the key-list case to test_each_list_of_keys_of_the_reply_is_the_fields_of_a_model; no task adds the sentence test. Evidence: "The text holds the sentence that a claim names a constant of the staged tree and that a constant the plan creates is no claim"
    • minor false_premise at proposal (feasibility): security is not the last field of StageProposal: weakened_checks follows it at line 702, so the claim that the fields end at security is wrong (it is only the last reply key). Evidence: "src/devops_cli/roadmap/stage/stage_change.py:699:security: Line = "" as its last field"

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

    1. search_code({"text":"staged_constants"})
    2. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_change.py"})
    3. list_files({"directory":"tests/roadmap/stage"})
    4. read_spec({"capability":"roadmap-stage/claims"})
    5. read_file({"path":"src/devops_cli/roadmap/stage/stage_constants.py"})
    6. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2440,"end_line":2530})
    7. read_file({"path":"src/devops_cli/roadmap/stage/stage_constants.py","start_line":205,"end_line":291})
    8. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":648,"end_line":730})
    9. search_code({"text":"constants"})
    10. search_code({"text":"stage_problem_constant_mismatch"})
    11. search_code({"text":"weakened_checks"})
    12. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":1,"end_line":80})
    13. search_code({"text":"model_fields"})
    14. search_code({"text":"Reply keys"})
    15. search_code({"text":"test_each_list_of_keys_of_the_reply_is_the_fields_of_a_model"})
    16. search_code({"text":"test_the_top_level_keys_of_the_reply_are_the_fields_of_the_proposal"})
    17. read_file({"end_line":140,"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":85})
    18. search_code({"text":"- 'security':"})
    19. read_file({"end_line":75,"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":20})
    20. search_code({"text":"The reply has these keys and no other"})
    21. read_file({"end_line":70,"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":41})
    22. read_file({"end_line":2445,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2300})
    23. read_file({"end_line":2245,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2200})
    24. read_file({"end_line":4935,"path":"src/devops_cli/lang/en/messages.py","start_line":4895})
    25. read_file({"path":"src/devops_cli/roadmap/stage/stage_finding_classes.json"})
    26. read_file({"end_line":60,"path":"tests/roadmap/stage/test_roadmap_stage_constants.py","start_line":1})
    27. search_code({"text":"def make_stage_proposal"})
    28. search_code({"text":"constants="})
    29. read_file({"end_line":2810,"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":2720})
    30. read_file({"end_line":185,"path":"tests/support/builders.py","start_line":120})
    31. read_spec({"capability":"roadmap-stage/claims","requirement":"A constant that the staged tree does not define is ignored"})
    32. read_spec({"capability":"roadmap-stage/claims","requirement":"A plan number beside a constant matches the staged value"})
    33. read_spec({"capability":"roadmap-stage/claims","requirement":"The prompt asks for the staged value of a constant"})
    34. read_spec({"capability":"roadmap-stage/claims","requirement":"The replay passes recorded constants"})
    35. search_code({"text":"facts.constants"})
    36. search_code({"text":"constants: dict"})
    37. search_code({"text":"class CaseFacts"})
    38. search_code({"text":"candidate_names"})
    39. search_code({"text":"constants="})
    40. read_file({"end_line":200,"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":150})
    41. search_code({"text":"record_facts"})
    42. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_gates.py","start_line":110,"end_line":160})
    43. search_code({"text":"stage_finding_classes"})
    44. list_files({"directory":"src/devops_cli/roadmap/stage"})
    45. list_files({"directory":"tests/roadmap/stage"})
    46. search_code({"text":"constant_problems"})
    47. search_code({"text":"staged_constants"})
    48. read_file({"path":"src/devops_cli/roadmap/stage/stage_constants.py"})
    49. read_file({"path":"src/devops_cli/roadmap/stage/stage_constants.py","start_line":205,"end_line":292})
    50. search_code({"text":"def check_proposal"})
    51. search_code({"text":"content_problems"})
    52. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2420,"end_line":2500})
    53. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":660,"end_line":740})
    54. search_code({"text":"SUMMARY_MAX_CHARS: Final"})
    55. search_code({"text":"BODY_MAX_CHARS: Final"})
    56. read_spec({"capability":"roadmap-stage/claims","requirement":"A constant that the staged tree does not define is ignored"})
    57. read_spec({"capability":"roadmap-stage/claims","requirement":"The prompt asks for the staged value of a constant"})
    58. search_code({"text":"stage_problem_constant_mismatch"})
    59. list_files({"directory":"docs/roadmap"})
    60. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":4900,"end_line":4930})
    61. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_apply.py","start_line":1,"end_line":40})
    62. search_code({"text":"test_each_list_of_keys_of_the_reply_is_the_fields_of_a_model"})
    63. search_code({"text":"weakened_checks"})
    64. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":80,"end_line":150})
    65. search_code({"text":"- 'references':"})
    66. search_code({"text":"- 'security':"})
    67. read_file({"end_line":70,"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":20})
    68. search_code({"text":"staged value"})
    69. search_code({"text":"constant"})
    70. search_code({"text":"cite the staged"})
    71. search_code({"text":"constants="})
    72. search_code({"text":"candidate_names"})
    73. search_code({"text":"check_proposal"})
    74. search_code({"text":"constants"})
    75. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_plan_record.py"})
    76. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_gates.py","start_line":130,"end_line":160})
    77. read_file({"end_line":230,"path":"src/devops_cli/roadmap/stage/stage_eval_gates.py","start_line":205})
    78. search_code({"text":"constants: dict"})
    79. read_file({"path":"src/devops_cli/roadmap/stage/stage_finding_classes.json"})
    80. search_code({"text":"stage_finding_classes"})
    81. read_file({"end_line":2810,"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":2740})
    82. search_code({"text":"def plan_texts"})
    83. read_file({"end_line":1330,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1292})
    84. read_spec({"capability":"roadmap-stage/claims"})
    85. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2420,"end_line":2500})
    86. read_spec({"capability":"roadmap-stage/claims","requirement":"A constant that the staged tree does not define is ignored"})
    87. read_spec({"capability":"roadmap-stage/claims","requirement":"The prompt asks for the staged value of a constant"})
    88. read_file({"path":"src/devops_cli/roadmap/stage/stage_constants.py","start_line":215,"end_line":300})
    89. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2200,"end_line":2250})
    90. read_file({"path":"src/devops_cli/roadmap/stage/stage_eval_gates.py","start_line":110,"end_line":175})
    91. read_file({"path":"src/devops_cli/roadmap/pull_form.py","start_line":30,"end_line":60})
    92. search_code({"text":"content_problems"})
    93. search_code({"text":"eval stage --replay"})
    94. search_code({"text":"_self_acceptance_problems"})
    95. search_code({"text":"STAGE_EVAL_TRIGGER_PATHS"})
    96. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1330,"end_line":1400})
    97. search_code({"text":"_PLAN_CHECK_FILE"})
    98. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":665,"end_line":730})
    99. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":1,"end_line":60})
    100. search_code({"text":"The reply has these keys"})
    101. search_code({"text":"constant_claims"})
    102. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_plan.py","start_line":2740,"end_line":2820})
    103. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":4895,"end_line":4930})
    104. search_code({"text":"constant"})
    105. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_constants.py","start_line":160,"end_line":260})
    106. read_file({"path":"src/devops_cli/roadmap/stage/stage_criteria.py","start_line":1,"end_line":120})
    107. search_code({"text":"ci docs"})
    108. search_code({"text":"def docs"})
    109. search_code({"text":"docs/roadmap/stage.md"})
    110. search_code({"text":"constant_problems"})
    111. search_code({"text":"_DOCUMENTS"})
    112. search_code({"text":"stage guide"})
    113. search_code({"text":"_DOCUMENTS["})
    114. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":300,"end_line":430})
    115. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":540,"end_line":620})
    116. search_code({"text":"plan check"})
    117. read_file({"path":"docs/roadmap/stage.md","start_line":40,"end_line":120})
    118. search_code({"text":"\"reads\""})
    119. search_code({"text":"stage_problem_reads"})
    120. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":80,"end_line":150})
    121. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":195,"end_line":230})
    122. search_code({"text":"STAGE_EVAL_TRIGGER_PATHS: Final"})
    123. search_code({"text":"STAGE_EVAL_REPLAY: Final"})
    124. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":255,"end_line":300})
    125. search_code({"text":"GATE_DEFECT_PATHS"})
    126. search_code({"text":"_gate_defect_problems"})
    127. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1800,"end_line":1900})
    128. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1400,"end_line":1470})
    129. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":118,"end_line":130})
    130. read_file({"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2250,"end_line":2300})
    131. search_code({"text":"\"constants\""})
    132. read_file({"path":"tests/fixtures/roadmap_eval/stage/3462-a-modified-requirement-over-the-limit/case.json","start_line":1,"end_line":60})
    133. search_code({"text":"constants gate"})
    134. search_code({"text":"stage_constants"})
    135. search_code({"text":"prose"})
    136. search_code({"text":"staged value"})
    137. search_code({"text":"staged tree defines"})
    138. search_code({"text":"the bound of a constant"})
    139. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":700,"end_line":760})
    140. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_eval_gates.py","start_line":680,"end_line":740})
    141. read_file({"path":"src/devops_cli/roadmap/stage/stage_request.py","start_line":60,"end_line":120})
    142. search_code({"text":"constants="})
    143. search_code({"text":"facts.constants"})
    144. search_code({"text":"_TOKEN_COST"})

    Tool calls: file_symbols=2 (empty=0), list_files=4 (empty=0), read_file=56 (empty=0), read_spec=10 (empty=0), search_code=72 (empty=2)

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

  11. removed
    owner/service
    on Nov 14, 2026
  12. added 2 commits that reference this issue on Nov 14, 2026
  13. added
    status/planned
    and removed
    status/ready
    on Nov 14, 2026
  14. 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.

  15. added
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 23, 2026
  16. removed
    status/in-review
    on Nov 23, 2026
  17. 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/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions