Skip to content

fix: first-run UX for Python/non-Rust users (#9857, #9858, #9860) - #9902

Merged
EffortlessSteven merged 6 commits into
mainfrom
fix/first-run-python-ux
Oct 23, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
fix/first-run-python-ux

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Source-of-truth Links

Proposal: #9857, #9858, #9860.
Spec: none added; this bounded UX follow-up uses the acceptance in #9857, #9858 and #9860, with the output contract recorded in docs/OUTPUT_SCHEMA.md.
ADR: none added; existing cache layout and JSON versions remain unchanged.
Plan item: first-run Python/non-Rust UX in #9857, #9858 and #9860.
Governing issue or accepted claim: #9857, #9858, and #9860 (first-run experience for Python/non-Rust users)
Acceptance delta (one sentence): pilot's scope banner names the languages actually detected, first-run output no longer risks committing target/ripr in non-Cargo projects (or tells the user exactly what to ignore), and the quickstart gives Python users a complete first-hour path consistent with the runtime messages.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): fix/first-run-python-ux; current candidate head 3722daa; exact-head source review below.
Stack parent or prerequisite PR (if any): no open stack; #9908 and #9881 are already landed ancestors of this candidate.
Proposed replacement of PR (if any; not yet accepted): none.
Acceptance retained from a replaced candidate (if any): none; repairs remain in this existing PR.
Accepted winner and losing candidate disposition (when decided): this PR is the sole selected candidate; no losing candidate.

Surfaces

#9858 direction and rationale

Full relocation of the shared cache root to a user-level cache was rejected as too invasive for this batch: the default {workspace_root}/target/ripr/cache is a documented, schema-visible contract consumed by the atomic-file guard, the repair flow (which deliberately lives under the gitignored target/), RIPR_CACHE_DIR relocation semantics, and the artifact-root diff exclusions; moving it would touch all of those and risk Rust behavior. The chosen fallback is exactly what the issue's minimum asks: name the residue and suggest the .gitignore entry on the human surface before the first write, scoped to non-Cargo projects so Rust behavior is byte-identical (a Rust repo's first doctor run stays silent, verified below).

Evidence

  • New unit tests: pilot_scope_line_names_the_language_actually_ranked (terminal + Markdown, Python-card / ranked-Rust / no-card arms); preemptive_artifact_ignore_warns_before_the_first_write (non-Cargo warns with exact entry, Cargo stays NoArtifacts, covered rules silence it); artifact_root_ignore_note_fires_only_for_the_first_run_litter_case (fires only for the default litter case). Existing ripr_artifact_ignore_* tests pass unmodified.
  • cargo test -p ripr --lib -- output::pilot: 96 passed. cli::commands::doctor: 103 passed. cli::commands::pilot: 22 passed.
  • cargo test -p ripr --test cli_smoke -- doctor: 43 passed; -- pilot: 27 passed (includes the updated Python-only pilot pin asserting scope: change-first (python (preview) seams ...)).
  • cargo test -p ripr --test doctor_json_schema: 5 passed (schema union unchanged — the pre-emptive warning reuses the unignored object arm).
  • cargo fmt --check clean; cargo clippy -p ripr --lib -- -D warnings and cargo clippy -p ripr --test cli_smoke -- -D warnings clean; cargo xtask check-doc-index: pass.
  • End-to-end against a fresh Python-only repo (pyproject.toml, pricing.py, branch change): first ripr doctor prints the pre-emptive advisory; ripr pilot prints scope: change-first (python (preview) seams on lines changed since master rank first) above the Python repair card and the stderr note; a second ripr doctor prints the existing-artifact warning; a first ripr doctor in a minimal Rust repo prints neither (Rust behavior identical).

Rollback

Revert the ordinary squash result of this PR. The pilot scope line and the doctor/pilot advisories are additive render-path changes behind existing typed evidence (PilotSummaryContext.python_first_use, DoctorArtifactIgnore::Unignored); no schema version, JSON field, cache layout, or config contract changes, so rollback restores prior output byte-for-byte (pinned by the unchanged Rust-fixture scope-line pins and the ripr_artifact_ignore_* tests).

Final review and qualification

Reviewed head: 3722daa; published comparison base: b2568cb; head tree: 5d319469826f45c6b284e2954c8ef21ba62d2344.

Actual required-run checkout and reusable workflow identity: 39b1c2d, parents 7be43fd + reviewed head, tree 6cb8e38da21dfeb3e4bdba82a2b761142f2f1301. The job log directly confirms that subject. Current main 69e1c17 has no intervening change in pilot, doctor, pilot renderers, config, Cargo.lock or the required test/workflow configuration. Other inspected dispatch additions concern separate TypeScript repair routing; no behind-only restack was requested.

The parent-component repair normalizes the anchored relative output before deciding whether the run wrote under target/ripr. Its real CLI matrix retains dot, absolute and parent-relative default positives and the bare outside-root refusal, then adds the literal repo/target/ripr/../reports refusal. That row requires all five packets under repo/target/reports, complete JSON status and no ripr note:. Restoring the previous implementation fails the new literal note assertion. The normalizer also has harmless-dot and above-root refusal controls; the shared Git probe remains repository-relative.

Observed new-head execution: Rust-gate job 120294680930 records PASS for pilot_artifact_note_uses_the_selected_root_at_the_cli at 07:53:24Z (1.150s). It also records PASS for the artifact-note unit, pre-write doctor warning, existing ignore-rule controls, Python repair-card CLI control and exact terminal/Markdown scope-renderer test. The five-row matrix checks actual packet locations and emitted stderr; it is a product-binary journey, beyond the earlier extracted-function checks. Its Python stdout marker is distinct from the exact terminal/Markdown scope oracle in the separate renderer test.

Run 39917523586, attempt 1, finished successfully, including required Ripr Rust Small Result. The complete head-check read returned 52/52 terminal checks with no failure or pending result. Required policy/check/Clippy/test/doctest/golden/fixture/verdict/evidence/schema steps passed. The visible nextest log starts 19,802 tests across 158 binaries with 5 skipped; its retrieved text is partial, so no final whole-suite denominator is claimed from that text.

Same-head clean pip journey and clean uv journey passed executable SHA/version and wheel identity checks, a nonempty advisory Python check/explain route, planted-binary/project-interpreter controls, and install/remove checks. The payload SHA-256 is b920d0b8151d6fdcd9a60d4ec9512b08021bb069ab059f5ba047f4e63447f97c; wheel SHA-256 is bf71f9a00fc9188021ee11d0a3716d489d338a7d03b0c571813be219b51f9967. The Windows advisory log showed no test failures but did not execute this pilot matrix; that matrix's observed current proof is the Linux required job.

Owner-reported local matrix (10.9s), unit/fmt/clippy results remain reported, separate from the observed hosted receipts above. Prior 09a462e qualification and the older f27e3e5 full first-pr/pytest red-green journey retain their original source identities. No duplicate local build, test or CI campaign was started in this review.

Owner / governing claim: canonical fix/first-run-python-ux writer / #9857 #9858 #9860.
Candidate: exact reviewed head/base/tree above.
Review: REVIEW_READY after cumulative source/oracle/consumer review and inspected current hosted receipts. All three historical source findings are repaired with replies and resolved threads; fresh Conversation/review reads contain no later material finding or author hold.
Validation: existing exact-head required qualification and real CLI receipts above; all 52 checks terminal and passing/skipped/neutral.
Dependency: none remaining for the reviewed head. Current ruleset 18845973 requires resolved threads and zero ordinary approvals; branch metadata names the passing GitHub Actions result (app 15368). Previously denied classic-protection/artifact operations were not retried; normal protected merge must enforce all applicable policy.
Landing: ordinary one-parent squash e71258a completed at 2026-10-23T08:23:16Z, parent 69e1c17, tree 92f6fc47c24701dc14c88132e4101ce48b31b701. The pre-merge read found the merge already complete, so this review lane issued no duplicate merge request.

Verification: fetched main 8ac586a; git merge-base --is-ancestor e71258ad828c8053d42409e523a7ca09d75b63de origin/main exited 0. git merge-tree --write-tree 69e1c17155f29b65bbf5848eb1912a0942e8b694 3722daacebf9c75a787a1bccc3c6991401235b95 produced exactly the observed squash tree 92f6fc47c24701dc14c88132e4101ce48b31b701. The pilot blob at reviewed head and landing is identical: 8f7eaf9b0256be154930574262dba536f0a4a78f.

Reconciliation: #9857, #9858 and #9860 are already closed as completed with landing comments; readback confirmed all three, so no duplicate comment/closure was issued here. This bounded claim is complete.

Resource closeout: no review worktree or Cargo target was created in this lane; shared source remains clean at its original HEAD. The small /tmp/pr9902-review-c2cb5395 evidence directory is retained for historical negative-control/source-provenance audit and parent handoff, with no live local consumers. Existing author/other-reviewer artifacts were untouched.

Next: none for this PR's accepted first-run claim.

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

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 123 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: d0fc4fd8-381a-4ade-9176-3e1246ab3900
📥 Commits

Reviewing files that changed from the base of the PR and between b2568cb and 3722daa.

📒 Files selected for processing: 12
  • README.md
  • changelog.d/9857-pilot-scope-banner-language.md
  • changelog.d/9858-first-run-gitignore-note.md
  • changelog.d/9860-python-first-hour-quickstart.md
  • crates/ripr/src/cli/commands/doctor.rs
  • crates/ripr/src/cli/commands/pilot.rs
  • crates/ripr/src/output/doctor.rs
  • crates/ripr/src/output/pilot/render/complete.rs
  • crates/ripr/src/output/pilot/tests.rs
  • crates/ripr/tests/cli_smoke.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/QUICKSTART.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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 pilot note checks ignore coverage for target/ripr rather than the actual output artifact path.

Verification questions

  • Confirm the pilot stderr note claims it checks only the artifact path, but it gates on an out_dir under target/ripr without checking whether the run actually wrote under that root or whether a relocated cache root is relevant.
  • Confirm rIPR_CACHE_DIR relocation is not explicitly tested through the new pilot note; the note checks only the configured out directory and may stay silent when relocated artifacts are also uncovered.
  • Confirm the changed unit tests do not cover relocated-cache pilot output.

Refuted

  • The new stderr note changes behavior for every pilot run.; refuted because: The condition requires a successful non-quiet run, omits Cargo roots, and only applies when the output directory is under target/ripr; existing covered-ignore and explicit-output behavior is tested.
  • The pilot note duplicates doctor's ignore-rule engine and risks divergent behavior.; refuted because: The shared uncovered_artifact_roots helper centralizes Git probing; only pilot's output-root and Cargo-project presentation gates are local.

Parked follow-ups

  • Probe semantics for the trailing-slash form (/target/ripr/) are documented in the doc-comment and rely on git 2.47 behavior. No test simulates a directory-only rule like /build/ matching a non-existent probe to lock the contract; comment says 'present-artifact verdict is unchanged' but only one covering-rule test pins it.

Evidence gaps

  • Scheduled cargo-test evidence is not present in the supplied packet, and ripgrep exited with code 2.
  • Model proof intent was rejected by deterministic validation.
  • The receipt packet does not provide independently consumable passing proof for the Rust changes.

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

REPAIR_REQUIRED for exact head f27e3e5.

[P2] Anchor the default artifact-note gate to the selected root
Observed on a fresh non-Cargo Python fixture: from its parent directory, both ripr pilot --root absolute/path/to/repo and ripr pilot --root relative-root exit 0 and write all five default packet files under that root's target/ripr/pilot, but emit no ripr note:. The documented cd repo; ripr pilot --root . case does emit the note. default_pilot_out_dir(root) prefixes a non-dot root; artifact_root_ignore_note compares that output with the bare relative target/ripr, so the default-output gate rejects these normal invocations before probing Git.

Fix through this existing candidate: derive the output anchor from the selected root/default packet path while keeping the ignore probe repository-relative. Preserve Cargo, quiet, custom output outside the default root, covered-rule and unestablishable-probe silence. Add a CLI control using an absolute root and a parent-relative root, default output, non-Cargo project, and no ignore coverage. Do not relocate cache roots or edit gitignore automatically. Confidence: high; reproduced against the built candidate.

Independent qualification observed:

  • Source/base: f27e3e5 / 742f4d8. Tested clean source tree aa6b13d3bb368d1a842cbc6b040807ae8d16577a.
  • Built locally with Rust/Cargo 1.95.0, default features, locked dependencies, dev debug=0. Built binary SHA-256 884dde72b1698ee8d1925a6b0d191005ed70d984d1f88f612f88142e4f677cc0.
  • Fresh Python doctor, check, pilot --root .: pre-write advice, advisory-only finding/pytest route, Python scope in terminal and Markdown, stderr ignore note, existing-artifact follow-up warning all observed. Runtime created no .gitignore/ripr.toml and changed no tracked source. Literal /target/ripr/ directory-only rule was tested before target existed and silenced doctor/pilot; covered fixture stayed clean.
  • Quiet, custom-output, Cargo/Rust scope, and non-Git probe controls observed. Non-Git doctor exits 3; its unknown probe is not labeled a successful coverage check.
  • Flat markerless Python: exact disabled-preview refusal and documented explicit [languages] fallback observed. An initial fixture without marker files auto-enabled because src/tests are also source-directory markers; that was an invalid negative stimulus, not a product failure.
  • Scoped existing RIPR_CACHE_DIR=build/custom-cache control: doctor names the relocated in-repo artifact root; default dot-root pilot still emits the target/ripr note. This does not expand pilot's note into a general relocated-cache reporter.
  • Focused artifact unit tests are running, not yet claimed passing; author-reported larger suites remain reported until independently observed.

Review reconciliation: the earlier automated concern that pilot probes target/ripr instead of every relocated cache/output root is bounded by this PR's explicit default-root advisory contract; it is not authority to widen the cache-root contract. The actual non-dot-root omission above is a separate reproduced defect. Existing unit coverage constructs the bare relative output path, so it cannot discriminate this CLI failure.

Integration remains unqualified: GitHub merge subject 374a30b has parents 742f4d8 and f27e3e5, tree aa6b13d3bb368d1a842cbc6b040807ae8d16577a. Detect/Admit job checkout logs in existing run 39895640096 confirm that subject. It lacks the landed #9908 runner-test repair 5c20172. The Rust gate remains running; no duplicate run or label cycle was started. Its actual Rust-gate checkout and terminal results still need inspection.

Owner / governing claim: existing fix/first-run-python-ux delivery owner / #9857 #9858 #9860.
Next: canonical owner repairs the output-anchor gate in this PR, refreshes affected exact-head review and scoped controls, verifies the relevant #9908 integration subject, then resumes Ready/qualification. No branch write, cache-layout change, personal setup change, protection/artifact-access retry, release or deployment was performed.

Comment thread crates/ripr/src/cli/commands/pilot.rs Resolved
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 03:47

Copy link
Copy Markdown
Member Author

Qualification update for unchanged head f27e3e53a1a52535204438e395aa03c2847f545d (base 742f4d89ea2be187abbd8dc4553571b5878361dc, tested tree aa6b13d3bb368d1a842cbc6b040807ae8d16577a).

The focused checks noted as running in the repair review are now complete: cargo test --locked -p ripr --lib artifact_ passed 88/88 (13,215 filtered); cargo test --locked -p ripr --lib pilot_scope_line_names_the_language_actually_ranked passed 1/1 (13,302 filtered). These are scoped local results, not the full author-reported suites or hosted gate.

The fresh Python route also continued through first-pr's missing-ledger regeneration, the printed pytest command with an equality assertion, receipt writing with the actual passed status, and the printed worktree/static outcome comparison. Pytest exited 0 for the changed >= fixture, 1 with the prior > behavior, then 0 after restoration. The static outcome moved one gap from weakly_gripped to strongly_gripped and explicitly remained advisory; its snapshots lack repository-head fields. A missing default-environment pytest was handled with an isolated fixture-local virtualenv (pytest 9.1.1), with no personal setup changes.

Owner / governing claim: existing canonical fix/first-run-python-ux owner / #9857, #9858, #9860.
Candidate: #9902 / unchanged exact head above / source clean / GitHub merge subject 374a30b289bf094bcdc7bfe44879338797edda49, parents base+head above, same tested tree.
Review: REPAIR_REQUIRED; non-dot-root default-output omission remains open at pilot.rs:472. Draft transition confirmed; no branch mutation, merge or auto-merge.
Validation: documented dot-root Python path, Rust/Cargo control, directory-only ignore, quiet/custom-output/non-Git controls, flat markerless refusal and fallback, and scoped relocation control observed; absolute and parent-relative roots reproduce the note omission.
Dependency: observed merge subject lacks landed #9908 5c201725ba9bc5dc80e0f743f83ad0cbcfb924ae. Existing run 39895640096 remains in progress at Strict workspace Clippy; only it and Windows advisory subset were nonterminal in the complete 49-check read. Detect/Admit checkout logs were inspected; actual Rust-gate checkout and terminal evidence remain unverified.
Next: canonical owner repairs this candidate's output-anchor gate, proves absolute/relative-root positives and retained refusal controls, then obtains independent exact-successor review and relevant integration proof before Ready and a new qualification request. Preserve the existing run; no duplicate campaign or label cycle was started.

All local consumers completed. The isolated source/target and raw evidence are retained for the canonical-owner repair handoff; existing workspace state was untouched and no destructive cleanup, protection/artifact access retry, cache-contract expansion, release or deployment was performed.

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

The first-use stderr advisory gated on the bare relative 'target/ripr'
prefix, but the default out_dir is root-prefixed whenever --root is not
'.' (#5324), so 'pilot --root repo' and 'pilot --root /abs/repo' wrote
under repo/target/ripr/pilot yet never warned. Anchor the gate on the
repository-relative artifact root (either the bare form or the
root-stripped form) and cover the root-prefixed default out_dir in the
existing test.

Review follow-up on #9858.

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

REPAIR_REQUIRED for reviewed head c2cb539.

[P2] Remaining output-anchor mismatch in artifact_root_ignore_note
The repaired default-root cases are accepted by the current gate. A discriminating custom-output case still violates the PR's stated silence for output outside the selected root: from a parent directory, pilot --root repo --out target/ripr/pilot keeps the explicit output cwd-relative, while the bare-prefix arm accepts it and probes repo/target/ripr. A covering rule in repo therefore decides the note for a different packet location. This is an output-path/ignore-probe mismatch in this PR's new advisory, independently of any broader relocated-cache reporting.

Observed proof and its limit:

  • Compiled the exact current artifact_root_ignore_note, default_pilot_out_dir, uncovered_artifact_roots and artifact_root_pathspec functions in a review-owned, dependency-free Rust harness with real Git probes. The Git transport adapter used std::process::Command instead of the production deadline wrapper; bounded fixture calls completed in 0.18s. This is executable function-level evidence, not a new full-product CLI journey or hosted pass.
  • root=repo out=target/ripr/pilot note=Some("ripr note: this run wrote artifacts under target/ripr; ... add /target/ripr/ ..."); the explicit packet path is cwd/target/ripr/pilot, outside cwd/repo.
  • Dot-root default, absolute-root default, parent-relative-root default and explicit absolute output inside the selected root all returned the note. Both covered default-root forms, Cargo, non-Git and custom reports/pilot controls stayed silent. 9/10 literal contract controls matched; the custom bare target path was the counterexample.
  • Reproduction: rustc --edition=2024 gate_probe.rs -o gate_probe, then python3 run_controls.py, Rust 1.95.0 on Linux; harness executable SHA-256 81c4a684888e4bc602238b116ab2b50983304644ed5fa989f82d797c9d6a729f. Review-owned raw source/controls/receipt are retained at /tmp/pr9902-review-c2cb5395 in this execution environment (a local locator, not an uploaded/shared artifact). No workspace Cargo build was started.

Smallest repair direction: compare root and output in one cwd-resolved coordinate system before probing the selected root, or restrict this advisory to the actual selected-root default output. Preserve default dot/absolute/parent-relative positives, Cargo/quiet/covered/non-Git/custom-output silence. Add real CLI controls for the three default root spellings and the explicit cwd-relative output outside the selected root, with actual packet location and stderr assertions. The current added unit assertion exercises one root-prefixed path; it does not itself execute both CLI root forms. Keep the repair in the canonical fix/first-run-python-ux candidate.

Review scope and provenance:

  • Repo/claim: EffortlessMetrics/ripr-swarm #9902; #9857/#9858/#9860; 12-file diff, 466 insertions/53 deletions against published base b2568cb; head tree cd16d952617ac100ce30f2af1c5858db2949f0a6.
  • Inspected complete diff, doctor Git-ignore producer and enum/render consumers, pilot parsing/output write/note path, Python card selection and terminal/Markdown scope consumers, current JSON/schema/docs, marker detector, current issue/Conversation/review/thread history and workflow routing.
  • Prior f27e3e5 journey receipts remain at their original source identity. Compared exact old/current product paths: only pilot's output gate and its added unit assertion changed in this PR's first-run surfaces; ancestor changes include the landed baseline repairs. No claim that those old product-binary runs were re-executed here.
  • #9908 5c20172 and golden #9881 f2426ce are ancestors of this head; the old missing-prerequisite report is historical for this successor. Current remote merge subject 95c8b76 has parents 877cd03 + reviewed head, tree d387b52bee5fe74468c38e3e62987c034bbfdac0. Admission job 120240583266 logs directly confirm that checkout and expected head.
  • Required Ripr Rust Small Result is still unearned in existing run 39900323605 attempt 1; Rust-gate job 120240668924 was in Repository policy preflight. Preserve that run; no label cycle, rerun, cancellation or duplicate qualification. Actual gate checkout/terminal evidence still needs inspection.
  • Current ruleset 18845973 requires thread resolution with zero ordinary approving reviews; public branch metadata names required check Ripr Rust Small Result. Classic review-protection details remain unverified; no settings or previously denied protection/artifact operation was retried.

Owner / governing claim: canonical fix/first-run-python-ux delivery owner / #9857 #9858 #9860.
Candidate: #9902 / exact head and source/base/tree above.
Review: REPAIR_REQUIRED for the output-coordinate counterexample; earlier non-dot-default omission is fixed at function level. Existing historical thread is resolved; new finding remains open.
Validation: bounded exact-function controls above; prior real Python check/pilot/first-pr/pytest red-green journey remains source-bound historical evidence; current hosted qualification pending.
Next: existing source owner composes the path repair and CLI controls, obtains affected exact-successor review, and resumes qualification through the normal path after inspecting the existing run. No competing branch writer, cache-layout expansion, release, deployment or permission change.

Comment thread crates/ripr/src/cli/commands/pilot.rs Resolved
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 04:39

@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 the absolute and parent-relative CLI regression lacks an end-to-end CLI test, despite being valid control paths through argument parsing and default output construction.
  • Confirm residual verification gap: the new test calls the helper with an absolute root-prefixed output, while the PR description says the absolute and parent-relative CLI spellings are covered; no CLI-level assertion of the parent-relative spelling is visible in the patch.
  • Confirm the prior root-prefixed default-output bug is resolved in the current source, but CLI-level regression coverage for both non-dot root spellings is not visible in the diff.

Refuted

  • The Python scope test does not distinguish old from new behavior.; refuted because: Its Python-only expected string differs exactly from the prior Rust wording and is exercised in both terminal and Markdown renderers, with contrasting Rust controls.
  • Doctor and pilot duplicate ignore-rule semantics and can diverge.; refuted because: Both call doctor::uncovered_artifact_roots; only presentation and pre-existence policy remain local to each command.
  • The pilot note warns for arbitrary --out paths.; refuted because: The gate requires the selected output to be under target/ripr; an explicit reports/pilot path is tested to remain silent.

Evidence gaps

  • The packet cannot yet establish the complete Rust behavior/test suite because cargo-test is scheduled late and ripr failed with exit code 2.
  • Model proof intent was rejected by deterministic validation.

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

…9858)

Review follow-up on the non-dot-root repair: the bare-prefix arm accepted
an explicit relative --out against the process cwd even when --root named
another directory, so  (cwd
above the repo) wrote outside the repository while the ignore probe
checked repo/target/ripr — a false claim about artifacts the run did not
write there.

Anchor the note in the selected root's coordinate system: the dot root
keeps the historical bare form (cwd == root); a non-dot root only fires
for out_dirs inside the root, compared after stripping the root prefix
(covers the default root/target/ripr/pilot for every spelled root). A
bare relative --out with a non-dot root stays silent — custom output
outside the root is the documented silence.

Add the cli_smoke matrix pilot_artifact_note_uses_the_selected_root_at_the_cli
per the review proposal: four rows (dot root, absolute root,
parent-relative root, explicit bare --out) each run the real binary with
an explicit per-row cwd and fixture-local cache, assert the five packet
files at the expected directory, summary status complete, Python preview
scope retained, and the literal stderr note oracle (present for the
three default rows, absent for the bare-out row, which also asserts the
repo packet directory was not written). Reverting the non-dot-root
repair fails the positive rows; the old bare-prefix arm fails row 4.

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

Refuted

  • Pilot and doctor duplicate ignore-rule behavior and may diverge.; refuted because: Both routes call the shared doctor::uncovered_artifact_roots helper; only policy/presentation differs.

Evidence gaps

  • Late cargo-test and failed ripr evidence limit independent verification in this lane.
  • Model proof intent was rejected by deterministic validation.
  • The late cargo-test result is the only qualifying execution receipt not yet represented in the packet.

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

REPAIR_REQUIRED for exact successor head 09a462e.

[P2] Resolve parent components before deciding which artifact root was written
The reported dot/absolute/parent-relative default-output repairs are now independently verified with the real built candidate. The explicit bare cwd-relative output outside a non-dot root also correctly stays silent. One custom-output refusal still contradicts the documented gate: from a fresh sandbox parent, run ripr pilot --root repo --out repo/target/ripr/../reports, with RIPR_CACHE_DIR set to a fixture-local path outside repo. Native exit is 0; all five packet files land in repo/target/reports; there are zero files under repo/target/ripr; stderr nevertheless says this run wrote artifacts under target/ripr and advises /target/ripr/. The strip-prefix/starts-with gate compares unnormalized components, so it accepts the path before .. leaves the artifact root. The suggested ignore entry does not cover the packet it describes.

Fix through the canonical candidate: compare root/output in a single resolved coordinate system (and refuse an unestablishable comparison), or restrict this note to the actual selected-root default packet. Keep the Git ignore probe repository-relative and retain the new four CLI rows plus a literal parent-component custom-output refusal. This is an advisory path-contract repair, not authority for cache relocation, automatic ignore editing or a larger cache-root reporter. Confidence: high; full CLI reproduction with real packet-location and stderr oracles.

Independent successor qualification:

  • Published head/source tree: 09a462e / 7b4a79f8ba13757eddf028d0e662d597c7c336f6. Published base b2568cb.
  • Fresh locked default-feature build on Rust/Cargo 1.95.0, dev debug=0, isolated review-owned tree. Selected binary SHA-256 e6cfdbd12ec721282aa35a9344804a33a9c0b275b599cf25c63e989f54cd97a7.
  • Eight real CLI rows, 52 assertions passed, one failed: dot/absolute/parent-relative default output, explicit bare outside output, covered directory rule, quiet, custom reports/pilot all match policy; parent-component custom output is the counterexample. Every row verifies all five packet files, JSON status complete, Python scope in terminal and Markdown, literal note presence/ignore entry, and no runtime source/config/gitignore edit. Outside-output control also verifies output was not silently rebased. This does not relabel the negative row as passing.
  • Inspected both successor commits, their unit/CLI changes, and the ancestor additions separately. The original doctor/banner/docs blobs are unchanged from the prior reviewed product surfaces; prior 89 unit passes and full Python first-pr/pytest red-green route remain evidence for their original f27e3e5 source identity, not new-head reruns.
  • Prior non-dot default omission and bare custom-output mismatch are repaired; both old threads have repair replies and are resolved. The automated concerns about missing CLI rows on c2cb539 are superseded by the new matrix and current real CLI execution. Latest ub-review reports execution gaps, not an additional source finding.
  • #9908 5c20172 is an ancestor; the original missing-prerequisite blocker is cleared for this successor.
  • Existing run 39910946057 remains in progress at PR evidence after required tests/goldens/fixtures/verdict corpora. Detect/Admit logs directly confirm merge checkout 10dee9a, parents 8435e26 + reviewed head, tree 183dc8c7049c809253ffd0a75972ef7de945d2f9. Actual Rust-gate terminal logs/checkout remain to inspect. No duplicate request, rerun, label cycle or branch write was made.
  • Current public main metadata names required context Ripr Rust Small Result; denied classic-protection/artifact reads were not retried. The connector rejected /rules/branches/main as unsupported (INVALID_ARGUMENT), establishing no policy read; no alternate route was attempted.

Disposition: source repair required before merge, independently of the still-running hosted result. Existing canonical fix/first-run-python-ux owner supplies the bounded path repair and affected exact-head review/proof. No takeover of its branch, personal setup change, cache-contract expansion, publication of a package, deployment, credential/security change or destructive cleanup. Local raw witness: /workspace/qualification-9902/successor-09a462e/verification-receipt.json (environment-local, not an uploaded artifact).

Comment thread crates/ripr/src/cli/commands/pilot.rs Resolved
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 07:04

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

REVIEW_INCOMPLETE for exact published head 09a462e: the source findings are repaired; final required qualification is still in flight.

reviewed_head_sha: 09a462e
integration_basis: published comparison base b2568cb; actual hosted checkout 10dee9a, parents 8435e26 + reviewed head, tree 183dc8c7049c809253ffd0a75972ef7de945d2f9. Gate job 120273752108 logs confirm both checkout and reusable workflow identity at that subject. Current main 158ee2f adds no change in pilot/doctor, pilot rendering, config, Cargo.lock or the required test/workflow configuration; inspected CLI-dispatch changes concern other router commands. No behind-only restack requested.

claim_boundary: #9857/#9858/#9860 first-run Python/non-Cargo scope wording, ignore advice and quickstart; cache layout and JSON versions retained.
changed_surfaces_and_semantic_owners_inspected: cumulative 12-file diff (661 insertions/53 deletions); successor gate/unit and CLI-test delta; argument parsing and cwd-relative explicit --out, default_pilot_out_dir, actual packet writers, shared Git-ignore producer, Python recommendation selection, terminal/Markdown scope renderers, docs/schema and existing refusal controls.
blocking_findings: no remaining source defect established in this reviewed delta.
refuted_or_stale_findings: both reproduced output-anchor findings are repaired. The new branch compares the non-dot root-prefixed output after stripping the selected root and rejects the bare cwd-relative external output case. Both historical threads are resolved after a repair reply; current inventory has two threads, zero unresolved.
proof_and_ci_observed:

  • Required-run real CLI test pilot_artifact_note_uses_the_selected_root_at_the_cli PASS at 06:44:10Z, 0.860s. Inspected all four row stimuli and literal packet/status/stderr assertions. Each has a committed Python change and a fixture-local external cache; the explicit-output row also rejects silent output rebasing. These are actual product-binary executions, beyond the earlier extracted-function controls.
  • The same log records PASS for pilot_projects_python_repair_card_for_git_diff, preemptive_artifact_ignore_warns_before_the_first_write, artifact_root_ignore_note_fires_only_for_the_first_run_litter_case, existing ignore-rule controls, and pilot_scope_line_names_the_language_actually_ranked.
  • Wrong-behavior challenge on source/oracle: restoring the prior bare-prefix gate violates the final matrix row; restoring the pre-root-prefix gate violates absolute/parent-relative default positives. No duplicate control build or CI was run.
  • The matrix asserts Python language in stdout; exact terminal and Markdown scope text is independently pinned by the scope-renderer test. The owner reply's broader per-matrix Markdown assertion is not present in the code and is not credited here.
  • Same-head clean pip/uv wheel jobs 120277372672/120277372755 passed executable SHA/version checks, a nonempty preview advisory Python check/explain journey, planted-PATH/project-interpreter refusal controls, and install/remove lifecycle checks. Their logs were inspected; these do not stand in for pilot's matrix.
  • The required job's step inventory reports success through tests, doctests, goldens, fixtures and verdict corpora. It remains active at PR evidence. The partial retrieved test log starts 19,769 tests across 157 binaries with 5 skipped; a final suite summary is not asserted from that partial log.
    proof_or_review_missing: terminal Ripr Rust Small Result in existing run 39910946057 attempt 1, remaining schema/evidence steps, and final current-head review/check refresh. Current ruleset 18845973 requires thread resolution and zero ordinary approvals; branch metadata names the required result. Unavailable classic-review details remain a policy evidence gap, with no denied protection/artifact operation retried. Normal protected merge must enforce all applicable rules.
    affected_currentness_dimensions: production output gate, unit stimulus/oracle, real CLI stimulus/oracle, candidate identity and hosted integration identity refreshed; unchanged doctor, scope rendering and quickstart evidence retained with its source identity.
    residual_assumptions_and_non_claims: old f27e3e5 full first-pr/pytest red-green receipt remains historical; owner local 9.2s CLI run remains reported; current hosted receipt above is independently observed. No full local workspace build, source write, broad cache contract or release claim.
    disposition: source repair accepted; REVIEW_INCOMPLETE pending terminal qualification. The existing required run is preserved. PR metadata now includes required source/candidate lines and current evidence; inherited local xtask check-pr-shape --body-file exited 0 on that metadata, not claimed as current product proof.

Next: consume the existing run's final result, refresh current findings/head and required policy state, publish final REVIEW_READY only if earned, then use ordinary expected-head squash and verify main.

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

REPAIR_REQUIRED for unchanged head 09a462e. This supersedes the source-clearance wording in my 07:05 review.

The concurrent 07:04 exact-head review and open source thread arrived during that record's preparation. They supply a new full-CLI counterexample: from the sandbox parent, pilot --root repo --out repo/target/ripr/../reports with cache outside repo writes the packet under repo/target/reports while printing the target/ripr ignore advice. Reading the pinned source confirms the cause: strip_prefix(root) retains parent components, starts_with(target/ripr) accepts that lexical prefix, and the packet writer delegates the output path to the filesystem. The proposed ignore entry cannot cover the resolved packet location.

The prior two output-anchor findings are fixed. The hosted CLI matrix PASS at 06:44:10Z remains valid for its four literal rows; it does not establish the parent-component refusal. Current default/absolute/relative-root positives, explicit bare outside-output negative and separate renderer/doctor evidence remain useful. No repeated function control, full CLI reproduction or Cargo/CI run was started here; the concurrent reviewer owns the new executable receipt. Its environment-local raw receipt path is unavailable in this execution environment and was not claimed inspected.

The PR-native current record has been corrected to REPAIR_REQUIRED, the new thread remains unresolved, and Draft is preserved. The available connector cannot edit a submitted review body, so this explicitly linked correction replaces that earlier disposition without dismissing evidence or changing protection.

Owner / next: canonical fix/first-run-python-ux writer resolves the output path comparison (or limits the note to the actual selected-root default), adds the parent-component refusal beside the existing CLI rows, and supplies affected exact-successor review/proof. Preserve existing run 39910946057 attempt 1 and all required checks. No Ready transition or merge while this source finding remains.

Copy link
Copy Markdown
Member Author

Terminal qualification checkpoint for unchanged head 09a462e97024bbe68274e44755d9ba4b1e8b8a3f.

Existing run 39910946057 finished successfully, including Ripr Rust Small Result. The final head-check inventory returned all 56/56 checks, with every check successful or skipped. No new qualification campaign, rerun, label cycle or cancellation was performed.

This clears the pending hosted-result evidence; it does not clear the new exact-head repair review. Real built-candidate controls verify the intended absolute/parent-relative default repair and the explicit bare outside-root refusal. The additional parent-component refusal still fails: --root repo --out repo/target/ripr/../reports writes all five packets under repo/target/reports, with zero files under repo/target/ripr and cache outside repo, yet prints the latter root's ignore advice. Of 53 literal assertions, 52 passed and this one failed. The two previous source findings are repaired and resolved; the new thread at pilot.rs:487 is open.

Owner / governing claim: canonical fix/first-run-python-ux owner / #9857 #9858 #9860.
Candidate: source 09a462e97024bbe68274e44755d9ba4b1e8b8a3f, published base b2568cb44aeaa5099009fa31497d582a2549d290, tested source tree 7b4a79f8ba13757eddf028d0e662d597c7c336f6.
Integration: actual Rust-gate checkout 10dee9aa1491b0f9dc196e98a5b3bfa461221682, parents 8435e26f84cc5b613a0db7b9e9ae6dcb5d0f6e64 + candidate, tree 183dc8c7049c809253ffd0a75972ef7de945d2f9. Job log directly confirms checkout and PASS for the four-row CLI regression and relevant doctor/scope controls; the visible log snapshot ends before the suite tail, so no final whole-suite denominator is asserted from that partial text.
Review: REPAIR_REQUIRED; Draft confirmed on the unchanged head, not merged.
Next: canonical source owner resolves the output path before containment testing or limits the note to the actual default packet, adds the parent-component refusal, and obtains independent affected-successor review and relevant integration checks before Ready/qualification/merge. No branch takeover or source edit was made in this lane.

Selected new binary SHA-256: e6cfdbd12ec721282aa35a9344804a33a9c0b275b599cf25c63e989f54cd97a7. Source, binary and raw positive/negative fixtures are retained in the review environment for the owner handoff; local consumers are complete. Prior evidence remains at its original identities. No personal setup/cache contract change, held publication or Draft action on unrelated PRs, denied-access retry, release, deployment, spending, credential/security change or destructive cleanup occurred.

…on (#9858)

Review follow-up on the coordinate-system repair: the component-wise
starts_with accepted --out target/ripr/../reports, which lands under
target/reports with zero files under target/ripr while still emitting
the target/ripr ignore note. Normalize . and .. lexically (no filesystem
touch; the packet dir may not exist yet) before the prefix decision; a
.. that climbs above the root cannot be anchored repository-relative
and stays silent like every other unestablishable case.

Coverage: unit tests for the parent-escape, no-op dot, and
above-root-climb shapes, and a fifth cli_smoke matrix row (dotdot-out)
asserting the packets land under repo/target/reports, the note is
absent, and the artifact root was not written.
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 07:24

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

REVIEW_INCOMPLETE for exact published head 3722daa. The parent-component source repair is accepted on inspection; its new-head hosted execution and final required qualification are pending.

Reviewed delta: 09a462e..3722daa, only crates/ripr/src/cli/commands/pilot.rs (42 added lines) and crates/ripr/tests/cli_smoke.rs (18 added/5 removed). Full candidate comparison base b2568cb; head tree 5d319469826f45c6b284e2954c8ef21ba62d2344.

Production/consumer review: normalize_parent_components resolves CurDir and ParentDir after root-prefix anchoring and before the artifact-root starts_with decision; an above-root pop fails closed. The exact reported output becomes target/reports, so it does not reach the target/ripr Git-ignore advice. The packet-write semantics, selected root, quiet/Cargo gates, shared repository-relative ignore probe, config and schemas remain unchanged. This accepts the bounded lexical-path repair; it makes no general symlink-confinement claim.

Oracle review: all four existing CLI cases remain. The added dotdot-out row runs the real product binary from the sandbox parent, uses an external fixture-local cache, requires all five files under repo/target/reports and a parsed complete summary, and requires the literal note to be absent. The previous implementation returns the note for this stimulus, so the new oracle discriminates the defect. The unit additions also cover parent escape, harmless dot and above-root refusal. The test's Python stdout marker is distinct from exact terminal/Markdown scope proof in the separate renderer test; no broader per-row claim is inferred.

Evidence/currentness:

  • Canonical reply reports local matrix PASS in 10.9s, unit test, fmt and clippy. Those are reported results, not independent reruns here.
  • Prior required CI and original four CLI rows passed on 09a462e. Retained at that identity; they are not new-head execution receipts. Unchanged doctor/banner/docs review remains applicable by inspected source delta.
  • Existing exact-head run 39917523586 attempt 1 is active, job 120294680930 at Repository policy preflight. No new run, repeated function control, full CLI run or local Cargo build was started by this review.
  • Observed remote merge object 39b1c2d: parents 7be43fd + current head; tree 6cb8e38da21dfeb3e4bdba82a2b761142f2f1301. Gate log retrieval returned BlobNotFound at 07:35Z; actual gate checkout and named new test receipt remain unestablished. No denied protection/artifact access operation was retried.
  • Three historical findings have current repair replies and resolved threads. No new blocking source finding is established in this inspected delta; current provider review is still in flight.

Owner/next: keep canonical fix/first-run-python-ux custody and the existing qualification. After the new-head test receipt and required result exist, inspect checkout/result identities, current review/Conversation/thread findings and applicable protection, then issue final REVIEW_READY and attempt only ordinary expected-head squash if qualified. No merge transition is authorized by this incomplete disposition.

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

Refuted

  • The pilot note duplicates doctor ignore semantics and could diverge.; refuted because: Both paths call the shared uncovered_artifact_roots Git probe helper; presentation and output-root policy are intentionally separate.
  • The new Python scope wording is only cosmetic or changes ranked-Rust behavior.; refuted because: The label derives from the same ranked context used by both renderers and has explicit Rust-preserving controls; the state machine and JSON schema remain unchanged.
  • Doctor and pilot duplicate Git ignore semantics and can drift.; refuted because: Both consume uncovered_artifact_roots; only pre-existence policy, output-root gating, and rendering remain command-local.
  • The pilot advisory claims ignored coverage without checking the actual Git repository.; refuted because: Both doctor and pilot route through uncovered_artifact_roots, which uses git check-ignore --no-index and returns silence on an unestablishable probe.

Evidence gaps

  • The independent test receipt for this exact successor is not contained in the lane packet.
  • Current-head executable qualification is incomplete in this review packet despite owner and hosted receipts in the seeded PR thread.
  • Model proof intent was rejected by deterministic validation.
  • The architecture and behavior matrix is substantially repaired, but deterministic full qualification for this successor head is still 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.

REVIEW_READY for exact published head 3722daa.

This final disposition completes the current source review, preserving its cumulative semantic-owner, consumer, oracle and contract inspection. The three reproduced output-anchor findings are repaired; all three threads have repair replies and are resolved. No later material finding or author hold appears in the refreshed reviews/Conversation.

Source and composition: published comparison base b2568cb; reviewed head tree 5d319469826f45c6b284e2954c8ef21ba62d2344. Actual gate checkout/workflow subject 39b1c2d has parents 7be43fd + reviewed head and tree 6cb8e38da21dfeb3e4bdba82a2b761142f2f1301; the job log directly confirms it. Current main 69e1c17 has no changes in pilot/doctor, pilot rendering, config or required test/build inputs; inspected dispatch additions concern separate TypeScript repair routing. No behind-only restack was needed.

Observed current proof:

  • Real five-row CLI matrix pilot_artifact_note_uses_the_selected_root_at_the_cli PASS at 07:53:24Z, 1.150s, in job 120294680930. The new parent-component refusal checks five actual packet files under repo/target/reports and absence of the literal note, while preserving the four original default/output cases. Restoring the prior implementation fails that new assertion.
  • Same job records PASS for the artifact-note unit, preemptive doctor warning, ignore-rule controls, Python-card CLI case and exact terminal/Markdown scope-renderer case. The matrix stdout language assertion and the renderer's scope assertions are distinct evidence.
  • Existing run 39917523586 attempt 1 is terminal success, including required result job 120315005698, bound to this head and required app 15368. All 52/52 head checks are terminal, with none failing or pending. Required policy, checks, Clippy, tests, doctests, goldens, fixtures, verdict corpora, PR evidence and schema sweep passed.
  • Current-head pip/uv jobs 120299151087/120299151113 independently passed executable/wheel identity and nonempty advisory Python check/explain journeys, including planted executable and project-interpreter refusal controls; their logs were inspected. Linux payload SHA-256 b920d0b8151d6fdcd9a60d4ec9512b08021bb069ab059f5ba047f4e63447f97c.
  • Windows advisory logs show no failures, but this pilot matrix was not selected there; its observed execution is Linux. The nextest log is partial (starts 19,802 tests across 158 binaries, 5 skipped), so no final suite denominator is inferred from that partial text.

The prior provider's 07:43 execution gap is now supplied by the named current-head CLI receipt and terminal required result. Owner-local 10.9s and older full first-pr/pytest receipts remain at their reported/original identities. No duplicate build/test/CI, cache-layout change, new support tier or general symlink-confinement claim is part of this disposition.

Policy: live ruleset 18845973 requires thread resolution and zero ordinary approvals; public branch metadata names the passing required result. Unavailable classic-review details remain disclosed; no denied read, permission change or bypass was attempted. This COMMENT review observes GitHub's author-review limitation and is not represented as a separate GitHub approval.

The exact reviewed head may proceed to ordinary protected expected-head squash, followed by main readback and bounded issue reconciliation.

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.

1 participant