Repository navigation
Description
Split from #4403.
Problem
The pull request adds deepseek-v4.1-flash-1017:floor to ai.price_overrides in k8s/devops/configmap.example.yaml, but the live ConfigMap devops/devops-cli-config is not under Argo CD and is patched by hand (k8s/README.md:703). Until the live ConfigMap holds the entry, the Service keeps recording DeepSeek spend at $0.
Why this part is deferred
A pull request cannot change the live cluster; a person with cluster access applies the entry and restarts the deployment.
Acceptance criteria
- The live ConfigMap
devops/devops-cli-configholds, underai.price_overrides, these lines:
deepseek-v4.1-flash-1017:floor:
prompt_usd_per_million: 0.05
completion_usd_per_million: 0.192
- The person runs
kubectl -n devops rollout restart deployment/roadmap-service. - After the restart, a DeepSeek call through the gateway adds a non-zero cost to
devops_cli_ai_spend_usd_total{model="deepseek-v4.1-flash-1017"}anddevops ai costshows it.
Proposed design
Problem statement
The live ConfigMap devops/devops-cli-config does not hold the DeepSeek floor price under ai.price_overrides. A pull request adds the entry to k8s/devops/configmap.example.yaml, but the live ConfigMap is not under Argo CD and a person patches it by hand. The Service records DeepSeek spend at $0 until the live entry is there. A pull request cannot change the live cluster.
Acceptance criteria
Requirement: Live ConfigMap holds the DeepSeek price
The live ConfigMap devops/devops-cli-config MUST hold the deepseek-v4.1-flash-1017:floor entry under ai.price_overrides, with prompt_usd_per_million 0.05 and completion_usd_per_million 0.192.
Scenario: Read the patched ConfigMap
- WHEN a person runs
kubectl -n devops get configmap devops-cli-config -o yamlafter the patch - THEN the output holds the
deepseek-v4.1-flash-1017:floorentry with both prices.
Requirement: Deployment restarts after the patch
The deployment roadmap-service MUST restart after the ConfigMap patch.
Scenario: Watch the rollout
- WHEN the person runs
kubectl -n devops rollout restart deployment/roadmap-service - THEN
kubectl -n devops rollout status deployment/roadmap-servicereports the rollout complete.
Requirement: DeepSeek spend is non-zero
A DeepSeek call through the gateway MUST add a non-zero cost to devops_cli_ai_spend_usd_total{model="deepseek-v4.1-flash-1017"}.
Scenario: Check the spend after a call
- WHEN a DeepSeek call goes through the gateway after the restart
- THEN the metric increases and
devops ai costshows the cost.
Existing Tool Considered
No alternatives check has run. kubectl covers the need: kubectl -n devops patch configmap devops-cli-config writes the DeepSeek entry, and kubectl -n devops rollout restart deployment/roadmap-service restarts the deployment. It lacks nothing for this task. genai-prices does not know deepseek-v4.1-flash-1017:floor, so the price lives in ai.price_overrides.
Key questions
- Does the deployed image accept the
ai.price_overrideskey?: Only an image at feat(ai): a setting holds the price of a reference model #4242 or newer. The README saysai.price_overridesis a declared key of theaisection, and an image older than feat(ai): a setting holds the price of a reference model #4242 refuses the key and does not start. Apply the key after the new image runs or at the same time. [sources: k8s/README.md] - Which commands patch the live ConfigMap and restart the deployment?:
kubectl -n devops patch configmap devops-cli-configwrites the entry, andkubectl -n devops rollout restart deployment/roadmap-servicerestarts the deployment. The CronJobs read the ConfigMap at each run. [sources: k8s/README.md] - Should the live ConfigMap move under Argo CD instead of the hand patch?: Keep the hand patch for this issue. The README says the ConfigMap is not under Argo CD. Moving it under Argo CD is a separate change that needs its own issue. (best practice) [sources: k8s/README.md]
- Chosen: Hand patch with kubectl. The README documents this procedure, and the issue's scope is the live entry only.
- Rejected: Move the ConfigMap under Argo CD. This is a separate change that needs its own issue and plan.
Fit
Fits in one pull request.
Suspected block
A person with cluster access must patch devops/devops-cli-config and restart deployment/roadmap-service.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 10, 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.The spend counter records DeepSeek cost as zero until a person applies the entry.Correct DeepSeek cost data improves spend reports and alerts, but no user-facing feature changes.A person adds three lines to one ConfigMap and restarts one deployment.Both items price deepseek-v4.1-flash-1017, but #4403 edits the repository price table and the candidate applies the entry to the live ConfigMap.devops-cli-service commentedon Nov 10, 2026
Refine cannot set this item to Ready at 1ca0133 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/devops-cli-configand restartdeployment/roadmap-service.dan-petty commentedon Nov 11, 2026
#4454 (for #4403) replaces this item. Do not apply these lines to the live ConfigMap.
deepseek-v4.1-flash-1017in the code (_HOSTED_GROUP_PRICESinsrc/devops_cli/ai/spend/pricing.py), under the route name and the deployment model. Every process (Service, runner Jobs, workstation) records it with no hand step.ai.price_overridesentry wins over the built-in price. The rates in this item (0.05 and 0.192 USD per million tokens) differ from the cost that the gateway recorded from OpenRouter from 2026-11-08 to 2026-11-11 by 20% to 117%, and they have no cached input rate. 94% of the prompt tokens of the group come from the cache.deepseek-v4.1-flash-1017:floordoes not match the 2,469agent_runrows of the ledger, which name the route namedeepseek-v4.1-flash-1017.devops/devops-cli-configholds no DeepSeek entry, so it needs no change.I close this item as not planned.