Repository navigation
fix(baseline): an owner opt-out added after a baseline no longer reads its debt as resolved (#14898) - #15528
Conversation
…ix, schema wording
…[path] tests (#15104 follow-up)
…elta and update; pin empty and trailing-slash path literals
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 52 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head 2545650
Source review of the full diff against main (17 files). No blocking finding.
Claim (#14898). Under an owner opt-out, baseline diff and baseline update --remove-resolved no longer read the opted-out owner's baseline debt as resolved, so the debt is kept rather than erased.
- An entry whose seam id is in the disclosed
seam_idsreadssuppressedwithwithheld_by: owner_mutants_skip. - So does an entry whose unsuffixed
changed_owner(file half normalized) is in the disclosedowners. - These cases read
not_evaluated, and update keeps them:- a line-suffixed or same-named owner;
- a legacy entry with no owner in a file holding a withheld owner;
- an entry with neither owner nor path while owners are withheld;
- a malformed disclosure.
Inspected.
- Plumbing: repo-exposure
owner_opt_outs→ gap ledger → gateanalysis_scope→owner_opt_out_absence. Delta and update share that one predicate. changed_owneris read the same way, blank values dropped, in both consumers.- The normalization only widens matches, so it only keeps more entries.
- The suffix base is computed on the raw key before normalization.
- The OUTPUT_SCHEMA, RIPR-SPEC-0016 and RIPR-SPEC-0197 statements match the code.
- The #15104 follow-up wording matches the
retarget_targetopaque forms.
Oracles.
- The e2e tests in
tests/baseline_owner_opt_out.rsdrive the real CLI route:gate check→baseline create, then repo-exposure → gap ledger →gate evaluate, then delta/update. They cover a skip added after the baseline, a deleted owner beside the skip, and a legacy baseline. - Unit tests assert bucket,
withheld_byandevaluationper entry, plus what update keeps. They include positive controls (plain fix, other-file owner) that still resolve. - A path-normalization mutant flips the legacy case to resolved, so that test discriminates.
Local proof on this head.
cargo xtask precommitpassed.output::baselinelib tests: 74 passed.baseline_owner_opt_out: 3 passed on the previous head; this head only adds unit-test cases.
Not covered here. Hosted checks for this head have not run yet. The diff-scope --check-output and PR-guidance routes carry no disclosure, so they are out of scope by design, as the schema states.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head 2c63218
Source review of the full diff against main (17 files). No blocking finding.
Claim (#14898). Under an owner opt-out, baseline diff and baseline update --remove-resolved no longer read the opted-out owner's baseline debt as resolved, so the debt is kept rather than erased.
- An entry whose seam id is in the disclosed
seam_idsreadssuppressedwithwithheld_by: owner_mutants_skip. - So does an entry whose unsuffixed
changed_owner(file half normalized) is in the disclosedowners. - These cases read
not_evaluated, and update keeps them:- a line-suffixed or same-named owner;
- a legacy entry with no owner in a file holding a withheld owner;
- an entry with neither owner nor path while owners are withheld;
- a malformed disclosure.
Inspected.
- The disclosure is read by one validator,
outcome::owner_opt_out_disclosure. Bothripr outcomeand the baseline delta use it, with the same count and owner checks. - Plumbing: repo-exposure
owner_opt_outs→ gap ledger → gateanalysis_scope→owner_opt_out_absence. Delta and update share that one predicate. changed_owneris read the same way, blank values dropped, in both consumers.- The normalization only widens matches, so it only keeps more entries.
- The suffix base is computed on the raw key before normalization.
- The OUTPUT_SCHEMA, RIPR-SPEC-0016 and RIPR-SPEC-0197 statements match the code.
- The #15104 follow-up wording matches the
retarget_targetopaque forms.
Oracles.
- The e2e tests in
tests/baseline_owner_opt_out.rsdrive the real CLI route:gate check→baseline create, then repo-exposure → gap ledger →gate evaluate, then delta/update. They cover a skip added after the baseline, a deleted owner beside the skip, and a legacy baseline. - Unit tests assert bucket,
withheld_byandevaluationper entry, plus what update keeps. They include positive controls (plain fix, other-file owner) that still resolve. - A path-normalization mutant flips the legacy case to resolved, so that test discriminates.
Local proof on this head.
cargo xtask precommitpassed.output::baselineandoutput::outcomelib tests: 128 passed.baseline_owner_opt_out: 3 passed.
Not covered here. Hosted checks for this head have not run yet. The diff-scope --check-output and PR-guidance routes carry no disclosure, so they are out of scope by design, as the schema states.
Generated by Claude Code
Summary
ripr baseline diffandbaseline update --remove-resolvedno longer read a baseline entry asresolvedwhen the current repo-exposure analysis withheld its owner through an owner opt-out (#[mutants::skip],owner_mutants_skip).suppressedwithwithheld_by: "owner_mutants_skip":seam_ids;changed_owneris in the disclosedowners.not_evaluatedinstead, and update keeps them:changed_ownerin a file holding a withheld owner;baseline createnow recordschanged_ownerper entry, and the gate decision carriesanalysis_scope.owner_opt_outsfrom the repo-exposure gap ledger./, rooted and:literal forms as opaque;#[path]tests;#[path]unit test pins the empty and trailing-/literals.Source review: REVIEW_READY 2c63218
Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a
Spec: RIPR-SPEC-0016 (baseline debt delta); RIPR-SPEC-0197 (follow-up wording)
ADR: n/a
Plan item: 0.11 release correctness blockers
Governing issue or accepted claim: #14898
Acceptance delta (one sentence): A baseline entry whose owner the current repo-exposure analysis withholds by an owner opt-out reads suppressed or not_evaluated instead of resolved, and
baseline update --remove-resolvedkeeps it.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-yviqaz
Stack parent or prerequisite PR (if any): builds on #14895 (owner opt-out disclosure, merged)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): n/a
Scope
Non-goals:
--check-outputledger and PR-guidance routes carry noowner_opt_outsdisclosure, so they apply no opt-out reading.Support-tier Impact
changed_owneron baseline entries,withheld_byon delta items, andanalysis_scope.owner_opt_outson gate decisions, documented in OUTPUT_SCHEMA.Policy Impact
policy/process_allowlist.d/14898-baseline-owner-opt-out.txtcovers the e2e test that runs theriprbinary.Proof
Result, failures, or skipped proof:
gate check→baseline create, thencheck --format repo-exposure-json→reports gap-ledger --repo-exposure→gate evaluate --gap-ledger→baseline diff/baseline update.legacy_entries_and_malformed_disclosures_fail_closedreads the./-spelled legacy entry as resolved, so the test discriminates.changed_ownerthe same way;outcome's sharedowner_opt_out_disclosure(one validator; per Devin's finding). Theoutput::baselineandoutput::outcomelib tests pass (128).Claim Boundary
Rollback
Revert the squash commit. The baseline fields are additive, and older readers ignore them.
Spec-Test-Code Traceability
crates/ripr/tests/baseline_owner_opt_out.rs, plusoutput::baseline_deltaunit tests; see.ripr/traceability.d/14898-owner-opt-out-baseline-delta.tomlcrates/ripr/src/output/baseline_delta.rs,baseline_update.rs,baseline.rs,gate/input.rs,gap_decision_ledger.rsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.https://claude.ai/code/session_01YVdGzRfYc5eArcuwtUTBJg
Generated by Claude Code