Repository navigation
Description
Problem or Motivation
The spec openspec/specs/roadmap-package-layout/spec.md names a test that does not exist now.
The requirement "Every caller imports a roadmap module by its path" (lines 22-27 on origin/main) has the scenario "No old roadmap module path remains":
- WHEN: "A test parses each import of
devops_cli.roadmapinsrc/andtests/." - THEN: "Each imported module file or package folder exists, and each name imported from a package that holds only a docstring is a submodule."
Pull request #4850 (closes #4700) deleted test_every_import_of_a_roadmap_module_names_a_module_that_exists and its helpers from tests/invariants/test_source_tree.py (merge commit 7a163a72). The change set skip_specs: true, and its proposal says "It has no spec delta". So the spec was not changed.
Evidence:
git grep '#3187' origin/main -- 'tests/*.py'finds the layout, package-module, history and test-tree tests oftests/invariants/test_source_tree.py, and no import test.- The archived proposal (
openspec/changes/archive/2026-11-11-4700-parse-the-source-trees-once-per/proposal.md, Feasibility) records that mypy reads onlysrc/(TYPECHECK_PATHS = ("src",)insrc/devops_cli/ci/typecheck.py). The roadmap imports inif TYPE_CHECKING:blocks oftests/do not run, so no tool checks them now. An AST probe atdb4b19a7found 15 such imports; each names a module that exists today.
Thus the scenario is wrong, and the requirement is not fully enforced for tests/. AGENTS.md rule 8 says that a change that makes a document wrong fixes that document in the same pull request. #4850 is merged, so this item does the fix.
Found by the review of #4850.
Proposed Solution & Architectural Design
Open an OpenSpec change with a delta for the roadmap-package-layout capability. Use ## MODIFIED Requirements for "Every caller imports a roadmap module by its path":
- Requirement: every import of a roadmap module in
src/, and every import intests/that runs, SHALL name the module path in the package. An import in anif TYPE_CHECKING:block oftests/is out of scope. - Scenario: WHEN
mypy --strictcheckssrc/and pytest collects and runstests/, THEN mypy reports noimport-not-foundorattr-definederror fordevops_cli.roadmap, and no test fails on an import of a roadmap module.
Keep the requirement text under 500 characters.
The other option is ## REMOVED Requirements with the reason that the move of #3187 is complete. The modified form keeps the contract that the spec Purpose states ("every caller names the module path that it imports") and names the proof that stays, so this item prefers it.
The change edits only openspec/specs/roadmap-package-layout/spec.md through the archive. It changes no code and no test. If #4622 (split big capabilities into nested ones) moves this spec first, put the delta on the new path.
Risk: Low.
Target Subsystem
SDLC, Git & PR Governance (openspec/specs/roadmap-package-layout/spec.md).
Existing Tool Considered
The OpenSpec delta format (## MODIFIED Requirements) and uv run devops openspec archive cover the need. mypy and the pytest run are the proofs that the spec names. No new tool and no new code. Cost: about 15,000 tokens and 30 minutes.
Acceptance Criteria
openspec/specs/roadmap-package-layout/spec.mdnames no test that does not exist: each scenario of the requirement names a check that runs in the gate (git grepand a read of the spec).uv run devops openspec checkpasses.- The requirement text is under 500 characters.
Dependencies
None. Coordinate the path with #4622 if it merges first.
Source: #4850
Activity
dan-petty commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
docsprefix of the title gives the type.(openspec)scope of the title gives the scope.A documentation correctness fix with no user-facing impact and no functional risk.The spec is an internal governance document; no user action depends on it.The body states it changes no code, no test, and estimates 30 minutes.Both concern the roadmap layout spec and its test in test_source_tree.py, but #3372 fixes a plan to cover all modules while this item fixes the spec text to stop naming a deleted test.devops-cli-service commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The change corrects documentation only, and no code behavior depends on it.The change helps maintainers trust the spec, but it changes no user-facing behavior.The change edits one specification file and runs the OpenSpec check.Both items concern the roadmap module move and its layout spec; #3372 fixes plan coverage, but the candidate corrects a spec scenario.docs(openspec): keep the layout scenario name (#4882)
docs(openspec): name the checks that run for the layout spec (#4882)
docs(openspec): keep the layout scenario name (#4882)
docs(openspec): name the checks that run for the layout spec (#4882)