Skip to content

fix(k8s): the ConfigMap template names DeepSeek for analysis #4369

Closed

Description

@dan-petty

Problem

The live ConfigMap devops/devops-cli-config sets ai.tasks.analysis to deepseek-v4.1-flash-1017 with context_window 256000. The template k8s/devops/configmap.example.yaml still sets claude-sonnet-5-5 with context_window 200000. render_active_devops_configmap renders from the template, so the next render puts the Sonnet trial back.

The owner decision of 2026-11-10 is: move analysis back to DeepSeek and try Sonnet later. In the analysis slot, Sonnet costs about 67 USD a week. The live ConfigMap also has an explicit ai.tasks.stage entry (DeepSeek, 256000) that the template does not have.

The repository text that names the Sonnet trial also needs a change: k8s/README.md (Roadmap service, item 19), docs/roadmap/stage.md, and the tests that pin the Sonnet value in the template.

Expected

The template names DeepSeek in the analysis slot with a short comment, names the stage slot as the live ConfigMap does, and the documents and tests agree. A render of the template gives the settings that the live ConfigMap has for the ai.tasks keys.

Acceptance criteria

  1. uv run pytest tests/k8s/test_k8s_configmap.py tests/config/test_k8s_devops_runtime.py tests/roadmap/stage/test_roadmap_stage_window.py passes, and the tests assert deepseek-v4.1-flash-1017 and 256000 for analysis and stage.
  2. grep -n "claude-sonnet-5-5" k8s/devops/configmap.example.yaml prints only the roadmap.implement.ladder lines, which this issue does not change.
  3. The differences between the live ConfigMap and the template that this issue does not change are listed in the pull request comment.

Existing tool considered

No tool is needed: this is an edit of one template and the text that cites it.

Proposed design

Problem statement

The template k8s/devops/configmap.example.yaml names claude-sonnet-5-5 with a 200,000-token window in the analysis slot. The live ConfigMap devops/devops-cli-config names deepseek-v4.1-flash-1017 with 256,000, and it holds an explicit stage slot that the template does not have. render_active_devops_configmap renders from the template, so the next deploy puts the Sonnet trial back. This change makes the template agree with the live ConfigMap for the ai.tasks keys, and it changes the documents and the tests that cite the trial.

Acceptance criteria

Requirement: The analysis slot names DeepSeek

The template k8s/devops/configmap.example.yaml SHALL name deepseek-v4.1-flash-1017 with context_window 256000 in the key ai.tasks.analysis.

Scenario: Render of the analysis slot

  • WHEN a render of the template runs through render_active_devops_configmap
  • THEN Settings.ai.for_task('analysis') gives model deepseek-v4.1-flash-1017 and context_window 256000

Requirement: The stage slot is explicit

The template SHALL hold the key ai.tasks.stage with model deepseek-v4.1-flash-1017 and context_window 256000.

Scenario: Read of the stage entry

  • WHEN a test reads the key ai.tasks of the template and renders it
  • THEN the key stage exists, and ai.for_task('stage') gives model deepseek-v4.1-flash-1017 and context_window 256000

Requirement: The template names Sonnet only in the ladder

The template SHALL name claude-sonnet-5-5 only in the lines of roadmap.implement.ladder.

Scenario: Search of the template for Sonnet

  • WHEN grep -n "claude-sonnet-5-5" k8s/devops/configmap.example.yaml runs
  • THEN every printed line holds ladder

Requirement: The stage page states the new window

docs/roadmap/stage.md SHALL state the context_window of ai.tasks.analysis and the max_input_tokens of its model, with the path of each file.

Scenario: Read of the stage page

  • WHEN test_the_documented_window_of_analysis_and_its_source_are_the_files_values runs
  • THEN the page holds the two numbers that the template and k8s/llm/gateway/config.yaml give, with both paths, and the test passes

Requirement: The README names the DeepSeek slots

Item 19 of k8s/README.md SHALL name deepseek-v4.1-flash-1017 with context_window 256,000 for the slots analysis and stage.

Scenario: Search of the README for the Sonnet trial

  • WHEN a search of k8s/README.md for claude-sonnet-5-5 runs
  • THEN no match states that claude-sonnet-5-5 serves the slot analysis, and item 19 names the DeepSeek model with 256,000 for analysis and stage

Requirement: The tests pin the DeepSeek slots

The tests SHALL assert deepseek-v4.1-flash-1017 and 256000 for the slots analysis and stage.

Scenario: Run of the three test modules

  • WHEN uv run pytest tests/k8s/test_k8s_configmap.py tests/config/test_k8s_devops_runtime.py tests/roadmap/stage/test_roadmap_stage_window.py runs
  • THEN every test passes, and the chat-slot test expects no slot but embedding to name another model

Existing Tool Considered

No alternatives check has run on this issue. No open tool or library covers the need, because the change edits one ConfigMap template and the text that cites it. The change builds no code, so the written cost of building it is zero tokens and zero elapsed time.

Key questions

  • Which model and context window does the analysis slot of the template name?: The template names deepseek-v4.1-flash-1017 with context_window 256000, by the owner decision of 2026-11-10. (best practice) [sources: k8s/devops/configmap.example.yaml, k8s/README.md, docs/roadmap/stage.md]
    • Rejected: Keep claude-sonnet-5-5 with 200000. The analysis slot costs about 67 USD a week on Sonnet, and the owner decision of 2026-11-10 moves analysis back to DeepSeek.
    • Chosen: Name deepseek-v4.1-flash-1017 with 256000. This is the value of the live ConfigMap, and 256,000 tokens is the smallest window that an fp8 provider of the DeepSeek group offers.
  • Does the template name ai.tasks.stage as an explicit entry?: Yes. The template adds ai.tasks.stage with deepseek-v4.1-flash-1017 and context_window 256000, as the live ConfigMap has it. (best practice) [sources: docs/roadmap/stage.md, k8s/devops/configmap.example.yaml]
    • Rejected: Let stage take its fields from analysis. A later change of analysis then moves the window of the stage job, and the live ConfigMap already sets the entry.
    • Chosen: Write an explicit stage entry. The stage job keeps its window when analysis changes, and the template matches the live ConfigMap.
  • Which files name the Sonnet trial and change with this issue?: k8s/devops/configmap.example.yaml, k8s/README.md item 19, docs/roadmap/stage.md, tests/k8s/test_k8s_configmap.py, tests/config/test_k8s_devops_runtime.py and tests/roadmap/stage/test_roadmap_stage_window.py. [sources: k8s/devops/configmap.example.yaml, k8s/README.md, docs/roadmap/stage.md, tests/k8s/test_k8s_configmap.py, tests/config/test_k8s_devops_runtime.py, tests/roadmap/stage/test_roadmap_stage_window.py]
  • Does a window of 256,000 tokens leave the plan run enough room for its tools?: Yes. At 65,536 tokens the tools ended after 4 to 6 calls, and the model wrote a placeholder. At 262,144 tokens a run made 40 calls and staged the item. 256,000 is above the minimum of 8 tool calls. [sources: docs/roadmap/stage.md, tests/roadmap/stage/test_roadmap_stage_window.py]
  • Which max_input_tokens does the gateway config give the model of analysis after the change?: The DeepSeek group allows 1,048,576 input tokens, so the test constant and the stage page state that number. [sources: k8s/llm/gateway/config.yaml, k8s/README.md]
  • Which lines of the template still name claude-sonnet-5-5 after the change?: Only the roadmap.implement.ladder lines for edit and repair. This issue changes neither. [sources: k8s/devops/configmap.example.yaml]
  • Does the render need a code change?: No. render_active_devops_configmap renders the template as it is, so the template edit reaches the ConfigMap. [sources: src/devops_cli/k8s/configmap.py, tests/k8s/test_k8s_configmap.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 10, 2026
  2. dan-petty commented on Nov 10, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. The next render reverts to the wrong model and costs 67 USD per week, but nothing is broken today.
    • Value: Medium. Prevents an unwanted model swap on the next deploy and aligns the template with the owner decision.
    • Effort: Low. Edit one template file, two docs, and a few test assertions; no new tool or service is needed.
    • Related: fix(k8s): the ConfigMap template names Sonnet for analysis #4208, which asks for a different change. Both edit the analysis slot in k8s/devops/configmap.example.yaml, but 4208 set Sonnet and this candidate sets DeepSeek.
  3. added
    priority/p2-medium
    owner/agent
    on Nov 10, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 120ae85 (see proposed design in issue body).

    Moved to new items: #4375.

  6. added
    status/in-progress
    and removed
    status/ready
    on Nov 10, 2026
  7. removed
    status/in-progress
    owner/agent
    on Nov 10, 2026
  8. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-10 14:35 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/k8ssource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions