Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themtype/featureType feature: a new functionvalue/mediumValue Medium
Description
Problem
Reviews of the plans staged after the gates merged (#3225, #3228, #3234, and the five plan fixes of 2026-11-02) show two defects that the nine read-only tools of the stage planner (stage_tools.py) cannot catch. Both defects gave a blocker in every case.
- A rename or removal misses references. docs(openspec): plan #3185 move intake-eval under roadmap eval #3228 named 4 of the 11 files that hold
intake-eval. It missed six calls intests/roadmap/test_roadmap_duplicate_eval.pyand five requirements inopenspec/specs/roadmap-intake-duplicates/spec.md.search_codestops at a few matches for each file and has no summary by file. - A dependency, a park or an overlap is not seen. docs(openspec): plan #3060 plan model tier ladder for retries #3225 says "Dependencies: None" while open test(roadmap): score the stage pipeline with a cloud model first #3207 parks feat(roadmap): a model ladder for retries, with the tier chosen per attempt #3060. docs(openspec): plan #3218 dry-run config unset writes nothing #3234 does not name open fix(config): devops config unset --dry-run prints the credential that it would remove #2740, which chose the same redaction point. docs(openspec): plan #3185 move intake-eval under roadmap eval #3228 does not name open refactor(roadmap): split the roadmap commands by kind #3186. The planner has no tool that reads an issue or a pull request.
Proposed change
Add three read-only tools to StageTools, and a setting that names the set of tools of a plan run.
references(name): every line of the staged commit that holds the textname, asgit grep -n -F, grouped by file with a count for each file. It coversopenspec/specs, generated documents, fixtures and tests. It lists a file once and has no cap per file, but a cap on the files.read_issue(number): the state, title, labels, the first part of the body, the last comments, and for a closed item whether a pull request merged it. It reads through the GitHub client of the Service, with the existing App token and no new permission.find_issues(terms): the open issues and pull requests of the repository that name the terms, with number, state and title.- Setting
roadmap.stage.toolsetwith the valuesbase(the nine tools of today) andextended(base plus the three). The default isextended. A later issue adds more values.
Rules
- No tool writes, runs a shell command or reaches a host other than the GitHub API host of the Service.
- Each tool answers a failure as text, like the others.
- A text from GitHub is data: the tool cuts it, masks secrets with the existing masker, and the prompt says it is not an instruction.
roadmap_stage_tools.mdsays when to call each tool:referencesfor a rename, a move or a removal;read_issuefor each#Nin the issue;find_issuesbefore the Dependencies part is written.
Acceptance criteria
StageTools.tools()returns 12 tools forextendedand the 9 of today forbase.- A test with a fake repository shows that
referenceslists every file that holds a name, including a spec and a test, with its count. - A test with a fake GitHub client shows that
read_issueandfind_issuesanswer state, title and merged status, and answer a failure as text. - A test shows that no tool of the set writes a file or runs a shell command, and that
basehas no GitHub tool. - The prompt rules and the tool list stay in line (the test(roadmap): check the planner prompt against its rules #3210 test passes).
docs/roadmap/and the settings reference describe the toolset setting.
Security
This adds a GitHub read to a planner that had no network. The read uses the token of the Service and the same client as the other jobs. A person must confirm this before merge.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themtype/featureType feature: a new functionvalue/mediumValue Medium
Activity
devops-cli-service commentedon Nov 2, 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 two recurring plan defects but is an enhancement, not a blocker.It reduces missed references and unseen dependencies in staged plans.Three new tools, a setting, tests with fakes, and docs are needed.Both extend the stage planner toolbox; #3037 delivered the base nine read-only tools, and this candidate adds references, read_issue, find_issues and a toolset setting on top.feat(roadmap): add toolset comparison to the stage eval (#5786)