Skip to content

fix(output): unify wrote-path rendering on human_path (#9806) - #9835

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/wrote-path-unify-9806
Oct 22, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
fix/wrote-path-unify-9806

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9806
Acceptance delta (one sentence): Every user-facing Wrote <path> confirmation in the ripr crate now renders through the shared output::path::human_path helper, so paths print with one separator convention (forward slashes, no verbatim \\?\ prefixes) across all commands and platforms.

Surfaces

  • crates/ripr/src/cli/commands.rs — 13 Wrote pairs across report commands.
  • crates/ripr/src/cli/commands/gate.rs, baseline.rs, policy/reports.rs, review_comments.rs — Wrote confirmations.
  • crates/ripr/src/cli/rerun.rs — targeted-rerun --out confirmation.
  • crates/ripr/src/cli/commands/agent.rs — agent start prose lines.
  • crates/ripr/src/app/annotations.rs — annotation write confirmation (options.out is a String, routed through human_path(Path::new(..))).
  • crates/ripr/src/output/first_pr.rs — start-here packet confirmations previously used the agent-command loop_commands::display_path; now output::path::human_path.

Message wording, JSON schemas, and report bodies are unchanged; only path rendering changes.

Evidence

  • cargo test -p ripr --lib -- output:: cli::rerun cli::commands::agent: 2535 passed; 2 failed are pre-existing environment failures (output::markdown::tests::powershell_translation_* require a pwsh binary not installed on this host; unrelated to this diff).
  • cargo test -p ripr --lib -- cli::commands app::annotations: green except the two known pre-existing Windows failures from test(cli): calibrate/outcome missing-snapshot tests fail on Windows (display_path vs native spelling) #9827 (calibrate_missing_inputs_name_the_caller_capture_command, outcome_command_reports_read_failures).
  • cargo fmt + cargo fmt --check: clean.
  • cargo clippy -p ripr --lib --tests -- -D warnings: clean, no new allow/expect attributes.

Sites audited but deliberately NOT unified

  • cli/commands/feedback.rs (display_path) — left per task instruction; display_path already normalizes separators to forward slashes, and neither the record receipt path nor the export --out path is sourced from canonicalize, so no concrete inconsistency was found.
  • cli/commands/agent_stub.rs — message is Wrote test stub \name` to : (kind)`, not a plain path confirmation; the file portion is already manually normalized to forward slashes at the call site.
  • app/pr_evidence.rs, app/impacted_evidence.rs, app/pr_summary/mod.rs, app/ripr_plus.rs — these print fixed string-literal constants (e.g. target/ripr/pr/repo-exposure.json) that are already in the unified forward-slash form; human_path would return them byte-for-byte unchanged on every platform.
  • xtask/ report commands — separate unpublished developer-tooling crate, outside the user-facing CLI surface in scope for cli: advisory routing and path rendering inconsistencies (stdout warnings, verbatim Windows paths) #9806.

Rollback

Revert this single commit; each change is a one-line renderer swap with no schema or behavior contract beyond terminal path spelling.

Non-goals

@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 22, 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 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 114 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: f4c8c701-2526-4c92-9992-2c03a8a43c10
📥 Commits

Reviewing files that changed from the base of the PR and between d8ef333 and 04d2337.

📒 Files selected for processing: 10
  • changelog.d/9806-wrote-path-unify.md
  • crates/ripr/src/app/annotations.rs
  • crates/ripr/src/cli/commands.rs
  • crates/ripr/src/cli/commands/agent.rs
  • crates/ripr/src/cli/commands/baseline.rs
  • crates/ripr/src/cli/commands/gate.rs
  • crates/ripr/src/cli/commands/policy/reports.rs
  • crates/ripr/src/cli/commands/review_comments.rs
  • crates/ripr/src/cli/rerun.rs
  • crates/ripr/src/output/first_pr.rs
  • 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 verification checks before upstream.

Verification questions

  • Confirm the changed confirmation sites use human_path for display while preserving the existing write operations and output payloads.
  • Confirm the PR claims every user-facing Wrote confirmation is unified, but the cited packet does not expose a complete grep proving no additional plain Wrote path sites remain.
  • Confirm the changed Wrote routes consistently render through output::path::human_path; the String annotation path is explicitly wrapped with Path::new before rendering.
  • Confirm the acceptance claim says every user-facing Wrote confirmation, but supplied source evidence is diff- plus audited-exclusion-bounded rather than a repository-wide enumeration.

Refuted

  • The changes may alter machine-readable output paths or schema.; refuted because: The diff changes only human-facing println!/format! rendering; write_text_file inputs and receipt payloads remain unchanged.
  • The helper migration crosses architecture boundaries by coupling output commands to path presentation.; refuted because: All substitutions target existing user-facing Wrote confirmations and use the established output::path::human_path abstraction; writes, schemas, and report contents are unchanged.
  • The patch changes presentation only; write_text_file inputs and rendered payloads remain untouched at reviewed sites.

Evidence gaps

  • The available automated evidence is not fully green: ripr failed and cargo-test is scheduled late.
  • Model proof intent was rejected by deterministic validation.
  • No provided test receipt demonstrates that the old rendering fails while the new human_path rendering passes for changed Wrote messages.
  • Portability behavior is not independently demonstrated by the supplied receipts: ripr failed and cargo-test was still pending.

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