Repository navigation
fix(windows): host-consistent paths and established preconditions for 12 Windows test failures - #9687
Conversation
… run (#9660, #9661) - output::path: case-insensitive POSIX root strip uses the POSIX rootedness rule, not native Path::is_absolute (false for /repo on Windows). - xtask first_run / discarded_matcher: compare paths by identity, not by separator spelling. - match_arm_geometry: use the CLI's repo seam inventory route (no Git), so a shallow enclosing checkout without a default base cannot fail it. - doctor ACL tests: verify the icacls deny actually denies creation before asserting, as the Unix root check already does. - repo-policy test_support: canonicalize the manifest before walking up, so a missing manifest is refused with the labeled message on Windows too. 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 43 minutes. View limit details
Comment |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
…ry in SPEC-0007 and LEARNINGS Review-of-record follow-ups: a skipped deny oracle now prints why, the spec test mapping says the three deny-subdirectory tests do not assert on hosted Windows until #9688, the test-only path fix moves to Internal / CI, and LEARNINGS records that an icacls exit 0 is not an enforced deny. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
|
Review of record, head Two independent reviewer agents reviewed Correctness and edge cases. No blocking findings.
Tests, oracle honesty, spec and contract. No blocking findings. Four non-blocking findings, all resolved:
Proof.
Not established.
Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm windows CI proof is still owed: the PR body admits doctor deny-skip branch is the one locally exercised (ran as root) and the
(AD)enforcement question is genuinely unknown on hosted runners. Acceptance is only the 12 listed failures; the PR does not claim overall Windows green. Track via #9688, not this PR. - Confirm windows CI proof has not been observed by this lane; the diff is shipped with windows-advisory as merge-ready, and the claim boundary correctly excludes 'Windows is green overall'. The cluster 1, 3, hostile_repos, owner_pin_execution, and git-diagnostic clusters are explicitly out of scope. No new finding.
Refuted
- to_string_lossy on a non-UTF8 leading byte could drop the root marker and make a rooted path look relative; refuted because: Lossy conversion only replaces invalid UTF-8 sequences; the leading '/' is ASCII (0x2F) and preserved on every host. The only production caller is macOS where windows=false anyway.
- creation_is_denied should be a production helper, not a test-only one, because future doctor probes may need the same precondition check.; refuted because: The function is annotated
#[cfg(any(windows, unix))]and lives inmod tests. Moving it to production would require exposing it, adding API surface, and the only caller is a test fixture establishing a precondition. Test-local placement matches the Unix precedent that already lived in the same module.
Parked follow-ups
- match_arm_geometry now uses the CLI's production route, but the assert is format-blind.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Independent affected-scope review at b8db1c3, actual merge base d851f3d (reviewer /root/review_windows_fixture_repairs): fixture capability guards are legitimate and supported fixtures retain assertions/restoration. However, unsupported-fixture visibility remains defective. doctor.rs4447-4449 uses eprintln! then returns Ok; hosted windows-advisory commands omit --show-output/--no-capture, so successful-test stderr is captured. The ordinary 'test ... ok' row remains, and windows_advisory.rs1024-1041/1237-1247 classifies it ObservedPass without a fixture-refusal distinction. Thus SPEC-0007's claim that the skip says so in the test log is not satisfied by this invocation. Rust behavior: https://doc.rust-lang.org/rustc/tests/#--show-output . This is source-bound, not a newly executed counterexample. Existing owner: retain capability guards and #9688 coverage limitation, but route named unsupported-fixture outcomes into actually retained output/receipts and verify using an unenforced-denial control under the real hosted invocation. Do not count an early-return test as an exercised doctor denial oracle. An always-None probe would still pass those unsupported paths. No new writer or duplicate CI requested. Linux job119825234665 actually tested integration113017a4dec7097836c56ab9f9fb062dfef4ea66 (head merged with29e759a8), with19107pass5excluded. Windows subset119824962636 checked out exactb8db and passed9subset verdicts but selects none of these12repair subjects. FullWindows39778950971/job119824962655 is already running; consume its exact target rows/statuses before choosing any further qualification. Baseline39764030302 is not this candidate's validation. Source review found no additional material defect in the path identity, missing-manifest, match-arm, render and separate file-denial controls. |
…ss under the hosted invocation Review finding on b8db1c3: eprintln! on a passing test is captured unless --nocapture/--show-output, and windows-advisory classifies the row as an ordinary pass. Narrow the SPEC-0007, code and changelog claims accordingly; routing the skip into retained receipts is tracked on #9688. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
|
The skip-visibility finding on Fixed in
Decision: receipt routing moves to #9688. Routing a named unsupported-fixture outcome into the retained receipts would change the Windows full run 39778950971 on Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs one test-proof clarification before upstream.
Verification questions
- Confirm the three doctor tests that return false are still reported as ordinary passes in hosted runs unless output is shown, so they do not prove denial-oracle coverage there.
Refuted
- The path rootedness change causes a native absolute-path regression.; refuted because: The changed helper intentionally uses POSIX rootedness for its non-Windows root-strip contract; the production caller is host-parameterized and the relevant branch is macOS-only.
- The PR claims the doctor denial tests pass on hosted Windows and therefore establish denial-oracle behavior.; refuted because: The claim boundary is corrected in the seeded thread and docs: unenforced ACL branches are ordinary captured passes and are not Windows evidence until #9688.
- The ACL fixture can create a scratch entry, fail to remove it, or fail to restore permissions.; refuted because: Successful scratch creation is followed by best-effort removal, while an enforced deny prevents creation; existing restore handling remains the designated restoration path, and this lane found no changed cleanup path that leaves a confirmed artifact.
Parked follow-ups
- The doctor fixture now distinguishes an enforced ACL denial from a successful icacls command and restores the fixture before returning false; this avoids false oracle evidence, but hosted captured tests still look like ordinary passes.
- The hosted Windows ACL tests still do not establish or report a coverage-qualified skip in retained test output.
Evidence gaps
- The doctor fixture now distinguishes an enforced ACL denial from a successful icacls command and restores the fixture before returning false; this avoids false oracle evidence, but hosted captured tests still look like ordinary passes.
- Model proof intent was rejected by deterministic validation.
- The changed production path-helper behavior is narrowly correct, but automated proof is not currently trustworthy in this packet.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The changelog overstates behavioral invariance by saying the rootedness change is unchanged on every real host; the meaningful supported claim is unchanged on production-reachable real hosts, while the host-emulated branch gains explicit cross-host semantics.
Refuted
- The path-root change could regress non-UTF-8 or native-host path handling.; refuted because: The changed helper intentionally applies POSIX rootedness to its non-Windows root-strip contract; the leading ASCII '/' remains present through lossy conversion, and the relevant production branch is macOS/non-Windows.
- Canonicalizing the repo-policy manifest before taking two parents could accept a missing/../.. path on Windows.; refuted because: canonicalize must succeed first; a nonexistent manifest returns the labeled resource-root error before parent traversal. Existing and symlinked manifests are then compared after canonicalization.
- The ACL helper belongs in production doctor code.; refuted because: The changed behavior concerns test fixture capability establishment only; moving it into production would widen scope, while the receipt/classification gap is separately owned by #9688.
- Replacing native absolute-path checks with POSIX rootedness causes a shipped Unix or macOS regression.; refuted because: This helper is explicitly the non-Windows root-strip contract, its real caller selects the macOS branch, and POSIX rootedness preserves the intended leading-slash behavior including lossy non-UTF-8 inputs.
Parked follow-ups
- The unsupported doctor denial outcome remains an ordinary captured pass under hosted invocation.
Evidence gaps
- Windows CI and the late cargo-test receipt remain needed for the PR's platform-specific acceptance claims; ripr failed with exit code 2.
- Model proof intent was rejected by deterministic validation.
- The full Windows proof for the 12 listed failures remains outstanding; existing Linux and shallow-clone results do not establish hosted Windows behavior.
- RIPR evidence failed, so the deterministic source-level oracle did not complete in this review packet.
|
Windows proof for the 12 subjects. Full
The subset job also passed. Changelog finding (rootedness "unchanged on every real host"). The wording stays as is. The emulated branch ( Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent final review of PR #9687
Reviewer: /root/review_windows_fixture_repairs
Reviewed head: 5d3e6ec
Integration basis reviewed: 7ed8a4a
Current required Rust execution: integration 1430771, run 39795977877 attempt 1.
Scope and finding dispositions:
- Inspected all nine changed files, path rootedness and production caller, CLI/app inventory route and both format registrations, canonical manifest refusal, first-run/discarded-matcher identity controls, doctor ACL setup/restoration and captured-output consumer.
- No remaining blocking source/test-oracle finding in this bounded repair. Five repaired executable files are byte-identical to b8db; doctor differs only by the truthful captured-output comment. Main's unrelated CheckFindingsJson addition does not change the two inventory formats.
- The previous claim that a passing test's eprintln skip appears in hosted logs was false. Commit 1c0 corrects the spec/changelog/comment to say an unsupported fixture asserts nothing and reads as an ordinary pass. Receipt behavior is NOT fixed: #9688 explicitly retains named unsupported-fixture receipts and a real denial discriminator.
- The changelog's shipped-host invariance statement is source-supported: the production wrapper passes cfg!(windows); the changed POSIX-host emulation on Windows is test-only. The owner refutation in comment 6343704396 addresses review 5616139753.
Observed proof and limitations:
- Current-head Rust nextest artifact 12434967762 independently downloaded and SHA256 verified: 2969d4dc6e0ba57213278b1b031b08a2ee6609ca0d9ae97e3269265e2c5618b1. run-context binds integration 1430771, the run/attempt, command/profile, toolchain and nextest_exit=0. JUnit contains 19,138 cases, zero failures/errors; five tests were excluded before execution, not passed.
- Historical Windows run 39778950971/job 119824962655 actually checked out integration 113017a (b8db merged into 29e759a), not raw b8db. It completed CANCELLED at 14:30:09 UTC. Verified artifact 12433092995 SHA256 bfd7acb80152bddbf3dc6c189f7009c50d9cb63973a0fa7fce7f6d9e783b2713.
- Both raw workspace logs contain all twelve named PR subjects as owning-executable ok rows before interruption. Nine non-ACL subjects retain actual discriminating assertions. The three doctor rows do NOT establish denial-oracle execution; captured output does not reveal their branch.
- Workspace run 1 native status is 101 (raw rows: 18,577 pass, 71 fail). Run 2 has no native status and no paired verdict; its partial log is not a completed second suite. No all-Windows-green, paired-suite-success or #9688 acceptance claim is made.
- Existing Windows subset passed nine subset verdicts but selects none of these twelve repair subjects. Its success is separate evidence.
- Live main movement after 7ed8 was inspected for affected integration risks, not treated as an automatic restack requirement. The seam-inventory change only adds cache-failure stderr/receipt sharing, not geometry changes; added honesty-corpus rows do not alter the selected discarded-matcher subjects.
Convergence:
- Fresh inline review-thread listing is empty; no maintainer hold found. Rate-limited external bots remain missing review for those providers, not clean approvals.
- Classic review/check protection reads returned 403; applicable-rules URL was rejected by the connector. These gaps do not establish absent protections. Normal expected-head protected squash must preserve and enforce all required checks/approvals, with no bypass.
- #9688 remains open for denial coverage and named-refusal receipts. #9661 and #9272 retain their other Windows failures. This PR does not close those parent predicates.
Final check result: required Rust producer 119883462861 and Result 119902629033 completed success at 15:04:28 and 15:04:33 UTC respectively; all observed current-head checks are terminal without failure/cancellation.
Disposition: REVIEW_READY for this bounded candidate; proceed through the normal expected-head protected squash process, preserving actual GitHub approvals/checks. This is not acceptance of the remaining Windows parent predicates.
Requested by Steven · project thread
Summary
Addresses 12 subjects among the 81 Windows failures from sharded run 39764872026 (clusters 2 and 4 on #9272). One is a small product fix; the rest are test assumptions.
output::path::case_insensitive_posix_host_strips_root_across_case_driftstrip_case_insensitive_root(the macOS,windows=falsebranch) used nativePath::is_absolute, which calls/srv/...relative on Windows. The rest of the function already decides rootedness per host.is_absolute_on(.., false). Unix behavior is unchanged.xtask first_run::a_relative_ripr_path_is_resolved…std::path::absolutenormalizes to\on Windows; the expected value joinedtarget/debug/ripras written.xtask discarded_matcher_canonical_gate…reports/bare…vsreports\bare…).Path, which is separator-aware.match_arm_geometry×3.cargo/config.tomlforcesTMP=target, so the temp workspace sits inside the checkout.check_workspace(diff scope) then resolves the enclosing repo's default base, and a shallow CI checkout has none. Reproduced on Linux in a depth-1 clone with nomain.repo_seam_inventory_input, the CLI's production route for these two formats. It does no Git.doctorACL ×3 (probe_creatable_dir…,cache_unwritable_reason…×2)icacls /deny (AD)exit success. On the hosted runner, creating the subdirectory still succeeded. The(WD)file-deny test passed, so it is not an identity mismatch. Why(AD)is not enforced there is unknown.repo-policy runner_paths_never_fall_back…×3 binariesmissing/../..resolves lexically on Windows to an existing directory. The refusal still happened, but the message had no label.Swarm / Source Boundary
Source-of-truth Links
Proposal: n/a
Spec: docs/specs/RIPR-SPEC-0007-repository-configuration.md
ADR: n/a
Plan item: #9272 A3
Governing issue or accepted claim: #9660, #9661
Acceptance delta (one sentence): The cluster-2 path failures and cluster-4 doctor/repo-policy failures from Windows run 39764872026 are fixed by host-consistent path handling and established test preconditions.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-qdq5b6
Stack parent or prerequisite PR (if any): #9701, landed 7ed8a4a and composed in this head.
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:
output::path::strip_case_insensitive_rootuses the POSIX rootedness rule.Evidence/support delta:
Single acceptance criterion:
Non-goals:
hostile_repos,owner_pin_execution, Git diagnostics.Support-tier Impact
Policy Impact
Proof
Result, failures, or skipped proof:
match_arm_geometryfails 3/3 with "could not resolve a default base"; the new one passes 3/3.Claim Boundary
Residual ownership
#9688 retains doctor ACL-oracle and named unsupported-fixture receipts. #9661 and #9272 remain open for other Windows failures and qualification work.
Rollback
Revert the squash commit.
Spec-Test-Code Traceability
crates/ripr/src/output/path.rsStatic 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 precommitGenerated by Claude Code