Skip to content

v0.9.16

Choose a tag to compare

@github-actions github-actions released this 17 Nov 08:01
· 1588 commits to main since this release
e7d7c29

Full Changelog: v0.9.15...v0.9.16

Full Changelog: v0.9.15...v0.9.16

Known limitations

The known limitations of Meerkat 0.9.16 are in the release's own notes: section 0.9.16, Known limitations, of CHANGELOG.md at this tag (https://github.com/lukacf/meerkat/blob/v0.9.16/CHANGELOG.md). Read the Upgrade notes of the same section before you upgrade or roll back. Entries added after the release will be in CHANGELOG.md on main, not at the tag; each will also be printed below, with its date.

  • Added 2026-11-17, after the release. A [confinement] table in a project's .rkat/config.toml is not read, and rkat does not warn about it: an agent's shell is not confined by it. State confinement in the user document, ~/.rkat/config.toml, as [confinement.all] with mode = "workspace", so that it covers every launch kind; do not rely on a realm document as its only statement. The --confinement flags are for the one command that carries them. Whichever you use, check that command's stderr for the confinement lines: three, one for each launch kind, when a requirement applies, and none when none does; where none is printed, the command is not confined. On Linux a start that confines every launch kind while the realm state lies inside the directory the command is started in, which is the default with rkat, is refused and asks for --state-root <dir> outside the project. The section "Confinement for one project" of the CLI configuration page says what else changes under confinement. (That the project file is not read and that the user document and the flags are, by runs of the published 0.9.16 rkat on Linux x86_64 on a host without a confinement backend; reported by a user on 0.9.15 on macOS; macOS and 0.9.15 were not run by the maintainers.) A fix is planned.

  • Added 2026-11-17, after the release. TypeScript SDK (@rkat/sdk): when the rkat-rpc process the client started exits, or is killed, while the program is still using the client, a call that writes to it after it is gone and before Node has processed its exit ends the Node program with Error: write EPIPE reported as Unhandled 'error' event, exit code 1, instead of the call rejecting. That is the case when the process is gone (a few milliseconds after a kill) and the program has not returned to its event loop since, for example a synchronous stretch of 20 ms or more between the process's end and the next call. This holds for every request method, for starting a streaming session or turn, for subscribing to a session's, a mob's or a mob member's events, and for the reply to a tool call that the process asked the program to run. It is rare; a program that must not end this way installs a process.on("uncaughtException", ...) handler before connect() and keeps it while the client is connected: in the handler, ignore only this error (error.code === "EPIPE" and error.syscall === "write"); for any other error, print it and exit with a non-zero code; do not throw from the handler. The call then rejects with PROCESS_EXITED (18 of 18 starts on the published 0.9.16 on Linux with Node 22, with 20 or 50 ms of synchronous work between the kill and the call; without the handler the program ended in 17 of 18 such starts; not run on macOS or on Windows). Where the write was the reply to a tool call, the call that was waiting on the process rejects. While it is installed the handler also swallows a write EPIPE on the program's own output. This is so in every release of the TypeScript SDK since 0.3.0 (read from the source at the release tags). A fix is planned.

  • Added 2026-11-17, after the release. Peer requests: on a host whose realm is on disk, a session that has sent a peer request stops running when a response to that request arrives without a result. That is rkat, rkat-rpc, rkat-rest and rkat-mcp on any realm on disk, whatever the session format (a JSONL realm keeps the runtime's rows in SQLite too), and a Rust host on the disk composition or one that hands in the SQLite runtime store; the tell is a file sessions.sqlite3 (SQLite realm) or runtime.sqlite3 (JSONL realm) in the realm directory (read from the source). A response is what the agent tool send_response sends, or a host's or SDK caller's peer_response through the comms send; its result is optional (the documented comms/send call lists it as optional, and a call that leaves it out sends a response without a result: the Python and TypeScript SDKs' send, RPC, REST and the MCP tool meerkat_comms_send; read from the source, not run), and the instruction a responding agent is shown with each request gives completed without a result as its example. Messages (send_message, reply_to_peer) are not responses and are not affected, and the responses Meerkat itself sends always carry a result (read from the source). When the requesting session has handled such a response, the SQLite runtime store refuses, at every try, to record that run as finished; the session's loop logs ERROR meerkat_runtime::runtime_loop: failed to durably publish directed interaction terminal ... terminal completion finalization lost the exact durable CAS and WARN meerkat_runtime::runtime_loop: runtime-loop exit teardown did not complete; the registration is detached until an explicit resume completes its unregister (on this release that resume does not complete it; read from the source), and the session runs nothing further; an unregister of the session is refused. On rkat-rpc, runtime/health then answers status degraded with session_runtime_loop degraded, where both read ok before; the answer names no session (shown by two runs of the published 0.9.16). A response that carries a result does not stop the requester. If the host is then ended and started again, the session can be unable to run for good: after a stop caused by a progress response (accepted) its first drain, a stop and an unregister are refused with Recovery corruption: pending terminal owner <id> is absent from the live shell, and after a refused stop or unregister every later registration too; the same refusal follows any end of a host while a run that was started by, or consumed, a peer's progress response is unsettled. The session's committed history can still be read (session/read). Before any restart keep a copy of the realm directory together with the sessions' comms identity directory (with the default in-process comms), which is not inside it: ~/.rkat/session_comms_identity for rkat and rkat mob host; for rkat-rpc, rkat-rest and rkat-mcp the per-user state directory ($XDG_STATE_HOME/meerkat/session_comms_identity, else ~/.local/state/meerkat/session_comms_identity, on Linux; ~/Library/Application Support/meerkat/session_comms_identity on macOS; %LOCALAPPDATA%\meerkat\session_comms_identity on Windows); or, for any of the four, <root>/.rkat/session_comms_identity where --user-config-root names a root; and, for rkat mob host, its host identity directory (<state root>/host-identity unless --identity-dir or [mob_host].identity_dir names another) (shown by runs of the published 0.9.16 rkat and rkat-rpc on Linux; the rest read from the source). For a mob on Meta, see the entry of the same date on the Meta 0.9.16 release page (https://github.com/lukacf/meerkat/releases/tag/meta-v0.9.16), which says what an operator sees, what was run and what not to do. Affected: the stop, 0.9.5 through 0.9.16 (by the source at the release tags, and shown by runs on builds of the 0.9.5, 0.9.11 and 0.9.15 tags; a build of the 0.9.4 tag did not stop, 3 of 3); the refusal after a restart, 0.8.11 through 0.9.16 (by the source at the release tags). A host on a memory realm does not get the stop, and neither does a Rust host whose realm is kept in its own database through the host store interface, which compares as the in-memory store does (read from the source; the in-memory store also by a run). A Rust host with a runtime store of its own implementation was not read: it gets the stop only if that store judges a stored record by decoding and re-encoding it, as the SQLite runtime store did. (Shown by runs of the published Meta rpc_gateway 0.9.16, 0.9.15 and 0.9.14, by two runs of a mob of two members on the published rkat-rpc 0.9.16, and by runs on a build of the release commit.) Fixes are being prepared.

  • Live channels (0.9.15 and 0.9.16; earlier releases not read; added 2026-11-17): wait for the channel to report ready before sending input. Input sent before that is refused as not ready and is not held for later. A turn commit that follows with nothing staged is an invalid request and ends the channel; the client sees only the socket close, without the reason. Read from the source of both releases; the close was seen in runs of a live example whose first input went out before ready, on the published 0.9.15 and on a build of 0.9.16.

  • Added 2026-11-17, after the release. MCP server, two resumes of one session at the same time, one of which rebuilds the session: the other, plain resume can be answered with an error that carries no kind where the MCP page (since 0.9.15) promises Ok or the typed session_resume_required (-32003): either -32603 "Agent error: agent error: Internal error: Runtime not ready: destroyed" or -32005 "request cancelled". A host that retries only on the typed refusal does not retry. And whichever of the three answers comes, the plain resume's prompt may have been taken all the same: its turn can start on the session's old runtime and make its provider call, and the prompt with the model's answer is then in the session's history once the rebuilding resume has answered. In 750 passes of a test that records it (on 0.9.16 and on a candidate build of 0.9.17, the process held to two CPUs) the turn was kept, once and with its answer, in 9 of the 22 passes answered -32603, in all 9 answered -32005 and in 16 of 240 answered with the typed refusal; it was never kept twice, no session was left unusable, and the next resume answered Ok every time. So after any error on a resume that was sent beside another resume: wait until the other resume has answered, read the session's history, and send the prompt again only if it is not there. How often: the test for this case failed 11 of 50 runs on 0.9.16 held to two CPUs (7 with the first answer, 4 with the second), 1 of 20 runs of its whole suite on four CPUs, 0 of 50 alone and unpinned, and once in an ordinary CI round. In the test both resumes are sent while a first turn is still running and wait behind it; two resumes on an idle session were not run. The lines that retire the old runtime without holding the turn boundary are in every release since 0.8.0 (read at every release tag). Read from the source and not seen in a run: the recovery can also hold such a turn, and the rebuilding resume is then refused with a typed hold until it is resolved. Not traced: the same pattern at the RPC and REST doors. No fix is scheduled yet.

  • Structured output that is JSON null (0.8.11 through 0.9.16 by the source: the check that refuses the record and the field's form are at every release tag from 0.8.11, by a search of all tags by content; 0.8.0 to 0.8.10 hold an earlier check and were not read; the way a null output reaches the check was read at 0.9.16 only; run on 0.9.16 only; added 2026-11-17): when a run's output schema admits null at its root and the model answers null, on a session whose runtime state is kept in SQLite (a Meta gateway keeps it so too: read from the source, not run on a gateway), the run completes and the record of its input can no longer be read from the store (one record per such run; nothing is logged for it: a start does not read a finished record, read from the source). In runs on the 0.9.16 release commit that did no harm by itself: the session and its history read whole, a resume in a new process ran one more turn with the earlier turns, an export, a compaction and an archive answered, and a second session of the realm was untouched; an operator has nothing to do while every read answers. The harmful case: if the host process ends between that run's commit and its finalization (typically 20 to 40 ms in the author's runs, 1 to 260 ms seen; about 19 ms on the published rkat-rpc, where it is over about 10 ms before the answer reaches the client, so a host that ends after its client has the answer is not in it), the session is refused at the next start, and at every later one by the state the store is left in: the log holds failed to recover runtime driver during registration with pending terminal owner row read failed: Store read failed: terminal completion candidate digest mismatch, and a new prompt is refused: through rkat-rpc with that same text, while session/read still answers (at the runtime's own door, in the author's test of the runtime crate alone, a prompt was answered Runtime not ready: destroyed). No way past it is known on the released code. (Shown on the published rkat-rpc 0.9.16 with a real model: ten of ten hosts killed the moment the store showed that run's commit were refused in this way at the next start, and again at the second and third starts that were tried, and none of ten killed when the answer had arrived. Also shown by a run of the runtime with a SQLite store and two processes, the first ended at that point by a test executor. The same end after a run with a non-null result starts and runs.) Until fixed: use an output schema whose root does not admit null (read from the source, not run: an answer is checked against the schema, and only an answer that passed is recorded as the structured output); a root with no type admits it. Not affected: the in-memory store (read from the source). On a realm kept in the host's own database through the host store interface it needs no such moment: any finished run with a null structured output leaves a record that the store's typed import refuses, and the session is refused at its next use (shown by a run on the runtime's test host behind that interface, with a row that is not in the release's tree: host store input state: terminal completion receipt digest mismatch; not run on a host's real database). Read from the source only: where the open of the store itself loads that session's state (a session with recovery work pending), the realm's store does not open. Not run: root forms that admit null other than an object-or-null root. Not traced: whether anything besides a start refuses a session that holds such a record (by the source two other readers of a finished record exist: a read by the input's id or its idempotency key when the same input is offered again, and the sweep that settles a predecessor, which refuses a session that holds a record it cannot decode; which operations run them was not read). A fix is written and is planned for 0.9.17.

  • Added 2026-11-17, after the release. An input accepted for a session can be lost when the host is at its session limit: the Known limitation printed under 0.9.15 holds for 0.9.16 too, and for more than it names. What the limit counts is work in flight, not the members or sessions that exist: a session being created, a first turn that waits to start, and a turn that runs or has been admitted each hold one slot until that work ends; a member or a session that is built and idle holds none (read from the source). When every slot is held and an input is accepted for a session that is built and idle, the host tries three times to start it, each try fails with "Max sessions reached", and the input is abandoned. It stays abandoned when slots are free again; new work sent to the same session afterwards runs. (Shown by a test on this release's product code for a prompt that the host itself hands to such a session. That a mob member's message to another member, a Meta operator's or host's send and a schedule's delivery are lost in the same way is read from the source; the member's message was shown by the runs named under 0.9.15.) Who is told: the sending member is not. A program that embeds Meerkat and holds the input's completion receives it as abandoned with the error Max sessions reached. The input's status (meta/send_status on a Meta gateway, session/input_status on a Core host, asked with the session and the input's id) reads abandoned after three attempts and does not give the cause (read from the source); the WARN line printed under 0.9.15 was not looked for in this test. Not every send is accepted and then lost: a request that first has to build the session, a routed RPC turn, a REST continue and the MCP server's accept are refused with an answer before anything is accepted (the first shown by a test, the others read from the source). The limit is 16 by default on Meta's rpc_gateway (runtime_options.max_sessions), 64 on the stock meta_gateway, which does not take the option (a Rust host of Meta's builder sets its own), and 100,000 on a Core host; a host reaches it only when more work than that is in flight at one moment. In one of the maintainers' own systems, which runs 22 long-lived members on the default 16, the logs of 45 days hold no such loss. Raising the limit is the avoidance. Not run: whether the same message, sent again once slots are free, runs. Affected: 0.8.23 through 0.9.16 (0.9.16 by this test; the start and the earlier releases as printed under 0.9.15, not walked again). A fix is being designed; it is not in 0.9.17.

  • Added 2026-11-17, after the release. Mobs: a second store file for the same mob in the mob root can become the file the mob runs on, and what the mob then writes is lost if that file is removed later. rkat, rkat-mcp, rkat-rest and rkat-rpc when its realm paths are resolved (so, inferred, the Python and TypeScript SDKs that start it) restore their mobs from <the realm's root>/mobs; Meta's mob runtime, when its storage is durable, from the mobs directory of its state directory; a Rust host that builds its mob state with a persistent storage root, from the mobs directory of that root (read from the source; rkat-mob-mcp, a state built without a root and the browser runtime do not). They take for a mob's store every regular file directly in that mobs directory whose name begins with mob-- and whose extension is exactly db; nothing between is looked at, and the mob's id is read from the records in the file, not from its name. Taken: mob--x-copy.db, mob--x (copy).db, mob--x.bak.db. Not taken: mob--x.db.bak, mob--x.bak, mob--x.db.orig, mob--x.DB, copy-of-mob--x.db and any file in a subdirectory. Where two taken files hold the same mob id, the mob is served from whichever of the two the directory lists first, which can be the copy; the other is refused at its resume and kept as it was found. From then on what the mob writes into its own store (a member added, for one) goes into the file it is served from; if that file is removed later, whether it is the copy or the original, the next start serves the other one, stale, with no error, and those changes are gone. The members' session histories are not in that store and are not lost. The sign is two warning lines in the host's log at the first mob access after each start while both files are there, about a millisecond apart; neither names the file: WARN meerkat_comms::inproc: refusing inproc registration that would unbind a live route under this name with peer_name=<id>/__mob_supervisor__, then WARN meerkat_mob_mcp: quarantining a persisted mob store: the rest of the restore goes on mob_id=<id> class=resume_refused; the inventory's list of quarantined stores stays empty for it. To avoid it, keep a backup of a store file outside the mob root or under a name that is not taken: a copy kept as mob--<id>.db.bak in the mob root was left alone, byte-identical, with no warning (two runs of two starts each). Where the lines are in the log, find which of the two files the mob runs on before removing either: count the rows of mob_events in each (sqlite3 -readonly <file> "select count(*) from mob_events;", with the host running or stopped; the read leaves the .db file byte-identical and puts a -shm file and an empty -wal file beside it). The file with more rows is the one the mob runs on (4 against 3 in the runs, in both orders); equal counts tell nothing (both files answer the same until the mob has written something), and a modification time alone is not a safe sign (a fresh copy is newer than the original until the original is written again). Then stop the host and take the other file out of the mob root: run in both orders, the next start served the remaining file with its members, ran turns and logged no warning. Affected as described: 0.9.9 through 0.9.16 (shown by runs on a build of the 0.9.16 tag, 16 passes, on Linux ext4, none of them through one of the binaries named above; read at 0.9.9; the releases between by a search of all tags by content). Earlier releases differ, read from the source and not run: in 0.8.24 through 0.9.3 (read at both) a refused second file fails the whole restore, every mob access answers the error and nothing is destroyed; in 0.9.4 through 0.9.8 the second file is kept aside and the restore goes on, with another warning (not traced further); at 0.8.23, the one earlier release that was read, the mob resumed second could be destroyed, and the first could be the copy; releases before it were not read: on releases before 0.8.24 leave no copy in the mob root. Read from the source, not run: that the restore of other mobs goes on beside a refused file (the runs had one mob), and that a taken file which holds no events is removed by the restore. Not run: a second process on the same root; other platforms. Not read: which RPC or CLI calls answer from the inventory. No fix is in 0.9.17 (read from the source).

  • Added 2026-11-17, after the release. Reasoning effort and an agent's own model switch (0.9.15 and 0.9.16, by a search of every 0.9 tag by content): when an agent switches its session to another model with its built-in tool brain_swap while the session holds a reasoning effort level, the switch is carried out before the next turn without asking whether the new model takes that level. If it does not, the session is left on the new model with a level that model refuses, and the next turn and every later one is refused with invalid params until the level or the model is changed: JSON-RPC -32602, HTTP 400, CLI exit 2 with INVALID_PARAMS; the error's data has the kind reasoning_effort_refused, and its text reads, for a level the new model's source does not list, "reasoning effort '' is not supported by model '' on ; supported: ". Nothing is sent to a provider, and the level is not lowered by itself. No JSON-RPC, REST or MCP request stages such a switch: only the agent's tool does (a Rust host's own request_switch_turn has the same effect). A session has the tool when its host can carry out the switch, more than one model is reachable, the tool is enabled (it is by default) and no client override is set; rkat builds its sessions so (which other surfaces' sessions have it, and Meta, were not traced). To get the session running again, clear the level or set one the new model takes with the next request, or name another model: reasoning_effort on turn/start and mob/turn_start, REST POST /sessions/{id}/messages and MCP meerkat_resume (a level sets it, {"action":"clear"} removes it); rkat run --resume <SESSION> --no-reasoning-effort "<PROMPT>" or --reasoning-effort <LEVEL>. (Read from the source at the 0.9.16 tag, where a test pins the behaviour; not run. That a changed level or model ends the refusal is read from the source; the calls named for it are those of the documentation of that release and were not run for this case.) A fix is planned.

Fixed in 0.9.16 (entry added after the release)

  • Added 2026-11-17. Windows: when several tasks or processes open the same new realm for the first time at the same moment, none of them fails any more with "IO error: Access is denied. (os error 5)" (a Known limitation of 0.9.15). A realm that has no manifest yet is opened under a lock file, and a realm that may live under more than one state root is reserved for its first start by a marker file in each; the holder gives either back by removing the file, and Windows keeps a file name until its removal completes and refuses a create or a read of the name in that moment. The other openers took that refusal as an error. On Windows they now read it as held and wait inside the existing five-second deadline; a file that really cannot be created there ends in the existing lock timeout or contention error instead of "Access is denied". Nothing changes on other platforms. Affected: 0.9.15; earlier releases failed on Windows at every first use of a realm (see Fixed in 0.9.15). (By a run on a Windows runner, image windows-2025-vs2026 20261103.298.1, with this release's store code: the test that opens one new realm from many tasks at once failed with this error on the 0.9.15 tag in 13 of 25 runs by itself and in 12 of 25 runs of the whole realm module, and passed 25 of 25 on this release's code, where the whole realm module passed. The test for one realm under two state roots did not fail on the 0.9.15 tag in 25 runs, so the wait on the first-start marker is shown only by tests that take the platform as a parameter and run on every host.)