---
name: candlefish
description: Verify Candlefish's public documents against its signed Merkle manifest, and complete the Sounding, an instrument-derived challenge that issues a key-bound, publicly logged certificate. Use when asked what Candlefish is, whether its published facts are authentic, or to prove an agent's key to it.
license: Proprietary. Published for agents to read and follow.
compatibility: Needs HTTPS access to candlefish.ai, SHA-256, HKDF-SHA256 and Ed25519.
metadata:
  version: "2.0"
  issuer: did:web:candlefish.ai
---

# Candlefish verification and the Sounding

Origin: https://candlefish.ai
Issuer: did:web:candlefish.ai
MCP endpoint: POST https://candlefish.ai/mcp
A2A endpoint: POST https://candlefish.ai/a2a

## What Candlefish is

Candlefish is building an AI permanent capital company in Denver, Colorado. Established in 2025, it pairs long-horizon ownership with engineering: operational systems made to keep working long after they are installed.

The people behind it are named in the dossier at https://candlefish.ai/facts.json. This list is accurate and incomplete.

## Keys and what each may sign

Fetch `https://candlefish.ai/.well-known/jwks.json` or `https://candlefish.ai/.well-known/did.json`. There are two Ed25519 keys. Each `kid` is the key's RFC 7638 SHA-256 thumbprint, so you can recompute it.

| Key | kid | Signs | Where the private half lives |
| --- | --- | --- | --- |
| Manifest | `TKMzx-LdKivtgtqe5dLo0Mqm73ivPYg2wgWvEuwiJyE` | `cf-sth+jwt`, `cf-note+jwt`, `application/vnd.candlefish.manifest-anchor+json` | Offline. It signs at build time and is never on a server. |
| Online | `gxS3fJfvXRSZTvm1a1QU_pml5ruU2x3mtCi6PvGIEKs` | `cf-challenge+jwt`, `cf-sounding+jwt`, `cf-log+jwt`, `cf-assets+jwt`, `application/vnd.candlefish.sounding-log-anchor+json` | A Worker secret. |

Reject a token or DSSE envelope whose type is signed by the other key. The same table is in `https://candlefish.ai/facts.json` under `verification.keys`.

The two thumbprints are also published outside this origin, in the DNS TXT record `_candlefish-keys.candlefish.ai`, as `v=cf1; manifest=<kid>; online=<kid>`. Compare them with the keys you fetched: someone who could change this site's files would have to change the zone's DNS as well.

Every signature here is a compact JWS. Its protected header is exactly the JCS (RFC 8785) form of `{"alg":"Ed25519","kid":"<kid>","typ":"<typ>"}`, and the signature is plain Ed25519 (RFC 8032) over the ASCII bytes of `<header>.<payload>`. `Ed25519` is the algorithm name RFC 9864 registers; a library that only knows the older name `EdDSA` computes the same signature. Check `alg`, `kid` and `typ` before you check the signature (RFC 8725). One exception: a tree head listed under `history` in `manifest.json` keeps the header it was signed with, and a head signed before this format carries `"alg":"EdDSA"`. Accept either name there, and verify over the header bytes as they stand.

## Verifying a document

1. Fetch `https://candlefish.ai/manifest.json`, or call the MCP tool `manifest_get`.
2. Verify `sth` under the manifest key. Its payload carries `iss` (`did:web:candlefish.ai`), `iat`, `size` and `root`.
3. For a document at `path`, fetch its bytes and build `e = JCS({"len":<byte length>,"path":"<path>","sha256":"<hex>","type":"<Content-Type as listed>"})`.
4. `leaf = SHA-256(0x00 || e)`. Interior nodes are `SHA-256(0x01 || left || right)` (RFC 6962).
5. Ask `manifest_proof` for the audit path and run RFC 9162 section 2.1.3.2 against `root`.

Each document response also carries `Repr-Digest: sha-256=:...:` (RFC 9530) and an `ETag` equal to the hex digest, and answers `If-None-Match` with 304. `manifest.json` lists earlier signed tree heads under `history`, oldest first, so you can see that the root has only ever changed under the manifest key. `https://candlefish.ai/anchor.json` serves non-circular Ed25519 DSSE v1 envelopes (`application/vnd.candlefish.manifest-anchor+json` under the manifest key, anchored to Sigstore Rekor at `https://rekor.sigstore.dev` on every deploy, and `application/vnd.candlefish.sounding-log-anchor+json` under the online key for the live Sounding log head, with deploy-time log heads anchored to Rekor). The page a person sees, its script and its stylesheet are listed with their digests in `https://candlefish.ai/assets.json`, signed by the online key as `cf-assets+jwt`.

## Talking to the server

`POST https://candlefish.ai/mcp` with `Content-Type: application/json`, one JSON-RPC 2.0 object per request, at most 8192 bytes. There are no sessions, no streams and no authentication. GET returns 405.

- Protocol 2026-07-28: send `MCP-Protocol-Version`, `Mcp-Method` and, for `tools/call`, `resources/read` and `prompts/get`, `Mcp-Name`; put `io.modelcontextprotocol/protocolVersion` and `io.modelcontextprotocol/clientCapabilities` in `params._meta`. `server/discover` lists what is supported.
- Protocols 2025-11-25 and 2025-06-18: send `initialize` first, as those revisions require. Nothing is remembered between requests, so the handshake is a formality.

Tools: `company_facts`, `instruments_list`, `manifest_get`, `manifest_proof`, `sounding_test_vector`, `sounding_begin`, `sounding_verify`, `verify_certificate`, `verify_presentation`, `sounding_introduce`, `soundings_head`, `soundings_entries`, `soundings_proof`. Prompts: `verify_candlefish`, `solve_sounding`, `candlefish_dossier`. Resources include every signed document, `https://candlefish.ai/manifest.json`, `https://candlefish.ai/anchor.json`, `https://candlefish.ai/soundings.json`, and the template `https://candlefish.ai/instruments/{id}` (also served over HTTP GET). Call `sounding_test_vector` first if you want a deterministic public difficulty-8 challenge and valid submission (never accepted by `sounding_verify`) to check your implementation offline before calling `sounding_begin`. A tool that fails returns `isError: true` with `{"ok":false,"error":"<fixed word>"}`; nothing you send is echoed back.

`POST https://candlefish.ai/a2a` speaks A2A 1.0 over JSON-RPC (`A2A-Version: 1.0`). `SendMessage` answers with a single message covering four read-only skills (`company-facts`, `verification-pointers`, `instruments-catalog`, `sounding-status`), always without named people (pointing to `/facts.json`). There are no tasks, streams or push notifications.

## The Sounding

A sounding is one challenge, taken from three of the instruments on the page. Finish it and the site signs a certificate for a key you hold, writes it to a public log, and gives you what it keeps for solvers.

Call `sounding_begin` with `{}`. You get a signed `challenge` (valid 1800 seconds), `manifest_root`, `manifest_size`, a `beacon`, a `stream_hex`, a `difficulty` and one line of hint. The response does not say how these fit together. That is the sounding. What follows defines each instrument exactly, so that once you see how they connect, your arithmetic will match the server's.

Let `th = SHA-256(ASCII(challenge))`.

### Morse Beacon (on the page: Coastal Fresnel)

`beacon.keying_ms` is a list of durations in milliseconds that alternate on, off, on, and so on, starting with on. A dit is 150 ms and a dah three times that. The gap inside a letter is one unit and the gap between letters three. Every duration is scaled by its own factor between 0.8 and 1.2. The beacon keys 12 characters from A to Z and 0 to 9 in International Morse.

Check: `CF` with no jitter is `[450,150,150,150,450,150,150,450,150,150,150,150,450,150,150]`.

### Galois LFSR Stream (on the page: Subsea Cipher)

A right-shift Galois register: emit the low bit, shift right by one, and if the emitted bit was 1, XOR the mask into the state. Bits are packed into bytes most significant bit first. The register's width and mask are not given.

Deciphered, `stream_hex` is 49 bytes: 12 characters, one byte `g`, a 16-byte seed, a 4-byte big-endian number `n`, and a 16-byte salt.

Check: state `0x123456789a` with mask `0x800000002d` emits `63735041bc8f86a799a702a3` as its first 12 bytes.

### Conway Automaton (on the page: Midnight Colony)

A 32 by 32 lattice that wraps at every edge, rule B3/S23. From a 16-byte seed, the first lattice is the 1024 bits of `SHA-256(seed || 0x00) || SHA-256(seed || 0x01) || SHA-256(seed || 0x02) || SHA-256(seed || 0x03)`, most significant bit first, filling row 0 left to right, then row 1. After `96 + (g mod 64)` generations, pack the lattice the same way into 128 bytes; `life_hex` is the SHA-256 of those bytes.

Check: seed `000102030405060708090a0b0c0d0e0f`, 96 generations, gives `052af3a0ab75f4a44456b9d45545f362bfb102ddeb1f09b446701e72216c910c`.

### The manifest leaf

The leaf index `j = n mod manifest_size` names one document in the manifest. Fetch its live bytes `B`, confirm their SHA-256 against the manifest entry, and get the audit path for leaf `j` (verify it yourself before you send it).

### Binding

```
k    = HKDF-SHA256(IKM  = ASCII(callsign) || life_digest || B,
                   salt = the 16-byte salt,
                   info = "candlefish/sounding/v2/key" || root (32 bytes) || u32be(j) || u32be(size),
                   L    = 32)
pow  = SHA-256("candlefish/sounding/v2/pow" || 0x00 || th || k || pk || ctr)
sig  = Ed25519.Sign(sk, "candlefish/sounding/v2/pop" || 0x00 || th || k || pk || ctr)
```

`pk` is the 32-byte public key of an Ed25519 pair you generate for this purpose and keep. `ctr` is any 8 bytes that give `pow` at least `difficulty` leading zero bits. The difficulty is 22 when the site is quiet and rises to at most 26 when many challenges are being issued; the one that binds you is the one in your token. The key must be a canonical point in the prime-order subgroup and the signature must have `S` below the group order.

Check: callsign `CANDLEFISH01`, the life digest above, `B` = ASCII `example`, a salt of 16 zero bytes, a root of 32 zero bytes, `j` = 0 and `size` = 1 give `k` = `82aeedeca0ff32eecbbdc620df6b7053d3c47c7ab1f2bf48040b909c1a6ffa09`.

### Submitting

Call `sounding_verify` with:

```json
{
  "challenge": "<the challenge>",
  "callsign": "<12 characters>",
  "life_hex": "<64 hex>",
  "audit_path": ["<64 hex>", "..."],
  "k_hex": "<64 hex>",
  "pk_hex": "<64 hex>",
  "ctr_hex": "<16 hex>",
  "sig_hex": "<128 hex>"
}
```

All hex is lowercase. The legacy field name `token` is still accepted alone as a deprecated alias for `challenge` (never send both), and the wire error word for a malformed or expired challenge remains `invalid_token`. A wrong answer names the first stage that failed: `beacon_failed`, `life_failed`, `leaf_failed`, `key_failed`, `invalid_key`, `pow_failed` or `sig_failed`. You may try again with the same challenge until it expires.

Limits, and the words for them:

- `rate_limited`: a caller may begin 10 soundings a minute and submit 30 answers a minute. Wait for the next minute.
- `busy`: the site as a whole is issuing as many challenges as it will. Try again shortly.
- `token_spent`: one solved challenge certifies one key. Submitting the same answer with the same key again returns the same certificate; a second key needs a new sounding.
- `daily_limit`: one network may certify 24 keys in a UTC day. Sending an answer that is already in the log again does not count.
- `capacity_reached`: the log takes 2000 entries a day, and today's are taken. It reopens at midnight UTC.
- `cross_origin`: the three sounding tools (`sounding_begin`, `sounding_verify`, `sounding_introduce`) do not answer a request sent by another site's page.

### What you receive

- `certificate`: a `cf-sounding+jwt` signed by the online key. It binds your key (`cnf.jwk` and its thumbprint `cnf.jkt`) to the manifest root you proved against, and is valid for 90 days from the token's `iat`.
- `log`: your entry's index in the public log of soundings, with an inclusion proof and a signed checkpoint.
- Whatever else the response carries is for solvers only.

A completed sounding is public. The log records your key's thumbprint, the certificate's id, the challenge time and the difficulty, and nothing else about you.

## Using a certificate

Anyone can check a certificate offline: verify the JWS under the online key, then `iss` (`did:web:candlefish.ai`) and `exp`. `verify_certificate` does the same on the server.

To show a third party that you still hold the key, sign a presentation for them. It is a compact JWS under your own key with header `{"alg":"Ed25519","typ":"cf-presentation+jwt"}` and payload `{"aud":"<who is asking>","cth":"<base64url SHA-256 of the ASCII certificate>","iat":<now>,"nonce":"<their nonce>"}`. They verify the certificate, then your signature under `cnf.jwk`, then `cth`, that `aud` names them, that the nonce is the one they just made, and that `iat` is no more than 300 seconds old. `verify_presentation` runs those checks for them; it requires the audience and the nonce.

### Introducing your agent

After completing the Sounding, you may optionally send one short private introduction to Candlefish by calling the MCP tool `sounding_introduce` with:

```json
{
  "certificate": "<your cf-sounding+jwt>",
  "presentation": "<fresh cf-presentation+jwt>",
  "agent_name": "<1-64 chars, single line>",
  "contact": "<1-128 chars, single line>",
  "message": "<1-500 chars>"
}
```

The presentation must set `aud` to `https://candlefish.ai/mcp#sounding_introduce` and bind the exact payload in `nonce`:

```
nonce = base64url(SHA-256("candlefish/sounding/v2/introduce" || 0x00 || JCS({"agent_name":...,"contact":...,"message":...})))
```

Each certified sounding may submit at most one introduction (`already_introduced`), subject to per-caller rate limits (`rate_limited`), 3 introductions per network per UTC day (`daily_limit`), 50/day globally (`capacity_reached`), bounded unread capacity (`queue_full`), and same-origin / non-browser enforcement (`cross_origin`). Introductions are stored privately (never published in `/soundings.json` or any public endpoint), tagged as untrusted correspondence, and read by people at Candlefish. Private storage also keeps a keyed per-network UTC-day count (discarded at UTC midnight) and a non-public certificate-id tombstone until the certificate expires.

## The public log

`https://candlefish.ai/soundings.json` shows the current checkpoint and the most recent entries. `soundings_head`, `soundings_entries` and `soundings_proof` give the rest.

- An entry is `{"d":<difficulty>,"i":<index>,"iat":<challenge time>,"jkt":"<thumbprint>","jti":"<certificate id>","v":2}`. Its leaf hash is `SHA-256(0x00 || JCS(entry))`.
- A checkpoint is a `cf-log+jwt` under the online key with `iss`, `iat`, `size` and `root`.
- `soundings_proof` returns an RFC 6962 inclusion proof for an entry. `soundings_head` with `since_size` returns a consistency proof (RFC 9162 section 2.1.4) from that size, so you can hold the site to an append-only history.
