Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] This PR appears safe to merge; no actionable issues were found. SummaryNative analysis views now preserve the parent's
Reviews (1) · Last reviewed commit: "fix(analysis-view): preserve native rela..." · Reviewed by Greptile |
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Carry the parent native coverage facts through inline and retained views independently of row-page exhaustion. Preserve uncertainty, optional diagnostics and source Evidence. Refs #3891, #4263 Co-authored-by: ogutdgn <[email protected]>
|
Conflict check from the CI & conflict-fix track: main's 89dd71f ("fix(analysis-view): preserve native relationship coverage", Refs #4263) already lands this change. |
|
Conflict check from the CI/conflict track. I did not push anything.
|
|
Thanks for checking. This fix was incorporated into main in 89dd71f, which references this PR and preserves my contribution credit. Closing as superseded. |
Summary
Preserve the parent function analysis's relationship coverage in native analysis views, including read-limit reasons and diagnostics. An exhausted page no longer silently loses the source's declared incompleteness.
Fixes #3891.
Problem and expected behavior
A parent
analyze_functionEvidence record can declare partial callee coverage while containing an empty callee array. Previously,inspect_analysis_viewreturnedrelationship_coverage: nulland an exhausted empty page, dropping the parent's read-limit reason and diagnostic. Finishing the recorded rows must not erase known limits of the original analysis.Change and scope
Forward existing parent coverage at
createAnalysisViewEvidence, the shared CLI/MCP Evidence creation boundary, for native views. Preserve exact coverage states and optional fields; missing coverage stays null. Row paging and ordinary dossier limitations keep their existing meaning. The existing Evidence envelope owns this information, so no duplicate field or provider-specific interpretation is added.Contract and boundary impact
Expected effects:
Evidence and regression coverage
1b828dbb1: both new regressions failed on missing coverage; 29 existing boundary tests passed. Six CLI controls confirmed five populated coverage values were dropped while the null control stayed null.2202e3f0bfound the affected service, native projection, and Evidence implementation unchanged. Current-branch validation below passed.{ "relationship_coverage": { "status": "partial", "limitations": ["Callees: fixture read stopped before all direct callees were returned"], "limited_directions": ["callees"], "diagnostics": ["Fixture relationship diagnostic"] } }The same response still has
normalized_result.item: []andnormalized_result.coverage.exhausted: true: paging exhaustion describes the retained array, independently of source coverage. Before the fix, the top-level coverage field was null.For evidence-bearing changes:
Validation performed
On macOS arm64 with Node v24.18.0, based on upstream
2202e3f0b:npm run test:focused -- tests/boundary/cli/analysisViewCli.test.ts tests/boundary/mcp/analysisViewMcp.test.ts src/domain/analysisView/analysisView.test.ts src/application/analysisView/AnalysisViewService.test.ts— 97 tests passed across four files, including compiled CLI and MCP boundaries.npm run check— passed typechecking, formatting, lint, module boundaries, unused-code/metadata checks, and architecture guards; lint reported 0 errors and 1,484 warnings.npm run verify:test-discovery— all 1,368 test files discovered exactly once.node scripts/rea.mjs inspect-analysis-view <partial-callee-request.json> --format json— exit 0; exact parent coverage preserved, with the original empty/exhausted page.git diff --check— passed.npm run check:fast— passed via the pre-push hook; pre-commit formatting/lint hooks passed without changing the tested patch.Compatibility, safety, and release
Author readiness
Human owner: @ogutdgn
Before merge
type(scope): outcome.