Repository navigation
Description
The command devops roadmap refine --dry-run --item 1854 is not request-free. Its help says: "Make no request and change no git ref: print what refine would plan and run, with placeholders." The owner rule says that a dry run makes zero external requests.
A builder ran the command once on 2026-10-22 as a smoke test. The run took 1 minute 10 seconds. It spent about 493 GraphQL points. It printed a plan that came from a model ("#1854 -> Ready"). So the run read GitHub and called the model.
The cost is real. An agent that trusts the help text spends GitHub budget and local inference time. A budget of 5,000 points an hour lasts for ten such runs.
Remedy: make --dry-run return the same-typed plan with placeholders and make no request. Cover it with a test that uses the shared fakes and fails when any GitHub or model call occurs. Check the other roadmap commands (intake, reprioritize, close, migrate) for the same defect.
Existing tool considered: none applies. This is a defect in project code.
Acceptance criteria:
devops roadmap refine --dry-runmakes no GitHub request and no model call.- A test fails if the command makes either call.
- The same test pattern covers the other
roadmapcommands that have--dry-run.
Where to look (added for the assignee):
refine_cmdinsrc/devops_cli/commands/roadmap.py(about line 507). With--dry-runthe command still calls_open_roadmap(it reads GitHub) andplan_refine(it reads the repository, searches the web and calls the model). The flag only stops the finalapply_refinestep. The same code path serves--plan-style previews, so a plain run without--confirmis allowed to read and to call the model. Only--dry-runmust not.- The other roadmap commands show the pattern to copy:
dry_run_close(roadmap/close.py),dry_run_intake(roadmap/intake.py),dry_run_reprioritization(roadmap/reprioritize.py),dry_run_migrationanddry_run_rendereach return the same-typed plan with placeholders and make no request. Refine has no function of this kind.tests/test_roadmap_dry_runs.pyholds the tests for the existing ones: add the refine case there. plan_refineandrender_refine_planare insrc/devops_cli/roadmap/refine.py.is_dry_runis insrc/devops_cli/dry_run.py.- The rule: a dry run makes zero external requests and returns the same-typed result with the would-be requests listed.
Hints for the test: use the shared fakes in tests/support/fakes/ for the GitHub store and the model. Make the fakes fail the test on any call. Run the command with --dry-run through the Typer test runner and assert on the whole printed plan.
Proposed design
Problem statement
The devops roadmap refine --dry-run command claims to make no external requests but actually reads from GitHub and calls the model, consuming GraphQL points and inference time. This behavior violates the documented contract of dry-run commands which should be request-free.
Acceptance criteria
- Criterion 1: The
devops roadmap refine --dry-runcommand makes no GitHub requests and no model calls.
Verification: Rundevops roadmap refine --dry-run --item 1854and verify that no GraphQL requests are made and no model API calls occur using shared fakes that detect such calls. - Criterion 2: A test fails if the command makes either GitHub or model calls during a dry run.
Verification: Write a test using shared fakes that intercepts any GitHub or model calls and asserts that none are made when--dry-runis used. - Criterion 3: The same test pattern covers other roadmap commands that have
--dry-run.
Verification: Apply the same testing approach tointake,reprioritize,close, andmigratecommands with--dry-runflags to ensure they all behave consistently.
Key questions
- What is the expected behavior of a --dry-run command according to the documentation?: According to the documentation, a dry run should make no request and change no git ref: print what refine would plan and run, with placeholders. [sources: src/devops_cli/roadmap/refine.py]
- What external resources are being accessed during the dry-run of 'refine' command?: During the dry-run, the command reads GitHub and calls the model, consuming GraphQL points and inference time. [sources: src/devops_cli/roadmap/refine.py]
- Should other roadmap commands like intake, reprioritize, close, and migrate also be checked for the same defect?: Yes, the issue explicitly states to check all roadmap commands for the same defect. (proposed) [sources: src/devops_cli/roadmap/refine.py]
Fit
Needs splitting into 5 items:
- Fix dry-run behavior in
devops roadmap refinecommand - Fix dry-run behavior in
devops roadmap intakecommand - Fix dry-run behavior in
devops roadmap reprioritizecommand - Fix dry-run behavior in
devops roadmap closecommand - Fix dry-run behavior in
devops roadmap migratecommand
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 22, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate describes a defect where --dry-run makes external requests contrary to its help text.This is a violation of documented behavior that affects resource usage and trust in the tool.Fixing this ensures correct behavior for users who rely on --dry-run to avoid costs and external calls.Requires changes to command logic, testing, and potentially other roadmap commands with similar issues.dan-petty commentedon Oct 22, 2026
Proposal needs splitting into 5 items at ae8c2d9 (see proposed design in issue body).
dan-petty commentedon Oct 22, 2026
Proposal needs splitting into 5 items at ae8c2d9 (see proposed design in issue body).
fix(roadmap): refine --dry-run makes no request and no model call (#1867
fix(roadmap): refine --dry-run makes no request and no model call (#1867
dan-petty commentedon Oct 22, 2026
What changed
#1875, merged into
release/v0.2.39as b2b67df.7 file(s) changed.
How it was verified
Check runs at a05f9d0:
Acceptance Criteria of
docs/agent/tasks/task-1867-roadmap-refine-dry-run.md:devops roadmap refine --dry-runmakes no GitHub request and no model call.tests/test_roadmap_dry_runs.pycoversrefinealongside other roadmap jobs (reprioritize,migrate,render,intake,close).devops ciquality gate passes with 100% passing status.feat(release): v0.2.39 (#1947)