Repository navigation
fix(windows): canonical custody fixtures, verbatim-free manifest text, NTFS-safe newline staging (#9660) - #9736
Conversation
…, NTFS-safe newline staging (#9660) Remaining #9660 rows from Windows run 39764872026: - precommit_v2: the metadata fixture keeps its canonical root (the projection strip_prefixes canonical package roots) and drops the verbatim `\\?\` prefix only in the manifest text Cargo parses. - candidate_harness: production already admits only canonical roots; the three test fixtures now canonicalize theirs, so Windows' `\\?\` spelling matches. New unix test refuses a symlink escaping its root, with a contained control. - release_ledger: stage the newline-named entry through the index with core.protectNTFS off, since Windows cannot create the name on disk. - contabo_result_policy: only the Bash execution tests are Linux-scoped; the static contracts (and a new guard-presence test) select on every host, so the file-policy selector no longer enumerates zero tests on Windows (policy_checker_facade_runs_current_repo_checks). 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! |
|
Review of record for head 7e75293. Source and oracle review is complete. Hosted Windows proof is still pending. Two independent reviewer passes ran. Pass 1, on 800e1232: correctness on Windows, plus contract and security. Findings:
Pass 2, on a696401f: correctness on Windows, oracle strength, root canonicality. No blocking findings.
Local: Generated by Claude Code |
|
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 15 minutes. View limit details
Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Independent bounded source review clears7e752930656c80f7dd1f58392e33383fde6cb3a2 on678897627197f22ec3251e03102465139af0b0dc; head rechecked unchanged16:11 UTC. No blocking finding. Production read_snapshot custody checks are unchanged; fixture roots align with admission, and the Unix escape control requires the specific refusal beside a contained-file positive. Only dependency manifest text loses the Windows verbatim prefix; canonical-root and full/workspace-only assertions remain. Git-index staging preserves the actual newline filename and byte-exact effective-tree oracle, matching production Git-object capture without requiring an impossible Windows worktree filename. Bash execution stays Linux-only while static permissions/guard tests run everywhere; LF assumptions agree with .gitattributes. This is source review, not Windows runtime clearance. Existing Windows39811046268/full job119937047900 is still running before both workspace repetitions. Retain actual checkout and affected row verdicts from both runs, not advisory wrapper success alone. Local35+5 Linux tests remain author-reported and cannot close Windows acceptance or the separate unreadable-subtree/#9688 disposition. No extra campaign requested. |
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm a complete sibling census of all canonical-root and custody fixture constructors was not established by this bounded lane, so completeness beyond the checked entry points remains unproved.
Refuted
- The newline-prefixed filename test introduces a dangling filesystem path or ownership lifetime across index staging.; refuted because: The blob file is removed after hashing; the newline-prefixed name is supplied directly to update-index as index/tree data, matching the capture oracle.
- The changed canonical-root and filesystem fixture logic may create a stale active buffer view or unsafe backing-store region.; refuted because: No changed path constructs ArrayBuffer, TypedArray, slices, capacity buffers, or mutable shared storage. Canonicalization only normalizes an owned PathBuf, while read_snapshot remains bounded and verifies custody and file length.
- The changed test fixtures introduce worker/async ownership, GC, detach, or transfer hazards.; refuted because: The diff changes ordinary synchronous filesystem and Git test setup only; no threads, futures, JS values, raw pointers, detached handles, GC-managed objects, or ownership-transfer APIs appear on changed lines.
- Windows may already have runtime acceptance evidence in this packet.; refuted because: The PR body says hosted Windows proof is pending, no hosted row verdicts are supplied, ripr failed, and cargo-test remains scheduled-late.
- Disabling core.protectNTFS could introduce a security issue or corrupt Git state.; refuted because: The override is scoped to a temporary test repository and one explicit index update; the filename is captured as a Git object and no production or persistent repository configuration is changed.
Parked follow-ups
- The unreadable-subtree/icacls failure and Cargo verbatim-path acceptance are adjacent custody/runtime concerns, but the PR leaves them explicitly parked rather than broadening this test-fixture patch.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Hosted Windows execution is still required before claiming the acceptance criterion; local Linux evidence and static coverage cannot establish Git for Windows or Cargo verbatim-path behavior.
|
Sibling census for the verification question. I searched
The only production caller of Generated by Claude Code |
|
Windows qualification reconciliation for candidate 7e75293. Terminal job 119937047900 checked out fea63b2 (parents 6788976 + candidate; tree 62203faed640597ba1a6a767379dc241551be1c2). Its six changed Rust-file blobs match the reviewed candidate. Preserve the bounded successes: raw logs explicitly report PASS in both workspace repetitions for workspace-only metadata, owned-read budget, both source-inventory rows, newline filename capture, policy-checker facade, and the two static result-policy tests. This establishes the exercised Cargo verbatim manifest-path and Git canonical-cwd cases, not general Windows success. Concrete sibling failure, twice: Proposed owner repair, not executed here: pass Separate evidence-generator failure: both cargo statuses are 101, and the summarizer refuses The unreadable-subtree/#9688 NOT_ESTABLISHED failure also remains in both repetitions. The required Linux run's previously verified 19,250 passes are retained, but neither advisory wrapper success nor these bounded passes close #9660 or establish overall Windows green. |
…ve path (#9660) Hosted Windows run 39811046268: with the live_head fixture root now canonical, source_tests passed the verbatim `\\?\D:\...\.git\last-integrated.commit` to `git hash-object`, which Git for Windows cannot open. Git already runs in the source root, so name the file relative to it. Canonical-root custody and the boundary-object identity assertion are unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
|
Windows run 39811046268 reconciled; repair pushed as bdf79b5.
Generated by Claude Code |
|
Independent bounded successor source review clears bdf79b5 (rechecked current), carrying forward the prior source review and inspecting the exact delta from 7e75293. No blocking source finding. The only changed file is live_head/source_tests.rs: Git now receives This is source clearance, not new-head runtime qualification. The owner's 33/33 candidate-harness tests and precommit exit 0 are Linux author-reported evidence. Prior required Linux success and both-repeat Windows targeted passes remain receipts for their original head/checkout, not passes for this successor. Existing required run 39836520434 and Windows run 39836520247 are running on this exact successor; retain terminal actual-checkout and affected sibling/target-row evidence when available. The separate WSL/NUL-contaminated shard-summary failure remains the Windows/Bash owner's gap; its fail-closed provenance refusal must stay intact. #9688 and overall Windows-green claims remain outside this clearance. No extra campaign or validation execution initiated by this review. |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm hosted Windows behavior for the current head is not established by static source review; prior runtime receipts refer to an earlier or successor-specific checkout.
- Confirm no actionable crypto/compression/runtime sibling helper was implicated by this test-and-fixture diff; broader sibling-route completeness remains a verification concern rather than a confirmed defect.
Refuted
- A changed path could create a stale active buffer view or unsafe backing-store region.; refuted because: The diff contains no ArrayBuffer, TypedArray, slice ownership, capacity buffer, shared mutation, or resizable-view operation; canonicalization only normalizes owned filesystem paths.
- The fixture-path changes introduce an async ownership-transfer or stale backing-store hazard.; refuted because: No async, worker, transfer, detach, GC, unsafe pointer, or JavaScript-backed resource appears on any changed route; PathBuf ownership remains local and synchronous.
- Moving contabo_result_policy tests off the crate-level Linux cfg could run Bash on Windows.; refuted because: Only Bash execution helpers and tests remain Linux-gated. The new guard-presence test and existing static workflow-permission test compile and run on every host.
- Disabling
core.protectNTFScould make the ledger oracle test an unrepresentative Git bypass.; refuted because: Production captures Git objects/index/tree names, so index-only staging models the unavailable Windows worktree filename; the test still commits and captures the actual Git tree effect rather than asserting an artificial string transformation. - Canonicalizing test roots may have weakened swap-detection or custody semantics.; refuted because: The diff changes only fixture construction; production read_snapshot and its canonical-root checks remain unchanged. The added Unix escape test exercises the refusal boundary.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- The successor repair has a discriminating Git oracle, but its bounded source review is not successor-head runtime qualification.
- Acceptance still depends on exact-head hosted Windows results after the bdf79b5 path change; receipts from the predecessor head cannot qualify the successor.
|
Summary-owner reconciliation for the earlier Windows receipt: no second Bash-fixture repair is indicated. The historical checkout fea63b2 executed the old bare-Bash fixture (b060f5c254237307266d431a4d727e2723a4a59f). The canonical owner already landed #9732 as 0eb2628, preferring Git for Windows Bash only when its executable exists. Independent inspection of that two-file delta found no blocking source issue; the workflow and verdict parser are unchanged. Completed native evidence is reusable at its original identity: run 39819783344 / shard-1 job 119967697616 actually checked out 3116798 and explicitly reported PASS for At this read, PR merge ref 277bf6a (parents 504a26e + bdf79b5, tree 7d0daebf9e2935a6f786bfb46fe24469726451ee) also contains that repaired blob. This is source-composition evidence, not proof of the running job's actual checkout or result. Existing run 39836520247 / full job 120026188944 remains the next exact observation; no new dispatch is requested. The old NUL-contaminated row and its |
|
Native-run timing observation for 39836520247 / full job 120026188944: raw job metadata says workspace repetition 1 started 2026-10-22 19:25:42 UTC. The configured 75-minute step timeout gives a nominal boundary of 20:40:42 UTC. At 20:55 UTC, the same metadata still reports that step This is a published timeout-boundary overrun, not evidence of the failure cause or a terminal test verdict. The YAML limit is an outer workflow-step timeout, not an inner Cargo/process deadline; native status is written only after Cargo returns. Stale metadata or runner timeout/teardown delay remain possible until terminal evidence is available. Please have the canonical owner reconcile runner/teardown status and preserve any existing output before deciding recovery. No cancellation, rerun, duplicate qualification campaign or timeout inflation is requested. The actual Windows checkout, repaired summary row, Git-path sibling and both-repeat verdicts remain unverified for this job. |
|
Review of record, head Scope: six xtask test files plus one changelog fragment. No production code changes. Angles and findings:
Exact-head evidence:
Not established at this head: the Windows outcome of the six targeted rows and of the bdf79b5 sibling repair. These rows passed on hosted Windows at the predecessor head, but that receipt does not qualify bdf79b5. I am not claiming Windows is green. #9660 keeps the Windows row verification open until a terminal Windows run exists. No cancellation, rerun or timeout change is being made here. Disposition: nothing blocking in the required path. Merging under the standing merge authority. Generated by Claude Code |
|
Terminal observation, 2026-10-22 23:38 UTC, for Windows Advisory run 39836520247 / full job 120026188944, associated head bdf79b5:
The actual full-job checkout, the six repaired Windows rows, the bdf79b5 sibling repair and both-repeat verdicts remain NOT_ESTABLISHED. This terminal observation does not close the native verification tracked in #9660 or replace the separate #9688 disposition. No cancellation, rerun, code or timeout change was made for this observation. The original run watch is closed at this terminal evidence limit. The already-running #9840 observability-repair dispatch is a separate subject, not a replacement receipt for this run. |
…s; host-correct oracles for Windows rows (#9806, #9660) (#10111) * fix(windows): verbatim-free roots in refusal/diff JSON and diagnostics; 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 * docs(changelog): drop the local drive literal; disclose the Unix spelling 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 * test(windows): cache-clear hint expects the cmd/PowerShell-quoted root (#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 * test(output): pin refusal/limited/diff JSON roots to display_path (#9806) 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 * test(windows): host-correct oracles for the rows #10111's renderer swaps 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 * fix(agent): after-phase receipt/verify lines print through human_path (#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 --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steven · project thread
Summary
Fixes the remaining #9660 rows from Windows sharded run 39764872026, following #9687. All causes are test assumptions; no production code changes.
precommit_v2::tests::workspace_only_metadata_projects_identical_roots_and_plan\\?\D:/…path into a dependencypath =, which Cargo cannot read.rootstays canonical, because the metadata projectionstrip_prefixes canonical package roots.candidate_harness×3 (live_headbudget,source::inventory×2)temp_dir(), which on Windows neverstarts_with-matches the canonical\\?\input.read_snapshotis unchanged. New unix test: a symlink escaping the root is refused with "escapes its root", and a contained control is admitted.release_ledger::capture_tests::newline_prefixed_file_names_keep_their_tree_effect\nnotes.txton disk, and Git for Windows' defaultcore.protectNTFSrefuses it in the index.update-index --cacheinfowith-c core.protectNTFS=false. The test still asserts the byte-exact name.tests::policy_checker_facade_runs_current_repo_checkscontabo_result_policywas crate-levelcfg(target_os = "linux"), so its file-policy selector enumerated zero tests on Windows.covered_byis unchanged.eval_sweep_refresh::real_unreadable_subtree…is left as is: it fails closed with NOT_ESTABLISHED because the deny isn't enforced. That is the same icacls behavior tracked in #9688.Source-of-truth Links
Proposal: n/a
Spec: n/a
ADR: n/a
Plan item: #9272 A3
Governing issue or accepted claim: #9660
Acceptance delta (one sentence): The remaining #9660 xtask rows (precommit_v2, candidate_harness ×3, release_ledger newline, policy_checker_facade) hold on Windows; on Linux they behave as before.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-qdq5b6
Stack parent or prerequisite PR (if any): #9687 (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:
Evidence/support delta:
Single acceptance criterion:
Non-goals:
Support-tier Impact
Policy Impact
Proof
Result, failures, or skipped proof:
windows-advisory.ymlviawindows-ci+merge-ready. Still unproven on Windows: that Cargo accepts a verbatim--manifest-path, and that Git accepts a verbatim cwd (production already does both).Claim Boundary
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 precommitGenerated by Claude Code