Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/featureType feature: a new functionvalue/mediumValue Medium
Description
Problem or Motivation
src/devops_cli/roadmap/refine/refine.py:761setsSYMBOL_PATHSPEC = '*.py'.src/devops_cli/roadmap/premise.py:31-39finds a definition only with a Python def, class or assignment regex.- The stage probe (
src/devops_cli/roadmap/stage/stage_probe.py:270and:282) and the implement premise check (src/devops_cli/roadmap/implement/implement_run.py:167) call it. - So the code reports a Rust function that a dreamscaper issue cites as undefined. This is false premise evidence.
TreeSitterEngine(src/devops_cli/ai/ast/engine.py:17-113) maps 14 languages. The installed grammars (pyproject.toml:55-69) giveTAGS_QUERYwith@definitioncaptures. In the roadmap, onlystage_tools.pyuses them.
Proposed Solution & Architectural Design
- Find the candidate files with
git grep -w <name>over the extensions ofEXT_TO_LANGat the commit. - Confirm a definition with the
TAGS_QUERY@definitioncaptures of the grammar for the language of the file. - Python gives the same result as today.
- Add no project artifact and no
LanguageAnalyzerprotocol. - Test names, test selection and the stage test checks stay Python-only until a runner can run tests of another language.
Target Subsystem
SDLC, Git & PR Governance (src/devops_cli/roadmap/premise.py and src/devops_cli/roadmap/refine/refine.py).
Existing Tool Considered
tree-sitter tag queries are the standard for symbol definitions (GitHub code navigation uses them). The grammars are already installed. universal-ctags is not in the runner image and adds a program. Cost of the wiring: about 100 lines and 6 tests, about 350,000 tokens and 3 hours to build.
Acceptance Criteria
- A test with a Rust fixture:
definition_lines('scout_reaches_target')finds thefnline. - A test with a shell fixture finds a function definition.
- The existing premise and refine tests pass with no change in their expected output.
- A refine run on a dreamscaper item that cites a Rust function gives a symbol section with its file and line.
Dependencies
None.
Source: #4627
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/featureType feature: a new functionvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It fixes false premise evidence for non-Python symbols but does not block the primary Python workflow.Multi-language repos get correct symbol definitions, but Python-only repos are unaffected.The body scopes it to about 100 lines, 6 tests, and 3 hours of work.Both use TreeSitterEngine, but #74 builds the engine while this candidate uses its tag queries in the roadmap premise and refine stages.devops-cli-service commentedon Nov 12, 2026
Released in v0.115.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.115.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 04:08 UTC