Klav Atlas

klav-sdk

21 schemas in 12 files.

Stablev0.15.1034e81b52d1b· 2026-12-04

Blast radius

1 direct · 1 transitive workspaces · 2 apps affected

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

Affected apps (rust)
Direct dependents

What a command did; its output already redacted.

Framework
serde
Shape
›{5 fields }
code?: numberExit code (`None` if killed by a signal or the timeout).
stdout: stringStandard output, redacted and truncated to [`MAX_OUTPUT`].
stderr: stringStandard error, redacted and truncated.
redactions: numberPlaces in the output where a secret value, an encoding of one or a long piece of one was replaced (adjacent matches cou…
timed_out: booleanWhether it was killed after the timeout.

The agent's state as the server reports it, after the local checks.

Framework
serde
Shape
›{12 fields }
agent_id: AgentIdAgent ID.
name: stringLocal name.
server: stringServer.
status: AgentStatusState.
lapsed?: boolean`status` is `denied` only because the pending registration lapsed without a decision (ADR 0033 E2.2).
pairing_code: stringThe agent's pairing code.
account_code?: stringThe account's pairing code (compare with `klav status` on the person's device to check the pinned account key).
grant_version?: numberGrant version, when active.
projects: numberNumber of shared projects.
expires_at?: numberWhen the grant expires (Unix seconds), if it does.
paused?: AgentPausedThe person paused this agent (or every agent): every action is refused until it ends (ADR 0033 §7.4).
account_delete_at?: numberThe person asked to delete the account, which happens at this time (Unix ms): every action is refused until then (ADR 0…

The result of a registration: what to show on the agent's screen.

Framework
serde
Shape
›{6 fields }
agent_id: AgentIdAgent ID.
name: stringLocal name.
public_identity: BlobThe agent's public identity (kind `0x05`), as the server lists it: what the Mac app compares, byte for byte, with the p…
pairing_code: stringThe 6-word pairing code the person must see on their screen too.
expires_at: numberWhen the request lapses (Unix ms).
key_store: stringWhere the key is.

A page to fill: a browser's CDP endpoint and, optionally, the target (tab) ID; without it, the first page tab.

Framework
serde
Shape
›{2 fields }
endpoint: string`http://127.0.0.1:9222` or a `ws://…/devtools/browser/…` URL.
target_id?: stringCDP target ID of the tab.

Where a field goes.

Framework
serde
Shape
›{2 fields }
field: stringField name in the item (`username`, `password`, `totp`, `number`…).
selector: stringCSS selector of the input.

What was filled. Addresses are origins only ([`klav_core::site::origin`]): a page's path, query and fragment may carry tokens.

Framework
serde
Shape
›{6 fields }
url: stringThe page's origin when filling.
filled: string[]Fields typed (names, never values).
submitted?: booleanThe form was submitted ([`FillOptions::submit`]).
navigated?: booleanAfter submitting: whether a new page loaded within [`SUBMIT_WAIT`].
url_after?: stringAfter submitting: the page's origin.
warnings?: string[]For the person (an older `klavd`, say). Never a value.

`agents/<name>.json`.

Framework
serde
Shape
›{11 fields }
v: numberFormat version.
name: stringLocal name (also the file name).
agent_id: AgentIdAgent ID.
server: stringServer URL.
email: stringE-mail of the account the agent asked to join.
public_identity: BlobThe agent's public identity (kind `0x05`).
key_store: KeyStoreWhere the private key is.
registered_at: numberRegistration time (Unix ms).
account_id?: AccountIdThe account, once seen.
account_public_identity?: BlobThe account's public identity, pinned the first time (TOFU).
grant_version?: numberHighest grant version accepted (a lower one is a rollback).

An environment the agent may list: names only.

Framework
serde
Shape
›{5 fields }
id: ItemIdThe item.
name: stringIts name (`development`, `production`…).
vault: stringVault name.
project: stringProject name.
variables: string[]Its variables' names, as its overview lists them.

Where an agent key is stored.

Framework
serde
Shape
›union2 members · discriminated by kind
›| "keychain"{1 field }
kind: "keychain"
›| "file"{2 fields }
kind: "file"
path: stringIts path.

What [`Session::rotate_password`] answers, and all the agent learns: the fields `klavd` filled and the change's ID. No value.

Framework
serde
Shape
›{2 fields }
filled: string[]Field names, as `klavd` filled them (`new_password`, `confirm_password`, `current_password`).
pending_id: RotationIdThe change, for [`Session::rotate_confirm`] or [`Session::rotate_cancel`].

One of this issuer's live sandboxes.

Framework
serde
Shape
›{7 fields }
sandbox_id: SandboxIdIts ID.
label: stringIts label.
profiles: string[]The profiles it may use.
issued_at: numberWhen it started (Unix ms).
expires_at: numberWhen it expires (Unix ms).
claimed: booleanWhether its forwarder claimed it.
attached?: string[]Profiles the person added for this sandbox from one of its secret requests (ADR 0053 §5), apart from those it started w…

An MCP profile this issuer's sandboxes may use, and its endpoint, as the proxy lists it (ADR 0049, layer 5).

Framework
serde
Shape
›{2 fields }
profile: stringThe profile.
endpoint: stringIts MCP endpoint on the upstream (`/mcp`).

A Postgres profile this issuer's sandboxes may use, as the proxy lists it (ADR 0052 §6): its forwarder exports `KLAV_FORWARD_<PROFILE>_DATABASE_URL`.

Framework
serde
Shape
›{2 fields }
profile: stringThe profile.
databases: string[]Its databases.

What the proxy lists of this issuer's profiles: the MCP ones with their endpoints, and the Postgres ones; and whether it serves a sandbox's view of its grant. An older proxy lists fewer.

Framework
serde
Shape
›{3 fields }
mcp?: McpEndpoint[]MCP profiles.
pg?: PgListed[]Postgres profiles.
sandbox_view?: booleanThe proxy serves `GET /_klav/sandbox` on the channel (ADR 0053 §2, §4), so `klav-forward mcp`'s `sandbox_info` works in…

What `klav sandbox start` asks for.

Framework
serde
Shape
›{3 fields }
label: stringThe label the person sees (`chat-123`).
profiles: string[]The proxy's profiles the sandbox may use.
ttl_secs?: numberIts TTL in seconds; `None` for the default, capped by the issuer's limit.

Verified outcome of an agent secret request. Never carries a secret value.

Framework
serde
Shape
›union4 members · discriminated by status
›| "pending"{3 fields }
status: "pending"
request_id: SecretRequestIdRequest ID to poll later.
expires_at: numberExpiry timestamp (Unix ms).
›| "fulfilled"{10 fields }
status: "fulfilled"
request_id: SecretRequestIdRequest ID.
in_grant: booleanWhether the saved item lives in a project granted to this agent.
ref?: stringResolved `klav://<Vault>/<Project>/<Title>/<field>` reference when `in_grant` is `true` and the item is visible in this…
vault_id?: VaultIdVault ID (`Some` only when `in_grant` is `true`, T236).
project_id?: ProjectIdProject ID (`Some` only when `in_grant` is `true`, T236).
item_id?: ItemIdItem ID (`Some` only when `in_grant` is `true`, T236).
field: stringName of the secret field saved.
proxy_profile?: string`klav-proxy` profile granted, if the person enabled the toggle.
env_linked?: EnvLinkDecisionEnvironment variable linked, when `in_grant` and the person's decision applied it (T316).
›| "denied"{2 fields }
status: "denied"
request_id: SecretRequestIdRequest ID.
›| "expired"{2 fields }
status: "expired"
request_id: SecretRequestIdRequest ID.

An item as an agent may see it: metadata only.

Framework
serde
Shape
›{10 fields }
id: ItemIdItem ID.
reference: string`klav://Vault/Project/Title`.
vault: stringVault name (from the grant).
project: stringProject name (from the grant).
kind: ItemKindItem type.
title: stringTitle.
username?: stringUser name, if any.
urls?: string[]URLs.
tags?: string[]Tags.
attachments?: numberHow many attached files it has (each in a `file` field, named as the person attached it; ADR 0016).

One approved access, as the agent reports it.

Framework
serde
Shape
›{4 fields }
ref: string`klav://vault/project/item` (by name), or the item ID if this runtime cannot see it.
permissions: Permission[]Approved permissions.
domains?: string[]Approved hosts (empty: any, for items without a site).
added_by_klav?: Permission[]The permissions Klav added (not asked for).

What the agent asked for and did not get.

Framework
serde
Shape
›{2 fields }
ref: stringThe item.
permissions: Permission[]The permissions left out.

A task as the agent reports it (`klav agent task show`, MCP `get_task`).

Framework
serde
Shape
›{10 fields }
task_id: TaskIdID.
status: TaskStatusState.
task: stringThe title the agent gave, or the person's for an offered task.
offered?: booleanOffered by the person, without a request from this agent (ADR 0022 §6): [`Self::task`] and [`Self::reason`] are theirs.
reason?: stringWhy, in the person's words; only for an offered task (the agent knows its own reason).
expires_at: numberUntil when the person can decide (pending), or when the task ends (approved) (Unix ms).
revision?: numberRevision of the decision in force.
ended_by?: TaskEndedByWho ended it.
access?: TaskAccessView[]What the person approved (verified signature).
removed?: TaskRemovedView[]What the agent asked for and the person left out.

What is known about a generated password: never the value.

Framework
serde
Shape
›{8 fields }
field: stringThe field that holds it.
type: GeneratorKindThe kind generated.
bits: numberIts entropy in bits.
strength: StrengthIts strength label.
site?: stringThe site's host whose rules were looked up, if any.
rules?: RulesSourceThe site rules a `smart` password follows.
limited: booleanThe site's rules make it weaker than Klav would choose.
fallback?: RulesFallbackA `smart` password that could not follow the site's rules.