fix(runners): correct roadmap import path in roadmap_runner.py (ACS-264) (#1091)

* fix(runners): correct roadmap import path in roadmap_runner.py (ACS-264)

The import statement `from roadmap import RoadmapOrchestrator` was trying
to import from a non-existent top-level roadmap module. The roadmap package
is actually located at runners/roadmap/, so the correct import path is
`from runners.roadmap import RoadmapOrchestrator`.

This fixes the ImportError that occurred when attempting to use the runners
module.

Fixes # (to be linked from Linear ticket ACS-264)

* docs: clarify import comment technical accuracy (PR review)

The comment previously referred to "relative import" which is technically
incorrect. The import `from runners.roadmap import` is an absolute import
that works because `apps/backend` is added to `sys.path`. Updated the
comment to be more precise while retaining useful context.

Addresses review comment on PR #1091
Refs: ACS-264

* docs: update usage examples to reflect current file location

Updated docstring usage examples from the old path
(auto-claude/roadmap_runner.py) to the current location
(apps/backend/runners/roadmap_runner.py) for documentation accuracy.

Addresses outside-diff review comment from coderabbitai
Refs: ACS-264

---------

Co-authored-by: StillKnotKnown <stillknotknown@users.noreply.github.com>
This commit is contained in:
StillKnotKnown
2026-01-15 15:44:51 +02:00
committed by GitHub
parent f28d22984d
commit 767dd5c3b0
+6 -5
View File
@@ -8,9 +8,10 @@ Analyzes project structure, understands target audience, and generates
a strategic feature roadmap.
Usage:
python auto-claude/roadmap_runner.py --project /path/to/project
python auto-claude/roadmap_runner.py --project /path/to/project --refresh
python auto-claude/roadmap_runner.py --project /path/to/project --output roadmap.json
cd apps/backend
python runners/roadmap_runner.py --project /path/to/project
python runners/roadmap_runner.py --project /path/to/project --refresh
python runners/roadmap_runner.py --project /path/to/project --output roadmap.json
"""
import asyncio
@@ -37,8 +38,8 @@ if env_file.exists():
from debug import debug, debug_error, debug_warning
# Import from refactored roadmap package
from roadmap import RoadmapOrchestrator
# Import from refactored roadmap package (now a subpackage of runners)
from runners.roadmap import RoadmapOrchestrator
def main():