Repository navigation
fix(windows): doctor deny seam, newer-Git gitfile wording, owner_pin mtime, verbatim-free printed paths (#9688, #9661, #9660) - #9822
Conversation
…ny oracle on every host (#9688) The doctor subdirectory-deny tests relied on an icacls (AD) deny that hosted Windows runners do not enforce, so they returned early and read as passes. - Production: cache_unwritable_reason / probe_existing_key_dirs / probe_creatable_dir take the create_dir operation through one seam; production still passes std::fs::create_dir. - Three new tests inject a PermissionDenied for one directory and pin the reason and both routes (entry dir, per-key dir) with controls. They need no ACL, so they run on hosted Windows. Removing the per-key probe fails the key-dir test. - On Windows, an unenforced real deny now fails with a named NOT_ESTABLISHED reason and the token's backup/restore privilege state instead of passing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
… is no repository, not damage (#9661) - load.rs: the no-repository prefixes move into git_reason_means_no_repository and gain newer Git's wording for a gitfile whose existing target is not a repository. Hosted Windows (newer Git) printed config-repair advice for it. A host-independent unit test pins both spellings and two damage negatives. - owner_pin_execution literal_json: write fixture copies instead of fs::copy. Windows' copy keeps the fixture mtime, so the shared target dir treated the previous case's broken `demo` build as fresh. Reproduced on Linux by restoring the source mtime after copy (same nested_literal, broken=false failure); passes with fresh writes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
…d evidence uses `/` (#9660) Six cli_smoke rows from Windows run 39819783344. The product printed three spellings of one root on Windows: JSON `root` and `config_path` came out as `//?/<drive>:/…` (display_path only slash-unified the canonical verbatim path), while `artifact.repository.root` and human output printed `<drive>:/…`. `//?/<drive>:/…` is not a form a shell or editor accepts. - output::path::display_path folds the reducible verbatim forms on Windows through the same strip_windows_verbatim_prefix owner human_path_text uses. Unix text is unchanged. Host-explicit unit test covers both hosts, UNC and the unfoldable Volume form. - python_repair_card (evidence and "changed at") and perl_preview_card evidence used Path::display, printing `tests\test_x.py` beside `/`-separated card fields; they now use display_path. - Tests: structural_workspace_markers ×3, first_useful_action_corpus and config_validate parent-config compare against one printed_path helper instead of the raw canonical path. python_unittest_selectors expectations were already `/`. 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 10 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! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The PR body claims the Windows rows are fixed, but the available packet has no successful Windows receipt and the ripr sensor failed; the claim should remain bounded to diagnosed host-correct fixes rather than overall Windows green.
Verification questions
- Confirm repository-wide sibling coverage for slash-unifying Path renderers is not established by the changed-file and named-consumer scan.
Refuted
- The diff introduces or exposes an ArrayBuffer/TypedArray active-view lifetime hazard.; refuted because: The assigned surface contains Rust path rendering and filesystem tests only; no buffer, typed array, view, resize, detach, transfer, stale-length, or shared mutable backing-store route changed.
- Path display folding could cross an ownership or mutation boundary and yield stale worker state.; refuted because: fold_verbatim_on_host consumes and returns an owned String synchronously; there is no shared mutable buffer, cached worker state, or concurrent consumer in this diff.
- Shared verbatim folding might alter Unix paths or obscure unreducible Windows volume paths.; refuted because: fold_verbatim_on_host is compiled to identity on non-Windows hosts, and display_path_for_host tests explicitly retain Unix and Volume prefix forms.
- The new Git wording predicate is too broad and may misclassify damaged repositories.; refuted because: It uses starts_with over fatal-prefixed diagnostics, and the added negatives cover config-path text and object-damage wording; malformed variants remain conservatively damaged.
Parked follow-ups
- The xtask-included agent renderer duplicates Windows verbatim-prefix reduction instead of sharing output::path, creating a sibling consistency obligation.
- The changed output and fixture helpers converge on one host-aware spelling, but Windows execution is still pending.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent bounded source review of 9b434e9; head rechecked unchanged at 22:07 UTC. Integration basis read from this PR: main 85c963a. No blocking source finding in the 20-file change. This adds doctor/refusal and fixture-oracle inspection to the existing review, not Windows qualification.
Inspected source and authored controls
- Doctor's production wrapper still supplies
std::fs::create_dir. The same callback reaches both entry-directory and per-key probes; file-write probes and probe-removal error handling are unchanged. The injected refusal is restricted to the selected parent directory and checks its named reason. The direct probe has a real-create/no-residue control, the sharded route an out-of-scope refusal control, and the key route a real production-wrapper control. By inspection, removing the directory probe or per-key route makes the corresponding injected test lose its required reason. These are source-level challenges, not executed mutations. - On Windows an unenforced real deny is restored, then returns
Err(NOT_ESTABLISHED: ...); the tests'?propagates that error rather than returning a captured plain pass. The new cleanup wrapper also attempts fixture removal on an unestablished deny. Privilege output is diagnostic only and does not establish the hypothesized cause. - The owner-pin fixture changes only how identical input bytes are copied. Fresh writes avoid inheriting fixture mtimes while retaining the shared target, all ten cases, and both correct/broken runtime controls. None of the admission, nonempty-subject or assertion-failure checks is removed.
- Output folding uses the existing Windows drive/UNC-prefix owner. Non-Windows folding is identity, unreducible volume prefixes remain, and the changed consumers retain their previous slash/empty/dot normalization. Canonical filesystem roots are not rewritten for custody or process cwd. The xtask-included agent copy matches this rule at this head; this is not a repository-wide sibling-completeness claim.
- The Git diagnostic change stays anchored to fatal prefixes; authored negatives keep config-path text and object-damage wording out of the no-repository classification. Structural-root tests retain nonempty probe/finding assertions and explicit-versus-implicit finding parity rather than merely changing path expectations.
Evidence boundary and disposition
Observed: exact source, full changed-file inventory/diffs, current discussion/review and no inline review threads. Reported only: Linux precommit success and the mtime reproduction in the PR description. Not executed in this review: tests, CLI rendering, wrong-implementation experiments, integration builds or any native Windows qualification.
REVIEW_INCOMPLETE for final merge qualification, with no source repair requested by this pass. The existing review's missing Windows receipt and broader sibling-census limitations remain. The new tests' presence does not establish that hosted Windows selected/executed them, nor that the real hosted invocation retained an unenforced deny as a named fixture refusal instead of ObservedPass. Preserve both obligations in #9688: doctor receipt/oracle acceptance and the separate eval-sweep unreadable-subtree control. This review does not close #9688, qualify the older #9736 Windows job, or claim Windows green. No CI campaign, Ready transition or merge initiated.
… parity test (#9660) Review follow-ups on #9822: - perl_preview_card suggested_test_location goes through display_path, so every path field in one card shares one spelling. - loop_commands' restated verbatim fold gains a host-explicit inner function and a test pinning output::path's drive, UNC, Volume and plain cases on both hosts, so drift is visible on Linux runs. - The #9661 changelog fragment discloses the `no path in gitfile` prefix. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
EffortlessSteven
left a comment
There was a problem hiding this comment.
Bounded successor source review of ebfd3a8, rechecked current at 22:27 UTC. Inspected the complete three-file delta from 9b434e9, carrying forward the prior source review. No blocking source finding.
The Perl card's suggested test location now uses the same stable renderer as its current-test evidence, without changing test selection or assertion text. The agent fold's production host choice is unchanged; the new explicit-host helper and drive/UNC/Volume/plain cases make both host branches inspectable and runnable on Linux, but do not mechanically compare the two private implementations or establish a repository-wide renderer census. The changelog now discloses the already-authored empty-gitdir diagnostic classification. Doctor callback routing, refusal controls and owner-pin runtime controls are unchanged.
Observed source only; I did not execute these tests. PR-body Linux results remain reported evidence. Existing required run 39863576151 and separate native Windows run 39863575730 are in progress at this read. Do not promote admission, successful setup/subsets or the older head's review into terminal current-head qualification.
Disposition remains REVIEW_INCOMPLETE for final merge qualification, with no source repair requested. Retain #9688's hosted doctor execution/named unenforced-denial receipt and separate eval-sweep unreadable-subtree obligations. The three real-ACL NOT_ESTABLISHED outcomes are instrument refusals, not successful ACL behavior or overall Windows green. No new writer, validation campaign, Ready transition or merge initiated.
There was a problem hiding this comment.
Confirmed findings
- Repository-wide sibling path-renderer coverage remains unverified.
Verification questions
- Confirm the change is relevant to Windows behavior, but the packet contains no successful Windows run. The review must not imply Windows qualification; obtain a focused Windows CI or equivalent host receipt before treating the listed Windows rows as proven.
- Confirm repository-wide sibling coverage for slash-unifying Path renderers is not established by the changed consumers.
- Confirm the changed renderer set is broad, but a no-match scan for one helper or one changed-file subset would not establish repository-wide sibling completeness.
- Confirm the duplicated xtask-included fold has focused parity tests but no executable proof that repository-wide slash-unifying Path renderers are all migrated.
- Confirm the changed path-rendering callers route through the shared Windows fold, while the restated xtask helper preserves Unix text; the strongest direct concern is incomplete sibling coverage.
- Confirm repository-wide sibling coverage for all slash-unifying Path renderers is not established by the named consumers in this patch.
Refuted
- The path-folding changes could mutate an active view over a shared backing store or expose a stale length.; refuted because: The changed renderers convert path text to an owned String, replace separators, fold the resulting owned String, and return a new owned String. No borrowed slice, shared allocation, resize operation, or asynchronously retained view is introduced.
Evidence gaps
- The failed ripr sensor and late cargo-test receipt prevent treating the acceptance claim as fully executed.
- The PR has no successful Windows receipt, so the fixes are host-correct by inspection but not demonstrated on Windows.
- The test packet does not yet establish that the new red/green tests execute successfully.
- Model proof intent was rejected by deterministic validation.
|
Required-only terminal receipt for current head ebfd3a8, rechecked open/non-draft and unchanged at 23:30 UTC. This supplements the exact-head source review; it does not replace the canonical owner or claim native Windows qualification. Executed subject and terminal result
Affected execution rows in that denominator
Formatting, repository/agent/dependency/process/network policy, promotion honesty, workspace/all-features checks, strict Clippy, required tests/doctests, goldens, fixtures, verdict corpus, PR evidence and schema-producer sweep are terminal SUCCESS. Proof-route is advisory; skipped report/scratch steps are not passes. Remaining boundary Retain both #9688 obligations: Windows execution of injected doctor controls plus retained real-ACL |
|
Review of record, head Reviewed from these angles:
Findings and their resolutions:
Exact-head evidence:
Not established: native Windows execution of the affected rows. The full Windows job 120120643297 is still in workspace run 1, and the subset job does not select these rows. #9660, #9661 and #9688 stay open for the Windows receipt. This is not a Windows-green claim. Disposition: nothing in the required path is blocking. Merging under the standing merge authority. Generated by Claude Code |
|
Terminal observation, checked 2026-10-23 02:54 UTC, for the existing Windows Advisory run 39863575730 / full job 120120643297, associated head
The already-recorded required Rust success and exact tested composition remain valid for their original subject. They do not establish native Windows behavior. Native Windows proof for this PR's doctor injected-refusal/real-ACL behavior, display/fold-verbatim parity, gitfile wording, owner-pin literal-JSON execution and printed-path rows remains NOT_ESTABLISHED. In particular, the good #9736 subset on the descendant executed in the separate #9840 terminal receipt does not satisfy #9822's later changes. The #9688 instrument limitations remain separate; neither the cancelled conclusion nor the successful subset wrapper resolves them. This terminal evidence limit is routed to the already-existing #9840 observability lane and the canonical #9660 owner record, not a new qualification campaign. No cancellation, rerun, dispatch, writer, label action, merge or closure was performed for this observation. The original run watch is closed at this verified terminal evidence limit. |
|
Native descendant receipt for #9822, checked 2026-10-23 03:46 UTC. This recovers the missing rows from an already-completed run; it does not restart the closed original watch. Subject and reusable evidence
Observed PASS rows in decoded terminal job logs Job links: S1 / 120152180301, S2 / 120152180488, S3 / 120152180446, S4 / 120152180299.
Honest refusal and remaining limits The three real doctor ACL rows execute and FAIL with All four shards finish with native exit 100. Denominators: S1 4856/4860 passed, S2 4810/4815, S3 4769/4771, S4 4739/4741: 19,174 passed / 13 failed overall. Partition-skipped rows are not passes. Not Windows-green, paired stability, a renderer census, an ACL-cause diagnosis, or forced-deadline cleanup proof. Next / canonical owner: @EffortlessSteven, retain the #9822/#9660/#9661 owner and accept or challenge this bounded descendant receipt before scheduling more qualification. Two further native The #9840 paired receipt remains valid for its b373ced checkout and earlier #9736 subset; this receipt supplies different, later-tree rows. No new writer, test run, dispatch, rerun, label, Ready transition, merge, closure, artifact inventory/download or old-log retry was performed. Known named runs are terminal; a repository-wide active-run read via CLI returned bare Forbidden, so absence of other active jobs is unverified. |
…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 next set of Windows rows from sharded run 39819783344 (#9272 baseline), following #9736. Three commits, one per issue:
cache_unwritable_reason,probe_existing_key_dirsandprobe_creatable_dirtakecreate_dirthrough one seam; production still passesstd::fs::create_dir. Three new tests inject aPermissionDeniedand pin the reason and both routes (entry dir and per-key dir), with controls, so no ACL is needed. On Windows, an unenforced real deny now fails with a named NOT_ESTABLISHED reason instead of passing.missing_gitfile_gitdir…(#9661)git_reason_means_no_repositoryand add the newer wording, plusno path in gitfile(an emptygitdir:line, Git 2.43 exit 128), which previously got config-repair advice. A host-independent unit test pins both spellings plus two damage negatives.owner_pin_executionliteral_json (#9661)fs::copyon Windows keeps the fixture's mtime, so the shared target dir treated the previous case's brokendemobuild as fresh.root/config_pathcame out as//?/D:/…, which no shell or editor accepts, while other fields printedD:/…. Python and Perl card evidence usedPath::display(tests\test_x.py).output::path::display_pathfolds reducible verbatim forms on Windows through the existingstrip_windows_verbatim_prefixowner. Unix text is unchanged for ordinary paths. The cards usedisplay_pathfor every path field, so on Unix a test file named with%,\or non-UTF-8 bytes now prints the same stable spelling as the rest of the output. Tests compare against oneprinted_pathhelper.Source-of-truth Links
Proposal: n/a
Spec: RIPR-SPEC-0007 (doctor deny-test evidence wording updated)
ADR: n/a
Plan item: #9272 A3
Governing issue or accepted claim: #9660, #9661, #9688
Acceptance delta (one sentence): The gitfile wording, owner_pin literal_json and six cli_smoke printed-path rows hold on Windows, Windows output prints one drive-letter spelling of a root, and the doctor deny behavior is pinned on every host by injected refusals while the three real-ACL rows stop passing vacuously.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-qdq5b6
Stack parent or prerequisite PR (if any): #9736 (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
#9776 (#9659 quoting) also edits
crates/ripr/tests/cli_smoke.rs, but in disjoint hunks.Scope
output/path.rsdisplay folding (Windows only), the card evidence path text, the diff load no-repository wording, and the doctorcreate_dirseam.whoami /privspawn, and three changelog fragments.Scope Classification
Production delta:
//?/verbatim prefix wherever it can be reduced. Newer Git's gitfile wording is classified as "no repository".Evidence/support delta:
Single acceptance criterion:
probe_creatable_dir_reports_a_directory_that_denies_creation,cache_unwritable_reason_reports_{sharded,key}_dir_denying_subdirectories) are expected to fail on hosted Windows withNOT_ESTABLISHED(instrument failure: the runner does not enforce theicacls (AD)deny). This is intentional: they previously passed without asserting anything. The injected-refusal tests carry the behavior on every host.Non-goals:
"…"and fail ~40 cli_smoke/lib tests #9659, test(windows): host-quoted agent-status replays, <ref> placeholder words, first-PR route proof (#9659) #9776), the shard-summary Bash test (fix(test): run Git bash for the shard-summary test on Windows #9732), the hang rows (ci(windows): give the nightly Windows advisory a terminal test verdict inside its job limit #9272).Support-tier Impact
Policy Impact
Proof
Result, failures, or skipped proof:
windows-advisory.ymlviawindows-ci+merge-ready. The full single-job Windows lane is currently stalling past its step limit (see Windows: tests compare paths with mixed/and\(xtask first_run, output::path, discarded_matcher, match_arm_geometry) #9660), so the Windows rows may need the sharded lane on main after merge.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 precommithttps://claude.ai/code/session_01PdRXdT9261qDfiBsZW51xs
Generated by Claude Code