Repository navigation
fix(windows): verbatim-free roots in refusal/diff JSON and diagnostics; host-correct oracles for six Windows rows (#9806, #9660) - #10111
Conversation
…s; host-correct oracles for six Windows rows (#9806, #9660) Output (path census after #9822; identity and command-contract sites are left for their owners): - SARIF refusal `root`, limited/refused check JSON `root` and `ripr_diff` `root` render through display_path, matching check JSON. - The triage `restart_route` binds its root through root_display, so a canonical root prints its plain spelling and `.` stays `.`. - Seam-packet currentness reasons use display_path; agent repair/verify progress and receipt lines plus agent/check/rerun/swarm diagnostics on stderr use human_path (identity on Unix). Tests (rows from sharded Windows run 39873139606, which already carries #9736 and #9822): - cache_clear_safety compares the reported cache_dir by filesystem identity, not spelling. - cli_smoke workspace-root disclosure ×2 compare against printed_path; printed_path folds `\\?\UNC\` to `//` like the product. - task_first_facade: the persisted root expectation folds the verbatim prefix; the continue command expects `/` on Windows. - hostile_repos: Windows uses cmd/PowerShell metacharacters a file name can hold (`|` is os error 123); the injection oracle is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
|
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 48 minutes. View limit details
Comment |
…ling of unusual JSON roots (#9806) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the cache test’s new oracle checks filesystem identity but can no longer detect a reported path with identical identity and an intentionally different spelling.
Refuted
- The JSON presentation changes consistently use display_path, but they alter non-Windows spelling for roots containing percent, backslash, or non-UTF-8 bytes.
- The Windows hostile-repository fixture still contains an invalid pipe character.; refuted because: The Windows branch selects a filename without
\|, while Unix retains the original injection fixture and marker oracle. - The PR body says the six Windows rows pass, but its Proof section states the result is Linux only and the Windows outcome awaits CI.
- The renderer substitutions cross an identity boundary and could corrupt path validation or persisted roots.; refuted because: Validation still canonicalizes and compares Path values; only strings produced for diagnostics, JSON presentation, and restart-route display are normalized.
- The test-oracle changes materially weaken negative controls.; refuted because: The cache negative control still requires canonical identity mismatch, the CLI smoke assertions compare against the same product-compatible printer, and the hostile-root test retains marker-based injection detection with only a host-valid fixture name substituted.
Evidence gaps
- The changed Windows test oracles improve host compatibility, but this packet contains no Windows execution result for them.
- Model proof intent was rejected by deterministic validation.
- The PR’s Windows acceptance claim lacks direct Windows proof in the supplied packet.
#9660) Hosted Windows run 40136594386 (b2b3a2d) now passes the cache_dir identity check and stops at the hint: Windows prints --root "D:\...". The other five #10111 rows pass on Windows in that run. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the cache test now checks canonical filesystem identity, so it cannot distinguish two valid spellings of the same cache directory.
- Confirm the cache test now canonicalizes the reported cache_dir and compares filesystem identity, which cannot distinguish an intended path from an equivalent alias or symlink.
- Confirm the cache test now accepts any spelling that canonicalizes to the expected directory, so it cannot detect an intentionally different but equivalent spelling.
- Confirm the cache test now proves filesystem identity, but no longer distinguishes an equivalent path with a different textual spelling.
Refuted
- The cache-oracle change materially weakens the negative control and cannot detect a reported path with identical identity but intentionally different spelling.; refuted because: The negative control still requires the reported cache_dir not to resolve to the checked root's real cache identity, but it intentionally no longer distinguishes spelling aliases; the residual alias-specific gap remains the open observation.
- The Windows hostile-repository fixture still includes an invalid pipe character.; refuted because: The Windows branch selects a name without '|', while the Unix branch retains the original injection fixture and marker oracle.
Evidence gaps
- Windows success for the six targeted rows is not established by the available evidence.
- Model proof intent was rejected by deterministic validation.
- The six Windows oracle changes are host-correct in intent, but the supplied proof is Linux-only and no Windows receipt demonstrates the claimed rows pass.
- The PR's Windows-green claim exceeds the available proof: the body states Linux-only results and awaits Windows CI.
- The claimed Windows acceptance criterion is not demonstrated by the supplied proof.
|
On the repeated
Windows evidence (hosted run 40136594386, job 120999593536, head b2b3a2d, workspace run 1):
Generated by Claude Code |
…-qdq5b6 # Conflicts: # crates/ripr/tests/task_first_facade.rs
|
|
|
Independent delta/evidence reconciliation for head No actionable source finding emitted. Existing implementation ownership remains unchanged; no branch edits or additional qualification campaign were made. Frozen identities. Head tree: Retained native evidence, independently read. Windows job 121055915286 identifies Windows Server 2025 / Rust 1.95.0 MSVC and actually checks out Delta and contract review. All 14 PR production files, cache implementation, shared path/command renderers, and the four test files still changed by this PR are byte-identical between that tested merge subject and e9927c7. The remaining facade-oracle delta comes from main: the head's entire The cache test deliberately compares canonical filesystem identity. Its separate hint assertion pins command spelling; A bounded main-delta inspection through Disposition: REVIEW_INCOMPLETE for final delivery. The already-running current-head Windows job and Rust qualification job remain the next evidence consumers. The existing delivery owner should inspect their terminal logs, actual checkout identities and current findings before deciding readiness. No extra independent campaign is needed for the unchanged seams. No Linux/native parity, protection satisfaction, landing, or merge clearance is claimed. |
|
|
…-qdq5b6 # Conflicts: # crates/ripr/tests/hostile_repos.rs
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the changed JSON root fields have no adjacent changed assertions in the supplied diff proving old output is rejected and new output accepted.
- Confirm a single-pattern caller scan cannot establish that no additional plain output sites still expose Windows verbatim spellings.
- Confirm the Windows cache-clear hint expectation assumes every root_arg requires quoting, which may make the oracle narrower than the actual quoting rule.
Refuted
- Renderer substitutions may cross an identity boundary and change validation, persisted roots, or command identity semantics.; refuted because: The reviewed changes format display strings only; Path-based canonicalization, starts_with, equality, and stored identity fields are not replaced by these display renderings. The triage route is a generated command presentation, not the canonical root itself.
- Rendering substitutions cross an identity boundary and could corrupt path validation or persisted roots.; refuted because: Changed sites only format paths into diagnostics or JSON presentation; canonicalization, starts_with checks, filesystem operations, and persisted Path handling remain unchanged.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Goldens note: the main break from #9449 (13 Python Generated by Claude Code |
) Review follow-up on #10111: the helper had host tests, but the four changed call sites had none. A % in the root is escaped by display_path on every host, so each test fails if its site goes back to the raw display() spelling (checked by reverting each site). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm changed JSON and SARIF root fields have no direct changed assertion that rejects an old Windows //?/ root value.
- Confirm the new Windows cache-clear hint oracle may be narrower than the product's shell-quoting rule.
- Confirm a complete census of sibling path-printing routes is not established by the supplied diff.
Refuted
- The renderer substitutions cross an identity boundary and could corrupt path validation or persisted roots.; refuted because: The changed sites format diagnostic, presentation, or generated-command strings; validation and persistence continue to use Path values and canonicalization.
- The changed path renderers may alter identity-sensitive validation or persisted-root behavior.; refuted because: The reviewed substitutions format diagnostic or JSON presentation strings; the supplied diff leaves Path-based canonicalization, starts_with checks, and stored identity values unchanged.
- The Windows hostile-repository fixture still contains an invalid pipe character.; refuted because: The seeded thread documents that the Windows branch selects a valid metacharacter-bearing filename while Unix retains the original fixture and injection oracle; the current diff does not reopen that issue.
- The broad set of helper substitutions duplicates the migration and risks applying the wrong renderer.; refuted because: Within the reviewed scope the distinction is explicit: display_path is used for JSON/currentness presentation, human_path for Unix-identical diagnostics, and identity/command contracts are excluded or separately quoted. The remaining concern is maintainability, not a demonstrated behavioral defect.
Parked follow-ups
- Triage bypasses the shared path-output layer and applies root_display to an already rendered string, coupling route formatting to an unrelated helper.
- The changed call sites select between display_path and human_path according to output contract, but this policy is not centralized at a typed presentation boundary.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the Windows restart-route and stderr spelling claims lack direct changed-behavior assertions in the supplied diff.
- Confirm the PR's complete sibling-output census is not established by the supplied diff or available receipts.
Refuted
- Canonical filesystem identity materially weakens the cache test's negative control.; refuted because: The positive case now proves the expected cache identity, while the foreign-cwd negative control still requires a different identity. Equivalent spellings are intentionally outside this test's contract.
- The changed rendering calls may weaken path validation or corrupt persisted identity.; refuted because: The diff preserves canonicalization, Path equality, and starts_with checks; only rendered diagnostic or presentation strings use the new helpers.
- The changes need a new shared abstraction to avoid duplication or establish a common identity contract.; refuted because: Existing display_path, human_path, and root_display helpers already express the distinct output contracts, while identity-sensitive producers remain intentionally unchanged.
- Changing display renderers may alter identity-sensitive validation, persistence, or generated command behavior.; refuted because: The changed call sites format diagnostics, JSON presentation, or a generated restart command; validation and persistence continue to operate on Path values, canonicalization, starts_with, equality, and stored identity fields.
Evidence gaps
- Windows-specific cache hint quoting and the current head's Rust test result are not independently established by this lane.
- Model proof intent was rejected by deterministic validation.
- The packet does not establish that every path-printing route was migrated, and the ripr sensor failure remains unexplained.
…aps moved (#9806) The refusal envelopes, repair summary/receipt lines and the swarm ingest escape message now print the plain / spelling on Windows. Seven tests still expected the raw or verbatim argument; compare against the printed form (printed_path / human_path) instead. Unix spelling is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm several changed human_path diagnostic sites and the triage restart route have no direct changed-behavior assertions in the supplied diff.
- Confirm the patch's route census is not complete evidence that no sibling path-printing site remains.
Parked follow-ups
- The diff deliberately separates display contracts from identity contracts, but the supplied diff alone cannot establish that the claimed sibling output-site census is exhaustive.
Evidence gaps
- Current-head executable proof is not yet evidenced, and the complete sibling-output census is broader than the focused renderer tests.
- Model proof intent was rejected by deterministic validation.
…#9806) The before-phase packet line already used human_path; the after-phase lines still printed the raw join, so Windows showed a mixed D:\...\target/ripr/... spelling. Unix output is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the four changed JSON root fields have direct renderer-level tests using a percent-containing root, discriminating display_path from raw display().
- Confirm the restart route applies root_display before shell_arg, but the supplied diff does not add a direct changed-behavior assertion for its Windows output.
- Confirm direct changed-behavior coverage is not shown for triage restart_route and many human_path stderr sites; helper-level coverage cannot prove each caller emits the expected spelling.
- Confirm the claimed sibling-output census is broader than the supplied changed-route evidence, so this patch alone cannot prove no other plain output site still exposes //?/.
Refuted
- JSON root renderers now consistently use display_path, with direct tests for diff, limited/refused envelopes, and SARIF refusal output.
- Replacing display() with human_path/display_path could cross an identity boundary and corrupt validation or persisted roots.; refuted because: The changed paths are diagnostic or presentation outputs; Path-based validation, canonicalization, equality, and starts_with checks remain in place.
Parked follow-ups
- The sibling-output census is broader than the changed diff and cannot be proved exhaustive from this patch alone.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- The claimed sibling-output census and current-head executable proof remain broader than the deterministic evidence available in this lane.
Review of record: head 30a20baDisposition: REVIEW_READY. Required CI is green on this exact head, and no blocking finding is open. Evidence on 30a20ba
Angles and findings
Merge-time interactions
Generated by Claude Code |
Main's #10111 landed the cli_smoke and cache_clear_safety expectations, so this PR keeps only the ACL workflow step and the LEARNINGS update. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
Requested by Steven · project thread
Summary
This PR does two things. Both come from the latest sharded Windows run that carries #9736 and #9822: 39873139606 on f81fd10, which contains 6ff98f8 and e0b147f. That run has 13 failures, down from 26.
1. Six remaining Windows rows: the test oracles assumed old spellings. No production change.
The two
task_first_facaderows were fixed the same way on main by #10161, which landed in parallel. The merge of main takes #10161's version, so this PR now carries four of the six rows. Hosted Windows run 40155498240 (merge subject 7ac2f66) passes all six rows.cache_clear_safety::cache_status_and_clear_root_flag_target_the_checked_root_from_a_different_cwdcache_dirstring (D:\…\target\ripr\cache) to a canonical\\?\D:\…/target/ripr/cache.cli_smoke::check_from_a_subcrate_discloses_workspace_root_and_honors_explicit_root,check_from_a_package_source_dir_analyzes_the_crate_roothuman_path(D:/…). The tests expectedcanonical.display().printed_path, which now also folds\\?\UNC\to//like the product.task_first_facade::repair_human_paths_preserve_percent_root_identityroot_path_display, which folds verbatim since #9822. The test pinned//?/D:/….%spelling pin are unchanged.task_first_facade::repeated_repair_resumes_the_awaiting_attempt_instead_of_duplicating/on Windows. The test expected the rawD:\…argument./on Windows, as the neighbouring tests already do.hostile_repos::shell_metacharacter_root_name_does_not_execute2. Plain output sites from the path census. A read-only census of
output,cli,app,agent,mcpandlspfound about 67 sites that can print//?/on Windows. This PR fixes the ones that are neither identity nor command contracts:display_path, matching check JSONroot:properties.rootroot(two sites)ripr_diffrootrestart_route(ripr check --root …) binds throughroot_display. An absolute or canonical root prints the plain spelling, and.stays..display_path.human_path, which is the identity function on Unix:Deliberately not changed here, because each one is an identity or command contract that needs its producer and consumers changed together:
rootanddiff_source.pathreview_comments_receiptroot identityripr check --rootcommandGapAnchor.filededupe anchorscache status --json, which documents verbatim spelling on purposeSource-of-truth Links
Proposal: n/a
Spec: n/a
ADR: n/a
Plan item: #9272 A3
Governing issue or accepted claim: #9660, #9806
Acceptance delta (one sentence): The six listed Windows rows have host-correct oracles, and Windows refusal/diff JSON roots, the restart route and agent/check diagnostics print the plain drive spelling instead of
//?/.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-qdq5b6
Stack parent or prerequisite PR (if any): #9822 (merged), #9824 (merged), #9835 (merged)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
Scope
Scope Classification
Production delta:
human_pathsites are byte-identical. Thedisplay_pathJSON fields match check JSON's existingrootrendering, so on Unix only names containing%,\or non-UTF-8 bytes change spelling.Single acceptance criterion:
Non-goals:
Support-tier Impact
Policy Impact
Proof
Result, failures, or skipped proof:
windows-advisoryjob 121055915286 (run 40155498240, merge subject 7ac2f66 = b91e80a + main da7e5b9):success. All six rows pass in every repetition the log shows. The Linux gates are listed above. The head after the main merge (e9927c7) needs its own required run.Claim Boundary
//?/on Windows.Rollback
Revert the squash commit.
Spec-Test-Code Traceability
Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo xtask precommithttps://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
Generated by Claude Code