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.19
If you are upgrading from 0.9.18, check callers that stage model switches or handledelegate errors. If you plan to roll back, keep a backup from before
setting tools.web_search on a mob profile.
Staged model switches: do not resend the input
Abrain_swap result of staged or already_staged does not mean the switch
succeeded. If the target rejects the current reasoning level, the switch is
denied with CapabilityPolicy. The input runs on the original model. Check
the routing record or the host log; the agent gets no later turn notice. To use
the target, choose a supported level or explicitly clear the held level, then
request a new switch. On the stock host, a buildable target with no source of
supported levels is refused. If an existing source is temporarily unreadable,
the switch can take effect unchecked; a request on the target can still fail.
Rust hosts constructing RequestFiniteSwitchTurn or RequestUntilChangedSwitchTurn
must supply target_reasoning_effort and inspected_current_identity and update
named patterns (or use ..). None is not a compatibility verdict. Update
exhaustive TransitionId matches for the six reasoning-effort refusal variants:
finite and until-changed switches each have idle, attached, and running cases.
Custom SessionLlmReconfigureHost implementations that need the target identity
should implement inspect_target_session_llm_identity.
Mob profiles: preserve rollback options before setting web search
Rust struct literals forToolConfig, PortableToolConfig, WireMobToolConfig
and MobToolConfigInput need the new web_search: Option<bool> field. Use
web_search: None to leave the choice unset. A per-spawn override takes
precedence; a local member can store that override even if its profile omits the
key. A grant can open the tool despite web_search = false; the setting is not
an access boundary.
By source, versions 0.9.15-0.9.18 ignore the key in a mob profile and can drop
it on rewrite. Strict portable and wire forms reject it. Do not rely on false
to keep search disabled after downgrade, or assume an older host can reopen a
placed member’s stored spec. Restore from a stopped backup known to work with
the older version. A build from the 0.9.16 tag refused a placed member’s
stored profile in an earlier test. Reading state written by this change with a
released 0.9.18 runtime was not verified. See Web search.
Delegated helpers: update timeout and permission handlers
Whendelegate ends its own wait, handle execution_failed with
data.kind = delegate_helper_ended. Read reason and helper before acting:
cleanup can still be pending. Hosts watching tool events should also handle
ToolExecutionCompleted with an error, not just ToolExecutionTimedOut.
Keep handling the generic timeout: it can still occur before a helper is
created or when an earlier outer deadline expires. max_run_secs can shorten
the wait; to allow a longer wait, change [tools.tool_timeouts] delegate.
This is not a deadline on a long model call or on a remote helper’s tools.
A control-scope refusal at helper seating or objective binding is now
access_denied, without helper IDs. For a 0.9.18 caller, the same refusal is
execution_failed with the control scope denied message and no typed data.
Do not treat every execution_failed as a permission error or retry an
unchanged denied call. Rust dispatchers that forward the tools’ catalog must
also forward AgentToolDispatcher::dispatch_resolved_with_context to preserve
the resolved deadline. See Delegate: its wait and how it ends.
Self-hosted endpoints: read allowed strings from enum
If your endpoint inspects Meerkat’s tool schemas, read closed string choices
from enum, not per-choice descriptions. For an optional parameter, omit it
rather than assuming null is accepted. This affects the configured self-hosted
Chat Completions and Responses paths, not direct OpenAI or third-party tool
schemas. Request construction was checked, not acceptance by a live endpoint.
Meta Python: check comparisons against identity outcomes
If mypy or pyright flags a comparison on theoutcome of identities.operation(),
check the string against the result variants. For example, state.outcome == "refused"
narrows the result so you can read state.refusal. The annotations are more
precise; the strings and objects returned at runtime have not changed.
Competing MCP resumes: check history before retrying
When twomeerkat_resume calls overlap on the same session and one rebuilds it,
an error from the plain resume does not tell you whether its prompt ran. Alongside
-32003 (session_resume_required), you may see untyped errors such as -32603
(Agent error: agent error: Internal error: Runtime not ready: destroyed) or
-32005 (request cancelled). Wait for the other resume to answer, read the
session’s history with meerkat_history, and resend the prompt only if it is
absent. This limitation also applies to 0.9.18.
Upgrading to 0.9.18
This section is for systems running 0.9.17. The full list of changes is in the CHANGELOG under## [0.9.18].
Gemini provider default: Argon to Neon
Core’s Gemini session-model resolver now selectsgemini-4-neon instead of
gemini-4-argon when no explicit model or applicable configured/binding default
is supplied. Both require a paid Gemini API tier. For these sessions, retain
Argon with --model gemini-4-argon or [models] gemini = "gemini-4-argon".
Explicit model selections, configured/binding defaults and existing sessions’
recorded models keep their precedence. Hydrogen remains recommended and
selectable; gemini-3.1-pro-preview remains at the supported catalog tier.
An unset thinking level sends no thinking override. For a session moving from
Argon to Neon, Google’s documented default therefore changes from medium to
high; Meerkat does not explicitly send high. To retain medium thinking in
that session, keep Argon or set --reasoning-effort medium (or the corresponding
reasoning_effort parameter). An unsupported turn reasoning preference, such
as xhigh, is recorded as not applied and preserves the existing request level
or provider default. This is separate from strict reasoning_effort validation.
Two other consumers use the catalog default:
- Browser bootstrap with a Gemini key and no explicit model or configured Gemini model now selects Neon when Gemini is the highest-priority configured provider. An existing configured Gemini model remains in effect.
- When the fallback web-search helper uses Gemini, it now selects Neon directly
from the catalog. It does not use the main session’s explicit model,
[models] geminioverride or binding default. Pinning the session to Argon therefore does not retain Argon for this helper. The helper supplies no thinking override, so Google’s documented Neon default ishigh.
gpt-6-astra. Image-generation defaults are unchanged.
The existing Google Code Assist and Copilot Gemini login defaults remain
gemini-3.8-flash; catalog support does not establish access on those routes.
Forge’s local setup preset still selects gemini-3.1-pro-preview, and its
separately pinned installer catalog is unchanged. This Core catalog/resolver
change does not establish Neon availability in that installer.
A custom gemini-4-neon entry
The 0.9.18 catalog includes gemini-4-neon. Model IDs must be unique across
built-in, custom and self-hosted entries. Remove any custom
[models.gemini-4-neon] entry from realm/project configurations and mob
definitions before upgrading, or validation refuses the duplicate ID.
The built-in row supports low, medium and high; Google’s xhigh level
is not yet expressible by Meerkat’s Gemini tag. Neon requires a paid Gemini
API tier. Its provider default is separate from the global and image defaults.
See Providers for the synchronous limits. If rolling
back to 0.9.17, restore the custom entry where you still select Neon; that
release has no built-in Neon row.
Steers join the next model request
A change of timing, with no type, wire or schema change. It concerns hosts that send more than onesteer input into a running turn.
Do not rely on a model decision between consecutive eligible steers. In
0.9.17 one durable steer joined a running turn per model boundary, so steers
that waited together reached the model one request apart. Now, at a
boundary where a durable steer has registered its claim, the eligible prefix
of the durable steers that wait in the steer lane joins, in admission order,
and the next model request is the first to carry them. An acknowledged
admission is not inclusion in a request. No setting keeps one steer per
model boundary.
If distinct decisions matter, match the earlier steer to a model decision
before you send the next one. Its boundary_append_applied names the
input_id and the run_id of the turn that applied it, and that run’s next
successful turn_completed says the model has answered a request that
carried it. The match is by stream order: turn_completed carries no run id
and no success flag, so take the next one on the session’s stream after the
applied event and before that run ends (run_completed or run_failed).
The applied event alone is neither a response nor the durable
consumption of the input. The next steer then joins a later boundary, or the
follow-up turn when the run ends first. An earlier steer that itself takes
the follow-up turn publishes no boundary_append_applied: read its
last_run_id with session/input_status and take that run’s first
successful turn_completed.
When that turn_completed does not come (the call failed, the run discarded
what it applied, or the run reached its terminal or was replayed without
it), do not wait without a limit and do not resend the steer on your own.
Reconcile with session/input_status (the input’s state and its
last_run_id), boundary_appends_discarded and retained history.
A steer admitted after a request’s input is fixed waits for the next
boundary, even when its admission was acknowledged before the request was
composed or sent. A caller cannot tell the two instants apart, so an
admission acknowledged before the request left does not mean the steer is in
that request.
Each input keeps its own input id. A successful in-turn application that the
run retains is exactly once per input: its transcript rows, its delivery
witness and its boundary_append_applied. Several of those events can now
precede one model request, so match a delivery by input_id, not by one
event or one new transcript row per request. Later requests carry the rows as
transcript history, which is not another delivery.
A steer withdrawn with session/recall_input (or
MeerkatMachine::recall_queued_input) before it joins a run joins no
request and gets no row from then on, and the steers behind it are not
delayed. The recall withdraws the queued delivery; it does not undo what a
model saw of the steer in an earlier turn that applied it and returned it to
the queue. After the join a recall answers not_queued while the run holds
the steer, and already_terminal once the input has ended.
A durable steer that was admitted and still waits when its session is loaded
again from the store joins the resumed run’s next model request when that
run resumes, once, with the steers that waited beside it in admission order.
A durable steer admitted after the load and before their work has begun
joins that request behind them.
It does not wait for a follow-up turn. With no run to resume it starts the
next run as its own input. The limits are in
Durable steer.
Unchanged: no model request in flight is cancelled; steers still waiting when
the run ends take the follow-up turn in arrival order; an input that only a
fresh turn applies, and a directed delivery, never join a running turn. The
contract and its two cutoffs are in
Durable steer.
Meta 0.9.18
The full list is inmeta/CHANGELOG.md under ## [0.9.18].
- Console: the console the stock gateways serve now lists the mobs nested
under the gateway’s own mob (the mobs its agents create with the mob
tools) with their members.
Through 0.9.17 it hid every member of every such mob. After the upgrade
those members are listed, and can be inspected, read and sent to, by
every caller the access rules let see them: every caller of a console
with no access configuration (a member private to a person stays
private to that person), an access admin, and under a configuration any
caller a rule allows. A nested member is decided as an agent of its
own: by its identity
<mob id>/<name>, its role in its mob, its labels (source_mob_idnames its mob) and its spawn ancestors. So an allow rule that matches by role, by label, by"*"or on the member that spawned it now also shows the nested members it matches, and a deny rule hides them the same way. Do: before the upgrade, read the allow rules that match by role, by label or by"*"; to grant one nested mob’s members alone, select them withmatch_labels = { source_mob_id = "<mob id>" }, a label only the console writes. To keep nested mobs hidden as in 0.9.17, launchrpc_gatewaywithruntime_options.console_list_nested_mobs = false(Python.console_list_nested_mobs(False), TypeScript.consoleListNestedMobs(false)), ormeta_gatewaywith themeta/initparamconsole_list_nested_mobs: falseor the environment variableMETA_CONSOLE_LIST_NESTED_MOBS=false. A Rust host that builds the stock console itself passesstock_console_visibility_policy(NestedMobListing::Hidden); the Upgrade section ofmeta/CHANGELOG.mdnames each call. - Spawns into a mob an agent created: Meta refuses a spawn while it cannot
say for certain who that mob is private to. The caller (an agent’s spawn
tool, an SDK or RPC spawn, a schedule delivery) gets the spawn’s wiring
error. When nothing says for certain who the agent that
created the mob is private to (its own mob did not restore and is
quarantined, say), the error reads
who mob '<id>' is private to is not known: nothing says for certain who the member that created it is private to (its mob cannot be read here, or that mob's records no longer name the member); the spawn can be made again once they do. It clears when Meta can read that agent’s mob again and its records name the agent, with no restart: Meta then reads the created mob again by itself, and a spawn made after that read is seated. A spawn Meta refuses withwho mob '<id>' is private to is not known yet (the private-owner record is still being read); retry the spawnis made again. Do: bring the mob of the agent that created the mob back (meta/statuslists a mob that did not restore), then make the spawn again, and once more if it is still refused. When the mob of the agent that created it will not be hosted again, destroy the created mob and create it again. - The upgrade relabels no member: a member of a mob an agent created keeps
the
console.private_tolabel it was seated with, or none, and the label is decided only for spawns made after the upgrade. Where the agent that created a mob carries the label and a member of the mob does not, the Console lists that member to the mob’s owner and the access admins only: a member of a mob that is private to a person is that person’s on the Console, whatever its own row says. Do: to have a member’s label decided anew, retire it and have it spawned again, or destroy the mob and have it created again.
Upgrading to 0.9.17
This section is for systems running 0.9.16. The full list of changes is in the CHANGELOG under## [0.9.17]; read its Breaking and Upgrade notes
sections before you upgrade.
What was sent to a session that an earlier release had stopped
This is for a host on which, before the upgrade, a session stopped running after a response to a peer request that carried no result. From 0.9.17 such a response no longer stops the session (see Fixed in the CHANGELOG under## [0.9.17], the entry that begins “Peer requests: a response to a
peer request without a result no longer stops the requester”). What was
sent to such a session while it was stopped:
- At the first start on 0.9.17, an input that was queued behind the stop is ended as abandoned and is not run, however soon after the stop that start comes. Any start on 0.9.15 and 0.9.16 did the same. New work runs.
- One exception was seen: a message that a Meta gateway took with an
idempotency key (
meta/sendwithidempotency_key) is run at that start, once. Sending it again under the same key makes no second input and answers the session id and the input id. - No log line and no event reports an abandoned input to a host. A program that embeds Meerkat and waits on the input in the same process is given its end (read from the source).
- Where the caller holds the input’s id, its status can be asked:
JSON-RPC
session/input_status, ormeta/send_statuson a Meta gateway, readsabandoned, without a reason. Ameta/sendwithout a key answers no input id.
meta/send that carried an idempotency key
need not be sent again; if you do repeat it, use the same key, not a new
one: the repeat makes no second input and answers the ids, with which its
status can be asked.
A catalog model you had defined yourself: gpt-6.2-astra, gpt-6.2-sol
Model IDs are unique across the catalog, [models.<id>] entries and
self-hosted models, and 0.9.17 adds gpt-6.2-astra and gpt-6.2-sol to the
catalog. A realm or project configuration, or a mob definition, that has
[models."gpt-6.2-astra"] or [models."gpt-6.2-sol"] (quoted, as the ids
contain dots) is refused with
model id '<id>' must be unique across built-in, custom, and self-hosted entries:
a configuration by configuration validation, a mob definition when one of
its members is built. You have such an entry if you ran one of the models
before the catalog listed it. (Read from the source, not run on 0.9.17. On
the published 0.9.16, in one run each: gpt-6.2-sol ran with such an
entry, and rkat config patch refused an entry for an id its catalog
lists, gpt-6.1-sol, with this message.)
Do: remove the entry. The catalog row then serves the model with its own
limits and reasoning effort levels (see Providers).
After going back to 0.9.16 the catalog has no such row again: there
--model gpt-6.2-sol is refused (cannot infer provider from model 'gpt-6.2-sol', or, with the provider named, model 'openai:gpt-6.2-sol' is absent from the effective model registry) until the entry is back (run on
the published 0.9.16).
Upgrading to 0.9.16
This section is for systems running 0.9.15. The full list of changes is in the CHANGELOG under## [0.9.16].
Meerkat 0.9.16 is Core 0.9.16, Meta 0.9.16 and Connect 0.9.16, built from one
commit. What asks something of a 0.9.15 user, or tells them something, is in
the subsections below.
0.9.16 has no migration of stored state and, with one exception, no adoption
step. The release notes name none, and no changed source line of the release
touches a store schema, a store, journal or format version, or a migration (by
a search of the changed lines of Core, Meta and Connect; not by loading state
that a 0.9.15 binary wrote). One such load was made, of a persistent
meta_gateway’s state, and it found the one step this section asks of an
operator before a gateway starts: see the first item under Meta 0.9.16. Of the
one machine that changes the notes say: “No input, effect, state field or
outcome value of the machine changes, the machine’s version stays 1”. Of the
question sets a 0.9.15 store holds: “Every call 0.9.15 held keeps its key and
its decision id byte for byte, so the question sets of a 0.9.15 store are
found, listed, answered and settled as before, and nothing is migrated.”
Rust hosts: two enums gain variants
meerkat-runtime, meerkat-machine-schema and meerkat-machine-kernels:
RuntimeApplyFailureCause gains RequestRefused, appended last, and the
kernel’s generated::meerkat::TransitionId gains seventeen variants,
appended last. No wire form changes. “Every enum named here is exhaustive,
so a downstream exhaustive match needs the new arms, or a wildcard arm.” The
CHANGELOG lists the variants under Breaking.
Do: a Rust host that matches either enum exhaustively adds the arms, or
a wildcard arm.
rkat-mcp and rkat-mob-mcp: the profile tools refuse host-only fields
meerkat_mob_profile_create and meerkat_mob_profile_update “refuse a
profile that carries tools.mcp_servers, tools.rust_bundles,
tools.bundles or any key other than those of the public profile input and
auth_binding (JSON-RPC error -32602, invalid params; the message names
the field)”. Nothing is stored, and on an update the stored profile is
unchanged. Through 0.9.15 the tools accepted a profile in its raw form, and
a caller of them, which can be a model, could store an MCP server or a
bundle in a profile; on rkat-mcp, when a mob’s role named the profile, a
stored stdio server was started as a process on the host at the member’s
spawn (see Security in the CHANGELOG). The host methods mob/profile/create
and mob/profile/update are unchanged.
Do:
- A client that set these fields through the tools uses the host methods instead.
- Profiles stored before the upgrade keep such fields. “Read each realm profile back through the profile tools (with its revision) and update it with exactly what was read: the stored profile then holds no server and no bundle.”
- That step also removes a stored
auth_binding(the tools have taken one since 0.9.11), which the read-back does not show: “a profile that is meant to carry one needs it sent again in the same update. The same holds for every later update through the tools.” - “Respawn every member of the roles that use the profile.”
rkat-mcp and rkat-mob-mcp: the spawn tools and meerkat_run refuse reserved keys
meerkat_mob_spawn, meerkat_mob_spawn_many and meerkat_run “refuse a
reserved key in labels or in the context with JSON-RPC error -32602 and
no data”. The message names the key. “The reserved label keys are
mob_id, role, meerkat_id, agent_identity and those under meerkat.;
in a context, the keys of the meerkat namespace.” The spawn tools refuse
such a key and spawn nothing, a batch whole, and meerkat_run refuses one
and creates no session. A Rust embedder that composes the raw mob
dispatcher now meets the same rule, as invalid arguments.
Do: a client that sent such a key stops sending it.
Handing rkat-mcp to a model
The release notes give this advice: “An MCP client that
lets a model call this server’s tools should not offer it the following
tools, unless that model may start processes on the host and change the
server’s configuration: meerkat_mob_profile_create,
meerkat_mob_profile_update, meerkat_mob_create, meerkat_mob_spawn,
meerkat_mob_spawn_many, meerkat_mob_respawn, meerkat_mob_member_send,
meerkat_config, meerkat_schedule_create, meerkat_schedule_update. The
server has no setting of its own that withholds a tool; the filter is the
client’s. This list is what is known at this release.”
Do: filter those tools in the MCP client, and start the server with the
confinement flags (--confinement workspace; see
OS process confinement):
they apply to every process the server launches, and where the platform
cannot enforce them the launch is refused.
The shell job tools answer only for the calling session’s jobs
shell_job_status and shell_job_cancel looked a background job up by its
id alone, and a realm’s job store is shared by all its sessions, mob members
included (0.8.8 through 0.9.15). “From this release both tools answer only
for the shell jobs and monitors that the calling session started. Any other
id is answered exactly as an id that does not exist.”
To know: “A member’s new session does not reach the jobs its earlier
session started: they are not cancelled, and their ids are answered as
unknown. A fork does not reach its source’s jobs. A monitor that the host
started is answered as unknown to a member whose build carries another
realm tag.”
Do: a workflow in which one session reads or cancels a job that another
session started no longer works: the session that started a job reads and
cancels it. The jobs a member started before a respawn or a reset are out
of its reach.
Meta 0.9.16
Meta 0.9.16 pins Core=0.9.16. The full list is in meta/CHANGELOG.md
under ## [0.9.16].
- A persistent
meta_gatewayon its built-in default definition does not start after the upgrade until its definition is given as a file. This is ameta_gatewaylaunched withpersistent_sessions: truein a workspace that has neitherconfig/mob.tomlnor a definition file. The built-in default definition’s mob id is derived from, among other things, the gateway’s version, so the 0.9.16 gateway computes another id than the one recorded in the state directory and refuses to start on it. What you see: the gateway exits with code 1 and answersmeta/initwith{"error":{"code":-32603,"message":"failed to bootstrap local runtime"},"id":null,"jsonrpc":"2.0"}; the reason is only in the gateway’s log:the supplied mob definition diverges from the canonical definition in this storage, in: id. Nothing is lost, and the 0.9.15 gateway still starts on that state. Do: copy thedefinitionobject from<state directory>/event_log.sqlite3.composition.json(by default the state directory is<workspace>/state) into a new file<workspace>/definition.json, then start the 0.9.16 gateway: it starts on the recorded mob, with its members and their sessions. You can do this before the upgrade or after the first refused start. This is not new in 0.9.16: it holds for every upgrade of such a gateway since Meta 0.9.9, and on such a gateway the same refusal follows from moving the workspace or changing a file under itsconfig/,skills/,hooks/ormcp/directories; with the definition given as a file the id no longer depends on any of these. The stdio gateway (rpc_gateway, which the SDKs start) is not affected. (Shown by runs: state written by the published 0.9.15 gateway on its built-in default definition was refused by the 0.9.16 release candidate, and served by it after the copy, with the member and its session as they were; the published 0.9.15 gateway refused a moved copy of its own workspace in the same way, and the definition file cured that as well. That it holds since 0.9.9, that a changed file under those directories has the same effect and that the stdio gateway is not affected: read from the source.) - A name hidden from the caller answers as a name no agent holds. A
request that names an agent the caller may not see because it is private
to another person now gets, on each of these doors, “the answer the same
door gives for a name no agent holds”:
meta/agent_memory/remember,meta/schedule/create,POST /console/send,POST /console/send/recover, the host’s send precheck (ConsoleSendPrecheck::check), a Console schedule’s fire, and the Console RPC methods that take their member undernameorrole_targets. “No answer for a name no agent holds changed”. Do: “a client that matched the old answer must match the new one”; the Meta changelog lists each old and new answer under Breaking. - The Console’s access save methods refuse an unknown key.
meta/access/set,meta/access/rules/upsertandmeta/access/groups/set“refuse a request that holds a key the access configuration does not define, in the configuration itself, in a group, in a rule or in an approver, with-32602”, and nothing is applied or saved. “Through 0.9.15 the key was dropped and the rest applied.” Do: a client of these methods sends only keys the access configuration defines. - Check the access file of a gateway that has one. The loader of the
file still drops a key it does not know and applies the rest of its
table, in 0.9.16 as before: a deny rule whose
effectwas misspelt was loaded as an allow rule, and a rule whose only selector was misspelt applied to every agent. Do: signed in to the Console as a person listed in the file’sadmins, callmeta/access/getand readresult.configrule by rule against the file; the Meta changelog gives the call, the keys the configuration defines and what to compare, under Known limitations (“The access file’s loader still drops an unknown key”). - An agent’s spawn tools refuse the label
agent_identity. “An agent’smob_spawn_member,delegateandfork_offrefuse a call that supplies the labelagent_identity, in its ownlabelsor in aspecsormembersentry, as invalid arguments.” Do: instructions or tool wrappers that had an agent set that label stop setting it. - Reload open Console pages after the upgrade. “A Console page that was
opened before the gateway was upgraded keeps running the earlier front
end until it is reloaded.” An earlier front end cannot answer an agent’s
questions (
ask_user). “An application that mounts the Console package builds it from the source of its gateway’s release.” Do: reload every open Console page, and rebuild a mounted Console package. - The refusal of a mob definition update names its revisions in another
order. The refusal that
declare_spec_update(declareSpecUpdate, the Rustspec_update_ceremony) gets for its revision now readsthe canonical definition for mob <id> is at revision <stored>, not the expected revision <expected>; this declaration did not change it; declare again with the current revision. Do: “A host that read the stored revision out of the old sentence must read it anew: both revisions are still in it as numbers, but the stored revision now comes first and the expected one second. The error’s type, its code (-32014) and its fields are unchanged.” See One-shot mob definition update. - To know:
name_takenand the order of agents. A create under a taken name is now refused before it is held for a person, where the caller is shown what holds the name. “A create refused before a hold (new in 0.9.16) counts the agents as the request lists them, so a host that readsagents[i]gets name order from a create the rules allow and request order from a create refused before a hold.” - To know: a module named
live. “On a build withopenai-live, a loaded module namedliveno longer receives this one method name”:live/webrtc/answernow reaches the gateway’s live handler. - To know:
ask_userundertools.grant_gated. A profile that listsask_userundertools.grant_gatedand also restricts tools (tools.denyortools.read_only), used for a member that is given no stockask_user, “is refused at the member’s build as before, now with the grant gate’s refusaltool_not_mounted” where 0.9.15 answeredunknown_tool(read from the source, not run). - To know: the subject key of a question set. An
ask_usercall with a very long tool-call id is now held. “Inmeta/decisions/listandmeta/decisions/getthesubject_keyof such a set is a 122-byte key that names the run and a digest instead of the agent and the call id”; the same holds for Core’sdecision/listanddecision/get.
Connect 0.9.16
A profile used for agents hosted by Connect’s native host may listask_user in tools.deny. In 0.9.15 the build of such an agent was refused
with the deny (profile '<name>' denies tool 'ask_user', which is in none of its tool vocabularies). From 0.9.16 the deny is accepted; those agents
are still not offered the tool, with the deny or without it. Nothing to do:
a profile shared with a Meta gateway keeps its deny.
Rolling back to 0.9.15
From the release notes: “an input that 0.9.16 ended as never executed because its turn was refused for its reasoning-effort level is read by 0.9.15 as the abandoned outcome 0.9.15 itself writes for a run that never began executing. Nothing is refused. Where a Meta notice names the reason, it says ‘without running’ where 0.9.15 would have said ‘stopped’.” A question set that 0.9.16 held for anask_user call with a very long
tool-call id is still listed and answerable on 0.9.15, and a replay of that
call is refused there, as every such call is in 0.9.15 (read from 0.9.15’s
reader code, not run). The notes name no other rollback step.
Upgrading to 0.9.15
This section is for systems running 0.9.14 or 0.9.13. A system on 0.9.12 or 0.9.11 reads “Upgrading to 0.9.14” and “Upgrading to 0.9.12” below as well: the second says what those releases do with stored state. The full list of changes is in the CHANGELOG under## [0.9.15].
State that 0.9.14 or 0.9.13 persisted loads under 0.9.15 as it is. What
that rests on differs by store:
- Core’s stores (the mob, schedule, session and runtime stores: the SQLite stores and, for a realm kept in the host’s own database, the stores the host store SPI carries): no migration and no adoption step. No store schema, journal, session or machine state version changes, and each stored field 0.9.15 adds is written only when it is set and read as unset when absent. This rests on a comparison of the stored forms of the two releases and on the tests of the forms that gained a field, not on loading state that a 0.9.14 binary wrote.
- Meta’s own stores: no change was found in the serialized form or the schema version of a stored Meta type. This rests on a read of this release’s changes to Meta, not on an audit of each stored form.
- A store the host implements itself (a host-supplied schedule store, for example) holds Core’s serialized forms, so the same holds for it provided it stores them whole and keeps the keys it does not know.
Configuration documents are readable by their owner only
On Unix the engine writes every configuration document readable by its owner only (mode 0600), whatever the process umask: a config document (~/.rkat/config.toml, a project’s .rkat/config.toml, a realm’s own
config.toml), the config_state.json beside it, and mcp.toml
(~/.rkat/mcp.toml, a project’s .rkat/mcp.toml). Through 0.9.14 these
files took the umask’s mode. The one exception is a directory that has the
setgid bit: the documents written there are 0640, readable by the
directory’s group. A document the engine writes is never writable by its
group and never readable by others. See
File permissions.
Do:
- A document an earlier release wrote keeps its mode until the engine next
rewrites it. To make the existing ones owner-only now, run
chmod 600on each that exists:~/.rkat/config.toml,~/.rkat/config_state.jsonand~/.rkat/mcp.toml; a project’s.rkat/config.tomland.rkat/mcp.toml; and each realm’sconfig.tomlandconfig_state.jsonin its realm directory (<project-root>/.rkat/realms/<realm>/for the CLI, or<state-root>/<realm>/). - Where several local accounts read a document through group permissions (a
project checkout or a realm directory shared by a group, or an install
that runs a helper or a verifier under another account), the group loses
that read at the document’s next rewrite unless the document’s directory
has the setgid bit. Set it once on each shared directory, with
chmod g+s <dir>(the.rkatdirectory of a shared project, a shared realm directory): the documents written there are then 0640 with the directory’s group. A document the engine already rewrote as 0600 stays 0600: runchmod g+ron it once. - An install that cannot set the bit grants the read itself after each
write, with
chmod g+ror an ACL on the document. A write replaces the file, so a grant on the file before it does not carry over, and a default ACL on the directory does not reach a file that is created 0600.
admission.lock is 0640 with
its directory’s group in every directory.
rkat run --comms-binding-out replaces what is at its path
rkat run --comms-binding-out <PATH> no longer writes into what is already
at the path. It removes the file there and creates a new one that only its
owner can read (0600 on Unix), whatever the umask and whatever mode the
older file had. The flag is described under
CLI usage in the comms guide.
Do, where an install relied on the old write:
- A symbolic link at the path: give the flag the path of the file itself. The link is replaced by a regular file, whether it pointed to a regular file or to nothing. Through 0.9.14 the binding was written through the link into the file it named; now that file is left as it was, or not created, and does not receive the binding.
- A named pipe, a socket, a device or a directory at the path, or a
symbolic link to one of them, is refused and left untouched. So is any
path in
/procor in/dev, whatever it holds;/dev/shm, a memory file system for ordinary files, is the one exception.--comms-binding-out /dev/stdout, or a named pipe a supervisor reads the binding from, worked before and is now an error: write the binding to a regular file (one under/dev/shmwill do) and have the supervisor read that. - The directory of the path must let
rkatremove and create a file in it. A binding file that was created forrkatin a directory it cannot write could be rewritten in place before, and now fails: giverkata directory it can write. - A supervisor under another account than
rkatcan no longer read the binding file (under the common umask 022 it could). Run the supervisor under the same account, or grant it the read after each write (chmod, or an ACL on the file): the file is a new one every time, so a grant on the older file does not carry over. - A binding file an earlier release wrote keeps its mode until it is
written again: run
chmod 600on it, or delete it once the supervisor has read it.
rkat mob host --descriptor-out is owner-only in
the same way.
The Web SDK’s provider proxy listens on loopback and compares origins
The standalone proxy of@rkat/web (npx @rkat/web proxy, startProxy)
listens on the loopback interface (127.0.0.1) by default; through 0.9.14
it bound every interface. The proxy, and a createProxyHandler embedded in
your own server, now compare a request’s Origin header before the
provider is called and answer 403 when the origin is not allowed: loopback
origins by default (localhost, any 127.x.x.x address and [::1], http
or https, any port), the one origin --cors-origin <origin> (allowOrigin)
names, or any origin with *. Through 0.9.14 every origin was allowed by
default and the option set the response header only. A request without an
Origin header is forwarded as before, except one a browser marks
Sec-Fetch-Site: cross-site, which only * allows: the proxy does not
check who calls it. See
the proxy example.
Nothing changes for a page served from a loopback origin that calls a proxy
on the same machine, or for a local tool that sends no Origin header.
Do, where one of these applies:
- The proxy is reached from another machine or through a container’s
published port: pass
--host <address>(0.0.0.0for every interface). On such an address a caller on the network that sends noOriginheader is forwarded with no check, so put the proxy behind your own authentication. - The page that calls the proxy is not on a loopback origin: pass
--cors-origin https://app.example.com.--cors-origin '*'allows every origin and is the only setting that serves a page opened from a file or a sandboxed frame (Origin: null). - Your server embeds
createProxyHandlerwithoutallowOrigin: the handler now serves loopback origins only, and that refuses your site’s own pages too, because a page sends anOriginon its POSTs to its own server. Pass the site’s origin asallowOrigin(one origin, as a string), orallowOrigin: '*'for the earlier behaviour. AnallowOriginit already passes is now compared with each request. A dependency range such as^0.9.14takes 0.9.15 at the next install. - A client reaches a loopback-bound standalone proxy under another host
name (a hosts-file alias, a local reverse proxy that keeps the original
Host): it gets 403, so call the proxy aslocalhostor127.0.0.1.
rkat run --output json: a failed run prints a failure document
A failed rkat run --output json (or --json, with or without --resume)
now ends stdout with a JSON failure document, {"error": {...}}. Through
0.9.14 a failed run wrote no document to stdout. The exit statuses and the
stderr text are unchanged, and text and HTML output print no document. See
JSON failure document.
Do: a script must not read non-empty stdout as success, nor parse the
last stdout document as a run result without looking at it. Decide by the
exit status, or by the document’s top-level key: error is a failure,
status ("pending_tool_call") a run waiting for an external tool result,
and anything else the run result.
A definition update that drops a profile agents were created on
MobStorage::update_definition (on Meta, a declared definition update:
runtime_options.declare_spec_update) refuses an update that drops a
profile, or renames it, while a created agent’s row names the profile: the
answer is the diagnostic profile_held_by_identity at profiles.<name>,
which names the agents, and nothing is written. Earlier releases accepted
the update, and such an agent then failed each restore.
Before such an update: keep the profile, or update those agents to
another profile or remove them. An archived agent holds its profile; a
removed one does not. A start that carries no update starts as before.
After a rollback from a later release: a created agent’s row that
release wrote may not be readable by this one. While the mob has such a
row, an update that drops or renames a profile is refused the same way, at
profiles, naming those agents, since such a row may name the profile.
Keep the profile, or run the update on the release that reads the rows.
Exported agents: an import of exported agents
(MobHandle::import_created_identities) restores their rows without
judging their profiles against the definition, and between the purge and
the import the check reads no row. Keep the profiles of exported agents
until the import.
Code that reads diagnostics: a consumer that reads diagnostic codes as
text meets a code it did not know, profile_held_by_identity. Rust code
that matches meerkat_mob::DiagnosticCode exhaustively adds an arm for
ProfileHeldByIdentity, which is appended last.
Schedules paused for their target and a rollback
A schedule can be paused for its target (ScheduleService::pause_for_target):
it is stored as a paused schedule whose machine state carries
paused_for_target: true, and only such a schedule is resumed when its
target takes deliveries again. Nothing changes for a schedule that is not
paused that way, and the upgrade needs no step.
Rolling back: an earlier release reads such a schedule as paused and
never resumes it on its own. It ignores the mark, and drops it when it
writes the schedule while it is paused (an update, a pause by name, a
target snapshot sync, a late supersession acknowledgement); a schedule it
does not write keeps the mark. After returning to 0.9.15, a schedule whose
mark was dropped stays paused when its target comes back: resume by name
the schedules of the targets that take deliveries again and are still
paused. The loss is on the safe side: such a schedule never fires at a
target that takes no delivery.
Schedule tick reports are non-exhaustive (Rust)
meerkat_schedule::ScheduleTickReport gains the field executor_lockout
and is now #[non_exhaustive]. Code outside the crate that builds a report
with a struct literal starts from ScheduleTickReport::default() and assigns
the fields it needs, and a pattern that names its fields ends with ...
Code that only reads a report needs no change. The field is set when a
schedule driver finds itself locked out behind its own executor lease; see
Executor Lease And Crash Recovery.
The occurrence lifecycle machine gains an input (Rust)
The occurrence machine gains the inputReleaseClaimBeforeDispatch, which
the schedule driver sends to give a claim back when its dispatch cannot
start. In meerkat-schedule it is
OccurrenceLifecycleInput::ReleaseClaimBeforeDispatch { admission_evidence, at_utc }: admission_evidence is what the occurrence’s receipt history
proves about earlier attempts (the machine admits the release only when no
dispatch was recorded), and at_utc is the store’s time of the release.
Exhaustive matches on these enums need the new arms:
OccurrenceLifecycleInput in meerkat-schedule; OccurrenceLifecycleInput
and OccurrenceLifecycleInputVariant in meerkat-machine-schema
(catalog::dsl::occurrence_lifecycle); Input, InputKind,
OccurrenceLifecycleInputVariant and TransitionId
(ReleaseClaimBeforeDispatchFromClaimed and
ReleaseClaimBeforeDispatchAfterSupersession) in meerkat-machine-kernels
(generated::occurrence_lifecycle). Every new variant is appended last, so
no existing variant’s implicit discriminant moves. No stored occurrence or
receipt changes shape, so there is nothing to migrate and an earlier release
reads the same rows (read from the source): a claim given back is recorded
as a lease_expired receipt with the detail claim released because dispatch could not start.
Store-owned agents: seats an earlier release recorded
A store-owned identity is an agent whose record is its row in the mob’s identity store, an agent created at run time for example. Two notes apply to a mob that holds such agents from 0.9.9 through 0.9.14. Neither needs a step for the upgrade itself. A seat recorded ephemeral. From 0.9.15 the seat of a store-owned identity is a durable identity’s, whatever its profile says of durability. A seat that was recorded ephemeral (by a release from 0.9.9 through 0.9.14, for an identity on a profile withoutdurable = true, or kept by an
adoption from a plain worker) is not converted at a start or at the
adoption. The identity joins the durable resume gate and Core’s lists of
durable identities (MobHandle::durable_identity_members,
MemberBindingHistory::durable_identity_bindings) at its next seat, or at
a respawn of its member (MobHandle::respawn_member), which keeps its
conversation.
Do: a host whose checks read those lists respawns the members it needs
listed now.
Seat labels an earlier release left behind. 0.9.9 through 0.9.14 kept
a seated member’s labels at a label update of its identity, so such a seat
can carry other labels than its row. Those releases wrote no record of an
owed restamp, so no start and no build of 0.9.15 moves the seat’s labels.
MobHandle::identity_record_census() counts such seats in seats_stale.
Do: while seats_stale is above zero, bring each such seat up to date
before the host adopts MemberBuildPreparer::prepare_store_owned_seat or a
spawn customizer that sets labels. Respawn the member with its row’s labels
(MobHandle::respawn_member with MemberRespawn::new().with_labels(..)),
or update the identity: any update then records the restamp its seat row
is owed, and the member’s builds are compared with the row’s labels from
then on. A host that answers such a member’s seat from its row
is otherwise refused the member’s build, with a refusal that names the
label keys that differ. A seat whose owed restamp 0.9.15 recorded itself
(see Rolling back to 0.9.14) is counted in
seats_stale too and needs no step here: its builds are compared with the
row’s labels.
Temporary council mob ids and records
No action is needed to upgrade, unless a mob definition of yours has an id that starts withcouncil--.
Mob ids of the council form. From 0.9.15 a create under an id that
starts with council-- is refused as an invalid definition (diagnostic
reserved_system_identifier at id): by the agent tool mob_create,
mob/create, meerkat_mob_create, the Web runtime’s mob_create,
rkat mob run, rkat mob deploy and the Rust create entries of the mob
state. The form belongs to the mob a
temporary council creates
for itself. 0.9.14 and earlier releases refused no mob id of this form, so
a deployment may hold such a mob. It keeps loading and working: it is
restored, listed and managed as before, its members run, and it can be
stopped, resumed and destroyed; the mob state logs one warning that names
it. Once that mob is destroyed no mob can be created under its id again,
and while it exists a temporary council whose council id matches it ends at
seating and leaves the mob untouched. A pack whose definition has such an id
can no longer be deployed with rkat mob deploy, which builds its mob anew
each time.
Do: give a mob definition whose id starts with council-- another id
before its next create.
The council record. The stored record of a temporary council gains two
optional keys. temporary_mob_custody says whether the council issued the
create of its mob and names the incarnation that create made
({"state": "not_created"}, {"state": "creating"}, or
{"state": "created", "incarnation": "..."}). convener names the session
whose council tool call convened the council ({"session_id": "..."});
a council a host runs directly has none. Nothing is migrated and no other
key of the record changes. A record that 0.9.14 or an earlier release wrote
has neither key, and 0.9.15 reads it as a council with no convener that
names no mob of its own: recovery seals and cleans up such a council and
does not run it again, its cleanup finds its mob by id under the guards
Temporary councils
describes, and a host’s create hook is told no convener for it. 0.9.15
reads temporary_mob_custody strictly: a record whose custody holds a
state it does not know does not decode, and the council’s recovery cannot
read it. 0.9.15 writes the three states above.
Operator instruction limits bound a member’s snapshot
No action is needed to upgrade. A mob’s operator instruction limits (64 records and 1 MiB of Active bodies) now bound one member’s snapshot, the shared records plus the member-targeted records that name the member, not the mob as a whole. A mob can hold a member-targeted record for each of any number of members, and a member’s session and status row no longer list other members’ member-targeted records. For a session that 0.9.14 wrote, this holds from the mob’s next write of the member’s snapshot: until then the session keeps the slots it was given. Shared records (targeted at every member or at a profile) keep the bound they had. See Operator instructions. Rust code that matches on the kernel’smeerkat_machine_kernels::generated::mob::TransitionId by variant: the enum
gains SetOperatorInstructionAdvanceSlotLimitExceededRunning and
SetOperatorInstructionAdvanceSlotLimitExceededStopped, appended last, so
an exhaustive match needs the two arms and no existing variant’s
discriminant moves.
Operator instructions for a member and its forks
No action is needed to upgrade: a member-targeted record stays its member’s alone unless it is written withinclude_forks, and a fork then runs under
the records written for the first member of its fork family and its forks
(see
Operator instructions). One behaviour
changes without the field: a durable fork child has its operator instruction
snapshot, with the records the mob targets at every member or at its
profile, recorded before it is seated, and a fork whose snapshot
cannot be recorded is refused fork_member_provision_failed.
Rust code: meerkat_mob::OperatorInstructionTarget::Member and
meerkat_contracts::WireInstructionTarget::Member gain the field
include_forks (false keeps the meaning the variant had); the machine
types gain the items the CHANGELOG lists under Breaking, each appended
last.
Clients and servers of an earlier release: a client that decodes operator
instruction targets with an earlier release’s meerkat-contracts refuses a
mob/instruction_status page that lists a record written with
include_forks (its target type denies unknown fields), so upgrade such
clients before the first such write; a page with no such record is
unchanged, because the field is left out when false. A server of an earlier
release refuses a mob/set_instruction whose target carries the field.
Forks seated by an earlier release: a fork seated by a release before
0.9.15, or while rolled back to one, has no lineage root on its stored spawn
row. No record written with include_forks ever selects it, and a record
written for it and its forks reaches its own forks, which are rooted at it.
Rolling back: a release before 0.9.15 reads a record written with
include_forks as a record for the member alone, and ignores the lineage
root that a fork’s stored spawn row carries (there the fork is a member with
no fork family), so on that release these records do not select the forks.
Nothing is refused. What the return to 0.9.15 restores depends on the mob’s
store:
- SQLite store: no stored row is rewritten. The lineage of every fork seated on 0.9.15 is restored from its spawn row and the records select those forks again.
- Host store (a realm kept in the host’s own database through the host
store SPI): the earlier release writes the mob’s journal again at its next
checkpoint, from what it read, without the fork scope of the records and
without the lineage roots. They do not come back: after the return those
records are their members’ alone and the forks seated before have no
lineage. Write the records again, at a new revision, with
include_forks; they then select the forks seated from then on.
Ending one queued request ends only that request; session/recall_input
- Rust hosts. The exhaustive enums named under Breaking in the changelog
gain variants, appended last: the MeerkatMachine’s
MeerkatMachineInput,MeerkatMachineEffectand their variant enums,MeerkatMachineRuntimeInternalInput, the kernel’sInput,InputKind,Effect,EffectKindandTransitionId,RuntimeCompletionCleanupAction, and the code generator’sMachineKernelRenderError. An exhaustive match on one of them needs the new arms, or a wildcard arm.RuntimeCompletionCleanupAuthority::requires_runtime_cleanup()is removed: match the authority’saction, or hand it toRuntimeCleanupScope::of_completion_action. - Every client. A request cancelled while its turn is queued behind a
running turn (the JSON-RPC cancel notification, a connection closed with a
turn still queued on a shared runtime, REST
POST /requests/{id}/cancel) now ends only that request. On 0.9.14 the running turn’s request and the session’s other queued requests were answered an internal error (-32603; REST500) and were not completed, and the cancelled REST request was answered only once the running turn had ended. A client that relied on those answers, or on that order, now sees the running turn and the other queued requests answered their results, and the cancelled REST request answered at once. - The new call.
session/recall_input, and the SDK methods over it, need a 0.9.15 server. A 0.9.14 server answers method not found (-32601) and changes nothing; the Python and TypeScript methods surface that asMeerkatErrorwith the code"-32601"and read nothing of the server first.
Reasoning effort is one setting for every provider
0.9.15 adds the provider-neutralreasoning_effort option (see
Reasoning effort). A caller who
sets no level gets 0.9.14’s behavior on every route: the same requests,
the same defaults, and provider-specific parameters
(provider_params.provider_tag) work as before. Two things such a caller
can still see: the models catalog read lists reasoning_effort_levels for
each catalogued model (an added member), and a turn’s reasoning preference
(set by a host, for example by a GPT Live channel for its delegated member
turns) is judged by the route of the client that serves the request where
that route states levels itself, a GitHub Copilot account or a self-hosted
route (the four differences are listed under Changed in the changelog).
- Moving from a provider-specific effort. Replace the raw effort
(
provider_tag.reasoning_effortfor OpenAI,provider_tag.effortfor Claude,provider_tag.thinking_levelfor Gemini) withreasoning_effort, or keep the raw parameter. Setting both is accepted when they name the same level and refused as a typed conflict when they differ. - Strictness. A raw effort the model does not accept can be dropped or
refused by the provider. The neutral level is checked first: a level the
model or its route does not accept is refused before any provider request
with
INVALID_PARAMSandreasoning_effort_refuseddata, and Meerkat never lowers it, changes the model or moves to another route. On a GitHub Copilot route the levels are the ones the account’s model list states for the model, which can be fewer than the provider’s own API accepts. - Spelling. The neutral level is
xhighonly. The Claude-specific effort keeps acceptingxhighandx_high. - The price of holding a level (JSON-RPC). From 0.9.15, on a session
that holds a provider-neutral level, anything that changes the model
identity (the
model, the provider, the self-hosted server, the provider params, the
auth binding, or the level itself: set, change, clear)
needs a session with no unfinished work:
sent while another turn of the session runs or is queued, such
a
turn/startormob/turn_startis not queued, it is answered-32002(SESSION_BUSY) with the data{"kind": "reasoning_effort_change_needs_idle_session"}at once and stores nothing. So a client that sets a level once and then variesprovider_paramsper turn (a temperature, say) is answered busy whenever another turn runs or is queued: wait for the running turn’s answer, then send the request again. Naming a field counts as changing it, also with the value the session already has. Plain turns and repeats of the level with the fieldreasoning_effortqueue, and that is the only repeat: a level named insideprovider_paramsis never one. A mob member built from a profile whoseprovider_paramscarry a level holds that level. A session that holds no provider-neutral level queues everything as on 0.9.14, except a turn that sets a level. On an autonomous mob member (the default runtime mode) the unfinished work can be the member’s own: a turn it started for its kickoff or on what its peers sent it, or a peer input queued on it. The caller cannot know when such a member is idle, and neither waiting for your own turn’s answer nor a plain turn first helps against the member’s own turns: send the request again (in two runs it was taken after 5 s and after 21 s; a member whose peers keep sending may stay busy for longer), or set the level in the member’s profile or at its spawn, which does not depend on the member’s traffic.is_active: falsefromsession/readdoes not promise the change is taken. The request there isturn/startwith the member’s session id:mob/turn_startis only valid forturn_drivenmembers. The table is in the JSON-RPC reference. A later release is planned to queue these turns. - Older servers. A server before 0.9.15 refuses the
reasoning_effortfield onturn/startandmob/turn_startand ignores it onsession/createand in REST bodies. The nested keyprovider_params.reasoning_effortis refused bysession/create,turn/start, the MCP tools and a mob definition read from a TOML file or a mobpack, and ignored in a RESTPOST /sessionsbody, onmob/turn_startand in a mob profile sent tomob/create. Theresume_overridesvaluereasoning_effortis refused in every mob profile. The Python and TypeScript SDKs therefore refuse to send the field to a server whose contract is below 0.9.15 (CapabilityUnavailableError). - Member hosts. A member host that runs 0.9.14 refuses a member spec that carries a level: it fails closed with a spec digest mismatch and does not ignore the level. Upgrade member hosts before a profile sets a level.
- SDKs. Upgrade the SDK before setting a level. A session that carries
a level emits the event
request_reasoning_effort_resolved, and a Python or TypeScript SDK older than 0.9.15 raisesUNKNOWN_EVENT_TYPEon it, wherever the level was set: on a request, by another client or in a mob profile. A session without a level emits no such event. - The flat key: check before upgrading. From 0.9.15,
provider_params.reasoning_efforton the wire is read as the provider-neutral level and judged. On 0.9.14 the key did nothing in five places, where it was accepted and dropped: a mob profile sent tomob/create,mob/spawn’soverride_profile, amob/turn_startrequest, a RESTPOST /sessionsbody, and a profile or definition an agent’s mob tools write (by a run on the published 0.9.14 binaries formob/create,mob/spawn’soverride_profile,mob/turn_start, RESTPOST /sessionsand themob_createtool; the agents’ other mob tools: not run, by reading the source; the CLI’s mob verbs: not determined). A Meta 0.9.14 gateway refuses amob.tomlprofile with the key when it starts, so Meta definition files are not a sixth place. Before upgrading, look for the key in those five places. Nothing a 0.9.14 server keeps shows the key for the first four: it was dropped when the request was read, so no stored mob, session, history or log holds it. Search what sends those requests: your client’s code, your mob definition files and the SDK calls that passprovider_params. For the fifth, read the transcripts of agents that have mob tools: the tool call and its arguments are in the calling agent’s history. From 0.9.15 it sets a level there: either remove it, or accept the level and the busy rule for those members. If it stays: a value that is no level is refused when the request is read; a profile that carries the key beside a different provider effort, a thinking budget, a thinking type the model does not accept with the level, a raw reasoning body or reasoning turned off, or for a model whose route does not take the level, fails that member’s build; amob/turn_startthat carries the key, sent to a busy member, is answered-32002(SESSION_BUSY) where 0.9.14 ignored the key and queued the turn; and the members built from such a profile hold a level, so a change of their model identity sent while they are busy is answered busy where 0.9.14 queued it (see “The price of holding a level” above). A mob already stored by 0.9.14 keeps no level: only a definition or request sent again sets one. A level in a profile is also the stored form that the rollback passage of this page warns about (the passage that begins “To keep the option of rolling back”). A schedule’s session settings do not take the key in 0.9.15: a schedule whosecreatespec carries it is refused when it is created or updated (0.9.14 refused it there as an unknown field). Areasoning_effortwritten directly in a schedule’screatespec or on its prompt action, which 0.9.14 read as an unknown member and dropped, is refused the same way from 0.9.15: remove it from the request. - CLI scripts.
rkat run --reasoning-effort <LEVEL>exits 2 when the level is refused; with--output jsonstdout then ends with a failure document ({"error": {...}}) instead of a run result, so a script that reads stdout as a result checks the exit status or theerrorkey first. - Rolling back. Before rolling back to 0.9.14, let every turn that
carries a reasoning effort level finish, then clear the level from
every session that holds one (
rkat run --resume <SESSION> --no-reasoning-effort "<PROMPT>", or a turn withreasoning_effort{"action":"clear"}). The clear is one turn on the model per session; queries that list the unfinished turns and the sessions that hold a level are in the item named below. Replacing or clearingprovider_paramsdoes not remove the level. On 0.9.14 a turn on a session that still holds a level, and a read of it, do not return. A session that used a level and was cleared works there, except that its event replay (events/list_since) fails. A mob is different: a level in any profile of a mob’s definition, even a profile no member ever used, is a one-way step. 0.9.14 quarantines the whole mob, and a Meta gateway on 0.9.14 does not start on a state directory that holds such a mob; the only way back is to destroy the mob on 0.9.15 and create it anew without the level. A realm profile that stores a level is replaced or deleted on 0.9.15 before the rollback. To keep the option of rolling back, set the level on a session or a turn, not in a mob definition, a member profile or a realm profile, and clear it before rolling back. Do not use a level on a member placed on another host if you may ever go back to 0.9.14. What 0.9.14 does in each case, the calls that fail, what was confirmed by a run and what was read from the source are in the item “A stored reasoning effort level” under Rolling back to 0.9.14.
A catalog model you had defined yourself: gemini-4-hydrogen
Model IDs are unique across the catalog, [models.<id>] entries and
self-hosted models, and 0.9.15 adds gemini-4-hydrogen to the catalog. A
realm or project configuration, or a mob definition, that has
[models.gemini-4-hydrogen] (for example because you ran the model before
the catalog listed it) is refused with
model id '<id>' must be unique across built-in, custom, and self-hosted entries:
a configuration by configuration validation, a mob definition when one of
its members is built (the mob definition case was read from the source, not
run).
Do: remove the entry. The catalog row then serves the model with its own
limits and thinking levels (low, medium, high; see
Providers). After a rollback to 0.9.14 the catalog
has no such row again: there, a session or configuration that names the
model does not resolve it until the entry is back (read from the 0.9.14
source, not run).
Meta 0.9.15
Meta 0.9.15 pins Core=0.9.15. The full list is in meta/CHANGELOG.md
under ## [0.9.15].
-
If a Meta 0.9.9 through 0.9.14 gateway respawned an agent or rebuilt it
during
meta/compact_member, upgrading to 0.9.15 does not restore the agent’s ability to list or manage mobs it created before that rebuild. See “Agents that created mobs and were seated again on 0.9.15” under Rolling back to 0.9.14. -
Identity policy: an enabled policy that names an approval outcome or a
preparation mode this release does not carry out is refused at init. That
is the approval outcome
notifyorreview, in a rule or as the default, and the preparation modeconstructed, inruntime_options.identity_creationor in the policy a native Rust host returns fromGatewayHostComposition::identity_creation_policy. The refusal names the policy path (approval.rules[<n>].outcome.kind,approval.default.kindorpreparation.<profile>.mode) and what to write instead. 0.9.14 acceptednotifyandreview, and acceptedconstructedon a launch with a native Rust host composition (it refused it on every other launch), and nothing acted on them: no notice reaches an approver fornotify, no reviewer decides forreview, and no method holds or activates a construction. Do: writeallowwhere the policy saysnotify(the consent a change committed under reads back frommeta/identity/get,meta/identity/listandmeta/identity/operation); writerequire_approvalwhere it saysreview, or review the request in your own code before you ask underallow; and write the preparation moderequiredwhere it saysconstructed, which the host settles withmeta/identity/settle_preparation. The page Identity policy of Meta’s reference describes the policy. -
A Rust host that composes its runtime through
UnifiedRuntime::bootstrapor thebootstrap_with_*family must complete the bootstrap before an agent created at run time can be built: with an identity bootstrap (install_and_bootstrap_identity_first_context, orbootstrap_installed_identity_first_contextand its held variants) or withactivate_without_identity_context. Until one of them returns, every build of such an agent is refused for now, with a reason that names both calls, and one warning is logged per process. An agent that starts at its creation (it was given a first message, or its profile runs as an autonomous host, the default) and one the mob’s start owes its seat stay owed their seat, and the call that completes the bootstrap seats them. A delivery to an agent seated dormant is refused retryable (host_preparation_pending) and nothing is delivered: the sender sends it again once the bootstrap is complete. Creating an agent that builds nothing (no first message, a turn-driven profile) is unchanged. Through 0.9.14 such an agent was built from its record at once.UnifiedRuntimeBuilderand both gateway binaries complete the bootstrap themselves. Do: a host of that kind calls one of them after its bootstrap. -
Question sets (
ask_user): mob members get the stock toolask_user, andmeta/gating/questionslists what they asked a person. Every member of a Meta runtime is offered the tool from this release on, with the three exceptions named in this item and the next (a member that is denied it, one whose host supplies its own, one whose MCP server offers the name), so each other member’s tool list gains one tool at the upgrade, also on a runtime where no person can be asked (no Console, or one nobody can decide on): a call there answersno_human_surface. A profile that lists the tool intools.deny(deny = ["ask_user"]) keeps it from its members (not in a profile used for members whose host decides their tool surface: see Known limitations in the Meta changelog): their model is not offered it, and a call it makes anyway is refused as not allowed by policy; a spawn’s deny policy does the same for one member. A member whose host already supplies a tool namedask_useramong its build’s external tools keeps its own; a tool of that name from a profile MCP server is lost (the next item). The tool holds a durable decision of the new kindask_user.questionsin the decision store the gateway already keeps; no store schema changes, and a decision recorded without a typed answer keeps its bytes and its digest. A 0.9.14 gateway has nometa/gating/questions(it answers method not found). A 0.9.14 Console or SDK against a 0.9.15 gateway does not list a question set as a question or as an approval (sets are not part ofmeta/gating/pending): it meets the set only as a durable decision of a kind it does not know. A 0.9.14 Console shows it, to a caller who may see the decision, as a read-only card among the open decisions, which cannot be answered there (read from the 0.9.14 source, not run). So a set nobody answers on a Console that reads question sets endstimed_outat its deadline. Do: upgrade the gateway before a Console or an SDK that reads question sets; before a rollback see the question sets item under “Rolling back to 0.9.14”. -
Breaking (behaviour): a profile MCP server that offers a tool named
ask_user. A member whose profile configures such a server loses that tool at the upgrade: the server’s tool and the stock tool share the name, a tool name two parts of a member’s build list is offered by neither, and the member’s model is offered no tool namedask_user, neither the server’s nor the stock one. Such a member also has no stockask_user: it cannot put a question to a person until its server’s tool has another name. The member builds and runs, and its other tools are offered. On 0.9.15 no setting keeps a profile server’s tool under the nameask_useron a Meta member, andtools.deny = ["ask_user"](not in a profile used for members whose host decides their tool surface: see Known limitations in the Meta changelog) is no way out: it hides the name whatever offers it, and does not bring the server’s tool back. It is not silent: once the server has connected, each build of such a member logs one warning on the gateway’s stderr, at the default log filter, with the targetmeerkat::tools::shared_name, the text “more than one part of a tool surface lists this tool name: it is offered by none of them” and the fieldstool(ask_user),listed_by(the two sources, asMcp:<server name>, Builtin:ask_user) andtools_of(the member’s session and comms name). Check before upgrading: the check is the configuration. A member is affected when an MCP server of its profile ([[profiles.<name>.tools.mcp_servers]]), or one attached to its live session, offers a tool namedask_userand the server’s entry maps that tool to no other name (tool_names): ask the server for its tool list, or read its documentation. The member’s tool list does not answer the question: on 0.9.14meta/identity/resolved_toolsdoes not list the tools of a profile’s server (the list then holdstool_catalog_searchandtool_catalog_load, through which the member reaches them), so a list without the name proves nothing. A member whose host supplies a tool namedask_useramong its build’s external tools keeps it. Do: give the server’s tool another name before the upgrade: map it in the profile, on the server’s entry (tool_names = { ask_user = "ask_operator" }), or rename it on the server. The member then has the server’s tool under the new name and, after the upgrade, the stockask_user. The price: the member’s prompts and instructions that name the tool must name the new one. -
Decision reads with question sets. Core gains three wire types,
WireDecisionAnswer,WireAskUserQuestionAnswerandWireAskUserAnswer, and the human evidence of a decision (WireDecisionEvidence) gains the optional memberanswer, which carries them and is written only for an answered question set. That is additive: the 0.9.14 Python and TypeScript SDKs return a decision as the gateway wrote it, and the 0.9.14 Rust wire type ignores a member it does not know.meta/decisions/listkeeps its form (decisions,statuses,unreadable,next_after) and is followed withnext_afteras before; it now also lists decisions of the kindask_user.questions. On the stdio gateway, which the SDKs call, nothing else changes. On the Console a page now holds only decisions its caller may see, up to its limit, andunreadableis filled for an access administrator only (a caller alloweddecisions.adminwho is a person listed underadmins, or any caller allowed it on a Console that identifies no person; on 0.9.14 every caller alloweddecisions.admin): the same form with other rows for some callers, not a new member. A question set is read on the Console only by a caller who may view its asking agent. Do: nothing for a client that followsnext_after; a Rust client that matchesWireDecisionEvidence::Humanfield by field addsansweror..; a person who is alloweddecisions.adminby a rule and is not listed underadminsno longer seesunreadable: list that person underadmins. -
Rust:
identity_creation::ChangeClassgains the variantsArchive(an archive and an unarchive) andAdopt. Do: add both arms to each exhaustive match on it. -
Rust:
identity_creation::NameTakenByloses the variantsDeclaredandCreatedand gainsIdentity: aname_takenrefusal names its holder asidentity,removed,workerorunreadable. The implicit discriminants ofRemoved,WorkerandUnreadableare now 1, 2 and 3 (they were 2, 3 and 4), and their places in the derived order (PartialOrd,Ord) moved with them; the order among the three is unchanged, andIdentitysorts first, whereDeclareddid. Do: replace the arms forDeclaredandCreatedwith one forIdentity, and check code that casts a variant to its discriminant or compares two variants. -
Rust:
IdentityStatusgains the membersrecord(IdentityRecordFacts) androster_listing_superseded, andRestoreFlowResultgains the memberroster_listings_superseded. On the wire each new member of the status is left out while it is unset, so the status of a seated agent is written as before whileroster_listing_supersededisfalse. Do: a struct literal of either type sets its new members:record: Default::default()androster_listing_superseded: falseonIdentityStatus,roster_listings_superseded: Default::default()onRestoreFlowResult. -
Rust, source only:
CustomizerToolsSpawnCustomizerno longer implements the auto traitsUnwindSafeandRefUnwindSafe: it now holds a late-bound reference to the session bridge, which has neither. Do: code that passes one acrossstd::panic::catch_unwindwraps it instd::panic::AssertUnwindSafe. -
Python SDK (
meerkat-meta) and TypeScript SDK (@rkat/meta-sdk): the refusal kinds ofruntime.identities(IDENTITY_REFUSAL_KINDS), its instruction outcomes and its seats are closed vocabularies, so a kind added by a later release is a breaking change of the SDKs. A 0.9.15 client against a 0.9.14 gateway was exercised in one keyless run only (the Meta Python SDK’s own tests that start a real gateway without a provider key, against a gateway built at the 0.9.14 commit); no other client and no 0.9.14 runtime was exercised. Of the tests in that run that start a real gateway, the five that existed at 0.9.14 and need no provider key passed; the failures were in tests new in 0.9.15 (the identity methods and cross-mob delivery between gateways) or in tests that need a provider key. The methods for agents created at run time (meta/identity) need a 0.9.15 gateway: upgrade the gateway before the SDKs that call them. Do: upgrade the SDKs with the gateway. -
Console:
meta/mob_announcements/declarations/applyandmeta/mob_announcements/sources/putrefuse a declared subscription of one member, and a source, that names a member that is not seated or is private to another person (-32047unknown_member, nothing applied or written), and refuse for now while the member’s check cannot be read (-32047native_unavailable; the same request can be made again later). 0.9.14 accepted a member that was not seated. What the applied declarations already hold unchanged is carried as it is, and the stdio gateway keeps such a subscription pending and stores such a source, as before. Do: a client that applies announcement declarations or puts an announcement source through the Console seats the member first, or applies them over the stdio gateway. -
Required host step. After upgrading, on every gateway that serves mob
announcements, review every live mob announcement subscription the host
cannot account for from its own records, as the Upgrade section of
meta/CHANGELOG.mdsays. At each start such a gateway logs one WARN line (targetmeerkat_meta::mob_announcements::private_member_subscriptions) while live subscriptions deliver into agents private to a person; the line is an aid, not the condition: a gateway that logs none does the review too. -
Console: for a short time after a gateway start,
meta/schedule/listanswers an empty list, andupdate,pause,resumeanddeleteanswerschedule_not_found, for a member that ended before the start, to every caller who is not an access administrator. Do: a client that reads schedules at start asks again before it treats the list as empty. -
meta/attach_existing_sessionandmeta/ensure_memberwithresume_session_id: from 0.9.15 a member seated on the stored session of a private side chat is private to the side chat’s owner (see Security and Changed). Do: retire every member that 0.9.11 through 0.9.14 seated on such a session, and do not build on a shared member coming back from one. -
meta/compact_member: a call whose maintenance turn ended for good without completing (completion_typeabandoned,abandoned_with_error,cancelledorcompleted_without_result) now restores the member’s compaction threshold before it answers, and its error carrieserror.data.stage: "profile_restored". 0.9.14 answeredstage: "terminal"and left the temporary threshold on the member. Thekind(compact_member_completion_failed), thecompletion_typeand the typed error are unchanged;stage: "terminal"remains for an outcome that does not prove the turn ended, where nothing is restored; a restoring rebuild that fails answerscompact_member_rebuild_failedat stageprofile_restore. Do: a host that matches onstage: "terminal"to learn that the call failed matches on thekindinstead, or takes both stages.
Rolling back to 0.9.14
What this subsection says an earlier release does was established by reading the 0.9.14 source, except where an item says it was confirmed by a run. Unless an item names the builds of its own run, such a run was made with a 0.9.14 gateway built from the release tag, over state written by a gateway built from the development source for 0.9.15 (main on 13 November), with a scripted model in place of a provider. This subsection describes a rollback to 0.9.14, and what it says of an earlier release was established for 0.9.14, as the paragraph above says. The words “an earlier release” and “0.9.14 and earlier releases” reach further back as follows, by a reading of the source at the release tags unless an entry names a run.- Core, 0.9.11 to 0.9.13. Core reads these stored forms with the same
code as 0.9.14, so these items hold there too: a created agent’s row that
records an owed label restamp; agents that created mobs and were seated
again on 0.9.15; operator instruction records past the earlier totals, and
those written with
include_forks; what the item on agents’ instruction records says of the record; temporary council records; a recalled input; a schedule paused for its target; and, of a stored reasoning effort level, the refusal. What that last item describes beyond the refusal holds at 0.9.12 and 0.9.13 and was not read at 0.9.11. What the items say of a respawn or ameta/compact_memberthrough a Meta gateway was not read for these releases. A member rotation in flight is established for none of them, as its item says of 0.9.14. - Meta, 0.9.12 and 0.9.13. They are Meta 0.9.14 without the fix named
under “Meta 0.9.14” below, so what the items say of a 0.9.14 gateway and
its Console holds for them. A rollback to 0.9.13 was also run, for agents
created at run time:
- The start is as on 0.9.11. A 0.9.13 gateway refuses the unchanged 0.9.15
launch at init, naming
archive(oradopt, where a rule names only that), and a key for either underapproval.timeouts_msthe same way. The remedy that was run is taking the valuesarchiveandadoptout of the rules’change, or removing the wholeidentity_creationoption. - A 0.9.13 gateway serves the agents created on 0.9.15: both were registered, a send to one was accepted and its turn completed.
- The return to 0.9.15 finds the same records, sessions and peers. A turn made on 0.9.13 is kept, and later messages append to the same session.
- One difference while rolled back: a created agent runs with 0.9.13’s
tools, so it has no
ask_user. Its first turn after the return has it again. - 0.9.12 was not built. Between the Meta tags of 0.9.12 and 0.9.13 the only change in the Rust source is the version number, so the run stands for 0.9.12’s code.
- As run: the stdio
rpc_gatewaybuilt from the 0.9.13 tag, two starting states, one mob, two created agents, the gateway up for seconds, turns answered by a test client so that no tool was called. Not run:meta_gateway; archived, removed, adopted, held or updated agents; schedules; memory; nested mobs; a peer message; a held question before the rollback; a turn in flight at the stop.
- The start is as on 0.9.11. A 0.9.13 gateway refuses the unchanged 0.9.15
launch at init, naming
- Meta, 0.9.11. Not read against every item. Three differences are
known.
- A 0.9.11 gateway refuses to start (
-32602) on a launch that carries a 0.9.15 identity policy in which a rule’schangenamesarchiveoradopt(each by a run); the stores are as they were after the refusal. The launch is accepted once those two values are taken out of the rules’change, or with no identity policy at all (both by a run). A key for either of them underapproval.timeouts_msis refused the same way (each by a run), so take those out as well, as the item “Identity policy” below says for 0.9.14. 0.9.11 reads the policy with the same code as 0.9.14 (read from the source). Add all of them again after the return. - A 0.9.11 gateway does not serve agents created at run time, and it leaves
them as they are. Its roster pass retires none of them, a send to one
answers
-32001(unknown identity), and nothing of theirs changes in the stores: 0.9.11 writes only what a restart writes (the mob’s stop and start events, a Console start frame, cursors, the schedule lease and the gating state’s owner epoch). After the return to 0.9.15 they are listed with the same records, sessions and peers, and a send to one that had a conversation appends to that conversation. This is by two runs of the stdiorpc_gateway, built from the two releases’ tags and not the published binaries, with one mob and two created agents: in the first both were dormant, in the second one of them had a conversation (a scripted model in place of a provider); the 0.9.11 gateway was up for seconds (one roster pass). Not run:meta_gateway; archived, removed, adopted or held agents; an agent changed after its creation; schedules; memory; nested mobs; a peer message to a created agent, or a turn of a configured agent, while 0.9.11 runs. - A
meta_gatewaylaunched withpersistent_sessions: truekeeps its metadata and its console log in memory (see “Rolling back to 0.9.11” below).
- A 0.9.11 gateway refuses to start (
- Before 0.9.11: not read.
- Settle every owed label restamp.
- Bring each mob within the earlier totals of operator instruction records, counting the agents’ instruction records.
- For a mob kept in a host store, list the records written with
include_forks. - End every change of an agent that waits for approval.
- Let every member respawn that is under way complete: wait until its call
(
meta/respawn, the Console’s respawn ormeta/compact_member) has answered without an error, and for a member the respawn fix does not serve (a warning names it at the respawn) until the identity has then answered one message; after a crash during a respawn, start 0.9.15 once more so that it finishes the rotation. - Remove the new agent actions from the access rules, and
archiveandadoptfrom the identity policy. - Unarchive, settle or remove each agent that must not stay as it is.
- Pause the Console schedules of agents created at run time
(
meta/schedule/pause); resume them after the return (meta/schedule/resume). - Remove each agent created at run time that an access rule by role or by label keeps from someone, or add a deny rule that names it.
- While rolled back, send no message from the Console to an agent created at run time.
- Let every turn that carries a reasoning effort level finish (a turn the host interrupted is recovered at the session’s next use after the restart: use the session and let it finish too), then clear the level from every session that holds one, a mob member’s session included. The clear is one turn on the model per session; the item “A stored reasoning effort level” below has queries that list the unfinished turns and the sessions that hold a level.
- Destroy every mob whose definition or a member profile ever stored a
reasoning effort level, or listed
reasoning_effortinresume_overrides, and create it anew without them (its members, their conversations and its history are not kept): to find them, page each mob’s stored events withrkat mob logs <MOB> --jsonand search forreasoning_effort; norkat storage doctorfinding lists them yet. - Replace or delete every realm profile that holds
provider_params.reasoning_effortor listsreasoning_effortinresume_overrides: list them withmob/profile/list, then sendmob/profile/updatewith the whole profile without them, ormob/profile/delete, each with the listed revision asexpected_revision.
label_restamp_owed while an update
of the agent has committed labels that its seated member’s seat row does
not carry yet. A label update of a created agent never seats the agent
again, so its row carries the key from the update until the agent’s next
seat (a respawn, a profile or runtime-mode change, a rotation or a reset);
a retry of the update and a later update of other fields do not settle it.
No turn, wake, build or restart of the agent settles it either: the key
stays until one of the steps below.
The row lets the
key go once a seat row carries the row’s labels, and an archive or a
removal drops it. A row that owes none carries no such key and reads on
earlier releases as before.
Releases 0.9.9 through 0.9.14 read a row that carries the key as
unreadable, for that agent only. The mob starts, and its other agents are
unaffected. While the host runs the earlier release, every change of that
agent is refused, commands and work addressed to it are refused, and
nothing is spawned or seated under its name; a member that is already
seated stays seated. The row is kept as stored, on the SQLite store and on
a host store, so 0.9.15 reads it again after the return: the agent is out
of service while rolled back, and nothing of it is lost. An earlier release
cannot settle the owed restamp, since it cannot read the row: settle it on
0.9.15 before the rollback, or return to 0.9.15.
Before a rollback, on 0.9.15, read MobHandle::identity_record_census()
(with no running mob, MobStorage::read_identity_record_rows for a store
file or MobStorage::identity_record_rows for a storage). While
label_restamps_owed is above zero, settle each owed restamp:
- respawn its member with the row’s labels (
MobHandle::respawn_memberwithMemberRespawn::new().with_labels(..)). The respawn seats the agent again on the same conversation and cancels a turn in flight; an agent that created mobs with its own tools goes on listing and managing them on 0.9.15. While an earlier release runs it does not: 0.9.9 through 0.9.14 give that management only to the member generation that created the mob, so an agent seated again since lists and manages none of its mobs until the return to 0.9.15, which restores it with no call; the mobs go on running meanwhile. An agent you leave unsettled is out of service while rolled back, and nothing of it is lost; - a profile move or a runtime-mode change of the agent
(
MobHandle::update_store_owned_identity) seats it again and settles it too; - or set the agent’s labels back to the labels it was seated with (an
update,
MobHandle::update_store_owned_identity, whose labels are the ones its seat row carries) and apply the label change again after the return. For an agent that is idle, that update lets the key go without seating the agent again, so the agent keeps the mobs it created; the price is the label change until after the rollback. An agent that holds work at that update is not released: the update is answereddeferredand the key stays, until the same update is sent again once the agent is idle. Read the count again afterwards; - a member no same-session successor can serve (a placed member, a member
wired to a placed member, a member on a session service that keeps no
durable sessions) is settled by none of these: rotate it
(
MobHandle::rotate_member), or archive or remove its agent. A rotation does not keep the mobs the agent created with its own tools: it takes a fresh session, so the agent no longer manages them, and the mobs of a session its mob archived are removed each at its next load, at the latest the host’s next start. An archive or a removal through Meta is refusedowns_mobswhile the agent still owns mobs it created. Either way, have the agent destroy them first.
rkat storage doctor and Meta’s storage doctor do not report this count,
and a host that uses only the SDKs has no read for it in 0.9.15: the Rust
calls above are the read. The count says how many rows owe a restamp, not
which agents. To list them, read the mob’s SQLite store read-only (the
database of the state directory that holds the table
mob_identity_intents), with the host stopped or beside it:
<mob>|<agent>),
and nothing when none does. A Meta host settles one with meta/respawn of
that agent, at the cost named above, or with a meta/identity/update that
sets its labels back to the ones it was seated with. If the agent held
work at that update the key stays, and Meta’s answer does not say so: run
the query again, and for an agent it still lists send another update once
the agent is idle. That must be a new request that changes something (its
display name, for example): the same request sent again only reads back
its first answer, and a request that sets the labels the agent already
has is refused as empty.
Agents that created mobs and were seated again on 0.9.15. From 0.9.15 an
agent that created mobs with its own tools goes on listing and managing them
when it is seated again on its conversation (a respawn, a profile move, a
runtime-mode change). 0.9.9 through 0.9.14 give that management only to the
member generation that created the mob. While an earlier release runs, an
agent seated again since lists and manages none of the mobs it created; the
mobs and their members go on running. The return to 0.9.15 restores its
management with no call (one run). An agent that an earlier release
retires and seats again while rolled back (a respawn through a Meta
gateway on 0.9.9 through 0.9.14 does so, and so does each rebuild of its
meta/compact_member; read from the source at each tag) is not restored
by the return (for the respawn, by a run of it on 0.9.14 followed by
0.9.15; for a completed compact call, by one run of it on 0.9.14
followed by 0.9.15; neither was run after a rollback), and a respawn on
0.9.15 does not restore it either (run).
Do: no step before the rollback. While rolled back, do not respawn or
compact such an agent through Meta; have it manage its mobs before the
rollback or after the return.
Operator instruction records past an earlier release’s totals. An
earlier release bounds the mob as a whole at 64
records and 1 MiB of Active bodies, and puts every record of the mob in
every member’s snapshot. Only 0.9.15 admits more, as member-targeted
records, in two ways:
- more than 64 records in the mob (a revoked record keeps its slot and counts);
- more than 1 MiB of Active bodies over all the mob’s records together, with 64 records or fewer (five members that each hold a 256 KiB record of their own, for example).
- every spawn into the mob is refused, with an internal error that says the mob’s state could not be recovered;
- every flow run is refused before it starts, for the same reason;
- with more than 64 records, every member’s operator instruction delivery
is also refused by the member’s session (
slot_limit_exceeded): the status read shows the memberowedwith thatlast_failure, and no later write reaches it. What a member’s session already applied stays in effect. A member whose build mints a new session fails to build, because the mob cannot carry its snapshot into the session.
rkat storage doctor on 0.9.15: it lists each such
mob database (operator-instruction-mob-totals, with its record count and
its Active bytes). The doctor reads mob databases on disk. For a mob kept
in a host store, read mob/instruction_status
(MobHandle::operator_instruction_status) without namespace and key:
desired lists every record of the mob, revoked ones included, with each
one’s effect and, while it is Active, its body_bytes; count the records
and add up the bytes of the Active ones. A revoke lowers the bytes but not
the count: a revoked
record keeps its slot. For each listed mob, do one of these first:
- keep the processes that serve that mob on 0.9.15;
- bring it back within both totals where only the bytes are over: revoke records, or write shorter bodies, until the Active bodies of the whole mob are at most 1 MiB;
- reset the mob (
mob/lifecyclewithreset,MobHandle::reset), which retires its members and clears its operator instruction records, then seat its members and write the records it needs again, at most 64 records and 1 MiB in total; - destroy the mob, or move its database out of the mob root, as for a mob an earlier release refuses.
include_forks. 0.9.14 reads
such a record as its member’s alone and a fork’s spawn row without its lineage
root, so while rolled back the record does not select the forks; nothing is
refused. On the SQLite store nothing is rewritten and the return to 0.9.15
restores both. On a host store 0.9.14 writes the journal again without the
fork scope and the lineage roots, and they do not come back. Do: before a
rollback of a mob kept in a host store, list the records written with
include_forks (mob/instruction_status,
MobHandle::operator_instruction_status); after the return to 0.9.15, write
each of them again at a new revision with include_forks (for an agent’s own
instruction record, 0.9.15 refuses meta/set_instruction: update the agent’s
instructions instead, as the item on agents’ instruction records says. An
update that keeps the text writes nothing: update once with a changed text,
then with the earlier text put back). They then select the forks seated from
then on; forks seated before the rollback keep no lineage root and are not
selected. A fork seated while rolled back has no lineage root on either store,
and no such record selects it.
Agents’ instruction records. An agent whose instructions changed on 0.9.15
has one operator instruction record that holds them (namespace
meerkat.identity.instructions, keyed by the agent’s name). On 0.9.14 the
record stays Active: the agent’s conversation keeps the entry it has, and a
new conversation of the agent gets the record’s text as an entry beside its
first prompt. Each such record is a record of the mob: it counts toward the 64
records and the 1 MiB of Active bodies that 0.9.14 holds in one mob, and past
either total 0.9.14 cannot serve that mob (see “Operator instruction records
past an earlier release’s totals” above). A 0.9.14 gateway does not bring the
record up to date when the agent’s instructions change, and its
meta/set_instruction and meta/revoke_instruction accept the namespace
(confirmed by a run: the record stays Active on 0.9.14, a revoked record keeps
its slot in the 64, 0.9.14’s two verbs accept the namespace and 0.9.15 refuses
them, and the update step; read from the source, not run: the entry a new
conversation gets, the 1 MiB total, and a mob past either total). Do:
before a rollback, count the mob’s records on 0.9.15: read
meta/instruction_status without namespace and key
(mob/instruction_status, MobHandle::operator_instruction_status), count
the entries of desired, the revoked ones included, and add up body_bytes
of the entries whose effect is active; or run rkat storage doctor, which
names a mob database past either total (operator-instruction-mob-totals,
with its record count and its Active bytes). A mob past either total is
handled as that section says. While rolled back, do not change an agent’s
instructions and write no record under meerkat.identity.: a conversation
started after such a change holds the earlier text as well as the new one.
After the return, update the instructions of an agent that was changed while
rolled back once more: 0.9.15 then writes its record again. The update
restores a record only when it changes the agent’s instruction text: 0.9.15
compares the text with the record’s and writes nothing when they are equal. A
record that only lost its fork scope, as on a host store after a rollback,
therefore stays its member’s alone through an update that keeps the text. To
keep the text, update the agent twice: once with a changed text, then with the
earlier text put back. Make the two updates one after the other and choose a
change that does no harm: a run of the agent that starts between them works
under the changed text, and a conversation first built between them keeps it
in its first prompt, with the earlier text appended after it (read from the
source). Where the identity policy holds a change of instructions (class
descriptive) for approval, each of the two updates is a request of its own
and needs its own approval; request the second once the first is carried out
(read from the source). 0.9.15 then writes the record at two new revisions,
the second with the earlier text and for the agent and its forks (confirmed by
a run, on a record written again on 0.9.14 with the same text and without the
fork scope; a host store was not run). Forks of the agent seated before the
rollback keep no lineage root on a host store and are not selected by the
rewritten record, as in the include_forks item (read from the source).
Temporary council records. 0.9.14 reads a council record that 0.9.15
wrote: its record type refuses no key it does not know, so it ignores
temporary_mob_custody and convener and reads the rest as stored. When
0.9.14 writes such a record again (it seals an interrupted council, or
records a cleanup), it writes it without the two keys and changes nothing
else. Back on 0.9.15 that council has no convener and names no mob of its
own, like a record an earlier release wrote (see
Temporary council mob ids and records).
A record that 0.9.14 does not write again keeps both keys. What is lost
with temporary_mob_custody is the fence. While rolled back, 0.9.14 does
not refuse a create under a council-- id, and a council’s seating and
cleanup find the council’s mob by id alone, as before 0.9.15: a council can
again retire seats in, and destroy, another mob that holds its mob id.
After the return, a record that 0.9.14 wrote again is cleaned up by id
under the two guards, so it can still destroy a mob with no members that
took the id. Losing convener changes nothing Meerkat does itself; a host
that reads the record sees no convener. No step is needed.
Changes of agents that wait for approval. A change of an agent that the
identity policy holds for approval is a pending decision of kind
identity.create, identity.update, identity.archive,
identity.unarchive, identity.remove or identity.adopt. A 0.9.14 gateway
lists such a decision and lets an approver decide it or the host withdraw it,
but carries no change out. A decision that reaches its deadline (by default a
day for a creation and four hours for any other change, seven days at most) is
recorded expired. An approval given while rolled back is recorded, and the
change is carried out only after the return to 0.9.15, if the decision has not
expired, its approver may still decide it and the request still reads as the
approver was shown it. The requester is told nothing until the return
(confirmed by a run: the decision is listed, an approval is recorded and
nothing is carried out, also across a restart, and the change is carried out
after the return; the expiry, a withdrawal and what the requester is told were
read from the source, not run). Do: before a rollback, list the decisions
of these kinds that are open or approved (meta/decisions/list with
kind and phase) and end each one: have it decided and wait until it reads
executed, or withdraw it (meta/identity/withdraw, or
meta/decisions/withdraw as the host). While rolled back, decide none of
them.
Question sets agents asked (ask_user). A question set is a decision of
kind ask_user.questions in the gateway’s decision store
(approval_decisions.sqlite3 in its state directory), in the row form every
decision has. A 0.9.14 gateway does not know the kind and neither refuses
nor skips it: a decision’s kind is a string, the row is read and listed like
any other (meta/decisions/list), and no executor claims it. It has no
ask_user tool and no meta/gating/questions, so an open set cannot be
answered there, and its asking agent is told nothing while rolled back. An
open set stays as it is until its deadline; a 0.9.14 gateway records a
decision of any kind as expired when that decision is read by itself
(meta/decisions/get) after its deadline, so a set whose deadline passes
while rolled back can end there. A
set that was answered on 0.9.15 keeps the person’s answers in the
decision’s evidence, a member 0.9.14 does not know. A 0.9.14 gateway reads
past that member, as the wire type does, but it also checks the stored
evidence against the digest the decision binds, and evidence read without
the answers does not match it: it reports
that one decision unreadable (on the stdio gateway, and on the Console to
a caller allowed decisions.admin, it is listed as unreadable; nothing
executes it) and reads every other decision as before; it does not change
the row, which reads again after the return to 0.9.15. A set that was
dismissed, withdrawn or timed out carries no answers and is read as any
ended decision. All of this was read from the 0.9.14 source, not run.
Do: before a rollback, have each open set answered or dismissed
(meta/gating/questions lists them), or withdraw it
(meta/decisions/withdraw as the host), so that no agent waits for an
answer while rolled back; a set left open needs a deadline beyond the time
spent rolled back.
Access rules for changes of agents. 0.9.15 adds the actions
agent.identity.create, agent.identity.manage and agent.identity.remove.
A 0.9.14 gateway refuses an access configuration in which a rule names one of
them (or agent.identity.*) as unknown_action, and does not start with it
(confirmed by a run). Do: before a rollback, remove those actions from the
rules of access.toml (or of the file runtime_options.access_config_path
names); add them again after the return. A rule that grants * or agent.*
needs no change.
Identity policy. A policy that sets approval.timeouts_ms.archive or
approval.timeouts_ms.adopt, or in which a rule of approval.rules lists
archive or adopt under change, is refused by a 0.9.14 gateway at init,
enabled or not (confirmed by a run for archive: in a rule’s change of an
enabled policy and under approval.timeouts_ms of a disabled one; the other
combinations and adopt were read from the source). In runs, a 0.9.11
gateway refused a launch in which a rule’s change named either of them
(-32602), and one that set a key for either of them under
approval.timeouts_ms (see the entry on Meta 0.9.11 at the head of this
subsection). Do: before
a rollback, remove those keys and values from
runtime_options.identity_creation; add them again after the return.
A recalled input. An input withdrawn with session/recall_input is
stored as a cancelled input: the stored row and completion record a
cancelled queued request has left since 0.8.0. 0.9.14 reads it as it reads
any cancelled input (read from the 0.9.14 source, not run).
Agents created at run time. A 0.9.14 gateway starts on a state that holds
agents created on 0.9.15, and a send through the gateway (meta/send) reaches
the member of a seated one (confirmed by a run).
The 0.9.14 Console does not serve a seated one (confirmed by a run): it lists
it twice, its read of it by name (meta/console/inspect_identity) fails for
everyone the access rules admit, an administrator included, and a send from
the Console to it (meta/console/send) is refused. A Console schedule for it
fails the same way. A Console schedule is a schedule made in the Console’s
schedule editor, or with meta/schedule/create on the Console’s RPC endpoint
(POST /console/rpc); meta/schedule/list lists an agent’s. Each occurrence
of such a schedule that comes due while rolled back ends as a failed delivery
(delivery_failed), and one that comes due while no gateway runs is skipped
(misfired). Neither is delivered later, the return to 0.9.15 included
(confirmed by a run). A schedule paused on 0.9.15 makes no occurrence while
rolled back and runs again once it is resumed after the return (confirmed by a
run). A schedule with another target (the agent as a member or by name, or its
session, as an agent’s schedule tools or a host make it) does not go through
the Console; it was not run.
A seated agent adopted from configuration is served by the 0.9.14 Console as a
configured one: listed once, read by name, sent to (confirmed by a run).
An archived agent, and one that awaits its preparation, stay as they are while
rolled back (confirmed by a run). The Console lists each once and reads it by
name. A send through the gateway is refused: as final (not retryable) when the
agent is archived (identity_archived; an internal error for an adopted agent
that its configuration still lists), until the agent is unarchived on 0.9.15;
as retryable when it awaits its preparation. A 0.9.14 gateway has no method
that unarchives the one or settles the other. A send from the Console to such
an agent is lost: the call is answered as accepted, nothing is delivered, the
message then shows in the Console’s conversation as a failed delivery
(delivery_failed) without a reason, and it is not delivered later, the
return to 0.9.15 and an unarchive included (confirmed by a run).
A send to an agent that is owed its seat is refused as retryable until the mob
next starts (a restart of the gateway, or the resume of a stopped mob), which
seats it; nothing seats it while the mob runs (read from the source, not run).
Of the meta/identity methods a 0.9.14 gateway serves resolved_tools,
routing_status and warm only, and its lifecycle verbs refuse such an agent
(identity_store_owned) (confirmed by a run). It serves none of the fourteen
methods that are new in 0.9.15, so such an agent is not created, updated,
archived, unarchived, removed or adopted there, and is not listed or read
through them.
Do: before a rollback, on 0.9.15, unarchive, remove or settle each agent
that must not stay as it is, and pause the Console schedules of agents created
at run time (meta/schedule/pause); resume them after the return
(meta/schedule/resume). While rolled back, send to a seated agent created at
run time through the gateway, not from the Console.
Do, for an archived agent and one that awaits its preparation: no step
makes a Console send to it arrive while rolled back. Do not send to it from
the Console while rolled back. After the return, send again each message that
shows delivery_failed: it is not delivered by itself.
Access rules and agents created at run time. This item is about a
rollback: a 0.9.14 Console over state that holds agents created on 0.9.15.
There the Console does not decide such an agent by its role and labels
everywhere.
- The list of agents. The entry of such an agent is not hidden by a rule that names a role, whether or not the agent has a seated member; a rule that names a label of the agent hides it (confirmed by a run). A seated one is listed twice: a rule by role hides the first entry, its member’s, and not the second, the agent’s own entry, which carries no role (confirmed by a run).
- A read by name (
meta/console/inspect_identity,meta/identity/resolved_tools) of such an agent that has no seated member (archived, or awaiting its preparation) is decided without its role and its labels: a deny that names either does not apply. A read by name of a seated one is decided by both. A person whom a rule by role or by label keeps out is refused by the rule (-32030,access_denied), onmeta/console/inspect_identityas onmeta/identity/resolved_tools. For a person the rules admit,meta/identity/resolved_toolsanswers, andmeta/console/inspect_identityfails as the item above says: with an internal error (-32000), not a refusal, so a caller can tell the two apart (confirmed by a run). - A deny rule that names the agent hides its entry, both entries of a seated one, and refuses the reads (confirmed by a run).
- An agent private to a person stays private: another signed-in person who
is no administrator is shown no entry of it, gets no read of it by name and
nothing of its conversation, and cannot send to it, whether it is seated or
archived (confirmed by a run). Through the gateway’s methods, only one
adopted from a configuration that declares it private is private: a create
or an update that names the private label is refused (
reserved_key; the create confirmed by a run, the update read from the source).
paused_for_target and reads
the schedule as paused, so the schedule stays paused while rolled back, and
nothing on 0.9.14 resumes it when its target takes deliveries again. Any
write of the schedule by the earlier release while it is paused (an update,
a pause by name, a target snapshot sync, a late supersession
acknowledgement) stores it without the mark; a schedule the earlier release
did not write keeps the mark. After the return to 0.9.15 a schedule that
kept its mark is resumed with its target, and one whose mark was dropped
stays paused when its target comes back, until it is resumed by name. See
Schedules paused for their target and a rollback.
A stored reasoning effort level. 0.9.14 has no reasoning_effort
field. What a rollback costs depends on where a level is stored and
whether it was used (the note beside the change is under
Reasoning effort is one setting for every provider).
Unless a sentence says otherwise, the runs this item names were made with
the released 0.9.14 rkat-rpc binary over SQLite stores that a
development build of 0.9.15 wrote; “read from the source” marks
what no run covers.
Before rolling back, on 0.9.15:
-
Let every turn that carries a level finish first. 0.9.14 neither
runs nor finishes such a turn (below). A turn that was interrupted,
because the host stopped while it ran, is recovered at the session’s
next use after the restart, not by the restart alone: use the session
once on 0.9.15 and let that turn finish too (confirmed by a run). A
read-only query lists the stored inputs that carry a level and have not
finished. Run it on
sessions.sqlite3in a SQLite realm’s directory (the same table is inruntime.sqlite3of a JSONL realm, read from the source, not run; a realm with an external storage provider was not established):The query’s places and the four finished states are read from the source. It is confirmed by a run for the first place: one row on each of three stores with an unfinished level turn, none on three stores without one; the second place is read from the source. -
Then clear the level from every session that holds one, a mob
member’s session included:
rkat run --resume <SESSION> --no-reasoning-effort "<PROMPT>", or a turn withreasoning_effort{"action":"clear"}. The clear is a turn: both forms run a prompt on the model, once per session. It does not matter whether the session was created with the level or a turn set it, nor whether its model was changed while it held the level, by a turn that named a model or by the run’s ownbrain_swap: after the clear, 0.9.14 takes a turn, a read and the history of each (confirmed by a run). Replacing or clearingprovider_paramsdoes not remove the level (read from the source). No command or call lists the sessions that hold a level, or shows a session’s stored level, in this release:rkat session list,rkat session show <ID>,session/listandsession/readsay nothing about it (confirmed by a run). A read-only query onsessions.sqlite3in a SQLite realm’s directory finds them (confirmed by a run: no row before any level was set, one row after a turn set one, no row right after the clear and after later turns, on a store of five sessions exactly the one that was not cleared, and no row on a store that 0.9.14 wrote). The two places of a model fallback record are from the source, where the level stands beside the first; no run had a level in those places alone. The query does not cover the sessions of a JSONL realm or of a realm with an external storage provider (not established), nor a stored session that has no head row:After the clear the store still keeps the previous version of the session’s settings, level included, as the retry witness of that one step, until the settings change again. 0.9.14 took turns, reads and the history of cleared sessions (confirmed by a run). It reads the kept version only as bytes, on a recovery path (read from the source). One case was not established: a recovery on 0.9.14 after a crash of 0.9.15 that left the runtime behind the clear. -
Replace or delete every realm profile that holds a level or lists
reasoning_effortinresume_overrides(below). - Destroy every mob whose definition holds a level in any profile, and create it anew without the level. This costs the mob with its events, its members and their conversations (below).
- A session that still holds a level does not return. A turn on it and
session/readdo not return: no answer and no error comes back (the runs waited 30, 45, 60 and 300 seconds). The reason is only in the server’s log:generated authority rejected durable restore authority="session-metadata" error=unknown field `reasoning_effort`. The session’s history,session/listandsession/archiveanswer, and other sessions are untouched. A turn sent on 0.9.14 to such a session is not stored and is absent after the return. Going back to 0.9.15 and clearing the level ends it (confirmed by a run).events/snapshotreads the session too, so for a session that still holds a level it does not return either (read from the source). - A session that used a level and was cleared works: turns,
session/read, the history,session/list,events/latest_cursor,events/snapshotandsession/archiveanswer (confirmed by a run). One thing does not come back on 0.9.14, the session’s event replay:events/list_sincefor that session fails as a whole, from any position, also from a cursor that 0.9.14 has just returned, withunknown variant `request_reasoning_effort_resolved`(confirmed by a run). Every request that was sent with a level stored that event, so every session that ran a turn with a level is affected. The stored log can hold three more things 0.9.14 does not know: arun_failedwith the reasonreasoning_effort_refused, amodel_fallback_skippedwith the reasonreasoning_effort_unsupported, and model fallback events whose recorded identity holds the level (read from the source). At each use of such a session, cleared too, 0.9.14 also logs that the session’s derived.rkat/view is degraded (“projected event rows remain available for replay”; confirmed by a run). That view is the filesevents.jsonlandsummary.txtunder.rkat/sessions/<SESSION>/, written for people and tools that read them from disk, for example as an audit log. Nothing in Meerkat reads them, and a failed update of them is only logged: degraded means that these files can stop following the session while it runs on 0.9.14 (read from the source). What is lost on 0.9.14: a client cannot replay that session’s events from a cursor. What still works: the session, its transcript and new turns. No step ends it on 0.9.14; 0.9.15 reads the log again. The number an event’s envelope carries (seq) orders events within one stream only: after a rollback it can repeat or go back across process restarts, on both versions, and on 0.9.14 the numbers a stream carries for such a session can start again at 1. To hold a position across restarts, use the cursor thatevents/list_sincereturns: on 0.9.15 it stays unique and rising across the rollback, and a read from it returns exactly the later events (confirmed by a run); on 0.9.14events/list_sincefails for such a session from any position. - A mob member whose session holds a level that a turn set (the
mob’s definition and its profiles hold none). Cleared before the
rollback, the member works on 0.9.14: it is listed, it takes turns, its
flows complete and the mob’s events are read; only its session’s
events/list_sincefails, with the warning above. Not cleared, the member is marked broken on 0.9.14 and a flow step routed to its role fails; the failure names the cause (“member … failed to restore session … unknown fieldreasoning_effort”).mob/turn_startfor it answers an error at once (“could not be woken”), while a call on its session alone does not return. After a restart of 0.9.14 the member reads as active until the next flow touches it. Going back to 0.9.15 ends it (all of this confirmed by a run): clear the level on every member’s session before the rollback. One case reaches further (read from the source, not run): a mob member that is placed on another host, served there by anrkat mob hostprocess, and whose session used a level, cleared or not. The controlling mob follows a placed member from its session’s stored events. So on 0.9.14 its observation of that member, and the tracking of a turn or a flow step delivered to that member, fail while the events 0.9.14 does not know lie in the stretch of the log it reads. Other members, the membership, and members that run in the mob’s own host are untouched. No step on 0.9.14 ends it. On a member host that has gone back to 0.9.14, retiring a placed member (or archiving its session) while a tracked flow step or tracked delivery for it is still unsettled can fail (read from the source, not run). Going forward does not end all of it: after such a member’s host has run 0.9.14 and returned, the controlling host can skip events when that member’s event stream is resumed from a cursor, and a wait for the completion of its run can time out; the stored events are complete (read from the source, not run). For a placed member the condition ends when the controller process restarts or the member’s residency changes (its host re-binds, the member moves to another host, gets a new session or a new member generation, or is retired) (read from the source). Which operation changes the residency in a given setup, and whether a host that was rolled back re-binds by itself, is not established. - The status of a turn that ran with a level (
session/input_status) answers on 0.9.14, with one exception: an input that was admitted and then refused for its level (a turn on a session whose model does not support the level; below). The status call for such an input fails on 0.9.14, also after the level is cleared (confirmed by a run); the session’s other calls answer. For every other finished turn the stored record verifies on a release that does not know the level’s report (confirmed by a run and by a test). - A turn that carries a level and has not finished is neither run nor refused by 0.9.14: its status call fails there, and the input waits unchanged and runs again at the session’s next turn on 0.9.15 (confirmed by a run). Its session still holds the level, so it does not return on 0.9.14 either way. Read from the source and not seen in a run: where the session itself holds no level (the unfinished turn is the one that sets the level, or one that clears it), 0.9.14 stops the recovery of that session’s runtime on the row, so a turn, a resume and an archive of that session answer an internal error (“Runtime recovery is repair-blocked”) until 0.9.15 has finished the turn, while reads and the session list work.
- A mob whose definition holds a level in any profile, even a profile
no member ever used, or the
resume_overridesvaluereasoning_effort. This is a one-way step. 0.9.14 quarantines the whole mob when it starts (log: “quarantining a persisted mob store”, classstore_unreadable):mob/listshows it as quarantined (not retryable, content retained), andmob/status,mob/members,mob/flows,mob/flow_status,mob/events,mob/turn_start(also for a member without a level) andmob/flow_runeach answer-32603“mob … is quarantined (store_unreadable)”. The host starts and serves its other mobs: one mob’s quarantine does not take another mob with it. Nothing is written to the quarantined mob’s store, and back on 0.9.15 the mob is whole (confirmed by a run, for a level in the definition and for a level in a spawned member’s profile). A Meta gateway on 0.9.14 does not start on the state directory of such a mob (confirmed by a run with development builds of both releases; no published binary was used). The mob’s creation event records the definition, so removing the level afterwards, or a reset, does not help (read from the source, not run). The way back is to destroy the mob on 0.9.15 before the rollback (mob/lifecyclewith the actiondestroy) and to create it anew without the level. Confirmed by a run with the released 0.9.14 binary, within these limits: one run, on a Core host (rkat-rpc), with a mob created over JSON-RPC; a Meta gateway was not run. After the destroy, 0.9.14 listed no quarantined mob and logged no quarantine, the destroyed mob was not found there, and the mob created anew without the level ran on 0.9.14 and again on 0.9.15. What the destroy costs: the mob with its events, its members and their conversations; the new mob is a new mob. After the destroy a member’s session is not found by its id, on 0.9.15 too (session/readanswers “Session not found”), while the statuses of its stored inputs still answer (confirmed by a run). An earlier run found the destroyed member’s session row, with its level, still in the sessions store, so the query for sessions that hold a level can list such a session. No call that takes a session id reaches it, and no step for it is known; whether anything else on 0.9.14 reads that row was not established. - A realm profile that holds a level, or the
resume_overridesvaluereasoning_effort. While a profile holds either, the realm’s whole profile list (mob/profile/list) fails on 0.9.14 (unknown field `reasoning_effort`) andmob/profile/getof such a profile fails the same way (for the override:unknown variant `reasoning_effort`); a get of a plain profile answers. The sure step is the one before the rollback: replace the profile on 0.9.15 with one that holds neither (mob/profile/updatewith the whole profile), or delete it (mob/profile/delete): a profile keeps no history, so the replaced row is all 0.9.14 reads, and 0.9.14 then lists and reads every profile. Where that was not done before the rollback: on 0.9.14 amob/profile/updateof such a profile with the whole profile without them succeeds, and the list answers once every such profile is updated. You need the profile’s name; a wrongexpected_revisionis refused with the actual one. A delete of such a profile fails on 0.9.14. All of this is confirmed by runs. A member that was spawned from the profile while it held a level is the mob case above.
-
The record of a turn that was admitted and then refused for its
level. A turn that asks for a level its route refuses stores nothing
0.9.14 cannot read: it is refused when a session is created, or before
the turn’s input is stored, on a live session and on a stored one; a
turn judged only at its start is refused there, and its stored input
ends as abandoned: in 0.9.15 with the reason
stopped(confirmed by a run), from 0.9.16 with the reasonnever_executed(confirmed by tests of the runtime, on both of its drivers). 0.9.14 reads both values. The record is another case: a turn is admitted, and its request is then refused, before anything is sent to the model, because the session holds a level that its model does not support. The shape that was run: a run switches the session to such a model (brain_swap), and the next turn is refused (-32602,reasoning_effort_refused, reasonunsupported_level), and so is every turn after it until the level is cleared (confirmed by a run, within these limits: one run, self-hosted models behind a scripted endpoint, over JSON-RPC; not run: REST, the CLI, a mob member). Two more ways in are read from the source: a route whose levels cannot be read when the request is made (an account’s model list that is not loaded), and a refusal that the provider client returns. Not ways in: a compaction that is refused for the level, after which the run goes on; a mob flow, whose failed step is recorded as text only; and a model fallback, where a target that does not take the level is skipped and the skip’s reason is stored in the event log only (the last: confirmed by a test and by a run with the released 0.9.14 binary). The stored input of that turn is finished (consumed) and keeps the typed failure, and 0.9.14 does not know the reason, so the row does not decode there. On 0.9.14session/input_statusfor that input fails (“input state read failed: … unknown variantreasoning_effort_refused”), also after the level is cleared, while the session’s other inputs answer andsession/list,session/read,session/historyand a turn work (confirmed by a run). Read from the source and not called in a run: the delivery status a consent delivery or Meerkat Meta’s delivery to a mob’s runtime asks for when it is this input’s; Meerkat Connect’s continuity check for the session and the settlement it runs when it takes the session over cold; and, in a governed realm, revoking a controller grant and releasing a credential lease, which read the inputs of every session in the store. The row stays stored, 0.9.15 reads it again, and no step removes it. A read-only query finds such rows, onsessions.sqlite3in the realm’s directory (runtime.sqlite3for a JSONL realm, not run). It was run on a store with two such rows and returned both (confirmed by a run):
rkat storage doctor finding or count for stored
levels yet. To find affected mobs before rolling back, take the mob ids
from JSON-RPC mob/list (rkat has no command that lists mobs), page
each mob’s stored events with rkat mob logs <MOB_ID> --json (100 events
a call) and search them for reasoning_effort: a level in the definition
shows in the creation event (after a rollback that was tried and taken
back, the text of a failed flow step names it too). List the realm
profiles with JSON-RPC mob/profile/list and search them the same way (an
empty resume_overrides list is left out of the answer). Both searches
are confirmed by a run, for a level in a mob’s definition and for a
profile that holds a level or lists reasoning_effort in
resume_overrides; not run: a level that arrives in a later event of a
long mob. Sessions and mobs that never carried a level are written
exactly as before and read on either release.
Upgrading to 0.9.14
This section is for systems running 0.9.13. The full list of changes is in the CHANGELOG under## [0.9.14].
Meerkat 0.9.14 is Core 0.9.14, Meta 0.9.14 and Connect 0.9.14, released
together.
Replay to OpenAI-wire services (Rust)
meerkat-core: ReplayPlan::build with an OpenAI-wire ReplayTarget, and
ReplayWireFamily::OpenAi.strip_foreign_metadata, no longer keep
OpenAI-family provider metadata: a target planned that way names no service,
so none of that metadata is its own. Anthropic and Gemini targets are
unchanged.
Do: a provider adapter for an OpenAI-wire service plans with
ReplayPlan::build_with_openai_continuity and asks
ReplayPlan::step_admission.
Sessions on OpenAI-family routes after a restart
Encrypted reasoning items, hosted-tool items, item ids and response ids are replayed only to the service the running process received them from (the public OpenAI API, the ChatGPT backend, Azure OpenAI, GitHub Copilot or a self-hosted server). A process knows the issuer only of what it received itself, and that knowledge is not stored. So after the restart of this upgrade, and after any later restart or a resume from the store in a new process, earlier turns are replayed without their encrypted reasoning, hosted-tool call items and item ids, on the same service too; the steps of the new process replay in full. The first request after a restart renders those earlier turns differently than the request before it did, and the provider’s prompt cache misses once from the first such turn on. Nothing in a stored session, an event, an export or an SDK payload changes.A request refused inside a Responses stream fails once
On the Responses stream ofOpenAiClient (the OpenAI API, the ChatGPT
backend, Azure OpenAI, GitHub Copilot /responses and a self-hosted server
in Responses mode), a request refused with the stream error code
invalid_request_body, invalid_encrypted_content, invalid_prompt,
invalid_value, invalid_argument, unsupported_value or
unsupported_parameter is now LlmError::InvalidRequest
(provider_error_kind invalid_request, non-retryable), or the
context-overflow, oversized-request or exhausted-quota class when the
message names one, and model_not_found is LlmError::ModelNotFound
(reason_type llm_invalid_model). Through 0.9.13 such a request was sent
again until the retry policy was used up and the turn ended as
retry exhausted; the turn now fails once, on the LLM failure itself.
usage_limit_reached (the ChatGPT backend’s plan usage limit) is
LlmError::QuotaExhausted, non-retryable, wherever that list is read; in an
HTTP 429 body it was a rate limit, which is retried.
Do: code that matched the retry exhausted outcome for these refusals
matches the new class, and code that treated usage_limit_reached as a rate
limit treats it as an exhausted quota.
GitHub Copilot routes: the default client identity
The default client identity a Copilot route sends isEditor-Version: vscode/1.145.2 (was vscode/1.107.0),
Editor-Plugin-Version: copilot-chat/0.73.0 (was copilot-chat/0.35.0) and
User-Agent: GitHubCopilotChat/0.73.0 (was GitHubCopilotChat/0.35.0). Two
public values change with it: the constant
meerkat_auth_core::github_copilot::GITHUB_COPILOT_USER_AGENT and what
meerkat_copilot::CopilotBackendConfig::default() returns. A route whose
backend options set user_agent, editor_version or
editor_plugin_version keeps its own values on the token exchange, the
identity lookup, the model listing and inference.
Do: code that compares against the earlier value of the constant or of
the default configuration compares against the new one.
File writes the operating system refuses
A file write that the operating system refuses (a file size limit, a quota, a full filesystem that allocates at write time, or an I/O error) now fails the operation with the error it already returns for a failed open or rename, publishes nothing and removes its temporary file: the file it would have replaced stays as it was, and a file that did not exist is not created. Through 0.9.13 such a write could replace the file with an empty one while the operation reported success. A realm lease record is the one file that is still emptied, on purpose and only at a heartbeat that cannot replace it. A file an earlier release already emptied is not restored. Do: where a write may have been refused under an earlier release, check these files for an empty one:- a credential file of the file credential store
(
<credentials>/<realm>/<slot>.json): an empty one no longer loads; realm_manifest.json: with an empty one every open of that realm fails to parse it, and so dorkat realm listandrkat realm prunefor the whole state root;.rkat/tasks.json, the builtin task tools’ JSON task file: with an empty one every stored task was lost. Only the file task store writes this file; the shippedrkat,rkat-rpc,rkat-restandrkat-mcpbinaries keep tasks in SQLite.
Meta 0.9.14
Meta 0.9.14 pins Core=0.9.14. The full list is in meta/CHANGELOG.md
under ## [0.9.14].
- Security: a mob that a member private to a person creates with its own
mob_createstays private to that person after a restart, so every member spawned into it after the restart is private to that person too. In 0.9.11 through 0.9.13 such a mob came back private to no one. A mob whose creation record says that several rosters named the session that created it, and picks none (MobProvenance::Ambiguous), no longer comes back private to no one: after a restart a spawn into it is refused, and the members already seated in it keep the owner their own spawn gave them.
Connect 0.9.14
Connect 0.9.14 is GitHub releaseconnect-v0.9.14 in lukacf/meerkat, a
full release that is never the repository’s latest. The full list is in
connect/CHANGELOG.md under ## [0.9.14].
@rkat/toolkitaccepts its optional peers@rkat/sdkand@rkat/meta-sdkfrom 0.9.14 below 0.10.0 (>=0.9.14 <0.10.0; it accepted them from 0.9.10). Do: upgrade@rkat/toolkit,@rkat/sdkand@rkat/meta-sdktogether.
Rolling back to 0.9.13
No stored format changed: 0.9.13 and 0.9.14 write the same rows for the same response.Upgrading to 0.9.13
Meerkat 0.9.13 is Core 0.9.13, Meta 0.9.13 and Connect 0.9.13, released together. It changed the packaging of themeerkat-meta crate only: the
crate is published without its integration test directory, which brings it
back under the registry’s limit. Core 0.9.13 has no code changes, and Meta
0.9.13 and Connect 0.9.13 hold every change of their 0.9.12, so there is no
step beyond those of “Upgrading to 0.9.12” below. The meerkat-meta 0.9.12
crate was never published: a Rust host moves from meerkat-meta 0.9.11 to
0.9.13.
0.9.13 migrates no durable state, and what “Upgrading to 0.9.12” says about
stored state and about a rollback to 0.9.11 holds for 0.9.13 as it does for
0.9.12: between the two releases no Rust source file of Core, Meta or
Connect changed except the version number.
Upgrading to 0.9.12
This section is for systems running 0.9.11. The full list of changes is in the CHANGELOG under## [0.9.12].
Meerkat 0.9.12 is Core 0.9.12, Meta 0.9.12 and Connect 0.9.12, released
together.
0.9.12 migrates no durable state: it opens what 0.9.11 persisted as it is.
This rests on a comparison of the source of the releases, not on loading
state that a 0.9.11 binary wrote: the schema, journal and record version
numbers of Core’s and Meta’s stores are the same in 0.9.11, 0.9.12 and
0.9.13, no table, column or index definition of a store changed, and no
migration was added. Connect’s own stored forms were not compared; its one
known difference is the downgrade item under “Connect 0.9.12” below.
rusqlite 0.41 (Rust)
Meerkat moves to rusqlite 0.41 (libsqlite3-sys 0.39). libsqlite3-sys links one SQLite per build (links = "sqlite3"), so Cargo refuses a graph that
holds rusqlite 0.37 next to Meerkat’s rusqlite 0.41. Every public signature
of meerkat-sqlite, meerkat-store, meerkat-runtime and
meerkat-workgraph that names a rusqlite type names rusqlite 0.41’s, for
example meerkat_sqlite::Connection (a re-export of rusqlite::Connection)
and the rusqlite::Error that meerkat_sqlite::SqliteStoreError::Sqlite
carries. In Meta,
meta_extension_state::SqliteExtensionDocumentStore::from_connection and
meerkat_meta::mob_announcements::SqliteAnnouncementStore::from_connection
take a rusqlite 0.41 Connection.
Do: an application or host that depends on rusqlite (or libsqlite3-sys)
itself moves to rusqlite 0.41 (libsqlite3-sys 0.39) in the same change that
moves it to Meerkat 0.9.12.
Agents and engine configuration files
Agents cannot change engine configuration with the file tools any more, and an agent can no longer write a.rkat directory anywhere under its project
root, not only the one at the root: a nested project’s .rkat/mcp.toml,
hooks, skills or realm is changed by its operator. The CHANGELOG’s Security
and Changed sections describe the change.
Do:
- If you asked an agent to edit
.rkat/mcp.toml,.rkat/config.tomlor a file under.rkat/skills/, make the change withrkat mcp add,rkat config setorrkat config patch,rkat skill add, or edit the file yourself. - If you run
rkat-rpcorrkat-mcp(directly or through the Python or TypeScript SDK) and let agents write files, start the server with a context root:--context-root <dir>, or the SDK optioncontext_root/contextRoot. Agents then work in that directory and the realm’s state lies outside it. Without one, files still land in the realm directory as before, the realm’s documents are refused, and the realm’s stores remain writable by the file tools. - A Rust host that keeps its realm state, config documents or credential
store inside the project root it gives its tools, outside
.rkat, declares them withAgentFactory::with_protected_host_inputs.
rkat auth profile prints no credential values
rkat auth profile <PROFILE_ID> prints only the profile’s id, provider,
auth_method and source_kind, the auth_profile shape JSON-RPC
auth/profile/get returns. Its source, constraints and
metadata_defaults are no longer printed.
Do: a script that read a credential value from that output reads it
where the profile’s source keeps it instead: the realm config that declares
an inline_secret source, the environment variable, file descriptor or
credential command another source names, or the credential store. To check
that a binding’s credential resolves without reading it, run
rkat auth test <BINDING_ID>.
Catalog models you had defined yourself
Model IDs are unique across the catalog,[models.<id>] entries and
self-hosted models, and this release adds claude-fable-5-2 and
gemini-4-carbon to the catalog. A realm or project configuration that has
[models.claude-fable-5-2] or [models.gemini-4-carbon] (for example
because you ran the model before the catalog listed it) is now refused by
configuration validation with
model id '<id>' must be unique across built-in, custom, and self-hosted entries.
Do: remove the entry. The catalog row then serves the model with its own
limits and capabilities. The same applies whenever a release adds a model
you had defined yourself.
Member send results (Rust)
meerkat-contracts: MobMemberSendResult gains the field
admission: Option<WireMemberInputAdmission>. On the wire the field is
optional and left out when absent, so a client that does not read it is
unaffected.
Do: code that builds MobMemberSendResult with a struct literal sets
the new field; None keeps the earlier answer.
Meta 0.9.12
Meta 0.9.12 pins Core=0.9.12. The full list is in meta/CHANGELOG.md
under ## [0.9.12].
- Rust:
ErrorEvent::LifecycleEffectFailedgainscause(LifecycleEffectFailureCause), left off the wire while it isfailed, so a serialized event reads as before. Do: a host that builds the variant literally addscause: LifecycleEffectFailureCause::Failed, and one that destructures it without..names the field. IdentityRuntimeErrorgainsIdentityStoreOwnedandIdentityArchived. A lifecycle verb (reload, retire, respawn, reset, delete, materialize) of a store-owned identity answers-32603with the new kindidentity_store_owned, and a delivery to an identity created at runtime that Core archived answers-32603with the new kindidentity_archived. Do: add the new arms, or a wildcard arm, to each exhaustive match on the enum.SessionBridgehas two new methods,created_identitiesandcreated_identity. Their defaults answerBridgeError::Unsupported: over a bridge that does not implement them the identity runtime serves no identity created at runtime, as before. Do: a host’s own wrapper of a session bridge forwards them to the bridge it wraps.- Forge: the Guide moves from Meta 0.9.3 to the Meta release Forge is built from, so an existing Forge folder starts a fresh setup team in its state directory on its first start. Saved setups, proposals, provider settings and installed applications stay, and the previous setup team’s state is kept unchanged, but the new team does not recall earlier conversations. Do: to carry them over, follow the installer README’s “Work with the setup team” before that first start.
Connect 0.9.12
Connect 0.9.12 is GitHub releaseconnect-v0.9.12 in lukacf/meerkat, a
full release that is never the repository’s latest. The full list is in
connect/CHANGELOG.md under ## [0.9.12].
- Downgrade: an access decision the next host ended as not issued records
the issuance state
not_issued. A Connect without this change answers a conflict when that decision is applied or read again; other decisions are unaffected.
Rolling back to 0.9.11
This subsection covers a rollback from 0.9.12 or from 0.9.13. What it says was read from the source of the releases; no rollback to 0.9.11 was run. 0.9.11 opens the stores it shares with 0.9.12 and 0.9.13: the store versions are the same (see the top of this section), so no store refuses the older binary. Roll back Core, Meta and Connect together, with every process that shares a realm, a store or a mob, and the SDKs with their servers. These differ:- Meta,
meta_gatewaylaunched withpersistent_sessions: true: 0.9.12 and 0.9.13 keep its metadata and its console log in the state directory (meta_metadata.sqlite3andmeta_console.sqlite3). A 0.9.11meta_gatewaykeeps both in memory and does not open the two files: it starts without what they hold (the console’s requests and timeline, the attention list, the console audit log, the pending approvals and the gating audit, the identities’ tool records) and forgets its own at each restart, as it did before the upgrade. Decide or withdraw the pending approvals before the rollback.rpc_gatewaykept both stores in 0.9.11 and opens them. - Meta:
meta/gating/withdraw, new in 0.9.12, records a gating audit entry of the kindrequest_withdrawn. 0.9.11 restores the gating state that holds it: the kind is text, and its restore checks no list of kinds. - Meta: the record of a failed lifecycle side effect gains an optional
cause. 0.9.12 and 0.9.13 write it only when the side effect did not run because the realm’s agent memory background budget did not admit it (budget_busy). 0.9.11 reads such a record without the key: it shows the side effect as failed, with the attempts and the error the record holds. - Connect: the downgrade item under “Connect 0.9.12” above.
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.
Meta’s roster pass declares through Core
Meerkat Meta’s roster pass (the bootstrap, each refresh and the held pass) declares the host’s roster in Core’s mob through Core’s declared apply, and no longer seats, respawns, releases or retires members itself. A send, a dispatch or a materialization of an identity Core holds no member for declares that identity alone first. What changes for a host:- A member Meta 0.9.3 spawned carries the identity’s
agent_identitylabel but not the durable-identity marker. When the roster lists its identity, Core adopts the member as the identity’s entry and keeps it as it is: Meta no longer respawns it onto its session to give it the marker, so its session resolves no principal for extension documents until the identity’s next fresh life. The roster pass no longer retires such a member when the roster stops listing it either. Every Meta from 0.9.4 to 0.9.10 respawned these members at its first roster pass, so a state directory Meta 0.9.10 last ran holds none. - A rotation (
reset,delete_identity) a crash interrupted is finished by Core, from its own record, when the mob next starts; Meta’s roster pass no longer drives it. Meta still writes its record of the rotation, which a rollback’s roster pass reads. - An identity a complete roster no longer lists is unlisted by Core’s seal,
which retires its member; the pass answers each such identity in
RestoreFlowResult::unlisted(Rust).
A host’s adoption of a declared identity
A host’s adoption of an identity a declared roster lists (MobHandle::adopt_member_identity_declaration over a declared identity
entry, Rust only) takes the entry over: Core retires the member with the
cause MemberRetirementCause::HostAdopted and materializes it again under
the host’s intent, on its own session, as no entry, and the end of that
retirement ends the entry. The adoption ends the identity’s entry, not the
identity: the identity continues under the host’s intent and keeps its
scoped tool grants. In 0.9.10 the entry outlived the retirement,
unseated and owed its seat, and Core refused the host’s spawn of the
identity (IdentityMember), so the identity was not served again. From the
host’s intent row on, a declared apply answers the identity host-adopted
(DeclaredEntryRefusal::HostAdopted), and a complete roster’s seal leaves
its entry as it is, whether the roster lists the identity or not.
Do: nothing on the upgrade; see the rollback below.
Host store implementers: token order and conflicted scopes
Two rules of the host store SPI are new or newly enforced in 0.9.11, each with a row of the host store chapter inmeerkat-store-conformance:
- Token order (the
token_orderrow). Every grant answers a token above every earlier grant of the realm, in either acquire mode and to any caller, a takeover of the caller’s own recorded lease included. Core now holds a re-acquire’s grant to it: a grant at or below the token the writer holds loses the realm until it is reopened, with a cause that names your store’s token order, not another writer. - Conflicted scopes (the
a_conflicted_scope_is_listed_typedrow). A store that meets obligation 4 by failing a scope’s load with a typed conflict (two batches at one of its versions) reports that scope per scope in its listings:list_headsanswers it inHeadPage::conflictsasScopeConflict::new(name, version, commit_ids), with the version that holds the two batches (thecurrentthe load’sConflictnames) and their commit ids, ascending, without repeats and the same each time, or none. Everyread_rowsof the scope answers the same conflict. It is never listed among the heads and never fails the page, and a page holds at mostlimitentries across both lists. A page the store cannot decide yet (a pending acquire cut) answersUnavailable, never a conflict. Core quarantines such a scope and opens the rest of the realm (see A Conflicted Scope); a store that still fails the page keeps the realm from opening.HeadPageis#[non_exhaustive]: a struct literal no longer compiles.
- Build each listing page with
HeadPage::new(heads, next), and add the conflicted scopes withHeadPage::with_conflicts. - Answer every grant with a token above every earlier one.
- Run the host store chapter against your store before you upgrade. A
store that decides between two batches for one version only when it
folds them implements
HostStoreFactory::fold_now, so the conflict row sees what its loads and listings show once it folded. - To lift a quarantine, repair the scope in your store (keep one of the two
batches at that version by your fixed rule, where a lower fence token
never beats a higher one, and remove the other), then reopen the realm
and open again each mob storage your host found quarantined
(
SpiStoredMob::quarantined). A reopen without the repair quarantines the scope again.
The downgrade cycle of store-owned identities
A release before 0.9.9 does not read a mob’s rows of schema version 2 and later: the rows of store-owned identities (present, pending their host’s preparation or archived) and the tombstones of removed names (IdentityRecordCensus::created_rows, and the identity-store-rows
finding of rkat storage doctor). A downgrade of a mob that holds any to
such a release is supported through this cycle only, and a host’s downgrade
tooling refuses while the census counts any row. A downgrade to 0.9.9 or
0.9.10 needs no cycle: they read the rows.
- Hold the mob’s identity changes (
MobHandle::set_identity_changes_held). - Settle every identity awaiting its host’s preparation
(
preparations_open) and every held construction (constructions_held), or remove the identity. - Bring each stale seat up to date (
seats_stale), or remove its identity. - Export the set:
MobHandle::export_created_identitiesanswers aCreatedIdentitySetExport(schemameerkat.identity.created_set.v1) that holds every row as sealed, with each identity’s session reference (its member’s session, or its archived session), sealed with a digest. Keep it: the import needs it. Session contents, memory and decisions are not in it. - Purge:
MobHandle::purge_created_identitieswith the export’s digest, as the host operator. One store transaction removes every row of the set, and nothing else (no session, journal row or host-adopted intent), only while the rows are still the export’s. The mob then refuses every identity change (purged) until it restarts. A purge or an import commits at most 256 identities (IDENTITY_CHANGE_BATCH_MAX, tombstones included): a mob with more rows is refusedbatch_too_large, with nothing removed, and has no supported downgrade below 0.9.9 in this release. - Downgrade.
- After the roll-forward, import the export:
MobHandle::import_created_identities, as the host operator, under imported consent. A retry of its operation replays it.
retire_stale reconcile or a former spawner’s retirement may retire them,
archiving their sessions. The names of removed identities are free there,
and a roster may seat one.
Rolled forward, a start reads each store-owned identity whose row was purged
as unreadable: its name is reserved, nothing acts on it and nothing seats it
until the import restores its row. The import re-creates each record and
re-binds its session: a member seated under its name is bound in place, on
its session, a plain member only when it is bound to the session the record
names (a member on another session, a new worker the older release seated
or the identity’s own on a session the export does not name, is reported
name_taken_meanwhile and left as it is: adopt it to take it into store
custody); an identity with no member is seated again, Dormant, on its
archived session, or on a fresh session with the history unavailable notice
when the session store no longer holds it; pending, archived and removed
names are restored as recorded; and an adopted identity whose roster
declared it again returns to store custody by the adoption’s step. A name
another holder keeps (a roster or a member seated on it meanwhile, or
another row) is left as that holder has it, and the import’s receipt reports
it (name_taken_meanwhile). A re-import under a new operation reports a
record whose restored row differs from it (the import left out an owned edge
another identity held, or the identity changed since) as
name_taken_meanwhile too: the identity is store-owned already, its row is
left as it is, and a retry under the import’s own operation replays its
receipt.
Machine schemas: CI samples for an input field of any type
Inmeerkat-machine-schema, InputFieldDomainKind gains CiSamples, the
values the CI profile samples for an input field of any type (the Deep
profile and every composition explore the field’s whole domain), and
InputFieldDomainError gains SampleTypeMismatch { index }, which refuses
a sample that is not a value of the field’s type. Both are appended last.
Do: add the new arm to each exhaustive match on either enum.
Upgrade the SDKs with the server
A Python, TypeScript or Web SDK of 0.9.10 or earlier refuses the newrequested_compaction_skipped event type, as it does any event type newer
than its contract. A session publishes it when a host’s compaction request
(session/compact, mob/compact_member) is consumed by a check that has
nothing to compact.
Do: upgrade the SDKs together with the server, before any host asks a
session to compact.
Tool grant run scopes and grant requests
A grant can be scoped to one run of its subject (a session, or the session a member identity’s member holds), and a person can approve a grant that a host (tool_grants/request) or a gated session’s agent
(request_tool_grant) asked for. Both write grant rows a 0.9.10 binary
cannot read: it reads a run-scoped grant, and the grant an approved request
issued (its id is a version 5 UUID), as unreadable, so it opens nothing there
and lists it under unreadable. A 0.9.10 client decodes the status
run_ended, the expiry drivers run and recovery and the audit event
run_ended as unknown, reads the statuses requested and declined as
they are (they exist since 0.9.9), and ignores a grant’s scope.
rkat-rpc runs the executor of tool_grant.issue decisions on its store and
claims that kind: another process’s loop of the kind executes none of them
while it runs. Every grant-gated build mounts request_tool_grant, and a
host that takes no grant requests answers its calls with a tool error.
Do:
- Upgrade every host that serves gated sessions, and every process that executes decisions on their store, before relying on run scopes or requests.
- A client that compares a session’s tools with its build’s gate allows for
request_tool_grant. - Before rolling back to 0.9.10, revoke the grants approved requests issued, or let them expire: 0.9.10 can neither read nor revoke them, and one still within its window comes back live on the next upgrade. 0.9.10 executes no grant request, so open and approved requests wait for the next upgrade.
Rolling back to 0.9.10
0.9.10 reads what 0.9.11 writes, with the exceptions below. Roll back Core, Meta and Connect together, with every process that shares a realm, a store or a mob, and the SDKs with their servers.Configuration a 0.9.10 process refuses to load
-
[governance.decisions]: 0.9.10 refuses a[governance]section with adecisionskey and fails to load the realm’s configuration document as a whole. Remove the section before a rollback. -
Meta access rules that name
schedule.manage: an access configuration saved by 0.9.11 names it wherever a rule grantsagent.send, and Meta 0.9.10 refuses to load a configuration that names it. Removeschedule.managefrom the rules, or restore the configuration saved before the upgrade. -
Meta access rules that name
audit.view: refused by earlier releases (unknown action). Keep it out of a configuration a 0.9.10 gateway may load. -
Meta access rules that name
decisions.view,decisions.decide,decisions.adminordecisions.*, and an approver id whose only holders areingress_subjectsorpeopleentries: Meta 0.9.10 refuses to start with that configuration. Remove those actions from the rules and give each such approver id itssubjectsorgroups, or restore the configuration saved before the upgrade. Anrpc_gateway0.9.10 also refuses to start withruntime_options.decisions(unsupported runtime_options fields: decisions): leave it out of the launch.
Records 0.9.10 reads as unreadable, one by one
Nothing acts on such a record; everything else loads.- Durable decisions decided in a login on 0.9.11: 0.9.10 (and 0.9.9) reads them as torn, lists them as unreadable, never executes them and leaves the rows as stored. Back on 0.9.11 they read again and execute before their deadline. A decision decided with no login, and every decision decided before the upgrade, reads as before.
-
A decision whose row records a cleanup or a reply (an executed
grant.childdecision): unreadable. Before a rollback, let the approval branches end and their cleanups settle. - A decision row that holds a linked presentation (recorded, or in a decided decision’s evidence): unreadable. Rows without a link read as before.
-
A scoped tool grant whose issuer carries a
decision_ref: unreadable; it opens nothing. Revoke it, or let it expire, before a rollback. -
A scoped tool grant 0.9.11 ended with its identity (
subject_endedin its row): listed as unreadable; it opens and blocks nothing. - A scoped tool grant of an MCP server: unreadable; it opens nothing. Revoke it, or let it expire, before a rollback.
-
A run-scoped tool grant, and its
grantedandrun_endedaudit rows: unreadable; it opens nothing. -
A grant an approved request issued (its id is a version 5 UUID), window
grants included: unreadable, listed under
unreadable, andtool_grants/revokeanswers not found. One still within its window comes back live at the next upgrade. -
Identity-change receipts: an adoption’s receipt (kind
adopt) and a purge’s or an import’s receipt read as unreadable, so a replay of that operation there reads its receipt as unreadable.
Identities refused one by one (the mob still loads)
- Every identity 0.9.11 adopts records
profile_sourcein its desired material, which 0.9.10 cannot read; over time that is most identities. Under 0.9.10 each such identity’s intent row reads as malformed and the identity asRepairBlocked; a write that needs its authority is refusedIdentityAuthorityBlocked, and a new adoption of it is refused too. The mob still loads, and its other identities run. Recover by upgrading again.
Stores and owners 0.9.10 refuses as a whole
- A grant journal that holds a grant issued under a child rule, an approval-carried child or a spent use: 0.9.10’s reader refuses the journal, so that grant owner is unavailable there. Before a rollback, revoke the approval-carried grants or let them expire. A journal of plain grants reads on both releases.
-
A retained work whose basis selects a lineage for a hold of a decision
(
GrantTarget::DecisionHold, the calling work of an access offer): 0.9.10 cannot decode it. Before a rollback, let such works end. - Connect: a Connect without the governed peer delivery change refuses to open a source store that holds such a delivery’s row (the row records the sending work’s requester, agent and works). Rows written before the upgrade read as before.
Members and servers that do not start
-
A member built by 0.9.11 records its grant gate in its session; a 0.9.10
member build names no gate, so its resume restores the recorded one: a
recorded family whose switch the profile leaves off fails the resume
(
FamilyDisabled), and a recorded tool name nothing mounts fails it (UnknownTool). The member is not resumed: it fails closed. Recover by upgrading again, or respawn the member on 0.9.10, which starts it on a fresh session with no recorded gate. - An MCP service-secret value stored by 0.9.11 (stored with its write identity): 0.9.10 reports the slot as not stored and refuses the server’s launch. After a rollback, set the value again with 0.9.10. Values stored by earlier versions launch as before.
Protections 0.9.10 does not apply
-
Console sign-outs: 0.9.11 keeps them in the console session fence record
(
console-session-fences.json); a 0.9.10 gateway keeps them in the file but does not enforce them while it runs, so a login signed out on 0.9.11 is accepted there again while its tokens are valid. They apply again after the upgrade. -
Grant gates: 0.9.10 drops
tools.grant_gated(leave a gated family’s switch off and 0.9.10 keeps the family off) and the role gate (a member whose own profile switches on a family its role gates runs that family with no grant there). -
MCP server gates: 0.9.10 drops a gate’s
mcp_serversandunconfigured_mcp_servers, so the servers they gate run ungated and a gated server a profile configures starts at every build. Take the server gates out, or the servers they gate, before a rollback. - Private replies: a rollback leaves the attention items stored and unread, and shows a private reply in a person’s side chat as a runtime event to whoever may view that side chat; 0.9.10 has no private side chats, so that is everyone who may view the agent it was forked from.
-
Private side chats: 0.9.10 does not read the
console.private_tolabel that 0.9.11 writes on a private side chat and on each member the side chat created. It decides a side chat as the agent it was forked from, and each member the side chat created by its spawn lineage (spawned_by), so everyone who may view that agent sees them; on a console that enforces no access configuration, everyone does. Before a rollback, close the private side chats (Close side chat retires one) and retire the members they created. -
Personal accounts on MCP servers: 0.9.10 reads no account modes. A
meta_gateway0.9.10 does not readconfig/mcp_accounts.toml, so a server marked personal is an ordinary server there: every member whose profile declares it gets it, with the installation’s own credential for that server if one is stored, and never a person’s (the per-person credentials stay stored, unread). Anrpc_gateway0.9.10 refuses a launch whoseruntime_optionsnamemcp_accounts(“unsupported runtime_options fields”). Before a rollback, removeruntime_options.mcp_accountsfromrpc_gatewaylaunches, and take the personal servers out of the profiles, or decide which installation credential they act with there. -
Operator memory: where
agent_memory.operator_scope = "provisional"is set, 0.9.11 keys a person’s operator memory by their caller scope (console-caller:v1:keys) and recalls it only in that person’s own turns. 0.9.10 keys it by the console principal that last spoke to an agent: it recalls none of the records 0.9.11 wrote (they stay stored, and the next upgrade recalls them again), and it recalls the records written before 0.9.11 under that principal in every turn of the agent, whoever asks, until another principal speaks to it. What it writes uses those older keys, which 0.9.11 no longer recalls. Before a rollback, setoperator_scopeto"off"if a person’s operator memory must not reach other people’s turns.
Data 0.9.10 drops (it stays dropped after a re-upgrade)
-
Consent rows: Core 0.9.10 reads every row (it ignores
consent.approver.authentication_scope_digest), butFileApprovalStorerewrites every row on each write, so its first write drops the login digests recorded until then. -
Requesters of stored inputs and transcript rows: an older Core drops the
field, so the input and its turn have no requester and nothing acts for
that person. A keyed retry, under 0.9.10, of an input 0.9.11 admitted
with a requester is refused as an idempotency conflict
(
InputIdempotencyConflict), not deduplicated. -
Detached jobs: an older Core that reads a stored job drops its requester;
one that writes it (a claim, a heartbeat, its completion) removes the
field for good. After upgrading again, the job’s attempts name no
requester (a person-scoped tool refuses them), and a replay of the
submitting call is refused
DetachedJobError::SubmissionConflict. A Meta gateway rolled back while such a callback job runs does the same.
State 0.9.10 reads its own way (one step, or none)
- Held-completion marks and identity rotation records: Meta 0.9.11 still writes them, with the contents 0.9.10 writes, for a rollback only. Nothing to do.
- Store-owned identities: 0.9.10 reads their owned edges as plain wiring (a plain unwire ends one there; the next 0.9.11 start owns them again), and an adopted identity as the store-owned identity its row records: its roster keeps the member’s former spawner, and retiring that spawner there retires the adopted member and owes the identity its seat again.
-
Governed Console sends: Meta 0.9.10 reads a frame’s
submittedstatus ascompleted, so a send in flight at the rollback shows completed even if it then fails; nothing is sent twice. - Member continuations committed as external work: 0.9.10 ignores the refusal mark on the committed row and admits the row as before.
-
Compactions: a compaction a 0.9.11 process staged and a 0.9.10 process
commits reports
CompactionCompletedwithout the operator-instruction snapshot observation (OperatorInstructionsApplied); 0.9.10 ignores the intent’s new field. -
Gating state that
rpc_gatewaykeeps in itspersistent_statedirectory: Meta 0.9.10 does not read it (it keeps gating in memory), so after a rollback the pending approvals and the gating audit are missing there, and a later start of 0.9.11 restores the state stored before the rollback. Decide pending approvals before rolling back. -
Memory records that name the console person who wrote them
(
"author": "operator"with aprincipal): Meta 0.9.10 reads them as written by the operator and shows no name; the record keeps the name. Nothing to do first. -
Credential directories stay owner-only (
0700), which 0.9.10 reads as the same user. -
Forge: a rollback to a package an earlier Forge built leaves
.mobkit/console-access.tomlas it is, but that package’s console readsconfig/access.toml, so administrators added in the console are missing there and access fails closed. Do not add them again in that console (it would rewriteconfig/access.toml, and Forge would then refuse to start, change or update the installation); update forward instead.
Mixed versions while processes roll back
-
Decision executors on one store: a 0.9.10 executor is refused at start
beside a running 0.9.11 loop (
ExecutorHeld), and a 0.9.11 loop beside a 0.9.10 executor executes nothing until that executor ends. Roll back every process that executes decisions on one store together. -
tool_grant.issuedecisions: 0.9.10 has no executor of the kind, so open and approved requests, and the notices of ended ones, wait for the next upgrade, where a request past its deadline expires.rkat-rpc0.9.10 refuses atool_grants/grantthat names ascope(invalid params). -
SDKs and servers: the Python and TypeScript SDKs through 0.9.10 fail a
member status read that carries
store_refusedwithINVALID_RESPONSE, so keep the SDKs at 0.9.11 while a 0.9.11 server runs. The 0.9.11 SDKs’ decision methods against a 0.9.10 server answer method not found (-32601), and a 0.9.10 client reads any new status, audit event or expiry driver asunknown. -
Placed members: a placed member whose member host runs a release before
0.9.11 answers
member_host_unsupported(blocked) until its host runs 0.9.11 and a write selects it again or it is seated again; a member placed on such a host is not born with its mob’s operator-instruction snapshot, so its first turn runs without them. -
Forge with a Meta console that predates
meta/console/whoami(Meta 0.9.10 and earlier): the controller review goes to the first person who signs in, administrator or not, and only that sign-in sees and answers it. If that sign-in ends early, the review stays open but nobody can read or answer it, and a new one starts only after the application restarts.
Core: identities a host adopted
0.9.10 does not know the causeHostAdopted: it replays that retirement as
one the seal did not start, so it reads the identity a host took over as
the declared entry again, seated by the member the host’s intent
materialized. The member keeps serving, and a declaration naming the
identity is refused HostAdopted. But a complete roster that does not list
the identity unlists the entry and retires the member once, and once the
member retires for any other reason, Core refuses the host’s spawn of the
identity (IdentityMember) while the entry stands.
Do: after rolling Core back to 0.9.10, unlist each identity that 0.9.10
reads as a declared entry while a host’s identity intent row names it
(MemberBindingHistory::identity_management answers IntentManaged), with
MobHandle::unlist_declared_identity: its member retires once (cause
Unlisted), the entry ends, and the host’s intent materializes the member
again, as no entry.
Meta: declared identities Core holds unseated
Meta 0.9.10 reads what Meta 0.9.11 writes, with one boundary: an identity Core holds declared but unseated (its member retired by a seal or by a host, its session archived) stays unseated under 0.9.10, whose seat step is refused for it typed (IdentityMember) and writes nothing, so the identity
is not served until it is seated again.
Do: before rolling back, deliver to or warm (meta/identity/warm) each
identity the roster lists that Core holds unseated, so that Core seats it;
an identity left unseated is seated again by the first roster pass after the
next upgrade.
Below 0.9.10
- The 0.9.9 exceptions are the ones above that name 0.9.9 (durable decisions decided in a login), then the 0.9.10 notes’ “Downgrading to 0.9.9” below.
- Below 0.9.9: a mob that holds identity-store rows of schema version 2 or later is downgraded through the downgrade cycle only (hold the identity changes, settle the pending preparations, bring the stale seats up to date, export, purge, downgrade, import after the roll-forward). A purge or an import commits at most 256 identities, so a mob with more has no supported downgrade below 0.9.9 in this release. 0.9.9 and 0.9.10 read the rows themselves and need no cycle.
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 (Meta 0.9.9 through 0.9.14). When the forced maintenance turn ends in a definite failure (a provider error, a rate limit, or a request that compaction could not shrink, which is usual on a conversation of a few short messages), the temporary compaction threshold (1024 tokens by default) stays on the member, durably: it survives a gateway restart and does not end by itself. The member then compacts again every third model request, an ordinary turn whose compaction cannot shrink the request fails (“compaction is irreducible at the configured retention”), and every latercompact_memberon that identity is refused as busy until the gateway restarts. A restart alone clears the busy refusal, not the threshold. If the configured identity created no mobs or delegates: on 0.9.14,meta/respawncleared the threshold and kept the conversation, with or without a later gateway restart (one run each). Another remedy was to restart and complete a secondmeta/compact_memberwithfloor_tokenswell above the conversation size (50000 in the run). It returnedcompaction_applied: falseand cleared the threshold.meta/resetalso cleared it but ended the conversation. The wider affected version range is from the released source, not runs on every release. If the identity created mobs or delegates (Meta 0.9.9 through 0.9.14 inclusive): First check whether the identity still lists the mobs it created. The failed call already rebuilt the identity before its maintenance turn, so it may already have lost management (source reading). If it still lists a mob it must keep managing, do not respawn it: none of these remedies was shown to preserve that management. On the published 0.9.14 gateway, after a completed respawn or a completedmeta/compact_member, the identity no longer listed its mob although its store remained. Members of an unlisted mob can keep running. If you choose to proceed on these releases, first have the identity destroy any mob it created that has members acting on their own, while it can still manage that mob. On 0.9.14,mob_destroyremoved the mob; retiring its members did not remove the mob. This avoids leaving a running mob the creator can no longer manage. It is not a general upgrade step. Usemeta/respawnonly while the provider is available. If it returns an error, retry the respawn before stopping the gateway. Wait for the call to succeed and for the identity to answer one message before any stop or restart. If the gateway stops before the identity wakes successfully on the same session, its next start can permanently remove the stores of mobs that session owns. For a creator on these affected releases, do not issue a secondmeta/compact_member: it rebuilds the identity twice. Do not usemeta/reset: it ends the session, and the mobs that session owns end no later than the next gateway start. This order is read from the source, not tested on a creator with this failure. See the first and fourth known issues in the release notes for Meta 0.9.14. Management from 0.9.15. From 0.9.15 a respawn of a member the same-session step serves (every member but a placed one, one wired to a placed member, and one on a session service that keeps no durable sessions) keeps the identity’s management of the mobs it created (confirmed by tests and by a run), and a completedcompact_memberof a member the same-session step serves keeps it too (one run); a call that times out, and one that completes without compacting, rebuild the member by the same step (read from the source; not run). A management lost on 0.9.9 through 0.9.14 is not brought back. From 0.9.15 the call restores the member’s threshold before it answers such a failure (error.data.stageisprofile_restored) and a second call is taken at once; the call still answers the failure. The upgrade repairs nothing stored: a member that 0.9.9 through 0.9.14 left with the threshold keeps it on 0.9.15 until one of the steps above clears it. On 0.9.15 an agent created at run time can be left with the threshold too, in the cases themeta/compact_membersection of Meta’s RPC reference names, and a respawn does not clear it for such an agent: after a gateway restart a secondcompact_memberthat completes does, and so doesmeta/reset. -
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.
Connect 0.9.10
Connect 0.9.10 is the first Connect release from this repository: GitHub releaseconnect-v0.9.10 in lukacf/meerkat, a release that is never the
repository’s latest. Earlier releases (0.9.0 and 0.9.4, and the Linux
component prereleases 0.9.5 and 0.9.6) stay in lukacf/meerkat-connect.
Connect’s version moves to 0.9.10 to match Core and Meta; there are no
Connect 0.9.7 to 0.9.9 releases.
- Paired-host names. Connect’s paired-host contract no longer names one
host product. Options, tools, fields and stored names say
paired-hostorpaired_host(for example--paired-host,--paired-host-memory-only, thepaired_host_*tools, the cookiespaired_host_pairandpaired_host_device, the digest prefixpaired-host-change-v1:sha256:, the keyring service idai.rkat.meerkat-connect.paired-host-device.v1and the Python extrapaired-host-live). Do: pair each device again, prepare again any change prepared before the upgrade, install thepaired-host-liveextra, and update host and agent configuration that names the earlier options, tools or fields. - Build from the repository root. Connect’s six crates are members of
the root Cargo workspace (Rust 1.97.0) and take Core and Meta at the
workspace’s exact pins (
=0.9.10). Build with, for example,./scripts/repo-cargo build -p meerkat-connect. - SDK packages. The Python SDK
meerkat-toolkit0.9.10 (itsnative-hostextra requiresmeerkat-meta==0.9.10) and the TypeScript package@rkat/toolkit0.9.10 (development and optional peer dependencies@rkat/sdk0.9.10 and@rkat/meta-sdk0.9.10) are release assets, not PyPI or npm packages. - Bundled discovery catalog revision
discovery-2026-10-28.1: the Telegram recipe is a generic bot frontend built on the Python SDK’s public frontend modules. - Setup check fix. When a setup check answered again for a validation it had already accepted, with something that is not a valid proposal (for example a file list that names both a declaration and an activation document), the check was refused but the selection made from the earlier proposal stayed in force. Such an answer now withdraws the earlier proposal, so a selection made from it no longer applies.
- Private approval files. The files Connect keeps through Core’s file
approval store (its approval store and
native-decisions.json) are created owner-only (0600) whatever the umask (see Changes to check). - Going back. A Connect built on Core 0.9.8 or older (Connect 0.9.0 to
0.9.6) can refuse sessions written at session envelope 5 and mob journals
at mob event schema 10, which Connect 0.9.10 can write. Before such a
rollback, run
rkat storage doctorand handle what it lists underoperator-instruction-envelopeandoperator-instruction-mob-eventsas Downgrading to 0.9.8 describes.
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. (From 0.9.15 the default removes the valuesvisit_signed_credentialsnames and credential shapes; a wrapper still forwardsredact_response_diagnostic, or the values the wrapped authorizer signed with are not removed by exact match.) - 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, which 0.9.11 adds
(the downgrade cycle).
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).
From 0.9.15 a label update keeps its member’s seat and records the restamp
its seat row is owed in the identity’s row (label_restamps_owed counts
those rows), so such a seat counts here until its next seat row: the
mob’s roster reads the row’s labels from the update’s commit and from each
start on (a host’s own respawn of the member with other labels in between
keeps those on its roster entry until the next start or the restamp, while
its builds carry the row’s), the member’s builds are compared with them,
and a respawn with the row’s labels, a profile or runtime-mode change, a
rotation or a reset settles it. Such a seat needs no step before its
host adopts MemberBuildPreparer::prepare_store_owned_seat or a spawn
customizer that sets labels. A seat an earlier release left behind carries
no such record: respawn it with its row’s labels, or update the identity,
before the host adopts either, since no start
and no build moves its labels and a host that answers such a seat from its
row is refused the member’s build. Releases 0.9.9 through 0.9.14 read a row
that records an owed restamp as unreadable, for that identity alone:
settle the owed restamps before a rollback to one of them (the store-level
row counts below report label_restamps_owed with no running mob).
The count names the seat rows a downgrade would read: step 3 of the
downgrade cycle brings them 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 from 0.9.15 label_restamps_owed, the rows
that record an owed label restamp), 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. The doctors do not print the owed label restamp count; the row
counts do (label_restamps_owed), so read that count before a rollback.
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. From 0.9.18 the eligible steers waiting at a boundary with a registered claim join it together: see Steers join the next model request. - 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 seated at a later generation does not, unless that generation is its same-session successor (through 0.9.14 no later generation did: known limitation there; 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.
Upgrading to 0.8.31
Persistent mob store filenames (historical note added 2026-11-24). A host restoring mobs from itsmobs directory can skip a 0.8.30 store after the
upgrade. 0.8.30 named each file <escaped-mob-id>.db; 0.8.31 adds the
mob-- prefix and scans only regular .db files whose names begin with
that prefix. For a mob named team, the scan skips the old team.db without
opening it. Not seeing that mob after restore does not mean its data was
deleted.
The unprefixed filename is the one every release from 0.5.2 through 0.8.30
wrote. Both forms escape the mob ID the same way: each byte other than an
ASCII letter, a digit, - or _ becomes % followed by two uppercase
hexadecimal digits, so a . in the ID is written %2E.
rkat storage doctor and rkat storage migrate do not apply the scan’s
filter. Both list every .db file in the mobs directory of each realm
they inspect, whatever its name, and neither reports that the scan skips
one. A file in their output is therefore not necessarily a mob the host
restored.
0.9.18 still filters by filename. If the old mob ID itself began with
mob--, its old filename already passes that filter: for the mob
mob--team, 0.8.30 wrote mob--team.db. In this case 0.9.18 can decode
the whole filename stem and compare it with the ID in the store. The 0.9.18
CHANGELOG sentence that the name an earlier release gave a store “is the
mob’s own as before” describes this case and no other. This is not a general
migration of older stores. These rules were read from the tagged source;
an upgrade with an actual 0.8.30 store was not tested.