Klav Atlas

klav-daemon

28 schemas in 2 files.

Stablev0.15.1034e81b52d1b· 2026-12-04

Blast radius

3 direct · 1 transitive workspaces · 3 apps affected

What a change to these 28 schemas can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (rust)
Direct dependents
Contracts in its surface5 RPC

[`PresenceAsk::lasts`].

Framework
serde
Shape
"5m" | "until_lock"

[`PresenceAsk::value`]: the kind of value, and the item `klavd` resolved, never the query the client wrote.

Framework
serde
Shape
›{3 fields }
kind: AskValueKindWhat is handed out.
title?: stringThe item's title from the vault, cleaned as in `klavd`'s own prompts. Missing when the item couldn't be named, and for …
count?: numberFor `resolve`: how many references.

[`AskValue::kind`].

Framework
serde
Shape
"show" | "previous" | "code" | "fill" | "generated" | "resolve"

Biometric unlock state.

Framework
serde
Shape
›{3 fields }
available: booleanThe platform supports it on this machine.
enrolled: booleanA Secure Enclave key protects this device's local key.
password_required?: stringWhy the master password is required next time, if it is.

[`PresenceAsk::browser`]: what an extension connection's presence grants, and what caused it (ADR 0041 §3.1). With `lasts`, agents may fill through the connection until Klav locks; without it, only this event (the setting on Always).

Framework
serde
Shape
›{6 fields }
event: BrowserCauseThe agent's event.
agent: stringThe agent's name, cleaned as `klavd`'s prompts clean it.
title?: stringThe item's title from the vault, cleaned: for a fill (missing when the agent didn't say which item, or the vault has no…
site?: stringFor a passkey sign-in: the rpId of the passkey `klavd` armed, from the vault and checked against the tab's host; never …
attached?: numberHow many extension connections are attached, when more than one: a hint (N11).
connection?: booleanWord it as "this browser connection" (the connection's peer is keyed by its connection, as on Linux), not "a browser" (…

[`BrowserAsk::event`]: the value-carrying event that caused the presence (Omar's decision of 2026-11-19: a text per event).

Framework
serde
Shape
"fill" | "password_change" | "passkey_sign_in"

A browser whose extension attached to `klavd` (`extension_attach`).

Framework
serde
Shape
›{3 fields }
browser: stringThe name the extension gave (`Dia`, `Google Chrome`, `Firefox`…).
connected: booleanAttached now.
at_ms: numberWhen it last attached or, if it is gone, left (Unix ms).

The tab [`Request::BrowserTab`] found.

Framework
serde
Shape
›{3 fields }
tab: stringOpaque handle for [`Request::BrowserFill`].
url: stringThe tab's address, as the browser reports it.
browser: stringWhich browser.

`status` result.

Framework
serde
Shape
›{25 fields }
version: string`klavd` version: the workspace's version number, the same for every build until a release changes it.
commit?: stringThe commit this `klavd` was built from. With `commit_time`, what tells two builds of the same `version` apart (the Mac …
commit_time?: numberThat commit's committer time, in Unix seconds. Absent with `commit`.
protocol: numberProtocol version.
pid: numberProcess ID.
logged_in: booleanAn account exists in this home.
unlocked: booleanHolding an unlocked account.
email?: stringAccount e-mail, when logged in.
unlocked_with?: stringHow it was unlocked (`password` or `touch_id`).
idle_lock_secs: numberInactivity before locking, in seconds.
locks_in_secs?: numberSeconds left before the idle lock, when unlocked.
touch_id?: BiometricStatusTouch ID state.
revision?: numberMoves whenever what the reads answer may have changed (a sync that brought changes, a new unlock): read again when it d…
syncing?: booleanA background sync is in flight.
passkey_uv?: WindowThe passkey user-verification window (ADR 0020 §8). With the presence gate on it is sealed in `klavd`'s local data, and…
passkey_verified?: booleanA passkey use now needs no new verification (within the window).
browsers?: BrowserSeen[]Browsers whose extension attached since `klavd` started (the Mac app's «Connected in Dia», ADR 0027 §4). Absent from ol…
agents_paused?: PauseInEffect[]The pauses of agents in effect (ADR 0033 §7), also while locked: the ones this device learned signed by the account, an…
account_deletion?: AccountDeletionThe deletion of the account the person asked for, as the last sync left it (ADR 0037 §3); kept while locked. Absent fro…
account_deleted?: booleanThe server deleted the account: a sync got `401` at or after the deletion's date (ADR 0037 §3). `klavd` stops syncing a…
revocations?: RevocationProgress[]Revocations whose key change was asked for and is not finished (ADR 0033, amendment of 2026-11-10, F2): how far each on…
revocations_unreadable?: booleanThis device's record of owed key changes (`revocations.bin`) did not open at the last read: `revocations` may be out of…
revocations_newer?: booleanWith `revocations_unreadable`: the record is of a newer format, written by a newer Klav. Updating Klav reads it; it mus…
already_unlocked?: booleanIn `unlock`'s answer only, with the presence gate on: `klavd` was already unlocked by another key (ADR 0041 §2.4, Omar'…
presence?: StatusPresenceOnly with the presence gate on, and about the caller's key (ADR 0041 §2.4): what a master password the caller gives to …

A daemon error.

Framework
serde
Shape
›{4 fields }
code: ErrorCodeStable code (`docs/klavd.md` §4).
message: stringHuman-readable message (no secrets).
paused?: AgentPausedWith [`ErrorCode::AgentsPaused`] only: the pause that holds the agent (ADR 0033 §7.4). Never sent with another code, so…
presence?: PresenceAskWith [`ErrorCode::PresenceRequired`] only: what the client's password prompt must say (ADR 0041 §2.4). Never sent with …

Stable error codes.

Framework
serde
Shape
›union23 members
| "locked"
| "not_logged_in"
| "wrong_credentials"
| "rollback"
| "not_found"
| "invalid"
| "conflict"
| "network"
| "session_expired"
| "biometry_unavailable"
| "biometry_failed"
| "bad_request"
| "security"
| "denied"
| "agents_paused"
| "account_deleting"
| "account_deleted"
| "extension_not_allowed"
| "presence_required"
| "presence_busy"
| "not_supported"
| "browser_ambiguous"
| "internal"

What `klavd` asks an attached extension; it answers with [`Request::ExtensionReply`].

Framework
serde
Shape
›union6 members · discriminated by kind
›| "tab"{2 fields }
kind: "tab"
id: numberEvent ID.
›| "presence"{4 fields }
kind: "presence"
id: numberEvent ID.
tab_id: numberBrowser tab ID.
presence: PresenceAskWhat the frame says it grants; `browser` is always set.
›| "fill"{10 fields }
kind: "fill"
id: numberEvent ID.
tab_id: numberBrowser tab ID.
host: stringExpected host.
agent: stringAgent name.
reason: stringThe agent's reason.
item_kind: ItemKindItem type.
fields: FillValue[]Values.
selectors?: FieldSelector[]Selectors.
submit?: booleanSubmit afterwards.
›| "rotate_probe"{5 fields }
kind: "rotate_probe"
id: numberEvent ID.
tab_id: numberBrowser tab ID.
host: stringThe host the agent signed.
urls: string[]The item's addresses (metadata), for the frame check.
›| "passkey_arm"{11 fields }
kind: "passkey_arm"
id: numberEvent ID.
tab_id: numberBrowser tab ID.
host: stringExpected host.
rp_id: stringThe passkey's rpId.
item: stringThe login.
title: stringIts title, for the in-page notice.
agent: stringAgent name, for the notice.
reason: stringThe agent's reason, for the notice.
token: SecretTextWhat the extension hands back in `agent_passkey_use`.
expires_in_ms: numberHow long the use stays armed.
›| "rotate_fill"{12 fields }
kind: "rotate_fill"
id: numberEvent ID.
tab_id: numberBrowser tab ID.
frame_id: number[`RotateTarget::frame_id`].
document_id?: string[`RotateTarget::document_id`].
token: stringThe probe's token in that frame.
host: stringExpected host.
agent: stringAgent name, for the in-page notice.
reason: stringThe agent's reason, for the notice.
current: SecretTextThe current password.
new: SecretTextThe new password.
submit?: booleanSubmit afterwards.

A line from `klavd` to an attached extension that is not a response.

Framework
serde
Shape
›{2 fields }
v: numberProtocol version.
event: EventThe event.

The extension's answer to [`Event::Tab`].

Framework
serde
Shape
›{3 fields }
tab_id: numberBrowser tab ID.
url: stringThe tab's address.
focused?: booleanWhether the tab's window has the focus.

Where a field goes, when the agent knows better than detection.

Framework
serde
Shape
›{2 fields }
field: stringField name in the item.
selector: stringCSS selector of the input.

`import_add` result.

Framework
serde
Shape
›{6 fields }
session: stringThe import, for the next requests.
partial?: booleanWaiting for more pieces of this file.
sources: SourceReport[]What each file added so far contributed.
entries: numberEntries read so far.
passkeys: numberPasskeys found (not imported).
missing: MissingBatch[]Google Authenticator codes still missing.

A line `klavd` writes before a request's answer, only to a request whose envelope asked for notices (`notify`).

Framework
serde
Shape
"touch_id"

What [`Request::AgentPasskeyArm`] answers: all the agent learns.

Framework
serde
Shape
›{3 fields }
used: booleanThe page already waited for a passkey of the site and got it.
rp_id: stringThe passkey's rpId.
expires_in_s?: numberNot used yet: the next sign-in of that site in the tab, within this many seconds, gets it (the agent clicks the site's …

A pause of agents in effect (`status`, `pause_agents`, ADR 0033 §7).

Framework
serde
Shape
›{5 fields }
agent_id?: AgentIdThe agent; none: every agent.
since: numberWhen the person decided it (Unix ms).
until?: numberWhen it ends by itself (Unix ms); none: until the person resumes.
local?: booleanApplied only here: `klavd` was locked or offline, and signs and sends it as soon as it can. Until then, only what `klav…
server_unsupported?: booleanWith `local`: the server answered that it does not support pausing agents (one older than the pauses). It holds on this…

What a client that asks for the master password itself must say it grants (`presence_required`, ADR 0041 §2.4 and §3.2). `klavd` keeps the ask it sent on the connection, and a password sent again on it is checked only if `klavd` would still ask exactly this, for the same request: it then grants what this says, never more. Otherwise the answer is a new `presence_required`, and the password isn't checked.

Framework
serde
Shape
›{8 fields }
key: PresenceKeyWhat the window is keyed on: `session`, `parent`, `connection`, or `none` (no window: each value asks).
window: WindowThe presence setting now.
terminal?: stringThe peer's controlling terminal, when it has one with a name.
declared?: booleanThe connection declared `hold`: the verification would hold it until Klav locks.
lasts?: AskLastsWhat the verification grants: a window for the key, lasting this long. Missing: no window, only `value`.
value?: AskValueWith no window: the one value it hands out, for the client to word in its own language.
browser?: BrowserAskOnly in [`Event::Presence`]: the presence of an extension's connection, and the agent's event that caused it (ADR 0041 …
protected?: stringWhy this value asks every time, whatever the window (ADR 0032 §3.1): «uses “Stripe”, protected by “production”». Only t…

[`PresenceAsk::key`].

Framework
serde
Shape
"session" | "parent" | "connection" | "none"

What [`Request::ConfirmPresence`] is for: the prompt names it.

Framework
serde
Shape
"delete_account"

A request line.

Framework
serde
Shape
›{6 fields }
v: numberProtocol version.
id: numberEchoed in the response.
request: RequestThe request.
notify?: booleanWith the presence gate on (ADR 0041 §2.4): write a notice line ([`Notice::TouchId`]) just before a Touch ID dialog for …
shown?: WindowWith the presence gate on, only for `unlock` with `password`: the window the client's own question said the password op…
untyped?: booleanWith the presence gate on, only for `unlock` with `password`: the client didn't read this password on its terminal (std…

A response line.

Framework
serde
Shape
›{6 fields }
v: numberProtocol version.
id: numberThe request's `id` (0 if the request could not be parsed).
ok?: unknownResult on success.
error?: ErrorBodyError.
warnings?: string[]Non-fatal notices (offline, undecryptable entries…).
notice?: NoticeA notice before the answer, with neither `ok` nor `error`: the answer follows on a later line with the same `id`. Only …

How far a revocation's key change got (`status`, F2): «Changing keys: 2 of 5 projects». No secret. While locked, only the agent and the counts: no name, and no error (it may name a vault or project).

Framework
serde
Shape
›{15 fields }
agent_id: AgentIdThe revoked agent.
name?: stringIts name when it was revoked (the agent's own words, T136); only while unlocked.
projects: numberProjects whose key it held.
rotated: numberThose already rotated.
regrants?: numberRotated projects whose other agents still need a new grant.
unknown_projects?: booleanThis device does not know which projects the agent had: never "done" (T189).
narrowed?: booleanThe agent is active: this is the key change of projects taken away from it (`rotate_removed`), not a revocation.
items?: numberItems granted one by one still without a new key.
log_unchecked?: booleanThe audit log has not been read for this key change yet: never "done" (T189).
without_key_change?: booleanA revocation without the key change: only the keys of items granted one by one change, never a project's, so the apps n…
skipped?: numberProjects or items whose key cannot change from this device (deleted, their vault no longer listed, or an item this devi…
to_change?: numberProjects whose key is still to change (`projects` less those rotated and those skipped).
needs_work?: booleanSomething is left that `klavd` or «Finish» can do: projects, grants to issue again, items, or the audit log to read. Fa…
running?: boolean`klavd` is changing keys for it right now; never while locked.
last_error?: stringWhat stopped the last step; only while unlocked.

The extension's answer to [`Event::RotateProbe`]: where it would fill, with the address the browser reports for that frame.

Framework
serde
Shape
›{6 fields }
frame_id: numberBrowser frame ID (0: the top frame).
document_id?: stringBrowser document ID, when the browser has one (Chromium).
url: stringThe frame's address, from the browser.
focused?: booleanA password box had the focus there.
token: stringTies the fill to the box the probe found.
rules?: PageRulesThe field's rules.

[`DaemonStatus::presence`].

Framework
serde
Shape
›{5 fields }
elsewhere?: boolean`klavd` is unlocked, and another key than the caller's unlocked it (Q-N1): an `unlock` without the password would grant…
key: PresenceKeyWhat the caller's own master password at `unlock` would open, as the unlock's Touch ID prompt would say it: a window fo…
terminal?: stringThe caller's controlling terminal, when it has one with a name.
declared?: booleanThe connection declared `hold`.
lasts?: AskLastsHow long the window would last; missing: none.

When a passkey use needs a new verification.

Framework
serde
Shape
"always" | "5m" | "unlocked"