Repository navigation
feat(analysis): resolve every finding to a source-currentness disposition (#3280, C1 of #3212) - #3291
Conversation
…tion (#3280) RIPR-SPEC-0151: every finding now carries a producer-owned source_currentness (candidate_current, base_deleted, moved_or_renamed, unresolved_subject) resolved from the diff evidence that seeded the probe. Removed-only Rust probes record the base-side line coordinate instead of a projected new-side target — the line-29-in-a-13-line-file shape — and ids stay content-addressed without line numbers. Preview producers and pre-field artifacts read as the explicit unresolved unknown; no gate, count, or actionability policy changes in this slice. 176 golden fixtures re-blessed citing the spec; candidate-line count now counts candidate-current anchors only.
Allowlist the three new public re-exports, sort the policy baselines, and replace one prohibited static-language term in a comment.
…ss slice (#3280) Review finding: recording the base-side line on removed-only probes fed a base coordinate into the new-file flow/value classifiers — the golden corpus caught a propagate unknown->yes flip, a fabricated flow sink, and a confidence change on the removed-line fixture, and the fixture's own SPEC.md (#1222 RANK-1) mandates the new-side coordinate. The disposition alone carries revision semantics in this slice; consumer re-coordination of deleted-side evidence moves to the #3212 projection slice, and the spec now states that boundary. Corpus diff is exactly the additive field.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedToo many files! This PR contains 399 files, which is 299 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (399)
You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Confirmed findings
- Public API baseline adds SourceCurrentness + SOURCE_CURRENTNESS_VALUES; lib.rs re-exports SourceCurrentness. Public surface expansion is intentional and documented in OUTPUT_SCHEMA.md + spec, so this is informational rather than blocker.
- Two fixtures (boundary_gap, multi_hunk_removed_line_wrong_target) carry non-canonical or duplicated Pending CHANGELOG entries; the substantive producer slice is correct but xtask bless hygiene would benefit from a single canonical Pending block per fixture.
Verification questions
- Confirm repo-mode probes bypass resolve_probe_source_currentness and are hard-coded to SourceCurrentness::CandidateCurrent; consistent with ‘repo seeds from current tree’ but loses per-probe evidence check that diff path provides.
- Confirm boundary_gap/expected/CHANGELOG.md contains two identical 'Pending' RIPR-SPEC-0151 entries (no second reason variation).
- Confirm boundary placement in output/json/report.rs makes source_currentness the unconditional trailing field; this forced the trailing-comma simplification in optional chains above and is the structural hook for future #3212 work.
- Confirm discriminating proof: resolver neutered → 3 fail, restored → green per PR body.
- Confirm multi_hunk_removed_line_wrong_target/CHANGELOG.md carries three Pending entries (additive field, candidate-line count, producer-slice restore) — the second and third are informational narration of prior iterations, not current reason.
- Confirm test fixtures create Finding structs without setting source_currentness in any helper—no compile error indicates the struct is exhaustive.
- Confirm artifact-verifier sensor failed (exit code 2) — goldens were re-blessed in this PR but verifier step did not complete; verify the 176 goldens actually re-validate via the proof broker rather than trusting the inline report.
- Confirm sibling projections of Finding (sarif, github, human, render, lsp diagnostics/lens, context_packet, next_step, perl/ts preview cards, finding_alignment, ts packet projection) NOT patched for source_currentness; only json::report.rs adds the field. Sibling renderers inherit it via their serialisers but are unverified; pre-#3280 artifacts written by those renderers (or replayed by them) read back as UnresolvedSubject via serde default.
Refuted
- Resolver neutering proof is unsubstantiated; refuted because: PR body asserts the discriminating proof was run; this is author-asserted not receipt-cited. Marking as verification-question, not blocker.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
…#3280) The architecture gate caught serde_json use in domain; the wire pin and the pre-field artifact back-compat test now live in app/check_artifact where JSON is allowed, and the domain test pins the stable labels only.
|
Exact-head review record — REVIEW_READY (author self-review)
|
Production delta
Closes #3280 — C1 of #3212, governed by RIPR-SPEC-0151 (new,
proposed): every finding now carries a producer-ownedsource_currentnessdisposition naming which revision owns the actionable source.domain/probe.rs—SourceCurrentness(candidate_current|base_deleted|moved_or_renamed|unresolved_subject),SOURCE_CURRENTNESS_VALUES, and a non-optionalFinding.source_currentnesswith#[serde(default)]so pre-field artifacts read back as the explicit unknown, never a fabricated disposition.analysis/probes/diff.rs—resolve_probe_source_currentnessfrom the diff evidence that seeded the probe:after-carrying →candidate_current; removed-only →base_deleted, ormoved_or_renamedwhen the same trimmed expression re-appears among the file's added lines; evidence-less → the explicit unknown.analysis/language/rust.rs— diff loop resolves the disposition per probe; repo mode iscandidate_currentby construction. Preview producers (TS/Python/Perl) explicitly emit the unresolved unknown.output/json/report.rs— the field is always emitted as the final finding field; the preceding trailing-comma chain simplified accordingly.policy/output_contracts.txt(+ gate kind),docs/OUTPUT_SCHEMA.md, spec + README + doc-artifacts,.ripr/traceability.toml, 3 public-API baseline entries.Recorded coordinate unchanged (review-hardened): an earlier revision of this PR recorded the base-side line on removed-only probes; adversarial review proved in the golden corpus that the base coordinate feeds the new-file flow/value classifiers (a
propagateunknown→yesflip, a fabricated flow sink, a confidence change on the removed-line fixture) and contradicts the #1222 RANK-1 fixture contract. The disposition alone carries revision semantics in this slice; consumer re-coordination of deleted-side evidence (base identity, projections, edit-target suppression, SARIF/LSP/context-packet mirroring) is the #3212 projection slice (#3281).Evidence delta
mainverified exactly additive — the only non-field lines are trailing commas ("language": "rust",).cargo xtask goldens check,fixtures,dogfood,precommit,check-output-contracts,check-traceability,check-spec-format/-numbering,check-doc-artifacts/-index,check-static-language,check-no-panic-family,check-public-api,check-architecture, and the rest of the battery pass; full lib suite 4280 green;--all-featurescompiles.Acceptance matrix (#3280)
base_deletedbase_deletedfindings)candidate_currentNon-claims
moved_or_renamedfamily-match tightening).multi_hunk_removed_line_wrong_target's SPEC.md (Input-layer wrong-target: removed-line probe anchors old-side line to new file path on multi-hunk git diffs (+ plain-diff multi-file leak) #1222) remains authoritative.unresolved_subjectuntil their producers resolve.Candidate head:
caf744e4(baseorigin/main@723414bb, includes the #3288/#3290 rebase).