Skip to content

feat(k8s): Name one chat model for every slot of the Service - #3891

Merged
dan-petty merged 3 commits into
mainfrom
feat/3874-one-model-for-service
Nov 7, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3874-one-model-for-service

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

#3874: the in-cluster config of the Service sent model calls to four groups: DeepSeek for analysis and implement, claude-sonnet-5-5 for verification, and the local aliases devops-background and devops-triage for chat, triage and ai.model. A mix of models makes a failure hard to read. By the owner decision of 2026-11-07, the template now names deepseek-v4.1-flash-1017 for every chat slot until most steps work most of the time. The embedding slot stays qwen3-embedding:0.6b. The prompts of intake and chat now leave the cluster to OpenRouter too, so SECURITY.md rule 13 and k8s/README.md say so. A test renders the template and checks each slot.

Closes #3874

Change: openspec/changes/archive/2026-11-07-3874-one-model-for-service/

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for #3874.

Checks run before the push

  • Full uv run devops ci on the code before the rebase: every gate passed (test, coverage, lint, format, typecheck, security, docs, openspec, k8s, and the others). The test gate took 15m 35s on a shared host that ran other CI jobs; this is the known slow test row (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593). The rebase onto origin/main changed only k8s/README.md and unrelated files, and I did not run the full CI again after it.
  • New test: tests/k8s/test_k8s_configmap.py::test_every_chat_model_slot_of_the_rendered_template_names_one_hosted_group. On the base template it failed with ai.model = devops-background. With the change it passes. I ran no fail-to-pass command, because this is a feature and not a fix.

This change does not fix the placeholder replies of the stage job
The deployed Service already runs stage, refine and alternatives on DeepSeek through the task analysis: the task stage takes its fields from analysis (_TASK_PARENTS in src/devops_cli/config/settings.py). So the replies x and placeholder do not come from a local alias, and this change does not change them. It changes the models of ai.model, verification, chat and triage only.

ai.max_retries stays 1
The old comment said the background tier serves one request at a time. That does not hold for the hosted group. The gateway retries a failed call of the group up to 5 times (router_settings.num_retries in k8s/llm/gateway/config.yaml, no override on the deployment), and OpenRouter bills the calls. No measure of hosted failures exists, so I did not change the value. The comment and k8s/README.md state the new reason. A person can decide a different value after the Service runs on the group.

Dry run of deploy-stack --stack devops
uv run devops k8s deploy-stack --stack devops --dry-run exits 0. It lists the manifests and the line devops/devops-cli-config (rendered from the active config). It does not print the content of the ConfigMap, so it shows no diff. Its output also holds the cluster context and Secret key names of the active config, so I do not paste it. Nothing was applied to the cluster. The diff below is of the ConfigMap that render_active_devops_configmap renders for example repositories (the function that deploy-stack calls), from origin/main against this branch:

-      model: devops-background
+      model: deepseek-v4.1-flash-1017
       max_retries: 1
...
         verification:
-          model: claude-sonnet-5-5
+          model: deepseek-v4.1-flash-1017
         chat:
-          model: devops-background
+          model: deepseek-v4.1-flash-1017
         embedding:
           model: qwen3-embedding:0.6b
         triage:
-          model: devops-triage
+          model: deepseek-v4.1-flash-1017

Data that leaves the cluster (SECURITY.md rule 13)
The prompts of triage and chat hold the titles and bodies of issues of the repositories of the Service. These repositories are public today. The gateway group asks OpenRouter for providers that do not store or train on prompts. claude-sonnet-5-5 no longer serves any slot of the Service. SECURITY.md, k8s/README.md (LLM Gateway and Roadmap service items 17 and 19) and CONTEXT.md now match the template.

A person must do

  • Apply the ConfigMap (devops k8s deploy-stack --stack devops) and restart roadmap-service. The ConfigMap is not under Argo CD.
  • Decide ai.max_retries for the hosted group after a measure of failures.

@dan-petty

Copy link
Copy Markdown
Owner Author

Checks status: all checks pass except Service Image and Runner Image. Both fail at the Trivy scan: golang.org/x/net v0.60.0 in the pinned gh binary (CVE-2026-78661, HIGH). Open issue #3881 covers it. This PR changes no image input, so I keep it as a draft and do not mark it ready until #3881 is fixed and the checks pass.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 04:24
@dan-petty
dan-petty merged commit 4189c93 into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3874-one-model-for-service branch November 7, 2026 04:24
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.77.0](v0.76.2...v0.77.0)
(2026-11-07)


### Features

* **ai:** web search falls back to DuckDuckGo
([#3900](#3900))
([61b5c43](61b5c43))
* **k8s:** add warnings and errors above logs, narrow both by pod
([#3886](#3886))
([6d105c2](6d105c2))
* **k8s:** Name one chat model for every slot of the Service
([#3891](#3891))
([4189c93](4189c93))
* **rag:** index managed repos and exclude private from search
([#3895](#3895))
([3cd4eba](3cd4eba)),
closes [#1389](#1389)


### Bug Fixes

* **roadmap:** name the reason of a failed intake write
([#3879](#3879))
([a341524](a341524))
* **roadmap:** reset a head that the agent moved
([#3883](#3883))
([0ff477f](0ff477f)),
closes [#3575](#3575)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): the Service uses one model for every chat slot

1 participant