Skip to content

fix(classify): keep owner-calling demoted tests ahead of file-location rows under the cap (#9175) - #9903

Merged
EffortlessSteven merged 11 commits into
mainfrom
claude/related-test-retention-9175
Oct 23, 2026
Merged

EffortlessSteven merged 11 commits into
mainfrom
claude/related-test-retention-9175

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9175
Acceptance delta (one sentence): When the 8-row related-test window is full, a test that calls the owner by name but whose relation was demoted to weak_token_substring is retained (one row per test, or moved up if already windowed) ahead of the remaining file-location-only rows, without becoming the primary related test.

Root cause

Relation demotion plus tier-only ranking, not the cap alone. On tokio-rs/bytes d5c8ad3 truncate_to_zero_releases_shared_reference is related as weak_token_substring/low/no_call_path (diff-touched): truncate has several same-named owners and the receiver (from freeze()) has no resolved type, so the relation is demoted (intentional, fail-closed, credits no oracle). finalize_related_tests ranks by tier only, so 4 direct_owner_call + 4 medium same_test_file rows (bytes_cloning_vec, 3 doc tests that never call truncate) fill the cap and the Low row is cut.

Before

Kept 8: 4 direct_owner_call, bytes_cloning_vec, doc tests clear, from_static, is_empty. New test absent.

After

Ranking is unchanged. Only when the cap cut rows (retain_owner_calling_rows, reveal.rs):

  • Signalled tests (relation weak_token_substring and a captured call named like the owner) already in the window behind location-only rows move up (first row of each identity, removed highest index first, original relative order kept) to just ahead of the first non-primary location-only row; no row is added, evicted or changed.
  • An absent signalled test replaces the trailing location-only rows one for one and is inserted ahead of every surviving non-primary location-only row. Candidates are chosen by (file, start line, name), seeded with the window's tests, one row per absent test (pack_unique_tests_first contract, rust: a trait method changed in one impl reads exposed 1.0 from a test that calls a same-named method on another type (false exposed, itertools size_hint) #4760).
  • Row 0 never changes; window length, related_tests_total, cap, weak_token_substring/low/no_call_path disclosure and oracle credit are unchanged. Only oracle-partition rows are lifted; an unmatched demoted row stays in free slots only.
  • Visibility claim is limited to what is proven below (the parser-backed shapes), not every finding shape.
  • Intentional, fail-closed behavior change independent of the cap: exact_oracle_aligns_with_sink (finding.rs) refuses a row whose relation reveal does not credit (a name-only relation beside a reaching test). A previously Strong, aligned name-only row beside a reaching test can no longer set exact_oracle_covers_direct_sink even with no cap overflow and no retention signal; a credited aligned row still returns true; with no reaching test the rule is unchanged. Stated in the changelog fragment.

Verified (head 002ef41)

  • Unit tests: positive; order pin; tail-medium; already-in-window (7 location + 3 oracle rows); several windowed tests incl. one at the last index and adjacent tail indices; non-adjacent windowed tests with an unsignalled row between; one-row-per-absent-test; distinct tied tests; unmatched control; absent-signal baseline; shared-start-line sibling; consumer-level exact-oracle alignment. Mutation: restoring the old .rev() removal order fails both multi-identity regressions; disabling the signal or the reposition step fails the corresponding parser-backed tests.
  • Parser-backed producer to consumer (output::human, via a narrow cfg(test) analysis::retention_fixture_finding; analysis does not import crate::output): 7 location tests + 3 distinct-text assertions of the demoted test, total 10, window 8, one identity, primary protected; render_finding yields exactly five - related test rows including the retained test with its no call to the changed code found; linked by name only disclosure. Controls: wrong call name (not listed), no overflow. Analysis-side parser-backed tests assert window position only and are named accordingly.
  • cargo test -p ripr --lib -- analysis::classif render_finding_: 1666 passed, 0 failed. cargo xtask check-architecture: pass. cargo xtask precommit (merged origin/main 9b8246f): exit 0. cargo xtask goldens check and cargo clippy -p ripr --all-targets -- -D warnings exit 0 on the previous head with identical production logic outside the removal-order fix; precommit includes clippy and passed on this head.
  • Earlier hosted ci-policy failure: check-architecture (analysis test calling the human renderer), fixed; an expect() flagged by check-no-panic-family was removed.

Not verified

  • Goldens check and standalone clippy not re-run separately on this exact head (precommit covers lint); bytes d5c8ad3 dogfood of the final placement (clone deleted; parser-backed fixtures cover it); hosted Rust CI on this head.
  • The first() consumers are not exercised individually (row 0 unchanged by construction).
  • Residual (pre-existing): exact_oracle_aligns_with_sink finds the test body by summary.name == related.name only.
  • Only the call name is matched, not that the argument equals the changed boundary value.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

Source-of-truth and candidate metadata for qualification:
Proposal: none; repair governed by existing issue #9175.
Spec: no new spec; accepted retention and disclosure claim in #9175.
ADR: none required; existing analysis/output ownership is preserved.
Plan item: #9175.
Candidate branch (GitHub PR head is authoritative after publication): claude/related-test-retention-9175.
Stack parent or prerequisite PR (if any): none.
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): this existing PR is selected; no replacement PR.
Changelog disposition: changelog.d/related-test-retention-9175.md records retention/repositioning and the intentional oracle-credit guard.
Rollback: revert the eventual squash commit; no schema or data migration.

…n rows under the cap (#9175)

A test whose receiver type is unresolved among same-named owners is demoted
to weak_token_substring/low. The render cap then kept eight medium
same_test_file rows that never call the owner and dropped the diff-added test
that calls the owner with the boundary input. Rank such a demoted row that
has a captured owner-name call above file-location-only rows (ordering only;
its reason, confidence and no_call_path miss are unchanged).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC
@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 Oct 23, 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 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 129 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: a88dda9c-1eec-4012-a396-ae51b44ab78c
📥 Commits

Reviewing files that changed from the base of the PR and between 0abe9d4 and 85948c7.

📒 Files selected for processing: 6
  • changelog.d/related-test-retention-9175.md
  • crates/ripr/src/analysis/classifier.rs
  • crates/ripr/src/analysis/classifier/finding.rs
  • crates/ripr/src/analysis/classify/reveal.rs
  • crates/ripr/src/analysis/mod.rs
  • crates/ripr/src/output/human.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@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.

reviewed_head_sha: 88a1c0b (re-read before posting; base main 185e355)
disposition: REPAIR_REQUIRED (independent reviewer, not the author; COMMENT because GitHub gives no request-changes path on own PRs)

Blocking

  1. The primary related test can now be a Low demoted row, and no consumer or output was checked. In retention_rank the demoted owner-call row gets 7 and SameTestFile/SameModule get 6. When a finding has no High row and no other Medium row, evidence.related_tests.first() therefore changes from a medium file-location row to a weak_token_substring/low row. The new positive test pins exactly this (ranked[0] == truncate_to_zero).

    • Consumers that treat first() as primary: lsp/backend.rs:10167 (targeted-test packet), app/task_first.rs:715 fallback, output/human/sections.rs:180, output/evidence_record.rs:1052.
    • The PR body says "witness fix_site was not re-examined" and the argument-value gap is open. Those are the surfaces where a weaker relation moves into the primary slot, so this is missing proof, not a nit.
    • Needed before REVIEW_READY: either one consumer-level test that renders the human line or packet for this case and asserts that the Low/no_call_path disclosure is visible and no fix_site/target is derived from it as if it were a direct call; or an explicit statement of why the primary slot may be Low.
    • I did not find evidence that fix_site reads related_tests.first() directly, but I did not trace every consumer in the list. Not established.
  2. The reorder is wider than the PR claims. With any signal present, every SameTestFile/SameModule row drops from 8 to 6, so it falls behind OwnerNamedTest, ImportPathAffinity, AssertionTargetAffinity, ReExportChainFollowed and SeamCalleeCall rows that previously tied with it (tie broken by touched, then name). The PR body only says the demoted row moves above file-location rows. These rows can lose a cap slot or primary position to other mediums, and the file-location rows are reordered even when the demoted row is not the one displaced.

    • Plausibly intended, but it is undocumented and unpinned. The negative test passes direct/named leading and does not isolate "file-location below other mediums only under the signal".
    • Fix: add a test with a SameTestFile row, an AssertionTargetAffinity row and a signalled demoted row asserting the order. Then state the behavior in the doc comment and PR body.
  3. Proof not complete on my side or the author's.

    • cargo test -p ripr --lib analysis::classify::reveal timed out twice for me at about 580s under shared-target contention, with no result. Instrument/infra state, not a source failure. The author's 1261-passed claim for the classify module is unverified by me.
    • Author's precommit did not complete.
    • I did not run cargo xtask goldens check. The author reports exit 0, so no golden shows the effect.
    • No hosted CI on this head observed. The PR is a draft.

Non-blocking

  • Changelog: the repo uses changelog.d/ fragments. None is in this diff (only reveal.rs changed). If check-doc-artifacts or check-pr requires a fragment for a behavior change in related-test selection, add one. No spec or traceability entry mentions #9175 either, and the existing related-test retention specs (#8387 / #4760 family) are not updated. I did not confirm whether a gate demands these.
  • OwnerCallKey = (file, start_line) is shared by multiple rows of one test (per-assertion rows), which is fine. Two tests with the same start line in one file (macro-generated) would share a key. Edge case, acceptable.
  • finalize_related_tests is now #[cfg(test)] and only a shim, so production calls only the _with_owner_calls variant. Fine, but the doc comment above it still describes the old function.
  • Ordering is deterministic: stable sort_by_key after the existing name/line sort, the key is a pure function of the row, and the empty-signal path is rank*4, byte-identical to the old ordering.

Verified / answered

  • Signal derivation: owner_call_demoted_rows uses TestSummary.calls (CallFacts from the index), not comment or string scans. It requires WeakTokenSubstring and call.name == bare owner (rsplit("::").next()). No owner means empty set.
  • No change to emitted reason, confidence, miss, related_tests_total or oracle credit: ranking runs after crediting and only reorders before the dedup/partition/cap. matched_total is computed before the cap. Unmatched rows are still packed only into free slots, so a demoted row with no assertion cannot displace an oracle row. A demoted row with a matched assertion in the oracle partition can now displace a file-location oracle row. That is the intended behavior, but it is part of finding 1's consumer question.
  • High and other-medium rows are never displaced by the signal. The row only passes Low and the file-location mediums.

Ran (worktree /home/claude/wt-review-9903 at the exact head, CARGO_INCREMENTAL=0, shared target)

  • cargo test -p ripr --lib owner_call: 181 passed.
  • Mutation 1: force retention_rank to ignore the signal (if true || owner_calls.is_empty()). owner_calling_demoted_row_outranks_file_location_only_rows_under_the_cap and owner_call_signal_does_not_lift_other_rows_or_pass_higher_tiers both FAIL.
  • Mutation 2: make the call-name predicate true ||. owner_call_signal_needs_a_captured_owner_call_on_a_demoted_relation FAILS, 180 passed.
  • Both mutations were reverted (clean tree). The three new tests discriminate the intended behavior.
  • analysis::classify::reveal full filter: timed out, see finding 3.

Missing / not claimed

  • Rendered human/JSON/LSP output for a Low primary row.
  • fix_site/witness effect.
  • Goldens, precommit and hosted CI on this head.
  • This review makes no claim about argument-value matching, which the PR also does not do.

Repair through the same candidate (findings 1 and 2, then rerun the reveal module and the goldens), and I will refresh only the production and test dimensions.


Generated by Claude Code

…r taking row 0 (#9175)

Address review: the demoted row no longer changes ranking. When the render
cap cut rows, a demoted row whose test calls the owner replaces a trailing
file-location-only row of the window, is inserted after the last
non-location-only row and never at index 0, so the primary related test and
every other row's position are as before. Adds order-pin and no-displacement
tests and a changelog fragment.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

@github-actions github-actions 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.

Verification questions

  • Confirm tests cover replacement ordering and ensure higher-tier and non-location medium rows retain their positions, but do not cover downstream rendering or fix_site consumers.
  • Confirm tests cover only unique file/start-line fixtures, leaving row-identity collisions across multiple related assertions at one test location unproved.
  • Confirm the retention change is limited to capped oracle rows and does not alter row count or relation disclosure.
  • Confirm owner-call key construction and later RelatedTest lookup use different identities: the former uses TestSummary.start_line, while the latter uses RelatedTest.line.
  • Confirm consumer rendering and fix_site remain unproved at the integration boundary.

Refuted

  • The added ownership-sensitive collections introduce dangling references or aliasing hazards.; refuted because: Rows are cloned into owned values and keys own their paths and line numbers; no borrowed token or pointer escapes the function.
  • A same-named but unrelated call is sufficient to forge a trusted owner relation and gain oracle credit.; refuted because: The name-only match is admitted to identify retention candidates, but eligibility still requires WeakTokenSubstring; no tier, confidence, miss, propagation, infection, or oracle credit is changed.
  • Cloning and splicing retained rows could cross an unsafe ownership or async boundary.; refuted because: The modified function operates synchronously on owned Vec values, cloning only ordinary Rust records before local mutation; no raw pointer, unsafe block, spawned task, or cross-thread transfer is introduced.
  • When location-only rows are all needed, retaining one-for-one can overflow the render cap.; refuted because: The implementation counts replaceable rows in the existing window and inserts at most that many lifted rows, preserving the cap.
  • The new ordering may necessarily replace the primary related-test row.; refuted because: The implementation removes only location-only rows after index 0 and inserts signalled rows after the last non-location-only row, while tests assert kept[0] equals plain[0].
  • The patch does not touch buffer allocation, slicing, capacity, length snapshots, ArrayBuffer/TypedArray state, or detach/transfer behavior.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@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.

Independent source review of exact head c134dec (head confirmed unchanged at review time; it contains base 185e355, and main is 4 commits ahead, none touching reveal.rs, so behind-only). Scope: full diff of crates/ripr/src/analysis/classify/reveal.rs plus the changelog fragment, and the consumers of the window. I did not run the tests locally; this is read-only source review.

Verified

  • Signal and lookup identity: both sides use (test.file, TestSummary.start_line). RelatedTest.file/.line are populated from test.file/test.start_line at every push site (reveal.rs ~1979, 2302, 2395, 2422), and RelatedTest.relation_reason is the same reason as the tuple. Duplicate keys collapse in the set, so there is no wrong-key lift in normal input. Residual: two tests in one file sharing a start line (macro-generated) would let an unsignalled WeakTokenSubstring row be lifted via a sibling's key. Very unlikely and display-only, but it is not asserted anywhere.
  • Row 0 never moves: removal loop is index > 1, replaceable skips index 0, insertion at >= 1.
  • Cap, related_tests_total and disclosure: matched_total is computed before the cap and untouched; removed count equals inserted count (take == to_remove), so the window length is unchanged and free/unmatched packing is unchanged; lifted rows keep weak_token_substring/Low/no_call_path. The retention step runs only when oracle_rows.len() > CAP and the signal set is non-empty, so otherwise output is identical to main.
  • The signal is consumed only inside finalize_related_tests_with_owner_calls, after analysis (class, stages, credited oracle, credits(...)) is computed. It cannot create oracle credit, raise tier/confidence, or change the classification inputs. The reason-keyed consumers I checked (repair_route.rs ~579/674/691, best_relation_confidence_priority) are unaffected: row 0 stays, and the Low row only replaces a Medium row at index >= 1.
  • Tests would fail without the change: the positive and order-pin tests assert the demoted row's presence/position (absent on main, and the positive test asserts that setup explicitly); the negative tests equal baseline by design; the derivation test pins the key and the owner = None case. Changelog fragment follows the <!-- section: Fixed --> convention.

Findings

  1. (should address or refute with evidence) crates/ripr/src/analysis/classifier/finding.rs exact_oracle_aligns_with_sink (~369-405) scans evidence.related_tests (this window) with no relation-reason gate: it requires only OracleStrength::Strong plus oracle_text_aligns_with_sink, and finds the body by summary.name == related.name. A lifted demoted row is a matched && !credits_oracle row whose strength comes from probe_relative_oracle_strength (can be Strong), and by construction its test calls the owner by bare name, which is exactly the identity the alignment check wants. So a row that is intentionally non-crediting can now flip exact_oracle_covers_direct_sink (when discriminate == Yes came from other rows), which feeds next-step/assertion-repair guidance selection. Direction is suppression (missed advisory, not a false actionable), and the same exposure already existed for low rows under the cap, but this PR's claim "credits no oracle / treated by reason-keyed consumers as Low non-established" is not true for this consumer, and the cap-overflow case is new. Either gate that function on non-name-only relations, cap the lifted row's displayed oracle strength, or add a consumer-level test showing the flag cannot flip from a lifted row. The PR body's "not verified" list names the first() consumers but not this any-row scan.
  2. (minor, claim accuracy) reveal.rs retain_owner_calling_rows (~4587-4630): "no other row moves" holds when the trailing rows are location-only (the pinned test), but not when a medium non-location row (e.g. AssertionTargetAffinity, ordered after location rows by name within the tier) sits at the window tail. Then removal takes an earlier location-only row, the later non-location rows shift up one, and the lifted row lands after them. Row 0 is still safe, and total/cap hold, but "every other row's position identical" is overstated. A touched (#8387) location-only row can also be the displaced one. Soften the wording or add a pin for this interleaving.
  3. (minor, scope) Only rows in oracle_rows are lifted. A demoted owner-calling row that is AssertionNotObserving (unmatched, oracle: None) is packed into unmatched free slots and is never retained by this path. Probably acceptable for the bytes case, but the changelog/PR text says any demoted owner-calling test is retained.

Not verified

  • Did not execute cargo test/precommit/goldens; relied on the PR's reported results.
  • Dogfood of the revised placement on bytes d5c8ad3 (author also did not re-run).
  • Hosted checks on this head: 22 check runs, all that ran are success (workflow policy, wheel build, pip/uv journeys, ub-review, Graphite, GitGuardian), but the Rust test/clippy/msrv/coverage/cargo-deny/windows lanes are skipped (PR is a draft), so hosted Rust proof is missing, not green.
  • Provider reviews: Gemini (daily quota) and CodeRabbit (rate limited) posted no review; there are zero review threads. That is missing review, not clean review.
  • Whether probe_relative_oracle_strength actually yields Strong for a concrete lifted row (reasoned from source, not executed).

Verdict: findings (1 should-address, 2 minor); no evidence that the signal alters classification, row 0, the total, or the cap.


Generated by Claude Code

… tail ordering (#9175)

Review repairs. exact_oracle_aligns_with_sink now refuses a row whose
relation the reveal pass does not credit (name-only beside a reaching test),
so a retained demoted row cannot flip exact_oracle_covers_direct_sink. The
retained-row key now includes the test name, the doc states that rows after a
displaced location-only row shift up one place, and tests pin the tail-medium
interleaving and the shared-start-line sibling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

Copy link
Copy Markdown
Member Author

Repair for review 5623847041 pushed as dc25465 (single writer, same branch).

  • Finding 1: exact_oracle_aligns_with_sink (finding.rs) now uses oracle_crediting_relations and refuses a row whose relation the reveal pass does not credit (name-only beside a reaching test). New consumer-level test name_only_relation_cannot_align_an_exact_oracle_beside_a_reaching_test: DirectOwnerCall aligns (setup), WeakTokenSubstring beside a reaching test does not, WeakTokenSubstring with no reaching test is unchanged. This also tightens any name-only row already inside the window beside a reaching test, the same rule reveal applies to oracle credit.
  • Finding 2: claim corrected in the doc comment. Row 0, window length, total and relative order of remaining rows are unchanged; rows after the displaced (last) location-only row shift up one place. New test owner_call_signal_shifts_a_tail_medium_row_up_one_place pins the tail-medium interleaving.
  • Residual: the retained-row key now includes the test name; test owner_call_signal_does_not_lift_a_sibling_sharing_a_start_line.
  • Scope note: only oracle-partition rows are lifted; an unmatched (assertion_not_observing) demoted row is still packed only into free slots (documented).

Verified on this head: cargo test -p ripr --lib analysis::classif 1621 passed, 0 failed (ran before commit on identical content); cargo xtask goldens check exit 0; cargo clippy -p ripr --all-targets -- -D warnings exit 0. Not re-run: cargo xtask precommit (prior runs ended only on the shared-target lock instrument timeout), bytes dogfood of the revised placement, hosted CI.


Generated by Claude Code

@github-actions github-actions 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.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm a full sibling-route inventory of all downstream related-test consumers was not performed, so rendered consumer-level behavior remains outside this lane's direct evidence.
  • Confirm the revised placement keeps the first related-test row unchanged and limits displacement to trailing location-only oracle rows; the seeded thread confirms the consumer-level fix-site proof remains open.

Refuted

  • A borrowed key or retained row could dangle after sorting or vector mutation.; refuted because: Keys clone PathBuf/String and retention clones RelatedTest before insertion; all mutable operations are on owned Vec values, so no borrowed data survives the transformations.
  • The new exact-oracle lookup could retain a stale or unsafe view into related-test storage.; refuted because: No borrowed view escapes; relation and test data are consumed through owned iterators, and credit membership is computed before matching rows. This change also has no typed-array or buffer-resize surface.
  • The owner-call signal can accidentally lift an unrelated demoted test sharing a start line.; refuted because: Both sides of the lookup include test name in addition to file and start line, and the added sibling-collision test verifies an unsignalled same-line row remains dropped.
  • The ripr sensor failure means the implementation has a demonstrated behavioral failure.; refuted because: The packet records exit code 2 but supplies no substantive finding; source and focused unit tests in the diff cover the changed behavior, while cargo-test is scheduled late.

Evidence gaps

  • Behavior is proved mainly at helper level; no added test drives reveal_outcome from analyzed test summaries through RelatedTest construction, signal derivation, cap packing, and disclosure in one path.
  • Model proof intent was rejected by deterministic validation.
  • Human verification remains needed for downstream consumer behavior because the revised placement was not exercised end-to-end.
  • Scheduled cargo-test evidence is not yet available in the packet, so compile/runtime confirmation of the changed test surface remains pending.

@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.

reviewed_head_sha: dc25465 (re-read unchanged before posting)
integration_basis: PR base 185e355; observed GitHub merge object 3d26c21, parents c678372 + reviewed head, tree 756428e0bd0ff682d3f1433f471783a01483f924.
disposition: REPAIR_REQUIRED — independent review; COMMENT because the connected identity is the PR author.

Blocking finding: retention bypasses the distinct-test packing rule for repeated assertions; see the inline finding at retain_owner_calling_rows. This is executable on the current submitted production code, with only additional tests in an isolated review tree. No candidate source, branch or ref was changed.

Observed local proof (Rust 1.95.0, Linux x86_64, default features):

  • Pristine current head: cargo test --locked -p ripr --lib analysis::classif -j 2: 1621 passed, 0 failed. An earlier attempt had 1618 pass / 3 JSON owner-pin fixture failures; after the workflow-documented locked fixture dependency fetches and making Cargo/rustc available to child processes, all three pass. Preserve the earlier result as environment/setup evidence, not a candidate failure.
  • Current production + 3 added review tests: cargo test --locked -p ripr --lib review_9903 -j 2: 1 passed, 2 failed, exit 101. review_9903_repeated_assertions_keep_distinct_test_priority produced [doc_00, truncate_to_zero x7], instead of one retained row for the absent test. review_9903_already_retained_test_does_not_evict_more_tests replaced doc_05 and doc_06 with extra assertions of a test already present in the ordinary 8-distinct-test window.
  • Positive/negative control review_9903_distinct_tied_rows_are_stable_and_keep_disclosure passes: two distinct demoted tests tied by tier and line retain name order for forward/reversed input; primary, total, cap and WeakTokenSubstring/Low/NoCallPath remain intact; absent signal equals the ordinary baseline. Existing owner-call derivation, absent-owner, sibling-identity, tail-medium, no-replaceable-row and exact-oracle-credit tests also passed in the pristine 1621.
  • Test-only experimental patch SHA-256: 6428e7eeb4e05ad177a44b38fd90c0472f8993b46293fb8a51f604434f00e166. Raw red-result log SHA-256: da56431bd850c229300e586d71a58e57e970d34140631e842cb8e64696da9d68.

Inspected semantic owners and consumers: complete three-file diff; reveal signal/credit/rank/dedup/partition/unique packing/retention; exact_oracle_aligns_with_sink repair and its test; primary-row reads in human sections, LSP packet, task_first and evidence_record; controlling #9175 and the existing #4760 distinct-test regression. Row 0 is protected by removal/insertion bounds. Retention leaves reason/confidence/miss unchanged; reveal classification is computed before this step. The owner repairs for prior tail-order wording and same-start-line identity are present and their tests pass.

Evidence limits: no revised bytes dogfood or rendered CLI/LSP end-to-end proof in this lane; no full precommit or local hosted-matrix substitute. Wheel run 39903041159 is terminal success; advisory ub-review run 39903041183 was still active at this observation. Required Rust qualification has not been requested on this Draft and skipped lanes are not passes. Active main ruleset requires thread resolution; classic protection GET was denied with 403 Resource not accessible by integration and was not retried or rerouted. No merge-policy completeness claim.

Owner / governing claim: existing canonical writer on claude/related-test-retention-9175 / #9175.
Candidate: #9903 / reviewed head above; no competing writer or qualification request started.
Dependency: repair repeated-assertion retention through this same candidate before Ready.
Next: canonical writer retains at most one row per previously absent test identity, preserves already represented tests and ordinary per-assertion fallback, adds the two regression shapes, then returns the successor head for affected review and focused proof. Keep Draft; only after joined repairs/review/composition may the existing delivery owner request required qualification.

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

#9903 — PR_MERGED / POST-LAND_VERIFIED

Squash commit9b45b8be3ba77c58f82bf38fa956d239c3489ab4 landed at14:35:01 UTC. The PR still records reviewed head 85948c7b555002d7a22f932c6985e7d90d88e0b2. This lane observed it already merged when the terminal run was reconciled and did not issue a competing merge call.

The one existing owner campaign 39964016136 attempt1 completed success. Rust gate job120449300567 and required Ripr Rust Small Result120472485265 succeeded; the Result completed14:34:22 UTC, before the merge.

  • Actual native checkout: ca1538c7087aaf82e262f9404abd392a28d77d7e, parents main0abe9d41 + reviewed head85948c7b, tree 4403a549df4c42f1569dd93badfc8f4b1b46f267 (the candidate tree).
  • cargo nextest run --workspace --profile ci: 20157 tests across162 binaries,20157 passed,5 skipped; native summary950.496s. Actual PASS rows include the real parser-to-human five-row regression, duplicate-identity admission, adjacent/nonadjacent repositioning and credited/uncredited oracle controls.
  • Policy, evidence honesty, workspace/all-target/all-feature checks, strict Clippy, doctests, goldens, fixture contracts, verdict corpora, PR evidence and schema sweep succeeded. The previously stale selector golden passed on this integrated subject.
  • Complete current-head check inventory:47/47 returned,20 success/27 skipped, none active or failing. Both legacy statuses are success. All four review threads remain resolved.
  • Earlier39955124754 remains FAILED on its own ad586 subject; the new pass does not rewrite that history. No new test/build/qualification campaign was started by this lane.

Landing is separately verified, not inferred from a green head. Squash parent is 95cbf18e713ab0642ef6c8814d81f120edf9e537, tree 8c861011d85fc2beb15c90ba030dc81a0fb14d81. Its five complete candidate blobs (classifier, exact-credit guard, retention, human tests, changelog) match859 exactly. analysis/mod.rs also has the prior independent pilot helper; its retention test facade is unchanged. The squash changes exactly the six candidate paths; added/deleted-line content across those paths matches the reviewed contribution (both normalized SHA256 adf50244998821735cebea380f49e3ff90c095d82f166132ba1c24b3a6a5cc85). Later main94e3f767 changes TypeScript CommonJS surfaces rather than these retention paths. This is scoped landing verification, not a claim that every later main tree was executed in the frozen qualification; no post-merge CI replay was requested.

Source/oracle/integration acceptance reuses exact859 review5629296529, the preserved exact002 mutation/consumer evidence and the new terminal native receipts. The advisory packet's14:11 question about missing hosted qualification is answered by this separate terminal run; its original proof-intent gaps are not relabeled as a complete packet. The original primary,8-row cap,total,identity and weak/low/no-call disclosure remain protected.

The owner already posted issue acceptance and closed #9175; no duplicate issue mutation was made. Residual scope remains explicit: fixture-scoped visibility, bare call-name rather than boundary-argument equality, pre-existing summary-name lookup, no final bytes dogfood or individual first()-consumer runs. No remaining blocker for this PR is observed.

No author-branch write, alternate policy read, denied-read retry, new campaign, release/deployment, security/credential change or manual destructive cleanup was performed by this lane. Prior denials and unrelated approval/action holds remain intact.

@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.

reviewed_head_sha: dc25465 (re-read unchanged before posting)
disposition: REPAIR_REQUIRED, independent re-review; COMMENT because the connected identity is the PR author.

Delta since c134dec reviewed (finding.rs gate, reveal.rs doc, key, three tests) plus the whole PR.

Blocking (confirmed by reading current source; matches the existing inline P1 on reveal.rs:4605): retain_owner_calling_rows builds lifted with !window.contains(test), which compares whole RelatedTest values including oracle text. Every assertion row of one signalled demoted test is lifted, and each displaces a distinct location-only row (to_remove = lifted.len().min(replaceable)). This bypasses pack_unique_tests_first: one Low test with N assertions can displace up to N distinct tests. Fix: dedupe lifted by the (file, line, name) key and skip keys already represented in the window, then add a test with repeated-assertion rows of one demoted test. I did not execute this reproduction (disk exhausted mid-review); I did not dispute the P1's reported run.

1. finding.rs gate blast radius. The gate is not confined to retained rows. In reveal.rs the uncredited-match branch (~L2301) pushes a row with oracle: Some(..) and uncapped oracle_strength, so on main a name-only row beside a reaching test could be Strong, align with the sink, and set exact_oracle_covers_direct_sink (skipping annotate_related_test_misses and exact-oracle next-step selection) while the credited row did not align. The gate now closes that. Direction is fail-closed (a credited aligned row still returns true via any(); only an aligned-but-uncredited sole row loses suppression, so the ordinary missing-discriminator guidance path runs). But it is a behavior change on packets with no cap overflow and no retention signal, and it is disclosed only in a PR comment, not the body or changelog fragment. Request: state it in the body/changelog as intended. exact_oracle_aligns_with_sink has one production caller (finding.rs:59). Minor: the sink lookup finds the test by name only (find(|(s,_)| s.name == related.name)), so duplicate test names across files can pick another test's relation reason; now reason-sensitive, though pre-existing in shape.

2. Discrimination. Gate test: I removed the gate (if false && !credits(..)) and it fails at finding.rs:1133 ("a demoted row beside a reaching test must not align"); restored. Sibling-same-line test would fail on the old (file, line) key by construction (both rows share file and line 40 and the row count allows both lifts). The tail-order test pins current placement behavior; it is an order pin, not a failing-before test of this repair. cargo test -p ripr --lib -- analysis:: passed 7017, 0 failed on this head, which covers the gate across existing classifier tests.

3. Docs. The corrected doc comment now matches the code (row 0, window length, total, relative order; tail rows shift up one). The PR body still says "no other row's position moves" / "every other row's position are identical to before" and "Hosted CI on this head" as unverified. Body is stale on position claims and the gate; the comment does not replace it. Please edit the body.

4. Key. Signal build uses (test.file, test.start_line, test.name); lookup uses (test.file, test.line, test.name) and RelatedTest.line is assigned from test.start_line at construction, so they agree. Test-side helper and signal test updated consistently. The key does not fix the P1 above (that is per-assertion duplication of one identity).

5. Hosted checks on this head (completed non-skipped): pip and uv Python journey, Linux x64 wheel, ub-review, workflow policy, GitGuardian, Graphite: all success. The remaining jobs are skipped; there is no full Rust qualification result yet, so this is not evidence of Rust CI.

Not verified: cargo xtask goldens check on my run (build failed on disk exhaustion; the author reports exit 0), precommit, dogfood on bytes, the P1 reproduction, consumers of related_tests.first().


Generated by Claude Code

)

retain_owner_calling_rows compared whole rows, so extra assertions of one
demoted test (or of a test already in the window) entered the lifted list and
evicted distinct tests, bypassing pack_unique_tests_first. Candidates are now
chosen by (file, line, name), seeded with the window's tests, one row per
absent test. Adds both regression shapes and a distinct-tied-tests control;
the changelog fragment states the intended exact-oracle alignment gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

@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.

Independent re-review of exact head 03f5a2d (head confirmed unmoved at review time). Source/oracle review only; hosted qualification is not claimed.

Prior blocker (dc25465): resolved. retain_owner_calling_rows (reveal.rs) now seeds a seen-set with the window's (file, line, name) identities, admits only the first ranked row of each absent signalled test, protects row 0, and falls back to the ordinary window when nothing is replaceable. I ran both reproduction shapes plus further shapes against the head, by execution.

Executed at the exact head in a scratch worktree (CARGO_INCREMENTAL=0, shared target):
cargo test --locked -p ripr --lib analysis::classif -j 2 gave 1631 passed, 0 failed. That is the PR's 1624 plus 7 reviewer tests, which are scratch-only and not pushed:

  • Reproduction A (9 file-location rows + demoted row cloned 8x with different oracles): the demoted test appears once at index 1, 7 distinct docs are kept (doc_00 at row 0, then doc_01..doc_06), and total, length and row 0 match the plain baseline.
  • Reproduction B (7 docs + demoted test already in the window with extra assertions): output equals the baseline, and doc_05 and doc_06 are kept.
  • Only the signalled demoted test is lifted when an unsignalled demoted sibling has multiple assertions.
  • Two or more distinct absent demoted tests beyond the replaceable count: with 5 direct rows + 3 location rows (4 docs overflowing) and 5 signalled demoted tests, exactly 3 are lifted, zero docs remain, there are no duplicate tests, row 0 is unchanged, and total and length match.
  • replaceable_count = 0 (9 direct rows + 1 demoted): output equals the baseline.
  • Row 0 location-only (all-medium window): row 0 is unchanged, the lift lands at index 1.
  • Input reversed: identical names and total.

Code reading.

  • Lifted rows are drawn from ranked (the pre-pack list), so the unique-tests-first contract (#4760) holds. If unique tests fill fewer than the cap, every unique test is already in the window and lifted is empty.
  • The at insertion and the back-to-front removal are consistent, and max(1) guards index 0.
  • The only gating is !owner_calls.is_empty() inside the existing > RELATED_TESTS_RENDER_CAP branch, so no behavior change below the cap.

finding.rs gate (exact_oracle_aligns_with_sink).

  • It reuses the same oracle_crediting_relations predicate that reveal.rs and evidence.rs already use, so it adds no new rule.
  • It also refuses OwnerNamedTest (name-only) beside a reaching test. The changelog says "name-only", which covers both, so it is accurate.
  • The effect is bounded to discriminate == Yes, with return-value, error-path or field-construction probes, where the strong aligned row came only from a name-only relation beside a reaching test. The result is retained repair guidance. It is fail-closed (missed suppression, never a new actionable).
  • The consumer-level test passed. The same-name lookup residual (summary.name == related.name) is pre-existing and disclosed.

PR body and changelog accuracy. The body no longer says "no other row moves". It states the shift-up and displaced-row semantics, and it discloses the finding.rs gate in both the body and the changelog. One nit: reveal.rs:6273 still carries the assertion message "no other row moves". It is true for that all-location fixture but reads broader than the final design. Cosmetic only.

Hosted status (Draft). Observed at review time:

  • Success: workflow policy and wheel applicability, GitGuardian, Graphite AI Reviews.
  • In progress: wheel build and ub-review.
  • Skipped (not passes): rust-tests-junit, rust-coverage, msrv, future-clippy, Rust-only feature lane, windows, macos, vscode, droid and similar.

No hosted Rust proof exists on this head.

Not verified.

  • cargo xtask precommit and cargo xtask goldens check on this head (relying on the PR's own claim).
  • clippy.
  • The bytes d5c8ad3 dogfood on the final placement.
  • Hosted Rust CI.
  • The four first() consumers, beyond the row-0 identity checks above.

Verdict: no blocking findings at the source/oracle level; the prior blocker is repaired and verified by execution. This is a review of exact head 03f5a2d and does not substitute for hosted qualification.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 06:56
@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!

@github-actions github-actions 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.

Confirmed findings

  • crates/ripr/src/analysis/classify/reveal.rs:4608 — The index-1 fallback does not preserve the remaining location-row order when every non-primary row is replaceable. For nine file-location rows plus one demoted row, plain output doc_00..doc_07 becomes doc_00, truncate, doc_01..doc_06. This contradicts the broad 'relative order of all remaining rows are unchanged' doc claim, though row 0 remains unchanged. Add a test and either state the narrow invariant or preserve each surviving row's original slot.

Verification questions

  • Confirm downstream consumer-level rendering and fix-site behavior remain unproved; this lane only confirms the source-level ownership invariants.
  • Confirm the retained-row logic is bounded to the existing related-test window and preserves its first row.
  • Confirm a window containing only location-only rows can have its first location row shifted when retention inserts at index 1.
  • Confirm the test wrapper preserves production routing while tests can exercise the new policy without owner-call signals.

Refuted

  • The owner-call signal could promote a demoted test to primary or alter no-cap output.; refuted because: The helper skips index zero, inserts at an index clamped to at least one, and is called only after oracle-row overflow; the no-overflow and baseline-equivalence tests cover these routes.
  • This patch introduces a worker/async/GC handoff hazard.; refuted because: The changed production surfaces are synchronous Rust classification routines with no JS runtime, worker transfer, detach, callback, or GC-managed reference crossing.
  • An owned vector mutation could leave dangling references or stale active-view lengths.; refuted because: The diff uses owned collections and cloned identity values; it performs no memory-region mutation or allocation-view aliasing that could invalidate references.

Evidence gaps

  • The full classifier test receipt is still pending in this packet.
  • Downstream consumer behavior and hosted execution remain outside this lane's direct proof.
  • Model proof intent was rejected by deterministic validation.
  • ripr failed with exit code 2 despite cargo-test being scheduled late; hosted integration and downstream consumer behavior remain outside completed evidence.

@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.

reviewed_head_sha: 03f5a2d (re-read unchanged before posting)
integration_basis: candidate tree 0a2c1dd944a8c3c30a83ba5fd4816a2c2325a5f9; observed GitHub merge object 4a48b58, parents 12e63da + candidate, tree 6da31263af5bd1c39d4d5d826266a967525aa406.
disposition: SOURCE/ORACLE REVIEW COMPLETE; REVIEW_INCOMPLETE for final merge while existing required qualification 39914626515 runs. Independent reviewer of the canonical owner's repair; COMMENT under the shared connected PR-author identity.

Prior P1 from my dc25465 review is repaired and independently verified by execution. The exact same three scratch tests from the prior red experiment were added to an isolated checkout of this successor; production bytes were unchanged. cargo test --locked -p ripr --lib analysis::classif -j 2: 1627 passed, 0 failed, exit 0 (1624 submitted tests + 3 independent tests).

  • Original failing shape A: 9 docs + 9 assertion rows of one demoted test now retains exactly one demoted row, protects the original primary, keeps length 8 and total 18.
  • Original failing shape B: 7 docs + an already-retained demoted test with extra assertions now equals the ordinary baseline; doc_05 and doc_06 survive.
  • Distinct tied signalled tests keep their exact name order for forward/reversed input, with unchanged primary, cap, total, WeakTokenSubstring/Low/NoCallPath disclosure. Absent signal equals baseline.
  • Submitted absent-owner/call derivation, sibling-identity, tail-medium, no-replaceable-row and one-row-per-test regressions pass. The downstream name_only_relation_cannot_align_an_exact_oracle_beside_a_reaching_test also passes.
    The original negative witness remains 1 pass / 2 assertion failures on dc25465; it is not overwritten. New raw result SHA-256: 2d93df1c7101df8ddb8d94310e1fdc154c34a3b2a098c1d826362f7faa4255ba. Successor scratch patch SHA-256: 01bf676db05db14d27887f9731bf30e6d9d223e3dab861eebdfeb16fe9b650f5.

Semantic inspection: complete successor delta (reveal identity dedup, three tests, changelog), reusing my prior unaffected full-diff/consumer/credit review. Seeding seen with existing window identities prevents extra assertions of represented tests from lifting; ranked traversal plus seen.insert admits the first row per absent test without changing rank. Removal is still one-for-one and skips row 0; insertion is >=1. The new commit changes no relation, confidence, miss or credit producer. finding.rs is byte-unchanged from the already-reviewed credit repair; the new body/changelog now disclose its independent fail-closed effect. No cap-overflow-free retention change is introduced.

Reconciliation of bot review 5624953314: its ordering finding is refuted. Relative order compares surviving rows with one another; it does not require their original absolute indexes. In the quoted example, removing the inserted truncate row leaves doc_00, doc_01, ..., doc_06 in their original relative order. doc_00 remains at index 0. The doc/body explicitly state insertion after the last non-location row, never index 0, and shifts of surviving rows are expected. The all-location fixture owner_calling_demoted_row_is_retained_over_file_location_rows_but_never_first already pins this case and passes; the tail-medium fixture pins the other placement. Requiring every original slot to remain would contradict the documented insertion behavior. No source change is required for that finding.

Composition: the merge object includes #8633's private-method entry-hop repair. Its reveal.rs overlap is only equality_operands visibility; the additional owner-pin path lives in evidence/helper_transfer and the composed required matrix is already running. Later inspected main delta 12e63da..158ee2f touches CLI/recovery/output paths and does not change classify/classifier. Final qualification claim still requires the actual Rust-gates checkout and terminal result, not only this merge-ref observation.

Residuals / evidence limits: no final bytes dogfood or rendered CLI/LSP end-to-end run in this lane; original first()-consumer source inspection and row-0 identity tests remain the evidence. Same-name test-body lookup remains pre-existing, unchanged and disclosed. Classic protection GET remains the prior 403 integration-access gap and was not retried/rerouted; readable active ruleset requires thread resolution. Advisory ub-review completed success but its reporter remains INCOMPLETE (ripr sensor exit 2, cargo-test sensor 900s timeout); its separate focused-head pass is not full qualification. No duplicate writer, branch update or qualification request was started. Continue the existing qualification to terminal before final REVIEW_READY/merge judgment.

@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.

reviewed_head_sha: 03f5a2d (re-read unchanged immediately before submission)
integration_basis: PR base 185e355; observed GitHub merge ref 4a48b58, parents 12e63da + reviewed head, tree 6da31263af5bd1c39d4d5d826266a967525aa406. Observed main 158ee2f is newer; this merge ref is observed provenance, not asserted current-main integration proof.
disposition: REPAIR_REQUIRED — independent reviewer/closer; COMMENT because the connected identity is the PR author.

Blocking finding: the tail-medium insertion point leaves a retained owner-calling demoted row eighth, behind five location-only rows, still omitted from the human five-row evidence window. See the attached inline finding at retain_owner_calling_rows. The existing tail-medium test currently asserts that result; this needs a different oracle, not another green run of the same expectation.

Inspected: complete three-file PR delta, #9175 and discussion/review timeline, owner_call_demoted_rows, reveal_outcome producer/credit/partition/cap/identity handling, finding.rs exact-oracle gate, unique-test packing, human/JSON evidence windows, primary consumers in task_first/LSP/evidence_record/human sections, current workflow/check state and active main ruleset.

Prior repeated-assertion blocker: repaired in source by the window-seeded identity set and first ranked row per absent identity; both regression shapes exist, and exact-head execution is recorded in review 5624937555. Its old thread should receive this source-backed disposition and be resolved independently of the new ordering blocker.

Refuted bot claim (review 5624953314): inserting truncate between doc_00 and doc_01 does not change the relative order of surviving doc rows. The documentation distinguishes relative order from absolute positions and explicitly describes shift-up behavior; this is not itself a defect.

Current hosted qualification: run 39914626515, exact requested head above, Rust job 120285469875 remains in progress at Repository policy preflight. No duplicate qualification was requested. Other skipped Rust lanes are not passes; provider quotas are missing provider review. Active main ruleset 18845973 requires thread resolution and 0 approving reviews. The prior classic-protection 403 remains an access evidence gap; it was not retried or rerouted. Branch metadata reports required Ripr Rust Small Result.

Local proof: isolated reviewer checkout /workspace/review-9903-03f5a2dbc and separate target; command cargo test --locked -p ripr --lib owner_call_signal_shifts_a_tail_medium_row_up_one_place -j 2 is still compiling. This is pending execution, not a pass. No candidate production bytes, branch or ref changed.

Next: existing canonical writer repairs this same candidate while Draft; review the actual successor's affected source/oracle/rendering dimensions before requesting new exact-head qualification. Preserve running CI and unrelated source custody. Required checks and final REVIEW_READY remain prerequisites for normal expected-head squash.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 07:07
…cation-only rows (#9175)

The retained row was inserted after the last non-location row, so a medium
tail row left it eighth, behind five location-only rows and invisible in the
five human rows. Insert ahead of every surviving non-primary location-only
row (row 0, cap, total and disclosure unchanged). Replaces the tail-medium
oracle, adds an unmatched-row control and end-to-end tests from parser-backed
facts through cap packing to the human renderer (positive, repeated
assertions, wrong call name, no overflow).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

@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.

Independent exact-head review of b6180f6 (detached worktree, no edits to the branch). Question: does this head fix the prior blocking finding r4357014207?

Verdict: the blocking finding is fixed. No repair required on this dimension.

What I read: the full diff of reveal.rs (owner_call_demoted_rows, is_location_only_row, retain_owner_calling_rows, finalize_related_tests_with_owner_calls), finding.rs (exact_oracle_aligns_with_sink now gated on oracle_crediting_relations), the classifier.rs end-to-end tests, and the changelog fragment.

Behaviour at this head:

  • Insertion point is now the first surviving non-primary location-only row (skip(1).position(is_location_only_row)), so retained rows sit ahead of every surviving location-only row. It no longer uses rposition(non-location).
  • Row 0 is never touched (skip(1), index > 1).
  • Relative order of the other rows is preserved. The tail-medium test pins the one intentional shift, where a trailing medium non-location row moves up one place.
  • The 8-row window and the total are unchanged, because removals equal insertions.
  • Candidates are chosen by (file, line, name), seeded from the window, so each absent test gets one row. A test already in the window gets none.
  • Only oracle-partition rows are lifted. Unmatched assertion_not_observing rows are not.
  • Disclosure is intact. End to end the retained row keeps WeakTokenSubstring, Low and NoCallPath, and credits no oracle.
  • The new finding.rs rule uses the same credit predicate as the reveal pass. The changelog states this behaviour change and the unit test pins it.

Verification by execution:

  • cargo test -p ripr --lib analysis::classif passes: 1629 passed, 0 failed. This includes the tail-medium test, the end-to-end human-rows test and the repeated-assertions test.
  • Mutation: I changed the insertion point back to rposition(non-location)+1. Three tests failed: owner_call_signal_shifts_a_tail_medium_row_up_one_place, owner_calling_demoted_row_is_retained_over_file_location_rows_but_never_first and given_demoted_owner_calling_test_when_cap_overflows_then_it_is_visible_in_human_rows. I reverted it and the worktree is clean. The tests are discriminating on both the unit and end-to-end paths.
  • Controls, all covered and passing:
    • absent owner: owner_call_signal_needs_a_captured_owner_call_on_a_demoted_relation (owner None, empty signal)
    • wrong call name: the end-to-end clear() case retains nothing
    • no overflow: rows unchanged by the signal
    • unmatched row: never retained
    • duplicate assertions: one row, window of 8, other tests not evicted
    • also covered: no location rows to displace, same-start-line sibling, and distinct tied tests
  • The earlier repeated-assertion fix remains: owner_call_signal_admits_one_row_per_absent_test and the end-to-end keeps_one_row test both pass.

Non-blocking observations:

  • "Visible within the first five human rows" is proven for the fixtures only. The lifted row sits after any non-location rows that precede the first location row. If six or more such medium rows (for example AssertionTargetAffinity) preceded the location rows, it could land beyond row five. That is consistent with the documented ordering and is not a regression, but the claim is fixture-scoped.
  • The retain_owner_calling_rows doc comment has a very long line, with the "displaced rows are the last location-only rows..." sentence appended. This is cosmetic; cargo fmt does not reflow comments.

Not verified: cargo xtask precommit / check-pr, hosted CI on this head, goldens and fixtures beyond the analysis::classif filter, other test filters, and other-platform branches. This review covers source and oracle only; it is not a final-merge REVIEW_READY.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 08:30

@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.

reviewed_head_sha: b6180f6 (fresh remote read before submission)
integration_basis: PR base 185e355; observed main 69e1c17; GitHub merge object 06826ce has those main/head parents and tree 3f4612d29bec8b0ad37c3b9b819083be87be5f1f.
disposition: REPAIR_REQUIRED — independent reviewer/closer; COMMENT under the shared connected PR-author identity.

The original r4357014207 tail-medium counterexample is repaired. Its exact producer-order and human-render assertions pass on this head, as do the corrected refusal controls. This new sibling case is not repaired: a signalled test already represented in the ordinary packed window stays eighth behind seven location-only rows and disappears from the actual human evidence window. See the attached P2 at the window-seeded identity set.

Inspected the actual 03f5a2d..b6180f6 delta: insertion point, doc/changelog claims, changed tail-medium oracle, new unmatched control and parser-backed classifier fixture; traced reveal_outcome -> packing -> Finding -> human/evidence_lines.rs first-five selection and render_finding. finding.rs and human production rendering are unchanged from prior review. Default-feature Linux proof engages the changed synchronous classification/rendering path; no platform/process/security behavior changed here.

Observed execution, fresh isolated worktree and private target, Rust 1.95.0:
cargo test --locked -p ripr --lib review_9903_ -j 2 -- --nocapture: 4 passed, 1 failed, exit 101. Three passing scratch tests execute the original tail order, actual human visibility, and captured-call/absent-owner/at-cap/no-overflow/unmatched/disclosure controls. The fourth passing registered test directly invokes all four newly submitted parser control functions. The single failing parser-backed case proves ten distinct oracle rows, eight retained identities and then absence from exactly five actual related-test render lines. Full raw output and exact patch hashes are in the inline receipt. An earlier scratch version also gave 4/1; its row selector was tightened because the submitted helper included stage sentences. The final receipt prints the whole human output and uses an anchored selector.

Source custody: only scratch #[cfg(test)] additions in /workspace/review-9903-b6180f6dd; candidate production, branch and refs are unchanged. Session 16033 and its old target were neither reused nor destroyed; its original outcome remains UNKNOWN. Fresh successor proof cannot be relabeled as that lost run.

Currentness: review 5625794772/1629 green tests establish the submitted oracles' result, but do not refute this executed sibling counterexample. Marking Ready or a later green aggregate does not clear this new material finding. Current exact-head checks previously showed ordinary draft lanes skipped with advisory wheel/ub-review active; no duplicate qualification was requested by this lane. Re-read any newly triggered required request rather than canceling or refreshing it.

Next: same canonical author repairs this candidate while Draft, with joined source/oracle/claim corrections in the inline packet, then return the actual successor for affected review and bounded proof. Only qualified current-head proof, findings disposition, required checks, applicable approvals and final REVIEW_READY permit normal expected-head squash and main verification.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 08:32

@github-actions github-actions 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.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm consumer-level qualification remains a residual verification concern, although the added classifier test renders the first five human related-test rows.
  • Confirm the exact-oracle alignment change fails closed using the same relation-credit set as reveal.
  • Confirm the exact-oracle change is independently fail-closed and matches reveal credit policy, but downstream consumers still need integration evidence if they depend on related_tests.first() or rendered visibility.

Refuted

  • This PR changes a JS-backed asynchronous ownership boundary and therefore requires worker/GC review.; refuted because: The diff contains no JavaScript, worker, async, GC, detach, or transfer APIs; its affected behavior is synchronous Rust classification and rendering.
  • Owner-call retention is metadata-only and bounded: cloned owned rows are removed from and inserted into a Vec capped at eight; no unsafe pointer, slice, allocation-view, or external-buffer operation is introduced.
  • The retention change introduces a memory-safety or denial-of-service primitive through attacker-controlled metadata.; refuted because: Inputs are existing parsed test summaries and related-test rows; all keys/rows are owned, candidate identities are deduplicated, removals are bounded by the fixed render cap, and no unsafe/native operation is involved.

Parked follow-ups

  • Consumer-level first() behavior is not exercised by the added parser-backed human-render test, leaving downstream visibility qualification as residual risk.
  • Same-named tests in different files can still be conflated by exact_oracle_aligns_with_sink because lookup uses only summary.name == related.name; this is pre-existing, disclosed, and not worsened by the changed credit gate.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Current executable qualification is not present in the packet.

…ocation-only rows (#9175)

When the signalled test already sits in the packed window behind
location-only rows, reposition its first row ahead of them without adding,
evicting or changing rows. Distinct-text assertions and an anchored human
row selector in the end-to-end fixture; parser-backed already-in-window case.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

#9903 completed — PR_MERGED / POST_LANDING_VERIFIED

GitHub reports canonical head85948c7b555002d7a22f932c6985e7d90d88e0b2 merged by the existing owner at14:35:01 UTC as squash9b45b8be3ba77c58f82bf38fa956d239c3489ab4. This reviewer observed the landing during the final receipt read and made no merge request. Fresh GitHub main and local fetch show main94e3f7678f1c46c93b0728a13ac433ea4dd251d6 contains that squash.

Actual qualification is run39964016136 attempt1, source head85948c7b, executed checkoutca1538c7087aaf82e262f9404abd392a28d77d7e (parentsmain0abe9d41f9e7dcdf439d020db793d5b202b704fa + head8594; tree4403a549df4c42f1569dd93badfc8f4b1b46f267). Rust job120449300567 and required result120472485265 completed success. Complete native logs were read; the earlier partial-log uncertainty is resolved.

Executed proof:

  • cargo nextest run --workspace --profile ci: Summary[950.496s]20157 tests run,20157 passed(7 slow),5 skipped, across162 binaries. Actual PASS rows include the cap/identity/multi-row controls, credited/demoted/no-reaching oracle control, and genuine parser/classifier/render10-total/8-retained/5-visible test plus wrong-call/nonoverflow controls.
  • cargo test --workspace --doc:2 passed,0 failed,1 ignored.
  • Formatting, agent contracts, repository policy/architecture, honesty/dependency/process/network checks, workspace/all-target and all-feature compilation, strict Clippy, goldens, fixture contracts, all4 verdict-corpus gates, PR evidence and schema sweep passed. The corpus gates use their configured floors/ceilings; this is not a zero-false-verdict claim.
  • Schema sweep validated this run's live doctor/PR-evidence/review-comment outputs; its report names commitca153 and rows SHA256f4f25350975ade7963771aa7ff289f5974885721e435b6020893b506bd56740b. Declared authority-only/exempt rows retain their documented narrower proof.
  • Required-result native environment recorded ADMISSION_RESULT=success, TARGET=github, ROUTE_RESULT=success and GITHUB_RESULT=success. All47 current-head checks were terminal success/skipped at the final gate read; no unresolved inline thread or new source finding was present. Separate CI success was not substituted for this aggregate.

Landing currentness: squash9b45 has parent95cbf18e713ab0642ef6c8814d81f120edf9e537 and tree8c861011d85fc2beb15c90ba030dc81a0fb14d81. Main added #9962 pilot-root discovery before the squash and #9227 TypeScript CommonJS afterward. The landed six-file candidate's added/deleted bytes still equal the qualified delta (SHA256bbb8a9b702bdf7e8a4b7b836616c8b0ddc4937b69950d24df01c1255605bc21a). Inspected retention/classifier/finding/human/changelog blobs are identical in qualified head, squash and observed main; analysis/mod additionally has the unrelated pilot workspace helper. No execution on the later squash/main tree is falsely attributed to theca153 run, and no post-merge test replay was launched.

This terminal receipt supersedes the hosted-evidence gap in source/oracle review5629296529 and bot review5629445833. The previously verified safe movement, actual consumer connection, one-row-per-identity, protected primary/cap/total and weak/low/no-call disclosure remain delivered. The active ruleset required0 approving reviews and thread resolution; all4 threads were resolved. Classic protection remained unreadable from the earlier403; it was not retried or bypassed. This reviewer did not submit a GitHub approval or a final premerge REVIEW_READY before the owner's already-completed merge.

Retained GitHub artifacts (metadata/upload verified, ZIP contents not independently downloaded): nextest12508825397,641709 bytes,SHA256d118db1b6049eef75853dab2a742902fb6711c127d6d372b0c856dadf1a98137; calibration12507674147,59115 bytes,SHA2567f187da7be9fb41d29eb1c51cfa539e08be90da9c7136d5dd19d6c32200d6451. Full report upload was skipped by the successful-run policy; native terminal logs remain the inspected receipt.

Issue #9175 was independently closed by its existing owner with explicit residual accounting. No broader completion is inferred here: boundary-argument equality, universal five-row visibility/fix-site correction and final bytesd5c8ad3 dogfood are not delivered by this bounded claim; primary row is intentionally preserved and the summary-name lookup remains pre-existing. This reviewer did not close or reopen the issue.

No canonical push, duplicate build/qualification, force push, validation weakening, release/deploy/access change occurred. Current native work is terminal; original session16033 remains UNKNOWN with its target held and untouched. Prior denied operations remain stopped.

…nit test (#9175)

Hosted ci-policy failed check-architecture because an analysis test called
the human renderer. Analysis tests now assert the returned window position
and a renderer test in output::human proves the first five related-test rows
show a retained demoted row. Also drop an expect() flagged by
check-no-panic-family.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

@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.

reviewed_head_sha: 4106523 (fresh remote read, still Draft/open/unmerged)
integration_basis: PR base 9b8246f; observed GitHub merge object 6835196, parents 259a587 + reviewed head, tree 93f04bdb50fa247d301216aabacdf1f2e9664d9f. Later observed main fb91b06 is newer; the merge-ref observation is not executed qualification for that later basis.
disposition: REPAIR_REQUIRED — independent reviewer/closer; COMMENT under shared connected PR-author identity.

Blocking source defect: the existing Graphite finding r4358622907 is verified. In retain_owner_calling_rows, indices.iter().rev().map(|i| window.remove(*i)).rev().collect() consumes removal side effects in ascending index order. Two selected tail rows at indices 6 and 7 panic on the second removal (index 7, len 7). A nonadjacent 4/6 case moves an unsignalled row ahead of location rows and leaves a signalled row behind. The one-existing-row control passes. Consume removals from highest index first, collect, then reverse the completed moved vector; cover adjacent and nonadjacent multiple already-windowed signalled identities before further qualification. Source repair stays with the canonical writer.

Observed bounded native proof: exact production bodies of retain_owner_calling_rows, is_location_only_row and related_test_rank copied byte-for-byte from this pinned Git object into a std-only Rust harness with minimal field/type carriers. rustc 1.95.0 --edition 2024 --test compiled successfully; the executable ran 3 tests, 1 passed / 2 failed, native exit 101. It is a helper/iterator proof, not a full product/parser/render run. It varies the existing model finding with both panic and wrong-row cases; no Cargo build, target reuse or CI request was started. Source SHA-256 39c5c1be2a1481d16943a495d1a1028071a7c6d98dc13b056933f50fb41f2797; raw result 03ac81147a92f508d37b86822921a4b3ac166be6d112d61bcf197fe5c7f08401; executable 63bb635712b83f91027ddef88488a1c17beedf306582a27385baa29df2135ed2. Exact repro is being attached to the existing Graphite thread, not filed as a duplicate.

Consumer-level regression gap: the new given_demoted_test_already_in_the_window_when_cap_overflows_then_it_moves_up_in_human_rows correctly builds distinct-text assertions, asserts related_tests_total == 10 and len == 8, and checks its index against a copied constant 5. It never calls the human renderer. The output::human regression separately hand-builds a SIX-row Finding with a different retained_demoted name. It does not consume that ten-row parser-produced Finding and does not assert ten/eight/five in one producer-to-consumer path. Thus the requested combined regression is still absent from the new tests. Move/share the real parser-backed fixture through a permitted consumer test surface and assert exactly five anchored '- related test ' lines, the exact retained test name/disclosure, total ten/length eight/one identity, protected primary, plus the positive/wrong-call/no-overflow controls. Preserve architecture enforcement; a narrow cfg(test) analysis-facade entrypoint can support the consumer test without analysis importing output.

Verified source repair: the forbidden analysis-to-output dependency is gone (zero crate::output occurrences in classifier.rs at this exact head); the analysis/** deny rule remains unchanged, and rendering is now located in output::human. The prior b6180f6 architecture diagnostic is historical for that source, not an observed current-head failure. Current check-architecture/precommit/goldens/Clippy and 1642 passing tests are author-reported; this review did not rerun them or relabel old receipts as current runs.

Preserved positive dimensions: the single-row movement now works in the bounded native control, including length eight and protected row 0; submitted parser tests retain the original positive case, Low/WeakTokenSubstring/NoCallPath disclosure, distinct-assertion pre-cap total 13, wrong-call and no-overflow cases. Their source/oracle shape was inspected; their current-head product execution is not independently claimed here. The exact-oracle gate remains the same PR-owned change against the new base; inherited main changes were separated from the selected PR delta.

Current hosted observations: ordinary Draft Rust lanes are skipped; ub-review 39940030419 and wheel 39940030466 were active. No current-head required qualification receipt was observed. Skipped/advisory jobs do not qualify this head. Prior classic-protection and artifact-transfer denials remain stopped; no access retry, source edit, branch movement, label refresh or validation weakening occurred.

Custody: old session 16033 remains UNKNOWN; its target/worktree/evidence are untouched. The b618 negative witness archive and receipts remain retained. This pass owns only the small standalone proof under /workspace/review-9903-4106-evidence (about 6.9 MiB); terminal compiler/test/listing consumers have completed, with no product target or worktree allocated. Retain it for the open multi-row finding and successor review.

Next: same canonical author repairs removal order and supplies the actual combined consumer regression in one wave; review the actual successor and refresh affected proof before Ready/exact-head qualification. Keep Draft. No merge clearance is earned on this head.

@github-actions github-actions 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.

Verification questions

  • Confirm the already-window multi-row move sequence may remove ascending indices after vector compaction, potentially selecting the wrong row or panicking.
  • Confirm downstream consumer coverage is incomplete beyond the changed classifier and human-rendering tests; individual first() consumers and the failed ripr sensor require central qualification.
  • Confirm the new classifier tests assert source-level visibility, while the human renderer test uses a fabricated six-row finding rather than the parser-backed retained finding.

Refuted

  • The new reorder helper may retain dangling references into related-test storage.; refuted because: OwnerCallKey owns its path/name data, ranked entries are cloned, and no reference derived from the Vec is returned or retained across mutation.
  • The retention change could be a memory-corruption or OOB primitive.; refuted because: No unsafe code, borrowed storage, unchecked indexing, or unbounded external allocation is introduced; all mutations use owned vectors and safe operations, with an eight-row cap.
  • Multiple already-windowed signalled rows can be removed from the wrong indices or panic because reverse iteration removes the lowest index first.; refuted because: The implementation iterates indices in reverse before calling Vec::remove, so removals occur from highest to lowest index. The final reverse only restores the moved rows' original ascending order and does not affect removal order.
  • The changed code creates a resizable-buffer, detach, transfer, or stale-length active-view UB surface.; refuted because: The diff is synchronous Rust metadata classification/rendering. It manipulates owned Vec, PathBuf, String, and domain structs and introduces no unsafe, FFI, JS view, resize, detach, transfer, or length-snapshot boundary.
  • Retention creates a dangling or aliased handoff across an async/GC/native boundary.; refuted because: No such boundary exists in the diff; keys own their data, rows are cloned, and vector mutations retain owned RelatedTest values.

Evidence gaps

  • The packet lacks a successful final-head cargo-test receipt: ripr failed and cargo-test is only scheduled late, leaving the already-covered mutations unexecuted in this lane.
  • The packet reports the ripr sensor as failed with exit code 2, while cargo-test evidence is scheduled rather than available.
  • The seeded multi-candidate removal concern is not directly pinned by the shown tests; execution of the central focused suite is still the needed proof.
  • Model proof intent was rejected by deterministic validation.

…-to-renderer regression (#9175)

The trailing rev() on the collect pulled via next_back, removing the lowest
index first, so adjacent tail indices panicked and non-adjacent ones moved the
wrong row. Remove highest-first then restore order. Adds adjacent and
non-adjacent multi-identity regressions (both fail under the old ordering) and
a parser-backed finding to render_finding regression in output::human through
a narrow cfg(test) analysis entry; analysis tests are renamed to claim only
window position.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUS4vFoCEv5DiNwucKqSbC

@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.

Exact-head review of 4106523 (detached scratch worktree, candidate untouched). Verdict: REPAIR REQUIRED for one defect; everything else checked is fine.

Blocking defect (reposition step, reveal.rs ~4626-4632). indices.iter().rev().map(|i| window.remove(*i)).rev().collect() removes the lowest index first, so indices shift under the remaining removals. With two or more distinct signalled tests already in the window behind location-only rows it moves the wrong row or panics.
Executed witness on this head, in a scratch test that is not committed: six SameTestFile rows plus sig_a and sig_b (WeakTokenSubstring, each with two distinct oracles, both signalled) and a 10-row input. The packed window is [doc_00..doc_05, sig_a, sig_b]. finalize_related_tests_with_owner_calls panics with removal index (is 7) should be < len (is 7) at reveal.rs:4629. The existing test only has one windowed signalled test, so it cannot see this. The fix is to remove in descending index order (collect the removals in a way that pulls from the highest index first, then reverse to restore order). Add a regression test with 2-3 windowed signalled tests including the last index.

Findings verified on this head

  • (A) r4357014207: retained rows are inserted ahead of the first surviving non-primary location-only row. Fixed. owner_call_signal_shifts_a_tail_medium_row_up_one_place pins it. Mutation (b), insertion point back to rposition(non-location), fails that test.
  • (B) r4357630215 / review 5625809904: a signalled test already in the window (index 7 behind seven location rows; 7 location tests plus 3 distinct-text rows, total 10) is repositioned to index 1 with no duplicates, no evictions, and row 0, cap, total and confidence/miss/oracle unchanged. This holds for a single windowed test. It does not hold for several (see the defect above). Mutation (a), reposition step made a no-op, fails owner_call_signal_repositions_a_test_already_in_the_window_without_extra_rows and given_demoted_test_already_in_the_window_when_cap_overflows_then_it_moves_up_in_human_rows.
  • (C) hosted check-architecture: cargo xtask check-architecture passes on this head. No crate::output reference was added under analysis by this PR. The only existing hits are in perl/static_limit/runner_tests.rs, which are not in this diff and are accepted by the check.
  • Test-oracle corrections: the repeated-assertion fixture uses distinct assertion text and asserts the pre-cap total (13). The human-row selector is anchored on lines starting - related test .

Executed: cargo test -p ripr --lib analysis::classif passed 1641/1641 on the unmutated head. The output::human render test passed. check-architecture passed. Mutation (a) failed 2 tests and mutation (b) failed 1 test. Both were reverted and the worktree removed.

Rest of diff. In exact_oracle_aligns_with_sink, a name-only row beside a reaching test no longer aligns an exact oracle. This matches oracle_crediting_relations, and the new test covers the credited and uncredited cases and the no-reaching-test control. The changelog states this as an intentional separate behaviour change and claims no more than is proven. Row 0, total, cap and credit are unchanged by the retention.

Not verified

  • Hosted CI.
  • The full workspace test suite, goldens and fixtures. I did not check whether the finding.rs alignment change moves any golden.
  • The render test builds its row order by hand. The pipeline-to-human link is proven only by the analysis tests asserting window index in 1..5, plus that render test.
  • No successor head was reviewed. Re-review after the descending-removal fix.

Generated by Claude Code

@github-actions github-actions 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.

Confirmed findings

  • No blocking source-route defect was found, but downstream consumers of related_tests.first() and alternate finalization routes were not exhaustively exercised by the changed tests.

Verification questions

  • Confirm human consumer coverage now exercises the parser-backed Finding rather than only a fabricated related-test vector.

Refuted

  • A same-named unrelated call could forge a trusted owner relation.; refuted because: The signal is restricted to captured call-name evidence on WeakTokenSubstring rows; tests cover wrong call names, absent owner, and demoted-row refusals.
  • Safe Vec removal/reinsertion cannot leave dangling references into related-test storage.
  • The changed surfaces are synchronous Rust classification, ordering, and rendering; no JavaScript or worker-owned resource is introduced.
  • No unsafe memory-lifetime or native-boundary change is introduced; owner-call keys and moved rows are owned values within vectors capped at eight rows.
  • The new retention logic creates a memory-safety or worker-handoff hazard.; refuted because: The diff is synchronous Rust-only metadata processing over owned values and introduces no worker, async, GC, detach, or transfer boundary.
  • The output test bridge leaks classifier internals into production or bypasses the parser/classifier route.; refuted because: The bridge is cfg(test)-only, returns the domain Finding, and the output test uses the parser-backed retention fixture and render_finding; no production visibility expansion is introduced.

Evidence gaps

  • Central executable qualification is incomplete because ripr failed and the scheduled cargo-test receipt is absent from this packet.
  • The red/green suite includes positive and refusal controls for both new behaviors, but repository execution is not yet represented by a successful central receipt.
  • The architecture boundary is complete for this feature, but merge qualification remains conditional on executable Rust tests because the ripr sensor failed.
  • Model proof intent was rejected by deterministic validation.

@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.

reviewed_head_sha: 002ef41
reviewed_tree: 2c14b8ebaf81acea2133e3af1680563895977fe8
integration_basis: PR base9b8246fcd09172fc61d4cdd0b46aa849d8f92a28; observed GitHub merge subjectad58616566cc296def363923ea6b7e6d58694df9, parents8da9f7bd7e25e99d75e5b1c2e365322225a35b0b + reviewed head, tree176c55c82f81d2741c49b9e341ef8a6b874c6c6c. Later observed main6417e7cf98aa5fc266e05db9414cab0aa486db00 changes observation/discriminator wording, not related-test ordering, disclosure or five-row selection. That source judgment is not executed qualification of a later combined tree.
disposition: REVIEW_INCOMPLETE overall — affected source/oracle review and available focused proof complete without blocking findings; required hosted qualification and final integration judgment remain pending. COMMENT under shared connected PR-author identity.

Both remaining findings are verified repaired on the actual author successor, with replies posted/read back and resolutions independently read back: multi-row removal, actual combined consumer regression. All four review threads are resolved. Historical repair-required reviews remain evidence for their original heads.

Inspected semantic owners and consumers: owner-call signal derivation, capped unique-test packing, existing-row identity/order, exact-oracle credit guard, test-only analysis facade, parser/classify_probe producer, human render_finding and anchored related-test evidence window, architecture deny rule and changelog. The production removal behavior matches tested proposal53f089870 (comment differs); the author independently supplied adjacent/nonadjacent tests and a real single-identity parser/renderer case. Seven location rows plus three text-distinct oracle rows genuinely yield total10, retained8, one nonprimary demoted identity and five actual rendered rows with name-only/no-call disclosure. No analysis-to-output dependency was introduced. Retention preserves primary, totals, cap, full rows and oracle credit. The separate intentional exact-oracle guard preserves credited and no-reaching positive controls.

Independent fresh-context read-only source/oracle rereview found no blocking defect. Its optional suggestions (a nonadjacent4/6 silent-swap pin; stronger setup/count assertions in refusal/nonoverflow output controls) are nonblocking: actual retention-owner tests discriminate multi-row removal, and the genuine parser-to-renderer test establishes the required consumer connection. No producer/render logic changed that would require every combination end to end. Prior410/53f receipts remain tied to those objects.

Observed exact-successor native proof (Linux x86_64, Rust1.95.0, default features, j2, incremental off, dev/test debug0):

cargo test --locked -p ripr --lib -j 2 -- analysis::classify::reveal::tests::owner_call analysis::classifier::tests::given_demoted_ analysis::classifier::tests::given_wrong_call_name_when_cap_overflows analysis::classifier::tests::given_no_overflow_when_demoted output::human::tests::render_finding_from_parser_backed_ output::human::tests::render_finding_shows_a_retained_
25 passed; 0 failed; 0 ignored; 13478 filtered out; native exit0

The exact emitted test artifact was physically frozen, hash-verified and used for the additional exact test analysis::classifier::finding::tests::name_only_relation_cannot_align_an_exact_oracle_beside_a_reaching_test: 1 passed/0 failed, exit0 (credited relation, demoted refusal and no-reaching positive assertions).
Test executable SHA256 bd1173a78d777f0ae7c6fb41cd6bbc6e55db87e67addb02a29fd8ec05bd35f3b.
Focused native log SHA256 0b05133dc59a1a2199244522538eb275ac50726cdb682d9e4d581b76d492d20e.
Additional oracle-control log SHA256 65d53d837303486968db92a14dc48092a627247f5a6bf3fedf61c15d5a00a441.

cargo xtask check-architecture: native exit0, report pass/no violations; report SHA256 f1fbd8f3fb5feb58793ff12cd1919439fc53ad5aface2b04765b28079809afd8.
Targeted rustfmt --check and exact diff whitespace check pass.
cargo xtask check-pr-shape on the proposed body: native exit0, all required metadata present. Two advisory heuristic evidence warnings are dispositioned by the inline parser/retention/consumer tests, unchanged production renderer/schema/contract registry and existing changelog. Hosted golden proof remains pending. The validated body was published and read back.

Not established by this local pass: full hosted matrix, doctests/all-feature/platform proof, current combined-tree execution, merge or main landing. Author1666/precommit/mutation claims remain author-reported, not relabeled as this execution. The original session16033 remains UNKNOWN and untouched; prior denied operations stay stopped. Residual scope remains bare call-name matching, not boundary-argument equality; the pre-existing name-only exact-oracle summary lookup is unchanged.

Next: mark this unchanged reviewed candidate Ready and request one normal merge-ready qualification after reconciling actual run state. Inspect its native checkout and every required result/current finding before final REVIEW_READY, protected expected-head squash and main verification. No canonical source push or validation weakening occurred.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 12:40

@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.

Independent exact-head review of 002ef41752983412b2661c182d333370ee76f07e (read-only; detached scratch worktree, removed afterwards). Disposition: COMMENT, source/oracle review clear for this head. Hosted CI and the final-merge pass are not covered by this review.

Inspected: full diff of reveal.rs, classifier.rs, classifier/finding.rs, analysis/mod.rs, output/human.rs and the changelog fragment.

Removal-order fix: the reposition step collects ascending indices, removes highest first (.iter().rev().map(remove)), then moved.reverse() restores ascending order, then splices at first_location. This is correct for adjacent and non-adjacent indices. Identities already ahead of the first location row are excluded, and only the first row of each identity moves.

Executed on this head

  • cargo test -p ripr --lib analysis::classif: 1643 passed, 0 failed.
  • cargo test -p ripr --lib output::human: 236 passed, 0 failed, including both parser-backed render tests and the controls.
  • cargo xtask check-architecture: pass.

Mutations (each reverted; worktree clean afterwards)

  1. Removal order changed to ascending: owner_call_signal_repositions_non_adjacent_windowed_tests and owner_call_signal_repositions_several_windowed_tests_in_order fail, with a panic at the removal site (reveal.rs:4630).
  2. Reposition step made a no-op: 4 classifier/reveal tests fail, and render_finding_from_parser_backed_demoted_test_lists_it_in_the_five_rows also fails.
  3. Insertion point changed to after the last non-location row (rposition): owner_calling_demoted_row_is_retained_over_file_location_rows_but_never_first and given_demoted_owner_calling_test_when_cap_overflows_then_it_is_retained_within_the_first_five_rows fail.

Render test: it builds the parser-backed finding (7 location tests plus 3 distinct-text assertions of the demoted test, so 10 pre-cap rows and 8 retained). It asserts that the retained identity has exactly one row, that row 0 is not it, that render_finding emits exactly 5 - related test lines with exactly one containing the retained name, that the relation reason is WeakTokenSubstring, and that the row shows "no call to the changed code found; linked by name only". The controls (wrong call name, no overflow) are present.

Architecture: the cfg(test) entry analysis::retention_fixture_finding is called from output, so the dependency runs output to analysis, not the reverse. The only crate::output references under analysis are pre-existing ones in perl runner_tests.rs, not introduced here.

Claims: the changelog and PR body are no stronger than what is proven. Visibility is scoped to the parser-backed shapes, and the oracle-credit behaviour change is disclosed.

Minor, non-blocking

  • The render test asserts the demoted reason and the no-call-path disclosure text, not the Low confidence label in the rendered output. Low is asserted on the finding in the classifier tests.
  • The render-level test covers only the already-windowed (reposition) case. The absent-insertion case is asserted on window position in classifier tests but not rendered.

Not verified: hosted CI on this head, cargo xtask precommit and goldens check (the PR's own claims were not reproduced), the bytes d5c8ad3 dogfood, and other-platform behaviour.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Required run 39955124754 on 002ef41 failed at Golden output contracts only. Required Rust tests (20136 run) and doctests passed in that run. The drift is selector_swap_try_error_arm_control human-full.txt, formatting_only, 1 line, with no blessing: a leftover (observation_unverified) marker from the interaction of #9921/#9928 and #9950 on main. It is not this PR's change, since this PR touches none of the observation wording or that fixture. The fix is the re-bless of that one file inside #9968 (open, merge-ready). I'm not re-blessing it here, to avoid a second writer on the same file. Once #9968 lands, I'll merge main into this branch and re-run the required check once.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 13:46

@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.

reviewed_head_sha: 85948c7
reviewed_tree: 4403a549df4c42f1569dd93badfc8f4b1b46f267
integration_basis: landed main0abe9d41f9e7dcdf439d020db793d5b202b704fa (#9968), second parent of this canonical author merge; first parent is reviewed002ef41752983412b2661c182d333370ee76f07e.
claim_boundary: #9175 bounded retention and fixture-scoped human visibility, preserving primary/identity/cap/total/disclosure and fail-closed oracle credit.
disposition: REVIEW_INCOMPLETE overall; source/oracle integration review complete without blocking findings. Required qualification is still running. COMMENT under shared connected PR-author identity.

Inspected actual integration, rather than accepting the merge message: the committed tree equals the prior clean merge-tree prediction. The six-file candidate's added/deleted bytes against main0abe match those against original merge-base9b8246fcd ->002 (SHA256 bbb8a9b702bdf7e8a4b7b836616c8b0ddc4937b69950d24df01c1255605bc21a). Source inspection and independent fresh-context oracle review agree that owner-call signal derivation, capped identity packing, safe descending multi-row removal followed by completed-vector reverse, exact-credit guard, parser fixture, cfg(test) output-to-analysis facade, consumer assertions and refusal controls remain intact. Exact delta whitespace check passes.

The real parser/classifier/render test still constructs seven location tests plus three distinct-text assertions: total10, retained8, one demoted identity, protected row0, exactly five anchored human related-test rows including that identity with name-only/no-call disclosure. Adjacent/nonadjacent movement, repeated-assertion identity, absent signal/owner, wrong call, unmatched and nonoverflow controls remain. Main's proximity-credit change does not activate in this parser fixture because it has no established reaching relation; typed Diff scope and human wording do not change its retention path.

The integrated selector human-full blob b30b27ff0e813e9a435e74b4d19bcdd374368aca equals landed #9968 and removes the stale suffix. Machine check.json blob947a1e9827ee4fe6946a3316f132bfbb47ae9812 remains identical to the failed prior checkout. This is the previously independently justified inherited correction, not another golden blessing.

Applicable retained evidence, with original identities preserved: 25+1 exact002 native controls and architecture receipt; independent002 mutation/source review. Earlier required run39955124754 executed20136/20136 tests and doctests on ad586, then failed this inherited golden; it does not qualify859. No local tests/builds or CI request were duplicated during this integration review.

Current existing qualification: run39964016136 attempt1, head85948c7b, Rust job120449300567. Policy/evidence/dependency/process/network and workspace/all-target checks have succeeded; all-features compilation is active at this observation. Native executed checkout and complete test/golden/artifact receipts remain to be read when available. Separate ordinary CI is advisory to this requested aggregate and cannot replace it.

All four inline threads were read back resolved. Source, oracle, integration/conflict and inherited-golden dimensions are current; hosted execution/current findings/final protected-merge judgment remain pending. Residuals unchanged: bare call-name matching is not boundary-argument equality; name-only summary lookup remains pre-existing; visibility is demonstrated for the retained parser shapes, not every finding shape. No platform/process/schema/package change is introduced by this six-file candidate. Original session16033 remains UNKNOWN and untouched.

Next: consume this existing run's terminal native receipts and current conversations/protections; only then publish final REVIEW_READY if earned and use normal squash with expected_head_sha85948c7b555002d7a22f932c6985e7d90d88e0b2, followed by actual main/acceptance verification. No canonical push, duplicate qualification or merge has been attempted.

@github-actions github-actions 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.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm the current packet does not contain a successful exact-head hosted Rust qualification receipt; source inspection and focused seeded evidence support the claims, but CI remains an external verification obligation.

Refuted

  • The new native-risk surface introduces an unsafe pointer, aliasing, worker handoff, or lifetime boundary.; refuted because: The diff adds synchronous Rust metadata processing using owned PathBuf/String keys, safe Vec operations, and a cfg(test) facade returning an owned Finding; unsafe-review reported no new gaps and the diff adds no unsafe or native boundary.
  • Active-view mutation could create dangling references, stale length snapshots, or detached-buffer-style undefined behavior.; refuted because: No buffer/array/worker/transfer surface exists in this synchronous Rust-only diff. All affected data is owned metadata, vector removal precedes mutation/reinsertion, and the cap remains bounded.
  • The parser-backed test fixture creates an analysis-to-output dependency or unsafe cross-thread capture path.; refuted because: The fixture is cfg(test)-only and exposed through a narrow analysis function; output tests consume the returned owned Finding, while production architecture does not call into output. The diff introduces no JavaScript, async, worker, GC, detach, or transfer API.
  • A fabricated renderer fixture is the only proof of the five-row visibility claim.; refuted because: The parser-backed human test calls analysis::retention_fixture_finding and renders the resulting Finding, while wrong-call and no-overflow controls exercise the same route.
  • The smallest fix duplicates or bypasses the existing related-test finalization path.; refuted because: The wrapper preserves the prior test route and production now delegates the same finalization routine to a signal-bearing variant; oracle partitioning, ranking, unique-test packing, and total-count behavior remain centralized in finalize_related_tests_with_owner_calls.
  • A name-only owner call could forge trusted oracle credit or expose misleading low-confidence evidence as primary.; refuted because: The signal only retains an existing demoted row, never row 0; exact-oracle alignment now rejects uncredited WeakTokenSubstring relations when another row reaches the owner.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Final hosted qualification is not established for the current packet.

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