Repository navigation
Description
Problem or Motivation
The change for #4397 adds the setting ai.decision_model. With it empty, no decision point sends a request, so the verify screen stage.verify_screen records nothing in the mode shadow. AIConfig refuses a key that it does not know (extra="forbid"). So k8s/devops/configmap.example.yaml cannot hold ai.decision_model before the image of #4397 runs in the cluster: an older image, or a runner Job of an older image, fails to load the ConfigMap. A person adds the key to the live ConfigMap by hand after the image runs. But devops k8s deploy-stack --stack devops renders the ConfigMap from the template, so the next run of deploy-stack removes the key, and the screen stops again with no error.
Proposed Solution & Architectural Design
After the image of #4397 runs in roadmap-service and in the runner Jobs, add decision_model: typesafe/jev-1.14 under ai in k8s/devops/configmap.example.yaml, and remove the sentence of the template comment that says the key must wait for the image. tests/k8s/test_k8s_configmap_keys.py then checks the key. Start this item only when kubectl -n devops exec deploy/roadmap-service -- devops config get ai.decision_model prints an empty value and no error.
Target Subsystem
Kubernetes manifests (k8s/devops/configmap.example.yaml).
Existing Tool Considered
No tool is needed. The change is one line of the template and one comment.
Standards Compliance
- I confirm this proposal aligns with AGENTS.md engineering principles (cyclomatic complexity <= 10, nesting <= 5, zero bare exceptions, tests that cover the changed lines).
- I am willing to submit a pull request implementing this feature with accompanying tests.
Proposed design
Problem statement
The example ConfigMap k8s/devops/configmap.example.yaml does not name ai.decision_model. AIConfig refuses a key that it does not declare, so the template cannot hold the key before the image of #4397 runs in the cluster. An older image then fails to load the ConfigMap. A hand edit of the live ConfigMap is lost at the next run of devops k8s deploy-stack. The verify screen stage.verify_screen then records nothing in the mode shadow, with no error.
Acceptance criteria
Requirement: Decision model in the example ConfigMap
The example ConfigMap MUST set ai.decision_model to typesafe/jev-1.14.
Scenario: A render names the decision model
- WHEN
render_active_devops_configmaprendersk8s/devops/configmap.example.yaml - THEN the
aisection holdsdecision_modelwith the valuetypesafe/jev-1.14.
Requirement: The example loads with the new key
Every key of the rendered example ConfigMap SHALL load into Settings with no unknown key.
Scenario: The key check passes
- WHEN
tests/k8s/test_k8s_configmap_keys.pyruns on the example ConfigMap with the field of feat(roadmap): a decision-point registry with a resolver chain #4397 in place - THEN
Settings.model_validate(config)succeeds andunknown_setting_keys(config)returns[].
Requirement: The Jev pilots stay off
The change MUST leave roadmap.stage.jev_screen and roadmap.intake.jev at off.
Scenario: A render keeps the pilots off
- WHEN the rendered example ConfigMap is read
- THEN
roadmap.stage.jev_screenisoffandroadmap.intake.jevisoff.
Existing Tool Considered
No check has run. No tool is needed. The change is one key in k8s/devops/configmap.example.yaml, and the test tests/k8s/test_k8s_configmap_keys.py checks the rendered key against Settings. The change builds no code, so the cost to build, keep and fix code is zero tokens and zero elapsed time.
Key questions
- Does
AIConfigrefuse a key that it does not declare, so the example ConfigMap cannot holdai.decision_modelbefore the image that declares it runs?: Yes.AIConfigsetsextra="forbid", so an image that does not declare the key fails to load the ConfigMap. ADR 0020 states thatai.decision_modelmust wait for the image that knows it. [sources: src/devops_cli/config/settings.py, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:101] - Which value does
ai.decision_modeltake?:typesafe/jev-1.14. Theaicomment of the example ConfigMap names TypeSafe Jev as the decision model of this project, and the gateway serves that model. [sources: k8s/devops/configmap.example.yaml, openspec/specs/roadmap-service-deployment/spec.md] - Which test checks the new key?:
tests/k8s/test_k8s_configmap_keys.pyrenders the example and asserts that every key is a declared setting, so it checksai.decision_modelwith no new test. [sources: tests/k8s/test_k8s_configmap_keys.py, src/devops_cli/k8s/configmap.py] - Does the comment of the example ConfigMap hold the sentence that says the key must wait for the image?: No. The
aicomment ofk8s/devops/configmap.example.yamlholds no wait sentence. The wait statement is in ADR 0020 at line 101. The change adds the key and changes no comment. [sources: k8s/devops/configmap.example.yaml, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:101] - Which key does the template name, and where does it go?:
ai.decision_model, besideai.modelin theaisection of the example ConfigMap. (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:101, k8s/devops/configmap.example.yaml]- Chosen:
ai.decision_modelbesideai.model. ADR 0020 names the keyai.decision_model, and feat(roadmap): a decision-point registry with a resolver chain #4397 declares it as a field ofAIConfig. - Rejected:
ai.tasks.decision.modelin the task map. The task map holds generative models that write text and use tools. A decision model answers one closed question, and ADR 0020 names the keyai.decision_model.
- Chosen:
- Does the change amend the ordering note of ADR 0020?: No. The note records the order that this item obeys, and the key enters the template only after the image knows it. (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:101]
- Chosen: Leave ADR 0020 unchanged. The note stays true after the merge: the key waited for the image, and the image now knows it.
- Rejected: Add an amendment line to ADR 0020. No rule changes, and the line states a fact that the record already holds.
Fit
Fits in one pull request.
Suspected block
The rollout of the image of #4397 to the cluster: start only when kubectl -n devops exec deploy/roadmap-service -- devops config get ai.decision_model prints an empty value and no error.
Dependencies
Alternatives check of 2026-11-11: not-applicable.
Class: chore, no search.
Tool: none found.
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.
choreprefix of the title gives the type.(k8s)scope of the title gives the scope.It is a follow-up chore that only matters after #4397 is deployed and does not block any user-facing feature.It prevents a silent loss of the decision_model key on the next deploy-stack run, but the system runs without it until #4397 ships.The body states the change is one line in the template, one comment removal, and one test assertion.Both update k8s/devops/configmap.example.yaml so the template matches the live ConfigMap, but this item adds ai.decision_model while #4369 sets ai.tasks.analysis.model.devops-cli-service commentedon Nov 11, 2026
Refine cannot set this item to Ready at 3180bf1 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.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
src/devops_cli/config/settings.py.dan-petty commentedon Nov 11, 2026
The start condition of this item checks only the Service image. CronJob
devops-cli-runner(imagerunner) and Deploymentmcp-server(imagemcp-server) also load ConfigMapdevops-cli-config, and Image Updater keeps a separate digest for each image. An older runner Job or MCP server stops at the load of settings when the ConfigMap holdsai.decision_model.Start this item only when all three images know the key:
Live sinceof the release is on feat(roadmap): a decision-point registry with a resolver chain #4397. That comment checks the Service digest and the runner digest.kubectl -n devops exec deploy/roadmap-service -- devops config get ai.decision_modelprints an empty value and no error.kubectl -n devops exec deploy/mcp-server -- devops config get ai.decision_modelprints an empty value and no error.#4496 changes the texts of the gate (
docs/roadmap/stage.md, theaicomment ofk8s/devops/configmap.example.yaml). The review of PR #4453 found this gap.devops-cli-service commentedon Nov 11, 2026
Alternatives check: not-applicable
Class: chore. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.