Repository navigation
Description
Split from #3241.
Problem: the caps of the stage planner were set by guess. The cut counter devops_cli_roadmap_tool_cuts_total (the first part of #3241) will show which cap cuts an answer.
Why deferred: the part needs one week of cut data after the counter runs in the deployed Service. docs/ROADMAP_WORKFLOW.md also parks each cost change, including a lower cap, until the cloud baseline eval passes.
Acceptance criteria:
- Each stage planner cap constant in
src/devops_cli/config/constants.pyhas a comment with the chosen value, the measurement date in ISO 8601 form, the evidence, and for an answer cap the share of answers that it cut. - No answer cap cuts more than 5% of the answers of the week, or its comment gives the reason.
- The table
LIMITSintests/roadmap/test_roadmap_limit_classes.pykeeps a class and a reason for each changed cap, and the window-fit tests stay green. - The feat(roadmap): add toolset comparison to stage planner eval #3239 comparison runs again on 10 cases after the change, and the report stays with the change.
Related: #3223, #3239, #3240, #3241.
Dependencies
- chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
Proposed design
Problem statement
Do not start this item until #6521 closes and #3241 delivers the cut counter. A guess set the stage planner caps, and the counter devops_cli_roadmap_tool_cuts_total will show which cap cuts an answer. The item sets or confirms each cap from one week of cut data and records the value, date, evidence and cut share in the code. It also keeps LIMITS and the window-fit tests valid and records the #3239 comparison. It waits for the week of data and the cloud baseline eval.
Acceptance criteria
Requirement: Cap comment holds the measurement
Each stage planner cap in src/devops_cli/config/constants.py that LIMITS lists with a class other than other SHALL have a comment with value <n>, measured <YYYY-MM-DD> and evidence: <text>.
Scenario: A cap comment lacks a marker
- WHEN
uv run devops ci test tests/roadmap/test_roadmap_limit_classes.pyreads the comment above each such constant. - THEN The test fails for a comment with no
valueclause, no ISO 8601measureddate, or noevidence:clause.
Requirement: Answer cap cut share stays under 5 percent or gives a reason
An answer cap SHALL have a cut share <pct>% clause and MUST NOT cut above 5% of the week's answers without a reason: <why> clause.
Scenario: An answer cap exceeds 5% with no reason
- WHEN
uv run devops ci test tests/roadmap/test_roadmap_limit_classes.pyreads thecut shareof each name inANSWER_CAPS. - THEN The test fails when the share is above 5 and the comment has no
reason:clause.
Requirement: Answer cap list matches the recorded shares
ANSWER_CAPS in tests/roadmap/test_roadmap_limit_classes.py SHALL name exactly the stage planner caps whose comments hold a cut share clause.
Scenario: A list entry is not a cap or a cap with a share is missing
- WHEN
uv run devops ci test tests/roadmap/test_roadmap_limit_classes.pyreads each name inANSWER_CAPSand each cap comment with acut shareclause. - THEN The test fails for a name that is not a numeric cap in
LIMITS, and for an omitted cap with acut shareclause.
Requirement: Limit class table stays valid
Each changed stage planner cap SHALL keep a class and a reason in LIMITS of tests/roadmap/test_roadmap_limit_classes.py, and the window-fit tests SHALL stay green.
Scenario: A cap value changes
- WHEN
uv run devops ci test tests/roadmap/test_roadmap_limit_classes.pyruns after a cap value changes. - THEN The test fails for a changed cap with no class or no reason, and each window-fit test passes.
Requirement: Comparison report records the score before and after
The change SHALL run the #3239 comparison on 10 cases and SHALL record the score before and after in its comparison-report.md.
Scenario: The change folder holds the comparison result
- WHEN
uv run devops ci test tests/roadmap/test_roadmap_limit_classes.pyreadscomparison-report.mdinopenspec/changes/4218-*oropenspec/changes/archive/4218-*. - THEN The test fails when the file is absent or holds no score before and no score after on 10 cases.
Existing Tool Considered
No alternatives check has run. Prometheus is the open, maintained tool that covers the measurement: the project already runs it and the counter devops_cli_roadmap_tool_cuts_total is in src/devops_cli/telemetry/instruments.py. Prometheus lacks cap selection and the 5% policy; the change applies both by hand. The change adds no planner code, so the written cost is about 2 hours after the week of data, plus the eval and comparison runs.
Key questions
- What blocks the item now?: The item waits on chore(roadmap): hold incremental stage and implement work #6521, the hold for incremental work on the stage, implement and fix-checks jobs, and on feat(roadmap): Tune stage planner caps from run data #3241 for the cut counter. It also needs one week of cut data and a passing cloud baseline eval. Stage and implement leave the item while chore(roadmap): hold incremental stage and implement work #6521 is open. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, src/devops_cli/telemetry/instruments.py]
- Chosen: Wait for chore(roadmap): hold incremental stage and implement work #6521 and feat(roadmap): Tune stage planner caps from run data #3241. The reply freezes the item. Stage and implement leave it while chore(roadmap): hold incremental stage and implement work #6521 is open.
- Rejected: Proceed now. The jobs leave the item, and the week of cut data does not exist.
- Rejected: Close this item as not planned now. The reply leaves that choice to a person after refactor(roadmap): re-architect stage and implement on Coder #6519 decides.
- How does the change measure the cut share?: Query Prometheus over the 7 days after the counter deploys. Divide cuts that name a cap by answers of the same tool in that week. Record the query date and query text in the cap comment. (best practice) [sources: src/devops_cli/prometheus/analysis.py, src/devops_cli/telemetry/instruments.py]
- Chosen: Prometheus query over 7 days. The project already runs Prometheus, and
src/devops_cli/prometheus/analysis.pyreads the counter. - Rejected: Read
/metricsof one pod. It gives the current value only, and a restarted pod loses the week. - Rejected: New script that reads Job logs. It adds code to keep and gives the same number.
- Chosen: Prometheus query over 7 days. The project already runs Prometheus, and
- Which constants are stage planner caps?: The numeric stage planner cap constants in
src/devops_cli/config/constants.pythatLIMITSlists with a class other thanother. (best practice) [sources: src/devops_cli/config/constants.py, tests/roadmap/test_roadmap_limit_classes.py:95]- Chosen: Numeric caps in LIMITS with a class other than other. The table registers each cap, and a test keeps it in step with the code.
- Rejected: Every numeric stage planner constant. It includes schedule and policy values that cut no run.
- Rejected: A hand-kept list in the change. It drifts from the code, and no test holds it.
- Which caps are answer caps?: The caps whose labels
devops_cli_roadmap_tool_cuts_totalnames after the week of data. Record them inANSWER_CAPSoftests/roadmap/test_roadmap_limit_classes.py. (best practice) [sources: src/devops_cli/telemetry/instruments.py, tests/roadmap/test_roadmap_limit_classes.py]- Chosen: Take the caps from the counter labels after the week. The list follows the data, and the test module records it for the cut-share test.
- Rejected: Fix the list now. The label set is unknown before the week of data.
- Rejected: Take every cap in LIMITS. Some caps protect a log, a secret or an external service and cut no answer.
- What comment form holds the evidence?: One comment block above each constant with
value <n>,measured <YYYY-MM-DD>,evidence: <query and counts>, and for an answer capcut share <pct>%. A share above 5% addsreason: <why>. (best practice) [sources: src/devops_cli/config/constants.py, tests/roadmap/test_roadmap_limit_classes.py]- Chosen: One comment block with fixed markers. The markers let a test check the date, the evidence and the share.
- Rejected: Free prose in the comment. A test cannot tell a date from another number or a share from another percentage.
- Rejected: A separate data file. The issue asks for the evidence in the comment, and a second file can drift from the value.
- Where does the comparison report stay?: In
comparison-report.mdin the change folder, with the score before and the score after on 10 cases. (best practice) [sources: CONTEXT.md]- Chosen:
comparison-report.mdin the change folder. The change folder is the in-repo record, and the report is archived with it. - Rejected: A section in
design.md.design.mdholds design decisions, not a measurement report. - Rejected: A comment on the pull request. A person must read it, it does not travel with the repository, and no test checks it.
- Chosen:
Fit
Fits in one pull request.
Suspected block
Waits for one week of cut data from devops_cli_roadmap_tool_cuts_total after #3241 and for the cloud baseline eval to pass.
Activity
devops-cli-service commentedon Nov 9, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.The calibration waits for one week of cut data and a passing cloud baseline eval.Data-based caps improve plan quality and stop caps that cut useful answers.The work needs one week of data, new cap comments, table updates and a rerun of the #3239 comparison.Both tune the stage planner caps, but #3241 sets all caps from run data and this split sets the answer caps from one week of cut data.devops-cli-service commentedon Nov 9, 2026
Refine cannot set this item to Ready at 6121d09 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
docs/ROADMAP_WORKFLOW.md.devops-cli-service commentedon Nov 9, 2026
Refine cannot set this item to Ready at 996c8a2 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
src/devops_cli/roadmap/stage/stage_toolbox.py,src/devops_cli/telemetry/metrics.py.devops-cli-service commentedon Nov 10, 2026
Refine cannot set this item to Ready at 9a821c8 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
docs/ROADMAP_WORKFLOW.md.devops-cli-service commentedon Nov 10, 2026
Refine cannot set this item to Ready at 04db2fc while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 19, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 23, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.