Skip to content

v5.22.0

Latest

Choose a tag to compare

@Kanevry Kanevry released this 24 Nov 04:03
· 1 commit to main since this release

/security gives one read-only entry for repository security work, and /bootstrap measures the repo before it asks. Hooks no longer start node, git or other tools from inside the project. The confidential-names list covers GitLab group names, telemetry sends only from interactive Claude Code sessions, the lock reaper no longer deletes the lock of a live session, and gate and check durations can no longer be negative. A read-only documentation server for the OpenAI plugin directory comes with its own package variant.

Added

  • STATE.md keeps a files-touched ledger and records abandoned approaches (#868, #867). Wave close appends the verified changed paths to a deduplicated files-touched list that resume and planning read; a re-plan or a discarded wave records what was tried, why it was dropped and which files it touched, through the existing What Not To Retry writer.

  • /bootstrap measures the repo before it asks (#2230). scripts/setup-precheck.mjs reports git, VCS, package manager and the test, typecheck and lint commands, each as detected or not found with the reason (no remote, no package.json, no lockfile, missing script). It composes the existing detectors, writes nothing and never assumes npm. /bootstrap shows the status before the tier question. An absent or none command still falls back to the npm default in the gate; a later cut changes that.

  • /security gives one read-only entry for repository security work (#2201, #2202, #2203, #2204, #2205). Four modes: status (which security mechanisms run), deps (lockfile advisories ranked fix now, can wait or not reachable), posture (install and publish settings) and agent-setup (what steers the agent in the repo and on the host). /security review routes to the existing security-reviewer agent. The CLI scripts/security.mjs only reads; scripts/security-emit.mjs records one counts-only event orchestrator.security.command.

  • The confidential-names list also covers GitLab group names, and takes an extra list of your own (#2251). confidential-names.mjs generate now adds the segments of each project's group path, except ordinary words for how a code host is organised (products, internal, infrastructure and others in GENERIC_GROUP_SEGMENTS), which match widely in a public tree and protect nothing; --no-groups leaves groups out. A new confidential-names-extra.json beside the exception file (or --extra <path>) adds names that are not in GitLab, such as customer or product names from your own notes; the exception file still wins. Output stays counts only.

  • A generated, host-local list of confidential names for the leakage scanner, required where a repo publishes (#2238). node scripts/confidential-names.mjs generate reads the project names of the GitLab projects you are a member of (GET only, paged; any missing page or zero projects aborts without writing), subtracts a hand-kept exception file, and writes the list with mode 0600 beside owner.yaml; it prints counts only, never a name. The public export (--public-export) and the release check in a mirror: curated repo now fail closed without a usable list; an explicit empty list stays allowed but is reported as "CP11 deliberately off". Other repos and plugin users without a list are unaffected; pre-commit only hints. Setup: docs/confidential-names-list.md.

  • The OpenAI skills package carries its listing details and an icon (#1931). scripts/export-openai-skills.mjs now writes display name, subtitle, long description, category, starter prompts and the four listing URLs under extensions["com.openai"].interface and ships assets/icon.svg as logo; the OpenAI plugin portal requires these before a submission. --check allows that one file under assets/ and refuses an icon that is a symlink, is not an SVG, or carries a plain <script> element or event handler, a logo that names a file the package lacks, and a listing without its required fields.

  • A read-only documentation server for the OpenAI plugin directory, and a package variant that names it (#2260). OpenAI's portal no longer takes skills-only plugins; the open path needs a public MCP server. server/mcp/ is one: dependency-free, stateless Streamable HTTP, five read-only tools (search, fetch, list_skills, check_session_config, get_release_notes) that answer from the public documentation of the released version. It stores nothing and logs no input. node scripts/export-openai-skills.mjs --with-mcp builds the package with a root mcp.json for exactly this server, five positive and three negative review cases and release notes; the check refuses any other MCP configuration. The skills-only build is unchanged. Hooks stay outside the directory, so the full plugin is still installed from GitHub or npm. See docs/distribution/openai-remote-mcp.md.

  • The site has a page /mcp for the documentation server (#2261). It shows how to add the server to your agent, the five tools and what the server stores (nothing); the home page, the guide, both llms texts and the README point to it.

Changed

  • countSkillInvocationsBySession is deprecated (#1852). It has no caller; use countSkillInvocationsAcrossFiles from scripts/lib/session-close-backfill.mjs. The export stays for at least one minor cycle.

  • New bootstraps ignore the three hook logs (#2246). .orchestrator/metrics/events.jsonl, subagents.jsonl and skill-invocations.jsonl are written on every hook call but committed by nothing, so a user's git status stayed dirty after every session. The bootstrap's ignore block (also run by --upgrade and --refresh-lock) now lists these three exact paths; sessions.jsonl, learnings.jsonl, eval.jsonl and the other ledgers stay versioned, and files Git already tracks stay tracked.

  • release.mjs --reconcile on the trusted route exits by the install job (#2229). A confirmed npm receipt exited 0 with ok: true even when the public install job failed or was never measured. It now exits 0 only when the job passed, 1 when it failed and 3 when it was not measured; the version stays published and installState names the case in --json.

Security

  • Hooks no longer start node, git or other tools from inside the project (#2237). The Node shim skipped only relative PATH entries, so a project that put its own directory on PATH (direnv, mise, a settings env block) could supply the node every hook ran, and hooks started git, ps, gh and similar tools by name. The shim and a shared lookup now skip the project directory, the working directory, every node_modules entry and PATH entries that are not fully qualified, and resolve each tool once to an absolute file. Entries below the project are skipped too, except when the project is the home directory, an ancestor of it or a filesystem root, so a session started there still finds user-installed tools. A census test fails when a module the hooks load starts a bare program name.

Fixed

  • Wave supervision proves tail-sourced stagnation end to end, and a restart reads a bounded window (#1154). The tailer CLI writes a real stagnation_detected record with source: "tail"; on restart it reads at most the last 1 MiB of the events file instead of the whole ledger.
  • Gate durations can no longer be negative (#2266). duration_seconds of the full and incremental gates, the navigator record and the process-group run time were wall-clock differences; a clock step on a WSL VM reported -1. They are measured on a monotonic clock now, and the ms of the security-delta checks is clamped at 0 (a negative value made the check throw).
  • The session-start banner also names a still-running run behind a canceled pipeline that has a failed job (#1852). That case returned phase: canceled and said only "no verdict"; the general case was already covered.
  • The agent cap counts a just-resumed agent (#2056). After a resume the harness marks the agent as running again only after a short delay; until then the cap skipped it, so one start could exceed the cap. A finished marker is now checked against the agent's own transcript when that was written after the marker, within 10 seconds.
  • The lock reaper no longer deletes the lock of a live session (#2127). After a killed hook left session.lock.write.acquire behind, every heartbeat failed silently, the lock timed out and another session reaped it. The reaper now re-checks the lock under the same write guard as every other writer and keeps it while the guard is held. A guard file older than two seconds is reported once per hook with both file names and the event orchestrator.session.lock.stale_acquire_guard.
  • The staging fence reads long shell commands in linear time (#2190). 90 kB of shell words took 8 to 13 seconds, past the 5-second hook budget, and the record was lost; it now takes about 0.1 s. It also records git add after a written-out \n in piped shell data.
  • The scope guard keeps a subagent's real trailer id (#2190). A [Subagent hand-back] line inside a report was read as the frame and dropped the id.

npm package and provenance (when available)