Repository navigation
Description
Ready: implementation plan (refined 2026-10-17 at 3dd7fa6)
This section supersedes any text below that conflicts with it.
Decisions
- Where the store lives: a new
src/devops_cli/review/session.py, withReviewSessionStore(its root, creating, listing and finding sessions, the latest complete one) andReviewSession(one session directory: reading and writing its files, its verdict lock, its commit). New review code goes undersrc/devops_cli/review/, as feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137's Q9 settled. - One resolver: sessions live in
$DEVOPS_CLI_DATA_DIR/reviewswhen that variable is set, otherwise indata.reviews_dir, resolved under the review data root withresolve_review_data_pathas_get_reviews_base_dirdoes today. It keeps the dashboard's path-traversal and system-path checks. Reading never creates the directory; only writing a session does. Both of today's resolvers are deleted. - The new name for
candidates.json:raised_findings.json, every finding the review raised. The user-facing word changes with it:devops review findings --candidatesbecomes--raised,devops review verify --candidatebecomes--raised, and adjudication's names follow (judge_raised). "Candidate" is the roadmap's glossary term (CONTEXT.md:101-102). Sessions already on disk are not read under the old name: pre-1.0 keeps no compatibility code. - Two files stay: findings.json (reported) and raised_findings.json (raised). After refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151 they differ only by duplicates and by findings a verdict moved. Merging them is not part of this item.
- The completion marker: a new
complete.json(CONST_REVIEW_SESSION_COMPLETE_FILENAME), holdingcompleted_atand the names of the files the session wrote.ReviewSession.commit()writes it as the last step, after profile.json, and a session is complete exactly when it exists. profile.json is written after the report (runner.py:942), so findings.json cannot be the marker. Sessions on disk without a marker read as incomplete, with no migration. - What a complete session holds: findings.json, raised_findings.json, findings.sarif, review.md, profile.json, and analysis.json when group analysis ran. The store also owns
files/(per-file payloads) and.verify.lock, but they are not part of completeness. This answers the readiness question: analysis.json,files/and.verify.lockjoin the store and thergcheck. - Atomic writes: every session file goes through
devops_cli.output.file_writer.write_file, which writes a temporary file and renames it into place (output/file_writer.py:80-111). The SARIF document is built withto_sarifand written the same way.write_sarif's plain write stays only fordevops scan. - File-name constants:
PROFILE_FILENAMEmoves fromai/review/profile.py:44toconfig/constants.pyasCONST_REVIEW_PROFILE_FILENAME, and"review.md"becomesCONST_REVIEW_REPORT_FILENAME. Only the store uses them. - analysis.json:
run_group_analysisstops writing it (review/analysis.py:863-868). It returns the report, and the pipeline writes it through the store, so there is one writer. - Listing:
ReviewSessionStore.sessions()returns every session with itscompleteflag, newest first. The dashboard still shows an in-flight session as incomplete.latest()and every other reader (history, exporter, stats, score, corpus,_find_session_dir) take complete sessions only. - Verdicts:
adjudication.pyreads and writes through the store and keeps its lock (adjudicatingbecomesReviewSession.verdict_lock()) and its put-back (write_session_files). Since refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150 only a person gives a verdict, so the body's "machine and human verdicts take the same write path" becomes "every verdict write goes through the store's lock and put-back". - Bullets dropped from this item: the fingerprint (fix(security): each finding keeps its own fingerprint across unrelated edits, and deduplication and correlation give one result in every input order, in devops scan and in reviews #1141 computes it, refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151 PR 2 stores it on each finding, and feat(review): feedback export counts each review subject once and keeps every human verdict #877 adds lookups by it), the intake read (feat(review): verified findings about merged code enter the roadmap through intake #883 reads through this store), and verdict side effects (refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150 deleted them,
adjudication.py:1-4). - Tests: one
review_storefixture intests/conftest.py, built onisolate_data_dir, replaces the 15 patches of_get_reviews_base_dirin 7 files.
Delivery
- PR 1 (M): one resolver. Add
src/devops_cli/review/session.pywithReviewSessionStore.root(). Delete_get_reviews_base_dirand the dashboard's_reviews_root, and point every caller at the store. Add thereview_storefixture and replace the 15 patches. Tests first: the dashboard test from the body. It removesDEVOPS_CLI_DATA_DIR, pointsdata.dirat one temporary directory andDEVOPS_CLI_DATA_REVIEWS_DIRat another, writes a session, and asserts thatlist_review_sessionslists it; it fails today. A second test asserts thatroot()creates no directory when nothing is written. Files:src/devops_cli/review/session.py,src/devops_cli/ui/data_providers.py,src/devops_cli/ai/review/review_environment.py,runner.py,pipeline.py,exporter.py,category_metrics.py,src/devops_cli/commands/review.py,tests/conftest.py, and the 7 test files with patches. Refs refactor(review): review session store that owns layout, fingerprints and verdicts #771. - PR 2 (M): atomic writes and the marker.
ReviewSessiongetswrite_findings,write_raised(still writingcandidates.jsonuntil PR 3),write_sarif,write_report,write_profile,write_analysis,write_payloadandcommit. The pipeline's_persist_session_artifacts, the runner's profile write, the per-file payload writes and analysis.json go through them. Every run that writes a report callscommit()after the profile. Listing andlatest()use the marker. Tests first: a store whose raised-findings write raises leaves a session thatsessions()marks incomplete andlatest()skips; a recording writer showscomplete.jsonwritten after profile.json; a session dir withoutcomplete.json(as every session on disk today) is incomplete; the dashboard lists an in-flight session as incomplete. Files:src/devops_cli/review/session.py,src/devops_cli/ai/review/pipeline.py,runner.py,profile.py,src/devops_cli/review/analysis.py,src/devops_cli/ui/data_providers.py,src/devops_cli/config/constants.py,tests/test_review_session_store.py(new). Refs refactor(review): review session store that owns layout, fingerprints and verdicts #771. - PR 3 (L): every reader goes through the store, and the rename. This covers history, the exporter,
review stats,review findings,review verify,review score, the corpus commands,_find_session_dirand the dashboard summary.adjudication.pyreads and writes through the store. The file becomesraised_findings.json, the options become--raised, and the KB article that names the files is updated. Tests first: thergcheck below as a test intests/test_architectural_invariants.py;review verify --raised 1on areview_storesession records the verdict on both files;review findings --candidatesexits 2. Files:src/devops_cli/review/session.py,src/devops_cli/ai/review/adjudication.py,history.py,exporter.py,src/devops_cli/review/score.py,src/devops_cli/commands/review.py,src/devops_cli/ui/data_providers.py,src/devops_cli/lang/en/help.py,src/devops_cli/config/constants.py,src/devops_cli/ai/knowledge_base/devops_cli/tasks/ai_code_review.md, and generated CLI docs. Closes refactor(review): review session store that owns layout, fingerprints and verdicts #771.
Acceptance criteria
- One function resolves the sessions directory, and the writer, the dashboard and every reader use it. The dashboard test above passes, and it fails on the code at 3dd7fa6.
- A session is complete only once
complete.jsonexists. The store writes it after findings.json, raised_findings.json, findings.sarif, review.md, profile.json and (when group analysis ran) analysis.json. Each file is written to a temporary file and renamed into place. - Listing marks completeness, and
latest()and every reader return only complete sessions. A failed raised_findings.json write leaves a session the store does not list as complete. - No module outside the store builds a session file path:
rg -n '"(findings|raised_findings|candidates|profile|analysis|complete)\.json"|CONST_REVIEW_(FINDINGS|RAISED_FINDINGS|CANDIDATES|SARIF|ANALYSIS|REPORT|PROFILE|VERDICT_LOCK|SESSION_COMPLETE)_FILENAME|CONST_REVIEW_PAGES_DIRNAME' src/devops_cli -g '!src/devops_cli/config/**'matches onlysrc/devops_cli/review/session.py. -
adjudication.pyreads and writes through the store and keeps its lock and its put-back on a failed write. The existing verdict tests pass. -
rg -n "_get_reviews_base_dir|_reviews_root" src testsreturns nothing, and onereview_storefixture serves the tests that patched it. -
devops review findings --raisedanddevops review verify --raised <n>replace--candidatesand--candidate, andrg -n "candidates\.json" src/devops_clireturns nothing. - Tests run offline in
tmp_path, with no network or model, and each new test runs under 1 s. -
changelog.d/771.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Current references
- Dashboard resolver:
src/devops_cli/ui/data_providers.py:498-517; its readers:531-553(findings.jsonat:544),:556-580,:583-592. - Review resolver:
src/devops_cli/ai/review/review_environment.py:169-185; settingDEVOPS_CLI_DATA_REVIEWS_DIR:src/devops_cli/config/settings.py:604;resolve_review_data_path:src/devops_cli/core/repo.py:326. - Session writes:
src/devops_cli/ai/review/pipeline.py:4736-4779(findings.json:4748, candidates:4751, SARIF:4778, review.md:4779); per-file payloads:3192-3196,:3828-3832; session dir andfiles/:2421-2424. - Profile: written at
src/devops_cli/ai/review/runner.py:942;ReviewProfile.write/loadsrc/devops_cli/ai/review/profile.py:167-179;PROFILE_FILENAME:44. - analysis.json:
src/devops_cli/review/analysis.py:863-868. - Readers that treat findings.json as "complete":
src/devops_cli/ai/review/history.py:187;src/devops_cli/ai/review/runner.py:122;src/devops_cli/commands/review.py:1818,:1828;src/devops_cli/ui/data_providers.py:544,:592. - Other readers:
src/devops_cli/ai/review/history.py:207-212;src/devops_cli/ai/review/exporter.py:35,:135,:164-191;src/devops_cli/commands/review.py:1038-1047,:1081-1133,:1321,:2174-2177;src/devops_cli/review/score.py:407,:425,:455;src/devops_cli/ai/review/category_metrics.py:95-97. - Candidate options:
src/devops_cli/commands/review.py:1019,:1163. - Adjudication lock and put-back:
src/devops_cli/ai/review/adjudication.py:76-102. - File-name constants:
src/devops_cli/config/constants.py:872-882,:4038. - Atomic writer:
src/devops_cli/output/file_writer.py:80-111,:202; SARIF buildersrc/devops_cli/security/sarif.py:241, plain writer:273-282. - Test fixture:
tests/conftest.py:354-361. Patches:tests/test_review_defects.py(5),tests/test_review_runner.py(2),tests/test_run_store.py(2),tests/test_review_profile.py(2),tests/test_review_path.py(2),tests/test_review_backend_activity.py(1),tests/test_review_untrusted_tree.py(1).
Dependencies and order
- refactor(review): delete the legacy segment engine so the orchestrator is the only review engine #995, fix(review): verdicts land on the finding shown, record who gave them, and machine-invalidated candidates can be overturned #949, refactor(review): one finding verifier owns the verdict and its side effects #996, feat(review): subject-keyed review history with a leave-one-out baseline #607, feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 and fix(security): each finding keeps its own fingerprint across unrelated edits, and deduplication and correlation give one result in every input order, in devops scan and in reviews #1141: closed. - refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151 (v0.2.37): PR 1 and PR 2 of this item land after refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151's PR 1. PR 3 lands after refactor(review): the persona review stage, the legacy segment engine and review-time RAG are deleted, and devops review builds a model client only for the explanation stages #1151's PR 2, which replaces
_are_findings_duplicateinadjudication.pywith the (fingerprint, location) key and addsSavedFinding.fingerprint. - feat(review): feedback export counts each review subject once and keeps every human verdict #877 (v0.2.37): after PR 3. It reworks the exporter that PR 3 moves onto the store.
- feat(review): verified findings about merged code enter the roadmap through intake #883 (v0.2.37): after PR 3. It reads findings by fingerprint through the store.
- feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137: linked under P3. This item keeps its session-store scope, and the feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 freeze does not apply.
Context & Rationale
A review session's files have no owner. The literal "findings.json" appears 18 times across 6 files, and its two writers disagree: the pipeline moves INVALIDATED findings out of findings.json into candidates.json (ai/review/pipeline.py:2739), while the legacy runner keeps them. The exporter (whose default filter is INVALIDATED), review stats and category_metrics read only findings.json; the latest session holds 0 INVALIDATED findings there and 48 in candidates.json.
review verify rewrites only findings.json, picks a finding by position or title substring, and counts from 1 where MCP counts from 0. Learning side effects are wired by hand (5 auto_record_invalidated_finding calls among 23 apply_verdict calls), and verdict strings appear about 150 times across 16 files. Intake (#742) will take verified findings about merged code as candidates and needs one place to read them, and candidates.json collides with the glossary's Candidate.
Scope & Deliverables
- Deliverable: one review session module that owns creating and finding sessions, the on-disk layout, which findings are reportable and which are all findings, a stable fingerprint per finding, and recording verdicts together with their learning side effects.
- The pipeline, CLI, MCP, UI, exporter and stats go through it instead of reading paths.
- Intake reads verified findings by fingerprint through it.
candidates.jsonis renamed.- Tests use a temporary-directory session instead of writing and parsing session files by hand.
- Constraint: machine and human verdicts take the same write path.
Strategic Alignment
- Milestone: Backlog (no release)
- Design: CONTEXT.md (Review session, Finding, Verdict, Candidate)
- Depends on: none
Scope added 2026-10-02: the architecture review of 2026-10-02 (candidate 3) measured the session layout. Checked at 38517a8, including what has changed since this item was filed.
-
Since filing: fix(review): verdicts land on the finding shown, record who gave them, and machine-invalidated candidates can be overturned #949 (e4ea2e0) added
ai/review/adjudication.py. A person's or an agent's verdict now takes a per-session lock, writesfindings.jsonandcandidates.jsontogether and puts both back if a write fails. The CLI and MCP count from 1 alike, and a person's verdict records its catalog and ledger side effects there. feat(review): subject-keyed review history with a leave-one-out baseline #607 (35401dc) added a new reader,ai/review/history.py. refactor(review): delete the legacy segment engine so the orchestrator is the only review engine #995's proposed scope makesgenerate_consolidated_reportthe only writer offindings.json. -
The session's files are written by
ai/review/pipeline.py(findings.jsonat:3701,candidates.jsonat:3709,review.mdat:3728, per-file JSON underfiles/at:1283,:2037,:2736and:2896), byai/review/profile.py(profile.json, written atrunner.py:2045after the orchestrator returns) and by the legacy runner (runner.py:434). -
Five modules treat "
findings.jsonexists" as "complete":ui/data_providers.py:549,ai/review/exporter.py:147,ai/review/history.py:163,ai/review/runner.py:397andcommands/review.py:1488and:1498. Butfindings.jsonis written first, not last, and every file is written with a plainwrite_text. A reader during the rest of the write, or after a crash in it, sees a "complete" session withoutcandidates.json, andhistory.py:186then reads no candidates for it. The intended order is stated only in a docstring (ui/data_providers.py:563-566). -
Two functions resolve where sessions live, and they disagree.
_get_reviews_base_dir(ai/review/review_environment.py:160-173) usesDEVOPS_CLI_DATA_DIR/reviewsor thedata.reviews_dirsetting. The dashboard's_reviews_root(ui/data_providers.py:503-523) usesDEVOPS_CLI_DATA_DIRordata.dir, plusreviews, and ignoresdata.reviews_dir(DEVOPS_CLI_DATA_REVIEWS_DIR,config/settings.py:551). With that setting pointed elsewhere, reviews are written where the dashboard does not look (found by reading the code, not run). -
Session file names appear in about 25 lines of 7 modules, imports excluded. Tests patch
runner._get_reviews_base_dirat 12 sites in 5 files. -
Order: after refactor(review): delete the legacy segment engine so the orchestrator is the only review engine #995, so the store takes over one writer of
findings.json, not two. -
One function resolves the sessions directory. The writer, the dashboard and every reader use it. A test removes
DEVOPS_CLI_DATA_DIR(the autouseisolate_data_dirfixture sets it,tests/conftest.py:269-278, and it takes precedence in_get_reviews_base_dir), pointsdata.dirat one temporary directory andDEVOPS_CLI_DATA_REVIEWS_DIRat another, writes a session, and asserts that the dashboard'slist_review_sessionslists it. The test fails on the current code. -
A session counts as complete only once
findings.json,candidates.json,review.mdandprofile.jsonare all written: whatever marks completion is written after the others. Each file is written to a temporary file and renamed into place. Listing and "latest" return only complete sessions. Keepingfindings.jsonas the marker and writing it last keeps every session already on disk complete, with no compatibility code. A test that fails the write ofcandidates.jsonleaves a session that the store does not list as complete. -
No module outside the store builds a session file path.
rg -n '"(findings|candidates|profile)\.json"|CONST_REVIEW_(FINDINGS|CANDIDATES)_FILENAME|PROFILE_FILENAME' src/devops_cli -g '!src/devops_cli/config/**'matches only the store module. -
adjudication.pyreads and writes the session through the store, keeping its lock and put-back. Machine and human verdicts then share one write path, as the Constraint requires. This item does not move verdict side effects, whichadjudication.py(fix(review): verdicts land on the finding shown, record who gave them, and machine-invalidated candidates can be overturned #949) and refactor(review): one finding verifier owns the verdict and its side effects #996 own. -
One store fixture replaces the 12
_get_reviews_base_dirpatches (test_review_defects.py5,test_review_runner.py2,test_run_store.py2,test_review_profile.py2,test_review_backend_activity.py1).
Update 2026-10-08: refinement
The item holds: _reviews_root (ui/data_providers.py:503-522) ignores data.reviews_dir, and the report writes four files with plain write_text (ai/review/pipeline.py:4873-4934).
- The completion criterion and the
rgcheck includefindings.sarif, added by 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.
Proposed design
Problem statement
The review session's on-disk files (findings.json, candidates.json, review.md, profile.json, findings.sarif) are written and read by seven or more modules with no single owner. Two functions disagree on where sessions live, the completion marker is written first rather than last, files are written with plain write_text (no atomicity), and the literal filename appears in roughly 25 lines across 7 modules. This makes it impossible for new consumers such as intake (#742) to reliably read verified findings, causes the dashboard to miss sessions when data.reviews_dir is set, and leaves readers seeing incomplete sessions after a crash mid-write.
Acceptance criteria
- Criterion 1: One function resolves the sessions directory, and the writer, the dashboard, and every reader use it. A test removes DEVOPS_CLI_DATA_DIR, points data.dir at one temporary directory and DEVOPS_CLI_DATA_REVIEWS_DIR at another, writes a session, and asserts that the dashboard's list_review_sessions lists it. The test fails on the current code.
Verification: Run the new test (e.g. pytest tests/ -k 'test_reviews_dir_disagreement' or equivalent) and confirm it passes after the change and fails when run against the pre-change code. - Criterion 2: A session counts as complete only once findings.json, candidates.json, review.md, profile.json and findings.sarif are all written; the completion marker (findings.json) is written after the others; each file is written to a temporary file and renamed into place. Listing and 'latest' return only complete sessions. A test that fails the write of candidates.json leaves a session the store does not list as complete.
Verification: Run the new incomplete-session test (e.g. pytest tests/ -k 'test_incomplete_session_not_listed') and confirm it passes; also confirm that an existing session on disk (written before the change) is still listed as complete. - Criterion 3: No module outside the store builds a session file path. The rg check for findings.json, candidates.json, profile.json, findings.sarif and the related constants matches only the store module.
Verification: Run: rg -n '"(findings|candidates|profile).json"|findings.sarif|CONST_REVIEW_(FINDINGS|CANDIDATES)_FILENAME|PROFILE_FILENAME' src/devops_cli -g '!src/devops_cli/config/**' and confirm the only matches are in the new store module. - Criterion 4: adjudication.py reads and writes the session through the store, keeping its per-session lock and put-back on failure. Machine and human verdicts share one write path. Verdict side effects (catalog, ledger) remain in adjudication.py and are not moved by this item.
Verification: Run the existing adjudication tests (pytest tests/ -k 'adjudication') and confirm they pass; inspect adjudication.py to confirm it calls the store's read/write methods and retains its lock and rollback logic. - Criterion 5: One store fixture replaces the 12 _get_reviews_base_dir patches across test_review_defects.py (5), test_review_runner.py (2), test_run_store.py (2), test_review_profile.py (2), and test_review_backend_activity.py (1).
Verification: Run: rg -n '_get_reviews_base_dir' tests/ and confirm zero matches; run the full test suite for those five files and confirm they pass.
Key questions
- Which file serves as the completion marker, and why?: findings.json, written last. Keeping it as the marker and writing it last preserves every session already on disk as complete, requiring no compatibility code. (proposed)
- Does adjudication.py keep its per-session lock and put-back when it goes through the store?: Yes. The body states: 'adjudication.py reads and writes the session through the store, keeping its lock and put-back.' Verdict side effects (catalog, ledger) remain in adjudication.py and are owned by fix(review): verdicts land on the finding shown, record who gave them, and machine-invalidated candidates can be overturned #949 and refactor(review): one finding verifier owns the verdict and its side effects #996. (proposed)
- Is the rename of candidates.json in scope for this item?: Yes. The body lists 'candidates.json is renamed' as a deliverable, noting it collides with the glossary's Candidate term. (proposed) [sources: CONTEXT.md]
Open questions
- Which files constitute a complete review session? (missing verified source)
- What is the correct sessions-directory resolution, and why do the two existing functions disagree? (missing verified source)
- What is the ordering constraint relative to refactor(review): delete the legacy segment engine so the orchestrator is the only review engine #995? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Reopened on 2026-10-23 after an early close
devops roadmap close closed this issue on 2026-10-22 after the first part (#1830). The text of that pull request held a closing keyword in a sentence about a later pull request, and the parser read it as a closing link. The pull request itself said Part of. The closing was wrong, because two parts remain.
Delivered in v0.2.39:
- refactor(review): one resolver for where review sessions live #1830:
ReviewSessionStore.root()is the one resolver of the sessions directory. - refactor(review): stage a review session and publish it by one rename #1840: a review stages its session and publishes it by one rename.
Not delivered. These parts stay open and carry no milestone until the roadmap jobs place them:
- Every reader and writer goes through the store: history, the exporter,
review stats,review findings,review verify,review score, the corpus commands,_find_session_dir, and the dashboard summary and adjudication. No module outside the store names a session file. candidates.jsonbecomesraised_findings.json, and--candidatesand--candidatebecome--raised, with the changelog fragment and the generated CLI docs.
The task file docs/agent/tasks/task-771-review-session-store.md lists both parts. The pull request that finishes this issue adds changelog.d/771.md.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 3, 2026
Review redesign (#1137, 2026-10-03): linked, not re-scoped. This item keeps its session-store scope. The redesign's phase P3 job queue (P3-1) will be its own item when that phase starts; reusing this issue's number for it was considered and rejected.
dan-petty commentedon Oct 8, 2026
Linked: #872 and #1008 edit the same constructor and report writer (
ai/review/pipeline.py:2372-2377,:4811-4958); whichever lands second rebases. #1141 owns finding identity; the store keys verdicts on its fingerprint. Found by the 2026-10-08 backlog review.dan-petty commentedon Oct 14, 2026
Moved to the backlog: it was New, not Ready, when v0.2.36 started. (devops roadmap reprioritize)
dan-petty commentedon Oct 17, 2026
Readiness check for v0.2.37, against
release/v0.2.36at 22d8748. Line numbers are at that commit.Status: ready after a reference refresh. Land it after #1151, or first agree what replaces
_are_findings_duplicate: #1151 deletes it, andadjudication.pyuses it.Today
_reviews_root(src/devops_cli/ui/data_providers.py:498-517) ignoresdata.reviews_dir._get_reviews_base_diris atsrc/devops_cli/ai/review/review_environment.py:169-185._persist_session_artifacts(src/devops_cli/ai/review/pipeline.py:4736-4779) uses plainwrite_text, in this order:findings.json(:4748);:4751);:4778);review.md(:4779).profile.jsonis written after those (src/devops_cli/ai/review/runner.py:943,src/devops_cli/ai/review/profile.py:167-171).analysis.jsonis written atsrc/devops_cli/review/analysis.py:865.rgcheck matches 9 modules.References that moved
:4873-4934→:4736-4779.data_providers.py:544and:592;history.py:187;runner.py:122;commands/review.py:1818,:1828and:2175;exporter.py:35and:135.settings.py:551→:604.tests/conftest.py:269-278→:354-361.test_review_path.pyandtest_review_untrusted_tree.py.auto_record_invalidated_findingis gone (refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150).Dependencies
devops roadmap intake) #742 and fix(security): each finding keeps its own fingerprint across unrelated edits, and deduplication and correlation give one result in every input order, in devops scan and in reviews #1141.Questions for the owner
candidates.json? Renaming it means sessions already on disk won't be read, since there is no compatibility code.profile.jsonis written after the report, so the store needs a separate commit step that writes the completion marker last. Agreed?analysis.json,files/and.verify.lockare missing from the criteria and thergcheck. Add them?Slices (L overall)
The store is a new
src/devops_cli/review/session.py, tested with a singletmp_pathstore fixture. The dashboard-directory test and the failed-candidates-write test come first.dan-petty commentedon Oct 17, 2026
Moved to the backlog: it was New, not Ready, when v0.2.37 started. (devops roadmap reprioritize)
5 remaining items
refactor(review): one resolver for where review sessions live (#1830)
dan-petty commentedon Oct 22, 2026
What changed
#1830, merged into
release/v0.2.39as 893e535.26 file(s) changed.
How it was verified
Check runs at 28bea5f:
Acceptance Criteria of
docs/agent/tasks/task-771-review-session-store.md:No Acceptance Criteria section.
refactor(review): stage a review session and publish it by one rename (…
dan-petty commentedon Oct 23, 2026
What changed
#1830, merged into
release/v0.2.39as 893e535.26 file(s) changed.
How it was verified
Check runs at 28bea5f:
Acceptance Criteria of
docs/agent/tasks/task-771-review-session-store.md:No Acceptance Criteria section.
feat(release): v0.2.39 (#1947)