Repository navigation
Description
Split from #1127 (part 4 of 4). It needs the command of part 2.
Problem
The consolidation command (part 2) is run by hand only. An agent has no read-only tool for it, and the roadmap Service does not run it.
Expected
An MCP tool roadmap_consolidate mirrors the read-only run. The roadmap Service runs the job weekly after refinement, because it only writes a plan.
Acceptance criteria
- The MCP tool
roadmap_consolidatebuilds an argv that never holds--applyor--confirm.tests/test_fastmcp_contracts.pychecks the argv. - The due table of the run (feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981) has a row that makes the consolidation job due weekly, in the fixed order after refinement. A test intests/test_roadmap_run.pycovers the row and its order. - The weekly run writes only the plan file, and no GitHub change.
- The documents that list the jobs and the MCP tools name the new job, and
uv run devops docs generate --sync-readmeleaves no diff. -
uv run devops cipasses. - Pending a person:
uv run devops roadmap consolidate --dry-runon the live board reports the six groups applied on 2026-10-03 as already linked, and two runs print the same plan. test(roadmap): verify the consolidation dry run on the live board #3635 holds this check.
Existing tool considered
The MCP mirror and the run table are existing project mechanisms. No new dependency.
Related
#1127 (shortlists), part 2 (command and plan), part 3 (apply), #981, #3635.
Alternatives check of 2026-11-08: partly.
Tool: PrefectHQ/fastmcp (https://github.com/PrefectHQ/fastmcp), Apache-2.0, last activity 2026-11-08, maintained.
Proposed design
Problem statement
The consolidation command devops roadmap consolidate exists and runs by hand only. An agent has no read-only MCP tool for it. The roadmap Service never runs it. This item adds the MCP tool roadmap_consolidate and a weekly row in the due table. Both run the plan path only, and the plan path writes one local plan file and nothing on GitHub. The live-board check of the six groups of 2026-10-03 stays in #3635.
Acceptance criteria
Requirement: Read-only argv of the MCP tool
The MCP tool roadmap_consolidate SHALL publish no confirm and no decline option and SHALL build an argv that holds neither --confirm nor --decline.
Scenario: Argv of a tool call
- WHEN A client calls the tool
roadmap_consolidatewith every option that its schema publishes. - THEN The schema names neither
confirmnordecline, the argv holds neither flag, andtests/ai/mcp/test_mcp_roadmap_tools.pyandtests/ai/mcp/test_mcp_exposure_table.pypass.
Requirement: Weekly due row after refinement
The due table of the run SHALL hold a consolidate row in the model lane directly after refine, due every DEFAULT_ROADMAP_CONSOLIDATE_INTERVAL_MINUTES (10079) minutes and on a first run.
Scenario: Row and order in the due table
- WHEN The test
tests/roadmap/test_roadmap_run_due_table.pyreadsDEFAULT_DUE_TABLE. - THEN The test finds
consolidatedirectly afterrefinewith that interval andfirst_run_due, andtests/roadmap/test_roadmap_intervals.pycounts 11 interval constants and finds the new one prime and not a multiple of 5.
Requirement: Weekly run writes only the plan
The weekly run SHALL write only the plan file and MUST make no GitHub change.
Scenario: Run with a recording store
- WHEN The Service runs the consolidation row from its due row with a recording store.
- THEN The run writes the plan file and the recording store holds no write.
Requirement: Documents name the job and the tool
The generated documents that list the roadmap jobs and the MCP tools SHALL name the consolidation job and the tool roadmap_consolidate.
Scenario: Documentation generation
- WHEN A developer runs
uv run devops docs generate --sync-readmeafter the change. - THEN The command leaves no diff, and
docs/MCP_TOOLS.mdnames the tool and the help text ofdevops roadmap runnames the job.
Requirement: Tool listing snapshot
The tool listing snapshot SHALL include the tool roadmap_consolidate with readOnlyHint set to true.
Scenario: Snapshot test
- WHEN The test
tests/ai/mcp/test_mcp_tool_listing.pycompares the tool listing with its snapshot. - THEN The snapshot holds the new tool and the test passes.
Requirement: CI gate
The change MUST pass uv run devops ci.
Scenario: Full CI run
- WHEN A developer runs
uv run devops cion the change. - THEN The command exits with status 0.
Existing Tool Considered
FastMCP 4.1.2 (https://github.com/PrefectHQ/fastmcp, Apache-2.0, maintained) is the MCP server that the project already pins in pyproject.toml. It covers tool registration and the parameter schema. It lacks the project argv translation, the read-only option policy and the roadmap due table. The project code for these exists: _build_command_argv and _PATH_PARAM_RESTRICTIONS in src/devops_cli/ai/mcp/generator.py, CONST_MCP_EXPOSURE_TABLE in src/devops_cli/config/constants.py and DEFAULT_DUE_TABLE in src/devops_cli/roadmap/run.py. The change adds no dependency and no new library. It adds one exposure row, one restriction entry, one due-table row and one interval constant. That is about 30 lines of production code, plus tests, and one short build session.
Key questions
- Which code builds the argv of the MCP tool
roadmap_consolidate, and how does it keep write options out?: The MCP generator builds the argv. Add a('roadmap', 'consolidate')row toCONST_MCP_EXPOSURE_TABLEwith read_only true, and a('roadmap', 'consolidate')entry to_PATH_PARAM_RESTRICTIONSthat allows onlyrepo,ref,limitanddry_run. The optionsconfirmanddeclineare then never published and never bound, so the argv cannot hold them. The command has no--applyoption, because the apply path is another command. (best practice) [sources: src/devops_cli/ai/mcp/generator.py, src/devops_cli/config/constants.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 6, 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 is part 4 of 4 and depends on the still-open part 2 (#3740), so it cannot land first, but it completes a user-facing automation.It removes a manual step and gives agents a read-only consolidation tool, but the core command already lands in part 2.It adds one MCP tool with argv tests, one due-table row with order tests, a docs update, and a CI pass, all following existing patterns.Both add a due-table row so the Service runs a job on a schedule, but #2652 covers the alternatives job daily while the candidate covers the consolidate job weekly and also adds an MCP mirror.feat(roadmap): build the shared shortlist of the consolidation job (#…
devops-cli-service commentedon Nov 7, 2026
Refine cannot set this item to Ready at 72c52c6 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 8, 2026
Alternatives check: partly
Reason: The web searches returned no relevant results (only generic MDN pages), so only the PyPI and GitHub facts of FastMCP were usable. FastMCP, which the issue itself names as the MCP server the project already pins, covers the MCP tool registration and parameter-schema half of the need, but it does not supply the project's argv restriction, the due-table row with its weekly interval and order, or the plan-only weekly run, so the issue's work stays largely project-internal.
Tool: PrefectHQ/fastmcp (https://github.com/PrefectHQ/fastmcp)
Covers:
roadmap_consolidatetool needsLacks:
_build_command_argv) and the read-only exposure policy (_PATH_PARAM_RESTRICTIONS) that keep--applyand--confirmout of the argvrefine, its weekly interval constant and the first-run-due orderTools considered:
Searches run:
Sources:
Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 10, 2026
Status set to Ready at 699026e (see proposed design in issue body).
dan-petty commentedon Nov 11, 2026
Scope from the project brain plan (2026-11-11)
This item is child 13 of the project brain plan #4624.
Problem: this item adds a weekly consolidate row to the due table of the Service run. ADR 0021 moves rows out of the Service pod, and the owner rule of 2026-11-11 forbids a loop in a Service pod. The consolidate step of
brain-daily(#4687) runs the judge daily, at most 10 shortlists a run, so the weekly row is obsolete.New scope:
roadmap_consolidate. Its argv never holds--applyor--confirm.feat(roadmap): consolidate has a read-only MCP mirror.New acceptance criteria:
brain-dailyitem names this item as related.Dependencies: none.
devops-cli-service commentedon Nov 11, 2026
Released in v0.114.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.114.0
devops-cli-service commentedon Nov 11, 2026
Live since 2026-11-11 22:57 UTC