Skip to content

fix(baseline): an owner opt-out added after a baseline no longer reads its debt as resolved (#14898) - #15528

Merged
EffortlessSteven merged 12 commits into
mainfrom
claude/project-thread-yviqaz
Nov 21, 2026
Merged

EffortlessSteven merged 12 commits into
mainfrom
claude/project-thread-yviqaz

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • ripr baseline diff and baseline update --remove-resolved no longer read a baseline entry as resolved when the current repo-exposure analysis withheld its owner through an owner opt-out (#[mutants::skip], owner_mutants_skip).
  • These entries read suppressed with withheld_by: "owner_mutants_skip":
    • an entry whose seam id is in the disclosed seam_ids;
    • an entry whose unsuffixed changed_owner is in the disclosed owners.
  • These entries read not_evaluated instead, and update keeps them:
    • a line-suffixed or same-named owner;
    • a legacy entry with no changed_owner in a file holding a withheld owner;
    • an entry with no owner and no path while owners are withheld;
    • a malformed disclosure.
  • baseline create now records changed_owner per entry, and the gate decision carries analysis_scope.owner_opt_outs from the repo-exposure gap ledger.
  • Integer constant-tail credit ignores cfg-gated owner twins (false weakly_exposed) #15104 follow-up from the fix(rust): a cfg-gated owner's integer constant tail credits no propagation (#15104) #15197 readiness review:
    • RIPR-SPEC-0197 lists the empty, trailing-/, rooted and : literal forms as opaque;
    • the 15104 traceability file names the three new #[path] tests;
    • the #[path] unit test pins the empty and trailing-/ literals.

Source review: REVIEW_READY 2c63218

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-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-resolved keeps 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

  • One production behavior: the baseline delta and update reading of absent entries under an owner opt-out.

Non-goals:

  • The diff-scope --check-output ledger and PR-guidance routes carry no owner_opt_outs disclosure, so they apply no opt-out reading.
  • Gate decisions from older builds carry no disclosure either.
  • OUTPUT_SCHEMA states this.

Support-tier Impact

  • changes a JSON claim: changed_owner on baseline entries, withheld_by on delta items, and analysis_scope.owner_opt_outs on gate decisions, documented in OUTPUT_SCHEMA.

Policy Impact

  • process/network: policy/process_allowlist.d/14898-baseline-owner-opt-out.txt covers the e2e test that runs the ripr binary.

Proof

cargo xtask precommit                                   # pass
cargo test -p ripr --test baseline_owner_opt_out        # 3 passed
cargo test -p ripr --lib -- output::baseline diff::base_owner   # 89 passed; output::baseline 74 passed on the head
cargo xtask check-traceability
cargo xtask check-spec-format                           # pass

Result, failures, or skipped proof:

  • The e2e tests drive the real route end to end: gate check → baseline create, then check --format repo-exposure-json → reports gap-ledger --repo-exposure → gate evaluate --gap-ledger → baseline diff / baseline update.
  • Mutant check: with path normalization disabled, legacy_entries_and_malformed_disclosures_fail_closed reads the ./-spelled legacy entry as resolved, so the test discriminates.
  • An independent subagent review ran on the full diff. I applied its findings:
    • delta and update now read changed_owner the same way;
    • spelled owner keys are normalized;
    • the opaque literals are pinned.
  • The opt-out disclosure is read through outcome's shared owner_opt_out_disclosure (one validator; per Devin's finding). The output::baseline and output::outcome lib tests pass (128).
  • A second review covered the fix commit and found no fail-open paths. Its two test gaps are now covered: a spelled line-suffixed owner, and an other-file negative control.

Claim Boundary

  • What may be claimed: an owner opt-out added after a baseline does not erase that baseline's debt on the repo-exposure gate route.
  • What must not be claimed: anything about runtime mutation outcomes, or opt-out reconciliation on the diff-scope routes.

Rollback

Revert the squash commit. The baseline fields are additive, and older readers ignore them.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0016, RIPR-SPEC-0197
  • Tests: crates/ripr/tests/baseline_owner_opt_out.rs, plus output::baseline_delta unit tests; see .ripr/traceability.d/14898-owner-opt-out-baseline-delta.toml
  • Code: crates/ripr/src/output/baseline_delta.rs, baseline_update.rs, baseline.rs, gate/input.rs, gap_decision_ledger.rs

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

n/a

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New process-spawn surface is allowlisted with owner and reason.
  • Public JSON/schema changes are documented.

https://claude.ai/code/session_01YVdGzRfYc5eArcuwtUTBJg


Generated by Claude Code

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 148 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 788eed4e-7456-4780-a014-e9f2f2aa18f7
Commits

Reviewing files that changed from the base of the PR and between 692fc88 and 2c63218.

Files selected for processing: 17

  • .ripr/traceability.d/14898-owner-opt-out-baseline-delta.toml
  • .ripr/traceability.d/15104-constant-tail-cfg-twins.toml
  • changelog.d/14898-owner-opt-out-baseline-delta.md
  • crates/ripr/src/analysis/diff/base_owner.rs
  • crates/ripr/src/output/baseline.rs
  • crates/ripr/src/output/baseline_delta.rs
  • crates/ripr/src/output/baseline_update.rs
  • crates/ripr/src/output/gap_decision_ledger.rs
  • crates/ripr/src/output/gate.rs
  • crates/ripr/src/output/gate/input.rs
  • crates/ripr/src/output/outcome/mod.rs
  • crates/ripr/src/output/review_comments/mod.rs
  • crates/ripr/tests/baseline_owner_opt_out.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0016-baseline-debt-delta.md
  • docs/specs/RIPR-SPEC-0197-owner-return-pins.md
  • policy/process_allowlist.d/14898-baseline-owner-opt-out.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 20, 2026 02:16
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_ids reads suppressed with withheld_by: owner_mutants_skip.
  • So does an entry whose unsuffixed changed_owner (file half normalized) is in the disclosed owners.
  • 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 → gate analysis_scope → owner_opt_out_absence. Delta and update share that one predicate.
  • changed_owner is 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_target opaque forms.

Oracles.

  • The e2e tests in tests/baseline_owner_opt_out.rs drive 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_by and evaluation per 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 precommit passed.
  • output::baseline lib 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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_ids reads suppressed with withheld_by: owner_mutants_skip.
  • So does an entry whose unsuffixed changed_owner (file half normalized) is in the disclosed owners.
  • 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. Both ripr outcome and the baseline delta use it, with the same count and owner checks.
  • Plumbing: repo-exposure owner_opt_outs → gap ledger → gate analysis_scope → owner_opt_out_absence. Delta and update share that one predicate.
  • changed_owner is 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_target opaque forms.

Oracles.

  • The e2e tests in tests/baseline_owner_opt_out.rs drive 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_by and evaluation per 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 precommit passed.
  • output::baseline and output::outcome lib 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants