Klav Atlas

klav-forward

11 schemas in 4 files.

Stablev0.15.1034e81b52d1b· 2026-12-04

Blast radius

0 direct · 0 transitive workspaces · 1 app affected

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

Affected apps (rust)

The sandbox the channel key is bound to, as the proxy says it.

Framework
serde
Shape
›{6 fields }
sandbox_id: stringIts ID.
label: stringIts issuer's label.
profiles: string[]The profiles its calls may use.
expires_at: numberWhen it ends (Unix ms).
hosts?: string[]The hosts mode (b) opens for it (ADR 0052 §1, §10): its profiles' upstreams (`host`, or `host:port` off 443) and tunnel…
pg?: Listed[]Its Postgres profiles (ADR 0052 §6), from a proxy with the Postgres proxy; never written to `state.json` either.

A refusal, as the proxy (or the forwarder) words it (ADR 0036 §10).

Framework
serde
Shape
›{3 fields }
error: string`klav_*` code.
message: stringWhat happened, for the person.
next?: stringWhat the agent should do.

Mode (b)'s own state, next to its files: what `run`, the shims, `env` and `status` read. Never secret.

Framework
serde
Shape
›{7 fields }
v: numberFormat version ([`STATE_VERSION`]).
pid: numberThe forwarder that wrote it.
sandbox_id: stringIts sandbox.
port: numberThe local port of mode (b).
hosts: string[]The hosts it opens, as the proxy named them at the claim.
shims: string[]The shims written in [`BIN_DIR`], by command name.
system_roots?: stringThe system bundle put in front of the CA in [`BUNDLE_FILE`], if one was found.

[`SEEN_FILE`].

Framework
serde
Shape
›{7 fields }
intercepted: numberConnections opened through the proxy.
passed: numberConnections passed through untouched.
refused: number`CONNECT`s the proxy refused.
last_refusal?: SeenRefusalThe last of them: the host and the proxy's code.
tls_failed: numberTools' TLS handshakes that failed (an SNI that was not the host, a client that does not trust the sandbox's CA, HTTP/2 …
last_tls_failure?: stringThe host of the last of them.
passed_hosts?: string[]The last hosts passed through (most recent first, at most 8): a tunnel host that moved shows here (ADR 0052 §2).

A refused `CONNECT`, as [`SeenFile`] keeps it.

Framework
serde
Shape
›{3 fields }
host: string`host:port`.
status: numberThe proxy's HTTP status.
error: stringIts `klav-error`, if any.

A Postgres profile, as the proxy's claim and status answers list it.

Framework
serde
Shape
›{4 fields }
profile: stringThe profile's name.
databases: string[]Its databases.
transport?: stringHow the proxy reaches it, in the proxy's words.
extensions?: Record<string, string[]>By database, the extensions that reach other servers (`dblink`, `postgres_fdw`) a session there found (risk 117); a dat…

One listener, as `up` set it up.

Framework
serde
Shape
›{5 fields }
profile: stringThe profile.
databases: string[]Its databases.
transport?: stringHow the proxy reaches it.
port?: numberThe local port, when it listens.
off?: stringWhy it does not, when it does not.

The listeners' state file.

Framework
serde
Shape
›{4 fields }
v: numberFormat version ([`STATE_VERSION`]).
pid: numberThe forwarder that wrote it.
sandbox_id: stringIts sandbox.
listeners: Listener[]Its listeners, in profile order.

`ended.json`: the proxy's refusal of the status of `sandbox_id` once it revoked it. Never a secret: a code and the proxy's own words.

Framework
serde
Shape
›{3 fields }
v: numberFormat version ([`ENDED_VERSION`]).
sandbox_id: stringThe sandbox it is about: one of another package is ignored.
refusal: RefusalWhat `status` and `up` say again.

That this state directory began to claim a sandbox (ADR 0036 §5): `claimed/<sandbox_id>`, written before the first byte of the claim, so a later `up` with the same package refuses here instead of claiming again, which the proxy would take for a theft. Nothing secret: no secret, no hash of one, no package.

Framework
serde
Shape
›{3 fields }
v: numberFormat version ([`MARKER_VERSION`]).
sandbox_id: stringThe sandbox (its file's name too).
at: numberWhen the claim began (Unix ms).

What a running forwarder wrote about itself.

Framework
serde
Shape
›{4 fields }
v: numberFormat version (1).
pid: numberIts process.
port: numberThe local port it listens on (`127.0.0.1`).
sandbox: BoundThe sandbox, as the proxy said at the claim.