Skip to content

refactor(roadmap): group the job modules in subpackages - #3897

Merged
dan-petty merged 4 commits into
mainfrom
refactor/3187-roadmap-job-subpackages
Nov 7, 2026
Merged

dan-petty merged 4 commits into
mainfrom
refactor/3187-roadmap-job-subpackages

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

src/devops_cli/roadmap/ is one flat package of 104 Python modules (#3187). The job modules show only as name prefixes (intake*, refine*, stage*, implement*) beside the store modules, so a reader cannot see which files belong to one job, and a change to one job touches files that sit among the files of the others. The five largest modules hold more than 1,400 lines each.

Closes #3187

Change: openspec/changes/archive/2026-11-06-3187-group-the-job-modules-in-subpackages/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence from the local run on the branch head (base: origin/main 6d105c2, no rebase needed).

  • devops openspec check: passed.
  • devops ci test tests/roadmap tests/invariants -n 4: no failure up to 96% of the run, then my 10-minute time limit stopped it. CI runs the full suite.
  • Pre-push fast static checks: passed.
  • This is a refactor with no new behavior. The invariant test in tests/invariants/test_source_tree.py holds the new layout. No fail-to-pass run applies, because the PR is not a fix.

@dan-petty
dan-petty force-pushed the refactor/3187-roadmap-job-subpackages branch from 011daac to 57b88cc Compare November 7, 2026 02:25
Move the intake, refine, stage and implement modules of src/devops_cli/roadmap/ into one
subpackage for each job, and the store modules into stores/. Move the test modules and their
snapshots into the mirror folders under tests/roadmap/. Rewrite each import and string target of a
moved module, and name the new layout in docs/roadmap/README.md. An invariant test holds the
layout. The behavior does not change.
The Pages build keeps a README.md as a source file in the built site, and the docs-site check
refuses source Markdown files. Name the page package-layout.md, as the other roadmap pages are
named.
@dan-petty
dan-petty force-pushed the refactor/3187-roadmap-job-subpackages branch from c574de0 to c322443 Compare November 7, 2026 05:08
@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 05:10
@dan-petty
dan-petty enabled auto-merge (squash) November 7, 2026 05:10
@dan-petty
dan-petty merged commit bff2f14 into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the refactor/3187-roadmap-job-subpackages branch November 7, 2026 05:13
@dan-petty

Copy link
Copy Markdown
Owner Author

Rebase onto origin/main at 75d3ce8 (3 commits past the first rebase, 17 past the old base 6d105c2). Head: c322443.

Conflicts, all in files that main changed after this PR moved them:

  • src/devops_cli/roadmap/stage/stage_toolbox.py: main added RunLimit and the window-starved check (fix(roadmap): fail the plan run when the window ends the tools too soon #3923). I kept both and used the new import paths.
  • tests/roadmap/stage/test_roadmap_stage_apply.py: main removed the stage module import with a deleted test. I dropped it and kept the new path devops_cli.roadmap.stage.stage.
  • tests/roadmap/stage/test_roadmap_stage_window.py: main added StagePlan to the imports. I kept it and used the new paths.
  • tests/roadmap/test_roadmap_dry_runs.py: main renamed firecrawl_search to web_search. The patch target is now devops_cli.roadmap.refine.refine_investigation.web_search.

Git rename detection moved the other main changes (#3918, #3933, #3922, #3883, #3879) to the new paths on its own. A search for the old flat module paths in code, tests, docs and checks finds none. Open plans and eval fixtures keep their old paths on purpose.

Evidence:

  • devops ci --check --no-cache --skip test,outdated,actionlint,audit: all 20 checks pass (ruff, format, mypy strict, bandit, docs, openspec, test tree, startup imports, k8s).
  • pytest tests/roadmap tests/invariants and the three roadmap command tests: 5567 passed, 1 skipped.
  • After the last rebase: ruff, and the workflow doc, source tree and change folder invariants pass. The pre-push hook passed.
  • CI on c322443: Runner Image and Service Image pass now (the pinned GitHub CLI fix from fix(ci): bump the pinned GitHub CLI for CVE-2026-78661 #3881 is in main).

dan-petty-release Bot added a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.77.2](v0.77.1...v0.77.2)
(2026-11-07)


### Bug Fixes

* **roadmap:** refine writes each item when it is done
([#3935](#3935))
([c9c0979](c9c0979))


### Code Refactoring

* **roadmap:** group the job modules in subpackages
([#3897](#3897))
([bff2f14](bff2f14))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(roadmap): group the job modules in subpackages

1 participant