Repository navigation
Releases
Router v0.5.0
Pairs with Harness 0.5.0.
0.5.0 pairs Router and Harness. Router keeps governed routing exclusions in force when accounting fails and provides an opt-in, isolated commands profile; Harness supplies bounded SSH inspection with explicit project policy. Remote interception requires an active, qualified full Harness hook; the commands profile is local and registers no hooks.
- Keep observable exclusions on governed roles blocking when the ledger is unavailable or a commit fails, and check Router-selected models against configured exclusions. Native and custom agents pass through unchanged. When history is unavailable, no ladder cap is claimed as enforced.
- Bound receipt file input to 64 KiB regular files; unsupported special inputs are rejected before anything is recorded. Receipts remain coordinator attestations, not host proof.
- Add an opt-in
--profile commandsinstall for Claude Code or Codex: saved dry-run plan, then apply, with an isolated launcher and state, no hooks, roles or instructions, and reversible uninstall. Native Windows lifecycle and ACL protection are not qualified. - Verify with paired tests that the commands profile preserves unrelated host files, launchers and legacy installs when Router and Harness are installed in either order.
- Add paired operations workflow tests and
docs/host-validation.md, which separates offline adapter tests, installed executable and hook tests, and live host or connector tests. Supplied observation JSON is not authenticated readback. - Make the CI
testjob use the resolved Harness ref. pyrun.shsaves the interpreter it found only after the script exits 0, so a rejected command or a missing script leaves nopythoncache; Python still replaces the launcher.- Fix tests for macOS and Windows; these are test-only changes.
- Context: the default agent and skill catalog is byte-identical to 0.4.1 (56 files) and no always-on hook text was added. Budgets use bytes/4 estimates, not measured billing or savings.
Full Router and Harness suites ran natively on Linux, macOS and Windows with Python 3.9 and 3.13 (six cells), with 0 failures and every skip named and reviewed.
Windows skips the POSIX-only tests and, because 0.2 predates Windows support, the version-skew checks that uninstall the 0.2 tool first or expect a skew notice after a Harness 0.2 install.
The macOS and Windows Python 3.9 cells skip the tests that run the 0.1 and 0.2 release installers, which need Python 3.10 or newer.
The required SSH integration test ran on Linux only. The PyYAML parity tests ran on Linux with Python 3.9 and 3.13 with PyYAML installed.
Live-host, installed-runtime and paid-pilot qualification have not been run, and nothing here is a qualified release claim. See the release notes.
Router v0.4.1
Pairs with Harness 0.4.1.
- Canonicalize ordinary test fixture roots so the macOS temporary-directory alias does not trigger the existing storage-path protections. Explicit unsafe symlink paths remain rejected.
- Make the doctor invalid-version test check its unique untrusted payload while accepting legitimate paths containing
private. - Update release and pairing references; runtime behavior is unchanged.
Router v0.4.0
Pairs with Harness 0.4.0.
- Add an opt-in
operations/v1brief and declared-tool preflight. Missing declared tools exit 3; unknown visibility stays unknown, while coordinator guidance preserves the selected native or custom agent configuration. - Add report-only resulting-state observation with independently supplied readback evidence; no mutation gate or live-host verification is implied.
- Add an offline paired evaluator with replay validation, cumulative usage accounting, failed-attempt retention and conservative screening. These synthetic checks make no savings or adoption claim.
Router v0.3.3
Pairs with Harness 0.3.3.
Changed
- Materialize historical release archives in CI before extraction to avoid pipe-close failures under
pipefail.
Router v0.3.2
Pairs with Harness 0.3.2.
Fixed
- Validate Windows process creation times before excluding ancestor PIDs in
wait-until.sh no-proc, so a reused parent PID cannot hide a matching process. - Report incomplete process snapshots and unreadable command lines for live processes owned by the caller as errors instead of successful absence. Protected processes and unreadable processes of other accounts remain matched by executable name, as stated in
--help. - Keep the watched-process test child alive until its parent releases it, and check readiness and liveness before interpreting the wait result. Add regressions for snapshot errors, failed command-line reads and reused process IDs.
Router 0.3.1
Pairs with Harness 0.3.1. If the installed Harness is older, the installer prints one upgrade notice; upgrade both tools.
Fixed
-
Treat Windows permission bits consistently on Python 3.13, which exposes
fchmodbut cannot enforce private POSIX modes. -
Fall back from incomplete UNC
XDG_STATE_HOMEvalues consistently in the launcher and Python runtime across Python 3.9 and 3.13. -
Run the hooks and the
routercommand on Python 3.9: the shared helpers no longer fail at import onX | Noneannotations. -
routerno longer needs/usr/bin/env -S(busybox and coreutils before 8.30 lack it), and no entry point writes.pycfiles. -
Keep switch files, the ledger and the Harness pressure signal working when HOME, ~/.local or XDG_STATE_HOME sits behind a symlink.
-
Read settings and manifests that start with a UTF-8 byte order mark; the installer still writes them LF without one.
-
Give every settings backup a name no file holds yet: when the clock moves in coarse ticks (Windows Python 3.12), two backups in one run shared a name and the original's copy was replaced.
-
Lock state on a separate
.lockfile (flock or msvcrt, polled for 2 seconds); when the lock stays held, the hook skips that update instead of waiting. -
Lock the ledger spool through
ledger.spool.lockand rename it only while no writer has it open, which Windows requires. -
Run the BAR of
scripts/close-lane.shin the bash that runs the script, never a barebashthat native Windows resolves to the WSL one; a BAR timeout on Windows ends its process tree. -
scripts/wait-until.shon native Windows no longer kills the process it watches:pidasks Windows whether the process has exited,no-procreads the process table itself, and a Git Bash$!pid is mapped to its Windows pid. -
scripts/gen_plugin.py --checkcompares bytes only on Windows, which keeps no execute bit, so a Windows checkout no longer reportsplugins/router/bin/routeras drift. -
router doctorreports[ok] pathon native Windows when the installedrouteris first on PATH, and reads old Windows manifest paths when it checks roles and shared-role skew.
Platforms
- Run on Linux, stock macOS (system Bash 3.2 and
/usr/bin/python33.9), WSL and native Windows through Git for Windows, with Claude Code or Codex. Python 3.9 is the floor in the installer,router doctorand the README. - Start every hook,
routerand the helper scripts throughhooks/router/pyrun.sh, a POSIX sh launcher. It uses$ROUTER_PYTHON, the saved interpreter, then the first ofpython3,pythonandpy -3that is 3.9 or newer, never the Windows Store stub, and sets UTF-8. With no Python, a hook prints one line on stderr and exits 1. - Register hooks as
sh "$HOME/.claude/hooks/router/pyrun.sh" router warn <hook>.py, with quoted absoluteC:/paths on Windows and for a home with spaces. On Windows, Codex hooks also get a PowerShellcommand_windowspinned to the installer's Python.router doctorrecognises the new and the older hook form. - Load the hooks and
routeron native Windows Python:hooks/router/compat.pyholds every POSIX-only call (file lock, open flags, owner check, chmod, atomic replace, pread, home lookup) with a Windows path. - Install into
$HOMEon native Windows (Windows Python's Path.home() reads USERPROFILE only), and detect a host CLI that is on PATH without a PATHEXT extension, such as an npm or Git Bash shim. - Where the account cannot create symlinks, install a copy of each shipped link's target, record it by sha256, and handle links and copies alike on upgrade and uninstall. Links use the native separator; an upgrade rewrites a
/link that Windows left dangling. - Write manifest paths with
/on every OS and read the backslash paths an older Windows install wrote, so a shared role Harness 0.1 or 0.2 claims is kept instead of refused. - Upgrade over a Router 0.1 or 0.2 install on Windows: the installer clears the read-only flag those releases left on its own files.
- Keep a Windows checkout LF (
.gitattributes, SQLite fixtures binary), hash shared role sources with CRLF read as LF, and stopinstall.shon a CRLF copy with one line naming the fix. - Open state files in binary mode and write them LF; a lane label that starts with the home folder in any Windows form shows
~. - Not enforced on native Windows: POSIX owner checks and file modes such as 0600 (NTFS keeps none); the installer skips chmod there.
- Codex hooks on native Windows run the Python that ran
install.sh; after moving or replacing it, reruninstall.sh. - Control-character file names and paths beyond the 260-character MAX_PATH are outside native Windows support.
- State paths written as
~user/..., and on native Windows a~/path such as~//tmpor~/C:state, may needROUTER_PYTHONor a Python on PATH; they cannot start from the saved interpreter alone. - On native Windows, upgrade both tools to 0.3.1 before uninstalling: a 0.2 uninstaller can misread current manifest keys. Upgrading alongside Harness 0.2 there is not supported.
Changed
- Run CI on ubuntu, macOS and Windows (Git Bash) at Python 3.9 and 3.13, with fail-fast off, so one failing job no longer cancels the rest.
- Run every test file through
tests/run_all.pyin CI and from CONTRIBUTING.md: one line per file, a per-file timeout, the output of each failure and a final list of failures. Router and Harness ship the same file. - Run the tests under Git Bash on native Windows:
tests/_platform.pyruns bash by full path (never the WSL bash.exe in System32), puts apython3shim script on PATH, ends a timed-out test's whole process tree and prints the reason for each skip.PYTHONPATH=tests/win_simruns the Windows code paths on Linux and macOS. - Build the 0.1 and 0.2 release trees from commit SHAs in the test and together jobs.
- Pick the Harness commit for the together and shared-drift jobs with
scripts/harness-ref.sh resolve: HARNESS_REF when set, else the Harnessv<VERSION>tag, else Harness main once its VERSION is the same or newer. While a paired release is still being pushed, retry every 20 seconds for up to 10 minutes. - Test more of the installed behaviour: the context guard with an urgent signal,
tests/together.shwith pinned XDG_CONFIG_HOME and ROUTER_LOCAL and a single skew notice, an unreadable shared role, a claim file swapped while being read, and uninstalling directly over a Router 0.1 install. - Check every shipped Python source against the 3.9 grammar, union annotations without the future import, and 3.10+ library names.
- State the platforms, requirements and limits in the README, and correct how Router picks the pressure host:
harness_host, then--host, thenturn_id.
Router 0.3.0
Pairs with Harness 0.3.0.
Added
- Add a version stamp and read-only installation health checks with
router doctorandinstall.sh --status. - Add a verdict ledger,
router ladder list|reset,router lanes --session, androuter reportfor attempts, active work, judge coverage and readable token totals. - Add local route overlays,
router config,router promotewith evidence and dry run, and careful, medium and small overlay presets. - Add a Claude Code marketplace with Router and shared-roles plugins; generate and check plugin copies, and report plugin state.
- Add release checks, CI, security and contribution guidance, and a tested release-notes script.
- Add upgrade guidance for existing
--with-defaultsinstallations and shared role ownership.
Changed
- Check Claude briefs before dispatch, remind once about unjudged returns, block one same-session rerun of a passed brief, and restore lanes after compaction.
- Scope ladder attempts to a project and a 12-hour default window; keep a private ledger with 0600 files and 0700 directory.
- Score and rate-limit role hints, and tighten context nudges with fresh Harness pressure signals.
- Remove unchanged obsolete files on upgrade, preserve edited files, and claim sibling-owned shared roles without rewriting them.
- Make script hooks win over plugin hooks and use plugin-prefixed role names when Claude resolves them.
Fixed
- Restore original settings bytes and mode across Router and Harness uninstall orders; keep old settings safe during a no-change reinstall.
- Preflight both hosts before installation, report file-named failures and version skew, and guard ledger spool replay and its claim files under contention; log an unsafe ledger spool as one line instead of failing hook calls, and log spool busy and spool full separately.
- Avoid hook bytecode writes, including from the installed router, and report hook loading failures on one line.
- Read plugin role names from project settings at the project root, ignore a relative CLAUDE_PROJECT_DIR, and never treat the Claude home as a project.
- Make
router doctorrun from an install find the checkout and report role skew, or say it cannot. - Leave settings untouched when the installer reruns after Harness changed them, and update shared roles to the 0.3 bytes once both tools are 0.3.
- Remove the empty folders a 0.1 or 0.2 Router or Harness install made when the last tool leaves.
Removed
- Remove dispatch-log.py; use the ledger,
router lanes, androuter reportfor run outcomes.
Upgrade notes
- Run both new installers. A 0.2 installer run after a 0.3 sibling refuses and leaves files unchanged. Use
--dry-runto preview cleanup and--purgeto remove Router backups and retired attempts.sqlite3.
Router 0.2.0
Pairs with Harness 0.2.0.
Added
- Add opt-in
install.sh --with-defaultsdelegation blocks for Claude and Codex, rendered from routes.json, refreshed by auto mode changes only while the file and block remain, and removed on uninstall while preserving user text, including a missing final newline. Announce the defaults backup path on installation. - Add shared
router auto off|suggest|nudge|enforcemodes, defaulting to nudge, with a persistent user setting and status output. - Add optional keyword role hints and main-session read/edit thresholds on both hosts, with spawn resets and documented Codex visibility limits.
Changed
- Remove Router's empty top-level hooks key on uninstall only when it was absent before first install, including when installed with Harness; preserve it for older manifests and shared hooks.
- Keep large-read protection and other rules with their own modes active when
router auto offdisables automatic routing. - Adopt Harness's nine shared role files and base Codex TOMLs verbatim.
- Generate tier Markdown and Codex TOMLs from shared bases and routing defaults, with a drift check.
- Use canonical role names for classification, worktree isolation and retry history on both hosts. Codex ladder history from 0.1 restarts after upgrade because its key uses the new role name.
- Claim identical shared files during install and preserve Harness claims during uninstall, failing safe on invalid manifests.
- Group equal delegation return limits from routes.json, remove hook events emptied by Router on uninstall, and name the instruction file when auto mode finds broken markers.
- Check both installation orders with Harness and preserve unrelated settings, hooks and files after each install and uninstall using
HARNESS_DIR=/path/to/harness bash tests/together.sh. - Record
asked_typealongside the routed role so the requested and actual seat remain visible. - Replace Router's own hook registrations when a reinstall changes their matcher, so reads are not counted twice.
- Drop the Explore, Plan and general-purpose built-in agent overrides; those names become aliases of
researcher,plannerandworker. - Count builder, worker, test-writer and docs-writer seats as execution rounds in dispatch-log.py.
Deprecated
- Previous Router role names are compatibility aliases until a later release. See the README's rename table.
- Codex calls using an uninstalled alias must retry with the canonical name supplied by the hook.