Skip to content

docs(openspec): the roadmap layout spec names a deleted import test #4882

Closed

Description

@dan-petty

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.roadmap in src/ and tests/."
  • 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 of tests/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 only src/ (TYPECHECK_PATHS = ("src",) in src/devops_cli/ci/typecheck.py). The roadmap imports in if TYPE_CHECKING: blocks of tests/ do not run, so no tool checks them now. An AST probe at db4b19a7 found 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 in tests/ that runs, SHALL name the module path in the package. An import in an if TYPE_CHECKING: block of tests/ is out of scope.
  • Scenario: WHEN mypy --strict checks src/ and pytest collects and runs tests/, THEN mypy reports no import-not-found or attr-defined error for devops_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.md names no test that does not exist: each scenario of the requirement names a check that runs in the gate (git grep and a read of the spec).
  • uv run devops openspec check passes.
  • The requirement text is under 500 characters.

Dependencies

None. Coordinate the path with #4622 if it merges first.

Source: #4850

Activity

  1. added
    source/agent
    type/docs
    scope/openspec
    status/new
    value/low
    effort/low
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/docs. The docs prefix of the title gives the type.
    • Scope: scope/openspec. The (openspec) scope of the title gives the scope.
    • Priority: P3-Low. A documentation correctness fix with no user-facing impact and no functional risk.
    • Value: Low. The spec is an internal governance document; no user action depends on it.
    • Effort: Low. The body states it changes no code, no test, and estimates 30 minutes.
    • Related: fix(roadmap): the stage plan of a module move covers every module its layout test forbids #3372, which asks for a different change. 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.
  3. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Priority: P3-Low. The change corrects documentation only, and no code behavior depends on it.
    • Value: Low. The change helps maintainers trust the spec, but it changes no user-facing behavior.
    • Effort: Low. The change edits one specification file and runs the OpenSpec check.
    • Related: fix(roadmap): the stage plan of a module move covers every module its layout test forbids #3372, which asks for a different change. Both items concern the roadmap module move and its layout spec; #3372 fixes plan coverage, but the candidate corrects a spec scenario.
  4. added
    priority/p3-low
    on Nov 12, 2026
  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 14, 2026
  6. removed
    status/in-review
    on Nov 14, 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/lowpriority/p3-lowscope/openspecsource/agenttype/docsvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions