Repository navigation
Description
Problem or Motivation
The group and split rows must run on a schedule with no coordinator (owner requirement of 2026-11-11, #4780). No template runs them.
Proposed Solution & Architectural Design
- WorkflowTemplate and CronWorkflow
roadmap-group:schedules: ['45 3 * * *']UTC, semaphoretriage,activeDeadlineSeconds: 1800, no clone. - WorkflowTemplate and CronWorkflow
roadmap-split:schedules: ['30 */6 * * *']UTC, semaphoresteward,activeDeadlineSeconds: 3000, a clone for the OpenSpec folders. - Both:
concurrencyPolicy: Forbid, a mutex for each row,retryStrategyfor exit code 75 only, the ADR 0022 labels, and no token in the main container. - ConfigMap keys
roadmap.group.*androadmap.split.*. groupuses plan mode for its first 2 runs.splituses plan mode for 2 weeks.
Target Subsystem
Kubernetes manifests (k8s/devops/).
Existing Tool Considered
Argo Workflows CronWorkflows and synchronization (installed). Cost to build: about 60,000 tokens and 1.5 hours.
Acceptance Criteria
- The kustomize render holds the objects.
- A server-side dry run passes.
- The first runs in plan mode write only to Loki.
Dependencies
- docs(adr): add the resolve, group, split and step rows #4792
- feat(roadmap): the group row links a family and closes on a re-check #4813
- feat(roadmap): the split row files the parts of a stalled item #4819
- feat(k8s): let Argo Workflows run roadmap pods in devops #4566
- feat(roadmap): label Service Jobs by repository and item #4558
Source: #4780
Owner decision 2026-11-13
Group, split and resolve use the semaphore steward 1. The CronWorkflow schedules stay as ADR 0021 states. Source: tracker #5482.
- Live proof: after the merge, each schedule runs one time as the App. A comment gives the result lines.
Alternatives check of 2026-12-01: in-use.
The repository already uses this tool.
Tool: Argo Workflows (https://github.com/argoproj/argo-workflows), Apache-2.0, last activity 2026-12-01, maintained.
Reason: Argo Workflows CronWorkflows, already the tool that the issue names, give UTC schedules, semaphore and mutex locks, Forbid concurrency, deadlines and exit-code retry; the other items are project configuration on top of it.
Covers:
- CronWorkflow UTC schedules with concurrencyPolicy Forbid
- Semaphore and mutex synchronization of runs
- retryStrategy expression on an exit code
- activeDeadlineSeconds per template
- WorkflowTemplate referenced from a CronWorkflow
Lacks:
- ConfigMap plan-mode keys and environment variables
- Clone step for the OpenSpec folders
- ADR 0022 label set on the rendered objects
- Semaphore name and limit are project settings
Proposed design
Problem statement
The split roadmap row has no scheduled runner. The reply of 2026-12-01 closes #4813 as not planned, so this change covers the split row only. This change adds an Argo WorkflowTemplate and CronWorkflow roadmap-split. The row uses the steward semaphore, a row mutex, a 3000-second deadline, an exit-75 retry and a plan-mode key. The main container has no Kubernetes token.
Acceptance criteria
Requirement: Split schedule objects
The kustomize render of k8s/devops SHALL hold a WorkflowTemplate and a CronWorkflow named roadmap-split, and the CronWorkflow SHALL use the UTC schedule 30 */6 * * *.
Scenario: The k8s check renders the split objects
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds theroadmap-splitobjects. - THEN The k8s check passes and reports no error for the render that holds the
roadmap-splitWorkflowTemplate and CronWorkflow with the schedule30 */6 * * *.
Requirement: Split clone step
The roadmap-split WorkflowTemplate MUST hold a clone step that checks out the repository for the OpenSpec folders before the main step.
Scenario: The k8s check renders the clone step
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds theroadmap-splittemplate. - THEN The k8s check passes and reports no error for the template that holds the clone step before the main step.
Requirement: Steward semaphore
The roadmap-split CronWorkflow MUST use the semaphore steward with a limit of 1 and MUST NOT use the semaphore triage.
Scenario: The k8s check renders the semaphore
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds theroadmap-splitobjects. - THEN The k8s check passes and reports no error for the CronWorkflow that holds the
stewardentry of value1and notriageentry.
Requirement: Row concurrency
The roadmap-split CronWorkflow MUST set concurrencyPolicy: Forbid and a mutex named split.
Scenario: The k8s check renders the concurrency policy
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds theroadmap-splitobjects. - THEN The k8s check passes and reports no error for the CronWorkflow that holds
concurrencyPolicy: Forbidand the mutexsplit.
Requirement: Retry and deadline
The roadmap-split WorkflowTemplate MUST set activeDeadlineSeconds: 3000 and a retryStrategy expression that retries exit code 75 only.
Scenario: The k8s check renders the retry policy
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds theroadmap-splittemplate. - THEN The k8s check passes and reports no error for the template that holds
activeDeadlineSeconds: 3000and the expressionlastRetry.exitCode == 75.
Requirement: Plan-mode configuration
The roadmap-limits ConfigMap SHALL hold the key roadmap.split.plan_until as an RFC 3339 timestamp, and the roadmap-split WorkflowTemplate MUST read it as the environment variable ROADMAP_SPLIT_PLAN_UNTIL.
Scenario: The k8s check renders the plan-mode key
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds the ConfigMap key and the template. - THEN The k8s check passes and reports no error for the ConfigMap key
roadmap.split.plan_untiland the environment variableROADMAP_SPLIT_PLAN_UNTILin theroadmap-splittemplate.
Requirement: No main-container token
The main container of the roadmap-split workflow MUST run with no Kubernetes API token.
Scenario: The k8s check renders the token mount
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds theroadmap-splittemplate. - THEN The k8s check passes and reports no error for the template that holds
automountServiceAccountToken: falseand noserviceAccountTokenvolume mount in the main container.
Requirement: ADR 0022 labels
Each rendered roadmap-split WorkflowTemplate and CronWorkflow MUST carry the label set that ADR 0022 names.
Scenario: The k8s check renders the labels
- WHEN The command
uv run devops ci --check --only k8sruns on the branch that holds theroadmap-splitobjects. - THEN The k8s check passes and reports no error for the two objects that carry the ADR 0022 label set.
Requirement: Server-side dry run
The rendered roadmap-split objects MUST pass a server-side dry run.
Scenario: Dry-run the rendered objects
- WHEN The command
kustomize build k8s/devops | kubectl apply --dry-run=server -f -runs against the cluster. - THEN The command exits 0 and reports no error.
Requirement: Pending a person after the merge
After the merge, the roadmap-split schedule SHALL run one time as the App and write only to Loki while plan mode is active.
Scenario: Live proof of the first scheduled run
- WHEN After the merge, a person reads the Loki lines for the first run of the
roadmap-splitschedule. - THEN The run happened one time as the App, and the result line shows plan mode and no write outside Loki.
Existing Tool Considered
Argo Workflows (argoproj/argo-workflows, Apache-2.0, maintained) has the verdict in-use; the alternatives check of 2026-12-01 in the issue body gives that result and lists what the tool covers and lacks. The proposal adds what the tool lacks: the roadmap-limits ConfigMap key roadmap.split.plan_until with the environment variable ROADMAP_SPLIT_PLAN_UNTIL, the clone step for the OpenSpec folders, and the ADR 0022 label set on the rendered objects. The semaphore name and limit are project settings: steward 1.
Key questions
- Which semaphore and limit does the split row use?: The split row uses the semaphore
stewardwith a limit of 1. The owner decision of 2026-11-13 sets this limit and overrides thetriagesemaphore in the proposed solution. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: steward 1. The owner decision of 2026-11-13 and ADR 0021 put the split row on the one-slot steward semaphore.
- Rejected: triage 2. The proposed solution predates the owner decision, which moves the split row to steward.
- Which schedule does the split CronWorkflow use?: The split CronWorkflow uses the schedule
30 */6 * * *in UTC. The owner decision of 2026-11-13 keeps the CronWorkflow schedules that ADR 0021 states. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen:
30 */6 * * *UTC. The proposed solution gives this schedule, and the owner decision keeps the schedules that ADR 0021 states. - Rejected: A new schedule. The owner decision rejects a change of the schedules.
- Chosen:
- Which retry policy and deadline does the split row use?: The template retries exit code 75 only and sets
activeDeadlineSeconds: 3000. (best practice) [sources: docs/guidelines/agentic-jobs.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]- Chosen: Exit 75 only. The guideline and ADR 0023 state that a step exits 75 for a later retry and that retryStrategy names the exit code.
- Rejected: Retry all failures. It repeats permanent failures and hides defects.
- How does the split workflow read its plan-mode key?: The
roadmap-limitsConfigMap holds the keyroadmap.split.plan_untilas an RFC 3339 timestamp, set to 14 days after the date of the delivery commit. The split WorkflowTemplate reads the key as the environment variableROADMAP_SPLIT_PLAN_UNTIL, and the entry command runs in plan mode while that time is in the future. The main container gets no API token, so no plan-gate step is needed. (best practice) [sources: CONTEXT.md, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md]- Chosen: ConfigMap key and environment variable. It keeps the plan window in configuration and needs no API token and no new step.
- Rejected: Plan-gate step that patches the ConfigMap. It needs a Kubernetes API token and code outside the manifest change.
- Rejected: Hard-coded date in the template. It needs a manifest edit to end plan mode.
- Which dependencies stay open?: feat(roadmap): the group row links a family and closes on a re-check #4813 is closed as not planned, so its dependency ends. feat(k8s): let Argo Workflows run roadmap pods in devops #4566 and docs(adr): add the resolve, group, split and step rows #4792 are delivered, because their change folders are archived. The item keeps the other dependencies that its Dependencies section lists: feat(roadmap): the split row files the parts of a stalled item #4819 and feat(roadmap): label Service Jobs by repository and item #4558. [sources: openspec/changes/archive/2026-11-30-4566-argo-roadmap-pods/proposal.md, openspec/changes/archive/2026-11-12-4792-add-the-resolve-group-split-and/design.md]
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 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.(k8s)scope of the title gives the scope.It is a planned automation with open dependencies and no user-facing outage.It automates two roadmap rows but they are not the most critical lanes.Two CronWorkflows with semaphores, plan mode, and ConfigMap keys; the body estimates 1.5 hours.Both define Argo Workflows in the devops namespace, but #4566 fixes the controller and image plumbing while the candidate adds two specific CronWorkflows.devops-cli-service commentedon Nov 14, 2026
Alternatives check: in-use
Reason: The issue's own "Existing Tool Considered" names Argo Workflows CronWorkflows and its synchronization, which are installed, and the engine's CronWorkflow, semaphore/mutex and concurrencyPolicy features match every requirement in the body; no ADR rejects it (ADR 0008 and ADR 0021 chose Argo Workflows for the roadmap's scheduled work). Only the project-specific plan-mode gating and ConfigMap keys are left to write on top of it.
The repository already uses this tool.
Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows)
Covers:
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at e5dfddb 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 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
dan-petty commentedon Dec 1, 2026
Scope change of 2026-12-01: #4813 (the
grouprow) is closed as not planned, with #4812 and #5815. So this item covers thesplitrow only. Do not add theroadmap-groupWorkflowTemplate, its CronWorkflow or theroadmap.group.*keys. The dependency on #4813 ends. The other dependencies stay.devops-cli-service commentedon Dec 1, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.