Repository navigation
fix(output): unify wrote-path rendering on human_path (#9806) - #9835
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
There was a problem hiding this comment.
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.
Governing issue or accepted claim: #9806
Acceptance delta (one sentence): Every user-facing
Wrote <path>confirmation in the ripr crate now renders through the sharedoutput::path::human_pathhelper, so paths print with one separator convention (forward slashes, no verbatim\\?\prefixes) across all commands and platforms.Surfaces
crates/ripr/src/cli/commands.rs— 13Wrotepairs across report commands.crates/ripr/src/cli/commands/gate.rs,baseline.rs,policy/reports.rs,review_comments.rs—Wroteconfirmations.crates/ripr/src/cli/rerun.rs— targeted-rerun--outconfirmation.crates/ripr/src/cli/commands/agent.rs—agent startprose lines.crates/ripr/src/app/annotations.rs— annotation write confirmation (options.outis aString, routed throughhuman_path(Path::new(..))).crates/ripr/src/output/first_pr.rs— start-here packet confirmations previously used the agent-commandloop_commands::display_path; nowoutput::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 apwshbinary 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_pathalready normalizes separators to forward slashes, and neither the record receipt path nor the export--outpath is sourced fromcanonicalize, so no concrete inconsistency was found.cli/commands/agent_stub.rs— message isWrote 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_pathwould 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
checkresolved-root notice) of cli: advisory routing and path rendering inconsistencies (stdout warnings, verbatim Windows paths) #9806 are handled in a separate PR.