Repository navigation
Description
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D1 (owner, 2026-10-17): "chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds the roadmap Service's deployment only; Service code is built, tested offline and merged at 0 replicas (replicas: 0, its test, and the no-scale/no-restart/no-secret-push rules stay)." Everything in this item is built and tested offline. Only the rollout check waits for the Service.
- Decision D18 (owner, 2026-10-17): "intake's refine hook is deleted (fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540); fix(roadmap): intake keeps the fields a person set on a card added during its planning #1404 is re-scoped to its card-fields criterion." After that, a newly placed P0 or critical item gets refined only through the cross-job rule. Once intake has its own lane, that rule can no longer see intake's outcome, so this item carries it across lanes.
- Decision D4 (owner, 2026-10-17): "feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 is re-scoped to step 1 now (install the Argo Workflows controller and measure, with an executor ServiceAccount and Role, API-server egress, no devops-cli Secret mount, deploy-stack registration, an AppProject destination, and a --version template that makes no GitHub request); steps 2-6 are filed after its go/no-go." This item therefore extends today's in-process lanes. Moving them onto Argo Workflows belongs to feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's later steps, which are not filed yet.
status/blockedpointed to feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 for intake's placement. feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 is closed, and feat(release): release-please makes every release from main #1952 deleted the release placement and the planner. Nothing in this item waits on feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 now.- Small decision: on a poll or a delivery in which refine is not due, three lanes send no more GitHub requests than today's two lanes do. In a round in which refine is due, the model lane sends at most three more: its config read, its milestone read and one GraphQL budget read. The reason is that every trigger reaches every lane of its repository (
src/devops_cli/server/service.py:310-313,:370-376), each lane round pays its own reads, and every repository's rounds share one GraphQL budget (service.py:79-87). - Small decision: the fast path stays the
issuesopened and reopened webhook. Polls do not list new issues: issue events never report an opening (src/devops_cli/config/constants.py:1114-1121), so finding new issues would cost a listing request on every poll. With webhooks off, a new issue waits for intake's 60-minute interval (src/devops_cli/config/defaults.py:818). Scoping each run to a single event stays with feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533. - Small decision: the owner's 2026-10-09 names stand (triage lane,
devops-triage,ai.tasks.triage). CONTEXT.md drops "triage" from Intake's avoid list (CONTEXT.md:107), and its Lane entry (:129-131) names three lanes, because that glossary line was written before the decision.
Scope
- Unchanged: the gateway group and its fallbacks,
ai.tasks.triageand the third lane. - Removed: intake placement with P0 displacement at 16 (feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 step 4). Since feat(release): release-please makes every release from main #1952, intake puts every new item in the backlog and sets no milestone. A person plans the milestones on the board.
- Added: the cross-lane refine trigger, and the request budget together with the model lane's request skip.
- Not in this item: feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 keeps per-event scoping. Moving the lanes onto Argo Workflows, which this item's 2026-10-09 comment gives to feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535, comes under D4 in the steps filed after feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 1's go/no-go.
Delivery
- One PR, size M.
Acceptance criteria (added or replaced; the body's other criteria stand)
- Cross-lane refine (in-memory store,
tests/test_roadmap_run.py): intake runs in the triage lane and refine in the model lane. When an intake round places a P0 or critical item, refine becomes due at the model lane's next round. The model lane reads this from a stamp inschedule.json. The stamp is written under_SCHEDULE_LOCKlike every other success (run.py:97,:203-210), because the lanes writeschedule.jsonconcurrently.devops roadmap runstill runs refine in the same round, through_refine_cross_job(run.py:424-432). - Request budget (GitHub store over the faked
gh, next totests/test_roadmap_run.py:1678-1702, driving each lane'sSERVICE_JOBSentry so that each lane's own config read is counted): for the same changes, a poll or a delivery in which refine is not due sends no more GraphQL requests and no more REST requests across the three lanes than across today's two. Today every lane round reads.github/roadmap.tomlover REST before it judges a row (service_job,run.py:1024, throughopen_roadmap,src/devops_cli/roadmap/config.py:99, uncached atsrc/devops_cli/roadmap/github_store.py:2519-2521). Also,_fetch_filtered_changesreads changes on every poll and on every delivery to a lane with a due rule (run.py:803-807). The model lane, which then holds only refine, therefore has to judge refine fromschedule.jsonbefore the store is opened: it sends no request when refine is not due, and it never reads changes. In a round in which refine is due, the test pins the model lane's extra requests to its config read, its milestone read and one GraphQL budget read (log_round_spend,run.py:981-997). Intake reads the open issues and the board only when its plan starts (plan_intake,src/devops_cli/roadmap/intake.py:1265-1275), that is, only in a round where intake is due. - The opened-issue criterion now reads "an
issuesopened webhook trigger" (constants.py:2289-2292). The queue-depth test checks for thetriagelane label, which the gauge already carries (service.py:144,:175). - Docs. This list replaces the body's list, because AGENTS.md now holds only the suspension notice (
AGENTS.md:147-151):CONTEXT.md:105-107and:129-131; theserve --servicehelp (src/devops_cli/lang/en/help.py:808-811), withdocs/commands/serve.md:25regenerated;k8s/README.md:91(the triage group next todevops-background, plus the fallback chain) - Pending a person: once the Service runs again (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562) and the
issueswebhook is subscribed (k8s/README.md:372), check that while a refine round is running, an issue opened in a managed repository gets its intake comment, fields and placement within 5 minutes. The measured latency is recorded on this item.
Note to #1540 (for a person to post there)
- Ideally fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 lands first. It is small, and it leaves a single predicate for "intake placed a P0 or critical item",
_places_critical_or_p0(run.py:435-444), which this item carries across lanes unchanged. Today the hook has its own predicate,_should_refine_on_intake(src/devops_cli/roadmap/intake.py:1382-1389), which counts an item that intake places at P0. - Once this item lands, the Service runs intake and refine in different lanes. The intake branch of
_refine_cross_job(run.py:424-432) then never sees intake's outcome in the Service. Instead, aschedule.jsonstamp makes refine due at the model lane's next round. - fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540's test that "the same round's refine row is due" stays true for
devops roadmap run, which runs every row in one round (DEFAULT_DUE_TABLE,run.py:704). In the Service, "the same round" becomes the model lane's next round. - If this item lands first, fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540's deletion and its test are unchanged. Only its statement that the Service refines a newly placed item in the same round becomes "at the model lane's next round".
Current references (checked at main 3dd7fa6)
- Model: intake's call is at
src/devops_cli/roadmap/intake_model.py:168and refine's atsrc/devops_cli/roadmap/refine.py:951-952.AITasksConfigis atsrc/devops_cli/config/settings.py:445-449(:446-450on release/v0.2.37 after fix(security): local names come from the public suffix list, and domains match on DNS labels, not string suffixes #887), and the Service example config is atk8s/devops/configmap.example.yaml:19-25. - Lanes:
RELEASE_LANE_ROWS(run.py:657-680),MODEL_LANE_ROWS(:683-702, intake row at:684-691),DEFAULT_DUE_TABLE(:704),SERVICE_JOBS(:1035-1042). Lane names are atconstants.py:1070-1072. - Due rules:
_intake_due(run.py:375-383),_refine_due(:392-400),_refine_cross_job(:424-432),_places_critical_or_p0(:435-444);schedule.jsonwrites go through_record_success(:203-210). - Reads:
service_job(run.py:1017-1032) andopen_roadmap(config.py:93-108);_fetch_filtered_changes(run.py:794-807) andlog_round_spend(:981-997);changes_since(github_store.py:1490-1519),_with_job_records(:1965-1978) and the uncached runner (:2519-2521); intake's reads inplan_intake(intake.py:1265-1275). - Workers:
RepoWorker(service.py:130-307, lane label at:144, queue-depth gauge at:175) andRoundPause(:79-87). - Gateway:
k8s/llm/gateway/configmap.yaml:62(devops-background) and:172-181(fallbacks); slow-tier tests attests/test_k8s_llm_gateway.py:313and:333.
Dependencies and order
- feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882: closed. feat(release): release-please makes every release from main #1952 deleted the planner and the release placement, so feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 blocks nothing in this item.
- fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540: open, no milestone, still labelled
status/blockedon chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 until a person acts on D1 and D18. Land it first if it is ready (see the note above). - fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532 (lanes) and feat(roadmap): a release keeps 4 slots above its cap of 12, so a start still fills to 12 and nothing is trimmed or descoped until it holds more than 16 #1514 (slots) closed in v0.2.33; fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400 (shared pause) closed in v0.2.29.
- chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562: closed. The account is still suspended, and the Service stays at
replicas: 0(k8s/devops/roadmap-service/deployment.yaml:10-12). Under D1 it holds only the rollout check. - Not blockers: feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 (open, no milestone, waiting on feat(service): one webhook router verifies each provider its own way, parses a typed payload and delivers each event only to the consumers subscribed to it #1386 in v0.2.38) makes triage scoped to each event. feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 (open, v0.2.38, P0) is step 1 only under D4; moving the lanes onto Argo comes in the steps filed after its go/no-go.
Requested by the owner, 2026-10-09: "I'm also picturing a fast-polling or event driven triage process that quickly identifies if an issue is high priority and needs to go into a milestone immediately, and issue enhancement processes that can truly run in the background without blocking releases and triage, while doing investigation, validation, enhancement, and correlation."
Problem
Checked at release/v0.2.33.
- Intake already makes the triage decision. It proposes a type, a Priority (P1-P3; P0 only with evidence GitHub confirms), Value and Effort, and runs a duplicate check (
roadmap/intake.py, module docstring). It runs onissuesopened and reopened deliveries (CONST_ROADMAP_INTAKE_BATCH_KEYS) and at every poll while candidates wait (intake.json). - It waits for the slow model. Intake and refine both call
ai.for_task("analysis")(roadmap/intake_model.py:7-8,roadmap/refine.py:951). The Service sets that todevops-background(k8s/devops/configmap.example.yaml), the background tier, which answers one call at a time in about 2-3 minutes. fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532 splits the status lane from the model lane, but intake and refine still share the model lane. A new P0 waits behind every queued refine call: about 40 calls on 2026-10-09 from 22:04 UTC, with no round finishing for over 40 minutes. - Placement is not part of this item. Since feat(release): release-please makes every release from main #1952, intake puts every new item in the backlog and sets no milestone. A person plans the milestones on the board.
Decision (owner, 2026-10-09)
- One triage item. Background enhancement (investigation, validation, enhancement, correlation, refine) stays off the triage path and is planned with the workflow-engine adoption.
- Model. The gateway gets a
devops-triagegroup:qwen3.8:27bon the 64 GiB standard Ollama tier.devops-triageanddevops-backgroundboth fall back to the existingqwen3.8:27bgroup. The Service's triage calls usedevops-triage.
Proposed design
-
Gateway (
k8s/llm/gateway/configmap.yaml):devops-triagehas one deployment,ollama_chat/qwen3.8:27bon the 64 GiB standard tier.router_settings.fallbacksgainsdevops-triage: [qwen3.8:27b]anddevops-background: [qwen3.8:27b]. The comments say why.
-
Model setting.
AITasksConfiggainstriage.- Intake's proposal call uses
ai.for_task("triage"). Whentriageis unset, it usesai.model, like every task. - The Service ConfigMap example sets
triage.model: devops-triage. - Embeddings are unchanged.
-
Triage lane. Built on fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532, each repository gets three lanes:
- status: metrics;
- triage: intake;
- model: refine, plus later background enhancement.
Each lane has its own worker and queue, with the same triggers and the same
schedule.json. The shared round pause (fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400) still holds all three. The job keeps the nameintake; triage is its lane. -
Events.
- Before feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533, the triage lane picks up a new issue within one poll (5 minutes).
- With feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533, an
issuesopened or reopened delivery runs intake for that one issue at once, on the triage lane.
Order: after #1532 (lanes). #1533 makes triage immediate but does not block this item.
Acceptance criteria
- Gateway tests (
tests/test_k8s_llm_gateway.py):devops-triagehas exactly one deployment,ollama_chat/qwen3.8:27bon the 64 GiB standard tier.- The fallbacks include
devops-triage: [qwen3.8:27b]anddevops-background: [qwen3.8:27b], and the existing rules are unchanged. - The slow-tier tests still pass.
-
ai.tasks.triagevalidates, and intake's proposal call uses it. With it unset, intake usesai.model(test). - With a model-lane round blocked on a slow fake model, an
issuesopened trigger runs intake for that issue within one poll and writes its fields and placement (in-memory store). - Metrics report the triage lane's queue depth.
- Docs:
- AGENTS.md's roadmap-service section: the three lanes, and the triage model next to the line that names
devops-background. - The CONTEXT.md Intake entry.
- k8s/README.md: the gateway section and the Service setup.
- AGENTS.md's roadmap-service section: the three lanes, and the triage model next to the line that names
- Person check, after rollout: an issue opened in a managed repository gets its intake comment, fields and placement within 5 minutes while a refine round is running.
Feasibility
-
Fits one PR:
- a gateway group and two fallback rules, with tests;
- one settings key;
- a third lane on fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532's structure.
It adds no new job or record.
-
Model reloads. The 64 GiB standard tier keeps one model loaded and also serves
qwen3-coder:30b,gemma4:31banddeepseek-r1:70b. A triage call that follows another model's call reloadsqwen3.8:27b, which adds load time. The person check records the latency; if load time dominates, report it on this item. -
Fallbacks chain.
devops-review→devops-background→qwen3.8:27bmeans background and review work can reach the interactive tiers when the background tier fails, including after its 1,100 s timeout. The owner chose this. The gateway comments and k8s/README.md state it.
Related: #1532 (lanes), #1533 (event-scoped updates), #1386 (event router), #1514 (slots).
Proposed design
Problem statement
The roadmap Service runs intake and refine in the same model lane. A new P0 or P1 item waits behind every queued refine call before it gets its priority. This item gives intake its own triage lane on a fast model. A new critical item then gets its priority within one poll. Refine continues in a separate model lane.
Acceptance criteria
- Criterion 1: The gateway config has a
devops-triagegroup with one deployment,ollama_chat/qwen3.8:27b, on the 64 GiB standard tier.
Verification: Runpytest tests/test_k8s_llm_gateway.py -vand confirm thedevops-triagedeployment and tier assertions pass. - Criterion 2: The fallbacks include
devops-triage: [qwen3.8:27b]anddevops-background: [qwen3.8:27b], and the existing rules are unchanged.
Verification: Runpytest tests/test_k8s_llm_gateway.py -vand confirm the fallback assertions pass. - Criterion 3:
ai.tasks.triagevalidates, and intake's proposal call usesai.for_task("triage"). Whentriageis unset, intake usesai.model.
Verification: Run the intake model test that sets and unsetsai.tasks.triageand checks which model the proposal call targets. - Criterion 4: When intake places a P0 or critical item, refine becomes due at the model lane's next round via a
schedule.jsonstamp.
Verification: Runpytest tests/test_roadmap_run.py -k cross_lane -vand confirm the stamp is written under_SCHEDULE_LOCKand refine is due on the next model-lane round. - Criterion 5: A poll or delivery where refine is not due sends no more requests across the three lanes than today's two.
Verification: Run the request-budget test that drives each lane'sSERVICE_JOBSentry and counts GraphQL and REST requests per lane. - Criterion 6: When refine is due, the model lane sends at most three reads: its config, its milestone, and one GraphQL budget read.
Verification: Run the request-budget test and confirm the model lane's request count matches the three reads. - Criterion 7: The opened-issue criterion reads "an
issuesopened webhook trigger", and the queue-depth test checks for thetriagelane label.
Verification: Runpytest tests/test_roadmap_run.py -k webhook -vand confirm the trigger type and lane label assertions pass. - Criterion 8: CONTEXT.md, the
serve --servicehelp, and k8s/README.md reflect the three lanes and thedevops-triagemodel.
Verification: ReadCONTEXT.md:105-131,src/devops_cli/lang/en/help.py:808-811, andk8s/README.md:91and confirm the triage lane and model are named.
Key questions
- What model group does the triage lane use?: The
devops-triagegroup, which has one deployment,ollama_chat/qwen3.8:27b, on the 64 GiB standard tier. [sources: k8s/devops/configmap.example.yaml:19-25] - How does the cross-lane refine trigger work?: Intake writes a stamp in
schedule.jsonunder_SCHEDULE_LOCK. The model lane reads the stamp and makes refine due at its next round. [sources: src/devops_cli/roadmap/run.py:97, src/devops_cli/roadmap/run.py:203-210] - Does this item fit in one pull request?: Yes. The delivery is one PR, size M. (proposed)
- What are the three lane names?: status, triage, and model. [sources: src/devops_cli/config/constants.py:1070-1072]
- What triggers intake in the triage lane?: An
issuesopened or reopened webhook, and the 60-minute poll interval. [sources: src/devops_cli/config/constants.py:1114-1121, src/devops_cli/config/defaults.py:818] - Should fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 land before this item?: Yes, ideally. It consolidates the predicate
_places_critical_or_p0that this item carries across lanes. If this item lands first, fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540's test statement changes from 'same round' to 'the model lane's next round'. (proposed) - Does this item wait on chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562?: No. Under D1, chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds only the rollout check. All code is built and tested offline at 0 replicas. (proposed)
Open questions
- What are the fallbacks for
devops-triageanddevops-background? (missing verified source) - What is the request budget for the model lane? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 9, 2026
The owner chose Argo Workflows as the Service's engine on 2026-10-09 (#1535). The triage lane here maps onto its
roadmap-<repo>-triagemutex. If this item lands first, it extends #1532's thread lanes, and #1535 moves them onto Argo.dan-petty-bot commentedon Oct 10, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The owner explicitly requested it and P0 items currently wait 40+ minutes behind refine calls, but it is an enhancement to an existing working flow rather than a defect.It directly determines how quickly critical (P0/P1) items reach an open release, which is the core purpose of the roadmap pipeline.It touches gateway config, AITasksConfig, lane wiring (building on #1532), placement logic (reusing #882's helper), and event triggers, but each piece is a focused change on existing infrastructure.dan-petty commentedon Oct 11, 2026
Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.
Generated by Claude Code
[-]feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority and an open release within one poll[/-][+]feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll[/+]dan-petty commentedon Oct 26, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
This change affects how P0 and P1 items are prioritized and handled in the roadmap, making it highly impactful.It improves the responsiveness of critical issue handling by ensuring that new P0 or P1 items get their priority within one poll cycle.The implementation involves changes to lane management, cross-lane triggers, and request budgeting, which is a moderate effort.Both items deal with intake and scoped updates, but this item introduces a triage lane while the related item focuses on webhook-driven scoped updates.dan-petty commentedon Oct 27, 2026
Refine cannot set this item to Ready at 9f97c14 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-triageanddevops-background? (missing verified source)chore(main): release 0.23.0 (#2802)