Repository navigation
Description
Context & Rationale
New work enters the roadmap from several places, and nothing checks it on the way in. Checked at ef21785:
- Agents are told to put new work straight into a release or into
docs/ROADMAP.md.AGENTS.md:120says to add ideas "as structured roadmap tasks" todocs/ROADMAP.mdunder the active milestone (it still namesv0.2.20).- The four "Automatic Roadmap Ingestion" rules (
AGENTS.md:122-132) say the same.:127says "under the active or next upcoming milestone". - The session bootstrap rule (
AGENTS.md:172) says that for any task without an issue, the agent files one on the active release milestone, with a priority.docs/ROUTINE_TASKS.md:91and the RAG knowledge base (ai/knowledge_base/devops_cli/tasks/github_project_management.md:142) repeat it. - The defect protocol (
AGENTS.md:313-322) links every new bug to the active release (:319) and mirrors it intodocs/ROADMAP.md(:322).docs/ROUTINE_TASKS.md:15and the knowledge base (:166-171) repeat it. - The knowledge base also says every feature or defect issue must link to the active release milestone (
:136), and its example does that (:66-67). AGENTS.md:329tells agents to fix issues that lack "milestone linkage", as dodocs/ROUTINE_TASKS.md:60and:157and the knowledge base (:7,:69).audit_issues_triage(github/issues.py:294-322) backs that rule: it flags every open issue without a milestone (:303,:315-317).docs/SDLC.md:48and:71-72tell people to register features indocs/ROADMAP.md.AGENTS.md:166anddocs/ROUTINE_TASKS.md:92listdocs/ROADMAP.mdas a planning document to edit.- These rules are one way the current release keeps growing (feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740).
- Only one of these rules has a generator counterpart. That is the block at
ai/instruction_generator.py:205-218, emitted at:349and pinned bytests/test_instruction_generator.py:364-371. The other rules exist only in the committed 96,310-byteAGENTS.mdand the docs above.devops ai agentswould overwriteAGENTS.mdwith its template (docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840). - Nothing catches duplicates. The only check today is in
github/roadmap_sync.py: an exact title match after stripping the conventional prefix (:244-263), plus a 25-character slug lookup in task-file names (:266-274). feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 removes that module. - After feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739, intake is the only thing that adds items. An issue becomes an item once it is on the board, and feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 turns off the board's auto-add workflow. - After feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739, triage reads Priority from the board. An open issue that is not on the board has no Priority yet. Triage would report it as missing one, andAGENTS.md:329tells agents to fix that by hand.
Intake becomes the single way in. Duplicate checks, priority and placement live in one place.
Scope & Deliverables
- Deliverable:
devops roadmap intake, in feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739's command group. It has an MCP mirror and follows feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739's--dry-run/--confirmconvention.- Inputs
- With no arguments: every open issue that is not on the board, plus every open board item that intake left unfinished (see Writes).
--issue N(repeatable): only those issues.--title T --body-file F: a candidate that is not an issue yet. Intake files the issue only if the candidate is not a duplicate.- A Python entry point that takes a candidate (title, body, source link, optional evidence). Discovery (feat(ai): roadmap discovery from advisories, alerts, repo signals and web research (
devops roadmap discover) #745) and the review hand-off (split-off) call it.
- Duplicate check
- Compares each candidate against every item on the board, open or closed, and against every issue closed as not planned. feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739's rejected rows count even if they are not on the board. Candidates placed earlier in the same run join the comparison set. - Embeds the candidate and the comparison set through the gateway, keeps the 5 nearest, and has the model judge each pair. It reuses the existing embedder (
ai/rag/embeddings.py) andcosine_similarity(ai/benchmark/embedding_runner.py:62). It embeds nothing when there are no candidates. - A duplicate is closed with state reason
DUPLICATEandduplicateIssueIdset to the original. It gets one comment linking the original and is not added to the board. - A candidate that is not an issue yet files nothing when it is a duplicate, and intake prints the original's number.
- Compares each candidate against every item on the board, open or closed, and against every issue closed as not planned. feat(github): github-sourced roadmap, migration and generated roadmap view (
- Proposal
- The model returns a structured proposal: type, priority (P1-P3), Value, Effort, optional evidence (kind and value), and a one-line reason for each. Code validates it.
- Intake sets P0 only when all of these hold, under the "P0 by automation" rule, which feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740 handed to this item:- the evidence value appears verbatim in the candidate's text or in the evidence the entry point was given;
- intake confirms the evidence exists (see Key questions);
- the source is trusted. Either the author has write access (author association OWNER, MEMBER or COLLABORATOR, which includes the machine account), or the entry point's caller attached the evidence.
- Otherwise the item gets the model's P1-P3, and the comment names the evidence and says a person can set P0.
- Placement
- A critical fix goes where feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740's admission table allows: the current release, or the next planned release when the current one is cut. - Everything else, including a P0 feature, goes to the backlog.
- A critical fix goes where feat(github): current release admission, cap, descoping and stall rules (
- Writes, in this order. Priority is written last and marks the item as finished.
- For a new candidate, file the issue.
- Add a
type/*label when the issue has none. - Add the issue to the board.
- Set the milestone when the item is placed in a release.
- Set Status New, Value and Effort.
- Leave one reason comment, unless intake's comment is already there. The comment carries a fixed marker.
- Set Priority.
- Resume: an open board item with no Priority is unfinished. The next run fills only its empty fields and adds a missing
type/*label or reason comment. It keeps a milestone the item already has and places the item if it has none. It skips the duplicate check. A crash at any step leaves either an open issue off the board or a board item with no Priority, and the next run finishes it. This also covers an item a person put on the board without a Priority.
- Store: add to refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's store any operation intake needs that earlier items have not added, in both adapters and the contract suite. These include the duplicate close with
duplicateIssueId, reading close and reopen events, and listing closed board items and not-planned issues. - Instruction changes
- In
AGENTS.md, replace the rules at:112-121,:122-132and:313-322, the "If no issue exists" branch at:172, and the "milestone linkage" clause at:329. Dropdocs/ROADMAP.mdfrom the planning documents at:166. - Make the same change in
docs/SDLC.md:48and:71-72, and indocs/ROUTINE_TASKS.md:15,:60,:91-92and:157. - Make it also in
ai/knowledge_base/devops_cli/tasks/github_project_management.md:7,:66-69,:135-137,:142and:166-171. - The replacement says: file a candidate with
devops roadmap intake --title … --body-file …; never set a milestone or priority on a new issue; never editdocs/ROADMAP.md. - Mirror the change in
ai/instruction_generator.py:205-218, and updatetests/test_instruction_generator.py:364-371.
- In
- Triage audit
- Drop the missing-milestone check from
audit_issues_triage(github/issues.py:303,:315-317), and drop theIssueTriageAuditfield (:43). - Drop its output row (
commands/gh.py:1109-1113) and the "milestone linkage" wording in its warning (:1118), docstring (:1087), help (lang/en/help.py:794) and MCP tool (ai/mcp/server.py:1721). - Update
tests/test_gh_cmd.py:233andtests/test_github_issues.py:45and:132. - A backlog item has no milestone.
- Report open issues that are not on the board once, as awaiting intake, and not as missing a priority.
- Drop the missing-milestone check from
- Inputs
- Acceptance criteria: all tests run against refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's in-memory adapter, with a fake embedder and a fake model.
- An open issue that is not on the board ends up on the board with Status New, a P1-P3 priority, Value, Effort, no milestone and exactly one reason comment. Verified by a test.
- A candidate the fake judge marks as a duplicate of a not-planned issue is closed as
DUPLICATE, pointing at that issue, with one comment, and is not added to the board. Verified by a test. - Two candidates in one run that the fake judge marks as duplicates of each other produce one item and one
DUPLICATEclose. Verified by a test. - A candidate whose timeline shows a
DUPLICATEclose followed by a reopen is placed without a duplicate check. Verified by a test. - A
type/bugcandidate opened by a collaborator, whose body cites an existing commit as the one that introduced it, gets P0 and goes into the current release. The same candidate citing a commit that does not exist gets P1 in the backlog, and its comment says why. Verified by a test. - The same valid citation in an issue whose author has no write access gets P1 in the backlog, with a comment saying a person can set P0. So does a model proposal whose evidence value is not in the candidate's text. Verified by a test.
- A critical fix arriving while the release PR is open goes into the next planned release. Verified by a test.
- A P0 feature with verified evidence lands in the backlog at P0. Verified by a test.
- A candidate whose milestone is a planned release keeps it. A non-critical candidate whose milestone is the current release ends up in the backlog with a comment. Verified by a test.
- Injection test. The candidate body tells the model to set P0, add the item to the current release, close feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740 and addtype/security. The fake model echoes that, with aduplicate_ofoutside the shortlist. Intake writes only the allowed set: the candidate's board fields, itstype/*label and its comment. It writes nothing to feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740, and it rejects theduplicate_of. Verified by a test. - When the in-memory store raises right after the board add, the next run finishes the item: Status New, Priority, Value, Effort and exactly one reason comment in total. Verified by a test.
- A second run over the same state writes nothing. Verified by a test.
--dry-runwrites nothing and prints each planned change. Verified by a CliRunner test.- When the fake embedder raises a connection error, the command exits non-zero, names the gateway and writes nothing. Verified by a test.
- For a duplicate,
--title/--body-filefiles no issue and prints the original's number. For a new candidate it files exactly one issue and places it. Verified by a test. - The MCP mirror runs a dry run unless
confirmis true, and the command line it builds is one the CLI accepts. Verified by a test that calls the tool against the in-memory store. The tool is also listed intests/test_fastmcp_contracts.py. rg -n 'TO THE ROADMAP|STRUCTURED ROADMAP TASKS|under active defects|(and|or) milestone linkage|If no issue exists|link the active milestone|Link the active release milestone|must link to the active release milestone|linked to active milestone|unmilestoned|update ROADMAP.md|Register milestones and strategic features' AGENTS.md docs/SDLC.md docs/ROUTINE_TASKS.md src/devops_cli/ai/instruction_generator.py src/devops_cli/ai/knowledge_base/devops_cli/tasks/github_project_management.md src/devops_cli/commands/gh.py src/devops_cli/ai/mcp/server.py src/devops_cli/lang/en/help.pyreturns nothing. So doesrg -n issues_missing_milestone src tests.- A generator test asserts that the template names
devops roadmap intakeand no longer contains the ingestion rules. - The
audit_issues_triagetests no longer expect a missing-milestone entry. One test asserts that an issue not on the board is reported as awaiting intake, not as missing a priority. - Each new test runs offline under fix(test): the test network guard refuses loopback connects to services the test did not start #837's loopback guard. The new module takes under 1 s in total (
uv run pytest tests/test_roadmap_intake.py --durations=0). - Person-run checks, with the gateway reachable and
ai.gateway_enabledset, in a checkout of dan-petty/devops-cli:uv run devops roadmap intake --dry-runlists every open issue that is not on the board, with its proposed duplicate, type, priority, Value, Effort and placement. Run these two commands before and after it, and each prints the same output both times.<board>is the number in.github/roadmap.toml.gh issue list -R dan-petty/devops-cli --state all --search "sort:updated-desc" --limit 1 --json number,updatedAtgh project item-list <board> --owner dan-petty --limit 1000 --format json | sha256sum
f=$(mktemp); echo "One entry point turns candidates into items: duplicate check, priority, placement." > "$f"; uv run devops roadmap intake --title "feat(github): single-entry item intake with duplicate detection" --body-file "$f" --dry-runreports a duplicate of feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 and would file nothing.
- Key questions:
-
How are duplicates found? (proposed) Embed the title and body of the candidate and of the comparison set with the
ai.tasks.embeddingmodel (config/settings.py:403-405). Take the 5 nearest by cosine similarity. Have theai.tasks.analysismodel judge each pair. There is no tuned threshold, and no new dependency. -
Is a defect in delivered work a duplicate of the item that delivered it? (proposed) No. The judge prompt says so, and the candidate becomes a new item.
-
What if a person disagrees with a duplicate close? (proposed) They reopen the issue. GitHub records a
ClosedEventwithstateReasonandduplicateOf(checked against the GraphQL schema on 2026-10-01). Intake sees the reopen in the timeline and skips the duplicate check, so the person's decision stands. -
When does intake set P0, and what counts as evidence? (proposed) The model may point at one piece of evidence of one of the three kinds below. Code checks that its value appears in the candidate's text or in the entry point's evidence, and that it exists:
- a GHSA ID that GitHub's advisory API returns;
- an Actions run in this repo whose conclusion is failure;
- a commit in this repo cited as the commit that introduced a regression.
The source must also be trusted: an author with write access, or evidence the entry point's caller attached. The model can propose only P1-P3. A person can set P0 on the board at any time.
-
Where does each item go? (proposed) A critical fix (P0 with
type/bugortype/security) goes where feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740's admission table allows, so the cut-lock logic is not copied here. Everything else goes to the backlog, including a P0 feature. feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740's release start takes P0 features first, which is how a P0 feature "goes first in the next release". Intake does not apply the cap; feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 reacts when an item is added to the current release. -
A candidate already has a milestone. Does it stand? (proposed) A planned release set by a person stands. The current release goes through admission like any other placement, because the admission rule binds everyone.
-
What if intake stops part-way? (proposed) Priority is written last. An open board item with no Priority is unfinished, and the next run fills only its empty fields. The comment's fixed marker keeps it to one comment.
-
How does intake know the type? (proposed) An existing
type/*label stands. Otherwise the model picks one of thetype/*names in.github/labels.ymlother thantype/epic, and code rejects any other value. The issue templates still applybugandenhancement. feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739's priority split-off (backlog), not feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739, mergesbugintotype/bug. Until it lands,bugandenhancementstay plain labels, and intake adds thetype/*label next to each. -
Which models, and through what config? (proposed) The existing
analysisandembeddingtask overrides (config/settings.py:394-405), through the gateway (:422-426). No new task key. -
What happens when the gateway is unreachable? (proposed) Fail closed. Write nothing for undecided candidates, exit non-zero and name the gateway. The next run retries. The homelab
llm-gatewayand its ollama backends were running when this was checked on 2026-10-01. -
How do agents file a candidate? (proposed) With
devops roadmap intake --title … --body-file …. The duplicate check runs before any issue exists, so a duplicate never becomes an issue. -
Which instruction rules change? (proposed) Only the ones that put new work into a release or into
docs/ROADMAP.md. All are listed under Deliverable. Two groups stay with feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 and feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740, because they concern release start and delivery:- release-start population:
AGENTS.md:303-311,docs/SDLC.md:73-76,docs/ROUTINE_TASKS.md:50and the knowledge base's:157-160; - PR milestone linkage:
AGENTS.md:332.
- release-start population:
-
Does
devops gh issues triagestay? (proposed) Yes, minus the missing-milestone check, and it reports issues not yet on the board as awaiting intake. Retiring it in favour ofdevops roadmap intake --dry-runis a later decision for the owner. -
The repo is public, and anyone can open an issue. Is every issue a candidate? (proposed) Yes, as CONTEXT.md defines. Untrusted text cannot escalate a candidate. The model holds no tool that writes, code checks its values, and a P0 for an author without write access needs a person. A person closes spam as not planned.
-
Which identity do the writes use? (proposed) The gh login in a terminal, and the machine account in the service once refactor(github): one github session per identity owning token, quota and transport #767 and feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 land. All writes go through refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's store, which records the value a job last set (ADR 0002). That lets feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740 tell intake's values from a person's. -
Who triggers refinement at intake, and where do review findings come from? (proposed) The refinement trigger belongs to feat(ai): item refinement to ready with proposed decisions (
devops roadmap refine) #744 (v0.2.26). Its body already says "at once for an admitted critical fix; at intake for a P0 feature". The review hand-off is split off into its own item. This item provides the candidate entry point both call.
-
- Constraint:
- Discovery and the review command never create items themselves. Everything enters through intake.
- Issue text is untrusted data. The model step returns a structured proposal and holds no tool that writes. Deterministic code validates the proposal: enum values,
duplicate_ofmust be in the shortlist, and P0 needs verified evidence from a trusted source. - Code writes only these: the candidate's board item and fields, its milestone, a
type/*label when none is set, one comment on it, and the duplicate close. It never writes to another issue. - Intake never places a non-critical item in the current release.
- Edit
AGENTS.mdby hand and mirror the change inai/instruction_generator.py. Never regenerateAGENTS.mdwithdevops ai agents(docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840). - Tests never touch the network, a cluster or a real model. They use structural tuple assertions until test(cli): retire the tuple-assert mandate and detect opaque tuple asserts and presence-only tests #851 settles that.
Strategic Alignment
- Milestone: v0.2.26 (moved by the owner on 2026-10-03; it starts first in v0.2.26, in parallel with feat(release): production service image for scheduled jobs and webhook handlers #753)
- Design: CONTEXT.md (glossary), ADR 0001: GitHub is the roadmap's source of truth, ADR 0002: Roadmap jobs act as a machine account
- Depends on: refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768 (roadmap store), feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 (command group, board fields,.github/roadmap.toml), feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 (admission table; the P0-by-automation rule moved from feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 to this item). feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 and refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768 have landed; feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 is in v0.2.25. None is in a later release. - Related:
- feat(ai): item refinement to ready with proposed decisions (
devops roadmap refine) #744 (v0.2.26) adds the refinement trigger at intake. - feat(ai): roadmap discovery from advisories, alerts, repo signals and web research (
devops roadmap discover) #745 (backlog) hands discovery candidates to intake. - feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981 (v0.2.26) runs intake at least hourly, in the service feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 deploys on feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741's in-cluster runtime. - refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26) makes the service act as the machine account.
- refactor(review): review session store that owns layout, fingerprints and verdicts #771 (backlog) says intake reads verified findings through its session store. That reading moves to the split-off review hand-off item.
- docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 and docs(agents): AGENTS.md fits a context budget and Claude Code loads it #841 (backlog) also editAGENTS.md. - fix(mcp): mcp tools and resources call commands and options that exist #836 (in flight) fixes the MCP argv contract that this item's MCP mirror follows. fix(mcp): mcp tools refuse coerced arguments before they run, with prescriptive errors that never echo values #862 (backlog) matters because that tool writes to GitHub.
- feat(mcp): mcp tools declare ToolAnnotations, and mutating tools require approval in devops-cli's own agent loop #857 (backlog) adds ToolAnnotations and approval for mutating MCP tools such as this mirror. fix(ai): mcp command tools return the failing output and never write to the protocol stream #839 (backlog) covers how MCP command tools report failures.
- fix(test): the test network guard refuses loopback connects to services the test did not start #837 (in flight) is the loopback guard the new tests run under.
- The review-findings hand-off is split off into its own item.
- feat(ai): item refinement to ready with proposed decisions (
- Split off (backlog): feat(review): verified findings about merged code enter the roadmap through intake #883 (verified findings about merged code enter the roadmap through intake).
Amended 2026-10-04: enforce the agent filing quota at intake
The quota is defined in #1153: the release credit, the ratio r(n), the allowance, borrowing, what counts as a closure, the config keys and the metrics. Intake enforces the rule; it does not restate it.
-
Intake reads the spec's counts through REST search, which uses the REST quota: open issues, agent-sourced issues (
source/agent) created since the cycle started, borrowed openings, and issues closed since then. It reads the config throughread_roadmap_configand computes the allowance with the spec's function. It labels every candidate from an agent entry pointsource/agent. -
Every agent-sourced candidate gets one of the spec's three decisions: open within the allowance, fold into an existing item, or borrow (
budget/borrowed). Intake reports its decision on every run, with the numbers behind it. A test covers each branch, including a borrowed split that is never refused and a person's issue, which skips the check. -
Depends on: feat(roadmap): agent filing quota: release credit, ratio throttle, borrowing and per-release tuning #1153 (the agent filing quota spec) for the quota's definition.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
chore(docs): record roadmap planning glossary and github-source adr (#…
chore(docs): record roadmap service decisions and the machine-account…
feat(release): v0.2.24 (#905)
dan-petty commentedon Oct 3, 2026
Moved from v0.2.25 to v0.2.26 by the owner (2026-10-03) so v0.2.25 can be cut once #740, #1079, #952 and the monitoring items (#550, #1080, #549) ship. Intake builds on #740's merged state machine; it starts first in v0.2.26.
dan-petty commentedon Oct 3, 2026
Moved to v0.2.26 by the owner on 2026-10-03 and starting first. It runs in parallel with #753 (the first merge) and lands before #744 and #981. The service references now point at #1083 (#741 became the in-cluster runtime).
feat(roadmap): roadmap intake files and refines candidates through th…
dan-petty commentedon Oct 4, 2026
Closed by #1163, merged into
release/v0.2.26.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.26 (#1178)