Skip to content

feat(roadmap): Add kube-linter to the runner tool catalog #5394

Open

Description

@devops-cli-service

Split from #3562.

Problem: the implement agent cannot lint Kubernetes manifests. kube-linter is a key of NOT_IN_RUNNER in src/devops_cli/roadmap/runner_tools.py, with the _SCANNER reason. The agent cannot lint a manifest before it opens a pull request. The runner image must change, and the image holds no cluster token. This part is deferred from #3562, which adds kubectl only, so that the rest of #3562 can be Ready. Why deferred: the _SCANNER reason states that the Static Analysis job of ci.yml installs no scanner, and that a scanner on PATH fails tests that pass in the gate (#2165). The recorded decision of change #3072 is that the gate decides the catalog. The image cannot hold kube-linter until #2165 is delivered. Acceptance criteria: the runner tool catalog SHALL list kube-linter in RUNNER_TOOLS and SHALL not name it in NOT_IN_RUNNER; the runner image SHALL pass each test that a scanner on PATH breaks (#2165); a test SHALL verify that kube-linter version runs in the runner shell and prints its pin; a test SHALL verify that kube-linter reads files only and needs no cluster token.

Proposed design

Problem statement

The runner tool catalog already lists kube-linter in RUNNER_TOOLS from the devtools image. The entry names gate:static but not job. The implement agent needs kube-linter to lint a manifest before it opens a pull request. The change adds job to needed_by, adds a test for the entry, and adds a smoke lint to the runner image.

Acceptance criteria

Requirement: The catalog records the implement job

The kube-linter entry in RUNNER_TOOLS SHALL name both gate:static and job in needed_by, SHALL use ToolSource.DEVTOOLS, SHALL use the check ("kube-linter", "version"), and SHALL not be a key of NOT_IN_RUNNER.

Scenario: the catalog entry is read

  • WHEN a test in tests/roadmap/test_roadmap_runner_tools.py reads the RunnerTool named kube-linter from RUNNER_TOOLS and reads NOT_IN_RUNNER
  • THEN the entry has ToolSource.DEVTOOLS as its source, gate:static and job in its needed_by, ("kube-linter", "version") as its check, and kube-linter is no key of NOT_IN_RUNNER

Requirement: The catalog check reports a broken kube-linter

The catalog check MUST return a failure for kube-linter when the version command exits non-zero.

Scenario: the version command exits 1

  • WHEN a test runs tool_failure on the kube-linter entry with a stub kube-linter first on PATH whose version exits 1
  • THEN the result is the runner_tool_failed text that names kube-linter and the command kube-linter version

Requirement: The catalog check reports a missing kube-linter

The catalog check MUST return a failure for kube-linter when the program is missing from PATH.

Scenario: the program is missing

  • WHEN a test runs tool_failure on the kube-linter entry with an empty PATH
  • THEN the result is the runner_tool_missing text that names kube-linter

Requirement: The runner image lints a manifest offline

The runner image smoke test MUST lint a Kubernetes manifest with no kubeconfig and no cluster token, and the lint MUST exit 0.

Scenario: an offline lint in the runner image

  • WHEN the smoke test of the runner image in ci.yml runs kube-linter lint on a manifest in the loaded image with no KUBECONFIG and no KUBERNETES_SERVICE_HOST
  • THEN the lint exits 0 and prints no connection error

Existing Tool Considered

No alternatives check has run. The open, maintained tool is kube-linter. It covers offline linting of Kubernetes manifests. It lacks a version pin in runner_tools.py; the devtools image digest is the pin. The change adds no lint code, so it builds no replacement and has no build cost.

Key questions

  • What does the runner tool catalog say about kube-linter at the checked commit?: RUNNER_TOOLS lists kube-linter as _devtools("kube-linter", "gate:static", check=("kube-linter", "version")). NOT_IN_RUNNER does not name it. The entry does not name job. [sources: src/devops_cli/roadmap/runner_tools.py]
  • Which needed_by values record the needs for kube-linter?: gate:static and job. The Static Analysis job needs it, and the implement agent needs it to lint a manifest. The existing entry names only gate:static, so the change adds job. (best practice) [sources: src/devops_cli/roadmap/runner_tools.py, CONTEXT.md]
    • Chosen: (gate:static, job). It records both the gate and the implement job.
    • Rejected: (job,). It drops the gate need that the entry already records.
    • Rejected: (ci:kube-linter,). The entry names no ci: row. The Static Analysis job is the recorded source.
  • Where does the runner image get kube-linter, and how is it pinned?: From the devtools image. The entry uses ToolSource.DEVTOOLS. The Dockerfile pins the devtools image by digest, and runner_tools.py holds no tool version (fix(roadmap): keep no tool versions in runner_tools.py #5585). [sources: src/devops_cli/roadmap/runner_tools.py]
  • Does this change need test(floor): every test sees the same tokenizer cache, mounts, process table, PATH and programs on every host, and no skip depends on the host #2165 before the catalog can hold kube-linter?: No. The catalog already holds kube-linter in RUNNER_TOOLS at the checked commit. This change adds the job marker and tests. It does not put a new scanner on PATH. A test that a scanner on PATH breaks is a separate issue. [sources: src/devops_cli/roadmap/runner_tools.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/high
    on Nov 13, 2026
  2. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    priority/p3-low
    on Nov 13, 2026
  4. added a commit that references this issue on Nov 17, 2026
  5. dan-petty commented on Nov 19, 2026

    @dan-petty
    Owner

    Evidence for the runner gate (HIGH/CRITICAL, --ignore-unfixed, exit code 1): Trivy 0.76.2 on 2026-11-19 finds CRITICAL CVE-2026-33186 (google.golang.org/grpc 1.75.1, fixed in 1.79.3) and 52 HIGH findings with a fix in kube-linter 0.8.3. 0.8.3 is the newest kube-linter release (mise outdated on 2026-11-19). SECURITY.md does not let an agent ignore a CRITICAL finding, so kube-linter in the runner image needs an owner decision. Found in the scan of dan-petty/devtools#3.

  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  7. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

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/highpriority/p3-lowscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions