Skip to content

Releases

v2.7.3 — session pins survive concurrent turns, dev-tree dependency advisory

Choose a tag to compare

@TARSDrakon TARSDrakon released this 16 Nov 16:48
a6427ca

[2.7.3] - 2026-11-15

Patch on 2.7.2: improve session-affinity pin handling under concurrent turns
and update a development-tree dependency for a security advisory.

Fixed

  • A session pin could be silently dropped under concurrent turns. With
    sessionAffinity on, a shim that waited the full 1 s for the pin store's
    lock gave up without writing and exited normally, so the session's next turn
    was routed by the pool pick, or by an older pin, instead of the account that
    had just served it. Such a writer now parks its pin in a
    pool-<id>.sessions.json.pending-* file: readers combine parked pins with
    the store (the pin served latest wins) and the next writer to take the lock
    folds them in and removes them. A read opens every parked file of its own
    session and no other session's, so no number of parked sessions hides a pin.
    Parked files stay bounded while a live holder keeps the lock: a session
    normally keeps one, holding its latest pin; files past the TTL are removed;
    and the limits are 32 per session and 1032 in total, with the exceptions
    detailed below. The store also takes the same lock as shim state, so a live
    holder's lock is no longer removed by age and a dead holder's is recovered
    at once. The wait stays bounded at 1 s.
    (#178)

  • A read could miss a session's pin while newer pins for it were being
    parked.
    A parked pin replaces the session's older parked file. A read that
    listed the older file and found it gone listed again, at most four times; if
    each new listing was replaced in turn, the read returned an older stored pin
    or none, although a valid pin was on disk throughout. A read now returns a
    pin at least as recent as the session's latest valid pin when the read
    began, whatever another process holds or however long it stops, for every
    read during which fewer than 32 pins of its session are parked (see the
    limits below). The read never waits. How:

    • A parker removes a parked file, for any reason (superseded, past the TTL,
      during trimming past 1000 files), only under a short lock for that file's
      session (pool-<id>.sessions.json.parked-<session key>.lock), tried once without
      waiting. When the lock is busy the file stays for the next parker.
    • A read that finds a listed file gone, with nothing it read at least as
      recent, announces itself with a marker
      (pool-<id>.sessions.json.parked-<session key>.reader-<pid>-<random>.lock)
      and lists again. A parker holding the session's lock removes nothing of
      that session while a live reader's marker is there. Only the one parker
      that already held the lock when the marker appeared can still remove
      files, from one listing, oldest first; three more listings always include
      one that settles the read under these removal rules. The marker goes when
      the read returns; one left by a reader that died is removed by the next
      parker. A read that loses no file writes nothing and takes no lock, as
      before.
    • A read counts a pin served after its caller's clock reading: up to 60 s
      ahead of that reading or of the clock when the read lists its files,
      whichever is later (exactly 60 000 ms ahead counts, 60 001 ms does not).
      Before, a read treated any pin ahead of its own reading as no pin, which
      discarded the pin a concurrent turn had just parked.

    Limits, stated plainly. Parked files are bounded whatever another process
    holds and however long it is stopped: one session has at most 32
    (MAX_SESSION_PARKED), and there are at most 1032 in all
    (MAX_PARKED_FILES: the store's 1000-session bound plus one session's
    worth). A writer counts the files before it parks. What gives way at a
    bound:

    • While a session is being read or trimmed its superseded files are not
      removed, so it can hold more than one, and the total can pass 1000 by
      such files. A reader that stopped keeps its marker, and that protection
      lasts until the session has 32 files. The next write of that session then
      removes the superseded ones under the session's lock, marker or not,
      keeps the file with the latest pin, and parks its own. So the read
      guarantee above holds for every read during which fewer than 32 pins of
      its session are parked; a read raced by 32 or more may end with the
      latest pin it saw.
    • If that session's lock is itself held by a process that does not let go,
      nothing of the session can be removed, and the write is refused: no file
      is written, the session's latest parked pin stays readable, and the shim
      says so on stderr ([multi-clawd shim] session pin not recorded: ...,
      naming no session, account or path). The turn is not affected. The
      session's next turn is routed by the pin that is still parked.
    • If the total is at 1032 after the usual trim (several sessions' surplus
      is behind locks or markers that are not released), the write is refused
      in the same way. A reader's protection never gives way for the total, and
      no session loses its only parked pin to another session's surplus.
    • The count and the write are two steps, because a park below the bound
      takes no lock. A turn stopped between them still writes its one file when
      it resumes, so each bound can be passed by one file for each turn stopped
      at exactly that point. The surplus stays without growing until that
      session's lock is free; the next park then trims it.

    Parked pins reach the store only when a writer takes the store lock: while
    a process keeps that lock, nothing is folded, and the bounds above are what
    limits the files. No live holder's lock is removed, by age or otherwise;
    parkers remove files only under their session's lock; a store-lock holder
    removes only files folded into a committed store; no writer overwrites
    another's file. A pin that passes the TTL, falls outside the 1000 most
    recently served sessions, or is more than 60 s ahead of the clock of the
    writer that rewrites the store ends there, as before; a read running across
    that moment may return without it. A read ends after four listings with the
    latest pin it saw only if the state directory refuses the marker file,
    parked files are deleted by something other than multi-clawd, or its
    session reaches the 32-file bound while it runs. Nothing is signalled or
    killed, and nothing waits longer than before. (#183, #186)

  • A session pin served earlier could replace one served later. A writer
    delayed past a newer write for the same session overwrote the newer pin with
    its own. The pin served latest now wins whichever writer arrives last. (#178)

  • A session whose id is a name every object inherits lost its pin. With
    sessionAffinity on, a session id such as constructor, toString,
    hasOwnProperty or valueOf (all accepted as --session-id and --resume
    values) was looked up in a plain object, where it found an inherited
    function instead of "no pin". A successful turn then stored nothing and
    returned normally, and a read returned that function instead of a pin or
    nothing. v2.7.2 stored and read these ids; the fault came in with the
    ordering fix above and was never released. Pin dictionaries now have no
    prototype and every lookup is an own-property check: the write, the fold of
    parked pins, the read, and the trim of parked files. Session ids that are
    UUIDs, which is what Claude Code issues, were never affected. (#186)

Repository

  • Updated the development-tree-only @hono/node-server lockfile record from
    2.1.5 to 2.1.6 for GHSA-jpvv-r467-5p4w / CVE-2026-126210, and raised the
    committed-lockfile guard floor. package.json and runtime dependencies are
    unchanged; this does not establish exposure in an installed plugin. (#182)

v2.7.2 — docs clarifications, dev-tree hono floor

Choose a tag to compare

@TARSDrakon TARSDrakon released this 13 Nov 22:07
435573d

[2.7.2] - 2026-11-13

Changed

  • Added a bounded-hold design note (#170); it recommends against a
    plugin-side wait and ships no runtime behavior change.
  • Clarified CLI help and README wording (#172): doctor --probe spends one
    live turn per account plus one for the pool, while --raw reveals unmasked
    login emails and session ids that should not be pasted into issues.
  • Documented the OpenClaw 2026.11.2 isolated agent-turn automation
    account-binding caveat (#173); no plugin-only workaround is established.

Repository

  • Raised the development-tree-only hono lockfile floor to 4.13.16 for an
    advisory patch (#176). The runtime dependency set is unchanged; this does
    not establish exposure in an installed plugin.

v2.7.1 — live state-lock holders

Choose a tag to compare

@CASE-Drakon CASE-Drakon released this 12 Nov 12:17
7e23bb4

Fixed

  • A shim paused beyond the state-lock lease no longer reclaims a lock held by a live process, preventing a resumed holder from overwriting newer health or history writes. Dead holders and malformed locks remain recoverable. (#151)
  • Linux state locks record the holder's process start time, so a reused PID cannot keep a dead holder's lock indefinitely. Exited zombie holders are recoverable. (#151)

See CHANGELOG.md for the full release notes.

v2.7.0 — manual compact, safer history and side questions

Choose a tag to compare

@CASE-Drakon CASE-Drakon released this 11 Nov 12:17
1e8d8f7

[2.7.0] - 2026-11-11

Added

  • Manual /compact on single-account backends (#159). A claw<N>/*
    backend on the verified launch now declares OpenClaw's public
    manualCompaction contract, a port of the bundled claude-cli backend's:
    the same /compact [instructions] prompt, passed as an argument, accepted
    only when the output carries a compact_boundary system event or
    compact_result: "success". OpenClaw runs the request as claude itself on
    that account's login; the shim is not involved, so multi-clawd records no
    served launch and writes none of its own state. From OpenClaw 2026.11.2 the
    request no longer carries the --permission-mode bypassPermissions that
    full exec mode adds, as on the bundled backend. Covered by a fixture
    claude driven by the host's launch rules; a live /compact against a
    running gateway has not been exercised.

Known limitations

  • Manual /compact stays refused on the pooled backend (#159). clawd/*
    still answers CLI backend "clawd" owns compaction but does not support manual compaction. OpenClaw runs a manual compaction outside the plugin's
    launch path and without naming the session, so the pool cannot make sure it
    lands on the account holding the newest copy of the conversation; after a
    rotation it could compact an older copy and replace the newer turns. The
    refusal starts nothing and changes nothing. Automatic compaction inside a
    turn is unaffected. A legacy-launch single-account backend is refused as
    well. See README, "Manual /compact compatibility".

Fixed

  • Account history could silently lose an event when two launches wrote at
    once.
    A shim that could not take the history.jsonl lock within its
    150 ms wait returned without recording, so explain --history and the
    spread strategy's served-launch count could be one short while every
    process exited 0. Such a writer now parks its event in a 0600
    history.jsonl.pending-* file, and a later writer that takes the lock folds
    parked events into the journal (up to 100 files per write, oldest first)
    and removes the files it folded. The journal replace carries a receipt of
    the files it folded, so a writer that stops before removing them, at any
    point, does not cause an event to be counted twice or brought back after
    the cap has trimmed it. Readers include parked events, with one exception:
    if the journal is replaced during all three of a reader's attempts, it returns
    the last journal alone, which can omit events that are still parked.
    Readers order what they return by event timestamp and stay inside the
    journal's 500-event / 64 KiB bound however many are parked. A journal that
    cannot be read is never replaced,
    and a pending file that cannot be read is not folded; a pending file is
    removed only by a writer that took the lock and found it still its own
    after its write, and only once a committed write names the file as folded:
    the writer that first named it had read it, and a later writer removes such
    a leftover without reading it again. A writer that finds its lock was taken
    over while it was paused backs off: before its write it parks its event
    instead, and after it, it leaves the removals to a later writer (this
    narrows the lock's lease window, tracked in #151; it does not close it: a
    pause between the check and the write, or between the check and a removal,
    is not caught). Pending files are not bounded on their own:
    they accumulate until a writer takes the lock. History still never fails a
    launch; the wait for the lock is still at most 150 ms, and the file work
    after it is synchronous. (#145)

  • History validation no longer coerces values. An event whose kind or
    reason is not exactly one of the allowed strings is rejected, and the
    timestamp is stored in canonical ISO form, so a value that merely prints
    as an allowed one, or a date string carrying free text, cannot reach
    history.jsonl. (#145)

  • Side questions on the pool kept Claude Code's native tools. The pool
    declares sideQuestionToolMode: "disabled", which core trusts (no empty
    tool cap is injected for side questions), but its argv resolver ignored the
    execution mode, so /btw and setup probes ran with native Bash/Edit/Write
    selectable — under bypassPermissions when tools.exec.mode is full.
    resolveExecutionArgs now ports the bundled side-question projection:
    session/resume/fork/effort/tool/MCP-config flags are dropped and
    --safe-mode --tools "" --disallowedTools mcp__* --strict-mcp-config --no-session-persistence --max-turns 1 --permission-mode default is
    appended, in the bundled order (host-owned denial, side-question
    projection, exact cap). Non-side-question runs are unchanged. Verified
    against the 2026.8.1 and 2026.11.1 sources and through the shim on a
    fixture; not observed live. Published v2.6.6 did not include this
    projection. (#142)

  • The history bound now keeps the newest events of the merged history. Readers
    and writers apply the 500-event / 64 KiB bound to journal, parked and new
    events merged in event-time order (ties keep journal, then park order,
    then the new event), not to the journal followed by parked events. A
    backlog of older parked events could otherwise hide a just-recorded launch
    from explain --history and the spread count, and draining it could
    permanently trim newer launches in favour of older parked ones. The
    journal file is now kept in event order. (#145)

Repository

  • Dev-tree dependency floors only. The development install resolves
    undici 8.12.2, @modelcontextprotocol/sdk 1.32.0 and fast-uri 3.1.9.
    The published package still has no dependencies and does not install
    those copies, so this is not a consumer-runtime CVE fix. minimatch stays
    10.2.6. #157 stays open. (#158)

v2.6.6 — host-owned exec parity, catalog mirror, shim stdin

Choose a tag to compare

@TARSDrakon TARSDrakon released this 10 Nov 11:28
9cbb218

[2.6.6] - 2026-11-10

Fixed

  • Fable 5.2 listed with source-derived limits. claude-fable-5-2 (released 9 Nov 2026) was not in the known-model table, so the pool exposed it with the conservative unknown-id default (200k context, 64k output) and OpenClaw compacted far too early. The known-spec table now carries 1,000,000 context and 128,000 output for that id. Those values are the table entries in source; they are not fixture-proven (the committed manifests do not contain this id) and were not checked by a live model call.
  • OpenClaw >= 2026.10.10 (incl. 2026.11.1): shell commands on the pool
    bypassed OpenClaw's exec approval policy.
    The bundled claude-cli backend
    declares hostOwnedTools: ["exec", "process"], so core routes a normal
    chat turn's shell commands through OpenClaw's own exec tool (approvals,
    allowlist) and the bundled argv resolver adds Bash to --disallowedTools.
    The pool declared no such set, so the same turn on clawd/* or claw<N>/*
    kept Claude Code's native Bash under the permission mode alone — a silent
    policy divergence from the bundled backend it mirrors. The pool now declares
    the same set and its resolveExecutionArgs ports the bundled step
    byte-for-byte: when the gateway marks exec host-owned for the run, every
    operator denial is kept in order and Bash is appended once; nothing else
    in the argv moves. Exact-cap runs and side questions without the field,
    and 2026.8.x gateways (which never pass it), are unchanged. A side
    question carrying host-owned exec also gains the native Bash denial;
    the separate tool-free side-question projection is tracked in #142. Verified
    against the 2026.10.10 and 2026.11.1 sources; not observed live. (#136)
  • OpenClaw >= 2026.9 (incl. 2026.10.10 and 2026.11.1): the bundled Claude
    catalog mirror silently used the static list.
    Those releases removed
    dist/extensions/anthropic/cli-catalog.js, the module the mirror imported,
    so loadBundledCatalogIds() returned null and the catalog rows, the
    "models" output and the new-model courtesy notice all ran on the built-in
    fallback, which lacked claude-haiku-5-5. The mirror now reads the bundled
    Anthropic extension manifest (openclaw.plugin.json, modelCatalog: the
    claude-cli list when non-empty, else the anthropic list) when the legacy
    builder is absent, and still prefers the builder where it ships (OpenClaw
    2026.8.x), so earlier hosts are unchanged. Nothing new is executed: the
    manifest is JSON, the Claude CLI is never spawned and no credential is
    read. The built-in fallback gains claude-haiku-5-5 and claude-mythos-5
    (and the haiku-5.5 alias) so it covers every id the bundled manifests
    declare; a test holds that superset against the 2026.8.1, 2026.10.10 and
    2026.11.1 manifests. (#134)
  • A Claude child that stops reading stdin no longer kills the shim.
    Forwarding the prompt into a CLI that had already closed its read end (a
    refusal, a failed --resume, a startup crash) raised EPIPE as an
    unhandled error event, so the shim exited before onChildClose could hop
    an armed turn to a sibling or hand the child's exit code downstream. Every
    spawned child, the first launch and a retry, now has a stdin error
    listener. EPIPE, ERR_STREAM_DESTROYED and ERR_STREAM_WRITE_AFTER_END
    are ordinary lifecycle and are not fatal; any other stdin error is written
    to stderr once and is still not fatal. Writes and ends into the current
    child's stdin skip a sink that is already destroyed or ended, so an armed
    retry can still replay the saved prompt. The unarmed path still pipes
    stdin; the listener makes a broken child pipe end the pump rather than the
    shim. The child's own close still owns the exit code. No routing,
    selection, history or lock change. Covered by a synthetic child that closes
    stdin before the prompt; not a live provider run, and not an exhaustive
    error-code matrix. (#147)

v2.6.5 — billing refusal becomes an account-level cooldown (#126)

Choose a tag to compare

@jarvis-drakon jarvis-drakon released this 07 Nov 20:09
5b378c7

Added

  • A billing refusal is now an account-level cooldown with the same in-turn hop
    a model limit gets (#126). When the Claude CLI reports its typed
    billing_error kind (the API's "credit balance is too low" refusal; public
    CLI builds 2.1.316–2.1.318), the shim records a billing record against
    that account only, retries the turn once on a healthy sibling at the child's
    natural close exactly as it does for a limit — never killing the running
    process, never forwarding a partial turn — and the pool skips the account
    for fifteen minutes (billing_refused: never chosen; as a last resort it
    ranks behind an exhausted member and ahead of a dead login). The cooldown
    expires on its own or ends early on a successful turn — a real non-error
    result, not merely a clean exit, so a refusal the CLI exits 0 on keeps the
    cooldown. explain says "BILLING REFUSED" with the CLI's reason, a
    billing:<pool>:<account> alert is re-derived from the live verdict on
    every heartbeat (it ends with the cooldown or on recovery even when no
    pooled launch happens in between), and explain --history records the
    retry with reason billing. Only the typed kind is matched: the same wording
    without it, a 402, and every other error are forwarded unchanged, as
    before. Measured and deliberately left alone: account_on_hold (emitted
    only behind a remote feature flag), a past-due subscription (reported under
    oauth_org_not_allowed, which the CLI shares with an organisation that
    disabled OAuth) and model_requires_usage_credits (model-scoped, a limit).

v2.6.4

Choose a tag to compare

@jarvis-drakon jarvis-drakon released this 06 Nov 16:07
aedc992

Fixed

  • Every CLI command now rejects a flag its --help does not list, the way
    explain already did (#121). One shared check in the CLI runs before
    anything is dispatched: it prints one line naming the flag plus the
    command's usage line, exits 1, and does nothing else — no config read, no
    sibling script spawned. setup --dryrun (a typo for --dry-run) used to
    run the wizard in write mode and rewrite openclaw.json with a backup
    beside it; chain --json, usage --bogus and doctor --bogus used to run
    normally and exit 0. Only exact spellings pass (--dry-run=yes is
    unknown), a flag's value such as --since 24h is not treated as a flag,
    and hermes keeps handling its own flags. doctor --help now lists
    --preflight, which the health check already accepted.
  • The unknown-flag check treats positional ids as operands, not flags (#109).
    account <enable|disable> <id> and login [<id>] accept any non-empty id,
    so an id such as -1 reaches the command exactly as it did before #121; for
    login, a leading-hyphen argument is rejected as an unknown flag only when
    it matches no configured account id (login --bogus stays rejected). The
    version aliases --version, -v and -V are checked as the version
    command, so --version --bogus is rejected like the other commands.
  • login <unknown-id> now names the id it could not find, with the config
    path read (login: no account named '<id>' in <config path>), before the
    existing list of configured accounts, and adds a did you mean '<id>'? hint
    for a case or punctuation near-miss such as claw-2 for claw2 (#122).
    The exit code and the bare login output are unchanged, and no
    authentication behaviour changes.

Repository

  • Added the 2026-11-04 class-radar research report under
    reports/multi-clawd-class-radar/ (#127). Repository-only: it is not part
    of the published package and changes no runtime behaviour.

v2.6.3

Choose a tag to compare

@TARSDrakon TARSDrakon released this 03 Nov 17:24
66d3803

Fixed: the CLI, setup, doctor, eviction watchdog and gateway plugin now honour OPENCLAW_CONFIG_PATH, OPENCLAW_STATE_DIR and OPENCLAW_HOME (#116).

See CHANGELOG.md for details.

v2.6.2

Choose a tag to compare

@CASE-Drakon CASE-Drakon released this 02 Nov 00:19
8dabeb1

Fixed

  • doctor no longer prints raw systemctl errors in the watchdog section. If the scheduler cannot be queried, it reports “watchdog state unknown” rather than incorrectly saying no watchdog was found. A confirmed-absent watchdog still warns. (#107)

See CHANGELOG.md for details.

v2.6.1

Choose a tag to compare

@TARSDrakon TARSDrakon released this 31 Oct 16:01
31aa75b

[2.6.1] - 2026-10-31

Fixed

  • An unknown top-level command (multi-clawd bogus) now says so on stderr
    (multi-clawd: unknown command 'bogus', with a pointer to --help) before
    the usage list, and exits 1 (#105). Top-level -h behaves like --help:
    usage on stdout, exit 0. -V is accepted as an alias of -v/--version.
  • A missing, unreadable or malformed OpenClaw config now produces one shared
    diagnostic from usage, chain, explain, direct, account, login
    and hermes sync|doctor (#106): the resolved path (no literal ~), what is
    wrong, and the next step — multi-clawd setup, or install OpenClaw first
    when ~/.openclaw does not exist — on stderr with exit 1. account no
    longer surfaces a raw ENOENT. Missing, permission-denied and malformed
    JSON are told apart; malformed JSON never echoes file content. Diagnosing
    reads only: nothing creates or repairs the file. A directory, symlink loop
    or file-as-parent at the path is named as "not a regular file" with the
    cause, from hermes too (its size-capped reader used to answer "unavailable
    or too large" first). hermes --config <path> points at the flag or the
    named path instead of setup, which writes only the default path.