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-rpcwith the same major and minor version, so a mismatched patch connects without complaint. Upgraderkat-rpc,meerkat-sdk,@rkat/sdkand@rkat/webtogether. - Bump Rust pins together. The
meerkat*crates are versioned in lock step: move every=0.9.xpin 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
- Stop every process that shares the state root: the CLI,
rkat-rpc,rkat-rest,rkat-mcpand SDK applications. - Back up the realm state root. Without a backup, a release that migrates durable state cannot be rolled back.
- Run
rkat storage doctor(read-only) and keep its report. - Upgrade the binaries and SDKs (table below).
- Start the new version. It migrates durable state on first open. To
migrate offline instead, run
rkat storage migrateas a dry run, then with--apply(see Storage Operations). - Run
rkat storage doctoragain and compare. - Once the rollback window has passed, remove migration backups with
rkat storage prune.
Verify
rkat --versionandrkat-rpc --versionprint the new version.rkat doctorpasses.rkat storage doctorreports 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_kindin aDecisionStorewrapper. Its default refuses, so noDecisionExecutorLoopstarts over a wrapper without it (DecisionError::Unavailable).claim_executoris 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::unclaimedinstead. - 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 everymeerkat*dependency to=0.9.10at 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/sdkand@rkat/webfor Core;meerkat-metaand@rkat/meta-sdkfor 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/createor 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 immediatesession/create, the firstturn/startof 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 immediatesession/createwhose first agent build failed, for example withtool_grant_gate_refused. Such a request now completes, and the loop answers its own turn with the retryableruntime_teardown_in_progresserror data. Affectsrkat-rpc, the Python and TypeScript SDKs that drive it,rkat mob deploy --surface rpcand other hosts ofmeerkat_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_membersand themob_list_memberstool, 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.
FileApprovalStorenow creates every file it writes (theapprovals.jsonstore, 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 whenconfig/patchorrkat config patchsets 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 withtool_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 isNotDispatched, so comparing it withOperationRefused::new(kind)no longer matches: comparekind()anddispatch(). A tool that runs an effect of its own before its effect entry forwardsOperationRefused::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 theweb_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
DecisionStorewrapper:claim_executor. Its default refuses, so noDecisionExecutorLoopstarts 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 typedRuntimeStoreError::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: itsSessionError::codeisSESSION_STORE_ERROR(wasAGENT_ERROR). meerkat_core::service::transport::jsonrpc_codeanswers-32006for it (was-32000).- A wire error built from it (
WireError::from) carriesINTERNAL_ERROR, JSON-RPC-32603(wasAGENT_ERROR,-32013). - The HTTP status stays 500, and a session method’s JSON-RPC error over
rkat-rpc(and therkatexit status) isINTERNAL_ERROReither way. MobHandle::wait_one,wait_all,wait_for_kickoff_completeandwait_for_members_kickoff_completeend withMobError::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_totalandruntimes_with_pending_deliveriesanswer while only scopes of other families are poisoned, and refuse withRuntimeDeliveryError::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.
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 (envorexternal_resolver) and gives the realm the account’scopilot_openai,copilot_anthropicandcopilot_geminiroutes, 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.
RealmConfigSectiongainscopilot(set it toNonein struct literals);ProviderBindingErrorgainsCopilotAccountRouteConflictandCopilotAccountSourceUnsupported, andFactoryErrorgainsAccountModel: add the match arms. -
The storage doctor counts the rows a rollback to 0.9.8 cannot read.
rkat storage doctorreports an Info findingidentity-store-rowsfor 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 itsoperator-instruction-envelopecount also reads committed boundary heads. Rust hosts:MobStorage::read_identity_record_rowsandMobStorage::identity_record_rowscount 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 whenopenai_live,experimental_liveorconsole_voiceis registered). - Rollback census in the storage doctor.
meta/storage/doctortakes the census the Meta 0.9.9 notes promised, read-only, as three Info findings with counts only:operator-instruction-envelope(sessions ofruntime.sqliteat session envelope 5),operator-instruction-mob-events(mob events at schema 10 inevent_log.sqlite3and in each child mob journal undermobs/) andidentity-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 --jsonaddsidentity_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_memberafter 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 latercompact_memberon that identity is refused as busy until the gateway restarts. Do: after a failedcompact_member, callmeta/respawnfor the identity, then restart the gateway. - Meta Forge 0.3.1 installs the matched Meta 0.9.10, Connect 0.9.10 and
meerkat-toolkit0.9.10 set on Linux x86_64 and macOS arm64. It is the first Forge release from this repository (tagmeta-installer-v0.3.1); Forge 0.3.0 and earlier stay inlukacf/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.
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 rkatincluded, with an older rustc. - Pin
=0.9.9. Move everymeerkat*dependency to=0.9.9at 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_requestevent 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 doctoron 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: RPCschedule/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 withgrant_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 RPCSessionRuntime 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_deniedtool error readsTool 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 containsCONTEXT COMPACTION.
Consent, approvals and governed steps
- Approval reads and decisions run host code.
ApprovalService::get,listanddecide_consentcall the host’s authorizationprepareandreview_operation_context(and, at a decision or a spend, the route’seligibility) on the caller’s thread, outside the approval owner’s locks, for a consent whose retained decision an owner publication change made stale.decide_consentcan answer a retryableStoreUnavailable, 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
ContextChangedwhen its binding, review tier or presented material changes, and asAuthorityChangedwhen its owners refuse the operation (an owner change gavecontext_changedbefore) 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 answeredUnavailable, and Core’s governed dispatch steps answerAuthorizationRefused(ReprepareRequired) where they answeredOperationAuthorizationUnavailable. A scoped original’s admission answers an owner change it meets aspolicy_changed, where it answeredpolicy_unavailable.
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_memberis 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, withMobError::MissingMemberCapability(outbound_comms_runtime), where it failedInternalafter the member’s session was created.
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 withFencedOut. 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:SessionBuildOptionsandAgentBuildConfiggaingrant_gated_toolsandmob_incarnation(DefaultandAgentBuildConfig::newfill both, which keeps every build unchanged);meerkat-rpc’sCreateSessionParamsgainsgrant_gated_tools;SessionToolinggainsgrant_gated,SessionToolVisibilityStategainstool_grant_gated_namesandtool_grant_open_names, andCoreApplyFailureCausegainsreason.AgentErrorReasongainsToolGrantGateRefusedandBuildAgentErrorgainsGrantGate; both enums are exhaustive.AgentBuildPolicyErrorgainsToolGrantGateWithoutAdjudication.SystemMessagegainsinstruction_entryandretired_instruction_body(Nonekeeps the previous behaviour), andWireSessionMessage::Systemthe same two wire fields.SessionLlmRequestPolicygainsoperator_instruction_lowering.CompactionContextgainsprojected_input_tokensandlast_context_refusal_boundary_index,SessionCompactionCadencegainslast_context_refusal_boundary_indexandlast_answered_request, andmeerkat_core::agent::compact::build_compaction_contexttakes the last answered request as its third parameter.Nonemeasures as before.TranscriptEditErroris#[non_exhaustive]and gainsSystemRowPruneRefused.ForkInstructionRefusalCausegainsHeadBodyRetired(wirehead_body_retired), which the generated Python, TypeScript and Web SDK refusal-cause unions list too.OpenAiAuthMethod,AnthropicAuthMethodandGoogleAuthMethodgainGitHubCopilotToken(wiregithub_copilot_token).MemberRespawnReceiptis no longerUnwindSafeorRefUnwindSafe.MobEventKindgainsOperatorInstructionCommittedandMemberInstructionTargetsRecorded, and itsMemberRetirementStartedandMemberRetiredgain 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-runtimeandmeerkat-coregain inputs, signals, effects, state fields and transitions, andInputFieldDomainKindgainsCiValues. Every new variant is appended after the released ones, so no implicit discriminant moves, except in two enums. Ingenerated::mob::TransitionId(meerkat-machine-kernels), the 14 member custody transitions it gains (RecordMemberCustodyUnrestored*andResolveMemberCustodyRestored*) sit directly beforeRetireMemberArchiveOnly, so the implicit discriminants ofRetireMemberArchiveOnlyand of every released variant after it move. Inmeerkat-runtime’sMeerkatMachineRuntimeInternalInput,ReplaceToolGrantGateandApplyToolGrantOpenSetsit directly beforeAbandonDeferredSessionPromotion, so the implicit discriminants ofAbandonDeferredSessionPromotionand of every released variant after it move. Neither enum has arepr, 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.
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
SessionAgentBuilderorMobSessionServicewrapper: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 answersSessionCommsIdentityRoot::NotKept. - a
SessionRuntimeLlmReconfigureServiceimplementation:live_session_own_operator_instruction_entry_placement, which says where the operator-instruction entry rows a live session wrote itself stand.
- a
MobSessionServicewrapper:record_member_instruction_target,release_member_instruction_targetandread_member_instructions. Their defaults refusedurability_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
SessionAgentwrapper:release_instruction_target_control, the live session’s half of that release. Its default refuses the same way. - a
SessionAgentBuilderwrapper:instruction_lowering_for_identity. Its default (None) leaves the status read unable to report that a model cannot carry operator instructions (lowering_unavailable). - a
MobSessionServicewrapper:runtime_turn_lost_its_host_runtime, as you forwardlive_session_actor_registered. Its default answersfalse, 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
MobSessionServicewrapper 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
AgentToolDispatcherwrapper:adjudicates_tool_grantsandobserves_bindings_only. Without the first, an agent with a scoped tool grant gate refuses to build over the wrapper (ToolGrantGateWithoutAdjudication). - an
AuthLeaseHandlewrapper:publish_source_credential. Its default fails closed, so agithub_copilot_tokenroute that reads its token from the environment, a command or a resolver fails to resolve over the wrapper. - a
RuntimeStoredecorator:load_tool_grant,list_tool_grants,put_tool_grant_if_absent,compare_and_put_tool_grant,append_tool_grant_auditandread_tool_grant_audit. Their defaults answerUnsupported, so the grant service refuses every grant behind the decorator and a gated name stays closed. - a
SessionCheckpointerwrapper: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
WorkGraphStorethat serves pages:list_public_eventsandlatest_event_seq, as the built-in stores do. The defaultlist_public_eventspages throughlist_events. - an
HttpAuthorizerwrapper: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
AuthLeaseHandlewrapper:mark_publication_refusedtoo. Its default fails closed, so GitHub’s refusal of agithub_copilot_tokenroute’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
retireof 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.
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_entryanswersIdentityEntryRead::UnreadableandRemoved, 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 answersMemberIdentityManagement::CreatedEntryfor 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 answeredRefused(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_identityof 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 answeredDeclaredEntryRefusal::NameTombstonedfor 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::IdentityArchiveduntil 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.
StoreOwnedIdentityUpdatecarries the identity’s expected spec digest, and a change decided against another spec is refusedIdentityChangeRefusal::StaleSpecwith the identity’s current digest and revision: read the record again (MobHandle::identity_record) and decide the change anew. SpawnMemberAdmissionObservationsgains two fields. The public fieldsbinding_presentandplacement_present(a runtime binding or a placement on the request, which a grant with manage scope alone admits) are new, so a struct literal outsidemeerkat-mobmust set them (falsekeeps the previous answer) or end with..Default::default().
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 kindmob_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):- Run
rkat storage doctoron 0.9.9 or later. - For each mob listed under
operator-instruction-mob-events, destroy the mob, or move its database (mobs/<name>.dbin the realm’s state directory, the path the finding names) out of that directory. - Only then start the older binary.
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 ofruntime.sqliteat 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 undermobs/;identity-store-rows: the identity-store rows of schema version 2 or later in the same mob stores (see below).
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_identitynames thesession_idof each identity): -
the mob events at schema 10, on
event_log.sqlite3and on each child mob database undermobs/that has amob_eventstable:
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’sWorkAuthorization::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, sowait_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 callswait_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 inmeerkat-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 withMobError::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
RuntimeStoredecorator:list_runtimes_with_recovery_work(without it, every start materializes every member); - a
CommsRuntimewrapper:close_inproc_routeandreopen_inproc_route; - a
SessionAgentBuilderorMobSessionServicewrapper:recorded_auth_binding; - a
WorkAuthorizationwrapper:run_entered_if_current_within(without it, every further step of an entered governed operation is refused).
Host store authors
A realm now askslist_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).
Consent on stock governed realms
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 recordsFailed, 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.
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.
Retained consent after an agent rebuild
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
MobSessionServicewrapper:settle_cold_predecessor_with_mob_lifecycle_authority_beforeandpublish_settled_run_terminal_for_actor; - a
CoreExecutorPublicationHandle:publish_settled_run_terminal; - a composed
RetainedJobSource:admission_committed, to the source that confirmed the job; - a
RuntimeStoredecorator:import_whole_blob_session; - a
CompactionCommitCoordinatorwrapper: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_failedevents with reason kindoutcome_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 returnsOkbefore 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.
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::ClassifyDueandClaimgain the fieldadmission_evidence: AdmissionEvidence,ResolveTargetProbegains the fieldredelivery: Option<ExistingDelivery>, and the input gains the variantsResolveReclaimExhaustedandResolveUnprovenLateNotAdmitted;OccurrenceLifecycleEffectgainsDueReclaimExhausted,ReclaimedAfterAdmissionandReclaimedAfterUnprovenDispatch;OccurrenceDueActiongainsReclaimExhaustedand is now#[non_exhaustive];Occurrence::classify_due_actiontakes the evidence as a second argument.
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 throughdeliver_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 answersExistingDeliveryAnswer::NotAdmittedPastDeadline, and the occurrence endsmisfired, as in 0.9.4.
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
BeginUnregisterSessiongainsqueued_inputsandrequeue_max_age_ms,BeginUnregisterUnservedAttachmentgainsqueued_inputs, andStategainsunregister_queued_inputs,unregister_requeue_max_age_msandregistration_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 setsfalse); - the input, effect and transition enums gain
ClassifyStopInputDisposition,StopInputDispositionClassifiedand its per-phase transitions, andInputAbandonReasongainsRequeueExpired, each appended last; meerkat-runtime’sMeerkatMachineRuntimeInternalInputgainsClassifyStopInputDisposition, appended last;- the wait-failure enums gain a kept input’s answer, appended last:
RuntimeCompletionWaitFailureObservation::RequeuedAcrossStop,RuntimeCompletionWaitFailurePublicErrorClass::SessionNotRunningandRuntimeCompletionWaitFailurePublicReason::RequeuedAcrossStop(also inmeerkat-runtime’smeerkat_machine::dsl), with the per-phase transitionsResolveRuntimeCompletionWaitFailureRequeuedAcrossStop*; meerkat-rest’sApiErrorgainsSessionNotRunningWithData, appended last.
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.ShutdownOptionsgainsqueued_inputs(with_queued_inputs) of the new#[non_exhaustive]enumQueuedInputsOnShutdown. Its default,RequeueDurable, whichShutdownOptions::default()andMobHandle::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), andStopfor 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 inputResolveAutonomousShutdownMemberActiongainskeeps_durable_run, the string enumAutonomousShutdownMemberActionKindgainsKeepForResume, and the transition ids gain the per-phase transitionsResolveAutonomousShutdownMemberActionKeepForResume*, each appended last.
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:RuntimeBindingsErrorgains the variantHosting(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 typedSessionError::ServedElsewhereorSessionError::HostingUnavailableinstead of aPrepareFailedmessage.meerkat-contracts:MobMemberStatusResultgains the fieldcustody_deferred: Option<WireMemberCustodyDeferral>. Its restore and cause vocabularies may grow:WireMemberCustodyRestoreandWireMemberCustodyDeferralCausehave anUnknown(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.
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: aSessionCheckpointerwhosecheckpoint_runreturnsOk(None)(nothing made durable) for a round’s first commit now fails that tool round before any of its tools runs; 0.9.4 acceptedOk(None)at every checkpoint. The trait also gainsrebases_runs(defaultfalse) andrebase_run. A checkpointer that answersfalsetakes 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:RuntimeStoregainscommit_prepared_whole_blob_run_rebase(defaultUnsupported) andsupports_whole_blob_run_rebase(defaultfalse). The session service re-bases a WholeBlob run only over a store that answerstrue; over any other store the run takes no round commit after its first compaction.meerkat-core:AgentEventgainsRunResumed { session_id, run_id, round, resume_point }, wire typerun_resumed, with the new non-exhaustiveRunResumePointKind(tools_pending,awaiting_model). A resumed run publishes it in place ofRunStarted.AgentEventis 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::DurableTailRecoveryOutcomegainsContinue { candidate, run_id, receipt };- the machine enums gain
DurableTailRecoveryClass::ContinuableCandidate,DurableTailRecoveryDisposition::ContinueRun,DurableTailRecoveryDisposition::OperatorRepairAndCommitInterrupted,RecoveredInputNormalizationReasonKind::ResumableRunandInputAbandonReason::ResumeRefused(with themeerkat_machine::dslbridge copies and the catalog and kernel types); - the session document vocabulary gains
RunIdCardinality::NoRunRowsand theDurableTailRunCursortype, andSessionDocumentInput::ClassifyDurableTailandSessionDocumentMachineAuthority::classify_durable_tailtakerun_cursorandcursor_inputs_open; MeerkatMachineStategainsresumable_run_id;MeerkatMachineInputgainsMarkRunResumable,ResumeRun,ReleaseResumableRun,SettleResumableRun,ReplayAppliedRunContributor,SuspendRunForStopandAuthorizeOperatorDurableTailRepair, andNormalizeRecoveredInputLifecyclegainsbound_run_resumable;MeerkatMachineEffectgainsResumableRunMarked,ResumedRunAuthorized,ResumableRunReleased,ResumableRunSettledandRunSuspendedForStop;MeerkatMachineInput::AuthorizeDurableTailRecoverygainsownership, of the new enumDurableRecoveryOwnership(NotProven,ExclusiveHost,ExclusiveWriter), with the bridge copies and the catalog and kernel types;meerkat-runtime’sMeerkatMachineRuntimeInternalInputgainsMarkRunResumable,ResumeRun,ReleaseResumableRun,SettleResumableRun,SuspendRunForStop,ReplayAppliedRunContributorandAuthorizeOperatorDurableTailRepair, 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
SuspendRunForStoparms,ClassifyDurableTailContinuableandClassifyStopInputDispositionRetainResumable. Every new value of the string enums and of the generated kernel enums (InputKind,EffectKind,TransitionId) is appended last.
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:PendingCallbackToolCallgainsdedupe_key: Option<ToolCallDedupeKey>, the struct variantAgentError::CallbackPendinggainsdedupe_key: Option<Box<ToolCallDedupeKey>>, andCoreApplyTerminal::CallbackPendinggainsdedupe_key: Option<ToolCallDedupeKey>;meerkat-runtime:CompletionOutcome::CallbackPendinggainsdedupe_key: Option<ToolCallDedupeKey>;meerkat-mob: the struct variantsMobError::CallbackPendingandBoundedTurnFailure::CallbackPendinggaindedupe_key: Option<Box<ToolCallDedupeKey>>;meerkat-contracts:WirePendingToolCallgainsdedupe_key: Option<ToolCallDedupeKey>, andWireCallbackPending::singletakes the key as its eighth argument.
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:LiveOpenResultgains the fieldadvisories: Vec<WireLiveOpenAdvisory>, left out of the wire when empty. It lists what a successfullive/openwent ahead without: todaystaged_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:WireLiveOpenAdvisoryhas anUnknown(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.
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_contexton a session no runtime of yours hosts first commits that run as interrupted (an ambiguous tail fails the write withSessionError::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 withServedElsewhereand 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 withSessionError::DurableTailRecoveryRefused, or withSessionError::DurableTailHeldForRecoverywhen 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 answersMobError::MemberCustodyDeferreduntil 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
misfiredwhen 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 underskip_if_running. This lifts the 0.9.4 known limitation (see “Upgrading to 0.9.4” below): acatch_up_withinwindow 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 ondelivery_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 withUnregisterQueuedInputs::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 withRequeuedAcrossStop, and the next start runs it once, before new work. JSON-RPC answers such a wait-32003and REST409SESSION_NOT_RUNNING, both withkindrequeued_across_stop. A kept input older thanmax_agewhen a start finds it still queued ends asRequeueExpiredwithout 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 withoutwith_queued_inputs(the new defaultQueuedInputsOnShutdown::RequeueDurable). ChooseStopexplicitly 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 endedRequeueExpired, 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,jsonlor 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 byrun_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 anoutcome_uncertaintool error instead. See Durable Runs. -
Write volume on WholeBlob realms: a
jsonlor host-store realm writes the whole session document at each round commit, twice per tool round; asqliterealm writes only the round’s rows. Long, tool-heavy runs onjsonlwrite much more than in 0.9.4. See Storage Operations. -
Dedupe key for tools outside the process: MCP
tools/callrequests carry the call’s dedupe key in_metaunderio.meerkat/tool_call_dedupe_key, and callback requests and pending callback calls carry it asdedupe_key; the SDKs pass it to callback handlers. A hostMcpCallContextProviderwhose metadata uses that name is refused withMcpCallContextError::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 withQueuedInputsOnShutdown::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 asRequeueExpiredand 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 answered409SESSION_NOT_RUNNINGwithkindrequeued_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_RECOVERYwith ambiguous evidence, such as a transcript that ends in a tool call without its result, can be resolved withrkat session resolve-held-tail <id> [--apply] [--runtime-store <FILE>] [--json]ormeerkat_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 answeredoutcome_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 ofmeerkat-store-conformance. See the Host Store SPI reference.
Upgrade checklist
- Pass the admission evidence to the changed
meerkat-schedulelifecycle inputs and toclassify_due_action, and add a wildcard arm forOccurrenceDueAction. - Custom
ScheduleTargetDeliveryimplementations: overridedeliver_existing_occurrenceif the target can find an earlier admission without admitting anew. - Custom
SurfaceScheduleSessionHostimplementations: returntruefromdecides_existing_admissiononly if they admit throughaccept_schedule_runtime_input_with_reconciliationon the calling task. - Read a mob destroy report as
WireMobDestroyReportin Rust, and a failed destroy’s report through the SDK accessor, not the error text. - Pass
UnregisterQueuedInputsDisposition::Stop(and0for a max age) where you buildBeginUnregisterSession,BeginUnregisterUnservedAttachmentorStateof the generated runtime machine, andkeeps_durable_run: falsewhere you build the mob machine’sResolveAutonomousShutdownMemberAction. - 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 isQueuedInputsOnShutdown::RequeueDurable). Before a downgrade, follow Downgrading to 0.9.4. TreatRequeuedAcrossStopas “runs at the next start” (do not resubmit) andRequeueExpiredas “resubmit if still wanted”. - Add a wildcard arm where you match
RuntimeBindingsError, and setcustody_deferredinMobMemberStatusResultstruct literals. - Custom
SessionCheckpointerimplementations: return a receipt fromcheckpoint_runonce a checkpoint is durable, and implementrebases_runsandrebase_runif your store accepts only strict continuations.RuntimeStoredecorators: forward the two WholeBlob run re-base methods. - Handle the
run_resumedevent, and pass the new fields of the recovery and runtime machine inputs. - Pass
durablewhere you buildProfileor its wire forms, and handleMobError::NonDurableServiceandMobError::IdentityAdoptionRequiresPersistentRuntime. - Name
dedupe_keywhere you build pending callback calls, and pass the key toWireCallbackPending::single. - Handle
ClosedOrphanedDrainwhere you matchRuntimeSessionQuiescentClose. - Open mob members’ live channels, WebSocket or WebRTC, with
mob/member_live_openinstead oflive/openby the member’s session id. - Tools whose effects must not repeat: record and check the dedupe key, as described in Durable Runs.
- On
jsonlor host-store realms, check the write volume of long, tool-heavy runs. - Set
advisoriesinLiveOpenResultstruct literals. - Set
execution_identity: NoneinMobMemberLiveOpenParamsstruct 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.
- 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.
- Shut down with an explicit
Stop(an unregister withUnregisterQueuedInputs::Stop, or a mob Shutdown withwith_queued_inputs(QueuedInputsOnShutdown::Stop)), so that no run and no queued input is kept. Forrkat-rpcand 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. - 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_failedevent (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).
- a session event log that holds a content-filtered
- Upgrade the SDKs with
rkat-rpc. The 0.9.3 Python and TypeScript SDKs fail on everytool_config_changedevent a 0.9.4rkat-rpcbuilds. An SDK downloads its own matchingrkat-rpconly when you supply none, so this happens when it runs a binary you supply:MEERKAT_BIN_PATH, an explicit path, or anrkat-rpconPATH(for example one Homebrew upgraded). SDKs older than 0.9.4 also do not know theturn_failedlive observation or theassistant_turn_failedtranscript 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_peerreply from 0.9.4, and the sender’sreply_to_peerreports 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
metadatakey; the old parser kept the last value); - a null
description, or a null value undermetadata(~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.
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::shutdownnow 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 withMobError::AdmissionClosed(reasonshutdown). 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::ShutdownInProgressinstead ofMobError::ActorCommandChannelClosed. It is retryable, with the authority retained (wire codeSessionBusy).ActorCommandChannelClosednow means the actor has exited or is exiting. - Owner leases end with the mob.
MobHandle::acquire_owneris refused withMobError::AdmissionClosedonce a destroy is admitted (reasondestroyed), 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
AdmissionClosedas final for that mob and retryShutdownInProgresslater.MobErroris now#[non_exhaustive]: add a wildcard arm to any exhaustive match on it.MobAdmissionCloseReasongainsShutdown,Destroyed,DurabilityFailStop,ActorLostandDispatchFailed. - Child tool bundle opt-in (Rust hosts): the new
ChildToolBundleAvailability::ChildOfferedoffers a bundle to child mobs without supplying it. A child mob’s inline profile mounts it by naming it intools.bundles; a name the host does not offer is refused with the newMobError::ToolBundleNotOffered.ChildToolBundleAvailabilityandChildMcpServerRegistrationErrorare now#[non_exhaustive](add a wildcard arm), andToolConfigand the wireMobToolConfigInputgainbundles(set it in struct literals, or buildToolConfigwith..ToolConfig::default()). - A member unregister a Shutdown left pending can be followed:
MemberShutdownOutcome::UnregisterPendingcarries asettlement(MemberUnregisterSettlement) and is#[non_exhaustive]; match it with{ stage, .. }.settlement.try_state()reads where the unregister stands andsettle_within(deadline)waits for it, also after the actor exited (MemberUnregisterState:Settled,Pending,Failed, orHandedOverwhen 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_surfaceorverify_member_surface) now removes that registration through the canonical unregister, terminating the inputs the session still held, and leaves the member Broken with the newMobError::MemberRegistrationRefused(RPC data kindmob_member_registration_refused) until an explicit repair;MobMemberSnapshot::registration_refusaland the wireMobMemberStatusResult::registration_refusalshow it (set the field in struct literals). A refused member can be retired, respawned or destroyed. A memberMobBuilder::resumerecreates 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::respawnand themob_respawntool 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 newMobError::RespawnPredecessorRestrictionsUnavailable(no dedicated wire code; its message isrespawn of member <id> refused: <reason>). Do: retire such a member and spawn a fresh one; a customMobSessionServicethat wraps a Meerkat session service delegates the newpredecessor_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 newMemberStopRun::ReloadRequiredandMemberRunStarts::ReloadRequired, wirereload_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 runReloadRequiredand its startsHeld(the cancel of its current run was not dispatched). A Resume refuses withMobError::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 answersMemberReloadDisposition::Discarded, and the next Resume completes the member’s revival. Do: reload the member withMobHandle::reload_member_registration, then Resume. Known limitation: in a multi-host mob, a remote member that needs a reload still makes a Stop fail withMobError::BridgeCommandRejected(causeinternal), and a Shutdown too when that member isAutonomousHost; 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 kindmob_member_destination_not_installed, not retryable), where it answeredMobError::WiringError; its failure class isRuntimeRejected, so schedule delivery recordsruntime_rejectedinstead ofmob_rejected. A host’s re-selection for a kept registration must advancecontext_generation. force_cancel_memberandcancel_all_workon a member whose runtime needs a durability reload answerMobError::MemberReloadRequiredat once (MEMBER_RELOAD_REQUIRED: JSON-RPC -32029, HTTP 409,rkat mob force-cancelexit 49) instead ofMobError::Internal. Do: reload the member withMobHandle::reload_member_registration, then cancel again.
Tool configuration events
- The lifecycle bit of tool configuration changes is named
settled, notpersisted:tool_config_changedevent payloads, storedtool_confignotices andmcpnotice blocks that 0.9.4 builds carrysettled. Rows and events stored by 0.9.3 and earlier keeppersistedwhen 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 thepersistedofmcp/add,mcp/removeandmcp/reload, which keep their name. - The tool-scope, deferred-catalog and failed-closed events and the MCP
restore-refusal delta now report
settled: truewhere they reportedpersisted: 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 waspersisted) and derive it fromstatus_info. In Rust, readToolConfigChangedPayload::settled(),ExternalToolDelta::settled()andSystemNoticeBlock::lifecycle_settled();ToolConfigChangedPayload::newtakes no lifecycle argument,SystemNoticeBlock::Mcpcarrieslifecycle_bit, andmeerkat-mcp’sExternalToolSurfaceEffect::EmitExternalToolDeltacarriessettled.
Refusals and content filters
- A provider refusal or content filter now fails the run as
content_filtered, with the stop the provider ended on (refusalorcontent_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 itsstop_details, and a Gemini prompt blocked before any candidate fails after one call instead of being retried. - Wire change:
error_report.reasonof a content-filteredrun_failedevent is now{"reason_type": "content_filtered", "stop": ..., "detail": ...}(it wasnull;detailis 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 backfailed, 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 itserrornow says the answer may be incomplete.- Do (Rust): build
LlmDoneOutcome::SuccesswithLlmDoneOutcome::success(stop_reason)orsuccess_with_detail(..)and match it withSuccess { stop_reason, .. }.AgentError::ContentFilteredgainsstopanddetail(a pattern that namesturnwithout..needs them), andAgentErrorReason, an exhaustive enum, gainsContentFiltered { stop, detail }: add the arm to everymatchon it.
Realtime responses that fail
- A realtime response the provider ends without completing it (OpenAI
response.donewith statusfailedorin_progress, orincompletefor a reason other thanmax_output_tokensorcontent_filter) now arrives as theturn_failedlive observation with its typedfailure.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 carriesturn_usage_accounting_unmeasured. - Do: route on
failure.status(failed,incomplete,in_progress, or{"unknown": {"debug": ...}}), treat the provider’sreason,codeandmessageas diagnostics, and decide in the client whether to ask again. Upgrade the SDKs with the server. - Do (Rust):
RealtimeSessionEventgainsTurnFailed { response_id, failure, accounting },RealtimeTranscriptEventgainsAssistantTurnFailed { response_id }andRealtimeTranscriptStopReasonKindgainsFailed; all are exhaustive, so add the arms.LiveProjectionSinkgains the required methodsignal_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_boundedandfork_member_then_run_detached,fork_member_at_turn_boundary(and so the live delegation’s durable fork), council participants, and the RPC forkssession/fork_atandsession/fork_replace. The error isFORK_INSTRUCTION_REFUSED(JSON-RPC -32037, HTTP 422, CLI exit 57). 0.9.3 committed such a child, and its first turn failed.fork_memberkeeps 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_inheritedwithMobBuilder::with_fork_instruction_policyorMobMcpState::with_fork_instruction_policy; an RPC client passes"inherited_instructions": "reactivate_inherited"to the fork call, whose result reportsreactivated_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_inheritedgets the typed refusal causemember_host_unsupportedfrom a 0.9.3 member host. - Do (Rust):
SessionErrorgainsForkInstructionRefusedandMobErrorgainsForkInstructionRefused { source_member_id, refusal }(exhaustive matches need the arms).SessionForkAtRequest,SessionForkReplaceRequest,DurableSessionForkTarget,PlannedForkRequestandBridgeCreateForkedParticipantPayloadgaininherited_instructions, andSessionForkResultgainsreactivated_instruction_count(set them in struct literals).TemporaryCouncilExitReasongainsParticipantForkInstructionRefusedandTemporaryCouncilAcquisitiongainsRefused. A turn refused because a fork child never activated its inherited instruction keys fails withAgentError::InstructionActivationinstead ofAgentError::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_appliedreports them, and each incoming comms notice publishes onepeer_content_ingested. - Replies name what they answer: the model’s peer message notice gains a
Delivery ID: <id>line and, for a reply, anIn reply to: <id>line.reply_to_peercan answer a message that joined the running turn. - Mixed versions: a 0.9.3 receiver that checks signatures refuses a
reply_to_peerreply from 0.9.4 (it does not knowin_reply_to), and the sender sees an ambiguous delivery outcome.send_messageand every other message kind still reach a 0.9.3 peer. Upgrade peers together. - Do (Rust):
SystemNoticeBlock::CommsandAgentEvent::PeerContentIngestedgaindelivery_id;CommsCommand::PeerMessage,InteractionContent::MessageandSystemNoticeBlock::Commsgainin_reply_to, as domeerkat-comms’sMessageKind::Messageandmeerkat-runtime’sPeerInput. Struct literals and exhaustive patterns name them.
Mob incarnations
- A mob keeps its incarnation across resume. Its create mints the
MobIncarnationIdonce 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 (provenanceUnrecorded). 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 asStaleDeliveryScope, and so isretire_at_scopebefore any step;recover_bounded_work_at_scopeanswersScopedRecoveryUnresolved::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_addresstakes the mob incarnation as its second argument (handle.incarnation()), andMemberDeliveryAddressgainsincarnation(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 answersMobError::IncarnationDestroyed(the finished destroy failed asInternal). Such a mob no longer fails the whole restore ofMobMcpState: it is left unrestored, listed byMobMcpState::unrestored_mobs, and a lookup of its id answers the refusal; the other mobs restore. - Creates record their provenance: a
MobMcpStatecreate for a caller session (the agent mob tools, temporary council seating,mob_create_definition_with_owner_bridge_session) is refused withMobError::ProvenanceUnavailablewhile the state’s mob set is not restored. Do: a host that restores mobs by inserting handles callsdeclare_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 aLiveMobIncarnationwitness: passhandle.live_incarnation()where you passedhandle.incarnation(). The scope readers still take aMobIncarnationId: pass the live mob’shandle.incarnation(), never an id decoded from input.MobIncarnationIdnow serializes as its UUID.MobErrorgainsIncarnationMismatch,IncarnationInconsistent,IncarnationDestroyedandProvenanceUnavailable, andMobStoreErrorgainsIncarnationInconsistent(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:
SessionCompactionCadencegainslast_rewrite_history_tokens(set it in struct literals).AgentEvent::CompactionCompletedandCompactionProjectionIntentgainsummary_sourceandestimated_history_tokens_after(patterns without..need them).CompactionSummarySourceis#[non_exhaustive](add a wildcard arm), and itsProviderCallvariant carries the call’ssource_bound.
Governed realms and authorization (Rust hosts)
StockGovernance::bind_promptbinds only a prompt of the local operator (Input::Prompt); any other input is refused withStockGovernanceError::RequesterUnsupportedbefore anything is written. Do: bind an outcome your own process reports (for example a connector finalization submitted as an external event) with the newStockGovernance::bind_host_outcome.- A host-authenticated stock composition refuses its own stock ingress principal as a requester, as it already refused the operator.
SessionAgentMandate::newdrops itscatalogargument (new(executor, servers, represented_subject)) and must select at least one MCP server (AgentMandateError::NoSelectionotherwise).SessionAgentMandate::catalog_lineageandAgentGrantRefs::catalog_lineageare removed.ExecutionRestrictions.resource_domainsis aDomainRestriction: build it withDomainRestriction::{unrestricted, exact, owned_by, unresolved}and read it withDomainRestriction::bound. Exact and unrestricted bounds keep their wire bytes.AuditObservationis#[non_exhaustive],AuditObservation::Refusedgainsread, andAuditPolicyReadgainspublication_instance.OperationRefusedequality includes whether the refused call’s tool code ran (OperationRefused::dispatch): comparekind()anddispatch()instead of comparing withOperationRefused::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 asreview_unsatisfied(context_changed). AnOperationReviewObservercan therefore see an attempt retired asContextChangedfollowed by a second attempt (the audit shows a secondReviewAttemptStarted). 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 answerUnavailableinstead ofDenied: a later attempt may succeed. A denial and malformed facts stayDenied.
Runtime and registration (Rust hosts)
ConfiguredMcpAttachmentProvider::configuredandNativeWorkAuthorizationHost::configured_mcp_attachment_for_agenttake the session’s exactRuntimeSessionRegistrationWitnessinstead of itsSessionId; read the id withregistration.session_id().AuthenticatedOriginalSource::retained_originalis replaced byretained_custody, which returnsRetainedCustody(Retained,AdmissionPendingorNotRetained). AnswerNotRetainedwhere you answeredNone.ContinuationAdmitErrorandBlockedDeliveryReasongainNotReady(ControllerReadinessFailure);ContinuationAdmitErroris#[non_exhaustive], andBlockedDeliveryReason’s variants no longer have defined discriminants (anascast on it no longer compiles). The wireWireControllerReadinessFailuregainsoriginal_admission_pending, which a Rust decoder built before 0.9.4 rejects.meerkat-mob:MemberRuntimeBuildIdentityis no longerUnwindSafe(wrap it instd::panic::AssertUnwindSafeto move it intocatch_unwind), andSqliteMobObserverDrainReportgainsretained_registrations.RuntimeDeliveryOwnerRetirement::joinreturns a#[must_use]RuntimeDeliveryOwnerRetiredreport instead of(): matchOk(_)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 withCompletionWaitError::BoundaryRolledBackinstead ofAuthorityUnavailable.CompletionWaitErroris 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 retryableRuntimeDriverError::RecoveryRepairBlockeduntil 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 retryableRecoveryRepairBlockednaming 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_contextrefuses a destination whosecontext_generationdoes not advance withRuntimeDriverError::ScopedContextGenerationNotAdvanced { bound, requested }instead ofInternal.- GPT Live adapters:
LiveDelegationNarrationKindgainsFinishedPendingandGptLiveBrokerObservationgainsInstructionsContextAppendWithdrawn(both appended last), andLiveSidebandProviderCommandgainsNoteDelegationFinishedContext, 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_completedevent 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
Backoffon 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 defaultedRuntimeStoreWriteFence::execute_if_current_blocking(for a caller on a blocking thread; the default callsexecute_if_current). A fenced write whose fence answersBackoffwhile the writer holds an async lock (the in-memory runtime store’s fenced writes, andMeerkatMachine’s publication of a registered session) is tried again for up to 2 seconds, with the lock released between attempts, instead of reporting the firstBackoffat once. Do: a fence caller in your own crate that holds an async lock retries aBackoffthe same way, sinceexecute_if_currentnever waits beyond its own I/O; a fence decorator that forwards fenced calls may forwardexecute_if_current_blockingas 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 decisionawait_lease(conditionsuspended). - Work that names an original its source owner has not settled yet is
reported not ready (
ControllerReadinessUnavailablewithoriginal_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_refusedtool result carriesdata{"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 asoperation_authorization_unavailable, notoperation_refusedwithmalformed_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_KEYand the other provider andRKAT_*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, withcontroller 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--routekeys 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_atorsession/fork_replacenow gets a build state derived from its source’s and can run a turn. It carries the source’s session configuration, without the source’sshell_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 kindfork_source_build_state_missing). A child forked by 0.9.3 that never ran a turn still failsturn/startwith “missing session build state”: fork its source again. @rkat/sdk: a Node process that callsMeerkatClient.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-rpcchild’s exit, not on its output pipes closing, so requests to a child that exited by itself fail within about a second (PROCESS_EXITEDin TypeScript,CONNECTION_CLOSEDin Python) andclose()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: setLIBSQLITE3_FLAGSto the value in SQLite Lock Profile for that build, and in an embedding application callmeerkat_sqlite::disable_memory_statistics_at_process_start()(anunsafe fn) in anunsafeblock as the first statement ofmain, before any other thread or SQLite connection exists.rkat storage doctorreports the profile and warns withsqlite-lock-profilewhen a lock is on. - Presence locks: a connection a store keeps open between operations
holds a presence lock (
<file>.mpresencenext to the database), and maintenance such asrkat storage migrate --applywaits for kept connections to close;rkat storage doctorlists the files asmaintenance-fence-lockfindings. - 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
completedat admission, and a delivery whose completion wait fails withBoundaryRolledBackorDurableOutcomeUnknownre-reads the input’s outcome for up to 5 lease periods (5 minutes at the default 60 s lease) before it endsdelivery_failedwithruntime_completion_authority_unavailable. A scheduled mob delivery whose redelivery finds the delivery already failed recordsdelivery_failed(0.9.3:completed). Do: a customScheduleTargetDeliveryresolves 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 defaultskippolicy (a 30 s grace) and the hosts’ 60 s claim lease the reclaim comes too late, so the occurrence endsmisfiredalthough its admitted input ran (nothing runs twice). To keep crash recovery, use thecatch_up_withinmisfire policy with awindow_secondscomfortably 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_promptandsession/restore_transcript_revisionon an idle persisted session no longer answerSESSION_BUSYafter the RPC server restarts. A session with a running turn or pending input still getsSESSION_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_BUSYwith data kindsession_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 testin an unpacked published Meerkat crate passes (meerkat,meerkat-runtimeandmeerkat-mobwith the features and the 8 MiB test stack,RUST_MIN_STACK=8388608, that their README prints), andrkatbuilds without its default features.
Upgrade checklist
- Stop every 0.9.3 process that shares a runtime store.
- Back up the realm state root; there is no downgrade to 0.9.3 after 0.9.4 writes to it.
- Upgrade the binaries, the Python and TypeScript SDKs and the Rust crates together, then start 0.9.4 on all of those processes.
- Fix
SKILL.mdfrontmatter the new parser refuses (duplicate keys, null values, custom tags,...lines), and quote extension values that must stay text ('0755'). - Handle
MobError::AdmissionClosedandMobError::ShutdownInProgress, and add wildcard arms for the non-exhaustive mob errors. - Read
content_filteredrun failures with their typed reason, and stop treating refusal text as an answer. - Move model changes on a running session to
hot_swap_llm_identity. - Update custom compactors for the new
prepare_for_summarization. - Governed hosts: bind host-reported outcomes with
bind_host_outcome, do not treat a review attempt retired asContextChangedas the call’s final outcome, and grant an environment key’s controller route by its route key if governed work should run on it. - Read tool configuration changes by
settled(acceptingpersistedon rows stored before 0.9.4). - Realtime clients: handle the
turn_failedobservation, and add the new arms andsignal_turn_failedin Rust. - Forks: handle
FORK_INSTRUCTION_REFUSED, and set or passreactivate_inheritedwhere a fork must carry activated host instructions; upgrade member hosts before their controller. - Comms: upgrade peers together (a 0.9.3 peer drops
reply_to_peerreplies), and expect in-turn steers in history. - Mobs: back up the mob stores (schema 12 has no downgrade), pass
live_incarnation()to the operator grant functions, and calldeclare_mob_set_restoredif 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 withStore(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_rewritesrewrites (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. Raisehistory_retained_rewritesif you need to reach further back. Code that walkscommits()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, agentdelegateand spawns into existing child mobs are refused (policy_denied, codechild_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 passApplicationToolPolicyBinding::Unmanagedto opt out explicitly. delegatehelpers now run as a child mob under that policy. Host-created mobs, same-mobmob_spawn_memberandfork_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
ChildAvailablewithMobMcpState::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 withInvalidArguments. On the agent surface, host filesystem skill paths, images byblob_idand videos byuriare 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_completeandlogin_cancel, theHostAuthService::mcp_login_*methods, theauth/login/*RPC and REST methods with an MCP target, orrkat mcp login(see Authentication); - give each server that needs interactive login an account selection:
oauth_account, oroauth_account_selection = "discover"or"unverified"(rkat mcp add --oauth-accountor--oauth-account-selection); - update
McpOAuthAuthority::new(persistence, auth_lease)andwith_http(persistence, http, auth_lease)calls, which no longer take a browser; - set
AgentBuildConfig::mcp_auth_resolver(useNoneto keep the old behaviour); - replace
BrowserOpener,SystemBrowserOpenerandMcpOAuthAuthority::interactive_login, which are removed.
- drive login with
- RPC, REST and the MCP server now install interactive MCP auth by default.
A missing credential surfaces as the typed
AuthorizationRequiredhost status.
Auth wire (auth/login/*, auth/status/get)
- Login params take a
target(a provider or an MCP server). The RustLoginStartParams,LoginCompleteParams,WireLoginStartandWireLoginReadyreplace their provider fields withtarget. - 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 withDeclaredToolUnknown.- A profile’s
read_onlynow travels asdeclared_tool_restrictionand no longer appears inAgentBuildConfig::tool_access_policy. The effective gate is unchanged. - Do: if you read
tool_access_policyoff a built config, readdeclared_tool_restrictiontoo. Members persisted before 0.8.51 keep their old restriction until respawned.
Mob Stop and Shutdown
MobHandle::stopreturnsResult<MobStopReport, MobError>.MobMcpState::mob_stopreturns the report, andmob_lifecycle_actionreturnsMobLifecycleReports.- Shutdown cancels members’ in-flight runs immediately. Use Stop if runs
should finish first.
shutdown_with_report(ShutdownOptions)reports per-member outcomes, andShutdownOptions::with_deadlinebounds 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: callMobHandle::redrive_retirementor resume the mob. - A spawn that completes into a Stopped mob leaves it Stopped and holds the
new member. Call Resume to run it.
Resetalso releases a Stop’s holds. MobBuilder::with_runtime_adaptermust be passed the session service’s ownMeerkatMachine(a clone of it). A different machine over the same store is refused withMobError::RuntimeOwnerConflict.
Live (GPT Live and WebRTC clients)
WireLiveAdapterStatus::Closedis now a struct variant,Closed { reason, reopen_recommended }. Do: matchClosed { .. }(or useis_closed()) and build it withWireLiveAdapterStatus::closed(). A plain close still serializes as{"status":"closed"}.AgentEvent::LiveChannelClosedis published on every committed close. Do: handle it in event consumers that match exhaustively on event types.- WebRTC clients should answer
live/media_health_requestedwithlive/media_health, and may applylive/assistant_playback_hint(duck/restore) to their playback. The TypeScript and Python SDKs now deliverlive/*notifications throughonLiveNotificationandon_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_channelis deprecated. Do: useinit_callback_channelfor 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, andCompactionConfig.history_retained_rewrites(default 4);MemoryIndexExclusion::EmptyText,TranscriptEditError::TranscriptRevisionRetired,LlmError::ToolChoiceUnsupportedandMobError::RuntimeOwnerConflict;SessionRuntimeLlmReconfigureHost::serviceis now aWeak(build it withArc::downgrade).
Upgrade checklist
- Back up stores you might need to roll back.
- Stop every 0.8.50 process that shares a store, then start 0.8.51 on all of them together.
- If you serve application tool policies, set a child application tool policy.
- Move host-only MCP servers and Rust bundles out of agent-created profiles.
- Update MCP OAuth hosts to the start/complete/cancel flow.
- Review Shutdown callers: use Stop to let runs finish, and set a
ShutdownOptionsdeadline that fits your termination grace period. - Update live clients for
Closed { .. },LiveChannelClosed, and the media-health and playback-hint notifications. - Leave any SQLite session that 0.8.50 reported as
Corruptedin place. 0.8.51 loads it.
