Skip to content

feat(roadmap): the stage planner gets references, read_issue and find_issues, chosen by a toolset setting #3238

Closed

Description

@dan-petty

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.

  1. 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 in tests/roadmap/test_roadmap_duplicate_eval.py and five requirements in openspec/specs/roadmap-intake-duplicates/spec.md. search_code stops at a few matches for each file and has no summary by file.
  2. 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 text name, as git grep -n -F, grouped by file with a count for each file. It covers openspec/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.toolset with the values base (the nine tools of today) and extended (base plus the three). The default is extended. 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.md says when to call each tool: references for a rename, a move or a removal; read_issue for each #N in the issue; find_issues before the Dependencies part is written.

Acceptance criteria

  1. StageTools.tools() returns 12 tools for extended and the 9 of today for base.
  2. A test with a fake repository shows that references lists every file that holds a name, including a spec and a test, with its count.
  3. A test with a fake GitHub client shows that read_issue and find_issues answer state, title and merged status, and answer a failure as text.
  4. A test shows that no tool of the set writes a file or runs a shell command, and that base has no GitHub tool.
  5. The prompt rules and the tool list stay in line (the test(roadmap): check the planner prompt against its rules #3210 test passes).
  6. 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.

Related: #3037, #3201, #3207, #3219.

Activity

  1. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 2, 2026
  2. devops-cli-service commented on Nov 2, 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.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It fixes two recurring plan defects but is an enhancement, not a blocker.
    • Value: Medium. It reduces missed references and unseen dependencies in staged plans.
    • Effort: Medium. Three new tools, a setting, tests with fakes, and docs are needed.
    • Related: feat(roadmap): the stage job plans with a read-only investigation toolbox #3037, which asks for a different change. 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.
  3. removed
    status/new
    on Nov 2, 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/mediumpriority/p2-mediumscope/roadmaptype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions