Repository navigation
Description
Split from #3880.
Problem: The deployed ConfigMap still sets ai.tasks.analysis.context_window to 65536, so the stage job fails every item because the window ends the planner tools. Argo CD does not apply ConfigMap devops-cli-config (k8s/README.md:754). Why deferred: Only a person with cluster access can run devops k8s deploy-stack --stack devops and restart the pod, and the repository change cannot do it. Acceptance criteria: The deployed ConfigMap sets ai.tasks.analysis.context_window and ai.tasks.verification.context_window to 256000. The stage job stages item 3224 with the model deepseek-v4.1-flash-1017 and reports the plan run with no placeholder fault. The job record of item 3224 holds no stage.failed_error.
Proposed design
Problem statement
The live ConfigMap devops-cli-config in namespace devops sets the stage planner window to 65,536 tokens, so the stage job fails each item. The repository template k8s/devops/configmap.example.yaml already sets 256,000 tokens on tasks stage and stage_review. A person with cluster access must apply the current ConfigMap and restart the devops-cli pod. The stage job must then stage item 3224 with no stage.failed_error.
Acceptance criteria
Requirement: Live stage planner window
The deployed ConfigMap devops-cli-config SHALL set context_window: 256000 on the tasks stage and stage_review.
Scenario: Read the live ConfigMap after the apply
- WHEN A person runs
kubectl -n devops get configmap devops-cli-config -o jsonpath='{.data.devops-cli\.yaml}'afterdevops k8s deploy-stack --stack devops. The person then restarts the devops-cli Deployment. - THEN The output holds
context_window: 256000undertasks:stageand undertasks:stage_review. Neither task holdscontext_window: 65536.
Requirement: No stale task keys
The deployed ConfigMap MUST hold no analysis: task and no verification: task under tasks:.
Scenario: Read the live ConfigMap for stale task names
- WHEN A person runs the same
kubectlcommand after the apply. - THEN The output holds no
analysis:task and noverification:task undertasks:.
Requirement: Stage run of item 3224
The stage job SHALL stage item 3224 with the model openrouter/deepseek/deepseek-v4.1-flash-1017 and record no stage.failed_error.
Scenario: Read the job record of item 3224 after the stage run
- WHEN The stage job stages item 3224 after the pod restart. A person then runs
gh issue view 3224 --comments. - THEN The job record names the model
openrouter/deepseek/deepseek-v4.1-flash-1017and holds the tool calls and token counts of a plan run. It holds nostage.failed_errorkey, and the plan holds no placeholder text.
Requirement: Pending a person after the merge
A person with cluster access SHALL run devops k8s deploy-stack --stack devops and restart the devops-cli Deployment after the plan merges.
Scenario: Apply the live ConfigMap and restart the pod
- WHEN The plan pull request merges.
- THEN The live ConfigMap shows
context_window: 256000onstageandstage_review. It holds noanalysis:task and noverification:task.
Existing Tool Considered
No alternatives check has run. kubectl is the open, maintained tool that applies a ConfigMap and restarts a Deployment. It lacks cluster credentials in the roadmap runner, so a person with cluster access runs it. The change builds no code of its own, so the written cost is zero tokens and zero elapsed time.
Key questions
- Which task names hold the stage planner context window in the devops ConfigMap template, and what value do they set?:
ai.tasks.stageandai.tasks.stage_revieweach setcontext_window: 256000. The template holds noai.tasks.analysistask and noai.tasks.verificationtask, so the task names in the issue body are stale. [sources: k8s/devops/configmap.example.yaml] - Which context window must the stage planner use?: 256000 tokens. The template sets it for
stageandstage_review. A plan run needs about 38,000 tokens for its first request and 1.5 million input tokens in 23 requests, and the run ends its tools at three quarters of the window. (best practice) [sources: k8s/devops/configmap.example.yaml]- Chosen: 256000. The template sets it for
stageandstage_review. The template records that a plan run needs about 38,000 tokens for its first request and 1.5 million input tokens in 23 requests. - Rejected: 65536. The tools ended after 2 or 3 requests, and the model answered with a placeholder (fix(roadmap): the stage job fails when the window starves the planner #3880).
- Rejected: 131072. No evidence shows that this value holds the planner tools and the step inputs.
- Chosen: 256000. The template sets it for
- Which model does the stage task use?:
openrouter/deepseek/deepseek-v4.1-flash-1017, in the gateway groupdeepseek-v4.1-flash-1017. [sources: k8s/devops/configmap.example.yaml] - Does Argo CD apply ConfigMap
devops-cli-config?: No.k8s/README.mdrecords that Argo CD does not apply ConfigMapdevops-cli-config, so a person must apply it. [sources: k8s/README.md:754] - Can the roadmap runner apply the ConfigMap and restart the pod?: No. The runner pod holds no Kubernetes token, so the job cannot reach the API server. [sources: CONTEXT.md]
Fit
Fits in one pull request.
Suspected block
Cluster access: a person with cluster access must apply the current ConfigMap and restart the devops-cli pod.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
choreprefix of the title gives the type.(k8s)scope of the title gives the scope.It unblocks the stage job but is a one-time operational command, not a code change.Applying the correct window stops the stage job from failing every item.It requires one deploy-stack command and a pod restart by a person with cluster access.Both address the stage job failing due to a small context window; #3880 is the umbrella fix and the candidate is the cluster deployment step split from it.devops-cli-service commentedon Nov 7, 2026
Refine cannot set this item to Ready at b659660 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.
dan-petty commentedon Nov 14, 2026
Only the person step remains. The repository ConfigMap already sets 256000: k8s/devops/configmap.example.yaml:72 analysis, :78 stage, :85 implement, :93 verification. The acceptance needs the deployed ConfigMap, which Argo CD does not apply (k8s/README.md), so a person with cluster access must run Pushing cluster Secrets from the keyring...
cloudflared/cloudflared-token: token (keyring cloudflare_tunnel_token) unchanged; restarted: none
devops/crawl4ai: CRAWL4AI_API_TOKEN (keyring crawl4ai_api_token) unchanged; restarted: none
devops/searxng: SEARXNG_SECRET (keyring searxng_secret_key) unchanged; restarted: none
devops/mcp-server: DEVOPS_CLI_MCP_TOKEN (keyring mcp_token) unchanged; restarted: none
devops/devops-cli: DEVOPS_CLI_SERVICE_GITHUB_APP_PRIVATE_KEY (keyring service_github_app_private_key) unchanged, DEVOPS_CLI_AI_API_KEY (keyring llm_gateway_master_key) unchanged, DEVOPS_CLI_SERVICE_WEBHOOK_SECRETS (keyring service_webhook_secrets) unchanged, DEVOPS_CLI_FIRECRAWL_API_KEY (keyring firecrawl_api_key) unchanged, DEVOPS_CLI_VALKEY_PASSWORD (keyring valkey_devops_password) unchanged, DEVOPS_CLI_MATTERMOST_COMMAND_TOKEN (keyring mattermost_command_token) unchanged, DEVOPS_CLI_CRAWL4AI_API_TOKEN (keyring crawl4ai_api_token) unchanged, DEVOPS_CLI_MCP_STAGE_TOKEN (keyring mcp_token) unchanged, DEVOPS_CLI_MCP_IMPLEMENT_TOKEN (keyring mcp_token) unchanged; restarted: none
devops/roadmap-service-llm-key: api-key (keyring roadmap_service_llm_key) skipped; restarted: none
devops/roadmap-service-llm-key api-key: keyring roadmap_service_llm_key is empty and devops/roadmap-service-llm-key api-key holds no value; store it with
devops config set roadmap_service.llm_keydevops/qdrant-api-key: api-key (keyring qdrant_api_key) created; restarted: none
✓ ConfigMap devops-cli-config applied from the active config
✓ Argo CD Application 'devops' renders the configured hosts
✓ Argo CD Application 'ingress' renders the configured hosts
Argo CD manages the cluster (Application 'cluster' found in namespace 'argocd'). Skipping manifest and Helm deployment; see GitOps in k8s/README.md., restart the pod, and record the live stage run of item 3224 with no stage.failed_error. An agent session cannot deploy to the cluster or record that run; the repository value is in place.
devops-cli-service commentedon Nov 14, 2026
Owner question: Who applies the new values to the cluster and records the live stage run? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 14, 2026
Owner question: Who applies the values to the cluster and records the live stage run? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/devops/configmap.example.yaml,k8s/devops/cronjob-runner.yaml.devops-cli-service commentedon Nov 15, 2026
Owner question: Who applies the values to the cluster and records the live stage run? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 20, 2026
Owner question: See the first point of Open questions and Watched files in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 21, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence