Repository navigation
Description
Problem Description
The order rule for ai.decision_model checks only the Service image. Three workloads load the ConfigMap devops-cli-config, and each one has its own image:
- Deployment
roadmap-service, imageghcr.io/dan-petty/devops-cli/service. - CronJob
devops-cli-runnerand the Jobs that the Service starts from it, imageghcr.io/dan-petty/devops-cli/runner, withDEVOPS_CLI_CONFIG=/config/devops-cli.yaml(k8s/devops/cronjob-runner.yaml, volumeconfigfrom ConfigMapdevops-cli-config). - Deployment
mcp-server, imageghcr.io/dan-petty/devops-cli/mcp-server(k8s/devops/mcp-server/deployment.yaml, volume from ConfigMapdevops-cli-config).
Image Updater keeps three separate :latest digests for these images (k8s/README.md, Service Image Updates). The same section says that the mcp-server package can stay in ImagePullBackOff after a release. AIConfig refuses a key that it does not know (extra="forbid", src/devops_cli/config/settings.py). Thus an older runner image or MCP server image stops at the load of settings when the ConfigMap holds ai.decision_model.
These texts give a gate that checks only the Service:
docs/roadmap/stage.md, section "The verify screen", last paragraph: "addai.decision_modelonly after the image of this version runs, then restart the Service".k8s/devops/configmap.example.yaml, the comment ofaiabovemax_retries: "decision_modelgoes here only after the image that knows the key runs in the cluster (chore(k8s): put ai.decision_model in the ConfigMap template #4446)".- chore(k8s): put ai.decision_model in the ConfigMap template #4446, start condition: "Start this item only when
kubectl -n devops exec deploy/roadmap-service -- devops config get ai.decision_modelprints an empty value and no error." - PR feat(roadmap): a decision-point registry with a resolver chain #4453, comment "The ConfigMap change and its order", step 2: the same
deploy/roadmap-servicecheck.
The review of PR #4453 found this problem (major).
Reproduction Steps
- Release the change of feat(roadmap): a decision-point registry with a resolver chain #4397. Image Updater moves the Service digest, but the
mcp-serverdigest stays old (for example, the pod is inImagePullBackOff, or the runner digest moves later). - Run
kubectl -n devops exec deploy/roadmap-service -- devops config get ai.decision_model. It prints an empty value, so the gate passes. - Add
ai.decision_model: typesafe/jev-1.14to the live ConfigMap, as step 2 tells. - The next runner Job of the old runner image, or the next restart of the old MCP server, stops at the load of settings with an unknown key
ai.decision_model.
Expected vs Actual Behavior
Expected: the gate passes only when all three images know ai.decision_model.
Actual: the gate reads only deploy/roadmap-service. It can pass while the runner image or the MCP server image is older.
Fix: change the three texts and the start condition of #4446 so that they wait for all three images:
- Wait for the
Live sincecomment of the release on the issue (src/devops_cli/roadmap/release_comments.py). That comment checks the Service digest and the runner digest. - Then run
kubectl -n devops exec deploy/mcp-server -- devops config get ai.decision_model. It must print an empty value and no error. The MCP server image is built from the runner stage and has the entry pointdevops. - Alternatively, compare the image digest of CronJob
devops-cli-runnerand of Deploymentmcp-serverwith the digests of the release.
Environment Diagnostics
main at 0ac2f76, which holds the merge of PR #4453 (b73e97a).
Logs, Traces, or Terminal Output
k8s/devops/cronjob-runner.yaml:43 image: ghcr.io/dan-petty/devops-cli/runner
k8s/devops/cronjob-runner.yaml:116 name: devops-cli-config
k8s/devops/mcp-server/deployment.yaml:44 image: ghcr.io/dan-petty/devops-cli/mcp-server
k8s/devops/mcp-server/deployment.yaml:127 name: devops-cli-config
src/devops_cli/config/settings.py:713-715 class AIConfig ... extra="forbid"
Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate. chore(k8s): put ai.decision_model in the ConfigMap template #4446 is related: it adds the key, and its start condition has the same gap.
Source: #4453
Proposed design
Problem statement
The gate for ai.decision_model checks only the Service image. The runner and MCP server images can be older and stop at the settings load on the unknown key. The change makes the gate wait for all three images.
Acceptance criteria
Requirement: Stage document gate names all three images
The verify screen section of docs/roadmap/stage.md SHALL state that ai.decision_model is added only after the Live since comment and a successful devops config get ai.decision_model in the MCP server pod.
Scenario: The stage document describes the three-image gate
- WHEN A documentation check reads the last paragraph of the verify screen section in
docs/roadmap/stage.md. - THEN The paragraph names
deploy/mcp-serverand the commanddevops config get ai.decision_modelbefore it says to addai.decision_model.
Requirement: ConfigMap example gate names all three images
The ai comment in k8s/devops/configmap.example.yaml SHALL state that decision_model is added only after the Service, runner and MCP server images know the key.
Scenario: The example ConfigMap comment describes the three-image gate
- WHEN A documentation check reads the
aicomment abovemax_retriesink8s/devops/configmap.example.yaml. - THEN The comment names the Service, runner and MCP server images and the check that each image knows
ai.decision_model.
Requirement: Documentation check rejects a one-image gate
A documentation check SHALL fail when either gate text names only the Service image as the condition for adding ai.decision_model.
Scenario: A gate text keeps the Service-only condition
- WHEN The documentation check reads
docs/roadmap/stage.mdandk8s/devops/configmap.example.yaml. - THEN The check fails and names the file that still gates on
deploy/roadmap-servicealone.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers a repository-specific documentation gate. The change edits docs/roadmap/stage.md, k8s/devops/configmap.example.yaml and a documentation test, and builds no code.
Key questions
- Which gate sequence should the documents require?: Require the
Live sincecomment of the release, thenkubectl -n devops exec deploy/mcp-server -- devops config get ai.decision_model. The command must print an empty value and no error. (best practice) [sources: docs/roadmap/stage.md, k8s/devops/configmap.example.yaml, src/devops_cli/config/settings.py:713, k8s/README.md]- Chosen: Live since comment plus MCP server exec. It checks the Service and runner digests through the release comment and tests the MCP server settings load directly.
- Rejected: Digest comparison of the runner and MCP server images. It adds registry and cluster reads and does not test the settings load.
- Rejected: Service-only check. It passes while the runner or MCP server image is older, which is the reported defect.
- Should the pull request edit the start condition of chore(k8s): put ai.decision_model in the ConfigMap template #4446?: No. Defer the chore(k8s): put ai.decision_model in the ConfigMap template #4446 start condition to a separate issue, because a pull request in this repository cannot edit another issue body. (best practice) [sources: CONTEXT.md]
- Chosen: Defer the issue-body edit. The start condition lives outside the repository, and the item delivers one pull request.
- Rejected: Edit chore(k8s): put ai.decision_model in the ConfigMap template #4446 in this pull request. A repository pull request cannot change an issue body, and no offline test can check it.
- Should the gate text offer digest comparison as an equal alternative?: No. Require one sequence: the
Live sincecomment and the MCP server check. A note may name digest comparison, but the gate has one path. (best practice) [sources: docs/roadmap/stage.md]- Chosen: One required sequence. A single path is easier to audit and tests the actual settings load.
- Rejected: Keep digest comparison as an equal alternative. Two paths make the gate ambiguous and add maintenance.
- Which files hold the gate text?:
docs/roadmap/stage.mdholds the verify-screen paragraph.k8s/devops/configmap.example.yamlholds theaicomment abovemax_retries. [sources: docs/roadmap/stage.md, k8s/devops/configmap.example.yaml] - Which settings behavior makes an older image fail?:
AIConfigusesextra="forbid", so an older image refuses the unknown keyai.decision_modelat settings load. [sources: src/devops_cli/config/settings.py:713, k8s/README.md] - Which workloads load ConfigMap
devops-cli-config?: Deploymentroadmap-service, CronJobdevops-cli-runnerand Deploymentmcp-serverload it. [sources: k8s/devops/cronjob-runner.yaml:116, k8s/devops/mcp-server/deployment.yaml:127, k8s/devops/roadmap-service/deployment.yaml]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
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.
docsprefix of the title gives the type.(roadmap)scope of the title gives the scope.Prevents a production crash from an unknown key in older images, but only in a specific release sequence.Prevents a real operational failure but only in a narrow release window.Changes three text files and one start condition.Both concern the order of adding ai.decision_model to the ConfigMap, but #4446 adds the key to the template while the candidate fixes the gate to wait for all three images.devops-cli-service commentedon Nov 11, 2026
Status set to Ready at c3f62a9 (see proposed design in issue body).
Moved to new items: #4507.