Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/reviewMulti-persona code review engine, verification, and findingsscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaulttype/bugType bug: the code does not do what it mustvalue/lowValue Low: the delivery of the item matters little
Description
Problem
Three scanner rules filled every branch review of release/v0.2.25 on 2026-10-02 with false findings, with no valid finding across S3 to S5 (.data/review-evaluation-20261002-s5.md, section 6.3, candidates/reported):
- kube-linter
dangling-service: 4 of 4 in every run; - Semgrep
non-literal-import: 7/6, 7/6 and 7/1; - Semgrep
exec-detected: 1/1, in S5 only.
Semgrep's logger-credential-disclosure (3/1, 3/1, 5/3) must stay: its one true positive across S3 to S5 is the secrets-audit defect in #1022. Its findings reach the verifier on the wrong line instead.
Acceptance criteria
- The review's scanner configuration excludes kube-linter
dangling-serviceand Semgrepnon-literal-importandexec-detected, as a named table beside the scanner setup, each entry with the reason. -
logger-credential-disclosurestays enabled. - A replay over the saved S3 to S5 candidates (
.data/reviews/20261002-180320,-200610,-205520, trimmed to a fixture) loses no candidate the S5 evaluation classified valid, reported or not. - Tests run offline, call no scanner, and each runs well under 1 s.
-
uv run devops cipasses. - kube-linter
dangling-servicestays off unless fix(security): kube-linter findings carry their own check, message and manifest file, and scan reports keep each one #1045's object resolution proves the Service has no backing object: it was 200 of 200 false over the ten-run loop S12–S21 (review redesign, 2026-10-03). - Exclusions are by rule id only. Semgrep registry rule text is never copied or edited into the repository, under the registry rules' licence (internal use, no redistribution; the repository is public).
- (person-run) Lenient precision on the review redesign's tuning inputs (the S11 input and the loop input), scored with feat(review): devops review score scores saved review sessions against a label file offline and reproduces the S11 and loop baselines #1138, is recorded on this issue.
Key questions
- Fold into fix(security): reviews take config, data, contracts, scanner config and probe suppressions from the tree under review #972 (scanner config from the tree under review)? (proposed) No. fix(security): reviews take config, data, contracts, scanner config and probe suppressions from the tree under review #972 is about where the configuration comes from; this is which rules it enables. They touch the same setup code; whichever lands second rebases.
- The test-path policy? (proposed, review redesign) It moves to feat(review): every reported finding is admitted with its producer's anchor and a location that exists in the reviewed commit, the review writes findings.sarif, and review.md shows findings and suppressions #871's suppressions (a set of
.devops/review.tomlentries with reasons), not a scanner exclusion here. - Exclude Semgrep
logger-credential-disclosuretoo? The review redesign proposed excluding it withnon-literal-import; this body keeps it, because its one true positive across S3 to S5 is the secrets-audit defect in fix(config): the secrets audit never prints a config line it cannot parse, and an unparsable file is not reported clean #1022. (proposed) Keep it until feat(review): devops review score scores saved review sessions against a label file offline and reproduces the S11 and loop baselines #1138's labels show no valid finding from it after fix(config): the secrets audit never prints a config line it cannot parse, and an unparsable file is not reported clean #1022 lands. A person decides.
Strategic alignment
- Depends on: none.
- Order: after fix(security): reviews take config, data, contracts, scanner config and probe suppressions from the tree under review #972 (v0.2.25), which changes how the scanners are configured.
- Related: fix(security): reviews take config, data, contracts, scanner config and probe suppressions from the tree under review #972, fix(review): the report ranks verified findings first, keeps only scanned advisories, and uses one category taxonomy and calibrated severity #948 (report ranking), fix(config): the secrets audit never prints a config line it cannot parse, and an unparsable file is not reported clean #1022 (the secrets-audit defect).
- Parent: feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 (phase P0). Priority raised from P3 to P2 on 2026-10-03 by the review redesign.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/reviewMulti-persona code review engine, verification, and findingsscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaulttype/bugType bug: the code does not do what it mustvalue/lowValue Low: the delivery of the item matters little
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsReady
Activity
dan-petty commentedon Oct 3, 2026
What S10 adds (review session
20261003-034353, release/v0.2.25 at d6ebe97;.data/review-evaluation-20261003-s10.md, section 4).23 of the 34 false reported rows come from this issue's rules:
dangling-serviceonk8s/llm/profiles/services.yaml(new with feat(llm): add speed-tier service aliases, align 48gib slow routing weights and bump max loaded models #1042);k8s/monitoring/service-aliases.yaml;non-literal-import:main.py:84(VERIFIED),workspace.py:43(MITIGATED) andtest_all_commands_help_dryrun.py:99.With this issue and #1021, about 21 rows would remain, with the same 12 valid ones, so about 57% lenient precision [estimate].
The 16 services.yaml findings are false for a reason this issue doesn't name (D11): the review runs kube-linter one file at a time.
_scan_kubernetes_manifests(src/devops_cli/ai/review/pipeline.py:541-566) callsrun_kubelinter_scan(yp)once per path (:551; its only caller is:2028).ollama-profiles.yaml. All 16 Service selectors match one of those pod templates.dangling-serviceonservices.yamlalone and 0 on the two files together.Dropping the rule makes this moot. If
dangling-servicewere kept, kube-linter would need to run once over the reviewed manifests together; nothing tracks that today. Any other cross-object check would have the same blind spot [inference].dan-petty commentedon Oct 9, 2026
Folded in from the #1045 re-scope (2026-10-09)
#1045 gives each kube-linter object its own identity but resolves no objects across files, and running kube-linter once over the whole manifest set still reports
dangling-servicefor Services that select Helm-deployed pods (checked at da50329 and e3ff98c). Sodangling-servicestays excluded from the review config here.