Skip to main content
This page has two parts: the steps for any upgrade, then one section per release, newest first. Read every release section between the version you run and the version you are moving to. The full list of changes for each release is in CHANGELOG.md.

How to upgrade

Meerkat is pre-1.0, and patch releases can carry declared breaking changes.
  • Keep everything on the same patch version. The SDK handshake accepts any rkat-rpc with the same major and minor version, so a mismatched patch connects without complaint. Upgrade rkat-rpc, meerkat-sdk, @rkat/sdk and @rkat/web together.
  • Bump Rust pins together. The meerkat* crates are versioned in lock step: move every =0.9.x pin at once.
  • Expect one-way migrations. A release can migrate durable state forward the first time it opens it, after which older binaries refuse it. Each release section below says whether it does.

Steps

  1. Stop every process that shares the state root: the CLI, rkat-rpc, rkat-rest, rkat-mcp and SDK applications.
  2. Back up the realm state root. Without a backup, a release that migrates durable state cannot be rolled back.
  3. Run rkat storage doctor (read-only) and keep its report.
  4. Upgrade the binaries and SDKs (table below).
  5. Start the new version. It migrates durable state on first open. To migrate offline instead, run rkat storage migrate as a dry run, then with --apply (see Storage Operations).
  6. Run rkat storage doctor again and compare.
  7. Once the rollback window has passed, remove migration backups with rkat storage prune.

Verify

  • rkat --version and rkat-rpc --version print the new version.
  • rkat doctor passes.
  • rkat storage doctor reports no new problems.
  • An SDK connect() succeeds.

Upgrading to 0.9.11

This section is for systems running 0.9.10. The full list of changes is in the CHANGELOG under ## [0.9.11].

Complete rosters retire unlisted legacy members

A complete declared apply (MobHandle::apply_declared_roster with DeclaredRoster::complete, Rust only) now also retires each member the roster does not list whose spawn row carries both legacy marks, the durable-identity continuity marker and the legacy agent_identity label naming its own identity, and that no host’s intent row names. A local member bound to a session is adopted as an entry, and the apply’s seal unlists the entry and retires the member with the cause Unlisted. A member placed on a member host, or bound to no session, is retired without becoming an entry, and its retirement records no cause. The answer names either as Retired in DeclaredRosterOutcome::unlisted, and a member whose retirement started already as NotAdopted. Such a member is one a host seated under its identity before identity entries existed, whose identity the roster dropped before the host first applied it; 0.9.10 left it serving as a worker. A member with one mark only, or one a host adopted, is left as it is, and a partial roster retires no member it does not list. The legacy label is also read in the one encoding of a name into a member id: it names a member whose id encodes the label’s name (team:alice, seated as mk--team_calice). A listed identity’s member labelled so is adopted where 0.9.10 refused its name NameHeldByWorker unless the member carried the durable-identity marker. Do: before the first complete apply on 0.9.11, make the roster list every identity whose member you keep: a member with both legacy marks that the roster does not list is retired by that apply.

Decision executors claim each kind

DecisionExecutorLoop claims the executor role of each decision kind it registers (DecisionStore::claim_executor_kind), where 0.9.10 claimed the whole store, so two runtimes on one store each execute their own kinds. A second loop of a kind no longer fails at start with DecisionError::ExecutorHeld: it starts, lists the kind in each pass’s DecisionExecutorPass::unclaimed, reports the kind’s decisions as DecisionPassOutcome::KindNotClaimed (the executor that holds the kind executes them), and claims the kind once the first executor of the kind ends. The SQLite store keeps one lock file per kind, approval_decisions.executor.<kind>.lock, beside approval_decisions.executor.lock, which every loop now holds shared. A 0.9.10 executor and a 0.9.11 executor never execute on one store at once. While a 0.9.10 executor runs, a 0.9.11 loop starts, executes nothing and lists every kind as unclaimed, and takes over when the 0.9.10 executor ends. While a 0.9.11 loop runs, a 0.9.10 executor is refused at start (ExecutorHeld). Do:
  • Forward claim_executor_kind in a DecisionStore wrapper. Its default refuses, so no DecisionExecutorLoop starts over a wrapper without it (DecisionError::Unavailable). claim_executor is deprecated; keep forwarding it while code that calls it remains.
  • Upgrade every process that executes decisions on one store together.
  • A host that took a second loop’s start refusal as the sign of another executor reads DecisionExecutorPass::unclaimed instead.
  • Before a rollback to 0.9.10 or 0.9.9, read the CHANGELOG’s upgrade note on durable decisions and a rollback: those releases read a decision decided in a login on 0.9.11 as torn and do not execute it.

A kept input’s max age counts from the stop

The max age of a graceful stop that keeps queued work (UnregisterQueuedInputs::Requeue { max_age }, or a mob Shutdown’s RequeueMaxAge; every default graceful shutdown uses 15 minutes) now counts from the stop that kept an input, not from the input’s admission. The next start runs a kept input, or resumes a run the stop suspended, unless more than max_age has passed since that stop; a later graceful stop that keeps the input again counts from its own time. 0.9.10 counted from the admission, so every run admitted more than 15 minutes before a graceful restart ended requeue_expired, however short the restart. Do: nothing, unless you relied on max_age to limit how old an input may be when it runs: a kept input now runs after a restart shorter than max_age, whenever it was admitted.

Upgrading to 0.9.10

This section is for systems running 0.9.9. The full list of changes is in the CHANGELOG under ## [0.9.10]. Meerkat 0.9.10 is Core 0.9.10, Meta 0.9.10 and Connect 0.9.10, released together. Meta Forge 0.3.1 ships with them and installs that set.

Before you upgrade

  • Pin =0.9.10. Move every meerkat* dependency to =0.9.10 at once. Meta 0.9.10 pins Core =0.9.10, so a host that embeds Meta moves Meta and Core to 0.9.10 together (Meta 0.9.9 pinned Core =0.9.9). Connect 0.9.10 is built on Core 0.9.10 and Meta 0.9.10.
  • Upgrade the SDKs with the server: meerkat-sdk, @rkat/sdk and @rkat/web for Core; meerkat-meta and @rkat/meta-sdk for Meta.
  • Rust 1.97.0 or newer, as for 0.9.9.
  • No migration step. 0.9.10 writes no durable state that 0.9.9 cannot read, apart from the configuration forms listed under Downgrading to 0.9.9.

Fixes that need no action

  • session/create or a first turn no longer hangs during a session teardown. When a session started to unregister during its first turn (the first turn of an immediate session/create, the first turn/start of a deferred session, or a cold session’s rebuild), the session’s runtime loop waited on itself and the request never answered. The usual trigger was an immediate session/create whose first agent build failed, for example with tool_grant_gate_refused. Such a request now completes, and the loop answers its own turn with the retryable runtime_teardown_in_progress error data. Affects rkat-rpc, the Python and TypeScript SDKs that drive it, rkat mob deploy --surface rpc and other hosts of meerkat_rpc::SessionRuntime, from 0.8.22 through 0.9.9.
  • Dormant members show their peer address in roster reads. A member seated dormant while its mob ran (a fresh dormant seat, or the next incarnation after a rotation or a same-session respawn) now reads with its peer id and transport key in MobHandle::get_member, roster, list_all_members, list_members and the mob_list_members tool, as a member restored dormant at a restart already did. The read wakes nothing. A member on network comms still has no address until its first wake. If your host took a missing peer id to mean “not woken yet”, read the member’s state instead.
  • Live voice delegations recover after a restart with dormant members. A host that composes the live delegation coordinator (openai-live) with lazily restored members (member_restore: on_demand, the default) retried its restart recovery every second, logging “ClientContext restart inventory capture remains pending”, for as long as any member stayed dormant, and a live channel opened on that host waited with no limit. Recovery now leaves dormant members dormant and recovers their delegations once, when the member wakes or before the first live channel opened on it. A live channel open waits at most 30 seconds for the start-up recovery and is then refused with an error that names it: treat that refusal as retryable once the mob restores.

Changes to check

  • Approval files are private on Unix. FileApprovalStore now creates every file it writes (the approvals.json store, its lock file, and its temporary and marker files) owner-only (0600), whatever the process umask. A store file an earlier release left readable by others becomes private on its next commit; an existing lock file is tightened in place, and a tightening the filesystem refuses is logged as a warning. Other platforms are unchanged. Do: if a process that runs as another user or group reads these files (a backup or monitoring agent, for example), run it as the store’s user or read approvals through the API.
  • Per-tool timeouts accept duration strings. [tools.tool_timeouts] entries take a duration string ("840s", "14m", "1h 2m"), as the documentation said, as well as the { secs, nanos } table. Before, a string failed the whole config load. Meerkat still writes the table form, also when config/patch or rkat config patch sets a string. Do: before a rollback to 0.9.9 or earlier, turn hand-written strings back into tables: those releases refuse the string form.
  • A refusal before any tool effect reads as not dispatched. A governed tool call refused at its own effect entry (ToolDispatchContext::enter_reviewed_effect) before any effect of the call entered now reaches the model with tool_invoked: false, as a refusal before the dispatcher already did; it read "unknown". Affects 0.9.4 through 0.9.9. Do (Rust): OperationRefused::dispatch() of such a refusal is NotDispatched, so comparing it with OperationRefused::new(kind) no longer matches: compare kind() and dispatch(). A tool that runs an effect of its own before its effect entry forwards OperationRefused::new(refusal.kind()).

Rebuilds after a completed owner change

Core’s governed operations no longer settle a stale read as their outcome when the owner change that made it stale had already completed: a governed tool dispatch’s prepared entry and its entry stagings, a model request, a compaction summary, a review’s currentness check after its verdict and the web_search helper’s model request take the wait after a stale read (OwnerChangeChurn::wait_after_stale_read). With no change in progress they pause 1 ms and rebuild from the owners, as one of their free rebuilds, within the same bounds (2 s and 3 free rebuilds per waiting state). The rebuilt decision is current, or its refusal is the owners’ current answer, typed as before. A model request that reads stale keeps its operation through these rebuilds, where it rebuilt once at once and, when that read was stale too, sent the controller feedback request, so a host’s operation refusal observer sees WaitedForOwnerChange where it saw Rebuilt and ControllerFeedback. A review whose currentness read was stale is superseded and reviewed once more, where it was retired as an authority change. Native admission (controller admission, a scoped original’s own mandate and its named contributors’ liveness, and the retained-resume checks that share them) never waits, because it runs inside the session’s ingress transaction. It now makes a read that met an owner change once more, in place, when that change has completed (LocalGrantAuthority::owner_change_in_progress names none), and answers ControllerReadinessUnavailable with PolicyChanged as before for a change still in progress or another one met by that read. Do: keep treating native admission’s PolicyChanged as retryable. Under back-to-back changes, wait outside your own locks with a bounded meerkat_core::authorization::OwnerChangeChurn::wait_after_stale_read, then resubmit once. A host or test that counted operation refusal observer dispositions for a model request that read stale, or matched an authority-change retirement for a review whose currentness read was stale, expects the new ones. See Survive owner changes in progress.

Wrappers and decorators

Forward this new method too. It has a default, so a wrapper without it compiles, but the default disables what it carries:
  • a DecisionStore wrapper: claim_executor. Its default refuses, so no DecisionExecutorLoop starts over the wrapper (DecisionError::Unavailable).

A poisoned host store scope

One poisoned host store scope no longer refuses store-wide reads realm-wide: each such read now depends only on the scope families it reads. A call that a poisoned scope or a poisoned realm refuses answers the typed RuntimeStoreError::ScopeRefused { scopes }, naming each refused scope with its poison cause, or RuntimeStoreError::RealmRefused { cause }, where it answered ReadFailed or WriteFailed with the refusal’s text. Behaviour changes for a poisoned scope:
  • A committed session read that the store refuses until its realm is reopened surfaces as SessionError::Store: its SessionError::code is SESSION_STORE_ERROR (was AGENT_ERROR).
  • meerkat_core::service::transport::jsonrpc_code answers -32006 for it (was -32000).
  • A wire error built from it (WireError::from) carries INTERNAL_ERROR, JSON-RPC -32603 (was AGENT_ERROR, -32013).
  • The HTTP status stays 500, and a session method’s JSON-RPC error over rkat-rpc (and the rkat exit status) is INTERNAL_ERROR either way.
  • MobHandle::wait_one, wait_all, wait_for_kickoff_complete and wait_for_members_kickoff_complete end with MobError::SessionError, carrying the store’s typed refusal, when a member they wait on is not final and the store refuses its session. They polled that member’s status until the caller gave up, a kickoff wait until its timeout.
  • RuntimeDeliveryInbox::pending_delivery_total and runtimes_with_pending_deliveries answer while only scopes of other families are poisoned, and refuse with RuntimeDeliveryError::Store(RuntimeStoreError::ScopeRefused { .. }) while a runtime scope is poisoned.
  • Meta: HostStoreReadiness::is_ready() no longer counts a scope-only poison; a poisoned realm still makes it not ready. HostStoreReadiness::poisoned_scopes, every poisoned scope with its cause, is new.
Do: a caller that matched ReadFailed or WriteFailed for these refusals matches the new variants; one that only formats the error keeps compiling. A Meta probe that must keep the earlier rule checks readiness.is_ready() && !readiness.scope_poisoned.

New

  • GitHub Copilot configured once. A [realm.<realm>.copilot] section names a Copilot account’s token source once (env or external_resolver) and gives the realm the account’s copilot_openai, copilot_anthropic and copilot_gemini routes, in place of nine explicit tables. A route of a Copilot account can run a model only the account lists (no catalog row or [models.<id>] entry needed); a model the account does not offer is refused before any request, and no other route is tried. Changes in behaviour:
    • a request that names a route of a Copilot account and a model of another provider family now runs on the account’s route of that family, where it failed with a provider-model mismatch;
    • sessions on the zero-config Copilot routes (global:copilot_openai, global:copilot_anthropic, global:copilot_gemini) carry the account (global:account:github_copilot) as their credential identity and run with provider-native tools off, as explicit Copilot routes always did.
    Do (Rust): RealmConfigSection gains copilot (set it to None in struct literals); ProviderBindingError gains CopilotAccountRouteConflict and CopilotAccountSourceUnsupported, and FactoryError gains AccountModel: add the match arms.
  • The storage doctor counts the rows a rollback to 0.9.8 cannot read. rkat storage doctor reports an Info finding identity-store-rows for each mob database that holds identity-store rows of schema version 2 or later (the total, and how many are archived, tombstones and unreadable), and its operator-instruction-envelope count also reads committed boundary heads. Rust hosts: MobStorage::read_identity_record_rows and MobStorage::identity_record_rows count them read-only with no running mob (IdentityRecordRows).

Meta 0.9.10

  • Pins Core =0.9.10. A host that embeds Meta moves Meta and Core to 0.9.10 together. The Core fixes above reach Meta gateways where they use the same paths: dormant member reads, governed refusals, per-tool timeouts and the restart recovery of live voice delegations (a Meta gateway composes it when openai_live, experimental_live or console_voice is registered).
  • Rollback census in the storage doctor. meta/storage/doctor takes the census the Meta 0.9.9 notes promised, read-only, as three Info findings with counts only: operator-instruction-envelope (sessions of runtime.sqlite at session envelope 5), operator-instruction-mob-events (mob events at schema 10 in event_log.sqlite3 and in each child mob journal under mobs/) and identity-store-rows (identity-store rows of schema version 2 and later). The doctor’s result shape is unchanged, so no SDK changes. meta_gateway identity-census --json adds identity_store_rows. Do: before a rollback to Meta 0.9.7 or earlier, run the doctor instead of the queries in the 0.9.9 notes.
  • Known limitation: meta/compact_member after a failed turn. When the forced maintenance turn ends in a definite failure (a provider error, a rate limit, or a request that compaction could not shrink), the temporary compaction threshold (1024 tokens by default) stays on the member, durably, and every later compact_member on that identity is refused as busy until the gateway restarts. Do: after a failed compact_member, call meta/respawn for the identity, then restart the gateway.
  • Meta Forge 0.3.1 installs the matched Meta 0.9.10, Connect 0.9.10 and meerkat-toolkit 0.9.10 set on Linux x86_64 and macOS arm64. It is the first Forge release from this repository (tag meta-installer-v0.3.1); Forge 0.3.0 and earlier stay in lukacf/meerkat-meta. Do: an application that Forge 0.3.0 prepared with its Connect gateway is prepared again at its next install step.

Downgrading to 0.9.9

0.9.9 reads what 0.9.10 writes, with these exceptions:
  • per-tool timeout strings in [tools.tool_timeouts]: 0.9.9 refuses the config file, so turn them into { secs, nanos } tables first;
  • a [realm.<realm>.copilot] section: 0.9.9 does not read it, so the routes it declares are missing there; write the explicit Copilot tables first;
  • a session that runs a model only its Copilot account lists: 0.9.9 knows a model only from the catalog or a [models.<id>] entry, so such a session does not build there until the model has an entry.
Approval files stay owner-only, which 0.9.9 reads as the same user. Going back further, to 0.9.8 or Meta 0.9.7, follows the 0.9.9 notes: run the 0.9.10 storage doctors first (Core and Meta), which now count what blocks it.

Upgrading to 0.9.9

This section is for systems running 0.9.8. The full list of changes is in the CHANGELOG under ## [0.9.9]. 0.9.9 has no migration step: it opens every 0.9.8 store as it is, and creates what it adds on first use (the runtime-tool-grants schema domain with the first scoped tool grant, approval_decisions.sqlite3 with the first durable decision). Some of what it writes, though, 0.9.8 cannot read: read Downgrading to 0.9.8 before you plan a rollback, and back up the state root as the steps above say.

Before you upgrade

  • Rust 1.97.0 or newer. Every crate of this release declares rust-version = "1.97.0" (0.9.8 declared 1.94.0), and Cargo refuses to build them, cargo install rkat included, with an older rustc.
  • Pin =0.9.9. Move every meerkat* dependency to =0.9.9 at once. Meta 0.9.9 pins Core =0.9.9, so a host that embeds Meta moves Meta and Core to 0.9.9 together (Meta 0.9.7 pinned Core =0.9.8).
  • Upgrade the SDKs with the server. A Python, TypeScript or Web SDK of 0.9.8 or earlier refuses the new tool_results_bounded_for_request event type, as it does any event type newer than its contract.
  • Know when a session stops reading on 0.9.8. 0.9.9 writes a session at session envelope 5, which 0.9.8 refuses, once the session holds an operator-instruction fact or a retired or moved instruction activation row. A session in which a later activation of a key superseded an earlier one gets there at its first compaction on 0.9.9, which retires the superseded body; a mob member that receives operator instructions gets there at its first run that applies them. Every other session stays at envelope 4 and still reads on 0.9.8. rkat storage doctor on 0.9.9 lists the sessions at envelope 5 (operator-instruction-envelope) and the mobs 0.9.8 cannot restore (operator-instruction-mob-events) of a Core realm; for a Meta state directory, see Downgrading to 0.9.8.

Breaking changes and what to do

Agent schedule tools answer pages of summaries

The schedule tools’ replies changed, for agents and for every generic call path that runs them: RPC schedule/call, REST POST /schedule/call, the MCP server’s meerkat_schedule_* tools, the Python SDK’s call_schedule_tool and the TypeScript SDK’s callScheduleTool. meerkat_schedule_list returns one page of summaries ({"schedules": [...], "page": {...}}, 50 by default, at most 200) where it returned every live schedule whole; every tool that returns one schedule returns the public shape of schedule/get, without machine_state; and meerkat_schedule_occurrences pages every list reply (at most 200 rows), with summaries by default. The host listings (schedule/list, schedule/get, GET /schedules, list_schedules, listSchedules) return every schedule whole, as before. A schedule’s superseded_ack_ids now lists only the occurrences its latest revise or delete superseded. Do: read one schedule whole with meerkat_schedule_get, or every schedule whole through the host listing; read the public fields where you read machine_state; follow page.next_cursor, and pass view: "full" for whole occurrences. Bulk readers use the typed host surfaces, not the agent tools: RPC schedule/list and schedule/occurrences, REST GET /schedules and GET /schedules/{id}/occurrences, the Python SDK’s list_schedules and list_schedule_occurrences, and the TypeScript SDK’s listSchedules and listScheduleOccurrences. See Agent-side schedule tools.

WorkGraph reads come newest first and report their cut

list and snapshot (the agent tools, workgraph/list and workgraph/snapshot, the REST routes and rkat workgraph) return the most recently updated items first, so a limit cut keeps the newest; they returned the least recently updated first. ready and snapshot no longer refuse a namespace with more than 1,000 live items, nor snapshot one with more than 1,000 edges touching a live item or 1,000 attention bindings: they read the whole namespace, and limit (default 100, at most 1,000) cuts the result. Every list, ready and snapshot result reports its cut (total_items, truncated) and names a next_cursor when it ended early; events results report truncated, next_after_seq and event_high_water_mark. WorkGraphStore::list_items of the built-in stores orders newest first as well. Do: a reader that needs every item follows next_cursor (--cursor on the CLI) instead of raising limit, and a reader that relied on the oldest-first order sorts the items itself. A result without the new fields comes from an older server and may still have been cut. In Rust, set the new fields where you build WorkGraphSnapshot, WorkGraphItemsResponse, WorkItemsResult, WorkGraphEventsResponse or WorkEventsResult literally; a filter literal that ends with ..Default::default() keeps compiling. See Filter Semantics.

Scoped tool grant gates need every host upgraded

A session built with grant_gated_tools (Rust SessionBuildOptions or AgentBuildConfig, or JSON-RPC session/create) records its gate in its tooling metadata, which a binary older than scoped tool grants does not read: such a binary resumes a gated session with its gated tools ungated. An rkat-rpc older than scoped tool grants also ignores grant_gated_tools and builds the session ungated. The Python and TypeScript SDKs refuse to send a gate to a server whose contract is older than 0.9.9. Do: upgrade every host that serves gated sessions before relying on a gate, and do not roll such a host back. A JSON-RPC client that is not one of the SDKs checks the server’s contract version (0.9.9 or later) before it sends a gate. See Scoped tool grants.

rkat run stops waiting for a stdin that stays silent

With the default --stdin auto, rkat run and rkat run --resume read stdin on a thread of their own: input that has not started within 2 s is skipped with one warning, and input that started is read to end of file as before. Before, a run whose stdin was not a terminal and stayed open without writing blocked forever. Do: a producer that pipes into rkat run but starts writing more than 2 s after launch passes --stdin blob, which still waits for end of file; a launcher that hands rkat run an open stdin it never writes can pass --stdin off to skip the wait. See Stdin modes and Unix pipes.

Member turns run on the host’s runtime

The turns of runtime-backed mob members, and of the sessions an RPC SessionRuntime serves, now run on the host’s runtime, as the turns of the sessions a host creates directly through a session service already did: a member’s on the runtime of the task that provisions it (the mob actor’s), an RPC session’s on the runtime the SessionRuntime was built on. Before, a member’s turns ran on Core’s process-wide meerkat-machine-cleanup runtime, and a deferred or rebuilt RPC session’s on meerkat-runtime-serving. The agent loop, model streaming, tool calls and whatever the tools spawn now use the host’s worker threads and their stack, and a member tool that blocks its thread holds one of the host’s workers. A host runtime that stops in the middle of a turn ends the turn as a crash would: its inputs stay non-terminal and the next start resumes them, and an RPC session runtime refuses an input that arrives while the session waits for that start (host_runtime_stopped). The two process-wide runtimes keep the cleanup and runtime-loop work, and their threads take 16 MiB again when RKAT_WORKER_STACK_BYTES is unset. Do: size the worker stacks of the runtime your mobs and RPC session runtimes run on for the tools you compose. A Tokio runtime built with default settings gives its workers 2 MiB (tokio::runtime::Builder::thread_stack_size sets it); Core’s host binaries, and an embedding that runs its main future through meerkat_runtime::host_stack::run_host, run their workers on 8 MiB (RKAT_WORKER_STACK_BYTES sets it). Build an RPC SessionRuntime inside the Tokio runtime its sessions should run on, and keep that runtime running while you serve them: built outside a Tokio runtime it records none, and the actor of a deferred or rebuilt session is then created on Core’s serving runtime, as before. A MobSessionService wrapper forwards runtime_turn_lost_its_host_runtime (see Wrappers and decorators). See Worker Stack Budget.

Compaction projects each request’s input

The compaction check now projects each request’s input tokens: the provider’s count for the last answered request plus an estimate of only the rows appended since, so a large tool result that would carry the next request past the threshold compacts first. A request the provider refused for not fitting the model’s context, or one that carried the run’s own tool results shortened (tool_results_bounded_for_request), makes the next run’s first check compact the whole transcript once. The anchor and the refusal ride the session’s compaction cadence in two optional fields that 0.9.8 ignores. Do: nothing for the default compactor. A custom Compactor that wants the projection or the refusal reads the new CompactionContext fields. To leave more room for what one boundary appends, set a lower explicit auto_compact_threshold (config, or a mob profile’s): the derived threshold is four-fifths of the model’s context window. See Capacity and cadence.

Text that models and tests read

  • A policy_denied tool error reads Tool call denied (<code>): <message> to the model, from the denial itself, for an application consequence policy and a scoped tool grant gate alike.
  • The compaction summary request names each image or video in a user row or tool result as [image (<media type>) omitted from this summary request] or [video (<media type>) omitted from this summary request], where it wrote [image: <media type>] and [video: <media type>], and the compaction prompt gains a paragraph saying that such a placeholder tells nothing about what the agent could see. The prompt still contains CONTEXT COMPACTION.
Do: update a client or test that matches either text.
  • Approval reads and decisions run host code. ApprovalService::get, list and decide_consent call the host’s authorization prepare and review_operation_context (and, at a decision or a spend, the route’s eligibility) on the caller’s thread, outside the approval owner’s locks, for a consent whose retained decision an owner publication change made stale. decide_consent can answer a retryable StoreUnavailable, with nothing recorded.
  • A pending or approved human consent is kept across unrelated authorization changes and past the end of its decision’s own validity window. It is withdrawn as ContextChanged when its binding, review tier or presented material changes, and as AuthorityChanged when its owners refuse the operation (an owner change gave context_changed before) or its approver was revoked or forbidden by policy since deciding.
  • The native work owner’s operation-time steps answer another actor’s hold of the work’s authorization publication writer as a refusal to rebuild (Refused(ReprepareRequired)), where they answered Unavailable, and Core’s governed dispatch steps answer AuthorizationRefused (ReprepareRequired) where they answered OperationAuthorizationUnavailable. A scoped original’s admission answers an owner change it meets as policy_changed, where it answered policy_unavailable.
Do: never hold a lock your authorization owners take while you read or decide approvals, and retry StoreUnavailable. Match the refusal to rebuild where you matched the unavailable answer for this contention, or take the steps through their waiting forms (run_if_current_within_after_owner_change, issue_child_if_current_within_after_owner_change, GovernedHelperChildIssuance::issue_or_recover_after_owner_change, GovernedHelperAdmissionFence::create_idempotent_after_owner_change). A consent route that answers eligibility only for logins within their own expiry keeps answering for a login through an approval decided in it, until that login is logged out, replaced or retired; a route that resolves eligibility with PublishedConsentEligibility::observe overrides HumanConsentRoute::eligibility_answer with PublishedConsentEligibility::observe_answer. See Human consent and Owner changes in progress.

Mob hosts (Rust)

  • A dormant seat on in-process comms takes the members’ comms identity root from the mob’s session service when the host declares none (see Dormant seats and comms keys). A service that reports NotKept, or a root it cannot resolve, has every seat refused unless the host declares a root.
  • MobHandle::rotate_member is durable from its start, and a restarted mob finishes it itself. It no longer takes over a retirement of the member that started without a rotation: the call is refused retryable (MobError::LifecycleOperationPending) until that retirement finishes or is re-driven (MobHandle::redrive_retirement).
  • A retire that races a spawn of the same identity is refused MobError::LifecycleOperationPending, retryable once the spawn settles.
  • A spawn, a spawn policy’s auto-spawn or a dormant seat of a local session member in a mob with no runtime (every profile TurnDriven, on a session service without a runtime adapter) is refused before anything of it exists, with MobError::MissingMemberCapability (outbound_comms_runtime), where it failed Internal after the member’s session was created.
Do: drop a comms identity root you passed only to match your factory’s; keep MobBuilder::with_network_member_comms for members on TCP or UDS. After a restart, read a member once before you re-issue an unanswered rotate_member: a higher generation means the rotation finished, a member MobHandle::list_members_including_retiring lists as Retiring means the mob finishes it, and the generation the call saw, not Retiring, means it never started. Retry LifecycleOperationPending. See Respawn rotation and scoped release.

Host store authors

A host store meets obligation 5 (fencing) at commit: it refuses a batch whose token is below one acquired before the batch’s commit point with FencedOut. A store that only hides such a batch at load answers the stale writer’s commit Ok, and is outside the host store contract. On a host store realm, a stopped store writer no longer fails turns: a dispatch, a round commit or a closing save waits for the writer’s re-acquire, and a store fence gap suspends the run until the fence is back. Do: make the fence check and the commit one transaction, as an append-only store must. See Obligations and Keeping A Realm In Your Own Database.

Rust API: new fields and variants

These public types gained fields or variants, so code that builds them literally or matches them exhaustively follows them:
  • SessionBuildOptions and AgentBuildConfig gain grant_gated_tools and mob_incarnation (Default and AgentBuildConfig::new fill both, which keeps every build unchanged); meerkat-rpc’s CreateSessionParams gains grant_gated_tools; SessionTooling gains grant_gated, SessionToolVisibilityState gains tool_grant_gated_names and tool_grant_open_names, and CoreApplyFailureCause gains reason.
  • AgentErrorReason gains ToolGrantGateRefused and BuildAgentError gains GrantGate; both enums are exhaustive. AgentBuildPolicyError gains ToolGrantGateWithoutAdjudication.
  • SystemMessage gains instruction_entry and retired_instruction_body (None keeps the previous behaviour), and WireSessionMessage::System the same two wire fields. SessionLlmRequestPolicy gains operator_instruction_lowering.
  • CompactionContext gains projected_input_tokens and last_context_refusal_boundary_index, SessionCompactionCadence gains last_context_refusal_boundary_index and last_answered_request, and meerkat_core::agent::compact::build_compaction_context takes the last answered request as its third parameter. None measures as before.
  • TranscriptEditError is #[non_exhaustive] and gains SystemRowPruneRefused.
  • ForkInstructionRefusalCause gains HeadBodyRetired (wire head_body_retired), which the generated Python, TypeScript and Web SDK refusal-cause unions list too.
  • OpenAiAuthMethod, AnthropicAuthMethod and GoogleAuthMethod gain GitHubCopilotToken (wire github_copilot_token).
  • MemberRespawnReceipt is no longer UnwindSafe or RefUnwindSafe.
  • MobEventKind gains OperatorInstructionCommitted and MemberInstructionTargetsRecorded, and its MemberRetirementStarted and MemberRetired gain fields that serde skips.
  • The mob, runtime, auth, session document and session persistence version machine types in meerkat-machine-kernels, meerkat-machine-schema, meerkat-mob, meerkat-runtime and meerkat-core gain inputs, signals, effects, state fields and transitions, and InputFieldDomainKind gains CiValues. Every new variant is appended after the released ones, so no implicit discriminant moves, except in two enums. In generated::mob::TransitionId (meerkat-machine-kernels), the 14 member custody transitions it gains (RecordMemberCustodyUnrestored* and ResolveMemberCustodyRestored*) sit directly before RetireMemberArchiveOnly, so the implicit discriminants of RetireMemberArchiveOnly and of every released variant after it move. In meerkat-runtime’s MeerkatMachineRuntimeInternalInput, ReplaceToolGrantGate and ApplyToolGrantOpenSet sit directly before AbandonDeferredSessionPromotion, so the implicit discriminants of AbandonDeferredSessionPromotion and of every released variant after it move. Neither enum has a repr, and neither serializes its discriminant (TransitionId (de)serializes by variant name), so only an integer cast observes this: code that casts these variants to integers, or stores such integers, must re-read them, since an integer from 0.9.8 can name another variant.
Do: add the fields and the arms. Wrap a MemberRespawnReceipt that a closure inside std::panic::catch_unwind captures in std::panic::AssertUnwindSafe where that is sound. The CHANGELOG’s ### Breaking names every change.

Wrappers and decorators

Implement the new required methods; they have no default, so a wrapper without them no longer compiles:
  • a SessionAgentBuilder or MobSessionService wrapper: session_comms_identity_root (required, no default). Forward it to the builder or service you wrap: a mob seats its dormant members under the root it reports. A builder or service that builds no comms of its own answers SessionCommsIdentityRoot::NotKept.
  • a SessionRuntimeLlmReconfigureService implementation: live_session_own_operator_instruction_entry_placement, which says where the operator-instruction entry rows a live session wrote itself stand.
Forward these new methods too. They have defaults, so a wrapper without them compiles, but the default disables what they carry:
  • a MobSessionService wrapper: record_member_instruction_target, release_member_instruction_target and read_member_instructions. Their defaults refuse durability_unavailable, so a mob’s operator instructions never reach the members behind the wrapper (each is reported blocked), a retiring member’s target is never released (the mob logs it), and the status read reports every member unreadable.
  • a SessionAgent wrapper: release_instruction_target_control, the live session’s half of that release. Its default refuses the same way.
  • a SessionAgentBuilder wrapper: instruction_lowering_for_identity. Its default (None) leaves the status read unable to report that a model cannot carry operator instructions (lowering_unavailable).
  • a MobSessionService wrapper: runtime_turn_lost_its_host_runtime, as you forward live_session_actor_registered. Its default answers false, so a member of a stopped host runtime served through the wrapper can have an input that reaches it after the stop recorded as a failed run.
  • a MobSessionService wrapper over a durable session owner: bind_seated_member_session. Its default refuses, so a dormant resume seat over a session that names no member binding is refused.
  • an AgentToolDispatcher wrapper: adjudicates_tool_grants and observes_bindings_only. Without the first, an agent with a scoped tool grant gate refuses to build over the wrapper (ToolGrantGateWithoutAdjudication).
  • an AuthLeaseHandle wrapper: publish_source_credential. Its default fails closed, so a github_copilot_token route that reads its token from the environment, a command or a resolver fails to resolve over the wrapper.
  • a RuntimeStore decorator: load_tool_grant, list_tool_grants, put_tool_grant_if_absent, compare_and_put_tool_grant, append_tool_grant_audit and read_tool_grant_audit. Their defaults answer Unsupported, so the grant service refuses every grant behind the decorator and a gated name stays closed.
  • a SessionCheckpointer wrapper: dispatch_fence_ready. Its default checks the fence without waiting, so a run behind the wrapper fails where it would wait for a stopped host store writer’s re-acquire.
  • a custom mob storage: MobIdentityStore::scan_created_identities_page. Its default reads none, which is right only for a storage that never holds a created identity entry.
  • a WorkGraphStore that serves pages: list_public_events and latest_event_seq, as the built-in stores do. The default list_public_events pages through list_events.
  • an HttpAuthorizer wrapper: redact_response_diagnostic. Its default changes nothing, so a credential a provider echoes back reaches the errors and logs of the requests signed through the wrapper.
  • an AuthLeaseHandle wrapper: mark_publication_refused too. Its default fails closed, so GitHub’s refusal of a github_copilot_token route’s token fails to be recorded over the wrapper, and the request fails without withdrawing the token.

Declared identity entries

0.9.9 adds the declared apply (MobHandle::apply_declared_roster, Rust only): a host declares its roster of identity entries, and Core seats, restamps, holds and retires them (see The declared apply). A host that never calls it and never spawns or seats with entry custody sees no change.
  • An entry outlives a retirement. A host’s retire of a declared identity that its roster still lists ends the identity’s member, and the entry stays, unseated and owed its seat: the next apply seats it again, on the session the retirement archived. To take a declared identity out of the roster (unlist it), apply a complete roster without it, or unlist it alone (MobHandle::unlist_declared_identity): its member retires and the entry ends, and listing it again brings it back. Removing an identity (MobHandle::remove_identity) is permanent: it tombstones the name.
  • Identities retired before the upgrade come back on a fresh session. The session an identity’s retirement archived is recorded by 0.9.9 only. An identity retired under 0.9.8 or earlier has no record, so when the host lists it again the apply seats it on a fresh session, and its earlier history stays on its archived session. Core reads no label and no journal row to find that session.
  • Apply the roster after every start. Between a start and the first apply after it, Core knows only the entries its journal records: the seated ones, and those whose member a retirement other than an unlisting ended. An entry no member ever held, a role hold and a held creation are not recorded, and the first apply declares them again. Until then, a member whose role the host moved while the process was down is not held, and a peer delivery can wake it under its previous role.
  • Consume a first-boot request only once it is carried out. The answer names the requests the apply carried out (DeclaredRosterOutcome::first_boot_requests_carried_out). Keep every other request for the next apply: a deferred, refused or failed answer did not carry it out.
  • One apply at a time. An apply called while another apply of the same mob runs is refused MobError::LifecycleOperationPending, retryable, and writes nothing.
Do: apply the host’s complete roster once after every start, before the host wakes or seats its identities; consume exactly the first-boot requests the answer names; unlist an identity to take it out of the roster (remove_identity is permanent: it tombstones the name).

Created identity entries

0.9.9 reads a second origin of identity entry, Created: an entry Core keeps as a row of its own in the identity store (schema version 2, beside the host-adopted identity intents of version 1). A start recovers every created entry row, and a name whose row is removed or that this build cannot read is reserved, never free (see Identity entries). The origin is provenance and the custody of the entry’s desired record only: a created entry’s member is built from its profile like any other member, with its own roster labels, tools, grants and wiring. A created entry is a store-owned identity, which Core’s own changes create, update, archive and remove (see below). A mob that holds no created entry row sees no change but the new read answers.
  • The entry reads have new answers. identity_entry answers IdentityEntryRead::Unreadable and Removed, the entries page lists unreadable names apart (IdentityEntryPage::unreadable), and the census counts created entries and removed and unreadable names; IdentityCensus::is_complete() is false while a name is unreadable. The member binding history answers MemberIdentityManagement::CreatedEntry for a created entry. The enums are #[non_exhaustive].
  • The declared apply notes created names and refuses reserved ones. A host roster that lists a created entry’s name is answered DeclaredEntryOutcome::Noted (DeclaredEntryNote::OwnedByStore) for that identity alone, a quiet steady state that changes and retires nothing; a removed or unreadable name is answered Refused (DeclaredEntryRefusal::NameTombstoned, NameUnreadable). Its seal never unlists a created entry.
  • A host store opens over a row it cannot read. A mob storage on the host store SPI reads its identity intents one entry at a time: an entry whose row this build cannot decode is kept as stored, read as unreadable for its identity alone and written back untouched on every rewrite of the group. Before, one such row failed the whole mob’s open. An entry it cannot attribute to an identity (an envelope or a key it cannot read) still fails the open.
  • A SQLite mob adopts beside a created row. An identity-first adoption reads the host-adopted intent rows alone, so a created entry’s row no longer refuses the adoption of another identity, and the intent list leaves created rows out.

Store-owned identity changes

0.9.9 adds Core’s own identity changes (Rust only): a create of store-owned identities, their update, archive and unarchive, the removal of an identity of either custody, and the host’s preparation of an identity before its first seat with its held constructions (see Store-owned identity changes and Host preparation and held constructions). A host that calls none of them sees no change.
  • A removal is for good, for either custody. MobHandle::remove_identity of a roster-owned identity writes its name’s tombstone to the identity store: the name is never an identity or a member again, and a roster that still lists it is answered DeclaredEntryRefusal::NameTombstoned for that identity. Drop the identity from the roster when you remove it. To take a roster-owned identity out and keep its name and session for later, unlist it (MobHandle::unlist_declared_identity, or a complete roster without it) and list it again.
  • An archived identity refuses deliveries. A delivery to an archived store-owned identity is refused MobError::IdentityArchived until its unarchive, and one to an identity awaiting its host’s preparation is refused retryable (MobError::MemberWakeRefused, HostPreparationPending).
  • A store-owned update names the spec it was decided against. StoreOwnedIdentityUpdate carries the identity’s expected spec digest, and a change decided against another spec is refused IdentityChangeRefusal::StaleSpec with the identity’s current digest and revision: read the record again (MobHandle::identity_record) and decide the change anew.
  • SpawnMemberAdmissionObservations gains two fields. The public fields binding_present and placement_present (a runtime binding or a placement on the request, which a grant with manage scope alone admits) are new, so a struct literal outside meerkat-mob must set them (false keeps the previous answer) or end with ..Default::default().
Do: drop a removed identity from the host’s roster; read the record again after a StaleSpec refusal before deciding the change anew.

WorkGraph evidence refs (Rust)

WorkEvidenceRef is #[non_exhaustive] and gains the field withdraws (see Withdrawing Evidence), so a struct literal outside meerkat-workgraph no longer compiles. Build a ref with WorkEvidenceRef::new(kind, id) and the builders with_label, with_summary and with_withdraws, or assign the public fields after new. The constructor sets no confirmation or execution provenance. A ref without withdrawals keeps its wire form, so stored items, keyed-create digests and attention continuation keys do not change.

Quarantined mob stores

A persisted mob store that does not restore no longer fails the restore of every mob of the realm: it is quarantined (kept exactly as found, with no actor), and the other mobs restore (see Quarantined mobs and degraded members). A call that addresses a quarantined mob fails with the new refusal kind mob_quarantined, and mob/list lists the mob under quarantined. A mob start likewise no longer stops for one member whose session read fails: that member is degraded (custody_deferred with store_unavailable or store_unreadable). The quarantine is not durable: every start derives it again, and 0.9.8 reads the same stores (a store that does not restore fails its whole restore again). Do: a client that branches on mob refusal kinds handles mob_quarantined (the SDKs read it with mob_quarantined and mobQuarantined). A host that must still fail its boot on such a store reads MobMcpState::quarantined_mobs (or mob/list’s quarantined) after the restore and refuses while it is not empty. Do (Rust): MobMcpState::unrestored_mobs is gone (read quarantined_mobs or mob_inventory), held_child_mobs returns a Result, and a MobListResult literal sets quarantined. A host store implementation answers HostStoreError::Corrupt for stored data that does not decode or fails its integrity check.

Downgrading to 0.9.8

Check for mobs that used operator instructions first. A mob that recorded an operator instruction journals rows at mob event schema 10. Core 0.9.8 and 0.9.7 refuse such a journal (“unsupported stored mob event schema_version=10; expected 9”), and their realm restore (the mob roots of the rkat CLI, RPC and MCP hosts) stops at the first such mob, so every mob of that realm fails to restore and every mob verb answers the error. A Meta gateway whose own mob recorded an operator instruction does not resume its mob. Before any downgrade of a realm to 0.9.8 or 0.9.7 (for a Meta state directory, see below):
  1. Run rkat storage doctor on 0.9.9 or later.
  2. For each mob listed under operator-instruction-mob-events, destroy the mob, or move its database (mobs/<name>.db in the realm’s state directory, the path the finding names) out of that directory.
  3. Only then start the older binary.
The doctor reads the mob databases on disk only. For a realm on a host store, look in the host’s store for mob events at schema 10. A member session that recorded its mob’s snapshot is written at session envelope 5, which 0.9.8 refuses session by session; the doctor lists those sessions under operator-instruction-envelope. A Meta gateway’s state directory is not a Core realm, and rkat storage doctor covers neither of the files that matter here: it does not read runtime.sqlite, where Meta keeps its sessions, or event_log.sqlite3, the gateway’s own mob journal. Its schema-from-the-future error for sessions.sqlite3 (ledger domain session-store at version 999999) is expected: that file is the retired stamp that meta_gateway storage-migrate-native leaves for Meta 0.9.3 to refuse. From Meta 0.9.10, Meta’s storage doctor (meta/storage/doctor) takes this census of a state directory, read-only, as Info findings that carry counts only:
  • operator-instruction-envelope: the sessions of runtime.sqlite at envelope 5;
  • operator-instruction-mob-events: the mob events at schema 10, in the gateway’s own journal and in each child mob’s journal under mobs/;
  • identity-store-rows: the identity-store rows of schema version 2 or later in the same mob stores (see below).
Each reports one finding for the state directory with its total, 0 included, and one for each file that counts above 0 or could not be counted, whose path names the file. On Meta 0.9.9, take the first two with two read-only queries (sqlite3 -readonly <file> "<query>") on a state directory in the default disk layout:
  • the sessions at envelope 5, on runtime.sqlite (meta/status_identity names the session_id of each identity):
  • the mob events at schema 10, on event_log.sqlite3 and on each child mob database under mobs/ that has a mob_events table:
Destroy, or move out of mobs/, each child mob database that counts rows. The gateway’s own journal is not in mobs/: a gateway whose own journal counts rows does not start its mob on Meta 0.9.7 or 0.9.6. On Meta 0.9.9, nothing an SDK host can call writes an identity-store row of schema version 2, so such a host has none to count; a Rust host counts its mob’s with MobHandle::identity_record_census(). Durable decisions live in their own file, approval_decisions.sqlite3, beside approvals.json under the store path; 0.9.9 creates it with the first hold and changes no other file for them. 0.9.8 never opens that file and reads approvals.json as before, so a downgrade keeps every approval and leaves the decisions untouched. Nothing serves the decisions under 0.9.8: none expires, executes or settles its notice. Back on 0.9.9, an open decision past its deadline expires at its first read, or when a deadline driver reads the due ones, and owes its notice. An approved decision is listed as owed and runs only before its deadline; past it, it expires the same way, unless its execution permit was outstanding at the downgrade: that decision waits for its owner to settle the permit (record the commit, or release or refuse the permit). 0.9.8 does not know a same-session successor’s rotation (a MobHandle::respawn_member, the declared apply’s role migration or runtime-mode restamp, and MobHandle::respawn of an identity entry’s member), which 0.9.9 records on the retirement’s start row. One that a crash interrupted after its start and before its end is, for 0.9.8, a plain retirement: 0.9.8 skips the record, restores the member under its old role and comms name, and its start re-drives the retirement to its end, which retires the member and archives the session the successor was to keep. No successor is seated, under the new role or the old one: the member ends whole, it is never split across two names, but it is gone. Before a downgrade, finish every pending same-session successor on 0.9.9. Its member is listed Retiring (MobHandle::list_members_including_retiring); an identity entry’s reads rotation_in_flight as Some(SameSession) (MobHandle::identity_entry, counted by IdentityCensus::rotation_in_flight). A start of the mob on 0.9.9 finishes it, as do respawn_member again under the profile it started with and MobHandle::redrive_retirement; one whose profile left the definition finishes once that profile is restored. 0.9.8 reads the rows the declared apply writes as plain member rows: its seats are member spawn rows, and its unlisted retirements plain retirements. 0.9.8 ignores the fields it does not know on them: an entry, the cause on a retirement’s start row, whether a retirement archived the member’s session on its end row, and the history notice on a seat’s row. A retirement the apply’s seal started and a crash interrupted finishes under 0.9.8 as a plain retirement. Entries the apply holds unseated, role holds (with the run-start holds they place) and held creations live in memory only, so 0.9.8 sees none of them. A created identity entry’s row is a row 0.9.8 does not know. On SQLite, 0.9.8 reads it as an identity intent row it cannot read, for that identity alone: its member binding history answers IntentUnreadable. Its identity-first adoption, though, decodes every intent row of the mob, so 0.9.7 and 0.9.8 refuse every new identity-first adoption in a mob that holds a created entry’s row, while their reads stay per identity. A worker reconcile of 0.9.8 that retires stale members can retire a created entry’s member; once the host runs 0.9.9 again, the start re-seats the entry on the session that retirement archived. A host store is different: 0.9.8 decodes a mob’s identity intents as a whole and does not open the mob’s storage while one of them is a created entry’s row. Before a downgrade, a mob on a host store must hold no created identity entry. A removal writes a row of the same schema for either custody (a removed roster-owned identity’s tombstone included), and so do an archive and a store-owned identity’s pending preparation, so the paragraph above applies to every mob that holds one. This release has no step that deletes these rows: a removal writes the name’s tombstone and an archive keeps its row, so a mob that holds any (IdentityRecordCensus::created_rows above zero) has no supported downgrade before the export and purge steps. MobHandle::identity_record_census() counts the rows and what a downgrade must settle first: the mob’s rows (created_rows, the archived ones, the tombstones and the unreadable ones), the identities awaiting their host’s preparation (preparations_open), the held constructions (constructions_held) and the seated store-owned identities whose member’s last seat row predates their row’s labels or profile (seats_stale: 0.9.8 rebuilds such a member from its seat row; a respawn with the row’s labels, MemberRespawn::with_labels, or a restamp brings the seat row up to date). Change receipts are rows of the identity store’s receipts table under keys 0.9.8 never asks for. From 0.9.10 the rows are also counted with no running mob, by the same rule, read-only. MobStorage::read_identity_record_rows counts a store file’s rows per mob (IdentityRecordRows: created_rows, archived, tombstones, unreadable), and MobStorage::identity_record_rows counts a storage’s mob, a host store’s included. rkat storage doctor reports them for each mob database that holds any, and Meta’s storage doctor for a Meta state directory, as the Info finding identity-store-rows with the counts only. 0.9.8 reads WorkGraph items whose evidence withdraws earlier evidence, but it ignores withdraws and drops the field when it rewrites such an item (any mutation of the item, including a host sweep such as a lease-expiry observation). The withdrawing refs stay as ordinary evidence, and the refs they withdrew read as current again. Two more effects reach only requests and items that carry withdrawals. 0.9.8 digests a keyed create without the field, so replaying a key whose request carried withdraws answers Conflict instead of Replayed. An item with withdrawals projects without the field, so its attention continuation key changes once and a continuation recorded under 0.9.9 does not match it. Keys, items and continuations without withdrawals are unaffected. A session whose document 0.9.9 writes at session envelope 5 does not downgrade: one that carries operator-instruction facts, one in which a compaction, or a system-row prune with retire_superseded_activation_bodies, retired a superseded instruction activation body (or a fork child that copied such a row), and one in which a rewrite moved an instruction activation row to another offset. 0.9.8 refuses such a session; rkat storage doctor lists them (Info finding operator-instruction-envelope) before you roll back, and on a Meta state directory Meta’s storage doctor counts them under the same code from Meta 0.9.10. Every other session stays at envelope 4 and reads on 0.9.8 unchanged. 0.9.8 does not read a session’s scoped tool grant gate, which 0.9.9 records in the session’s tooling metadata: 0.9.8 resumes a gated session with its gated tools ungated. Grant rows and their audit log live in the runtime-tool-grants schema domain, which 0.9.8 leaves alone. A turn that failed because its session’s build refused the gate records AgentErrorReason::ToolGrantGateRefused in its failed-turn completion row, and 0.9.8 decodes AgentErrorReason strictly, so it cannot read a runtime store whose completion row carries it. A 0.9.8 mob controller cannot decode a 0.9.9 member host’s head_body_retired refusal of a placed fork under reactivate_inherited: the create fails closed with an untyped internal error (“failed to decode command bridge reply”) and creates nothing on either side. A 0.9.8 temporary council that meets it ends participant_seating_failed and keeps a cleanup debt for that seat that nothing clears, not even an upgrade of that controller. Upgrade mob controllers together with their member hosts before relying on reactivate_inherited for placed forks of members whose instruction activations a compaction may have retired.

Upgrading to 0.9.8

This section is for systems running 0.9.7. The full list of changes is in the CHANGELOG under ## [0.9.8]. 0.9.8 is a patch release for hosts whose own pure observations of a work’s authorization publication meet other actors’ owner changes. It needs no storage migration: it changes no stored format, it opens every 0.9.7 store as it is, and 0.9.7 reads everything it writes. Back up the state root as the steps above say.

Breaking changes and what to do

An unpublished hold of the publication’s writer is a change in progress

The native work owner’s WorkAuthorization::owner_change_in_progress (LocalWorkAuthorization) also names a reservation of its publication’s writer that has not published: an owner change still being prepared (a grant issuance before its acknowledged append publishes), a held exclusion (LocalGrantAuthority::try_with_owner_changes_excluded) or another operation’s final entry. LocalAuthorizationPublication::change_in_progress still names published changes only. Every owner-change wait, Core’s own and a host’s, now lasts until such a holder releases the writer, within the same bounds (2 s, or the budget passed when less). The operation-time steps and the host-facing entries that never wait answer as before; Core’s own waits may now wait, within the same bounds, for such a holder and rebuild where they answered at once. Do: nothing, unless your code reads the native work owner’s owner_change_in_progress as “a published change is in progress”: read LocalAuthorizationPublication::change_in_progress for that.

Wait after a stale read

A host’s pure observation of a work’s own publication (one that reads owners and runs no effect) can stay stale after its one rebuild while another actor issues grants on the same publication: the read waits for the grant owner’s lock during the issuance’s append and ends stale only once the issuance published, often after it completed, so wait_for_settled_change answers None. The new OwnerChangeChurn::wait_after_stale_read waits for that case too; see Survive owner changes in progress. Do: where such a read answered stale as unavailable, or stopped when wait_for_settled_change answered None, take a fresh churn for the check (ToolDispatchContext::owner_change_churn in a tool body), wait with wait_after_stale_read after each stale read, repeat only the observation, and keep the answer typed as stale once the wait answers NotSettled. Hold nothing across the wait and never repeat an effect.

Downgrading to 0.9.7

Nothing stored changes, so 0.9.7 opens what 0.9.8 wrote. A downgrade brings back the 0.9.7 waits, which do not wait for an unpublished holder, and code that calls wait_after_stale_read does not build against 0.9.7.

Upgrading to 0.9.7

This section is for systems running 0.9.6. The full list of changes is in the CHANGELOG under ## [0.9.7]. 0.9.7 is a patch release for systems with many agents: a mob now restores its members on demand. It needs no storage migration: it opens every 0.9.6 store as it is, and 0.9.6 reads everything it writes, except a session that stored the opt-in 12-hour prompt-cache TTL (see Downgrading to 0.9.6). Back up the state root as the steps above say.

On-demand member restore

A mob’s start now materializes only the members that must run: members that hold durable work (an open or suspended run, queued inputs, a provisional tail, a pending delivery, a background operation completion not yet delivered), a member that owes a kickoff, a member wired to a placed member, a member on a network transport or without a durable endpoint, an orchestrator the resume notifies, and the members the host requires. Every other member stays dormant until its first delivery wakes it, while the caller waits. A dormant member is listed, addressable and reported like an idle live member, and reads never wake it. rkat-rpc, rkat-rest, rkat-mcp and the CLI start their mobs this way. A start, and the lift of a stopped mob, restore the members they must materialize at most MobBuilder::with_resume_restore_concurrency at a time (16 by default); a member a lift has not reached yet stays dormant, and a delivery to it wakes it at once. Do: nothing, to take the default. To keep the 0.9.6 start, build the mob with MobBuilder::with_member_restore_policy(MemberRestorePolicy::Eager) and pass the same policy to MobMcpState::with_member_restore_policy; the stock servers have no setting for it in this release. If a check after a start must find every broken member, use MemberRestorePolicy::OnDemandVerified: under the default, a member whose durable session cannot be resumed reads active until its first delivery fails. Expect a dormant member’s first delivery to take as long as the member’s build, its MCP servers included. A Rust host that feeds a member’s session through the runtime machine directly (MeerkatMachine::accept_input_with_completion and its variants, on the member’s session id) wakes the member first with MobHandle::ensure_member_live: members start dormant in 0.9.7, and the machine answers NotReady { state: Destroyed } for a session that is not resident in this process. The mob handle, REST, RPC, the MCP server, runtime delivery and the schedule host wake a member themselves. Members on TCP or UDS comms (MobBuilder::with_network_member_comms) are not lazy: every start and every lift of a stopped mob wakes them, whatever the policy, since a dormant member has no listener for peers that reach it over the network. On a host store, the first 0.9.7 start over a realm that 0.9.6 or an earlier release last wrote wakes every mob member that is not archived, once, and takes about as long as a 0.9.6 start: those releases’ heads cannot show that no background operation completion is still owed. Each member’s next commit records its state in the 0.9.7 form, and later starts wake only the members that hold work. Keep OnDemand there: OnDemandVerified loads each dormant member’s stored session rows at every start.

Breaking changes and what to do

Peer messages to members that are not materialized

comms/send gains the error code peer_wake_refused, with a typed refusal and retryable: a peer message to a seated member whose wake was refused or did not finish, and to a member of a stopped mob, fails with it. Nothing was delivered, so a retry cannot duplicate the message. peer_not_found_or_not_trusted now means only a peer that is not a member, or one the sender does not trust. CommsSendErrorData gains PeerWakeRefused, InprocSendError gains WakeRefused, and both SendError enums gain PeerWakeRefused. Do: upgrade the Python and TypeScript SDKs with the server, branch on peer_wake_refused and its retryable, and add the arm where you match CommsSendErrorData or InprocSendError exhaustively.

Machine types

The mob and runtime machine types in meerkat-machine-kernels, meerkat-machine-schema, meerkat-mob and meerkat-runtime gain the member residency inputs, signals, effects, state fields and transitions, and MeerkatSeamSignal gains RuntimeRegistrationReleased. The approval lifecycle machine (ApprovalLifecycleMachine, version 6) in meerkat-core, meerkat-machine-schema and meerkat-machine-kernels gains the inputs AdmitEnteredStep and FinishEnteredStep, their transitions, and the state fields review_entered_phase and review_entered_steps. Every new variant is appended after the released ones, so no existing implicit discriminant changes. Do: add the arms where you match these enums exhaustively, and set the new fields in struct literals.

The OpenAI 12-hour prompt-cache TTL

OpenAiPromptCacheTtl, WireOpenAiPromptCacheTtl and ProviderCacheTtl gain TwelveHours, and the SDKs read a fork’s cache-breakpoint lifetime they do not know as {"unknown": <value>}. Do: add the arms, handle the unknown form of ForkAuthoredCacheBreakpoint.ttl, and upgrade the SDKs before you select 12h for a session you fork.

Rebuilt members run on their current auth binding

A member rebuilt on its durable session (an explicit resume, a revival or reload, a Resume-mode spawn, a wake) now runs on the auth binding its current spec names. A Resume-mode spawn, a restore or a wake that would keep a live actor running another binding is refused with MobError::MemberAuthBindingConflict. Do: nothing, if each member’s spec names the binding it should run on. Expect the refusal where a live actor on another binding used to be reused.

Resuming a stopped mob no longer fails on its orchestrator’s notification

MobHandle::resume hands the resume notification turn of a turn-driven or placed orchestrator to the mob and answers without waiting for it, as MobBuilder::resume already did; a failed notification is recorded as an OrchestratorResumeNotificationFailed mob event, and the mob keeps running. Do: if you relied on the resume failing when that notification failed, watch for the event instead.

A governed helper step its review settles answers Denied

GovernedHelperAdmissionFence::from_dispatch and GovernedHelperChildIssuance::from_dispatch now answer Denied, not Unavailable, when the dispatch’s review settles the step: an R2 or R3 decision at the fence, a review already spent, an ended dispatch, or a refused review. The review owner’s own unavailability (contention, an unconfirmed store, unreadable review material, a failed reviewer) still answers Unavailable. Do: treat Denied as final for that dispatch and stop retrying it; a new call is reviewed anew. To run several governed helper steps under one review, enter the operation once (ToolDispatchContext::enter_governed_operation) and build the steps with GovernedHelperAdmissionFence::from_entered and GovernedHelperChildIssuance::from_entered.

rkat resume and meerkat_resume refuse mob members’ sessions

They refuse a session built as a mob member’s when no mob in their own process owns it (SESSION_UNSUPPORTED). Do: deliver to the member through its mob, which wakes it.

Wrappers and decorators

Forward the new provided methods; their defaults do less:
  • a RuntimeStore decorator: list_runtimes_with_recovery_work (without it, every start materializes every member);
  • a CommsRuntime wrapper: close_inproc_route and reopen_inproc_route;
  • a SessionAgentBuilder or MobSessionService wrapper: recorded_auth_binding;
  • a WorkAuthorization wrapper: run_entered_if_current_within (without it, every further step of an entered governed operation is refused).

Host store authors

A realm now asks list_heads for 2048 heads per call, not 256, when it opens and when a stopped writer acquires the fence again, so one answer of typical runtime heads is several MiB. Do: if your backend or transport caps an answer below that, answer the heads that fit and set HeadPage::next, as the SPI requires. A store that sets next only after a full page of limit heads ends the listing early, and the realm opens without the scopes it was not given.

Thread stacks of Core’s process-wide runtimes

RKAT_WORKER_STACK_BYTES now also sets the stack of the threads of meerkat-machine-cleanup and meerkat-runtime-serving, the two process-wide runtimes that run session and mob work. Without it they take 8 MiB, or RUST_MIN_STACK when that asks for more; with neither set nothing changes. Do: correct an invalid RKAT_WORKER_STACK_BYTES before you upgrade: it now fails every operation that needs these runtimes. Through 0.9.8 the turns of runtime-backed mob members run on the cleanup runtime’s two workers, so keep member tools non-blocking there. From 0.9.9 they run on the host’s runtime, the runtime of the task that provisions the member (see the 0.9.9 changelog). On a stock governed realm, an approved consent’s notice is now admitted as a resume of the run that parked it, and the consent moves into the resumed run. Before, the notice stayed pending forever. The resume is refused, and the notice records Failed, for work an earlier process admitted (the stock originals ledger is process memory), for a requester no longer admitted, and, on any governed composition, once the session no longer keeps the registration that ran the parked run or a later governed prompt has moved its destination; the parked consent is then withdrawn. After a stock session is closed and reopened in the same process, the notice stays owed until the session’s destination is next bound, and then fails. Do: expect Failed notices in those cases where notices used to stay pending, and treat them as final for that consent.

Downgrading to 0.9.6

Starting 0.9.6 on a state root that 0.9.7 used is safe: 0.9.6 restores every member at start again, and reads the journal rows and runtime heads 0.9.7 wrote. Three things do not carry back:
  • The 12-hour prompt-cache TTL. 0.9.6 does not know 12h: a session whose stored provider parameters carry it panics when 0.9.6 decodes its metadata, and a profile or mob definition that carries it fails its parse. Remove the setting on 0.9.7 before a downgrade.
  • A rotated member’s owed kickoff. 0.9.6 ignores the kickoff prompt 0.9.7 stores for a member rotated with MobHandle::rotate_member, so a rotated member whose kickoff has not run yet does not run it under 0.9.6.
  • A fresh seat that never woke. A member seated fresh by MobHandle::seat_dormant_members, or a rotation’s next incarnation, has no session until its first wake. 0.9.6 restores such a member as broken, with a missing session, and ignores the build inputs 0.9.7 stored for its first build. Wake those members on 0.9.7 before a downgrade, or re-create them after it.
A downgrade also brings back the 0.9.6 behaviour that 0.9.7 changes, the eager start included. To undo everything 0.9.7 wrote, restore the backup instead.

Upgrading to 0.9.6

This section is for systems running 0.9.5. The full list of changes is in the CHANGELOG under ## [0.9.6]. 0.9.6 is a fix release. It needs no storage migration: it opens every 0.9.5 store as it is, and outside two opt-in paths 0.9.5 reads everything it writes (see Downgrading to 0.9.5). Back up the state root as the steps above say; take WAL-complete copies of the SQLite files (with sqlite3 <db> ".backup <copy>", VACUUM INTO, or together with their -wal and -shm files).

Breaking changes and what to do

Outcome-unknown completions

CompletionOutcome gains OutcomeUnknown { run_id }. The runtime machine’s completion vocabulary gains RuntimeCompletionObservedOutcome::OutcomeUnknown, RuntimeCompletionTerminalObservation::OutcomeUnknown and RuntimeCompletionResultClass::OutcomeUnknown, and the generated TransitionId gains six ResolveRuntimeCompletionResultOutcomeUnknown* values, all appended last. Do: add the arms where you match these enums exhaustively. Read OutcomeUnknown as not completed, and never resubmit or redeliver the input because of it: its run may have acted on it. Only a terminal-receipt read meets it, and only after a host has called the new cold-predecessor settlement.

Pre-registered MCP OAuth clients

McpOAuthError gains ClientProfile { server_name, refusal }, PersistedAuthMode gains McpOauthClient, and HostAuthService::mcp_registered_redirect_uri is now async. Do: add the arms where you match McpOAuthError or PersistedAuthMode exhaustively, and add .await where you call mcp_registered_redirect_uri. dispatch_retained_consent_attempt keeps its signature. When a retained call’s plan names another dispatcher allocation (the session’s agent was rebuilt in the same process), it now resolves the call afresh: a fresh plan that is the same durable execution is spent once, and any other outcome withdraws the consent. Before, it refused and left the consent spendable. Do: if your host calls it directly, expect the call to run once or the consent to be withdrawn where it used to stay spendable.

Wrappers and decorators

Forward the new provided methods; their defaults refuse or do nothing:
  • a MobSessionService wrapper: settle_cold_predecessor_with_mob_lifecycle_authority_before and publish_settled_run_terminal_for_actor;
  • a CoreExecutorPublicationHandle: publish_settled_run_terminal;
  • a composed RetainedJobSource: admission_committed, to the source that confirmed the job;
  • a RuntimeStore decorator: import_whole_blob_session;
  • a CompactionCommitCoordinator wrapper: authorize_committed_projection.

Downgrading to 0.9.5

Starting 0.9.5 on a state root that 0.9.6 used is safe for ordinary use. Two opt-in paths do not carry back:
  • Cold-predecessor settlement. A session in which a settlement answered an input as outcome unknown cannot go back: 0.9.5 cannot decode those input rows or the interaction_failed events with reason kind outcome_unknown. A settlement that stopped half way leaves a lifecycle record that 0.9.5 refuses for that session; repeat the settlement on 0.9.6 until it returns Ok before a downgrade.
  • Pre-registered MCP OAuth clients. 0.9.5 ignores the client profile file, and a server that logged in through a profile needs a new login, which 0.9.5 makes only by dynamic registration. Remove each profile on 0.9.6 first to delete its stored client secret.
A downgrade also brings back the 0.9.5 defects that 0.9.6 fixes, and some of them act durably on the state 0.9.6 left: for example, a kept prompt whose run a crash cut is ended as RequeueExpired by a start past the stop’s max age. To undo everything 0.9.6 wrote, restore the backup instead.

Upgrading to 0.9.5

This section is for systems running 0.9.4. The full list of changes is in the CHANGELOG under ## [0.9.5].

Breaking changes and what to do

Scheduled delivery after a lost executor

meerkat-schedule’s occurrence lifecycle carries the admission evidence of an occurrence’s receipt history:
  • OccurrenceLifecycleInput::ClassifyDue and Claim gain the field admission_evidence: AdmissionEvidence, ResolveTargetProbe gains the field redelivery: Option<ExistingDelivery>, and the input gains the variants ResolveReclaimExhausted and ResolveUnprovenLateNotAdmitted;
  • OccurrenceLifecycleEffect gains DueReclaimExhausted, ReclaimedAfterAdmission and ReclaimedAfterUnprovenDispatch;
  • OccurrenceDueAction gains ReclaimExhausted and is now #[non_exhaustive];
  • Occurrence::classify_due_action takes the evidence as a second argument.
Do: where you build these inputs, pass AdmissionEvidence::None and redelivery: None (the 0.9.4 behaviour) or derive the evidence with AdmissionEvidence::from_receipt_stages and the redelivery from the claim’s effects, and add a wildcard arm where you match OccurrenceDueAction. The persisted occurrence is unchanged (schema version 9). A custom ScheduleTargetDelivery inherits the new defaulted deliver_existing_occurrence, which the driver calls to redeliver a reclaimed occurrence whose earlier attempt recorded its dispatch:
  • ExistingDelivery::Admitted (the target admitted an earlier attempt): the default delivers through deliver_occurrence, so it relies on that method’s durable deduplication of the delivery identity;
  • ExistingDelivery::UnprovenLate (only the dispatch start was recorded, and the occurrence is past its misfire deadline): the default answers ExistingDeliveryAnswer::NotAdmittedPastDeadline, and the occurrence ends misfired, as in 0.9.4.
Do: override deliver_existing_occurrence when your target can find an earlier admission of the delivery identity without admitting anything new: answer with that admission’s dispatch, and with NotAdmittedPastDeadline when an unproven late delivery was never admitted. A custom SessionServiceRuntimeExt inherits accept_existing_input_with_completion, whose default refuses with RuntimeDriverError::NoExistingAdmission. A custom SurfaceScheduleSessionHost inherits the new defaulted decides_existing_admission, which answers false: the shared adapter then never asks the host to redeliver an unproven late occurrence (it ends misfired), and redelivers an admitted one through the host’s ordinary deliver_prompt or deliver_event, relying on their stable-key deduplication. Do: return true only when the host’s deliver_prompt and deliver_event admit through accept_schedule_runtime_input_with_reconciliation on the task that calls them; a redelivery through such a host only replays the earlier input.

Typed mob destroy report

meerkat-contracts types the mob destroy report on the wire: MobDestroyResult.destroy_report is a WireMobDestroyReport instead of a serde_json::Value, and MobLifecycleResult.destroy_report an Option<WireMobDestroyReport> instead of an Option<serde_json::Value>. The JSON value each surface sends is unchanged. Inside destroy_report, the members of the JSON-RPC mob/destroy and mob/lifecycle results and of the @rkat/web Mob.lifecycle() result now follow the report’s field order, as the domain report serializes, instead of alphabetical order; the mob_destroy_incomplete data keeps its bytes. Do: compare those results as JSON values, not as bytes. In Rust, read destroy_report’s fields (errors, member_reload_refusals and the rest) instead of matching a Value, and convert a meerkat_mob::MobDestroyReport with WireMobDestroyReport::from(&report) where you build a result. In TypeScript, mobDestroy() returns destroyReport as a WireMobDestroyReport. In @rkat/web, Mob.lifecycle() rejects with a MeerkatError instead of the runtime’s JSON error string: read the report of a destroy that did not finish with mobDestroyIncompleteReport(error) (in Python, mob_destroy_incomplete_report(error)) rather than parsing the error text.

Queued inputs kept across a graceful stop

The generated runtime machine (meerkat-machine-kernels, generated::meerkat) and its DSL (meerkat-machine-schema) gain the stop classifier behind the new requeue option of a graceful stop:
  • the input struct BeginUnregisterSession gains queued_inputs and requeue_max_age_ms, BeginUnregisterUnservedAttachment gains queued_inputs, and State gains unregister_queued_inputs, unregister_requeue_max_age_ms and registration_live_input_seen (whether the registration served live work: an admission, a deduplicated resubmission or a recycle, after which a materialization’s rollback keeps nothing; a struct literal sets false);
  • the input, effect and transition enums gain ClassifyStopInputDisposition, StopInputDispositionClassified and its per-phase transitions, and InputAbandonReason gains RequeueExpired, each appended last;
  • meerkat-runtime’s MeerkatMachineRuntimeInternalInput gains ClassifyStopInputDisposition, appended last;
  • the wait-failure enums gain a kept input’s answer, appended last: RuntimeCompletionWaitFailureObservation::RequeuedAcrossStop, RuntimeCompletionWaitFailurePublicErrorClass::SessionNotRunning and RuntimeCompletionWaitFailurePublicReason::RequeuedAcrossStop (also in meerkat-runtime’s meerkat_machine::dsl), with the per-phase transitions ResolveRuntimeCompletionWaitFailureRequeuedAcrossStop*;
  • meerkat-rest’s ApiError gains SessionNotRunningWithData, appended last.
Do: where you build BeginUnregisterSession, BeginUnregisterUnservedAttachment or State literals, pass UnregisterQueuedInputsDisposition::Stop (and 0 for a max age), the 0.9.4 behaviour, and add the arms (or a wildcard) where you match these enums exhaustively.

The mob Shutdown default

  • meerkat-mob: a mob Shutdown that does not choose now keeps a durable member’s work. ShutdownOptions gains queued_inputs (with_queued_inputs) of the new #[non_exhaustive] enum QueuedInputsOnShutdown. Its default, RequeueDurable, which ShutdownOptions::default() and MobHandle::shutdown() take, resolves per member: Requeue(RequeueMaxAge::DEFAULT) for a member whose session commits every round (the mob’s session service keeps persistent sessions and its runtime has a persistence store), and Stop for any other member and for one already retiring. 0.9.4’s Shutdown cancelled every member’s running turn; a Shutdown that does not choose now keeps such a member’s running turn and eligible queued prompts for the next start (see Other behaviour changes below).
  • The generated mob machine (meerkat-machine-kernels, generated::mob) and its DSL (meerkat-machine-schema) decide an autonomous member’s case: the input ResolveAutonomousShutdownMemberAction gains keeps_durable_run, the string enum AutonomousShutdownMemberActionKind gains KeepForResume, and the transition ids gain the per-phase transitions ResolveAutonomousShutdownMemberActionKeepForResume*, each appended last.
Do: where a mob Shutdown must end members’ work as before, pass ShutdownOptions::default().with_queued_inputs(QueuedInputsOnShutdown::Stop), the 0.9.4 behaviour; do so before a downgrade. Where you build ResolveAutonomousShutdownMemberAction literals, pass keeps_durable_run: false, the 0.9.4 behaviour, and add the arms (or a wildcard) where you match these enums exhaustively.

Member custody at a mob start

  • meerkat-runtime: RuntimeBindingsError gains the variant Hosting(SessionId, SessionError) and is now #[non_exhaustive]. Binding preparation for a session another runtime owner hosts, or whose hosting claim cannot be taken, returns it with the typed SessionError::ServedElsewhere or SessionError::HostingUnavailable instead of a PrepareFailed message.
  • meerkat-contracts: MobMemberStatusResult gains the field custody_deferred: Option<WireMemberCustodyDeferral>. Its restore and cause vocabularies may grow: WireMemberCustodyRestore and WireMemberCustodyDeferralCause have an Unknown(String) variant for a value this version does not know, and the SDKs report such a value as {"unknown": value} instead of failing the read.
Do: add a wildcard arm to any exhaustive match on RuntimeBindingsError, set custody_deferred (None) where you build MobMemberStatusResult with a struct literal, and handle the Unknown case where you read a custody restore or cause.

Per-round commits and resumed runs

A run in a durable session now commits every tool round and continues after a crash (see Durable Runs). Integrations see:
  • meerkat-core: a SessionCheckpointer whose checkpoint_run returns Ok(None) (nothing made durable) for a round’s first commit now fails that tool round before any of its tools runs; 0.9.4 accepted Ok(None) at every checkpoint. The trait also gains rebases_runs (default false) and rebase_run. A checkpointer that answers false takes no round commit after a run’s first compaction on a store that accepts only strict continuations of the committed document; the run’s last round commit before the compaction stays its resume point.
  • meerkat-runtime: RuntimeStore gains commit_prepared_whole_blob_run_rebase (default Unsupported) and supports_whole_blob_run_rebase (default false). The session service re-bases a WholeBlob run only over a store that answers true; over any other store the run takes no round commit after its first compaction.
  • meerkat-core: AgentEvent gains RunResumed { session_id, run_id, round, resume_point }, wire type run_resumed, with the new non-exhaustive RunResumePointKind (tools_pending, awaiting_model). A resumed run publishes it in place of RunStarted. AgentEvent is non-exhaustive, so a Rust match already has a wildcard arm. An SDK of this version reports the event in its unknown-event form; an older SDK refuses it, as for any newer event.
  • meerkat-runtime, meerkat-core, meerkat-machine-schema, meerkat-machine-kernels: the durable-tail recovery and runtime machine vocabularies grow:
    • meerkat_runtime::recovery::DurableTailRecoveryOutcome gains Continue { candidate, run_id, receipt };
    • the machine enums gain DurableTailRecoveryClass::ContinuableCandidate, DurableTailRecoveryDisposition::ContinueRun, DurableTailRecoveryDisposition::OperatorRepairAndCommitInterrupted, RecoveredInputNormalizationReasonKind::ResumableRun and InputAbandonReason::ResumeRefused (with the meerkat_machine::dsl bridge copies and the catalog and kernel types);
    • the session document vocabulary gains RunIdCardinality::NoRunRows and the DurableTailRunCursor type, and SessionDocumentInput::ClassifyDurableTail and SessionDocumentMachineAuthority::classify_durable_tail take run_cursor and cursor_inputs_open;
    • MeerkatMachineState gains resumable_run_id; MeerkatMachineInput gains MarkRunResumable, ResumeRun, ReleaseResumableRun, SettleResumableRun, ReplayAppliedRunContributor, SuspendRunForStop and AuthorizeOperatorDurableTailRepair, and NormalizeRecoveredInputLifecycle gains bound_run_resumable; MeerkatMachineEffect gains ResumableRunMarked, ResumedRunAuthorized, ResumableRunReleased, ResumableRunSettled and RunSuspendedForStop;
    • MeerkatMachineInput::AuthorizeDurableTailRecovery gains ownership, of the new enum DurableRecoveryOwnership (NotProven, ExclusiveHost, ExclusiveWriter), with the bridge copies and the catalog and kernel types;
    • meerkat-runtime’s MeerkatMachineRuntimeInternalInput gains MarkRunResumable, ResumeRun, ReleaseResumableRun, SettleResumableRun, SuspendRunForStop, ReplayAppliedRunContributor and AuthorizeOperatorDurableTailRepair, appended last; the enum is exhaustive, so a match outside the crate needs the arms;
    • the generated transition enums gain the per-phase transitions of these inputs, among them the SuspendRunForStop arms, ClassifyDurableTailContinuable and ClassifyStopInputDispositionRetainResumable. Every new value of the string enums and of the generated kernel enums (InputKind, EffectKind, TransitionId) is appended last.
Do: return a receipt from checkpoint_run once the checkpoint is durable, and an error when it cannot be made durable. A custom checkpointer over a store that accepts only strict continuations implements rebases_runs and rebase_run to keep round commits after a compaction, and a RuntimeStore decorator forwards commit_prepared_whole_blob_run_rebase and supports_whole_blob_run_rebase. Handle run_resumed where you consume events. Where you build these machine inputs or state literals, pass DurableTailRunCursor::Absent and false to ClassifyDurableTail, None for resumable_run_id, false for bound_run_resumable (a tail without a run cursor, the 0.9.4 behaviour) and DurableRecoveryOwnership::NotProven for ownership (the 0.9.4 verdicts), and add the arms (or a wildcard) where you match the enums exhaustively.

Durable workers

meerkat-mob’s Profile gains durable: bool, and so do its wire forms meerkat_contracts::WireMobProfile, MobProfileInput and PortableProfile. Serde reads an omitted durable as false and writes it only when true, so stored and sent ordinary profiles keep their bytes, and the adaptive LayerDecision schema leaves it out. The wire forms refuse unknown fields, so a host older than 0.9.5 refuses a profile that sets durable. A spawn of a durable profile on a mob whose member sessions do not outlive the process (MobSessionService::keeps_durable_member_sessions) is refused with the new MobError::NonDurableService { member_id, profile } (wire code CAPABILITY_UNAVAILABLE, data kind mob_non_durable_service). A session-service wrapper should forward keeps_durable_member_sessions. Do: pass durable: false where you build these with struct literals, and set durable = true only on mobs over persistent sessions, once every host that reads the profile runs 0.9.5. See Mobs: durable workers.

Identity adoption needs a persistent runtime

adopt_member_identity_declaration (MobHandle, mob/adopt_member_identity_declaration and REST POST /mob/{id}/members/{agent_identity}/identity-adoption) refuses a mob whose runtime has no runtime store (an in-memory store counts) with the new MobError::IdentityAdoptionRequiresPersistentRuntime { member_id } (wire code CAPABILITY_UNAVAILABLE, -32020 over JSON-RPC and 501 over REST, data kind mob_identity_adoption_requires_persistent_runtime), before anything is recorded. Before 0.9.5 such an adoption was accepted, and reconciliation then retired the member and could not resume it: the identity stayed RepairBlocked. Every mob on an EphemeralSessionService runs on such a runtime. Do: adopt members only on mobs over the persistent session service, whatever its stores (a memory realm works), and handle the new refusal where you call adoption. See Mobs: cold resume and cancellation.

Dedupe key on pending callback calls

A pending callback call carries the call’s dedupe key (see Other behaviour changes below):
  • meerkat-core: PendingCallbackToolCall gains dedupe_key: Option<ToolCallDedupeKey>, the struct variant AgentError::CallbackPending gains dedupe_key: Option<Box<ToolCallDedupeKey>>, and CoreApplyTerminal::CallbackPending gains dedupe_key: Option<ToolCallDedupeKey>;
  • meerkat-runtime: CompletionOutcome::CallbackPending gains dedupe_key: Option<ToolCallDedupeKey>;
  • meerkat-mob: the struct variants MobError::CallbackPending and BoundedTurnFailure::CallbackPending gain dedupe_key: Option<Box<ToolCallDedupeKey>>;
  • meerkat-contracts: WirePendingToolCall gains dedupe_key: Option<ToolCallDedupeKey>, and WireCallbackPending::single takes the key as its eighth argument.
On the wire the field is optional and omitted when absent, so readers that ignore unknown fields are unaffected. A pending callback call stored with a dedupe key cannot be finalized after a downgrade to a runtime without the field, such as 0.9.4: its stored digest no longer verifies there. A call stored without a key keeps its bytes (see Downgrading to 0.9.4). Do: name the field (dedupe_key: None for a call outside an agent-loop round) where you build these with struct literals, add it or .. to patterns that list every field, and pass the key to WireCallbackPending::single.

Orphaned drains in a quiescent close

meerkat-runtime: RuntimeSessionQuiescentClose is now #[non_exhaustive] and gains ClosedOrphanedDrain. MeerkatMachine::unregister_session_registration_until_terminal_if_quiescent returns it after it completes an orphaned drain or a pending finalization, which may abandon held inputs with reason Stopped. Closed now means only a genuinely quiescent close. Do: handle ClosedOrphanedDrain and add a wildcard arm where you match RuntimeSessionQuiescentClose. Where you need a close that interrupted nothing, do not treat ClosedOrphanedDrain as Closed.

WebRTC to mob members

meerkat-rpc: the session-scoped live/open refuses a mob member’s session with INVALID_PARAMS (-32602) and data kind mob_member_session_addressed_by_id. A member’s channel, WebRTC included, opens through its mob with mob/member_live_open: the mob checks the member first, and the member’s own live host serves the transport or refuses it typed. With transport: "webrtc", answer the offer with live/webrtc/answer on the same server. For a gpt-live-1 voice channel, pass the same execution_identity as on live/open (the member must be local to the server). Do: open a member’s live channel, WebSocket or WebRTC, with mob/member_live_open instead of live/open by the member’s session id.

Live open advisories

  • meerkat-contracts: LiveOpenResult gains the field advisories: Vec<WireLiveOpenAdvisory>, left out of the wire when empty. It lists what a successful live/open went ahead without: today staged_prompt_refused, when a run-start hook refused the session’s staged create-time prompt (the prompt stays staged for the first text turn). The vocabulary may grow: WireLiveOpenAdvisory has an Unknown(String) variant for a value this version does not know, and the Python and TypeScript SDKs keep such a value as the string the server sent instead of failing the open.
Do: set advisories: Vec::new() where you build LiveOpenResult with a struct literal, and treat an advisory you do not know as informational.

Other behaviour changes

  • An earlier incarnation’s open run no longer blocks its session’s next owner: when the session’s exclusive write authority is proven by the store (the session’s cross-process hosting claim on the built-in SQLite realm, or the realm fence a host store’s open took after waiting out the superseded lease), the run a dead or fenced-out incarnation left open no longer refuses the recovery. A resume, an actor’s materialization or a cold attach continues the run as a restart does, so a host deploy killed in the middle of its suspend resumes every run. A store-only append_system_context on a session no runtime of yours hosts first commits that run as interrupted (an ambiguous tail fails the write with SessionError::DurableTailHeldForRecovery), then lands; it takes the session’s hosting claim before it reads anything, so a session another runtime owner hosts refuses it at once with ServedElsewhere and keeps its run. Without that proof (or while your own runtime has the session registered) the earlier rules hold: an earlier incarnation’s row still refuses the recovery, and the write fails with SessionError::DurableTailRecoveryRefused, or with SessionError::DurableTailHeldForRecovery when the run is one its next host resumes. A host store cannot tell a dead holder from a live one it fenced out: a superseded holder may still be finishing a tool call it dispatched before its fence window closed, which the interrupted commit answers as outcome unknown.
  • A Broken member no longer stops a mob start: when a member whose restore already failed at a start cannot have its custody restored because another runtime owner hosts its session, its hosting claim cannot be taken, or its durable tail could not be proven, the start defers that restore and the mob runs. The member stays Broken, its status shows custody_deferred, and a respawn, retire or destroy of it answers MobError::MemberCustodyDeferred until the restore succeeds. 0.9.4 stopped the whole mob. See Mobs.
  • Crash recovery of scheduled deliveries: a delivery whose executor died after an earlier attempt recorded its dispatch is reclaimed, also past its misfire deadline (up to five attempts), and redelivered without a fresh admission: it ends with the admitted input’s outcome, or misfired when only the dispatch start was recorded and the target never admitted it. A reclaim with no recorded dispatch still follows the misfire policy, and a target still busy with the admitted input does not end the redelivery under skip_if_running. This lifts the 0.9.4 known limitation (see “Upgrading to 0.9.4” below): a catch_up_within window longer than the lease is no longer needed to keep that recovery. A host runnable keeps no admission record and runs again, so for host runnables the guarantee is at-least-once: deduplicate on delivery_idempotency_key. See Executor Lease And Crash Recovery.
  • Queued prompts kept across a graceful stop: a mob Shutdown with ShutdownOptions::with_queued_inputs(QueuedInputsOnShutdown::Requeue(max_age)) (or an unregister with UnregisterQueuedInputs::Requeue { max_age }) keeps each input still queued behind the running turn that is a durable prompt in the queue lane, neither directed nor bound to an objective (so never a member’s kickoff). Its waiter ends with RequeuedAcrossStop, and the next start runs it once, before new work. JSON-RPC answers such a wait -32003 and REST 409 SESSION_NOT_RUNNING, both with kind requeued_across_stop. A kept input older than max_age when a start finds it still queued ends as RequeueExpired without running; every start that finds it queued checks again. A graceful shutdown that does not choose now uses this option, with a 15 minute max age, for sessions with per-round commits: rkat-rpc’s and the REST server’s own shutdowns, and a mob Shutdown without with_queued_inputs (the new default QueuedInputsOnShutdown::RequeueDurable). Choose Stop explicitly to keep the 0.9.4 behaviour. A kept input’s row is written as stored input state version 8 until its run starts, and an unregister in progress with the requeue disposition as machine lifecycle record version 6; every other row and record keeps version 7 and version 5. 0.9.4 refuses a version 8 row with a stop mark, and a version 6 record, with its typed unsupported-version error, and fails to read a version 8 row that ended RequeueExpired, whose abandon reason it does not know. While a kept input is still queued, a store written by a requeue Shutdown does not open in 0.9.4, whose recovery reads every non-terminal row. Once every kept input has run or expired, the store opens in 0.9.4, but each read that decodes an expired input’s row, or the row of a kept queued prompt that 0.9.5 itself ran (0.9.5 left the stop’s mark on it), still fails: the input’s status, a same-key lookup that finds it, and a batch compare-and-swap over it. See Mobs.
  • Runs continue after a crash: a run in a durable session (sqlite, jsonl or host-store realm) commits every tool round twice and, after a crash, kill or restart, continues under the same run id from its last committed round when its session is opened again, announced by run_resumed. 0.9.4 ran the input again or closed the run as interrupted. There is no switch. A call dispatched again carries the same dedupe key, and a call whose effect may already have happened gets an outcome_uncertain tool error instead. See Durable Runs.
  • Write volume on WholeBlob realms: a jsonl or host-store realm writes the whole session document at each round commit, twice per tool round; a sqlite realm writes only the round’s rows. Long, tool-heavy runs on jsonl write much more than in 0.9.4. See Storage Operations.
  • Dedupe key for tools outside the process: MCP tools/call requests carry the call’s dedupe key in _meta under io.meerkat/tool_call_dedupe_key, and callback requests and pending callback calls carry it as dedupe_key; the SDKs pass it to callback handlers. A host McpCallContextProvider whose metadata uses that name is refused with McpCallContextError::Denied. See Durable Runs: the dedupe key.
  • A requeue stop keeps a durable run in flight: an unregister with UnregisterQueuedInputs::Requeue, or a mob Shutdown with QueuedInputsOnShutdown::Requeue, now suspends the run in flight of a session with per-round commits instead of cancelling it: the run continues from its last committed round at the next start, or, past the max age, its inputs end as RequeueExpired and the run is closed as interrupted with its committed rounds kept. A mob Shutdown keeps an autonomous member’s running turn the same way, with its kickoff open, unless the member is retiring or host-placed. Because a graceful shutdown that does not choose uses Requeue for such sessions, a deploy no longer cancels their runs in flight. A REST request that waits on a run the shutdown suspends is answered 409 SESSION_NOT_RUNNING with kind requeued_across_stop. See Durable Runs: graceful stops and deploys.
  • An operator path for a held durable tail: a session held as SESSION_DURABLE_TAIL_HELD_FOR_RECOVERY with ambiguous evidence, such as a transcript that ends in a tool call without its result, can be resolved with rkat session resolve-held-tail <id> [--apply] [--runtime-store <FILE>] [--json] or meerkat_runtime::recovery::resolve_held_durable_tail. The dry run is the default; applied, it commits the tail as interrupted with every row kept and each call without a result answered outcome_uncertain, once every host of the session is stopped. 0.9.4 had no path out of such a hold. The same command resolves an interrupted tail held beside inputs another run left staged or queued (a shape only pre-release builds of 0.9.5, or a store fault, leave): it requeues those inputs. See Storage Operations.
  • Host stores: a host can keep a realm’s durable state in its own database through the host store SPI (meerkat_core::host_store), checked by the host store chapter of meerkat-store-conformance. See the Host Store SPI reference.

Upgrade checklist

  1. Pass the admission evidence to the changed meerkat-schedule lifecycle inputs and to classify_due_action, and add a wildcard arm for OccurrenceDueAction.
  2. Custom ScheduleTargetDelivery implementations: override deliver_existing_occurrence if the target can find an earlier admission without admitting anew.
  3. Custom SurfaceScheduleSessionHost implementations: return true from decides_existing_admission only if they admit through accept_schedule_runtime_input_with_reconciliation on the calling task.
  4. Read a mob destroy report as WireMobDestroyReport in Rust, and a failed destroy’s report through the SDK accessor, not the error text.
  5. Pass UnregisterQueuedInputsDisposition::Stop (and 0 for a max age) where you build BeginUnregisterSession, BeginUnregisterUnservedAttachment or State of the generated runtime machine, and keeps_durable_run: false where you build the mob machine’s ResolveAutonomousShutdownMemberAction.
  6. A graceful shutdown of a session with per-round commits now keeps its queued prompts and its run in flight unless you choose Stop (for a mob, the new default is QueuedInputsOnShutdown::RequeueDurable). Before a downgrade, follow Downgrading to 0.9.4. Treat RequeuedAcrossStop as “runs at the next start” (do not resubmit) and RequeueExpired as “resubmit if still wanted”.
  7. Add a wildcard arm where you match RuntimeBindingsError, and set custody_deferred in MobMemberStatusResult struct literals.
  8. Custom SessionCheckpointer implementations: return a receipt from checkpoint_run once a checkpoint is durable, and implement rebases_runs and rebase_run if your store accepts only strict continuations. RuntimeStore decorators: forward the two WholeBlob run re-base methods.
  9. Handle the run_resumed event, and pass the new fields of the recovery and runtime machine inputs.
  10. Pass durable where you build Profile or its wire forms, and handle MobError::NonDurableService and MobError::IdentityAdoptionRequiresPersistentRuntime.
  11. Name dedupe_key where you build pending callback calls, and pass the key to WireCallbackPending::single.
  12. Handle ClosedOrphanedDrain where you match RuntimeSessionQuiescentClose.
  13. Open mob members’ live channels, WebSocket or WebRTC, with mob/member_live_open instead of live/open by the member’s session id.
  14. Tools whose effects must not repeat: record and check the dedupe key, as described in Durable Runs.
  15. On jsonl or host-store realms, check the write volume of long, tool-heavy runs.
  16. Set advisories in LiveOpenResult struct literals.
  17. Set execution_identity: None in MobMemberLiveOpenParams struct literals.

Downgrading to 0.9.4

Some state that 0.9.5 writes does not carry back to 0.9.4:
  • Runs in flight. 0.9.4 never continues a run. It closes a run that was in flight when 0.9.5 last stopped (a crash or a kill) as interrupted, and ends the run’s inputs without running them again. Some of these sessions, such as one whose run stopped in its first round or right after a compaction, do not open in 0.9.4 at all until 0.9.5 has settled the run.
  • Kept inputs. 0.9.4 cannot open a store while an input that a requeue stop kept is still queued, and cannot read an expired input’s row, or a kept queued prompt’s row that 0.9.5 ran, after that (see Other behaviour changes above). This includes the inputs of a run that a requeue stop kept: 0.9.4 cannot read them, so it neither continues nor closes that run.
  • Unfinished requeue stops. A requeue stop that was killed while it drained, such as a default graceful shutdown of a session with per-round commits, leaves the session’s lifecycle record at version 6, which 0.9.4 refuses when it opens that session. So does a rollback of a registration refused before it served, which keeps the inputs the registration recovered, when it is killed before it finishes. Opening the session on 0.9.5 finishes that stop and rewrites the record in a version 0.9.4 reads.
  • Pending callback calls. 0.9.4 cannot finalize a pending callback call stored with a dedupe key: its stored digest no longer verifies there.
Before you start 0.9.4 on a state root that 0.9.5 used:
  1. On 0.9.5, open each session that had a run in flight at the last stop, and each session whose shutdown did not finish, and let any run end. Deliver the results of its pending callback calls, or cancel the run.
  2. Shut down with an explicit Stop (an unregister with UnregisterQueuedInputs::Stop, or a mob Shutdown with with_queued_inputs(QueuedInputsOnShutdown::Stop)), so that no run and no queued input is kept. For rkat-rpc and the REST server, whose own shutdown keeps the work of sessions with per-round commits, stop sending work, let every run and queued input finish before you stop them, and let their shutdown finish.
  3. Then start 0.9.4.

Upgrading to 0.9.4

This section is for systems running 0.9.3. The full list of changes is in the CHANGELOG under ## [0.9.4]. This guide has no sections for 0.9.0 to 0.9.3: on 0.8.x, read their CHANGELOG sections as well.

Before you upgrade

  • There is no downgrade to 0.9.3 once 0.9.4 has written to a runtime store. 0.9.4 writes stored input state at version 7, including any input row it read at an older version, and a 0.9.3 or older binary refuses a version 7 row (it leaves the stored bytes in place). 0.9.4 still reads rows that 0.9.0 to 0.9.3 wrote (version 6).
  • Other records 0.9.3 cannot read back:
    • a session event log that holds a content-filtered run_failed event (see Refusals and content filters);
    • an authorization grant journal that holds an owner-scoped resource-domain restriction (0.9.3 refuses to restore that grant owner with RestartRequired);
    • a session transcript that holds a tool-configuration notice 0.9.4 wrote (a tool-scope, deferred-catalog or failed-closed notice; see Tool configuration events);
    • a session that recorded a failed realtime response (realtime sidecar event schema 4; 0.9.3 refuses it with “unsupported realtime event schema 4”; see Realtime responses that fail);
    • a temporary council record that holds a participant refused by the fork instruction policy (see Forks and activated host instructions);
    • a mob store: 0.9.4 migrates each mob’s SQLite store to schema version 12 (its creation record) when it opens it, and 0.9.3 refuses that version. Keep a copy of the mob stores from before the upgrade to roll back;
    • a persisted member delivery scope written at version 2, and a delivery addressed to a member in the new rt:mob-member: form (see Mob incarnations).
  • Upgrade the SDKs with rkat-rpc. The 0.9.3 Python and TypeScript SDKs fail on every tool_config_changed event a 0.9.4 rkat-rpc builds. An SDK downloads its own matching rkat-rpc only when you supply none, so this happens when it runs a binary you supply: MEERKAT_BIN_PATH, an explicit path, or an rkat-rpc on PATH (for example one Homebrew upgraded). SDKs older than 0.9.4 also do not know the turn_failed live observation or the assistant_turn_failed transcript event.
  • Upgrade every process that shares a runtime store together: stop them all, back up the state root, then start 0.9.4 on all of them (steps 1, 2 and 5 of How to upgrade).
  • Peers and member hosts on other versions: a 0.9.3 peer that checks signatures (the default) drops a reply_to_peer reply from 0.9.4, and the sender’s reply_to_peer reports an ambiguous delivery outcome; other message kinds are unchanged (see Peer steers and replies). For mobs placed on member hosts, upgrade the member hosts before their controller (see Forks and activated host instructions).

Breaking changes and what to do

Skill frontmatter

SKILL.md frontmatter is parsed by a new YAML parser (serde-saphyr), which refuses frontmatter the old parser accepted:
  • a key given twice, at any level (a top-level extension key or a metadata key; the old parser kept the last value);
  • a null description, or a null value under metadata (~ or an empty value);
  • an unrecognized tag such as !custom, anywhere;
  • nesting deeper than 64 levels, or 100 or more aliases that outnumber their anchors more than ten to one;
  • a ... document end marker line.
Do: remove duplicate keys, give description and every metadata key a value, drop custom tags and ... lines. A block scalar (|, >) that ends the frontmatter now keeps its final line break. Extension values read back through SkillDocument.extensions are rendered by the new parser. A structured value’s YAML uses double quotes where a string needs quoting ('1.10' is now "1.10"), and some unquoted scalars now resolve as YAML values: 1_000 is 1000, 017 is 17.0, tRUE is true, an integer past u64 is a float, 1e999 is .inf, and a !!binary value is decoded. Do: quote a value that must stay text, such as a file mode with leading zeros ('0755'; unquoted it reads as 755.0).

Mobs

  • MobHandle::shutdown now closes the mob’s admission before its teardown, as its contract says. From the moment a Shutdown is admitted, a spawn, respawn, work submission, flow run, wiring change, host bind, live commit, resume, reset, reload or owner lease is refused with MobError::AdmissionClosed (reason shutdown). If the Shutdown later fails, those commands stay refused for the actor’s life; Stop, Shutdown and Destroy stay available.
  • Other requests during a Shutdown’s drain (Stop, Destroy, Complete, a read, a status probe) get the new MobError::ShutdownInProgress instead of MobError::ActorCommandChannelClosed. It is retryable, with the authority retained (wire code SessionBusy). ActorCommandChannelClosed now means the actor has exited or is exiting.
  • Owner leases end with the mob. MobHandle::acquire_owner is refused with MobError::AdmissionClosed once a destroy is admitted (reason destroyed), after a durability fail-stop (durability fail-stop), after the actor task is lost (actor lost), and after a composition dispatch failure stops the actor (dispatch failure). A mob restored with a durable destroy marker starts with admission closed.
  • Do: treat AdmissionClosed as final for that mob and retry ShutdownInProgress later. MobError is now #[non_exhaustive]: add a wildcard arm to any exhaustive match on it. MobAdmissionCloseReason gains Shutdown, Destroyed, DurabilityFailStop, ActorLost and DispatchFailed.
  • Child tool bundle opt-in (Rust hosts): the new ChildToolBundleAvailability::ChildOffered offers a bundle to child mobs without supplying it. A child mob’s inline profile mounts it by naming it in tools.bundles; a name the host does not offer is refused with the new MobError::ToolBundleNotOffered. ChildToolBundleAvailability and ChildMcpServerRegistrationError are now #[non_exhaustive] (add a wildcard arm), and ToolConfig and the wire MobToolConfigInput gain bundles (set it in struct literals, or build ToolConfig with ..ToolConfig::default()).
  • A member unregister a Shutdown left pending can be followed: MemberShutdownOutcome::UnregisterPending carries a settlement (MemberUnregisterSettlement) and is #[non_exhaustive]; match it with { stage, .. }. settlement.try_state() reads where the unregister stands and settle_within(deadline) waits for it, also after the actor exited (MemberUnregisterState: Settled, Pending, Failed, or HandedOver when a later owner took the registration over).
  • A host’s refusal of a restored member’s registration (at select_destination, select_agent_mandate, prepare_member_surface or verify_member_surface) now removes that registration through the canonical unregister, terminating the inputs the session still held, and leaves the member Broken with the new MobError::MemberRegistrationRefused (RPC data kind mob_member_registration_refused) until an explicit repair; MobMemberSnapshot::registration_refusal and the wire MobMemberStatusResult::registration_refusal show it (set the field in struct literals). A refused member can be retired, respawned or destroyed. A member MobBuilder::resume recreates on a fresh session is isolated the same way when its host refuses it, and the other members resume; 0.9.3 failed the whole resume.
  • A respawned member keeps the restrictions it was spawned under: MobHandle::respawn and the mob_respawn tool give the successor the predecessor’s launch tool access policy and inherited visibility ceiling, as its session recorded them, intersected with the successor’s own and never widened. It keeps the recorded auth binding only when its own spec names none and its profile resolves to that binding’s provider. 0.9.3 built the successor from the profile alone, so a member spawned under its spawner’s tool ceiling came back without it. A respawn whose predecessor’s restrictions cannot be established (including a Broken member whose session was lost, which 0.9.3 respawned), whose successor profile cannot be resolved or whose member changes meanwhile is refused before anything is retired, with the new MobError::RespawnPredecessorRestrictionsUnavailable (no dedicated wire code; its message is respawn of member <id> refused: <reason>). Do: retire such a member and spawn a fresh one; a custom MobSessionService that wraps a Meerkat session service delegates the new predecessor_tool_restrictions (its default, Unsupported, refuses the respawns of its members). See Preserve restrictions across respawn.
  • Stop and Shutdown of a member whose registration needs a durability reload report its run and run starts as ReloadRequired (the new MemberStopRun::ReloadRequired and MemberRunStarts::ReloadRequired, wire reload_required) instead of failing or waiting on it, and a Shutdown holds every member’s run starts and reports the first failure in roster order. An autonomous member whose registration degrades after the stop held its run starts reports its run ReloadRequired and its starts Held (the cancel of its current run was not dispatched). A Resume refuses with MobError::MemberReloadRequired, naming the member, while a local member needs a durability reload, before anything moves; until its reload such a member starts no run, requests to it are refused the same way, and its member status and member list entry carry an error naming the reload. A reload while the mob is Stopped answers MemberReloadDisposition::Discarded, and the next Resume completes the member’s revival. Do: reload the member with MobHandle::reload_member_registration, then Resume. Known limitation: in a multi-host mob, a remote member that needs a reload still makes a Stop fail with MobError::BridgeCommandRejected (cause internal), and a Shutdown too when that member is AutonomousHost; a failed Stop rolls back and the mob stays Running, and a failed Shutdown keeps every member and can be retried. Reload the member on its host, then retry.
  • A runtime that did not install the destination its host selected now answers MobError::MemberDestinationNotInstalled (RPC data kind mob_member_destination_not_installed, not retryable), where it answered MobError::WiringError; its failure class is RuntimeRejected, so schedule delivery records runtime_rejected instead of mob_rejected. A host’s re-selection for a kept registration must advance context_generation.
  • force_cancel_member and cancel_all_work on a member whose runtime needs a durability reload answer MobError::MemberReloadRequired at once (MEMBER_RELOAD_REQUIRED: JSON-RPC -32029, HTTP 409, rkat mob force-cancel exit 49) instead of MobError::Internal. Do: reload the member with MobHandle::reload_member_registration, then cancel again.

Tool configuration events

  • The lifecycle bit of tool configuration changes is named settled, not persisted: tool_config_changed event payloads, stored tool_config notices and mcp notice blocks that 0.9.4 builds carry settled. Rows and events stored by 0.9.3 and earlier keep persisted when they are read back, replayed or served in history. The bit says whether the change is a settled lifecycle fact; whether a configuration write happened is still the persisted of mcp/add, mcp/remove and mcp/reload, which keep their name.
  • The tool-scope, deferred-catalog and failed-closed events and the MCP restore-refusal delta now report settled: true where they reported persisted: false: each is a change that has already applied or failed.
  • Do: accept either key when you read stored notices. The Python and TypeScript SDKs expose ToolConfigChangedPayload.settled (it was persisted) and derive it from status_info. In Rust, read ToolConfigChangedPayload::settled(), ExternalToolDelta::settled() and SystemNoticeBlock::lifecycle_settled(); ToolConfigChangedPayload::new takes no lifecycle argument, SystemNoticeBlock::Mcp carries lifecycle_bit, and meerkat-mcp’s ExternalToolSurfaceEffect::EmitExternalToolDelta carries settled.

Refusals and content filters

  • A provider refusal or content filter now fails the run as content_filtered, with the stop the provider ended on (refusal or content_filter) and the provider’s own detail when it sent one. An OpenAI refusal is no longer committed as the answer, an Anthropic refusal carries its stop_details, and a Gemini prompt blocked before any candidate fails after one call instead of being retried.
  • Wire change: error_report.reason of a content-filtered run_failed event is now {"reason_type": "content_filtered", "stop": ..., "detail": ...} (it was null; detail is omitted when the provider sent none). SDKs older than 0.9.4 keep it as an unknown, raw reason.
  • web_search: a search the provider refused or filtered, one that filled its context window and a cancelled one now come back failed, naming the stop reason, with no answer. A search cut at its output cap (max_tokens) or paused by the provider (pause_turn) keeps its status and answer, and its error now says the answer may be incomplete.
  • Do (Rust): build LlmDoneOutcome::Success with LlmDoneOutcome::success(stop_reason) or success_with_detail(..) and match it with Success { stop_reason, .. }. AgentError::ContentFiltered gains stop and detail (a pattern that names turn without .. needs them), and AgentErrorReason, an exhaustive enum, gains ContentFiltered { stop, detail }: add the arm to every match on it.

Realtime responses that fail

  • A realtime response the provider ends without completing it (OpenAI response.done with status failed or in_progress, or incomplete for a reason other than max_output_tokens or content_filter) now arrives as the turn_failed live observation with its typed failure.status. 0.9.3 reported it as a completed turn and committed its partial text as an ordinary reply, and a failed response without usage closed the channel.
  • It is not terminal: the channel stays open, nothing of the response is committed (the transcript records assistant_turn_failed), a WebRTC peer stops its queued audio, and Meerkat neither cancels nor retries it. Usage the provider reported is charged; otherwise the session event stream carries turn_usage_accounting_unmeasured.
  • Do: route on failure.status (failed, incomplete, in_progress, or {"unknown": {"debug": ...}}), treat the provider’s reason, code and message as diagnostics, and decide in the client whether to ask again. Upgrade the SDKs with the server.
  • Do (Rust): RealtimeSessionEvent gains TurnFailed { response_id, failure, accounting }, RealtimeTranscriptEvent gains AssistantTurnFailed { response_id } and RealtimeTranscriptStopReasonKind gains Failed; all are exhaustive, so add the arms. LiveProjectionSink gains the required method signal_turn_failed(session_id, response_id, failure, accounting).

Forks and activated host instructions

  • Forks whose copied prefix carries activated host instructions: under the default fork instruction policy, require_explicit_activation, the forks that start the child’s first turn themselves are refused before anything is committed: fork_off, MobHandle::fork_member_then_run_bounded and fork_member_then_run_detached, fork_member_at_turn_boundary (and so the live delegation’s durable fork), council participants, and the RPC forks session/fork_at and session/fork_replace. The error is FORK_INSTRUCTION_REFUSED (JSON-RPC -32037, HTTP 422, CLI exit 57). 0.9.3 committed such a child, and its first turn failed. fork_member keeps the host’s activation window, and forks of sources without activation rows are unchanged.
  • Do: a host that wants such forks to carry the activations sets reactivate_inherited with MobBuilder::with_fork_instruction_policy or MobMcpState::with_fork_instruction_policy; an RPC client passes "inherited_instructions": "reactivate_inherited" to the fork call, whose result reports reactivated_instruction_count.
  • Mixed versions: a 0.9.3 member host does not know the policy. Upgrade member hosts before their controller: until then a 0.9.3 member host forks participants without the policy, and a participant whose source has activated host instructions fails its first turn. A controller set to reactivate_inherited gets the typed refusal cause member_host_unsupported from a 0.9.3 member host.
  • Do (Rust): SessionError gains ForkInstructionRefused and MobError gains ForkInstructionRefused { source_member_id, refusal } (exhaustive matches need the arms). SessionForkAtRequest, SessionForkReplaceRequest, DurableSessionForkTarget, PlannedForkRequest and BridgeCreateForkedParticipantPayload gain inherited_instructions, and SessionForkResult gains reactivated_instruction_count (set them in struct literals). TemporaryCouncilExitReason gains ParticipantForkInstructionRefused and TemporaryCouncilAcquisition gains Refused. A turn refused because a fork child never activated its inherited instruction keys fails with AgentError::InstructionActivation instead of AgentError::ConfigError.

Peer steers and replies

  • In-turn steers are durable: every content steer admitted while a turn runs (a prompt, a peer message, request or lifecycle notice, an external event, a local flow step) is now written into the running turn’s transcript at a model boundary, one per boundary in arrival order, or taken by exactly one follow-up turn. 0.9.3 showed peer and text-only prompt steers to one model request and never stored them. History now holds their rows, boundary_append_applied reports them, and each incoming comms notice publishes one peer_content_ingested.
  • Replies name what they answer: the model’s peer message notice gains a Delivery ID: <id> line and, for a reply, an In reply to: <id> line. reply_to_peer can answer a message that joined the running turn.
  • Mixed versions: a 0.9.3 receiver that checks signatures refuses a reply_to_peer reply from 0.9.4 (it does not know in_reply_to), and the sender sees an ambiguous delivery outcome. send_message and every other message kind still reach a 0.9.3 peer. Upgrade peers together.
  • Do (Rust): SystemNoticeBlock::Comms and AgentEvent::PeerContentIngested gain delivery_id; CommsCommand::PeerMessage, InteractionContent::Message and SystemNoticeBlock::Comms gain in_reply_to, as do meerkat-comms’s MessageKind::Message and meerkat-runtime’s PeerInput. Struct literals and exhaustive patterns name them.

Mob incarnations

  • A mob keeps its incarnation across resume. Its create mints the MobIncarnationId once and stores it in a creation record; every resume reads it back, where 0.9.3 minted a new one at each runtime start. Only a destroy and a create under the same id start a new incarnation, so a mob operator grant bound to a mob still reaches it after a resume. A mob created before 0.9.4 gets its incarnation at its first resume (provenance Unrecorded). After a restart, the session that created a mob with the agent mob tools manages it again (the grant is re-derived from the creation record); a member that created a mob and was then reset to a later generation over the same session does not (known limitation; an operator grant restores manage).
  • Member delivery scopes name the incarnation and are written at version 2. A version-1 scope still decodes and is honoured only by a mob whose incarnation was assigned to a store from before 0.9.4; 0.9.3 refuses a version-2 scope. A scoped submit with a scope from another incarnation is refused first, with the new MobError::IncarnationMismatch, where it failed as StaleDeliveryScope, and so is retire_at_scope before any step; recover_bounded_work_at_scope answers ScopedRecoveryUnresolved::IncarnationNotHosted.
  • Member delivery addresses name the incarnation too (rt:mob-member:{mob}:{incarnation}:{identity}:{generation}), so a continuation or detached-job delivery owed to a member of a destroyed mob no longer reaches the member of the same identity in a mob created again under the same id: it strands (Stranded, OwnerRetired), and a handle kept from the destroyed mob submits nothing. A 0.9.3 build does not read the new form and does not deliver rows addressed to one; addresses minted before 0.9.4 are still read. Known limitation: with in-memory mob storage every start creates each mob again as a new incarnation, so deliveries still owed to the earlier incarnation strand. Do (Rust): meerkat::member_delivery_address takes the mob incarnation as its second argument (handle.incarnation()), and MemberDeliveryAddress gains incarnation (set it in struct literals).
  • Stores that disagree: a mob store whose creation record and event log disagree is not resumed (MobError::IncarnationInconsistent), and one that holds a finished destroy whose files are not removed yet answers MobError::IncarnationDestroyed (the finished destroy failed as Internal). Such a mob no longer fails the whole restore of MobMcpState: it is left unrestored, listed by MobMcpState::unrestored_mobs, and a lookup of its id answers the refusal; the other mobs restore.
  • Creates record their provenance: a MobMcpState create for a caller session (the agent mob tools, temporary council seating, mob_create_definition_with_owner_bridge_session) is refused with MobError::ProvenanceUnavailable while the state’s mob set is not restored. Do: a host that restores mobs by inserting handles calls declare_mob_set_restored, and inserts a mob’s handle before its members run turns.
  • Do (Rust): the mob operator grant functions (grant_manage_mob, grant_spawn_profile_in_mob, grant_spawn_profiles_in_mob, mint_mob_operator_authority_from_facts) take a LiveMobIncarnation witness: pass handle.live_incarnation() where you passed handle.incarnation(). The scope readers still take a MobIncarnationId: pass the live mob’s handle.incarnation(), never an id decoded from input. MobIncarnationId now serializes as its UUID. MobError gains IncarnationMismatch, IncarnationInconsistent, IncarnationDestroyed and ProvenanceUnavailable, and MobStoreError gains IncarnationInconsistent (exhaustive matches need the arms).

Changing the model of a running session

Agent::replace_client, Agent::replace_client_with_request_policy and the ephemeral service’s SessionService::set_session_client no longer change the session’s model: a client, or a request-policy model, whose provider or model differs from the session’s durable identity is refused with AgentError::ClientModelChangeRequiresHotSwap before anything changes. Do: change the model with Agent::hot_swap_llm_identity or SessionService::hot_swap_session_llm_identity. A replacement client for the same model, and any client on a session without a durable identity, is accepted as before.

Custom compactors

Compactor::prepare_for_summarization takes the summarizing model’s source budget and returns the source with its bound: (messages: &[Message], budget: Option<SummarizationSourceBudget>) -> SummarizationSource. It has no default implementation. Do: to keep the old behaviour, return SummarizationSource::whole(meerkat_core::materialize_latest_system_prompt_versions(messages)) and ignore the budget. To fit the summarizing model, bound the source by the budget and report the bound, as DefaultCompactor does. A CompactionContext built by hand sets last_rewrite_history_tokens: None. The compaction types around it change too:
  • SessionCompactionCadence gains last_rewrite_history_tokens (set it in struct literals).
  • AgentEvent::CompactionCompleted and CompactionProjectionIntent gain summary_source and estimated_history_tokens_after (patterns without .. need them).
  • CompactionSummarySource is #[non_exhaustive] (add a wildcard arm), and its ProviderCall variant carries the call’s source_bound.

Governed realms and authorization (Rust hosts)

  • StockGovernance::bind_prompt binds only a prompt of the local operator (Input::Prompt); any other input is refused with StockGovernanceError::RequesterUnsupported before anything is written. Do: bind an outcome your own process reports (for example a connector finalization submitted as an external event) with the new StockGovernance::bind_host_outcome.
  • A host-authenticated stock composition refuses its own stock ingress principal as a requester, as it already refused the operator.
  • SessionAgentMandate::new drops its catalog argument (new(executor, servers, represented_subject)) and must select at least one MCP server (AgentMandateError::NoSelection otherwise). SessionAgentMandate::catalog_lineage and AgentGrantRefs::catalog_lineage are removed.
  • ExecutionRestrictions.resource_domains is a DomainRestriction: build it with DomainRestriction::{unrestricted, exact, owned_by, unresolved} and read it with DomainRestriction::bound. Exact and unrestricted bounds keep their wire bytes.
  • AuditObservation is #[non_exhaustive], AuditObservation::Refused gains read, and AuditPolicyRead gains publication_instance.
  • OperationRefused equality includes whether the refused call’s tool code ran (OperationRefused::dispatch): compare kind() and dispatch() instead of comparing with OperationRefused::new(kind).
  • A model-reviewed (R2) tool call whose owner publication changes during its review is prepared again and reviewed once more, as a second review attempt for the same tool_call_id, where 0.9.3 settled it as review_unsatisfied (context_changed). An OperationReviewObserver can therefore see an attempt retired as ContextChanged followed by a second attempt (the audit shows a second ReviewAttemptStarted). Do: do not treat that retirement as the call’s final outcome; only the last attempt settles it.
  • A governed helper admission fence and a helper child issuance that refuse to rebuild (ReprepareRequired) now answer Unavailable instead of Denied: a later attempt may succeed. A denial and malformed facts stay Denied.

Runtime and registration (Rust hosts)

  • ConfiguredMcpAttachmentProvider::configured and NativeWorkAuthorizationHost::configured_mcp_attachment_for_agent take the session’s exact RuntimeSessionRegistrationWitness instead of its SessionId; read the id with registration.session_id().
  • AuthenticatedOriginalSource::retained_original is replaced by retained_custody, which returns RetainedCustody (Retained, AdmissionPending or NotRetained). Answer NotRetained where you answered None.
  • ContinuationAdmitError and BlockedDeliveryReason gain NotReady(ControllerReadinessFailure); ContinuationAdmitError is #[non_exhaustive], and BlockedDeliveryReason’s variants no longer have defined discriminants (an as cast on it no longer compiles). The wire WireControllerReadinessFailure gains original_admission_pending, which a Rust decoder built before 0.9.4 rejects.
  • meerkat-mob: MemberRuntimeBuildIdentity is no longer UnwindSafe (wrap it in std::panic::AssertUnwindSafe to move it into catch_unwind), and SqliteMobObserverDrainReport gains retained_registrations.
  • RuntimeDeliveryOwnerRetirement::join returns a #[must_use] RuntimeDeliveryOwnerRetired report instead of (): match Ok(_) or read the report.
  • A boundary commit the store does not answer: a persistent session’s boundary commit or run terminalization that reports no durable outcome within its store’s declared deadline (120 s for the SQLite store) now marks the session reload-required, and its completion waiters fail with the new CompletionWaitError::DurableOutcomeUnknown; a rejected boundary commit fails them with CompletionWaitError::BoundaryRolledBack instead of AuthorityUnavailable. CompletionWaitError is now #[non_exhaustive]. Do: the input stays durably admitted, so read it after the reload instead of resubmitting it (the public error class is still authority unavailable and the message names the case: resubmit only with an idempotency key); a reload refuses with the retryable RuntimeDriverError::RecoveryRepairBlocked until the store answers. A scheduled delivery waits for the input’s own outcome (see Other behaviour changes). An input admission whose store write never answers is bounded by the same deadline: past it, the admission refuses with the retryable RecoveryRepairBlocked naming the input and the session needs a reload (runtime_admission_deadline); the write may still land, so resubmit with the same idempotency key or read the input after the reload. Known limitation: registration, unregister, control writes, recovery and the runtime loop’s other writes under the gate still wait for a store that stops answering.
  • MeerkatMachine::bind_scoped_context refuses a destination whose context_generation does not advance with RuntimeDriverError::ScopedContextGenerationNotAdvanced { bound, requested } instead of Internal.
  • GPT Live adapters: LiveDelegationNarrationKind gains FinishedPending and GptLiveBrokerObservation gains InstructionsContextAppendWithdrawn (both appended last), and LiveSidebandProviderCommand gains NoteDelegationFinishedContext, which a provider adapter lowers or refuses. An exhaustive match needs the new arms.

Generated machine types

Struct literals and exhaustive matches over generated machine types need the new fields and variants: SessionPersistenceVersionAuthorityMachineState gains stored_input_state_migration_v6; MobMachineState and the kernel State gain identity_generation_highwater and identity_generation_highwater_sealed; the mob machine signals and kernel transition ids gain the identity generation high-water variants and ResolveMemberRevivalHostRefused / RecoverMemberRestoreHostRefused, and the mob machine inputs, effects and transition ids gain RetireAtScope and RetireAtScopeResolved, all appended last.

Other behaviour changes

  • Compaction is sized for the model that writes the summary. The summary source may take two bytes per token of that model’s context window left after max_summary_tokens (capped by a declared input ceiling, at least 4 KiB), instead of a quarter of the compaction threshold. With the default threshold that is about ten times more, so a summary call can cost more input tokens on a large window; it never costs more than the history being compacted plus the compaction prompt.
  • Compaction no longer pays for a summary at every boundary when no rewrite can get the history under the threshold (for example when the System rows alone exceed an explicit auto_compact_threshold). It waits for its cadence and logs a warning that names the remedies.
  • The compaction_completed event reports the summary’s source (summary_source) and the estimated history left (estimated_history_tokens_after).
  • Multiprocess hosting no longer refuses a runtime store whose file notifications cannot be registered (an inotify watch limit, for example): the store watch’s sweep is the cross-process wake.
  • Fenced runtime-store writes under contention: an intent-managed identity on SQLite mob storage no longer stays in Backoff on a host with slow disk writes. The SQLite runtime store now waits up to 2 seconds for the mob database’s write lock inside the identity fence, through the new defaulted RuntimeStoreWriteFence::execute_if_current_blocking (for a caller on a blocking thread; the default calls execute_if_current). A fenced write whose fence answers Backoff while the writer holds an async lock (the in-memory runtime store’s fenced writes, and MeerkatMachine’s publication of a registered session) is tried again for up to 2 seconds, with the lock released between attempts, instead of reporting the first Backoff at once. Do: a fence caller in your own crate that holds an async lock retries a Backoff the same way, since execute_if_current never waits beyond its own I/O; a fence decorator that forwards fenced calls may forward execute_if_current_blocking as well. A fence implementation needs nothing new.
  • Known limitation, adopted identities after a restart: an adopted identity runs again only once the previous process’s identity lease expires, at most 30 seconds after that process last renewed it (IDENTITY_LEASE_MAX_TTL_MS), whether that process stopped gracefully or not: no runtime path releases the lease at shutdown. Until then the identity’s convergence status reads decision await_lease (condition suspended).
  • Work that names an original its source owner has not settled yet is reported not ready (ControllerReadinessUnavailable with original_admission_pending) and stays retryable, instead of being refused as malformed or denied.
  • Fixed known issue: stores no longer refuse to open with “schema domain … has no ledger row but already owns objects” when another process creates the same schema domain at that moment.
  • macOS: starting a SQLite change watch no longer waits for FSEvents registration, which held the first mob storage open for over 30 seconds.
  • Governed tool refusals tell the model whether the tool ran: the operation_refused tool result carries data {"kind": ..., "tool_invoked": false | "unknown"}. Neither field grants anything; a new call is a new operation. A mob member upcall refusal with no known kind now reads as operation_authorization_unavailable, not operation_refused with malformed_facts.
  • Governed realms and environment keys: in a governed realm, input of a host whose model key comes from the environment (OPENAI_API_KEY, ANTHROPIC_API_KEY and the other provider and RKAT_* keys, with no realm binding configured, or none that resolves) now reaches controller authorization. 0.9.3 refused every such input at admission, before any model request, with controller credential is not currently usable. Governed admission holds no credential lease for that route, and every other governed check still applies. The route has a route key of its own (the key covers the binding and the credential), so a stock controller grant admits it only if one of its --route keys names that route; otherwise the input is refused with a typed policy refusal. That includes the build-time fallback to the environment key when a session names no binding and the configured one does not resolve (for example a logged-out OAuth binding). Do: to run governed work on an environment key, grant that route’s key (rkat realm grant <REALM_ID> --controller --route <ROUTE_KEY>); a host with its own controller policy decides there.
  • SQLite session store: a whole-blob session compacted more often than history_retained_rewrites (default 4) is laid out instead of refused.
  • Public GPT Live: a delegation result held behind the user’s unanswered question first sends a finished notice, so the voice model no longer says the work is still in progress.
  • Session forks: a child of session/fork_at or session/fork_replace now gets a build state derived from its source’s and can run a turn. It carries the source’s session configuration, without the source’s shell_env, MCP attachments or mob operator authority (see What a fork child inherits). A source with session metadata but no build state is refused before anything is committed (INVALID_PARAMS, data kind fork_source_build_state_missing). A child forked by 0.9.3 that never ran a turn still fails turn/start with “missing session build state”: fork its source again.
  • @rkat/sdk: a Node process that calls MeerkatClient.close() exits as soon as it has nothing else to do, instead of about 5 seconds later.
  • SDK clients and a child that exits: the TypeScript and Python clients settle on the rkat-rpc child’s exit, not on its output pipes closing, so requests to a child that exited by itself fail within about a second (PROCESS_EXITED in TypeScript, CONNECTION_CLOSED in Python) and close() returns once the child has exited.
  • SQLite lock profile: the release binaries are built with the bundled SQLite’s three process-wide locks off, so concurrent sessions in one host no longer queue on each other. A build outside the repository (cargo install rkat, an application that embeds Meerkat) does not get that setting: Do: set LIBSQLITE3_FLAGS to the value in SQLite Lock Profile for that build, and in an embedding application call meerkat_sqlite::disable_memory_statistics_at_process_start() (an unsafe fn) in an unsafe block as the first statement of main, before any other thread or SQLite connection exists. rkat storage doctor reports the profile and warns with sqlite-lock-profile when a lock is on.
  • Presence locks: a connection a store keeps open between operations holds a presence lock (<file>.mpresence next to the database), and maintenance such as rkat storage migrate --apply waits for kept connections to close; rkat storage doctor lists the files as maintenance-fence-lock findings.
  • Scheduled occurrences end with their input’s own outcome: a reclaim whose redelivery the target deduplicated waits for the original input’s outcome instead of recording completed at admission, and a delivery whose completion wait fails with BoundaryRolledBack or DurableOutcomeUnknown re-reads the input’s outcome for up to 5 lease periods (5 minutes at the default 60 s lease) before it ends delivery_failed with runtime_completion_authority_unavailable. A scheduled mob delivery whose redelivery finds the delivery already failed records delivery_failed (0.9.3: completed). Do: a custom ScheduleTargetDelivery resolves a deduplicated replay’s completion from the original input’s outcome. Known limitation: a delivery whose executor crashes after the target admitted its input is reclaimed only inside the occurrence’s misfire window. Under the default skip policy (a 30 s grace) and the hosts’ 60 s claim lease the reclaim comes too late, so the occurrence ends misfired although its admitted input ran (nothing runs twice). To keep crash recovery, use the catch_up_within misfire policy with a window_seconds comfortably longer than the lease (the claim’s own delay and a driver tick count too).
  • macOS stdio MCP servers close as soon as they exit, as on Linux; 0.9.3 waited about 8 s per stdio server (the EOF grace, SIGTERM, the TERM grace, SIGKILL) at every close, removal, reload, session end and shutdown.
  • RPC transcript edits after a restart: session/fork_at, session/fork_replace, session/rewrite_transcript, session/update_system_prompt and session/restore_transcript_revision on an idle persisted session no longer answer SESSION_BUSY after the RPC server restarts. A session with a running turn or pending input still gets SESSION_BUSY; one that needs a durability reload answers the runtime’s typed refusal instead, and one another process hosts answers its typed hosting refusal (SESSION_BUSY with data kind session_served_elsewhere).
  • A resume finishes an interrupted Stop or Complete (waiting up to 5 s for its first attempt) before it hands the mob back, so the handle reads Stopped or Completed; 0.9.3 resumed it as Running and finished the Stop in the background. An attempt still running after 5 s (held on a member or a placed completion) goes on in the background; wait for MobStopped.
  • Sessions stuck at a compaction in 0.9.2 or 0.9.3: a session whose last turn an earlier release committed but never finalized now finalizes it at its next start and accepts work again, where every start failed with “terminal completion finalization lost the exact durable CAS”.
  • WebSocket and WebRTC voice no longer pauses while another turn runs on the session: transcript rows wait in an ordered queue off the media path, observations are forwarded as they arrive (a transcript frame can reach the client before its row commits), and a refused row closes the channel with projection_error (see the realtime guide).
  • GPT Live transcript rows the transport holds when a member turn ends all commit at that turn’s boundary, before the next queued member turn, so the stored transcript no longer falls behind while member turns run back to back.
  • Published crates: cargo test in an unpacked published Meerkat crate passes (meerkat, meerkat-runtime and meerkat-mob with the features and the 8 MiB test stack, RUST_MIN_STACK=8388608, that their README prints), and rkat builds without its default features.

Upgrade checklist

  1. Stop every 0.9.3 process that shares a runtime store.
  2. Back up the realm state root; there is no downgrade to 0.9.3 after 0.9.4 writes to it.
  3. Upgrade the binaries, the Python and TypeScript SDKs and the Rust crates together, then start 0.9.4 on all of those processes.
  4. Fix SKILL.md frontmatter the new parser refuses (duplicate keys, null values, custom tags, ... lines), and quote extension values that must stay text ('0755').
  5. Handle MobError::AdmissionClosed and MobError::ShutdownInProgress, and add wildcard arms for the non-exhaustive mob errors.
  6. Read content_filtered run failures with their typed reason, and stop treating refusal text as an answer.
  7. Move model changes on a running session to hot_swap_llm_identity.
  8. Update custom compactors for the new prepare_for_summarization.
  9. Governed hosts: bind host-reported outcomes with bind_host_outcome, do not treat a review attempt retired as ContextChanged as the call’s final outcome, and grant an environment key’s controller route by its route key if governed work should run on it.
  10. Read tool configuration changes by settled (accepting persisted on rows stored before 0.9.4).
  11. Realtime clients: handle the turn_failed observation, and add the new arms and signal_turn_failed in Rust.
  12. Forks: handle FORK_INSTRUCTION_REFUSED, and set or pass reactivate_inherited where a fork must carry activated host instructions; upgrade member hosts before their controller.
  13. Comms: upgrade peers together (a 0.9.3 peer drops reply_to_peer replies), and expect in-turn steers in history.
  14. Mobs: back up the mob stores (schema 12 has no downgrade), pass live_incarnation() to the operator grant functions, and call declare_mob_set_restored if your host restores mobs by inserting handles.

Upgrading to 0.8.51

This section is for systems running 0.8.50. The full list of changes is in the CHANGELOG under ## [0.8.51].

Before you upgrade

  • The upgrade is one-way. 0.8.51 migrates these stores forward the first time it opens them, and 0.8.50 binaries refuse the migrated files:
    • SQLite session store: schema v5 (transcript retirements);
    • WorkGraph: schema v4 (keyed admissions);
    • semantic memory: schema v3 (purges empty-text rows).
  • Upgrade every process that shares a store at the same time. A 0.8.50 process left running against a store a 0.8.51 process has migrated will be refused on its next open.
  • Take a backup first (step 2 of How to upgrade), since there is no downgrade path for migrated files.

SQLite sessions that 0.8.50 could no longer load

SQLite sessions written by 0.8.50 or earlier that went through more than 32 compaction rewrites could reach a state where every cold load fails with Store(Corrupted(<session id>)). Writes kept succeeding and no rows were lost.
  • Do not delete or recreate such a session. Upgrade the host to 0.8.51.
  • 0.8.51 loads these sessions again with no action needed. Cold load replays them from the edge their rotated anchor sealed, but only after verifying that the edge’s result, extended by the anchor’s own tail rows, reproduces the anchor exactly. The session’s next compaction rewrite then re-mints the anchor.
  • New sessions are not affected.

Session envelope status

  • No envelope migration. The persisted session envelope stays at version 3 (SESSION_VERSION), stored input state at version 5, and session metadata schema at version 2, the same as 0.8.50. Session documents written by 0.8.50 load unchanged.
  • Transcript history is now bounded. After each compaction, a session keeps the bodies of only the most recent [compaction] history_retained_rewrites rewrites (default 4). Existing documents re-anchor on their next compaction. The SQLite store deletes the rewrite rows below the same cut.
  • Old revisions can be retired. Fork, rewind, restore and revision reads of a revision older than the retention window fail with the typed TranscriptRevisionRetired, naming the oldest retained revision. Raise history_retained_rewrites if you need to reach further back. Code that walks commits() and projects each commit’s parent must skip commits before the cut.

Breaking changes and what to do

Hosts that serve application tool policies

  • Agent mob_create, agent delegate and spawns into existing child mobs are refused (policy_denied, code child_tool_policy_required) until you choose a child application tool policy.
  • Do: call MobMcpState::with_child_application_tool_policy(binding) with the policy child members should run under, or pass ApplicationToolPolicyBinding::Unmanaged to opt out explicitly.
  • delegate helpers now run as a child mob under that policy. Host-created mobs, same-mob mob_spawn_member and fork_off, and temporary councils are unaffected. Hosts without a tool-policy registry see no change.
  • Host tool bundles reach child mobs only if you mark them ChildAvailable with MobMcpState::with_child_tool_bundles.

Agent-facing mob tool inputs

  • Model-supplied mob definitions and profiles that name internal-only fields (mcp_servers, rust_bundles, is_implicit, session_cleanup_policy, …) are refused with InvalidArguments. On the agent surface, host filesystem skill paths, images by blob_id and videos by uri are refused too.
  • Do: keep MCP servers and Rust bundles in host-defined profiles, and have agents reference those profiles by name. Host-facing surfaces (RPC, REST, SDK, CLI) are unchanged.

MCP OAuth

  • Meerkat no longer opens a browser or binds a callback listener itself.
  • Do:
    • drive login with McpOAuthAuthority::login_start, login_complete and login_cancel, the HostAuthService::mcp_login_* methods, the auth/login/* RPC and REST methods with an MCP target, or rkat mcp login (see Authentication);
    • give each server that needs interactive login an account selection: oauth_account, or oauth_account_selection = "discover" or "unverified" (rkat mcp add --oauth-account or --oauth-account-selection);
    • update McpOAuthAuthority::new(persistence, auth_lease) and with_http(persistence, http, auth_lease) calls, which no longer take a browser;
    • set AgentBuildConfig::mcp_auth_resolver (use None to keep the old behaviour);
    • replace BrowserOpener, SystemBrowserOpener and McpOAuthAuthority::interactive_login, which are removed.
  • RPC, REST and the MCP server now install interactive MCP auth by default. A missing credential surfaces as the typed AuthorizationRequired host status.

Auth wire (auth/login/*, auth/status/get)

  • Login params take a target (a provider or an MCP server). The Rust LoginStartParams, LoginCompleteParams, WireLoginStart and WireLoginReady replace their provider fields with target.
  • Provider login params now refuse unknown fields.
  • Do: in Python, build requests through the client wrappers; the generated types are unions and no longer constructible dataclasses. Provider JSON payloads themselves are unchanged.

Per-profile tool deny lists

  • [profiles.<name>.tools] deny = [...] is new. A name that is not a known tool (or a tool of a declared MCP server’s mapped list) fails the member’s build with DeclaredToolUnknown.
  • A profile’s read_only now travels as declared_tool_restriction and no longer appears in AgentBuildConfig::tool_access_policy. The effective gate is unchanged.
  • Do: if you read tool_access_policy off a built config, read declared_tool_restriction too. Members persisted before 0.8.51 keep their old restriction until respawned.

Mob Stop and Shutdown

  • MobHandle::stop returns Result<MobStopReport, MobError>. MobMcpState::mob_stop returns the report, and mob_lifecycle_action returns MobLifecycleReports.
  • Shutdown cancels members’ in-flight runs immediately. Use Stop if runs should finish first. shutdown_with_report(ShutdownOptions) reports per-member outcomes, and ShutdownOptions::with_deadline bounds every wait by your own deadline (for example below a Kubernetes termination grace period).
  • While a Shutdown runs, commands other than a second Shutdown get ActorCommandChannelClosed. Treat it as “mob shutting down”. (0.9.4 changes these answers; see Mobs under Upgrading to 0.9.4.)
  • A retirement that started and failed answers MemberRetirementStuck. Do: call MobHandle::redrive_retirement or resume the mob.
  • A spawn that completes into a Stopped mob leaves it Stopped and holds the new member. Call Resume to run it. Reset also releases a Stop’s holds.
  • MobBuilder::with_runtime_adapter must be passed the session service’s own MeerkatMachine (a clone of it). A different machine over the same store is refused with MobError::RuntimeOwnerConflict.

Live (GPT Live and WebRTC clients)

  • WireLiveAdapterStatus::Closed is now a struct variant, Closed { reason, reopen_recommended }. Do: match Closed { .. } (or use is_closed()) and build it with WireLiveAdapterStatus::closed(). A plain close still serializes as {"status":"closed"}.
  • AgentEvent::LiveChannelClosed is published on every committed close. Do: handle it in event consumers that match exhaustively on event types.
  • WebRTC clients should answer live/media_health_requested with live/media_health, and may apply live/assistant_playback_hint (duck/restore) to their playback. The TypeScript and Python SDKs now deliver live/* notifications through onLiveNotification and on_live_notification.
  • Hosts that forward observations receive playback hints only if they override ExperimentalLivePublicObservationPublisher::publish_playback_hint.

Other behaviour changes

  • rkat-rpc over TCP: a session’s callback tools route only to the connection that created it. SessionRuntime::set_callback_channel is deprecated. Do: use init_callback_channel for the single-client default route.
  • MCP stdio servers are killed as soon as their stdin closes. A server that must flush state on EOF can no longer rely on a grace period.
  • Shell tool commands read EOF from stdin immediately (/dev/null).
  • Mob kickoff status notices (mob.kickoff_*) are one-way lifecycle notices. Receivers no longer get a peer request to answer.
  • SQLite database paths that are hard links or not regular files are refused (UnsupportedDatabaseFile). Do: point stores at a single regular file.
  • Semantic memory: empty-text rows are purged on first open, and empty queries return no hits.

Rust API

Struct literals and exhaustive matches need updating for the new fields and variants listed under ### Breaking in the CHANGELOG. The most common are:
  • LlmRequest.tool_choice, TurnToolOverlay.tool_choice_plan, and CompactionConfig.history_retained_rewrites (default 4);
  • MemoryIndexExclusion::EmptyText, TranscriptEditError::TranscriptRevisionRetired, LlmError::ToolChoiceUnsupported and MobError::RuntimeOwnerConflict;
  • SessionRuntimeLlmReconfigureHost::service is now a Weak (build it with Arc::downgrade).

Upgrade checklist

  1. Back up stores you might need to roll back.
  2. Stop every 0.8.50 process that shares a store, then start 0.8.51 on all of them together.
  3. If you serve application tool policies, set a child application tool policy.
  4. Move host-only MCP servers and Rust bundles out of agent-created profiles.
  5. Update MCP OAuth hosts to the start/complete/cancel flow.
  6. Review Shutdown callers: use Stop to let runs finish, and set a ShutdownOptions deadline that fits your termination grace period.
  7. Update live clients for Closed { .. }, LiveChannelClosed, and the media-health and playback-hint notifications.
  8. Leave any SQLite session that 0.8.50 reported as Corrupted in place. 0.8.51 loads it.