Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,18 @@ jobs:
# no OSTYPE branch, so it stays on the Linux lane.
# A host-gated case that cannot run must print a counted SKIP line.
#
# HOST-SKIP SUITES (#3683). Two suites probe the host at run time and print a
# SKIP line when they cannot pin their cases, so their Windows behaviour is
# read from this lane's log, not asserted from a Linux run:
# HOST-SKIP SUITES (#3683). Three suites probe the host at run time and two
# print a SKIP line when they cannot pin their cases, so their Windows
# behaviour is read from this lane's log, not asserted from a Linux run:
# markdown-format — four PATH-probed cases print a counted SKIP when cygpath
# rewrites a POSIX mktemp path. The symlink-escape case prints an uncounted
# SKIP line and an `ok ... SKIPPED` line that counts as PASS.
# cloud-bootstrap-plugins — one SKIPPED=1 for the whole suite when an
# extensionless node_modules/.bin/claude stub does not run.
# audit_skill_visibility — NOT here yet. Two managed-scope unit tests fail on
# windows-2025 (`bash exited 1 sourcing the lib` for lib/managed-scope.sh),
# so the run stops before its cygpath probe (#5323).
# audit_skill_visibility — its --installed fixture embeds paths in JSON that
# a native Python reads verbatim, so a cygpath probe rewrites them to the
# forward-slash form; it prints no SKIP line, and a green step means the
# rewritten fixture resolved.
# They stub markdownlint-cli2 and claude, so no step installs either. The
# PASS/FAIL/SKIPPED totals in each step's log say whether the probe fired or
# the cases ran.
Expand Down Expand Up @@ -268,13 +269,15 @@ jobs:
run: bash plugins/guardrails/hooks/block-windows-drive-tmp.test.sh
- name: Test hardcoded-path-check on Windows
run: bash plugins/guardrails/hooks/hardcoded-path-check.test.sh
# Two of the host-skip suites of #3683, named explicitly: each prints a
# SKIP line where its host probe fires, so a green step is only evidence
# once the log shows which of the two happened.
# The host-skip suites of #3683, named explicitly: each probes the host at
# run time, so a green step is only evidence once its log shows whether
# the probe fired or the cases ran.
- name: Test the markdown-format hook on Windows
run: bash plugins/markdown-format/hooks/markdown-format.test.sh
- name: Test cloud-bootstrap plugin accounting on Windows
run: bash .claude/hooks/cloud-bootstrap-plugins.test.sh
- name: Test the skill-visibility audit on Windows
run: bash plugins/claude-ops/skills/audit-skill-visibility/scripts/audit_skill_visibility.test.sh
# pwsh directly, not the .test.sh wrapper: the wrapper SKIPs with exit 0
# when pwsh is missing, which would read as green here. The selftest's
# exit code is its failure count.
Expand Down
2 changes: 1 addition & 1 deletion plugins/claude-ops/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
"name": "claude-ops",
"version": "0.66.0",
"version": "0.66.1",
"description": "Claude Code operations toolkit. Thirteen skills: audit-skill-visibility (audit whether each installed skill is actually VISIBLE to the model, and diagnose why most of a fleet never gets used: a skill is invisible when its description is dropped by Claude Code's skill-listing context budget, which sheds descriptions lowest-score-first so an unused skill loses the keywords that would let it be matched, from skills genuinely not wanted, from skills the run cannot observe at all; computes whether the listing overflows from documented settings, and withholds every cold verdict the data cannot support rather than reporting absence of data as absence of use), inventory (read-only enumeration of the complete invocable surface: every built-in CLI command with aliases and hidden/gated status, every bundled skill, and every component of every installed plugin across all marketplaces; reads the shipped binary because upstream publishes no built-in command list, and carries an integrity verdict so a drifted build reports counts as floors rather than silently short totals), audit-install-state (read-only audit of the machine-scope ~/.claude installation directory and ~/.claude.json: full inventory split into an authored surface and rolled-up bulk trees, product-managed retention vs genuinely unmanaged state, filename-scheme resolution before any process-liveness check, and deliberate/mid-experiment detection; reports, never deletes), audit-performance (read-only slowness-diagnostic capture run at the moment the machine or a session feels slow: CLI version, retention-sweep health including the unparsable-settings pause, which warns in /status, a timed census walk of the install tree as a sweep-cost proxy, active-session and plugin-fleet counts, a process census, and the fan-out layer, which covers a load-labeled no-op spawn baseline, every hook that will fire bucketed per-tool-call versus per-turn with its invocation shape, the configured statusline, subagent concurrency and spawn-depth ceilings against documented defaults, whether running sessions predate the settings file they are judged by, and orphan attribution by parent liveness rather than age, plus on Windows a kernel-object census (Token objects against uptime, paged pool) that names a host-level leak beneath all four suspects; read against a bundled known-performance-issues reference that also records the causes tested and cleared; separates the four documented suspects of accumulated state, version regression, component bloat, and per-spawn fan-out cost, and routes remediation out; reports, never mutates, and never executes a discovered hook or statusline command), audit-native-overlap (map native Claude Code surfaces, namely built-in CLI commands, bundled skills, plugin-backed built-ins, and session-provided skills, against the current repo's plugin skills and agents, so a custom component never silently duplicates what Claude Code itself ships; bare invocation is a read-only overlap report carrying the extraction's integrity floors and a shared-listing-budget exposure section, verdicts are human-gated in a committed store rendered into a generated registry whose every row carries an observable recheck trigger, and only an explicit apply step bakes presence-gated native references into descriptions and Boundary sections), observability (read locally captured telemetry from the OTEL store, the collector, the per-session hook event log and hook-event JSONL, and ccusage, with trend reports, a per-session report of what fired, what was blocked and the event timeline, and store pruning), known-issues (search known Claude product GitHub bugs, check service health, maintain a persistent tracked-issue registry), changelog (ingest Claude Code changelog entries and integrate them into the current repo), prerequisites (read-only table of external binaries declared by enabled plugins; never installs), plugins (bring a machine's plugin fleet current on demand: marketplace refresh, effective-scope updates including in-repo project/local installs, new-plugin install per policy, scope-divergence detection and explicit convergence), morning-brief (read-only gh-based operator morning view: queue-label counts, merge-ready PRs, parked decisions with their RECOMMENDED lines, and loop-lane telemetry freshness), lanes (start/restart/stop/status loop lanes as named background Claude Code sessions seeded from canonical prompt files, with per-lane model/effort, a repo-pull + marketplace-refresh launch step, and a consume-restarts action, an OS-schedulable reader that relaunches stopped lanes whose telemetry carries a restart_request), and a re-runnable setup action that settles where the known-issues registry, the skill-usage log and the hook log root live, places the root's self-ignoring guard, and detects retired conventions. Plus an opt-in, default-off per-session hook event log (one JSON line per hook event on every event the generated registry marks observable, written to <root>/sessions/<session_id>.jsonl, with SessionEnd retention by session count or age and an optional detached pre-prune command), a family of eight advisory *-audit hooks (API errors, config changes, instruction loads, permission denials, pre-compaction, skill usage, tool failures, and unsurfaced hook failures. The last also warns the user via systemMessage, since a hook that fails to launch enforces nothing and Claude Code surfaces the failure to nobody) that emit the shared hook-telemetry envelope, and a reference sink that routes envelopes under the same root: per session when the envelope carries a session id, else into the shared hook-events.jsonl the observability skill reads.",
"author": {
"name": "Melodic Software",
Expand Down
9 changes: 9 additions & 0 deletions plugins/claude-ops/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
All notable changes to the `claude-ops` plugin are documented here. Format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); this plugin uses semantic versioning.

## [0.66.1] - 2026-09-29

### Fixed

- **`/claude-ops:audit-skill-visibility` resolves `bash` through `PATH` when enumerating managed
scope.** On Windows a bare `bash` reached the WSL relay in `System32` instead of Git Bash, so the
managed-scope read failed. The name now goes through `shutil.which`, and a missing `bash` reports
the managed scope as unreadable. The audit suite runs on `windows-2025` in CI again.

## [0.66.0] - 2026-09-29

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import json
import os
import re
import shutil
import subprocess
import sys
from collections import defaultdict
Expand Down Expand Up @@ -1158,6 +1159,13 @@ def _unreadable(reason: str) -> dict:

if not os.path.isfile(lib_path):
return _unreadable("vendored lib/managed-scope.sh is missing")
if not os.path.dirname(bash):
# Windows CreateProcess searches System32 before PATH and would run
# the WSL relay bash.exe; resolve the name the way PATH does.
resolved = shutil.which(bash)
if resolved is None:
return _unreadable(f"{bash} is not on PATH")
bash = resolved
try:
result = subprocess.run(
[bash, "-c", MANAGED_SCOPE_SHIM, "managed-scope", lib_path, override or ""],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,13 @@ def test_local_false_outranks_project_true(self):
self.assertEqual(reach["value"], "hidden")
self.assertEqual(reach["evidence"], paths["local"])

def test_a_bare_bash_name_not_on_path_is_unreadable_naming_path(self):
managed = engine.enumerate_managed_scope(
engine.managed_scope_lib_path(), bash="no-such-bash-xyz"
)
self.assertEqual(managed["status"], "unreadable", managed)
self.assertIn("PATH", managed["reason"])

@unittest.skipIf(shutil.which("bash") is None, "bash not on PATH")
def test_managed_policy_false_outranks_local_true(self):
with tempfile.TemporaryDirectory() as tmp:
Expand Down