Skip to content

v5.21.0

Choose a tag to compare

@Kanevry Kanevry released this 22 Nov 00:31
· 6 commits to main since this release

The npm package gains a session-orchestrator doctor command, and the publish workflow now installs each tagged version from the public registry and checks that the shipped guard blocks. so-hud recognises Windows program names and PowerShell secret reads, the hook shim searches only absolute PATH entries on every system, and every file of the npm package is now also in the public GitHub snapshot. Further: session-lock and registry locking fixes, many ux-grill and design-review fixes, gate events with duration and host, and vault pointers in the session briefing.

Added

  • Custom phases at close know the session's start ref and leave an event (#2121). Session-end Phase 2.5 runs each phase with SO_SESSION_START_REF and SO_SESSION_ID in the environment (never interpolated into command) and records orchestrator.custom_phase.completed with name, mode and exit_code. A repo can now run its own close-time step scoped to the session's changes, for example a text review over changed message files, through custom-phases without plugin code of its own.
  • Session close and the notification hook follow the Orchestrator Desk presence rules (#2176). scripts/lib/desk-rules.mjs reads desk/anwesenheit.json and desk/regeln.json under the navigator directory, the same way the Desk reference reader does. The 13 test cases of the Desk contract are copied unchanged. In session-end Phase 4a, a clean promoted worktree is still removed under tidy = tell, and a notice line is added. It stays in place under a stricter value, a broken or stale file, or stopped agents. The repo's Notification hook (scripts/desk-notify.mjs) shows the macOS notification only at the desk, or when away with unblock = reach. At night, on vacation, or with a broken file it stays silent. Without both files, everything works as before.
  • ux-grill runs on a remote-offload host in one command (#2184). node scripts/ux-grill-offload.mjs --repo <target> --app-dir <dir> --host m5 builds a git archive image of the target, lets offload run the host side, and lands the manifest, this run's ledger lines and the run directory in --out. On the host, the app is installed, built and served on loopback as a child of the offload job, then crawled once for a bootstrap manifest. The host side then runs collect and compareRuns. A busy host stops the run with exit 2, and the run carries no credentials and files no issues. Documented in skills/ux-grill/SKILL.md § Offload host.
  • Generated rules and vault learning notes link to each other (#1135). Vault Mirror adds the compiled rule path to each learning note, for every learning-key pair of a consolidated rule, and Reconcile records the vault note path as vault-note in new rules while vault integration is enabled. The path is left out when it matches a private slug or the slug policy cannot be loaded. Existing rules are not rewritten.
  • Session close records peak Agent subagent concurrency, the share of session time with an active subagent, and peak coordinator context (#2164). The breadth fields measure a lower bound on delegation because they exclude Codex and offload jobs launched through Bash. A readable source with no observed intervals yields zero for both subagent metrics. Missing measurements are null.
  • Session planning surfaces advisory notices for spare implementation capacity and deep sessions with fewer than four issues (#2164). The capacity notice considers independent tasks with disjoint write scopes and the wave's agent cap. Both notices are informational.
  • scripts/guard-friction-census.mjs counts what the destructive guard denied and warned, and at what (#2090). Read-only. It reads the rotated events ledger of one or more --repo-roots over --days (default 14) and prints per rule: denials, how many of them were measured recoverable (the cases profile relaxed softens), warnings, and the target-class split with the temp share as numerator/denominator over the targets the guard could classify; unknown targets stay out of that denominator and are reported beside it as unknown_target. Only events carrying case, target_class and rule_class (written since 5.20.0) enter a share; older ones are counted as unmeasured, invalid field values as invalid, and malformed, undated and future-dated lines are counted too. Each ledger reports covers_window, whether its oldest retained event reaches back to the window start. Measured on this repo's ledger on 2026-11-15: 3239 guard events in 14 days, 2 of them measured; a share over all 3239 would have rested on 3237 records that never recorded a target. This is the instrument for choosing the default profile from measurement; the default stays standard.
  • The publish workflow checks the public npm install of each tagged version (#2194). A new job install-check installs the tagged version from the public registry into a clean Node.js 24 project, with lifecycle scripts disabled, and passes a destructive test command to the shipped Bash guard through stdin; it passes only when the guard denies it. It runs after a successful publish, and also when the version already exists. The GitHub release notes link to the version on npm, where the provenance is shown.
  • session-orchestrator doctor runs the runtime-readiness check from the npm package (#2194). bin/session-orchestrator.mjs wires one subcommand to scripts/runtime-readiness.mjs and passes its options (--json, --repair, --codex, --claude, --root <dir>) and its exit code through (0 ready, 1 input error, 2 system error, 3 not ready). An unknown subcommand prints help on stderr and exits 2.
  • Gate events carry duration_ms and host (#2197). All four writers of orchestrator.quality_gate.passed and .failed record the wall time of the gate, measured with a monotonic clock, and the host. A reused receipt carries neither, because no gate ran. Both fields are optional in the schema, so older records stay valid; a missing duration_ms means not measured, never 0.
  • session-start puts vault pointers for the session topic into the briefing (#2169). With vault-integration.briefing-search: true (default false), Phase 6.6.1 runs one word-only vault search with the session topic under a 5 s limit and shows at most 5 candidate paths in at most 600 characters. The topic reaches the command as one argument, vault paths stay out of the event webhook, and any failure prints nothing and never blocks the start. orchestrator.vault.pointers_shown records shown blocks and orchestrator.vault.pointers_skipped records why a step showed nothing.
  • scripts/agent-usage-census.mjs reports tool calls before the first edit (#2170). A second section lists, per agent type, the orientation cost before the first edit, classified as search, read, install, check or other. Calls are counted once per tool_use id, because transcripts replay each call in an api-request-blob line.
  • public-audit skill measures the public technical discoverability of a site from an explicit manifest (#2108, stage O). node scripts/lib/public-audit/cli.mjs --manifest <file> --json makes bounded requests (at most five per hostname) and reports redirects, page metadata, typed JSON-LD, sitemaps, robots policy, crawler responses, head resources, HTML bytes and optional public files. Exit codes: 0 complete without error findings, 1 error findings, 2 invalid input or output, 3 incomplete without error findings. It does not log in, drive a browser or use account data, and it makes no claim about rankings, indexation or rich-result eligibility; stage L (search visibility and account data) is still open.

Changed

  • CP11 reads owner.yaml once (#1270). loadOwnerConfig() reports droppedSections[].rawKeys, so the leakage scanner no longer re-parses the file; loadHostPaths() returns { ownerConfig, env } only. Scan verdicts and confidential-name redaction are unchanged. Copy owner-yaml.mjs, config/host-paths.mjs and validate/check-owner-leakage.mjs together.
  • The backlog checker reads a repo's documented label taxonomy and checks its own reads (#2097). When origin/main carries .claude/rules/gitlab-labels.md, declarations come from its first Achse table (prefix:* declares a family) and the report names the file and the origin/main SHA it read. With the file present, a missing, empty or ambiguous Typ/Type row makes the type axis unmeasurable. With no file or ref, the 10 %/5-issue heuristic still applies to all families, including type. The Lead helper uses the same source and Typ row, accepts only Typ, treats text around backticked labels as ambiguous, and reports the axis as unmeasurable when the source is unavailable. The checker now reads the newest issue iid with one extra call, so a dependency on an issue closed before the window is no longer dropped; a paged read whose count differs from the X-Total header ends with exit 2 and both numbers; and status.review-mr-merged counts a merged MR only when it is in closed_by or its title refers to the issue, no longer every MR that merely mentions it. GitHub targets, duplicate detection and age since work started remain open (see docs/backlog-refinement.md § Ceilings).
  • The Codex plugin agents explorer, session-reviewer, and wave-worker now use gpt-6.2-sol. (#2136)
  • Skill frontmatter model-preference-codex names gpt-6.2-astra for discovery, eval, plan, session-plan and test-runner, and gpt-6.2-sol for the other 13 skills (#2152). The 18 gpt-5.4 / gpt-5.4-mini entries in skills/, .codex-plugin/skills/ and .agents/skills/ are gone. No code reads the field to choose a model.
  • CI: the test, coverage-shard, pack-lifecycle and schema-drift-check jobs start when the pipeline is created (needs: [] in .gitlab-ci.yml). Before, each waited for the earlier stages. None of them reads an artifact of those stages, and pipeline-gate still needs every gate. On main the coverage shards used to start only after test 2/3 finished (pipeline 48746: coverage began at +17:36 of 28:29); they now run beside the test shards.
  • The pre-push remote gate picks the configured host by load (#2173). Candidates are the Session Config remote-hosts entries that allow test, now led by win-wsl; the first host with a free gate slot and last_5 below its batch_last_max goes first. When offload status cannot measure, the configured order stays and one stderr line says so; a push is never blocked by the probe. SO_GATE_HOSTS still wins. A check that hits its deadline names SO_GATE_HOSTS=<alias> git push in the failure log.
  • The destructive-guard test file is split into seven files (#2100). tests/hooks/pre-bash-destructive-guard.test.mjs held 749 tests in one file, which vitest runs serially in one worker, so it set the wall time of its CI shard (391–621 s in test 2/3 and coverage shard 2/3). The tests now live in tests/hooks/pre-bash-destructive-guard-*.test.mjs with a shared harness in tests/_helpers/destructive-guard-harness.mjs; the largest file holds 148 tests. The count is unchanged: 749 before and after, 0 failed.
  • The npm package no longer ships CHANGELOG.md or seven maintainer-only paths, and remark is a devDependency (#2194). Nothing a shipped hook, skill or command runs at run time needs the dropped paths (scripts/ci/plugin-smoke.mjs still names one of them, and it runs only in a Git checkout); remark is imported only by a test. The unpacked package shrinks from about 18.8 MB to about 17.7 MB. Release notes are on the GitHub releases page.
  • project-hygiene, maintenance-due and peer-cards-staleness repeat an unchanged finding at most every 7 days (#2196). The three probes warned in 84, 86 and 86 of 86 probe runs since 11 November, describing a standing state. The probe runner holds back a warn-level line whose facts did not change, and reports at once when a finding is new, when a size doubled against the last reported value, when seven days have passed, or when the remembered state is missing or broken. The held-back line stays in results[].suppressedLine, the state in .orchestrator/tmp/probe-repeat.json, and the ledger records repeat: reported | suppressed per probe.

Fixed

  • The public GitHub snapshot carries the npm command file (#2194). The export policy now includes bin/session-orchestrator.mjs; the trusted publish workflow packs from that snapshot, so without it the bin entry would have pointed at a missing file. A test now fails when npm packs a file the export policy leaves out, and when the command file is not packed at all.
  • The maintenance notice for expiring rules recommends a seven-day horizon (#2165). The CLI help and rule authoring guide document the zero-day default. JSDoc uses the same cutoff definition throughout. Expired markers-only entries within the grace window no longer set the expiry header.
  • Remote wave dispatch counts offload's admission wait in its local kill and maps exit 10; the pre-push gate no longer waits for a slot (#2186). offload 1.8.0 waits up to RO_ADMISSION_WAIT (default 600 s) for a slot before the run; the local wall-clock kill in remote-dispatch is now timeoutSec + that wait + 60 s, so a run that waited is no longer reported as timeout. Exit 10 becomes admission-refused only when the LAST offload: admission= stderr verdict is refused (a waiting offload prints refused, then granted, then runs the command); otherwise it stays remote-command-failed. The pre-push gate passes RO_ADMISSION_WAIT=0 to offload run, so a busy gate host refuses at once and the next route is tried. No --nicht-warten: older offload versions do not know it.
  • Generated-rule sweeps include unexpired markers-only dates when rewriting the expiry header (#2163). The header and absorbed-dates sentence now use the same earliest date the advisory will see after the rewrite.
  • /evolve analyze no longer derives a hardware pattern from registry sweeps (#2114). The sweep logs an age only when it removes an entry already past the 60-minute stale cut, so the heartbeat-gap detector fired on every entry (4297 of 4297 in the live sweep.log); it is removed instead of raising its threshold. The fragile-file heuristic in evolve-analyze-mode.md now counts a file only with three or more commits in one session, in at least three sessions, excluding CHANGELOG, docs and package*.json. Three expiring generated-rule sections were swept, and two command-blocker fragile-file findings were folded into guard-design.md.
  • The backlog checker recognises "Fertig, wenn:" with a comma as an acceptance heading (#2117). ACCEPTANCE_RE accepts the German heading with and without comma and colon, in any case; ready.no-acceptance no longer fires on it.
  • Vault-pointer events carry the process-local session id in shared checkouts (#2172). pointers_shown and pointers_skipped record native_session_id from readProcessLocalSessionIds() in the local ledger only; the webhook payload stays without it.
  • emit-session redacts e-mail addresses in session notes before appending (#2125). notes and express_path.notes pass through redactSpans(); historical records are read unchanged.

npm package and provenance (when available)