Repository navigation
Description
Problem Description
The stage job plans an item of any effort, but the implement job takes only items of effort low and medium (DEFAULT_ROADMAP_IMPLEMENT_EFFORT = ("low", "medium"), src/devops_cli/config/defaults.py:936). The stage filter has an effort family (src/devops_cli/roadmap/stage/stage_filter.py:15) but no default. Thus a plan of an effort/high item waits for a person after its merge, whatever the size of the plan.
Item #3785 has effort/high from intake. Its plan (PR #5182) has 2 small groups (about 45k input tokens). After the merge, implement never takes it, so an agent must deliver it by hand.
Reproduction Steps
- Read the labels of fix(k8s): find the source of the hawk host crashes #3785:
effort/high,status/ready. - Read the plan of docs(openspec): plan #3785 Remove the profiler exclusion of the hawk node #5182: 2 groups.
- Read
DEFAULT_ROADMAP_IMPLEMENT_EFFORT.
Expected vs Actual Behavior
Expected: one of these. (a) The stage job sets the effort label from the size of the plan when it opens the draft. (b) The stage job leaves out items that implement will not take, and names the reason. Stage and implement agree on which items flow by themselves.
Actual: the stage job spends a plan run on an item that implement never takes.
Environment Diagnostics
Main at 0a14161 (release 0.123.0). Related: #4815 (stage keeps the plan size after close).
Logs, Traces, or Terminal Output
Triage of plan PR #5182 on 2026-11-12: "The implement default is effort low and medium (defaults.py:936), so the item never goes to a Job by itself."
Source: #5182
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)
Alternatives check of 2026-11-28: none.
Tool: none found.
Reason: Four searches found no open, maintained tool or library that gates staging by an effort label; the need is project-internal changes to the stage filter default and its skip reporting, which no external tool covers.
Lacks:
- Stage filter default effort set equal to the implement set
- Skip entry naming item, effort label and implement set
- Person-set effort filter overriding the default
Proposed design
Problem statement
Do not stage or implement this item until #6521 closes. The stage job plans an item of any effort. The implement job takes only effort/low or effort/medium (DEFAULT_ROADMAP_IMPLEMENT_EFFORT). So the stage job spends a plan run on an effort/high item, and implement never takes it. The change makes the stage job use the implement effort set by default, leave out an item that implement will not take, and name the reason.
Acceptance criteria
Requirement: Stage default equals implement set
The stage filter's default effort set SHALL be DEFAULT_ROADMAP_IMPLEMENT_EFFORT, so stage and implement read one constant.
Scenario: Stage default equals the implement set
- WHEN A test reads the stage filter's default effort set and
DEFAULT_ROADMAP_IMPLEMENT_EFFORT. - THEN The test asserts that both hold the same tuple.
Requirement: High-effort item stays out of staging
The stage job MUST leave out an item whose effort label is outside the implement effort set, when no stage effort filter is set.
Scenario: High-effort item stays out of staging
- WHEN The stage selection runs on an item with only
effort/high, and no stageeffortfilter is set. - THEN The selection holds no stage candidate for that item.
Requirement: Reason in the stage result line
The stage run MUST name each item it leaves out for its effort, with the item number, the effort label and the implement effort set.
Scenario: Reason in the stage result line
- WHEN The stage command runs with an
effort/highitem and no stageeffortfilter. - THEN Its JSON result line holds a skip entry that names the item,
effort/highand('low', 'medium').
Requirement: High effort staged on purpose
A stage effort filter that a person sets MUST override the default, so the stage job can plan a high-effort item on purpose.
Scenario: High effort staged on purpose
- WHEN The stage
effortfilter is set to('low', 'medium', 'high'). - THEN The selection holds a stage candidate for the
effort/highitem.
Requirement: Implement default
DEFAULT_ROADMAP_IMPLEMENT_EFFORT MUST stay ('low', 'medium').
Scenario: Implement default
- WHEN A test reads
DEFAULT_ROADMAP_IMPLEMENT_EFFORT. - THEN The test asserts the value
('low', 'medium').
Existing Tool Considered
The alternatives check of 2026-11-22 returned verdict none and found no open, maintained tool or library (see the alternatives block in the issue body). The block lists what no tool covers. The change builds its own code. It adds about 50 lines in src/devops_cli/roadmap/stage/stage_filter.py and src/devops_cli/config/defaults.py, with tests. It takes about 40k tokens to build, keep and fix, and about one day of elapsed time. The chosen option measures no plan size, so it needs no token counter such as tiktoken.
Key questions
- Which expected behavior does the fix take: (a) set the effort label from plan size, or (b) leave out an item that implement will not take and name the reason?: Take option (b). The stage default effort set becomes the implement effort set. The stage job does not change the effort label. (best practice) [sources: CONTEXT.md, src/devops_cli/config/defaults.py:1178, src/devops_cli/roadmap/stage/stage_filter.py:15]
- Chosen: Leave out the item and name the reason. It needs no new threshold, keeps the effort label as intake set it, and makes stage and implement read one constant. A person can still stage a high-effort item with the
effortfilter. - Rejected: Set the effort label from the plan size. No measured relation between plan size and effort exists. The issue gives one sample of 2 groups and 45k tokens. The stage job would set the effort that gates implement, so the gate would stop being independent. It also rewrites a label that intake set, from an unmerged plan.
- Rejected: Add high to the implement default. It raises the automatic spend on the most expensive items and changes implement for every managed repository. The issue asks stage to agree with implement, not to widen implement.
- Chosen: Leave out the item and name the reason. It needs no new threshold, keeps the effort label as intake set it, and makes stage and implement read one constant. A person can still stage a high-effort item with the
- Where does the stage job name the reason for an item it leaves out?: In the JSON result line of the stage run, as a skip entry with the item number, the effort label and the implement effort set. The stage job writes no comment on the item. (best practice) [sources: CONTEXT.md]
- Chosen: JSON result line of the stage run. Each roadmap step writes one JSON result line, and the run report shows it. The job adds no comment to an item that it does not stage.
- Rejected: A comment on the item. It repeats at each stage round and adds noise to an item that the job leaves alone.
- Rejected: A label on the item. No label family holds a reason, and a new label family is a larger change.
- Does the fix change the implement effort default?: No.
DEFAULT_ROADMAP_IMPLEMENT_EFFORTstays('low', 'medium'). (best practice) [sources: src/devops_cli/config/defaults.py:1178, CONTEXT.md]- Chosen: Keep
('low', 'medium'). The issue asks the stage job to agree with implement. The implement default is a deliberate cost bound on the job that spends the most tokens. - Rejected: Add
highto the implement default. It changes the automatic spend of every managed repository, and the issue does not ask for it.
- Chosen: Keep
- What is the implement job's default effort set, and where is it?:
('low', 'medium'),DEFAULT_ROADMAP_IMPLEMENT_EFFORTatsrc/devops_cli/config/defaults.py:1178. The issue cites line 936, and that line has moved. [sources: src/devops_cli/config/defaults.py:1178] - Where does the stage filter hold the
effortfamily, and has it a default?: Theeffortfamily is insrc/devops_cli/roadmap/stage/stage_filter.py:15, and it has no default value. [sources: src/devops_cli/roadmap/stage/stage_filter.py:15] - Where do the tests of the stage selection and its settings live?:
tests/roadmap/stage/test_roadmap_stage_selection.pyholds the selection tests, andtests/roadmap/stage/test_roadmap_stage_settings.pyholds the settings tests. [sources: tests/roadmap/stage/test_roadmap_stage_selection.py, tests/roadmap/stage/test_roadmap_stage_settings.py]
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 12, 2026
#2906 set the filter design where stage plans every Ready item and implement takes low effort; the candidate reports that this design wastes plan runs on high-effort items implement never takes.devops-cli-service commentedon Nov 16, 2026
Alternatives check: none
Reason: Searches for tools that estimate task effort or plan size (token counting, issue-complexity classification, agent task sizers) returned no open, maintained tool or library that covers this need. The issue is about the repository's own roadmap pipeline: the stage filter has no default
effortvalue whileDEFAULT_ROADMAP_IMPLEMENT_EFFORTis("low", "medium"), so the fix is internal logic to make stage and implement agree, not an external dependency.Tool: none found
Lacks:
Searches run:
Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 17, 2026
Status set to Ready at 1812dd2 (see proposed design in issue body).
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 27, 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.
dan-petty commentedon Nov 30, 2026
Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.