Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingsscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaulttype/featureType feature: a new function
Milestone
Description
Problem
- Tools are installed at whatever is latest.
install-toolsresolves the latest release (get_latest) [code: commands/install_tools.py:391-417], and reviews record no tool version. - The installed Semgrep 1.178.0 misreads PEP 758 silently; 1.179.0 fixes it [measured: c-feasibility; sourced: github.com/semgrep/semgrep/releases/tag/v1.179.0].
- The tool supply chain has been attacked: Trivy v0.69.4 was poisoned (CVE-2026-33634), and LiteLLM 1.82.7/1.82.8 were backdoored [sourced: u-tools].
- Pinning the top-level package is not enough.
uv tool install name==versionpins one package; Semgrep's environment holds 66 distributions, anduv tool installhas no--require-hashes[measured: c-feasibility, uv 0.12.16].
Acceptance criteria
-
tools.lock(package data) holds name, exact version, source URL and, for binaries, sha256 per platform.- Pins: gitleaks 8.30.1, osv-scanner 2.6.0, Semgrep 1.179.0, kube-linter, Pluto, Trivy, Bandit and the P3-6 tools as they arrive.
- Each Python tool has a hashed requirements file (
uv pip compile --generate-hashes). It is installed withuv pip sync --require-hashesinto its own virtual environment under the user data root. -
devops install-toolsinstalls only from the lock, verifies every checksum, and refuses a mismatch. - The tools-lock digest is recorded in profile.json as a review input.
- The lock covers every
install-toolsregistry entry, not only review tools: kubectl, kustomize, helm, argo, argocd, kubectl-argo-rollouts, trivy, kube-linter, popeye, pluto and k9s (install_tools.py:83-91). Removingget_latestotherwise leaves them with no version source. - The post-create
uv tool install semgrep(devcontainer.py:713-718) is replaced by the lock's hashed install, so only one Semgrep is on PATH. - From fix(review): a review records its prompt digest when it starts, and a benchmark arm refuses runs whose prompts or code changed #1050: a review warns when devops-cli's own source tree changes (a commit or a dirty state) during the run.
- (person-run) Install into an empty data root;
devops install-tools --checkreports every pin verified. - Tests run offline with fakes and recorded tool output: no network, no real scanner, no model; each test under 1 s.
-
changelog.d/<n>.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Key questions
-
The project locks its own ruff? (proposed) Use the project's locked ruff, so the review agrees with its CI. It is recorded either way.
-
gitleaks is "security patches only"? (proposed) Acceptable while it is patched. Switch to Betterleaks at v2 GA as one change.
-
Does the lock grow past review tools? (proposed) Yes, as above. If the owner does not want this item to grow, the non-review pins become a sibling item that uses the same lock format.
Strategic alignment
- Milestone: none; the roadmap tooling places it. Blocks: feat(review): review tools run through one injectable executor in a network-less sandbox with CPU, memory and time limits #772. Related: fix(security): a review's isolated Semgrep scan hands Semgrep only targets under its working directory, so it finishes instead of rediscovering each file across the checkout #1079, fix(review): a review records its prompt digest when it starts, and a benchmark arm refuses runs whose prompts or code changed #1050 (frozen; its own-code check moves here), fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861 (owner-placed; linked only), chore(deps): the workflow linter comes from a maintained source that knows current runner labels, replacing the stalled actionlint #1119 (its key question cites this lock).
- Parent: feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 (phase P1a).
- Evidence tags ([measured: …], [code: path:line], [sourced: …], [estimate], [inference]; "S11" is the single review run of 2026-10-03 and "the loop" the ten runs S12–S21; c-feasibility and c-fidelity are the two design critiques) are explained in feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingsscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaulttype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 8, 2026
Placed in v0.2.30 on 2026-10-08 at the owner's request ("Populate 10 security and ci issues into each v0.2.30, v0.2.31, and v0.2.32 milestone"). This is a person's placement. Release theme: P1 secret and sandbox-boundary fixes, the review tools lock, kube-linter finding identity and a faster gate. Position 10 of 10 in the release's planned merge order. Its board Status is set to Ready, so the release-start fill keeps it.
feat(review): review tools install from a tools lock with exact versi…
dan-petty-bot commentedon Oct 9, 2026
What changed
#1467, merged into
release/v0.2.30as 7a357d2.32 file(s) changed.
How it was verified
Check runs at fb403f4:
Acceptance Criteria of
docs/agent/tasks/task-1142-review-tools-install-from-a-tools-lock.md:tools.lockholds each tool's name, exact version and source URL and, for binaries, a SHA-256 per platform, with gitleaks 8.30.1, osv-scanner 2.6.0, Semgrep 1.179.0, kube-linter 0.8.3, pluto, trivy and Bandit pinned:test_the_packaged_lock_holds_every_tool_install_tools_installsandtest_every_binary_build_is_an_https_url_with_a_sha256.uv pip sync --require-hashesinto its own virtual environment under the user data root:test_every_python_tool_pins_itself_in_its_hashed_requirements,test_a_python_tool_installs_its_hashed_requirements_into_a_relocatable_venv(with--no-config) andtest_a_failed_python_install_leaves_no_stage_and_no_link; a pin bump removes the earlier version (test_an_install_removes_the_tools_other_versions); the locked Bandit is the project's dev pin (test_the_locked_bandit_is_the_projects_own_dev_bandit).devops install-toolsinstalls only from the lock, verifies every checksum and refuses a mismatch:test_a_verified_binary_is_pinned_and_linked_from_its_url_alone(the lock's URL is the only request),test_a_build_whose_bytes_differ_from_the_lock_is_refused,test_install_tools_exits_1_when_it_refuses_a_build,test_each_archive_format_unpacks_to_the_tool,test_a_platform_the_lock_has_no_build_for_is_namedandtest_version_is_no_longer_an_option.profile.jsonas a review input, read at the review's start:test_a_profile_records_the_tools_lock_it_started_with; one more byte in the lock or a requirements file changes it (test_the_digest_covers_the_lock_and_its_requirements_files).install-toolsregistry entry: kubectl, kustomize, helm, argo, argocd, kubectl-argo-rollouts, trivy, kube-linter, popeye, pluto and k9s.uv tool install semgrepis gone, and its managed-tools install puts the locked Semgrep on PATH:test_post_create_leaves_semgrep_to_the_tools_lock; the links replace an existingsemgrep, and the lock linkspysemgreptoo (test_semgrep_links_the_pysemgrep_it_runs).test_own_source_state_changes_with_each_edit_and_commit,test_an_installed_copy_has_no_source_stateandtest_a_review_warns_when_its_own_source_changes_during_the_run.--only-missing,--checkandstatusread the pin from the target directory's links, offline:test_only_missing_skips_a_tool_at_its_pin_and_reinstalls_one_linked_elsewhere,test_check_passes_only_when_every_tool_is_at_its_pinandtest_status_shows_each_pin_and_what_is_installed_without_a_request.changelog.d/1142.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited.docs/DEVCONTAINER_USAGE.md's security tools line,docs/SELF_IMPROVEMENT.md's Review Profiles & Benchmarks section and the generated command reference.uv run devops cipasses.(export HOME="$(mktemp -d)"; uv run devops install-tools --target-dir "$HOME/.local/bin" && uv run devops install-tools --check --target-dir "$HOME/.local/bin")installs every tool into an empty data root, and the check prints that every tool is linked at its locked version and exits 0.feat(release): v0.2.30 (#1473)