Native authorization is available to explicit Rust embeddings, to the
fixed-host governed JSONL profile, and to a governed realm opened by the stock
rkat CLI or rkat-rpc. Ordinary constructors, provider login and Console
access administration do not activate native permission. This page describes
the full contract. See integration and current support
and Native governed embedding for deployment
boundaries.Authentication does not grant every action
Authentication identifies a caller. Authorization decides what that caller may ask a particular agent to do. Provider bindings select a model backend and credential; they do not grant application permissions. Keep these identities separate:
A qualified principal includes its identity domain. A display name, a string in
a prompt, or a decoded principal reference is not proof that the sender owns
that identity. The host’s authenticated ingress supplies that proof.
For example, a calendar assistant may read availability in selected calendars
but be forbidden to delete events. A connected OAuth token with delete access
does not widen the assistant’s grant. Another person using the same assistant
does not inherit the account owner’s authority either.
A host process that tells an agent the outcome of an administrative command,
for example that a connector installation finished, is not the person who ran
that command. Since 0.9.4 the stock governed realm binds such an outcome as its
own input whose requester is the host’s ingress: no person requested it and it
is not anyone’s consent. It runs under the operator’s mandate in a turn of its
own, and a reviewer or approver sees that requester in the mandate text. Only
the operator’s own prompts name the operator as their requester.
Grants narrow authority
A root grant states the authority given to an agent. A child grant can narrow its parent’s actions, resources, recipients, lifetime, and delegation depth. It cannot widen them or silently change the represented subject. At issue and use, the grant owner checks the full current chain, including revocation and expiry. An earlier successful check is not a permanent permit. Each operation must satisfy the requester’s delegation, the agent’s permissions, the admitted work’s ceiling, and current resource, account, and destination rules. Batching work does not union contributors’ permissions. Rules also preserve their combinations. A rule allowing read calendar A and another allowing delete calendar B do not allow delete calendar A merely because both the action and calendar appear somewhere in the policy. A resource bound names exact resources, or since 0.9.4 every resource owned by one of a set of owners. A parent grant can then fix the application while each child grant names the exact session resource it needs; a child that names a resource of another owner permits nothing. A scoped tool grant is a different thing: it opens, for a bounded time, tool names a session’s build marked grant-gated, and confers no authority of its own. A call it opens still needs every permission this page describes.Check the operation that will actually run
The adapter retains an immutable binding with the actual request or execution plan. Authorization prepares a private decision for that binding. After relevant waits, a final local check verifies the same operation, current policy publication, and deadline immediately before entry. Changing tool arguments, resource, recipient, account, or provider route requires fresh evaluation. Retries and delegation through another adapter must retain the governed context; they cannot silently switch to an ungoverned API. A prepared decision is process-local and is not a serializable bearer token. The design adds no authorization network round trip or separate audit fsync to each operation. It targets constant-time warm checking; preparation and recording still have a cost; measure it in your deployment, since a fast lookup in a unit test does not show it.A denied operation gives feedback
An ordinary permission refusal is a result the agent can act on, like a denied tool call. It does not by itself fail the run, cancel allowed sibling actions, or put the session into a security hold. The agent may choose another permitted action within its existing budgets. An unchanged denied operation is not automatically retried, and a governed refusal never falls back to trusted execution. Since 0.9.4 the feedback names only the closed refusal kind (reprepare_required,
denied or malformed_facts) and whether the tool ran (tool_invoked: false,
or "unknown" when nothing certifies it). Neither is a permission: a new call is
a new operation with fresh admission.
Infrastructure failure is different:
Detailed policy, source, principal, and account information belongs in protected
records. Public error text must not disclose it to an audience that cannot read it.
A changing policy is a stale read, not a denial
Owners publish every change (a grant issued or revoked, a policy, identity, destination or account change) through one local publication. An operation that reads the policy while a change is being published is refused to rebuild: its read is stale, which says nothing about whether the operation is permitted. Since 0.9.4 the agent waits for such a change to complete before it rebuilds a model request, a tool call, a hosted search helper or a compaction summary, within fixed bounds (at most 2 seconds and 3 extra rebuilds per wait, inside the tool’s timeout and the run’s budget). Past the bounds the refusal takes its ordinary path; a refusal the owners decided is never waited on. A model-reviewed tool call superseded only by such a change is reviewed once more instead of failing. The protected audit records which kind each refusal was: an owner answer, a publication that changed under the attempt, or a change still in progress.Keep the controller usable
The controller model drives the agent’s reasoning and receives operation results. Admitted work needs a permitted controller route for its lifetime, independently of narrower tool or source grants. Controller inference and provider-hosted actions such as web search have separate permissions; permission to reason does not automatically permit hosted actions. Ordinary grant, route, and credential changes must preserve or atomically replace the last usable controller while unfinished work depends on it, or receive an administrative refusal. Deliberate stopping is a separate, attributed operation. This is not an indefinite lease for idle sessions.Sources, peers, and knowledge services
Source access is checked at read, search, or hydration. Tool visibility, an object ID, or a content hash does not grant access. Histories, memory, blobs, and exports retain their own read and write rules. Meerkat checks permission to invoke a knowledge service; the knowledge service keeps authority over its attributes, ABAC rules, and query/fetch permissions. The integration must transmit the real actor and scoped delegation, or an authorized service mandate. It must not substitute an unrestricted service account for an unauthenticated caller. Peer sends, helper creation, delegation, and scheduled work follow the same principle. The receiver keeps the original requester and checks its own authority; it cannot turn a denied request into a more privileged request of its own. Schedules retain their commissioning mandate. Console visibility and a signed-in provider account are not substitutes for those checks. Between agents in one process, Core carries the original requester itself. A comms delivery that governed work sends in process carries that work’s origin: its requester, the sending agent, and every work it names. Core’s peer binder (OriginalRequesterPeerBinder, which a host composition installs) binds the
receiving work under that requester, with the sending agent as its ingress
actor and every work of the sending work as a contributor. It takes only the
receiving agent’s own facts from the host (PeerServiceBasis): its basis for
serving peers, its destination and its controller. Every operation of the
receiving work is narrowed by the requester’s current grant, at every hop, so
the receiving agent’s own access never widens what the requester may do. Core
refuses any binder’s binding of such a delivery that drops the requester, the
sending agent or a work of the sending work. A delivery over a network carries
no origin, and Core’s binder refuses it (origin_unverifiable), as it refuses
a sending work whose basis narrows nothing (sender_basis_unbounded).
Information handling has an explicit limit
Once an agent reads allowed information into a model context, this system cannot mechanically prevent the model from expressing its meaning in a summary, limerick, message, or tool argument sent to an otherwise permitted destination. There is no semantic provenance, context-taint propagation, or automatic source-to-model filtering. Revoking a source blocks later reads under that source’s policy; it cannot make an agent forget earlier content. Use role-specific information-handling instructions and real separation of agents, stores, and routes where needed. A deployment may require a gate agent for selected outgoing actions. Prefer a topology in which only the gate can publish to that destination. The runtime can enforce the route and exact candidate review; the gate’s judgment about content remains fallible. The local profile trusts the host process, administrator, configured identity and policy owners, storage, and registered adapters. It does not provide rollback resistance or protect against malicious native code inside that trusted host.Confinement and consent add independent requirements
Process confinement limits the OS resources a command can use after tool authorization. A working directory is not a filesystem sandbox. A selectedRequired confinement profile must be enforceable by the host or the launch is
refused. An explicit TrustedHost path retains host access; there is no automatic
downgrade from required confinement. Untrusted native code must run outside the
trusted host process. The stock hosts select confinement with the
[confinement] config section
or their --confinement flags.
Human consent adds approval for an otherwise permitted exact action. An
authenticated eligible approver decides on a retained candidate, account,
recipient, and expiry. Approval is not execution. A later explicit attempt
rechecks current permissions and consumes consent once at the real entry
boundary. Decline, expiry, cancellation, or a changed candidate gives local
feedback; an authorization change that leaves the candidate’s binding, review
tier and presented material unchanged keeps the consent, as does the end of a
decision’s own validity window, while an approver who was revoked, or whom
policy came to forbid, since deciding never spends it (a natural expiry of the
login they decided in is no revocation). A gate agent’s approval is not human
consent, and neither can override a nonoverridable permission ceiling.
Audit keeps decision, consent consumption, entry attempt, returned result, and
uncertainty distinct. Pending observations join existing native commits; an
in-memory host provides process-lifetime history. An optional event exporter is
not the authoritative record, and a missing record after a crash does not prove
that no effect occurred.
Durable decisions hold one operation until it is decided
Some operations wait for a decision longer than one run, across restarts. A durable decision holds one such operation, sealed by the operation id and request digest its owner computed, until an attested party decides it, its requester or the host withdraws it, or its deadline passes. The operation’s owner then executes the held request at most once.- One subject digest. A decision binds one canonical rendering of the held request. Core computes its digest from the rendering, and refuses a presentation, decision or review that names another digest. A presentation counts only when it shows every canonical part of the rendering to the party that decides now.
- Attested decisions. A human decides for the decision’s approver id with
an authenticated decision event and its evidence; the decider’s eligibility is
checked when the decision commits, the requester never decides its own
request, and the first valid decision wins. A decision can name a reviewer
instead, whose verdict allows, denies or escalates to the human. The
evidence names the login the human decided in by its digest
(
HostAuthenticationScope::digest), never the login itself; Human consent says which scopes that digest keeps private. - Decided after it was shown. A human decision event carries the time its
trusted ingress observed it (
observed_at_ms, such as a chat provider’s message time), and its evidence records that time. An event observed before the approver was first shown the decision (the earliest presentation, recorded or carried by the event) is refused asdecided_before_presentation; one observed in the same millisecond is accepted. The decision’s machine makes this check; with no presentation at all, the decision stayspresentation_incomplete. The two times come from different clocks: the observed time is the ingress’s (a provider’s message timestamp, for example), and a presentation’s time is the host’s. An ingress clock that truncates (to whole seconds, for example) or runs behind the host’s can only make a decision look earlier, so the worst case is a retryabledecided_before_presentation. An ingress clock that runs ahead of the host’s by d lets a decision made up to d before the presentation be accepted, and a rounding clock runs ahead by up to half its unit, so the ingress must bound that skew. A presentation time of 0 is no reading: a presentation recorded at 0 is refused aspresentation_incomplete, and so is a decision that carries one, even after a valid presentation was recorded. - Execution once. The owner executes an approved decision under an
execution permit, issued only before the deadline and only while the party
who decided is still current (not revoked, and not forbidden by policy
since; a login’s natural expiry is not a revocation), and settles it:
executed, released (the decision stays approved) or permanently refused. A
party the host refuses gets no permit: the decision ends refused, records
approver_not_current, and owes its notice. An answer the host cannot give now, or evidence an owner change made stale before the authorization commits, decides nothing, and the host is asked again. A permit already outstanding is settled first, so a commit made under it still counts. A permit outstanding at the deadline holds the decision until its settlement. Without one, an approved decision expires at its deadline and never runs after it. - One executor.
DecisionExecutorLoopexecutes the approved decisions of a store, through one registered executor per decision kind. It holds the executor claim of each kind it executes while it runs (for the SQLite file, an OS lock onapproval_decisions.executor.<kind>.lockbeside it, and a shared one onapproval_decisions.executor.lock, released when its process ends). Another executor of a kind, in this process or another, executes none of its decisions while the claim lives: each pass lists the kind as unclaimed and asks for it again, so it takes over once the first executor ends. Executors of different kinds of one store run side by side, and a candidate launch starts none. It keeps the three obligations the machine cannot see: one executor per decision; after a commit, the only settlement is recording it; and after a restart or a dropped pass it settles first, from the owner’s own record of the operation, which reports every commit that can still land. - One notice. An ended decision whose requester can be told owes it one notice, settled by its delivery receipt. A delivery whose receipt was not recorded is made again, so the owner delivers idempotently.
approval_decisions.sqlite3 under the store path, created by the first hold;
nothing is read at start, and a read touches one decision or one index page. A
candidate launch reads decisions and writes none. Durable decisions share no
record, file or machine with the in-run consent above, and approval/list never
shows them. The RPC server reads, presents and withdraws them with the
decision/* methods; a runtime whose persistence
keeps none answers them capability unavailable (-32020). No request body
names who decides one: a host’s trusted adapter decides through
MethodRouter::dispatch_with_decision_event, with the
AuthenticatedDecisionEvent it built from the event it authenticated. The
operator of an rkat-rpc stdio connection (Unix builds with local
authorization) decides with decision/decide on that connection, which builds
the event itself: the operator, device trusted in the connection’s own scope.
When its client lists, the connection presents each listed decision held for
an approver id [governance.decisions] operator_approver_ids names, writing a
decision/notice before it records the presentation, and only a decision it
presented, whose approver id is still listed, is eligible
(the operator of a stdio connection).
Elsewhere decision/decide is method not found. A host
builds its other decision surfaces on the Rust owner,
meerkat_runtime::decision::DurableDecisionService,
and executes them with meerkat_runtime::decision::DecisionExecutorLoop.
Read the integration and migration guide
for host responsibilities and the remaining deployment checks.