Skip to content

docs(roadmap): gate ai.decision_model on all three images #4496

Closed

Description

@dan-petty

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, image ghcr.io/dan-petty/devops-cli/service.
  • CronJob devops-cli-runner and the Jobs that the Service starts from it, image ghcr.io/dan-petty/devops-cli/runner, with DEVOPS_CLI_CONFIG=/config/devops-cli.yaml (k8s/devops/cronjob-runner.yaml, volume config from ConfigMap devops-cli-config).
  • Deployment mcp-server, image ghcr.io/dan-petty/devops-cli/mcp-server (k8s/devops/mcp-server/deployment.yaml, volume from ConfigMap devops-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:

The review of PR #4453 found this problem (major).

Reproduction Steps

  1. Release the change of feat(roadmap): a decision-point registry with a resolver chain #4397. Image Updater moves the Service digest, but the mcp-server digest stays old (for example, the pod is in ImagePullBackOff, or the runner digest moves later).
  2. Run kubectl -n devops exec deploy/roadmap-service -- devops config get ai.decision_model. It prints an empty value, so the gate passes.
  3. Add ai.decision_model: typesafe/jev-1.14 to the live ConfigMap, as step 2 tells.
  4. 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:

  1. Wait for the Live since comment of the release on the issue (src/devops_cli/roadmap/release_comments.py). That comment checks the Service digest and the runner digest.
  2. 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 point devops.
  3. Alternatively, compare the image digest of CronJob devops-cli-runner and of Deployment mcp-server with 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-server and the command devops config get ai.decision_model before it says to add ai.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 ai comment above max_retries in k8s/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.md and k8s/devops/configmap.example.yaml.
  • THEN The check fails and names the file that still gates on deploy/roadmap-service alone.

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 since comment of the release, then kubectl -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]
  • Should the gate text offer digest comparison as an equal alternative?: No. Require one sequence: the Live since comment 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.md holds the verify-screen paragraph. k8s/devops/configmap.example.yaml holds the ai comment above max_retries. [sources: docs/roadmap/stage.md, k8s/devops/configmap.example.yaml]
  • Which settings behavior makes an older image fail?: AIConfig uses extra="forbid", so an older image refuses the unknown key ai.decision_model at settings load. [sources: src/devops_cli/config/settings.py:713, k8s/README.md]
  • Which workloads load ConfigMap devops-cli-config?: Deployment roadmap-service, CronJob devops-cli-runner and Deployment mcp-server load 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

  1. added
    source/agent
    type/docs
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  2. dan-petty commented on Nov 11, 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/docs. The docs prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. Prevents a production crash from an unknown key in older images, but only in a specific release sequence.
    • Value: Medium. Prevents a real operational failure but only in a narrow release window.
    • Effort: Low. Changes three text files and one start condition.
    • Related: chore(k8s): put ai.decision_model in the ConfigMap template #4446, which asks for a different change. 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.
  3. added
    priority/p2-medium
    on Nov 11, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

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

    Moved to new items: #4507.

  6. added
    owner/agent
    status/in-progress
    and removed
    status/ready
    on Nov 11, 2026
  7. removed
    status/in-progress
    owner/agent
    on Nov 11, 2026
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/roadmapsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions