Repository navigation
Description
Observed
ripr check --base <merge-base> --mode draft classifies the same committed tree differently per platform. Reproduced twice while landing Horizon A slices in EffortlessMetrics/ub-review (ripr 0.10.0):
| Instance | Windows 11 (local, working tree) | ubuntu-24.04 runner (gate, merge ref) |
|---|---|---|
| A1.2 slice (PR ub-review#1246, run 32889504417) | unsuppressed_exposure_gaps = 0, weakly_exposed = 0 |
new_unsuppressed = 51 |
| Row-stamp slice (PR ub-review#1250, run 32912923990) | 0 |
new_unsuppressed = 6 |
Both sides analyzed identical content: same base commit (932b887f / bcaa102a respectively), same merge-ref tree.
Ruled out
- Line endings:
git ls-files --eolshowsi/lf w/lffor every involved file; blobs are LF and the Windows checkout is LF. - Base drift: compared against pinned
origin/mainSHAs; no intervening merges. - Test presence: the probes carried behavioral oracles in same-file
#[cfg(test)]modules both times (exact rejection-message asserts, digest field-boundary tables, real temp-git fixtures), e.g.probe:src_revision_admission.rs:match_arm:f5bbbe35(match parents.len()) sits above bail! sites whose exact messages are pinned bycontract_surface_pins_tokens_labels_and_rejection_messages.
Symptom shape
The Linux side reports Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified) for probes whose asserting tests live in the same file and quote the adjacent bail!/expression text. The Windows side resolves those associations. This suggests an OS-dependent path in probe→test association or assertion-text extraction (path separators, case folding, corpus discovery order, or CRLF handling inside extracted spans).
Impact
- Local zero-posture checks cannot predict the Linux gate verdict: authors either burn a CI cycle per PR or pre-suppress findings their platform cannot see.
- Suppressions written from a Linux packet look stale/unnecessary under Windows analysis (and vice versa), accelerating suppression-ledger rot — we shipped 51 + 3 + 6 receipts this way (downstream tracker: ub-review#1247).
Ask
- Identify the platform-dependent step (association graph? span/text normalization? test-target enumeration?) and normalize so classification is platform-independent on identical inputs;
- or document the divergence explicitly in sensor docs so downstream zero-posture workflows know local runs are not authoritative.
Happy to provide both raw artifacts (Windows findings.json + badge-json showing 0, and the gate packet's sensors/ripr/exposure-gaps.json from runs 32889504417 / 32912923990) if useful.
Activity
EffortlessSteven commentedon Aug 27, 2026
I’m taking this as the next implementation slice. @codex investigate the exact platform-dependent path using the supplied downstream receipts, reproduce with a committed-tree fixture where possible, identify whether association, assertion extraction, path normalization, or discovery order is responsible, and implement the smallest platform-independent fix. Add regression coverage that would fail on the opposite-platform behavior, preserve the deterministic evidence contract, run focused analysis tests plus required policy/format checks, and open a review-forward PR. Do not paper over the divergence with documentation until the implementation path is disproven.
chatgpt-codex-connector commentedon Aug 27, 2026
Summary
Path::file_stem, which interprets foreign path separators differently across operating systems./and\, while retaining the existing deterministic normalized-path behavior.SameTestFileassociation and preservation of the exact extracted assertion text.fe9e3dfa8ea505421bc1b6478e42e639ad0377ff(fix(analysis): normalize cross-platform association stems).make_prtool is unavailable in this environment.Testing
cargo fmt --checkcargo test -p ripr same_file_association_normalizes_foreign_platform_separatorscargo test -p ripr analysis::classify::related_tests— 23 related-test analysis tests passed.cargo xtask check-static-languagecargo xtask check-file-policygit diff --checkgit show --check --format=fuller HEADcargo xtask precommit— unable to resolve a merge base because neitherorigin/mainnor a localmainref exists in this checkout.View task →
EffortlessSteven commentedon Aug 29, 2026
Materialization-byte finding that weakens ruled-out #1 (line endings), from #3541/#3548:
The ruled-out evidence checked the wrong bytes.
git ls-files --eol(i/lf w/lf) describes the worktree and index attributes. But ripr's candidate analysis (0.10.xgit_candidate_execution) materialized the analyzed tree viagit archive, which honors.gitattributeseol transforms even withcore.autocrlf=false— extracted bytes could silently differ from the bound blob identity. #3548 replaces archive extraction withls-tree+cat-fileraw blob bytes for exactly this reason. So "blobs are LF and the Windows checkout is LF" does not establish that the bytes ripr analyzed on the Windows side were LF.Concrete verification protocol for the 0.10.0-era reproductions:
git cat-file blob <tree>:<path>for the same paths — any hash mismatch on files involved in the failing associations confirms the byte-divergence mechanism.Honest boundary on direction: the eol-filter mechanism alone predicts the Windows side failing to associate (CRLF inside extracted spans breaks assertion-text matching), while this issue reports the opposite asymmetry (Windows resolves, Linux does not). So this finding invalidates the ruled-out evidence but does not by itself explain the reported direction; if the hashes in step 1 match, Linux-side corpus discovery/enumeration order becomes the leading suspect. I did not have the ub-review artifacts locally to run step 1 myself.
EffortlessSteven commentedon Aug 29, 2026
Investigation result: the classify pipeline is deterministic on identical inputs — the realistic divergences are input skew (analyzed bytes / diff / binary), and the reported runs predate the direct fix (#3545)
Inspected:
EffortlessMetrics/ripr-swarmmain@71663b36a(in sync withorigin/main), 2026-08-29. Allfile:linerefs are current main unless marked 0.10.0-era. Method: static read of the association/reveal/index/suppression paths plus one Windows test run. No Linux execution was done — Linux-side claims below are Rust std path semantics + code reading, and are labeled as such.1. Staleness assessment — the reproductions are ~83 analysis commits behind main
v0.10.0 shipped 2026-06-15. Since then, 83 commits touched
analysis/{classify,facts,syntax,probes,test_grip_evidence}, including:14fd97a31, merged 2026-08-29) — the direct fix for the cross-separator same-file association family. The ≈v0.10.0-erarelated_tests.rsused host-nativePath::file_stem()(verified ingit show 54d23e9a1:crates/ripr/src/analysis/classify/related_tests.rs, line 22); current main normalizes both separators before stem comparison (crates/ripr/src/analysis/classify/related_tests.rs:216-248) and pins the regressiongiven_foreign_separator_file_stem_when_associated_then_assertion_text_is_preserved. I ran that test on current main (Windows host): 1 passed. Related hardening: closed PR fix(analysis): normalize probe paths before test association #3471 (superseded by fix(analysis): normalize probe paths before test association #3545), fix(xtask): restore green precommit on main; harden same_test_file #3481 (same_test_file test hardening).cfg(all)roles — parse-time fact changes), fix(analysis): discover test-case parameterized tests #3522 (parameterized-test promotion), fix(analysis): stop direct-import aliases crossing a module boundary (#3413) #3483/fix(analysis): preserve lexical alias ancestry across nested test modules (#3413) #3487/fix(analysis): isolate module import aliases by scope #3550 (import-alias scoping).The issue is likely stale with respect to current main: the exact association family it points at was fixed three days after filing, and dozens of fact-extraction behaviors changed since the binary that produced the artifacts. A same-binary re-run is the right next step before any further platform hunt (recipe in §5).
2. The quoted Linux message rules out the discovery-order family for this symptom
observation_unverified("no assertion text references this probe's changed expression",classify/reveal.rs:470-475) is emitted only whenrelated_testsis non-empty (the empty case gets a different message,reveal.rs:20-34) and at least one assertion matched while none confirmed (reveal.rs:230-282). So on the Linux side the same-file tests were related and their assertions did match — only token/effect confirmation failed. Discovery order, corpus eviction, case folding, or path-form failures that drop a candidate produce "No reachable test oracle found" or a missing probe — never this message. Token confirmation is a pure function of (probe expression, extracted from the diff text) × (assertion text, extracted from indexed bytes) × (parsed oracle kind). Given the same message on both sides for the same probes, those inputs must have differed between the runs — not iteration order.For the record, the iteration/order surfaces are deterministic on current main (audited, no platform dependency found):
read_dir:workspace/discover.rs:15-17facts/build.rs:91-106, 157-177classify/related_tests.rs:206-207;observation_unverifiedis order-insensitive (any later confirmed match clears it,reveal.rs:253-262)BTreeMap, not HashMap:test_grip_evidence/related_tests/context.rs:15to_ascii_lowercase(classify/related_tests.rs:142-143); Rust'sto_lowercaseis Unicode-table-based (not OS-locale) and appears in this area only in test code (analysis/mod.rs:1086)language/rust.rs:1570-1577probes/ids.rs:104-109) with owner separators normalized in the fingerprint (ids.rs:33-40, Line-keyed finding ids silently transfer suppressions to unrelated code #1053, landed 2026-06-11 → already in v0.10.0), so finding-id-keyed suppressions are platform-stable; path-glob suppressions normalize\→/(output/suppressions.rs:617-624andpath_glob_matches, ~line 857)3. Ranked candidate mechanisms for the observed runs (all input skew, none OS-iterative)
(1) Worktree mode never reads the committed tree — local evidence can exceed the merge ref (direction: fits; confidence: medium).
ripr check --base <merge-base>without a bound subject runs worktree mode: the diff comes from git objects, but the index reads the live working tree (language/rust.rs:1600-1607,std::fs::readoveroptions.root.join(file)), and untracked/unchanged local files are indexed as association evidence even thoughload_worktree_diffexcludes untracked files from the diff (diff/load.rs:52-71). Any test file present locally but absent from the merge-ref tree (uncommitted, untracked, scratch) participates in the Windows association pass and is invisible on CI. The observed direction — local confirms, CI saysobservation_unverified— requires confirming evidence to exist locally and not on CI, which is exactly this hole. Thegit ls-files --eolverification does not cover it;git status --porcelaincaptured at local-run time would have.(2) Branch-tip tree vs merge-ref tree — different effective diffs (direction: fits the 0-vs-51 shape; confidence: medium). The local run diffed
<base>against the branch-tip worktree; the gate ran at the merge commit. Unless the branch was exactly rebased onto main, the merge tree contains main-since-merge-base, and a merge-base computed at the merge commit can resolve to the main tip — so the two runs can analyze different (base, tree) pairs with no main movement between the runs. "Pinned base SHAs" pins the base argument, not the analyzed tree. This yields extra probes/tests on exactly one side and needs no OS dependency at all.(3) Build skew between two "0.10.0" runs (direction: either; confidence: low-medium). The gate installs crates.io 0.10.0 (June-15 code). If the local run was a dev build from a newer checkout, the two sides ran different classifiers. Note the per-file fact cache key pins only (schema
"0.5"+CARGO_PKG_VERSION+ raw path + content hash) —analysis/seam_cache.rs:148, 358-387— so two different builds of the same "0.10.0" are not distinguished and warm caches serve facts from whichever build wrote them;seam_cache.rs:67-83documents this exact hazard family ("while the package version stayed 0.10.0"). Cross-platform cache contamination itself is blocked (the key embeds the raw host path, so a Windows-written entry misses on Linux).CRLF/eol (#3541/#3548): real, open, and direction-mismatched for this issue. Both issues are still open and
materializestill extracts viagit archive(git_candidate_execution.rs:231-296); but that path executes only for bound git-candidate subjects, while the reported runs were worktree-mode. And the CRLF mechanism (checkout filters → CRLF on Windows, #3541) would degrade the Windows side's extracted assertion text — predicting Windows-weaker, the opposite of the reported asymmetry. I agree with the maintainer's tension note; this family should stop being cited as a suspect for #3469's reproductions.4. Remaining same-family residue (small normalization proposal — not claimed as the cause)
The repo-seam grip path still derives
SameTestFilestems with host-nativefile_stemon both sides of the lookup:test_grip_evidence/related_tests.rs:63-66(owner stem) andtest_grip_evidence/related_tests/context.rs:162-167(index key). It is self-consistent per host and only reachable if a foreign-separator path reaches one side (no producer identified in-repo), so this is defense-in-depth, not evidence: apply the #3545normalized_file_stempattern there. It does not affectripr check, and I am not claiming it caused this issue. Concurrent work check:gh pr list --state all --search 3469shows only #3471 (closed) / #3545 (merged); #3541/#3548 (open) own the materialization-bytes seam.5. Recommended next step — same-binary, same-tree repro protocol
cargo install --locked --path crates/riprresult or the same artifact).git status --porcelainmust be empty on both.git diff --no-color --stat <base>hashed on both sides;git ls-files --eolon the CI checkout too (the original ruled-out evidence was Windows-side only); compare ripr's changed-file lists from--json.ripr check --base <base> --mode draft --jsonon both; compare per-proberelated_tests+ discriminate summaries for one probe, not summary counts. If the related sets match but confirmation differs, byte-diff the same assertion'soracletext from both sides — that names the remaining skew (bytes vs diff vs binary) immediately.If (3) shows identical inputs and (4) still diverges on the identical binary, that is a genuine ripr bug worth a committed fixture — and the failing pair (same finding id, two oracle texts) is the regression fixture.
fix(analysis): resolve repo-seam grip associations across platform pa…
fix(analysis): resolve repo-seam grip associations across platform pa…
EffortlessSteven commentedon Aug 31, 2026
Closing reconciliation for the merged fix: #3598 landed at 535138c (squash of 54d3ed6) after the Linux CI failure was reproduced locally under WSL and root-caused to two stacked host-divergent layers — (1) the seam's
/-normalized file identity missing the raw host-separator index key inrust_index::find_owner_function(Pathcomponent equality only absorbs this on Windows), and (2) host-nativePath::file_stemextraction on both association stems;rust_index::is_test_filehad the same component-vs-string divergence, and the review rounds added a fail-closed non-UTF-8 guard on both the stem and the owner-lookup fallback.Verification bound to the merged head: full
riprlib suite 4,702 passed / 0 failed on Linux (WSL, real POSIX path semantics), targeted suites green on Windows, fmt/clippy clean, requiredRipr Rust Small Resultgreen on the PR head and on the merge.Residual asks from this issue's thread: the same-binary cross-platform repro protocol remains documented above as future hardening; the classify-side
normalized_file_stemlossy-stem hole (weak-affinity consumer only) is tracked with acceptance criteria in #3599. The input-skew attribution for the original 0.10.0-era observations (worktree-mode working-tree reads, merge-ref vs branch-tip trees, build skew) stands as recorded in the investigation comments.EffortlessSteven commentedon Aug 31, 2026
Reconciliation: association-path platform dependence fixed on main — PR #3598 (merge 535138c)
Landed. PR #3598 merged to
mainat535138c42(2026-08-31) and is CI-pinned on Linux (Ripr Rust Small Result pass; full Rust-gate suite 16m54s green on the final head).What the investigation got right and where it landed:
RepoSeam::newnormalizes file identity to/while index keys keep the producer's raw separators;find_owner_functioncompared them withPathequality — separator-insensitive on Windows, exact on Linux. On a mixed-separator corpus, Linux lost the owner (owner=None) and with it every related-test relation (related=[]), the exact symptom family in this issue (local and gate disagree on identical content).OwnerContext::resolve,tests_by_file_stemkeys) now use fix(analysis): normalize probe paths before test association #3545-style normalized extraction, andis_test_filejudges the normalized form. The owner-lookup fallback requires valid UTF-8 on both sides — lossy replacement characters cannot fabricate an owner (devin/coderabbit findings, pinned by a unix unit test).Evidence shape: the end-to-end regression (
given_foreign_separator_paths_when_grip_associates_then_same_test_file_still_matches) failed on Linux CI withowner=None; related=[]before the owner-lookup fix and passes over all four separator combinations after;goldens check+dogfoodshow zero drift (native-separator behavior unchanged). The failing run's diagnostics are preserved in the PR thread.Acceptance covered: ask #1 (identify and normalize the platform-dependent step) for the grip/association paths — the last known host-native stem and identity-comparison sites on the classify/grip surfaces are now normalized and pinned.
Acceptance remaining (not started, needs its own lane): the original 0.10.0 reproduction artifacts were never re-run under the §5 same-binary same-tree protocol; the worktree-mode working-tree read (
language/rust.rs~1600) and merge-ref-vs-branch-tip skew identified as the likely causes of the reported runs remain open behavior questions. If downstream (ub-review) still observes cross-platform divergence on current ripr, that protocol is the next step — this issue should not be reopened for it; file against the protocol recipe in the thread above.Claim boundary: static-analysis vocabulary only; no killed/survived claims are made or implied.
fix(analysis): rebase include identities against the stable path form…