Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGscope/reviewMulti-persona code review engine, verification, and findingstype/featureType feature: a new function
Milestone
Description
Problem
- feat(review): each finding group gets a model-written explanation and plan grounded in the rule's documentation at the installed tool version, kept apart from findings, with every quote, citation, version and code block checked #1147 explains groups one at a time. The owner asked for correlation and investigation across findings, and no item links findings across groups [c-fidelity].
- The loop's valid defects come in families [measured: loop §4]:
- the 9 read-only-root-fs DaemonSets;
- the three broad-except entries (feat(cli): blind exception handling policy #423).
Acceptance criteria
- Deterministic cross-group keys: CWE, rule family, the symbol-graph component from
ai/review/ast_imports.py, purl, and manifest source. They are written as a correlation table inanalysis.jsonand review.md. - A "same root cause" statement is allowed only between findings that share a key.
- One plan job takes the checked feat(review): each finding group gets a model-written explanation and plan grounded in the rule's documentation at the installed tool version, kept apart from findings, with every quote, citation, version and code block checked #1147 outputs plus the correlation table, under the same G10 checks.
- The plan covers every finding, either planned or deferred with a reason.
- Order: introduced first, then severity, then file.
- Property test: findings are identical with this stage on and off.
- (person-run) On the loop input, the plan groups the 9 DaemonSets under one step.
- 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
- Model-proposed links? (proposed) None. Only key-sharing links are shown, so correlation never invents a finding.
Strategic alignment
- Milestone: none; the roadmap tooling places it. Depends on: feat(review): each finding group gets a model-written explanation and plan grounded in the rule's documentation at the installed tool version, kept apart from findings, with every quote, citation, version and code block checked #1147.
- Parent: feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 (phase P1b).
- 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.
Proposed design
Problem statement
The current review process lacks correlation and investigation across findings, with no item linking findings across groups. This makes it difficult to identify related defects that share common causes such as CWEs, rule families, symbol-graph components, or packages. A single review-level plan is needed to order the work across these groups and ensure deterministic cross-group linking.
Acceptance criteria
- Criterion 1: Deterministic cross-group keys are implemented using CWE, rule family, symbol-graph component from ai/review/ast_imports.py, purl, and manifest source.
Verification: The correlation table in analysis.json and review.md contains these keys and is written as specified. - Criterion 2: A 'same root cause' statement is only allowed between findings that share a key.
Verification: Code enforces this rule during the review process, preventing invalid cross-group links. - Criterion 3: One plan job takes checked feat(review): each finding group gets a model-written explanation and plan grounded in the rule's documentation at the installed tool version, kept apart from findings, with every quote, citation, version and code block checked #1147 outputs plus the correlation table under G10 checks.
Verification: The plan covers every finding with either a plan or defer reason, ordered by introduced first, then severity, then file. - Criterion 4: Property test ensures findings are identical with this stage on and off.
Verification: A property test is written that runs both with and without the new functionality and verifies identical results. - Criterion 5: On loop input, the plan groups 9 DaemonSets under one step.
Verification: The loop input produces a plan where the 9 read-only-root-fs DaemonSets are grouped together in a single step. - Criterion 6: Tests run offline with fakes and recorded tool output without network or real scanner.
Verification: All tests use fake data and recorded tool outputs, with execution time under 1 second per test. - Criterion 7: Changelog fragment records the change in changelog.d/.md
Verification: A changelog fragment is created at changelog.d/.md documenting this feature. - Criterion 8: uv run devops ci passes.
Verification: Running 'uv run devops ci' completes successfully without any test failures.
Key questions
None.
Open questions
- Model-proposed links? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGscope/reviewMulti-persona code review engine, verification, and findingstype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 14, 2026
Moved to the backlog: it was New, not Ready, when v0.2.36 started. (devops roadmap reprioritize)
feat(review): link related findings across groups and order review re…
dan-petty commentedon Oct 20, 2026
What changed
#1742, merged into
release/v0.2.38as 272c21a.7 file(s) changed.
How it was verified
Check runs at b458299:
Acceptance Criteria of
docs/agent/tasks/task-1148-related-findings-correlation.md:No Acceptance Criteria section.
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)