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
2 changes: 1 addition & 1 deletion plugins/harness-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": "harness-ops",
"version": "2.5.0",
"version": "2.5.1",
"description": "Claude Code operations toolkit. Fifteen 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, every built-in subagent and tool, every built-in plugin with its components, 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 turn them into decisions: apply executes those in scope one PR per owner plugin and hands larger ones off as work items, then re-extract the native surface and file its drift as work items), prerequisites (read-only table of external binaries declared by enabled plugins; never installs), check (read-only check that node and jq resolve for the harness-ops hooks; never installs), machine-profile (discover this machine's facts and per-tree identity domains, store them as a re-runnable profile with the observation behind every value, and diff the stored profile against the host now; read-only unless the operator confirms a write, never installs and never reapplies a stored value on its own), 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/harness-ops/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
All notable changes to the `harness-ops` plugin are documented here. Format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); this plugin uses semantic versioning.

## [2.5.1] - 2026-10-02

### Fixed

- `restart-consumer.sh` treats a set but empty `RESTART_CONSUMER_FAKE_ALIVE_PIDS` as "no owner pid is
alive" instead of falling through to `kill -0`. The lock-reclaim test seeds owner pid 4242 and
failed whenever the host had a live process with that pid, as busy CI runners sometimes do. The
test now records its own live pid as the gone owner, so a fall-through fails every run.

## [2.5.0] - 2026-10-02

### Added
Expand Down
6 changes: 4 additions & 2 deletions plugins/harness-ops/skills/lanes/scripts/restart-consumer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,9 @@ lock_boot_id() { tr -d '\r\n' <"$LOCK_DIR/boot-id" 2>/dev/null || printf ''; }
LOCK_HARD_STALE_SECONDS=86400

# Is the recorded lock owner still the process that took the lock? Overridable
# so the tests can drive every branch without spawning real processes.
# so the tests can drive every branch without spawning real processes: a SET
# RESTART_CONSUMER_FAKE_ALIVE_PIDS is the whole live set, so set-but-empty means
# no pid is alive and `kill -0` never consults the host's real process table.
lock_owner_alive() {
local pid="$1" age="$2" recorded_boot current_boot
((pid > 0)) || return 1
Expand All @@ -572,7 +574,7 @@ lock_owner_alive() {
((age >= LOCK_HARD_STALE_SECONDS)) && return 1
fi

if [[ -n "${RESTART_CONSUMER_FAKE_ALIVE_PIDS-}" ]]; then
if [[ -n "${RESTART_CONSUMER_FAKE_ALIVE_PIDS+set}" ]]; then
[[ " $RESTART_CONSUMER_FAKE_ALIVE_PIDS " == *" $pid "* ]]
return
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,10 @@ assert_not_contains "a live owner's lock is never reclaimed" "$OUT" "reclaiming
# Same aged stamp, but the owner is gone: reclaiming is correct here.
# --max-restarts 0 disables the breaker, which earlier cases in this file have
# already spent against lane `work` in the shared data dir — this case is about
# the reclaim, not the budget.
# the reclaim, not the budget. The recorded owner is this shell's own pid, which
# is always live: an empty fake set must be the whole truth, never a fall-through
# to `kill -0` on the host's process table.
seed_lock 1799992800 "$$" boot-A
: >"$LAUNCH_LOG"
OUT="$(RESTART_CONSUMER_FAKE_BOOT_ID='boot-A' RESTART_CONSUMER_FAKE_ALIVE_PIDS='' run_consumer run --max-restarts 0 \
--telemetry-json "$TEL" --agents-json "$AGENTS_NONE")"
Expand Down
2 changes: 1 addition & 1 deletion plugins/pixel-art/.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": "pixel-art",
"version": "0.5.0",
"version": "0.5.1",
"description": "Creates pixel art with no external tools: static sprites, animation cycles laid out as sprite sheets for the target engine (RPG Maker MZ, Godot, PICO-8, plain strips) with Aseprite-shaped frame data and GIF previews, terrain tilesets and parallax, UI skins and bitmap fonts, effect sheets, and animated scenes and cutscenes as one self-contained HTML file. The model authors palette-locked specs or procedural generators, including scripts/kit.py, a humanoid kit of proportion presets, hair and head shapes, clothing layers, material ramps, shading, a selective outline, and direction handling. A bundled Python standard-library renderer writes PNG, GIF and frame data, and a render-review loop iterates on what it sees. Craft rules and engine layouts are sourced reference files. An optional Aseprite adapter shares that artifact contract and falls back to the native renderer when the tool is absent.",
"author": {
"name": "Melodic Software",
Expand Down
9 changes: 9 additions & 0 deletions plugins/pixel-art/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
All notable changes to the `pixel-art` plugin are documented here. Format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); this plugin uses semantic versioning.

## [0.5.1] - 2026-10-02

### Fixed

- `capture.py` waits up to 60 seconds, not 20, for a running browser to open its debugger port. A
cold first browser launch on a busy CI runner passed 20 seconds while the browser was still
starting, which failed the campfire capture test with "browser did not open a debugger port". A
browser that exits still fails at once.

## [0.5.0] - 2026-10-02

### Changed
Expand Down
4 changes: 3 additions & 1 deletion plugins/pixel-art/scripts/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ def _http_json(url, method="GET"):

def _devtools_port(profile, proc):
port_file = profile / "DevToolsActivePort"
deadline = time.time() + 20
# A browser that exits fails at once below; this bound is only for one that is still starting.
# A cold first launch on a busy 4-vCPU CI runner has run past 20 s with the browser alive.
deadline = time.time() + 60
while time.time() < deadline:
if proc.poll() is not None:
raise RuntimeError(f"browser exited {proc.returncode} before the debugger opened")
Expand Down
19 changes: 19 additions & 0 deletions plugins/pixel-art/scripts/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,25 @@ def test_scene_is_served_from_a_temp_copy(self):
self.assertNotEqual(seen["served"], scene.parent)
self.assertEqual(seen["served_files"], ["scene.html"])

def test_debugger_wait_outlasts_a_slow_cold_start_but_not_an_exited_browser(self):
clock = [0.0]

def sleep(seconds):
clock[0] += seconds
if clock[0] >= 30:
(profile / "DevToolsActivePort").write_text("4321\n/devtools/browser/x\n")

with tempfile.TemporaryDirectory() as tmp, \
mock.patch.object(capture.time, "time", lambda: clock[0]), \
mock.patch.object(capture.time, "sleep", sleep):
profile = pathlib.Path(tmp)
self.assertEqual(capture._devtools_port(profile, SimpleNamespace(poll=lambda: None)), 4321)
(profile / "DevToolsActivePort").unlink()
clock[0] = 0.0
with self.assertRaisesRegex(RuntimeError, "exited 1 before the debugger opened"):
capture._devtools_port(profile, SimpleNamespace(poll=lambda: 1, returncode=1))
self.assertEqual(clock[0], 0.0)

def test_example_exposes_capture_contract(self):
text = (CAMPFIRE / "scene.html").read_text()
self.assertIn("window.__pixelScene", text)
Expand Down