Skip to content

fix(roadmap): the stage job plans items that implement never takes #5259

Not planned

Description

@dan-petty

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

  1. Read the labels of fix(k8s): find the source of the hawk host crashes #3785: effort/high, status/ready.
  2. Read the plan of docs(openspec): plan #3785 Remove the profiler exclusion of the hawk node #5182: 2 groups.
  3. 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

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 stage effort filter 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/high item and no stage effort filter.
  • THEN Its JSON result line holds a skip entry that names the item, effort/high and ('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 effort filter is set to ('low', 'medium', 'high').
  • THEN The selection holds a stage candidate for the effort/high item.

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 effort filter.
    • 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.
  • 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_EFFORT stays ('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 high to the implement default. It changes the automatic spend of every managed repository, and the issue does not ask for it.
  • What is the implement job's default effort set, and where is it?: ('low', 'medium'), DEFAULT_ROADMAP_IMPLEMENT_EFFORT at src/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 effort family, and has it a default?: The effort family is in src/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.py holds the selection tests, and tests/roadmap/stage/test_roadmap_stage_settings.py holds 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.

Dependencies

#6521

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 12, 2026
  4. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    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 effort value while DEFAULT_ROADMAP_IMPLEMENT_EFFORT is ("low", "medium"), so the fix is internal logic to make stage and implement agree, not an external dependency.

    Tool: none found

    Lacks:

    • No tool reconciles the stage job's effort filter with the implement job's low/medium effort default
    • No tool sets the effort label from the size of a plan when the draft opens
    • No tool makes the stage job skip items that implement will not take and name the reason

    Searches run:

    • open source tool classify GitHub issue complexity effort label automatically, results: 5
    • library to estimate effort or size of a task plan from token count, results: 5
    • tiktoken count tokens python library, results: 5
    • open source tool estimate issue effort story points from text, results: 5
    • AI agent task size estimator library, results: 5
    • roadmap automation skip items effort high implement low medium, results: 5

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

  5. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 1812dd2 (see proposed design in issue body).

  7. 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.

  8. added
    status/new
    and removed
    status/ready
    on Nov 27, 2026
  9. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    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.

  10. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    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.

  11. removed
    status/new
    on Nov 30, 2026
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/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions