Repository navigation
fix(claude-ops): resolve bash through PATH for the managed-scope enumeration - #5428
Conversation
…cope On Windows a bare "bash" reaches the System32 WSL relay, which exits 1 with empty stderr. Resolve a bare name with shutil.which and report an unreadable scope naming PATH when it is absent. Refs #5323 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #5323 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on fix Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new bare-bash test was inserted between the skipIf(bash) decorator and test_managed_policy_false_outranks_local_true, so the guard sat on the test that never reaches bash and the test that runs bash lost it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main released claude-ops 0.64.1, so this fix moves to 0.64.2 with its Fixed entry above main's 0.64.1 entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 2m 36s —— View job Reviewing PR #5428
SummaryThe fix itself is sound: One documentation-drift finding, on a line the diff doesn't touch so it can't carry an inline
claude-code-plugins/.github/workflows/test-windows.yml Lines 272 to 274 in 96695a8 This comment introduces the No correctness issues found in the Python fix or its test coverage. |
|
Claude finished @kyle-sexton's task in 1m 54s —— View job Security review —
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @kyle-sexton's task in 2m 7s —— View job Reviewing PR #5428
FindingsNone. This is a re-review at the current head ( Re-verified the core fix itself:
No correctness, maintainability, or test-coverage issues found on the changed lines. Test plan / CI run details in the PR description are author-claimed and not independently re-run by this review. |
|
Claude finished @kyle-sexton's task in 1m 10s —— View job Security review —
|
…e-windows-bash claude-ops is bumped to 0.64.4: main released 0.64.3, so the bash-resolution entry moves above it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude encountered an error after 1s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
…e-windows-bash Main released claude-ops 0.65.0; this branch's fix moves to 0.65.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
…e-windows-bash Main released claude-ops 0.66.0; this branch's fix moves to 0.66.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
Closes #5323
Summary
On windows-2025 the skill-visibility audit's two managed-scope tests failed with
bash exited 1 sourcing the lib.enumerate_managed_scoperan a barebash, and Windows CreateProcess searches System32 before PATH, so it launched the WSL relaybash.exeinstead of Git Bash. The suite was therefore left out oftest-windows.yml.Fix
audit_skill_visibility.py: resolve bash throughshutil.whichbefore running the managed-scope enumeration (first commit).test-windows.yml: restore the step "Test the skill-visibility audit on Windows" beside the markdown-format and cloud-bootstrap host-skip steps, and replace the "NOT here yet" comment entry with a description of the suite's cygpath probe.test_audit_skill_visibility.py: theskipIf(bash is None)guard stays ontest_managed_policy_false_outranks_local_true, the test that runs bash. The new bare-bash-name test never reaches a subprocess and has no guard.claude-ops0.66.1: the Fixed entry sits above main's 0.66.0 entry.Verification
Path taken: fix, not the SKIP fallback.
gh workflow run test-windows.yml --ref fix/5323-managed-scope-windows-bash(run 36621277399, windows-2025, head 6df01b1) is green. In the step log,BudgetArithmeticTest.test_managed_policy_outranks_local_through_the_vendored_libandReachabilityTest.test_managed_policy_false_outranks_local_truereport ok,Ran 162 tests ... OK, and the--installedcontract after unittest passes (ok: --installed collapsed 2 install records to 1 plugin (1 skill)). The commits after that run only move a test decorator and bump the version and changelog.After merging origin/main (which released claude-ops 0.66.0): claude-ops bumped to 0.66.1 with a CHANGELOG entry above 0.66.0;
scripts/check-changelog-parity.shpasses in--check,--check-bump origin/main,--check-orderand--check-preserved origin/mainmodes;scripts/validate-plugins.shpasses;python3 -m unittest test_audit_skill_visibilityruns 162 tests, OK;scripts/run-ruff.sh checkon the scripts directory passes.Related
Host-skip suites of #3683; earlier symptom in #992.
🤖 Generated with Claude Code