Repository navigation
fix(windows): docs gate keeps role bytes under autocrlf; Windows-safe root fixtures (#16105) - #16110
Conversation
… and temp fixtures (#16105) - repo-policy docs gate: pin core.autocrlf=false and core.eol=lf on the revision archive so role inputs keep their blob bytes on Windows; an in-tree eol attribute still widens. Reproduced on Linux with autocrlf. - mcp repair receipt tests: compare JSON-escaped root spellings (the positive control failed and both leak checks were vacuous on Windows) and strip a backslash-joined root in the naive rewrite. - task-first facade: decode the printed Next/Full status commands with the host's shell rules instead of matching the unquoted root bytes. - Python style matrix: sequence-named temp roots and a bounded, non-failing cleanup retry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmmg7vikhoqvShdExLy
|
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 2 minutes. View limit details
|
|
Generated by Claude Code |
The already-complete summary prints the bound root, which renders with `/` separators on Windows (#4287), so D:\a\b prints as D:/a/b. The hosted Windows run on cffe6dc showed the decoded argument differing only by separator. Compare it as a Path, which is separator-insensitive on Windows and byte-exact on Unix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmmg7vikhoqvShdExLy
…ds (#16105) The hosted Windows run on cffe6dc passed the positive control but the naive-rewrite parity failed on one field: repair_attempt.manifest is recorded as D:/a/.../attempt.json (bound-root display, #4287), which production projects and the naive rewrite did not. On Windows the naive rewrite now also matches the forward-slash twin of each root spelling, and the projection must not leak that twin either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmmg7vikhoqvShdExLy
|
Windows Advisory on cffe6dc (run 45008104483) narrowed #16105 to two remaining fixture issues, both fixed on the current head cf829d7:
A new Windows Advisory dispatch runs on cf829d7. Generated by Claude Code |
|
Native Windows handoff at
Please retain the unit verdict separately for the eight MCP receipt controls. When qualifying the reviewed composition, use one run containing these fixes plus the already-landed #16074 and #16120 rather than repeating this pre-fix tree. No rerun or branch change from this review. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent source review of cf829d77 against the PR base and sampled current main 8b1865f5. The six-file delta keeps the docs revision pin, changed-path and checkout binding, archive safety checks, and ls-tree/raw-blob verification. Only the archive child disables checkout-level CRLF defaults; an explicit committed CRLF attribute still widens the check. The receipt controls verify the root exists on disk, then require the exposed projection to exclude native, canonical and slash-normalized forms and equal the separately scrubbed projection. The terminal control checks the decoded --root value; the Python fixture retains its outcome assertions and bounds cleanup retries.
The exact native d–o and rest samples passed both docs controls and terminal-attempt twice. Native full sample 1 passed all eight receipt controls and the previously unstable Python case. The earlier lines are Rust-only preflight, not a second full sample. Full sample 2/final artifact remains pending. The a–c captured job hides two actual failures on this older base; the subset also remains red. Recheck the targeted final artifact and current composition with #16074, #16120, #16137 and #16112 before any whole-lane claim. No additional dispatch requested.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source review of cf829d7 from another session. I read the full diff against its base 21c3140 (6 files, +147/-16) and the owning code around each hunk.
tools/repo-policy/src/docs_gate.rs:-c core.autocrlf=false -c core.eol=lfis placed before thearchivesubcommand.offline_git()adds only environment, so these are valid global options and apply to that child only. In-treeeol/textattributes still convert, andverify_archived_rolesthen widens. The newrevision_docs_gate_reads_committed_role_bytes_under_autocrlfcovers both sides: under a repository-localcore.autocrlf=truethe gate stays eligible and reports the seeded## Decisionviolation, and after*.md text eol=crlfit widens with "archived role inputs differ". Because the setting is repository-local, the test does not depend on the host.mcp/repair.rstests: the leak and positive-control checks now search for the JSON-escaped spelling built throughValue::String(..).to_string(). On Unix that is identical to the raw text, so Linux grip is unchanged, and on Windows the checks are no longer vacuous. The forward-slash leak assertion and the extra{root}\rewrite apply only on Windows, so they are no-ops elsewhere.tests/task_first_facade.rs: the printed command is decoded with the existingprinted_wordshelper (module declared at line 15). The--rootvalue is compared withPathequality, which treats/and\as the same separator on Windows. The test now also requires--root <value>to be the last argument, a stricter check, and the error text says so.python_test_style_matrix.rs: temp roots are named by pid and an atomic sequence instead of a clock value, so parallel cases in one process cannot collide. Cleanup retries 5 times at 100 ms and then reports the leftover on stderr instead of failing the reading. That is a deliberate narrowing: temp removal is not what the matrix claims to test.- Changelog fragment matches the change.
Residual, not blocking: a tree left behind after the five retries keeps its pid-and-sequence name. A later run that reuses the same pid could write into that leftover directory. This needs pid reuse plus a failed cleanup, and the fixture writes the same file set.
Not established by this review: I executed nothing. Hosted Windows run 45028120521 sample 2 was reported as still running when this review was requested.
Generated by Claude Code
…ngelog claim (#16105) Devin review: the last-token check accepted `--root R --extra R`. Match the final two decoded words instead, as the original byte check did. The changelog no longer says every Windows checkout widened: a repository that pins eol=lf (this one does) kept its role bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmmg7vikhoqvShdExLy
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source review of a7a3167 from another session. It carries forward my review of cf829d7 (pullrequestreview-6013466032). I read the delta cf829d7..a7a3167 (one commit, 2 files) in full.
tests/task_first_facade.rs: the assertion now uses slice matching ([.., flag, value]), so the final decoded pair must be--rootfollowed by a value that isPath-equal to the selected root. The earlier version found the first--rootand compared its value with the last word. It would therefore accept a command whose last word happened to equal the root while--rootappeared earlier. The new form is exact and matches the original byte check (--root <root>before the closing backtick). On Unix,Pathequality of the two strings reduces to byte equality, so Linux grip is unchanged.- Changelog: the narrowed claim is accurate. This repository's
.gitattributespins* text=auto eol=lf, so the widening affected repositories without such an attribute. "separator-agnostic" describes thePathcomparison correctly.
My earlier residual note (a leftover fixture tree reused under a recycled pid) is unchanged and not blocking.
Not established by this review: I executed nothing, and I did not inspect any hosted or native Windows result on this head.
Generated by Claude Code
|
Native Windows check of the docs-gate premise, from the Reviewer (read-only, no build). I reproduced the archive conversion on this box (Windows 11,
So the two flags This confirms the mechanism on the target platform, not the eleven #16105 tests; those still need the Windows Advisory dispatch the PR body names. No disposition change: the source marker at a7a3167 stands. |
The Windows full run on cf829d7 showed check-local-context refusing a `D:/a/...` example in a repair.rs comment (xtask count_policy_gates_have_no_stale_bounds and the policy facade test). Describe the spelling in words instead. Comment-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmmg7vikhoqvShdExLy
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source review of 78c3fc2 from another session. It carries forward my reviews of cf829d7 and a7a3167.
I read the delta a7a3167..78c3fc2 (one commit, 2 files) in full. Every changed line is a // comment: two comments in mcp/repair.rs tests and one in tests/task_first_facade.rs. They now describe the drive-root spelling in words instead of a literal drive path, and their meaning is unchanged. No code, test stimulus or assertion changed.
Not established by this review: I executed nothing.
Generated by Claude Code
|
Completed native artifact readback, exact Not qualification: the exact composition still reports |
Requested by Steven · project thread
Summary
Repairs the eleven #16105 failures from the 22 Nov Windows Advisory nightly (run 44988831219): ten
repeated_failureand oneunstable. The other four repeated failures in that run belong to #16074 and are not touched here.docs_gate::scoped_docs_gate_checks_unchanged_document_roles_in_the_subject_treegit archiveappliescore.autocrlf=true(Git for Windows and hosted runner default), so every archived role file gets CRLF and mismatches its blob; the revision gate widened on every Windows checkout-c core.autocrlf=false -c core.eol=lf; an in-treeeolattribute still widensmcp::repair::tests::*(positive control: the on-disk receipt spells the root)task_first_facade::continue_on_a_terminal_attempt_is_already_completeshell_arg-quoted ("D:\..."console form on Windows); the test matched unquoted bytesprinted_wordshost decoder and compare the--rootargumentpython_test_style_matrix::every_supported_python_test_style_reads_its_weak_test_as_weakly_exposed(unstable)pid-nanos) and fatal cleanup;remove … Access is deniedin one sampleSource-of-truth Links
Governing issue or accepted claim: #16105
Acceptance delta (one sentence): The eleven #16105 Windows Advisory failures pass natively without weakening their claims, and the docs gate's revision mode no longer widens on autocrlf checkouts.
Candidate Relationships
Candidate branch:
claude/project-thread-607pf6Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Related: #16074 (the other four failures in the same run), #15601.
Scope Classification
Production delta: none in the
riprpackage.tools/repo-policydocs gate archive invocation.Single acceptance criterion: the eleven #16105 tests pass natively on Windows without weakening their claims.
Non-goals: the four #16074 failures; other clock-named temp roots not observed failing.
Proof
New test
revision_docs_gate_reads_committed_role_bytes_under_autocrlfsetscore.autocrlf=truein the fixture repo, so it is host-independent. It asserts the gate checks roles (and finds the seeded violation) under autocrlf, and its negative control asserts an in-tree*.md text eol=crlfstill widens.Not established locally: the
riprlib unit tests (MCP repair, Python matrix) cannot be built in this 16 GB container. They first run on hosted CI. The Windows claims are proved only by a Windows Advisory dispatch on this branch; result to be recorded here.Claim Boundary
May claim: the docs gate's revision mode no longer widens on autocrlf Windows checkouts; the listed tests no longer encode Unix root spelling. Must not claim: a Windows pass until the dispatched advisory run reads green for these tests.
Rollback
Revert the squash commit; no schema, output or workflow change.
Static Language Check
CI Economics
n/a
Generated by Claude Code