Repository navigation
Description
Context & Rationale
Under dry run, the review runner saves no segments (src/devops_cli/ai/review/runner.py:1268) and skips persona review and verification (runner.py:2063). It still writes to disk:
ReviewPipelineOrchestrator.__init__always creates the session and files directories (src/devops_cli/ai/review/pipeline.py:1415-1420).- The report stage runs anyway (
runner.py:2080-2083). It writes findings.json and candidates.json (pipeline.py:3601,:3608).
devops review stats counts every directory with a findings.json as a session (src/devops_cli/commands/review.py:1242). The #434 baseline and the feedback export read the same directories (#607).
#412 (v0.2.26) makes command dry-run branches reachable from the CLI, so this has to be fixed first. It comes from the extension under #475's roadmap entry (docs/ROADMAP.md:314, "PR 3").
Scope & Deliverables
Deliverable: A dry-run review creates no session directory. It writes no findings.json, candidates.json, profile.json or per-file JSON, and it still prints its preview.
Acceptance criteria:
- An offline test points
_get_reviews_base_dirat a tmp dir, setsDEVOPS_CLI_DRY_RUN=trueand reviews a tmp target through the orchestrator path. It asserts that the reviews dir stays empty and thatdevops review statson it reports no saved sessions. Structural tuple assertions; under 1 s. test_run_review_dry_run_skips_client_calls(tests/test_review_path.py:348) still passes.uv run devops cipasses.
Key questions:
- Where does the preview go? To stdout only, as
print_dry_run_resultalready does (runner.py:130-133) (proposed). - Fix it in the orchestrator or in the runner? In the orchestrator (proposed). It owns the session directory (
pipeline.py:1415-1420), so every caller gets the fix. refactor(review): review session store that owns layout, fingerprints and verdicts #771 later moves session layout into a store.
Constraint:
- No behaviour change outside dry run.
- Tests stay offline.
Strategic Alignment
- Milestone: Backlog. It is a dependency of feat(cli): reachable
--dry-runpreviews for delegated commands #412 (v0.2.26), so it should be placed no later than v0.2.26. - Depends on: none
- Related: feat(cli): reachable
--dry-runpreviews for delegated commands #412, feat(review): subject-keyed review history with a leave-one-out baseline #607, refactor(review): review session store that owns layout, fingerprints and verdicts #771, refactor(cli): one process runner owns execution, process groups and dry-run #775
Split off #475 during the v0.2.25/v0.2.26 readiness review (2026-10-01): This is PR 3 of the extension under #475's roadmap entry (docs/ROADMAP.md:314). It has nothing to do with measuring models. It must land before #412 (v0.2.26), which makes command dry-run branches reachable.
Update 2026-10-08: refinement
The bug holds: a dry run still writes findings.json, candidates.json, findings.sarif and review.md (ai/review/runner.py:2216-2217), also through the routed-files path (:2245-2266).
- The files not written include
findings.sarifandreview.md. - A dry run whose only change is a routed file leaves the reviews directory empty.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 8, 2026
Linked: #412 depends on this item, because forwarding makes
devops --dry-run review path .write a session. #771 and #1008 edit the same constructor and report writer; whichever lands second rebases. Found by the 2026-10-08 backlog review.dan-petty commentedon Oct 14, 2026
Moved to v0.2.36: v0.2.36 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
dan-petty commentedon Oct 16, 2026
What changed
#1587, merged into
release/v0.2.36as bedbf6f.6 file(s) changed.
How it was verified
Check runs at cfd4d95:
Acceptance Criteria of
docs/agent/tasks/task-872-review-dry-run-no-session-dir.md:_get_reviews_base_dirat a tmp dir, setsDEVOPS_CLI_DRY_RUN=trueand reviews a tmp target through the orchestrator path, asserting that the reviews dir stays empty anddevops review statsreports no saved sessions (tests/test_review_path.py::test_run_review_dry_run_skips_client_calls).test_run_review_dry_run_skips_client_callsintests/test_review_path.pypasses under 1 s (tests/test_review_path.py::test_run_review_dry_run_skips_client_calls).findings.sarifandreview.md(tests/test_review_path.py::test_run_review_dry_run_skips_client_calls).tests/test_review_path.py::test_dry_run_routed_files_only_leaves_reviews_dir_empty).uv run devops cipasses.