Skip to content

ci(windows): run real-ACL tests in a pwsh step of the sharded workflow (#9272) - #10159

Merged
EffortlessSteven merged 11 commits into
mainfrom
claude/project-thread-gyt3zf
Oct 26, 2026
Merged

EffortlessSteven merged 11 commits into
mainfrom
claude/project-thread-gyt3zf

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Runs the tests that need a real icacls (AD) deny (three doctor cache probes, the xtask unreadable-subtree sweep) in a shell: pwsh step of the sharded Windows workflow, and excludes them from the bash shards. A hosted-runner probe showed Git for Windows bash enables SeBackupPrivilege and SeRestorePrivilege and every child inherits them, which bypass the deny; a pwsh step starts with both disabled and the same deny is enforced.
  • Gives the pwsh step a 20-minute step timeout and a fail-closed exit code.
  • Names real-ACL failures in the job summary (Summarize failures also reads acl.status and acl.log).
  • The cli_smoke and cache_clear_safety expectations this branch first carried landed on main as fix(windows): verbatim-free roots in refusal/diff JSON and diagnostics; host-correct oracles for six Windows rows (#9806, #9660) #10111, so they are no longer in this diff. Their Windows results below were measured before that merge, on the same test text.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal:
Spec:
ADR:
Plan item: docs/releases/0.11.0-roadmap.md item 3
Governing issue or accepted claim: #9272
Acceptance delta (one sentence): Six rows from the first four-shard Windows verdict on main (run 40140809302) no longer fail for environment or path-spelling reasons.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-gyt3zf
Stack parent or prerequisite PR (if any): none
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

  • Other: Windows test-environment and test-expectation fixes

Production delta:

  • None.

Evidence/support delta:

  • Hosted-runner probe: in a pwsh step the deny is enforced; from a bash step, with SeBackupPrivilege and SeRestorePrivilege Enabled, a pwsh child created the directory despite the deny.

Single acceptance criterion:

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • CI lane

Ledger or exception notes:

  • Manual advisory workflow only; required lanes unchanged.

Proof

cargo xtask precommit                                                # pass on c39b396d
cargo test -p ripr --test cache_clear_safety different_cwd           # Linux: pass

Windows, sharded run 40222367768 on head 222f8b9 (windows-shard-1 artifact; workflow identical to c39b396 except the Summarize failures addition):

The last push adds a 20-minute step timeout and a null-exit-code guard to the pwsh step and a docs/CI.md sentence; it needs a fresh Windows dispatch on its head to be proven (recorded in a PR comment).

Result, failures, or skipped proof:

Claim Boundary

May claim: the six assigned rows pass on a hosted Windows run; the cause of the doctor ACL rows is the inherited backup/restore privileges (established by the probe above, on windows-latest as of 2026-10-25).

Must not claim: the Windows suite passes, or the remaining clusters are fixed.

Rollback

Revert the PR.

Spec-Test-Code Traceability

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

  • LEM impact: none
  • Workflows touched: windows-advisory-shards.yml (manual dispatch only)
  • Branch protection impact: none
  • Failure mode caught: real-ACL tests failing as NOT_ESTABLISHED because the host shell leaks privileges
  • Cheaper signal considered: skipping the tests, rejected (they would stop checking anything)
  • Required lanes affected: none
  • Advisory lanes affected: sharded Windows lane (shard 1 gains one pwsh step, a few minutes)
  • On-demand/release lanes affected: none
  • Labels that alter behavior: none
  • Artifact families affected: shard-1 artifact gains acl.log and acl.status
  • Rollback path: revert

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • Errors are reported with actionable context.

https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
…e printed plain paths in cli_smoke and cache_clear_safety (#9272)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 191 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: f4b4d99d-9004-4303-bebd-a3467f029fe5
Commits

Reviewing files that changed from the base of the PR and between 29388c6 and d7169b4.

Files selected for processing: 4
  • .github/workflows/windows-advisory-shards.yml
  • changelog.d/9272-windows-acl-tests-outside-bash.md
  • docs/CI.md
  • docs/LEARNINGS.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the workflow passes a nextest expression through the ACL_TESTS environment variable, so shell and nextest parsing must preserve the regex expression exactly.
  • Confirm the cache negative control can pass vacuously when the default cache path resolves to the same canonical location as the checked root.

Refuted

  • The cache_dir assertion would falsely accept a path outside the checked root after canonicalization.; refuted because: Canonicalization compares path identity, while the negative control still uses the same resolved-path predicate; no concrete false-positive is demonstrated.
  • The cache and CLI changes introduce divergent or duplicated path-formatting policy in production code.; refuted because: The cache change canonicalizes within a test helper, while the CLI change reuses the existing printed_path; both remain test-side and preserve the production boundary.

Parked follow-ups

  • The ACL execution boundary is deliberately split between all bash shards and one pwsh step, but the workflow definition gives every matrix shard an ACL-specific step that is merely runtime-gated.

Evidence gaps

  • The ACL tests are excluded from bash shards and rerun in a pwsh step, but the repository contains no successful Windows execution receipt for the changed workflow.
  • Model proof intent was rejected by deterministic validation.
  • The Windows acceptance criterion is not yet demonstrated by a branch run.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verification questions

  • Confirm the cache negative control compares canonicalized reported and expected paths, so it detects path identity rather than textual spelling while remaining vacuous if the default cache path resolves to the checked root.
  • Confirm the ACL nextest expression is shared across shells without an explicit, shell-independent filter variable or quoting boundary.
  • Confirm the real-ACL tests run only in shard 1's pwsh step, while all bash shards exclude them using the same filter; a mismatch in filter semantics could leave tests unrun or duplicate them.
  • Confirm the documented privilege-bypass cause is stronger than the supplied proof packet currently establishes.
  • Confirm the cache negative control does not establish that the default cache resolves outside the checked root; it only checks inequality with the checked root.
  • Confirm the ACL workflow change has no focused red/green oracle proving the env expression selects the intended tests and excludes exactly those tests from bash.
  • Confirm the ACL_TESTS expression is shared by bash and pwsh, but each shell expands it differently before nextest parses it; the workflow does not show a literal nextest filter preserving the regex exactly.

Refuted

  • The CLI tests introduce a second production path-formatting policy.; refuted because: The changed lines reuse the existing printed_path helper and only alter test expectations, preserving the production/test boundary.
  • The CLI and cache changes might duplicate or diverge from production path-formatting policy.; refuted because: The CLI assertions reuse the existing printed_path helper, and the cache assertion deliberately compares resolved identities rather than printed text; both changes remain test-side with no production delta.
  • The changed test helpers introduce divergent production path-formatting policy.; refuted because: The changes remain test-side: cache_clear_safety canonicalizes for path identity, while cli_smoke reuses the product-facing printed_path helper; no production source is changed.

Evidence gaps

  • The Windows ACL test route is split between bash shards and a shard-1 pwsh step, but no successful Windows execution receipt is present in the packet.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 25, 2026 01:43
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Windows result on head c39b396 (sharded run 40149982487, shard-1 artifact):

  • pwsh step (acl.status 0): 4 tests run, 4 passed. That is the three doctor ACL rows plus real_unreadable_subtree_marks_corpus_selection_incomplete, so none reports NOT_ESTABLISHED.
  • Bash shard 1: no assigned row fails. The two cli_smoke rows and cache_clear_safety different_cwd pass. The earlier run 40146724946 (head 4daed18) failed different_cwd only because the recovery hint prints the root in Windows console quotes; c39b396 fixes that expectation.
  • Answers to the review questions: the exclusion and the pwsh step both read ACL_TESTS, and the 4-test count in the pwsh step plus the 4 excluded tests (20299 skipped there) is the evidence the filter selects the intended set. The negative control compares canonicalized paths, so it fails only if the cwd project's cache resolves to the checked root's. The ACL step is gated to shard 1, so the tests run once.
  • Still failing, other clusters: shards 2, 3, 4, and four tests in shard 1 (hostile_repos, trybuild_fixture_disclosure, agent_status, and stale_temp_sweep, the last tracked in Windows: stale_temp_sweep warm run 0 does not sweep aged residue #10173).

This PR does not claim the Windows suite is green.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head c39b396d), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

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

Copy link
Copy Markdown
Member Author

Ripr Rust Small Result failed on head 9409a48 at the Golden output contracts step: cargo xtask goldens check reports drift in fixtures/module_reach_super_import_in_file_tests/expected/human.txt (pre-#10382 repair-route wording). This PR changes only the Windows workflow, docs/LEARNINGS.md and a changelog fragment, so the drift is inherited from main. The fix of record is #10422. Once it lands I will merge main into this branch and re-apply merge-ready; I am not touching goldens here.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the shared ACL_TESTS expression routes the same test set into the shard-1 pwsh step and excludes it from bash, but no repository proof asserts selection cardinality or exact membership.
  • Confirm the ACL filter is shared verbatim across shells, but its exact nextest selection semantics are not independently covered in-repository.

Refuted

  • The reported Windows success overclaims that the entire suite is green.; refuted because: The claim is explicitly bounded to six assigned rows; the PR body and seeded comment identify unrelated remaining shard and shard-1 failures.
  • This workflow change expands production scope or duplicates path-formatting policy in production code.; refuted because: The changed workflow relocates test execution only; the repository packet marks production delta as none, and the described cache/CLI expectation changes remain test-side while reusing or canonicalizing paths locally.
  • The documentation's causal claim is supported by a hosted-runner probe but remains environment-specific rather than generally guaranteed for every bash invocation.
  • The workflow change claims the whole Windows suite is green.; refuted because: The PR explicitly limits its claim to the six assigned rows and states that the overall Windows suite remains non-green because of other clusters.

Parked follow-ups

  • Filter parity lacks a focused automated oracle: correctness currently depends on PowerShell and Bash preserving the same nextest expression through shell-specific expansion.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs focused proof failure resolved before upstream.

Verification questions

  • Confirm the shared ACL_TESTS expression is expanded by Bash and passed differently by PowerShell, so exact nextest parsing is shell-dependent.
  • Confirm the ACL filter is shared verbatim, but exact nextest selection semantics lack a focused in-repository oracle.
  • Confirm exact filter membership remains environment-sensitive because no repository proof pins the intended test names and count.

Refuted

  • The change claims the entire Windows suite is green or includes cli_smoke/cache_clear_safety source changes.; refuted because: The PR explicitly bounds the result to assigned rows, identifies unrelated failures, and states those expectation changes landed separately in #10111.
  • The workflow adds an inconsistent cache or CLI production path that should have been reviewed through public callers.; refuted because: Those expectations landed separately in #10111 and are absent from this diff; the remaining change is workflow-only and has no production API route.
  • The workflow change expands production scope or introduces a new production helper.; refuted because: The change only relocates existing tests between CI shells and adjusts workflow evidence collection; production code is unchanged.

Test proof

  • Focused HEAD proof failed (exit 101): cargo test --locked --package ripr --test doctor. This is a current failure, not a red/green witness.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

On the review's "focused HEAD proof failed (exit 101): cargo test --locked --package ripr --test doctor": that command names a test target that does not exist. Cargo says error: no test target named 'doctor' in 'ripr' package; the integration targets include doctor_json_schema but no doctor. The doctor ACL rows this PR is about are lib unit tests, and cargo test --locked --package ripr --lib cli::commands::doctor::tests passes locally on this head's tree (111 passed, 0 failed). Their Windows behavior is the pwsh-step result recorded earlier (4 of 4 passed); a Windows run on the current head 222f8b9 is in flight.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Windows run 40222367768 on the current head 222f8b9 (windows-shard-1 artifact):

  • The pwsh ACL step: acl.status 0, 4 tests run, 4 passed (the three doctor ACL rows and real_unreadable_subtree_marks_corpus_selection_incomplete).
  • Shards 3 and 4 and the doctests job now pass. Shards 1 and 2 fail on other clusters: in shard 1 seam_inventory ... failure_row_names_stage, cli_smoke pr_evidence_with_missing_artifacts_writes_error_packet and stale_temp_sweep (Windows: stale_temp_sweep warm run 0 does not sweep aged residue #10173).
  • The new "Real-ACL tests (pwsh, shard 1)" summary section is in the workflow; it was exercised locally against an ACL-only failure log, and this run's ACL step passed so it printed the passing rows.

This PR still makes no claim that the Windows suite is green.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of record (exact-head sweep, head 222f8b9bcd8dab03d3ef434e206d1f4ca9dcb4a4). The two earlier EffortlessSteven reviews on this head have empty bodies (thread replies only), so no substantive review-of-record existed yet; the automatic bot review of 2026-10-25T19:06Z asked three verification questions — this sweep answers them with the exact-head hosted run.

Verified

Observed (inspected directly this sweep, via the REST API at head 222f8b9b unless stated):

  • Full diff read at head: 3 files — .github/workflows/windows-advisory-shards.yml, changelog.d/9272-windows-acl-tests-outside-bash.md, docs/LEARNINGS.md. Matches the body's Scope section. The title's "plain printed paths in smoke checks" is not in this diff (see finding 4).
  • windows-advisory-shards.yml diffed between the body's evidenced SHA c39b396d and head: only the Summarize failures addition differs; the pwsh step, env block and bash exclusion are byte-identical, so the body's hosted Windows results transfer to head.
  • An exact-head sharded run exists that the body does not cite: run 40222367768 (workflow_dispatch, 2026-10-25T18:40Z, head 222f8b9b). From its windows-shard-1 job log:
    • pwsh step: exactly 4 tests, all passed — the three doctor probes (probe_creatable_dir_reports_a_directory_that_denies_creation, cache_unwritable_reason_reports_existing_sharded_dir_denying_subdirectories, cache_unwritable_reason_reports_key_dir_denying_subdirectories) and xtask reports::eval_sweep_refresh::python_eval_sweep_refresh::real_unreadable_subtree_marks_corpus_selection_incomplete; Summary: 4 tests run: 4 passed, 21018 skipped.
    • Filter membership is pinned empirically at head: bash shard 1 reports 5322 run + 15700 skipped = 21022, and the pwsh step's 4 run + 21018 skipped = the same 21022. Exactly 4 workspace tests match test(/denies_creation|denying_subdirectories|real_unreadable_subtree/) on Windows, exactly those were excluded from bash, no over- or under-match is visible. This settles the bot review's "membership not pinned" question.
    • The new Summarize failures real-ACL block executed on the runner without error and target/acl.status reached the upload step.
    • shard-1 bash failures at head are analysis::seam_inventory::tests::given_fingerprint_store_blocked_then_failure_row_names_stage, ripr::cli_smoke pr_evidence_with_missing_artifacts_writes_error_packet (panics at crates/ripr/tests/cli_smoke.rs:29407 on a pr-evidence error-packet assertion — not the #10111 path-spelling cluster), and ripr::stale_temp_sweep next_run_removes_an_old_stranded_temp_file... (#10173). None are this PR's assigned rows; shard 2's three failures are other clusters; shards 3/4 and doctests passed. Hosted required lanes at head are green (CI run 40222373316, Rust gates: success).
  • Test-name enumeration at head via the contents API: crates/ripr/src/cli/commands/doctor.rs:4966,4989,5017 and xtask/src/reports/eval_sweep_refresh.rs:3312 (#[cfg(unix)]) / 3372 (#[cfg(windows)]) — the duplicate-named xtask pair is cfg-split, so 4 is the correct Windows-visible count and matches the run.
  • Shell polarity verified: bash receives -E "not $ACL_TESTS" as one argv element; pwsh receives -E $env:ACL_TESTS as one argument; the run's selection shows both parsed as intended.
  • Workflow budget: replicated extract_workflow_run_blocks and the per-block budget check from tools/repo-policy/src/lib.rs (fetched at head) against the head workflow: every run block is within the allowlisted 30 non-empty lines (bash shard block 28, pwsh block 5, Summarize 3). YAML validity is confirmed by GitHub's own parse and execution of the dispatch run at head. cargo xtask check-workflows itself was not run — no head worktree exists locally (local checkout is stale at 36d46845 and worktree-less).

Reported (PR body / probe, not independently observed here): the attribution of the bash deny-bypass to inherited SeBackupPrivilege/SeRestorePrivilege. I attempted local corroboration in Git Bash on a Windows host: the local token holds neither privilege, so this environment does not reproduce the runner premise. The behavioral bash-vs-pwsh delta itself is nevertheless demonstrated by the hosted runs (the same rows fail under bash-hosted shards on main run 40140809302 and pass in the pwsh step on head run 40222367768).

Not run / not verified: cargo xtask precommit, the test suites, goldens check (no product or golden delta; nothing to run them against), and any local execution of the pwsh step. The LEARNINGS.md cause upgrade from "unverified" to "established on a hosted runner" is consistent with the probe description but rests on the PR's hosted probe.

Findings

[P1] pwsh real-ACL step has no stall protection; a hang loses the evidence this lane exists to keep — .github/workflows/windows-advisory-shards.yml:117-125 (inline comment posted with the packet).

[P2] Fail-open exit code if the native spawn fails — .github/workflows/windows-advisory-shards.yml:121-125 (inline comment posted with the packet).

[P2] docs/CI.md:449 no longer matches the lane — The docs describe the sharded lane as "runs the same workspace tests as four cargo nextest --partition count:N/4 jobs plus a doctest job". After this change the four partition jobs exclude the real-ACL rows and shard 1 gains a pwsh step that runs them, so the sentence under-describes the lane. Fix direction: extend the sentence in the same bullet (#9272 paragraph). Validation: read-through; no generated-doc check covers this sentence. Confidence: High.

[P2] PR body Proof/claim-of-record is stale relative to the head it will merge with — The body cites run 40149982487 on c39b396d and describes shard-1 bash failures from that run (hostile_repos, trybuild_fixture_disclosure, agent_status); at head (run 40222367768) those three pass and a different set fails (seam_inventory fingerprint row, cli_smoke pr-evidence row, stale_temp_sweep #10173). The title also still names "plain printed paths in smoke checks", which left the diff with #10111. None of this contradicts the acceptance criterion — the pwsh rows pass on the exact head — but the body is the claim of record and should cite the head run. Fix direction: refresh the Proof section and title. Confidence: High (log lines cited above).

[P2, informational] The same root cause remains in the nightly single-job lane — windows-advisory.yml:162,191,198 run cargo test under shell: bash via windows-advisory-run, so the real-ACL rows should still fail NOT_ESTABLISHED there. The body declares other lanes a non-goal; recorded so the nightly rows stay attributable to this cause rather than reading as a new regression. Confidence: Medium (shells verified at head; no nightly run log inspected).

Strongest positive

The change is validated by an exact-head hosted experiment rather than prose: the four real-ACL rows fail under bash-hosted shards and pass in the pwsh step on the same head, the filter's membership is pinned by the run's own arithmetic, the LEARNINGS entry is upgraded from "unverified cause" to a probe-established cause, and the fail-closed NOT_ESTABLISHED oracle is preserved untouched.

Disposition: 1 blocking finding (P1 above; one-line fix), 4 P2 follow-ups listed. The acceptance criterion itself — the four real-ACL rows pass in the pwsh step on a sharded Windows run — is verified on the exact head via run 40222367768.

@EffortlessSteven EffortlessSteven changed the title fix(windows): real-ACL tests outside bash; plain printed paths in smoke checks (#9272) ci(windows): run real-ACL tests in a pwsh step of the sharded workflow (#9272) Oct 26, 2026
… CI.md note (#9272)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the workflow gives Bash and PowerShell the same ACL_TESTS value, but exact nextest selection semantics and membership are not independently pinned in-repository.
  • Confirm the current head's timeout and null-exit-code fixes lack fresh hosted Windows proof.

Refuted

  • The documentation overclaims that the full Windows suite is green.; refuted because: The changed documentation and PR body claim only relocation of four ACL-dependent tests; the seeded exact-head run explicitly identifies unrelated shard failures and makes no green-suite claim.
  • The change broadens production scope or adds duplicated production path policy.; refuted because: No Rust production or test source is changed; this diff only changes CI routing and evidence plus documentation, while the cited cli_smoke/cache_clear_safety changes landed separately.

Parked follow-ups

  • Exact ACL test membership remains environment-sensitive because no repository test pins the expression's nextest selection semantics.
  • The ACL filter has observed exact membership/cardinality evidence, but no focused in-repository oracle pins that contract.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The seeded exact-head run reports all four intended ACL tests passing in pwsh, but the final timeout/null-code changes lack a cited fresh hosted-run result.

Copy link
Copy Markdown
Member Author

Ripr Rust Small Result failed on d7169b4 in hosted shard 4 of 4: ripr::python_repair_attempt states_remain_distinct_across_one_repository. This PR changes no Rust or Python source (workflow, docs/CI.md, docs/LEARNINGS.md, changelog fragment). The failure message is python repair-trust binding could not read the running driver binary .../target/debug/ripr (deleted): No such file or directory, so the test's own binary was replaced mid-run. The test passes locally on this tree (1 passed, 45s). I re-ran the failed jobs once; I will report if it fails again.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Update on d7169b4: the one re-run of the failed jobs passed shard 4, but Rust test shards verify then failed with shard 1..3: list/status/run-context/junit missing. A failed-jobs re-run is attempt 2 and only re-uploads shard 4's attempt-2 artifacts, so the verify step cannot see the other three shards. That is a property of re-running only part of the run, not a source failure. I removed and re-applied merge-ready to start a fresh full run on the same head.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of record (exact-head sweep, head d7169b40bf3fc1417d36645e447357fb8d0fbab3).

Dedupe note: the substantive review-of-record for this PR (review 5648700762) covers the previous head 222f8b9b; the only reviews on the current head are two empty-bodied thread replies (5648867338/5648867698) and the automatic bot notice (5649074341). This sweep reviews the current head, which carries the repairs the previous review directed.

Verified

Observed (REST API at head d7169b40, unless stated):

  • Full diff read via pulls/10159/files: 4 files — .github/workflows/windows-advisory-shards.yml (+29/−1), changelog.d/9272-windows-acl-tests-outside-bash.md (new), docs/CI.md (+1/−1), docs/LEARNINGS.md (+8/−4). Matches the body's Scope section; no production or test source changes.
  • This head is the repair of the previous review's findings, each confirmed at head: the P1 stall protection is timeout-minutes: 20 (windows-advisory-shards.yml:126); the P2 fail-open exit is the $LASTEXITCODE null guard (:129-131); the P2 stale docs/CI.md is the sentence at docs/CI.md:451, which matches the workflow exactly (four excluded tests, pwsh step of shard 1, 20-minute step timeout, own acl.log/acl.status, the bash backup/restore-privilege cause); the P2 stale Proof/title is addressed in the current body; the nightly-bash residual is recorded as #10621. The two inline threads from the previous review carry matching "Fixed in d7169b4" replies (comments 4374992207, 4374992539).
  • A fresh hosted dispatch at the exact head exists and passes the pwsh step: run 40288403173 (workflow_dispatch of this workflow, head d7169b40, 2026-10-26T07:51:49Z, attempt 1). From the windows-shard-1 job log:
    • The executed pwsh step shows the head script verbatim, including the null guard, Set-Content target/acl.status $code and exit $code; step ran 08:21:28→08:22:31 and succeeded.
    • "Starting 4 tests across 190 binaries (21431 tests skipped)"; 4/4 passed — the three doctor probes (probe_creatable_dir_reports_a_directory_that_denies_creation, cache_unwritable_reason_reports_existing_sharded_dir_denying_subdirectories, cache_unwritable_reason_reports_key_dir_denying_subdirectories) and xtask reports::eval_sweep_refresh::python_eval_sweep_refresh::real_unreadable_subtree_marks_corpus_selection_incomplete; "Summary: 4 tests run: 4 passed, 21431 skipped".
    • Filter membership is re-pinned at this head by the run's own arithmetic: bash shard 1 "Summary: 5429 tests run: 5429 passed (4 slow), 16006 skipped", so 5429+16006 = 21435 = 4+21431. Exactly the four intended rows moved from bash to pwsh; no over- or under-match. This answers the bot review's membership question for the current head as well.
    • The matrix.shard == 1 condition works: shards 2 and 4 report the pwsh step "completed/skipped"; shards 1, 2, 4 and windows-doctests all succeeded.
    • Run conclusion "cancelled": shard 3's workspace-test step ran 07:57:44→09:16:52 and was killed at the 80-minute job cap — an unrelated Windows cluster, consistent with the body's explicit non-claim that the overall Windows suite is green.
  • Fail-closed polarity holds at head: a nonzero pwsh exit (or step timeout) fails the job, while if: ${{ !cancelled() }} keeps Summarize and Upload running so acl.status/acl.log are still summarized and uploaded (windows-advisory-shards.yml:121,126,139,144).
  • Changelog fragment matches the changelog.d/<issue>-<slug>.md convention (neighboring entries verified at head).

Reported (PR body/comments, not independently observed here): the SeBackupPrivilege/SeRestorePrivilege inheritance probe establishing the bash-vs-pwsh cause; the required-lane state at this head (hosted shard 4 flake re-run passed; a partial failed-jobs re-run left Rust test shards verify unable to see shards 1–3 artifacts; merge-ready re-applied for a fresh full run — comments 6411747659, 6412100279).

Not verified: the 20-minute step timeout firing (the run finished the step in ~63 s, so only its presence is exercised); any local command execution (read-only review lane — no cargo/xtask checks were run); the outcome of the fresh full required-lane run started after the merge-ready re-application.

Findings

[P2] PR Proof section predates the decisive evidence — PR body (no file line). Failure mode: the body still says the timeout/null-guard push "needs a fresh Windows dispatch on its head to be proven", but that dispatch exists — run 40288403173 on this exact head, pwsh step 4/4 — and the Proof section cites only run 40222367768 (head 222f8b9b) and 40149982487 (c39b396d). The claim of record is stale in the favorable direction; a later reader cannot find the head-exact run from the body. Why here: repository evidence rules bind proof to the candidate head and cite verifiable artifacts. Fix direction: update the Proof section to cite run 40288403173 on d7169b40, including the shard-3 80-minute job-cap cancellation so the run's "cancelled" verdict is not misread as a hidden red. Validation: read-through of the updated Proof against the run and the windows-shard-1 artifact. Confidence: High.

[P2, informational] The pwsh step recompiles instead of fully reusing the bash build — .github/workflows/windows-advisory-shards.yml:128 (inline comment posted). Failure mode: in run 40288403173's shard-1 log the pwsh cargo nextest invocation recompiled ("Compiling xtask ...", "Finished 'test' profile ... in 1m 00s") rather than fully reusing the bash step's build, adding ~1 minute to shard 1 per run; the cause is not established from the log. Why here: the step's 20-minute budget currently has huge margin (step total ~63 s warm), so there is no present risk, but the margin rests on reuse behavior nobody has explained. Fix direction: none required now; if the step ever approaches its budget, compare cargo fingerprints/env between the two steps before raising the timeout. Validation: the same job log ("Finished ... in 1m 00s" at 08:22:31). Confidence: High that the recompile occurs; Low on the cause.

Strongest positive

The repairs are exactly what the previous review directed, and they are proven by an exact-head hosted experiment: the run's own arithmetic pins filter membership (21435 = 4+21431 = 5429+16006), the guarded script appears verbatim in the executed step, and a stall or spawn failure now lands as a named acl.status failure in the job summary instead of an 80-minute silent hang.

Disposition: Findings above; none blocking. The acceptance criterion — the four real-ACL rows pass in the pwsh step on a sharded Windows run of the current head — is verified by run 40288403173. Residual: the step timeout has never actually fired (only its presence is exercised), and the shard-3 job-cap cancellation belongs to the other Windows clusters this PR explicitly does not claim.

Copy link
Copy Markdown
Member Author

Review of record, head d7169b4.

Angles and findings:

CI: Ripr Rust Small Result is green on this head (fresh full run, 09:44Z). The earlier shard-4 failure was the test binary being replaced mid-run and passed on re-run. The Windows suite as a whole is not green and this PR does not claim it.

Merging by squash on this exact head.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit c98fc80 into main Oct 26, 2026
95 of 101 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-gyt3zf branch October 26, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants