Repository navigation
Description
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.pyreads theRunnerToolnamedkube-linterfromRUNNER_TOOLSand readsNOT_IN_RUNNER - THEN the entry has
ToolSource.DEVTOOLSas its source,gate:staticandjobin itsneeded_by,("kube-linter", "version")as its check, andkube-linteris no key ofNOT_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_failureon thekube-linterentry with a stubkube-linterfirst on PATH whoseversionexits 1 - THEN the result is the
runner_tool_failedtext that nameskube-linterand the commandkube-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_failureon thekube-linterentry with an empty PATH - THEN the result is the
runner_tool_missingtext that nameskube-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.ymlrunskube-linter linton a manifest in the loaded image with noKUBECONFIGand noKUBERNETES_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-linterat the checked commit?:RUNNER_TOOLSlistskube-linteras_devtools("kube-linter", "gate:static", check=("kube-linter", "version")).NOT_IN_RUNNERdoes not name it. The entry does not namejob. [sources: src/devops_cli/roadmap/runner_tools.py] - Which
needed_byvalues record the needs forkube-linter?:gate:staticandjob. The Static Analysis job needs it, and the implement agent needs it to lint a manifest. The existing entry names onlygate:static, so the change addsjob. (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 noci:row. The Static Analysis job is the recorded source.
- Chosen: (
- Where does the runner image get
kube-linter, and how is it pinned?: From the devtools image. The entry usesToolSource.DEVTOOLS. The Dockerfile pins the devtools image by digest, andrunner_tools.pyholds 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 holdskube-linterinRUNNER_TOOLSat the checked commit. This change adds thejobmarker 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
devops-cli-service commentedon Nov 13, 2026
The work is blocked until #2165 is delivered, and it is deferred from #3562.Both items change the runner tool catalog; #3562 adds kubectl and kube-linter, and the candidate adds kube-linter only after #2165.docs(openspec): plan #3827 Run review scanners in the runner pod (#6105)
dan-petty commentedon Nov 19, 2026
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 outdatedon 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.devops-cli-service commentedon Nov 20, 2026
Owner question: See Suspected block and Watched files in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 23, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.