Skip to content

feat(check): hint the .gitignore entry on a first check (#11879) - #11937

Merged
EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-7l2w7f
Nov 1, 2026
Merged

EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-7l2w7f

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #11879
Acceptance delta (one sentence): A first ripr check whose git ignore rules do not cover ripr's artifact root prints one stderr line naming the exact .gitignore entry, and stays silent when the root is ignored, --quiet is set, or git cannot establish coverage.

Change

  • doctor.rs: first_check_artifact_ignore_note composes the existing ripr_artifact_ignore and preemptive_artifact_ignore verdicts (same wording as ripr doctor).
  • check.rs: prints that note to stderr before analysis. stdout and all machine formats are unchanged.
  • Unit test: unignored gives the /target/ripr/ entry, covered gives nothing, non-repository gives nothing.
  • Changelog fragment included.

Proof

cargo xtask precommit exit 0. Hosted run is the full runner; an existing test that asserts empty stderr from check in an unignored temp repo would surface there.


Generated by Claude Code

…fact root is unignored (#11879)

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

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 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: 31cc85c4-7683-4297-bd42-100ea5b3f341
Commits

Reviewing files that changed from the base of the PR and between 99b2e4d and ac4b579.

Files selected for processing: 5
  • changelog.d/11879-first-check-gitignore-hint.md
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/cli/commands/doctor.rs
  • crates/ripr/tests/check_first_run_ignore_hint.rs
  • policy/process_allowlist.d/11879-first-check-ignore-hint.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copy link
Copy Markdown
Member Author

Review of record, head c5c8136.

Angles: semantic owner (reuses doctor's ripr_artifact_ignore and preemptive_artifact_ignore, no second validator), output contract (stderr only, stdout and machine formats untouched, --quiet silences it), failure behavior (non-repo, git unavailable and covered root all yield no note), and real run.

Real run on a toy Python repo with a committed > to >= change: first check prints ~ ripr will write artifacts under target/ripr ... Add this line to .gitignore: /target/ripr/, and the same repo with the entry present prints no note. Unit test covers unignored, covered and non-repository.

Known limits: a relocated cache dir is probed only by doctor; a Cargo project with existing artifacts gets the stronger doctor wording. Findings: none blocking. Hosted Ripr Rust Small Result is the remaining proof, including any existing test that asserts empty stderr from check.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 31, 2026 22:22
@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.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • The note is limited to stderr, suppressed by --quiet, and leaves stdout and machine formats unchanged.

Verification questions

  • Confirm the added test proves helper verdicts but not the new check command contract.
  • Confirm the added unit test proves doctor-helper behavior, but not check's --quiet or stdout/machine-output acceptance contracts.

Evidence gaps

  • The helper returns a warning only for the positive unignored verdict; covered roots, missing repositories, and unavailable git produce no note.
  • The required cargo-test receipt is still absent even though cargo-test was scheduled for the late phase.
  • The ripr sensor failed and cargo-test has no receipt.
  • The packet schedules cargo-test but contains no completed cargo-test receipt; the existing seeded review claims a real run, but that is not a deterministic receipt.
  • The always-on cargo-test evidence was scheduled but no completion receipt was available to this lane.

@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 review (fresh-context reviewer, head c5c8136): REVIEW_INCOMPLETE

Inspected:

  • PR #11937 (open, not draft, merge-ready label applied 2026-10-31T22:22:21Z), head c5c8136bb35a644ea42c445b7931e0567b100beb, base 77e8c92c93bfe8ca92a66c69db4e86b50be95783. 3 files, +59/-0.
  • Governing issue #11879 (open). Its acceptance: "a first check in a repo whose .gitignore does not cover target/ripr says so once, in one line, with the exact line to add. It does not repeat once the ignore is present, and it never edits .gitignore itself." The PR satisfies the "one line with the exact entry" and "does not repeat once the ignore is present" clauses by construction (the verdict is recomputed from git each run and is silent once covered); "says so once" holds only under the "one line" reading, see Non-blocking 3. The issue's premise still holds at this base: ripr doctor remains the only surface that names the entry.
  • Semantic owner and consumers: the new note is produced by first_check_artifact_ignore_note (crates/ripr/src/cli/commands/doctor.rs:3005-3022) and consumed once, at crates/ripr/src/cli/commands/check.rs:1600-1602. The helper composes the two existing verdicts rather than adding a second validator: ripr_artifact_ignore (doctor.rs:2839-2880+) and preemptive_artifact_ignore (doctor.rs:2980-3003), the same composition ripr doctor uses at doctor.rs:395-404. The artifact-root set comes from the shared owner analysis::ripr_artifact_roots (crates/ripr/src/analysis/diff/path.rs:455-477), not a new copy. terminal_safe is already imported at check.rs:22, and quiet is in scope at the call site (the same variable gates the progress sink at check.rs:1603), so the --quiet contract in docs/CONFIGURATION.md:226 is honoured.
  • Oracle strength of the new unit test first_check_note_names_the_entry_only_while_unignored (doctor.rs:5479-5508): it git inits a repo, pins core.excludesFile to an empty file so a developer's global excludes cannot decide the outcome, asserts a note naming /target/ripr/, then writes .gitignore with /target/ripr/ and asserts None, then asserts None for a directory that is not a repository. Those three assertions are discriminating for the helper: an implementation that always returned a note, or that returned one for a non-repository, would fail them, and the ignored-root case is the negative half the issue's "does not repeat once the ignore is present" clause needs. The composition it pins is the doctor's, so the wording claim in the PR body ("the same verdict ripr doctor gives") is accurate for the default cache configuration.
  • Hosted evidence for the current head c5c8136: "Rust-only feature lane" (job 124675048859) is green and did run cargo test --no-default-features --features lang-rust (step 9), which is the lane that exercises the new doctor.rs unit test. The superseded 22:19:00Z runs (CI 41247624627, Coverage 41247624620, and the advisories) are skipped because the merge-ready label had not yet been applied; they are not attributed to this head.
  • Repo conventions: changelog.d/11879-first-check-gitignore-hint.md is added with the <!-- section: Fixed --> header used by sibling fragments; no spec change is proposed, and I found no spec in docs/specs/ that enumerates ripr check's stderr lines, so no spec narrowing is owed here.

Blocking:

  1. Oracle strength at the surface the issue is actually about is not established. The behavior this PR adds is a stderr line printed by ripr check; the only new test exercises the helper first_check_artifact_ignore_note in isolation and never invokes the CLI. Deleting the eprintln! at check.rs:1601, dropping the !quiet guard, or moving the call after the analysis leaves every test in the tree green. The PR body concedes the point — "an existing test that asserts empty stderr from check in an unignored temp repo would surface there" — but that argument establishes the absence of such a test rather than the behavior. Under the product contract ("do the current tests appear to contain a discriminator that would notice if that behavior were wrong?"), the answer for the CLI surface is currently no. The precedent for the missing proof is cheap and already in the tree: crates/ripr/tests/broken_manifest_limitation.rs:43-56 runs the built binary and asserts on (stdout, stderr), so one CLI-level assertion — note present in an unignored non-Cargo repo, absent with --quiet, absent once /target/ripr/ is ignored, stdout unchanged — would close the gap.
  2. Hosted proof for the required gate is still in flight at review time. The required status check on main is Ripr Rust Small Result; its job "Ripr Rust Small on GitHub Hosted / Rust gates" (124675208100, started 2026-10-31T22:23:15Z) was still in_progress with step 28 "Verdict corpora" running and steps 29-42 pending, including "Base still merges cleanly" and "Required Rust tests". The green "Rust-only feature lane" is real evidence for the new unit test, but it is not the required gate, so the head's required proof is not established at the moment of this review.

Non-blocking:

  1. The relocated-cache configuration keeps the issue's original failure mode. first_check_artifact_ignore_note probes analysis::ripr_artifact_roots(root, &root.join("target/ripr/cache"), None) (doctor.rs:3013), which resolves to ["target/ripr"] alone (path.rs:460-472: the default cache base is already covered by target/ripr). ripr doctor instead passes the resolved cache_base and the configured [perl].cache_dir (doctor.rs:391-395). So with RIPR_CACHE_DIR pointed at an in-repo directory that is not ignored, check stays silent while ?? .ripr-cache/ appears, and doctor still names it. The helper's doc comment states this ("a relocated cache dir is doctor's to report"), so it is a declared scope limit rather than a hidden defect, but it is the same complaint the issue files, in that configuration, and deserves either a follow-up issue or a wider root set.
  2. The new test covers only the preemptive half of the verdict. It never creates target/ripr, so ripr_artifact_ignore returns NoArtifacts (doctor.rs:2844-2851) and the assertion exercises preemptive_artifact_ignore alone. The Unignored branch that fires from the second run onward — where a Cargo project probes target instead of target/ripr and the advice names /target/ (doctor.rs:2856-2871) — is not exercised by any new test.
  3. The note is stateless, so it repeats on every ripr check while the root stays unignored. That satisfies the issue's "does not repeat once the ignore is present", but it means recurring stderr noise on every invocation, including every CI run, in a repository that has not ignored the root.
  4. Cargo projects have a first-run asymmetry worth recording: preemptive_artifact_ignore returns NoArtifacts for a Cargo project (doctor.rs:2985-2987), so the first check is silent, while a later check — once target/ripr exists — can print the /target/ advice. The composition is doctor's, so the wording matches, but "first check" and the observed first-versus-later behavior differ for Cargo roots.
  5. Every ripr check now performs extra git ignore probes before the analysis starts (check.rs:1600), on the diff-scoped path. The issue itself lists first-run timing on larger repositories as unfiled; this adds a small, bounded git cost to every invocation.
  6. The --gap-ledger path returns before the note (check.rs:1564-1590), so that surface stays silent. Benign, since that path renders a supplied ledger and writes no artifacts, but it is a path difference worth knowing.

Not run:

  • The Rust toolchain on this host is not on PATH, so I could not run cargo test, cargo fmt --check, cargo xtask precommit, clippy, or any other repo-native gate, and I could not build the CLI to observe the new stderr line myself. The PR body's "cargo xtask precommit exit 0" and the author's "real run on a toy Python repo" comment are the author's evidence; I did not reproduce them. My reading of the behavior is source-level, against the semantic owner at head c5c8136.
  • The required hosted gate had not finished when this review was written, so the head's required-test receipt is unobserved rather than green.
  • I did not check the runtime behavior in a relocated-cache or Cargo-root repository; the statements about the /target/ advice and the relocated roots are read from doctor.rs:2839-3022 and path.rs:455-477 at this head, not observed.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head c5c8136bb35a644ea42c445b7931e0567b100beb. Not an approval.

Copy link
Copy Markdown
Member Author

Addressing the blocking finding from the independent review (oracle only on the helper): head c762078 adds crates/ripr/tests/check_first_run_ignore_hint.rs, which drives the real ripr check binary on a Python repo with a committed > to >= change. It asserts the hint appears exactly once on stderr with /target/ripr/, stdout and --format json stdout do not mention .gitignore, --quiet silences it, and a covering .gitignore silences it. Deleting the eprintln!, dropping the !quiet guard, or leaking the note to stdout now fails a test. cargo xtask precommit exit 0 on this head. The merge-ready request was re-applied for the new head; I'll merge after Ripr Rust Small Result is green on c762078.


Generated by Claude Code

…ess spawns (#11879)

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

Copy link
Copy Markdown
Member Author

Hosted Rust gates on c762078 failed check-process-policy: the new real-binary test spawns git and ripr via Command::new with no allowlist entry (local precommit does not run that gate). This PR's own cause. Head 203a11d adds policy/process_allowlist.d/11879-first-check-ignore-hint.txt; cargo xtask check-policy-all passes locally. The merge-ready request is re-applied for the new head.


Generated by Claude Code

@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 review (fresh-context reviewer, head 203a11d): REVIEW_INCOMPLETE

Inspected:

  • PR #11937 at head 203a11d (base 77e8c92, merge-ready, not a draft). Changed paths: crates/ripr/tests/check_first_run_ignore_hint.rs (new), policy/process_allowlist.d/11879-first-check-ignore-hint.txt (new), plus the CLI surfaces crates/ripr/src/cli/commands/check.rs:1600-1602 and crates/ripr/src/cli/commands/doctor.rs:2839-3022 that emit the first-check hint.
  • The head moved under me while I was reviewing. The previously reviewed head was c762078, and 203a11d is "chore(policy): allowlist the first-check hint integration test's process spawns (#11879)". The new commit adds policy/process_allowlist.d/11879-first-check-ignore-hint.txt, whose entry is crates/ripr/tests/check_first_run_ignore_hint.rs|Command::new|2|first-check-ignore-hint-11879|#11879: ... in the path|Command::new|N|owner|reason form used by policy/process_allowlist.txt.
  • crates/ripr/tests/check_first_run_ignore_hint.rs (new, 112 lines) at 203a11d: it drives the real binary through CARGO_BIN_EXE_ripr, builds an isolated temp git repository with 8 git spawns, pins core.excludesFile to an empty file, and asserts the stderr hint "Add this line to .gitignore: /target/ripr/" appears exactly once, that stdout and the --format json stdout never contain .gitignore, that --quiet silences it, and that a covering /target/ripr/ .gitignore entry silences it.
  • Hosted evidence at 203a11d: Rust gates job 124689224595 (Process policy SUCCESS, Golden output contracts SUCCESS, Fixture contracts SUCCESS, Verdict corpora FAILED); Rust-only feature lane job 124688851171 FAILED; required check "Ripr Rust Small Result" job 124695015784 FAILED.

Blocking:

  • The required check "Ripr Rust Small Result" is RED at 203a11d (job 124695015784), and the aggregate job reports "REASON: runner_api_failed" with CX43/CPX42/CX53 disk-guard tempfailed and a GitHub-hosted fallback. The substantive upstream red is the Verdict corpora step inside Rust gates job 124689224595: the rust corpus reports "817 cases; false verdicts 0.0024 (2/817)" and the report drifted from fixtures/rust-verdict-corpus/expected on rows eq-divert-match-later-arm-old-constant and shop-tier-gold-arm-unreached (expected "observed_verdict": "limited", got "gap"). Those two expected rows and crates/ripr/src/analysis/language/rust/probes.rs are byte-identical between this PR's base 77e8c92 and its head 203a11d, and this PR changes no rust-analysis and no rust-corpus file, so the drift is inherited from the base. The Rust-only feature lane job 124688851171 fails the same three tests seen on 11801's lane: lsp::backend::list_actionable_items_tests::list_actionable_items_names_gaps_the_actionable_profile_hides (same elements, different order: left ["probe:pricing:94:predicate","probe:pricing:98:predicate"] against right ["probe:pricing:98:predicate","probe:pricing:94:predicate"]), check_worktree_drill_in_commands_reach_the_uncommitted_finding, and selector_location_misses_explain_syntax_and_preserve_retry_scope, in crates/ripr/src/lsp/backend.rs and crates/ripr/tests/cli_smoke.rs, which this PR does not touch. Per the shared brief an inherited red required lane still holds the disposition at REVIEW_INCOMPLETE; main has no green lane at tip ea9dfe3 to compare against, so the attribution is a direct source-level causal chain (byte-identical failing rows and failing-area files across the base/head boundary, zero PR-touched files in those areas) rather than a lane-to-lane comparison.
  • No candidate defect is blocking. The feature-lane failure I found earlier at the previous head was in this PR's own file and is now repaired.

Non-blocking:

  • Earlier blocking #1 REPAIRED, and the repair carries a real discriminator: crates/ripr/tests/check_first_run_ignore_hint.rs drives the real binary and asserts the hint's presence, its channel (stderr), its exact text and its single occurrence, the absence of any .gitignore mention on stdout and on --format json stdout, the --quiet suppression, and the case where a covering /target/ripr/ entry already exists. A plausible wrong implementation, whether writing the hint to stdout, emitting it twice, ignoring --quiet, or emitting it when the path is already ignored, fails this test.
  • The defect I found earlier and then saw repaired inside this session: at the previous head c762078 the Process policy gate failed with "crates/ripr/tests/check_first_run_ignore_hint.rs contains Command::new 2 time(s), allowed 0" because policy/process_allowlist.d/11879-first-check-ignore-hint.txt was absent from the tree. The new head 203a11d adds that fragment and Process policy is now SUCCESS in Rust gates job 124689224595. I record it as repaired, not as a live defect.
  • Earlier non-blocking #1 STILL HOLDS, the relocated-cache case is unproven. The test pins the hint only for the preemptive case, where the .gitignore entry does not yet exist. It does not exercise a configuration in which the cache lives outside the repository or under a relocated CARGO_TARGET_DIR, so the original failure mode, a hint naming a path the repository does not use, is not covered. The producer at crates/ripr/src/cli/commands/check.rs:1600-1602 emits /target/ripr/ unconditionally, and nothing in the new test shows the hint follows a relocated target directory.
  • Earlier non-blocking #2 STILL HOLDS, the test covers only the preemptive half. It never creates target/ripr/ and then runs the check again, so the transition where the directory exists and the .gitignore entry is still missing is not exercised.
  • Efficiency: the new test spawns git 8 times per run to build the isolated repository. That is test-only process I/O, bounded and fixed, with no effect on the shipped binary's cost; the producer side adds one stderr line and no measurable work. The production path is unchanged in complexity, and I see no new cache or retained-collection behaviour. I did not measure the test's wall time, so I make no claim about its runtime.
  • Duplicate claim: none found for this PR in the current open set.

Not run:

  • The Rust toolchain on this host is not on PATH: rustc, cargo and rustup are absent from PATH, so cargo xtask precommit, cargo test, cargo fmt --check, clippy and cargo xtask check-no-panic-family could not be run locally, and the shared checkout was not built while other agents hold it. Every Rust-level statement above comes from source read at SHA 203a11d plus hosted job logs (jobs 124689224595, 124688851171, 124695015784).
  • The PR's own new test was not executed by me. Its passing is established only by the hosted feature-lane run, which failed for reasons outside this PR's files, so the test's own green is inferred from the absence of its name among the three failures rather than from a green result for it. That inference is weak and I flag it as such.
  • I did not open the Rust test shard logs for this head, so the per-shard picture at 203a11d is unestablished.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 203a11d8de65cc96a3cab527c5e0c323665013d9. Not an approval.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

merge-ready is set, but no qualification run exists for head df2a1282: it was pushed after the label was applied, or the label event was dropped. Remove and re-apply merge-ready to request it 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.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm the integration test does not assert the exact complete stderr line, only the presence and count of its identifying substring.

Evidence gaps

  • Current-head Rust test completion is not evidenced by the available sensor receipts.
  • Model proof intent was rejected by deterministic validation.
  • The always-on cargo-test receipt remains absent, so scheduling and seeded assertions do not prove the new integration test passes on this head.
  • The required cargo-test receipt is still absent, while the separate ripr sensor failed with exit code 2.
  • The always-on cargo-test receipt is absent while the ripr sensor failed, leaving the required deterministic test proof incomplete.

@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 review (fresh-context reviewer, head df2a128): REVIEW_INCOMPLETE

Inspected:

  • Subject: PR #11937, head df2a1282ccc7458cdc8d0d672e867910bbf03bfa ("Revert the ported cli_smoke hunks; #11982 owns that fix (#11844)", committed 2026-11-01T00:48:10Z), base c5fa19fd9051f00a9195b37af9c78e5028b6982f, not a draft, merge-ready label present, mergeStateStatus=BLOCKED, mergeable=MERGEABLE. 5 changed paths, +172/-0: changelog.d/11879-first-check-gitignore-hint.md (+2), crates/ripr/src/cli/commands/check.rs (+7), crates/ripr/src/cli/commands/doctor.rs (+50), crates/ripr/tests/check_first_run_ignore_hint.rs (+112, added), policy/process_allowlist.d/11879-first-check-ignore-hint.txt (+1, added).
  • Re-bind scope against the previously reviewed head 203a11d8de65cc96a3cab527c5e0c323665013d9: zero of the five changed paths differ in blob content. I compared blob OIDs at both heads over GraphQL object(expression:); all five blob OIDs are identical at 203a11d8 and df2a1282. The delta is therefore entirely commit-graph and base movement: ec02a6220 (merge main), 3747b396a (port cli_smoke hunks), 72aba6de4 (merge main), df2a1282c (revert the ported hunks). No candidate source content differs from the head the earlier review judged.
  • The revert is complete, not a partial edit. crates/ripr/tests/cli_smoke.rs at df2a1282c is byte-identical to its content at the base c5fa19fd9 (1,376,651 bytes both; git diff --no-index is empty). This PR contributes nothing to that file.
  • Semantic owners read at this head: the producer crates/ripr/src/cli/commands/doctor.rs:3011 first_check_artifact_ignore_note (composing ripr_artifact_ignore at doctor.rs:2839 with preemptive_artifact_ignore at doctor.rs:2980), the consumer crates/ripr/src/cli/commands/check.rs:1600 (if !quiet && let Some(note) = super::doctor::first_check_artifact_ignore_note(&input.root)), the doctor-side unit test doctor.rs:5479-5508, and the command-level integration test crates/ripr/tests/check_first_run_ignore_hint.rs.
  • Earlier findings re-bound from the review at 203a11d8: its Blocking item (required check red, base-attributed) and both non-blocking items were re-read against this head rather than restated.
  • Hosted evidence at df2a1282c: 27 check contexts. Every Rust lane is SKIPPED - ci-result, Rust-only feature lane, msrv, source-identity, rust-coverage, rust-tests-junit (workflows CI, Coverage, Test Analytics; event pull_request). The required check Ripr Rust Small Result is absent from this head's context list entirely. Green at this head: ub-review, Graphite / mergeability_check, Devin Review, GitGuardian Security Checks, and the read-only Python wheel job.

Blocking:

  • No Rust lane ran on this head, so this candidate has no hosted Rust evidence at the head I reviewed. The merge-ready label is present, but the head was pushed at 00:48:10Z after the label event, and .github/workflows/routed-rust.yml triggers only on pull_request: types: [labeled], so a later synchronize push fires no Rust lane and the required check is simply not reported for df2a1282c. This is missing hosted evidence, not a green lane: ci-result and Rust-only feature lane are SKIPPED, not SUCCESS. The remedy is mechanical - remove and re-apply merge-ready so the labelled event re-fires on this head. Until that happens the head cannot be qualified, and the base-side "Verdict corpora" red the earlier review recorded is not even observable at this head.
  • The base-side failures the earlier review attributed to main are unchanged and remain base-attributable, now shown by content rather than by job logs. crates/ripr/tests/cli_smoke.rs at this head is byte-identical to the base, and the base's own expectations spell the retry listing with the --json alias (cli_smoke.rs:2581-2585 builds "ripr check --root {} --diff {} --json"; :2684 asserts listing != expected_listing; :27826-27829 and :27866 do the same for the worktree drill) while main's production explain-miss text spells --format json. That is a base-side mismatch, it is not in this PR's diff, and #11982 ("test(cli): selector recovery tests accept the --format json listing hint", open, head eae32753b) carries the fix this PR's revert correctly deferred to. I did not observe that lane run at this head, so I do not claim the failure set; the attribution rests on the byte-identical test file plus the source-level spelling difference.

Non-blocking:

  • Earlier non-blocking #1 (the relocated-cache case is unproven) STILL HOLDS, and at this head it is a documented producer limit rather than an oversight. doctor.rs:3011-3022 probes only the default artifact roots and its doc comment states that a relocated cache dir is doctor's to report. The integration test pins the entry string to the literal "Add this line to .gitignore: /target/ripr/" (check_first_run_ignore_hint.rs:80), so no relocated-cache root is exercised. The changelog fragment does not overstate this; the acceptance delta's phrase "ripr's artifact root" simply reads wider than the behavior.
  • Earlier non-blocking #2 (only the preemptive half is covered) STILL HOLDS. The test never creates target/ripr/ and re-runs check, so the "artifact root exists but is not ignored" half of the composed verdict is unproven at the command level.
  • PR body currency - the body names a corroborating net that I cannot locate at this head: "Hosted run is the full runner; an existing test that asserts empty stderr from check in an unignored temp repo would surface there." The seven stderr.is_empty() assertions in crates/ripr/tests/cli_smoke.rs at this head (lines 1559, 1572, 1656, 1701, 1864, 1897, 13497) belong to version_is_exact_and_precedes_help_or_output_flags, help_json_is_deterministic_across_roots_env_and_side_effect_free, isolated_installed_binary_version_contract_is_side_effect_free and config_validate_does_not_consume_root_flag_as_a_path. None of them is a ripr check run in an unignored temp repository, so the body points at a safety net that does not exist in the tree it names. The body's other test claim does hold: the "Unit test" bullet maps exactly onto doctor.rs:5479-5508, including the non-repository half at doctor.rs:5504.
  • The body also under-describes its own diff: two of the five changed paths - the added integration test crates/ripr/tests/check_first_run_ignore_hint.rs and the added allowlist row policy/process_allowlist.d/11879-first-check-ignore-hint.txt - do not appear in the body's "Change" list. That is a body-completeness observation, not a code defect, and the earlier review at 203a11d8 already recorded both paths.
  • Efficiency: the new integration test spawns git eight times per fixture (check_first_run_ignore_hint.rs:44-67: init, three config calls, add, commit, checkout, commit) and the file builds two fixtures, so sixteen git processes plus four ripr check invocations per run. The magnitude is established by reading the call sites, not by running the test; it is bounded, fixed and test-only. The cost shape is process spawn rather than analysis, and the four full ripr check runs are the dominant term because each performs a real workspace analysis of a scratch Python project. No efficiency concern beyond that.
  • Duplicate claim: I found no other open carrier of the #11879 first-check ignore hint among the open PRs I inspected. The scope of that scan is the open set reachable from this review's queries, not an exhaustive repository-wide search.

Not run:

  • The Rust toolchain on this host is not on PATH, so no cargo test, clippy, cargo fmt --check, cargo xtask precommit, cargo xtask check-user-text or cargo xtask check-traceability was executed, and no local Rust receipt is claimed. Every Rust-level statement above comes from reading source at this head over raw.githubusercontent, from GraphQL blob and check-run metadata, or from hosted job logs.
  • The new integration test was not executed by me, and no hosted run of it was observed at this head because no Rust lane ran. Its passing is not established.
  • I did not open the Rust test shard logs for this head, so the per-shard picture at df2a1282c is unestablished.
  • I did not run cargo xtask fold-changelog --dry-run, so I did not check whether the 11879- fragment folds cleanly against other Unreleased text.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head df2a1282ccc7458cdc8d0d672e867910bbf03bfa. Not an approval.

Copy link
Copy Markdown
Member Author

Review of record, head ac4b579.

Angles: correctness, stdout/machine-format parity, test oracle grip, process policy, user text.

  • Production path: check.rs prints first_check_artifact_ignore_note to stderr only, before the progress sink, and only without --quiet. It reuses the ripr doctor verdicts and wording. Silent when the root is covered, outside a repo, or git cannot establish coverage.
  • Tests: a unit test covers unignored, covered and non-repository. An integration test drives the real ripr check and asserts the hint appears once, stdout and --format json stdout carry no .gitignore text, and --quiet or a covering entry silences it.
  • Policy: the process allowlist entry and changelog fragment are in place. check-policy-all and the static-language gate passed locally.
  • Since the last independent review (203a11d) the PR's own files are unchanged. The head only picked up merges of main.
  • Hosted: Ripr Rust Small Result is green on this exact head (live run 41272419962). Earlier red results belonged to runs cancelled by my own relabels.

Findings: none blocking.


Generated by Claude Code

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants