Klav Atlas

klav-proxy

21 schemas in 9 files.

Stablev0.15.1034e81b52d1b· 2026-12-04

Blast radius

0 direct · 0 transitive workspaces · 1 app affected

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

Affected apps (rust)

What `init` shows.

Framework
serde
Shape
›{5 fields }
agent_id: stringAgent ID.
name: stringName.
pairing_code: stringThe 6 words the person compares.
key_store: stringWhere the key is.
expires_at: numberWhen the request lapses (Unix ms).

A profile, without anything secret.

Framework
serde
Shape
›{5 fields }
name: stringName.
item_id: stringThe item it uses.
upstream: stringWhere it sends requests.
header: stringThe header the value goes in.
rate_per_minute: numberCalls per minute.

What `status` shows: never a value.

Framework
serde
Shape
›{10 fields }
agent: AgentStateThe agent's state as the server reports it.
profiles: ProfileView[]The profiles of its grant (only when it is active).
sandboxes: SandboxView[]The live sandboxes in its store (ADR 0036 §4).
unsent_ends: numberSandbox ends the Klav server has not taken yet.
unconfirmed_thefts?: UnconfirmedTheft[]Theft signals the proxy could not confirm the Klav server logged: the person's log may not show them.
store_error?: stringWhy the store could not be read, if it could not.
redactions?: CountsViewWhat the redactor counted since the proxy last started (T149): whole values replaced and pieces left as they are, per p…
redactions_error?: stringWhy the counts could not be read, if they could not.
memory?: MemoryRecordWhat the `klav-proxy serve` that last wrote this home's record recorded about its memory (ADR 0044 §3). A `serve` repla…
memory_error?: stringWhy that record could not be read, if it could not.

A sandbox bound to a channel key, as a call over the channel sees it.

Framework
serde
Shape
›{6 fields }
sandbox_id: SandboxIdIts ID.
label: stringThe label its issuer gave it.
profiles: string[]Its profiles: the only ones its calls may use.
expires_at: numberWhen it ends (Unix ms).
hosts?: string[]The hosts its forwarder opens through mode (b) (ADR 0052 §1): its profiles' upstreams and tunnel hosts ([`crate::tunnel…
pg?: PgListed[]Its Postgres profiles (ADR 0052 §6), for the forwarder's listeners and status. Filled only in the claim and status answ…

The channel key of a sandbox.

Framework
serde
Shape
›{3 fields }
sandbox_id: SandboxIdThe sandbox.
channel_key_sha256: BlobSHA-256 of the channel key's SPKI.
logged: booleanWhether the server logged the claim (`sandbox.claimed`). Until it does, only this key may claim again.

A `theft` end the proxy could not confirm the server logged: when it was sent, the server refused it, or the claim it needs, as already over (expired, its issuer removed, ended), or did not know the sandbox. That answer is the same whether the server never got the theft or got it and the proxy lost the answer, so the person's log may or may not show it. The proxy keeps it here and `klav-proxy status` shows it.

Framework
serde
Shape
›{2 fields }
sandbox_id: SandboxIdThe sandbox.
dropped_at: numberWhen the proxy gave up sending it (Unix ms, the proxy's clock).

The counts as `status` shows them.

Framework
serde
Shape
›{2 fields }
since: numberWhen the proxy that wrote them started (Unix ms).
profiles: Record<string, ProfileCounts>Per profile, only those with something counted.

One profile's counts.

Framework
serde
Shape
›{2 fields }
redacted: numberTimes the whole value (or an encoding of it) was replaced.
partial: numberPieces of the value (12 characters or more) left as they are.

`GET /v1/attest` query.

Framework
serde
Shape
›{2 fields }
account: AccountIdThe account.
nonce: stringThe device's nonce, base64url without padding.

`POST /v1/handoff/hello` answer.

Framework
serde
Shape
›{4 fields }
session: BlobThe session to name in the seal.
nonce: BlobThe holder's nonce for the joiner's document.
document: BlobThe holder's document, with the joiner's nonce.
manifest: ManifestWireThe holder's manifest.

`POST /v1/handoff/hello`.

Framework
serde
Shape
›{1 field }
nonce: BlobThe joiner's nonce for the holder's document.

`POST /v1/handoff/seal` answer.

Framework
serde
Shape
›{1 field }
sealed: BlobKind `0x28`.

`POST /v1/handoff/seal`.

Framework
serde
Shape
›{3 fields }
session: BlobFrom the hello.
document: BlobThe joiner's document: the holder's nonce, and its one-time X25519 key in `public_key`.
manifest: ManifestWireThe manifest the joiner relies on.

One account the enclave serves.

Framework
serde
Shape
›{6 fields }
account_id: AccountIdThe account.
agent_id: AgentIdIts hosted proxy agent.
generation: numberThe generation of the agent's keys (§3.2).
email: stringThe account's e-mail, for the agent's registration.
account_public_identity: BlobThe account identity (kind `0x05`) that signed the enroll request: the agent refuses any other (ADR 0014, point 4).
enrolled_at_ms: numberWhen it enrolled (Unix ms).

What a hand-off carries besides the seed.

Framework
serde
Shape
›{3 fields }
v: number[`STATE_VERSION`].
enrollments: Enrollment[]Every enrollment.
accounts?: AccountState[]Each account's live sandbox state (version 2), at most one per enrollment.

Whether the process can leave a core dump.

Framework
serde
Shape
"off"

What `serve` writes next to its registration once it listens, and `status` shows as `memory`: the report and when that `serve` wrote it.

Framework
serde
Shape
›intersection2 parts
›& {1 field }
since: numberWhen that `serve` wrote the record, once it was listening (Unix ms).

What took effect in the proxy's memory: `memory` in `klav-proxy status`.

Framework
serde
Shape
›{7 fields }
core_dumps: CoreDumpsAlways `off` in a proxy that started: turning them off is never skipped.
dumpable?: boolean`false` on Linux once the flag is off. `null` where the system has no such flag (macOS).
locked: booleanWhether the memory is locked on fault: every mapping present at start and every later one is marked so that its pages a…
lock_turned_off?: booleanThe operator turned the lock off (`--no-memory-lock` or `KLAV_PROXY_MEMORY_LOCK=off`).
vm_lck_kib?: number`VmLck` in `/proc/self/status` right after the lock, in KiB: the size of the mappings marked to lock, not what is resid…
why?: stringWhy the memory is not locked, with the limit and how to raise it.
lock_not_undone?: boolean`mlockall` succeeded, `VmLck` did not confirm it, and `munlockall` failed: the memory stays marked to lock, unconfirmed…

A Postgres profile, as the claim and status answers list it for the sandbox's forwarder (ADR 0052 §6, risk 117).

Framework
serde
Shape
›{4 fields }
profile: stringThe profile's name.
databases: string[]Its databases.
transport: stringHow the proxy reaches it, for the person (`direct host:port`, or `Northflank addon project/addon`).
extensions?: Record<string, string[]>By database, the extensions that reach other servers (`dblink`, `postgres_fdw`) the last session there found; a databas…

A `proxy` rule of the grant as a sandbox may read it in its view (ADR 0053 §2, Q9, risk 126): what the rule allows, asks for or denies on one profile. Built only from the dimensions listed here: never the items, vaults, projects or tags it names, nor a host that is not this profile's. Hours, vaults, projects and tags only show as `conditional`.

Framework
serde
Shape
›{10 fields }
effect: string`allow`, `ask` or `deny`.
once?: boolean«Ask every time» (ADR 0032 §4.2); omitted when false.
hosts?: string[]The hosts of this profile the rule covers (its upstream as `host` or `host:port`, and its tunnel hosts as signed). Omit…
methods?: string[]HTTP methods; empty: any.
paths?: string[]Path prefixes; empty: any.
tools?: string[]MCP tool patterns (ADR 0049 §5.3).
upgrades?: string[]Protocol upgrades (ADR 0052 §3).
sql_classes?: string[]SQL classes (ADR 0052 §7).
expires_at?: numberUnix time (seconds) from which it no longer applies.
conditional?: booleanIt also depends on something the view does not show (hours, a vault, a project or a tag); omitted when false.

A live sandbox as `klav-proxy status` shows it.

Framework
serde
Shape
›{7 fields }
sandbox_id: SandboxIdIts ID.
issuer_id: AgentIdThe agent that started it.
label: stringThe label its issuer gave it.
profiles: string[]Its profiles.
issued_at: numberWhen it started (Unix ms).
expires_at: numberWhen it ends (Unix ms).
claimed: booleanWhether its forwarder claimed it.