# Post-quantum protection

> Hybrid ML-DSA-65 signatures on long-lived records and hybrid ML-KEM-768 + X25519 sealing of connector credentials: what each protects, where it is enforced and how to verify it.

Two kinds of record are kept long enough to be exposed to a future quantum computer: signed evidence, such as an Octy™ answer’s receipt or an approval, which may be checked years after it was signed; and connector credentials, which are often valid for years and could be copied today and opened later. For both, LightHouse™ and the engine add a NIST post-quantum algorithm beside the classical one. The classical algorithms remain in place, so each record is protected by both.

## What is covered

| Record                                                            | Classical | Post-quantum                   | Kept for                       |
| ----------------------------------------------------------------- | --------- | ------------------------------ | ------------------------------ |
| Octy receipts (version 3)                                         | Ed25519   | ML-DSA-65 (FIPS 204)           | Years, as evidence             |
| Knowledge items and corpus manifests                              | Ed25519   | ML-DSA-65                      | Years, as evidence             |
| Signed prompts, their sign-offs, template proposals and decisions | Ed25519   | ML-DSA-65                      | Years, as custody records      |
| Commands from LightHouse, approvals among them                    | Ed25519   | ML-DSA-65                      | Years, as the approval record  |
| Command results reported by a deployment                          | Ed25519   | ML-DSA-65                      | Years, as the applied record   |
| Connector credentials sealed to a deployment                      | X25519    | ML-KEM-768 + X25519 (FIPS 203) | For the life of the credential |

Short-lived signatures remain Ed25519 only: telemetry request signatures, content reader requests and run tokens are accepted for seconds or minutes, so a signature forged after that time is refused. Offline telemetry bundles are authenticated when they are imported.

## Hybrid signatures

**What it is.** A long-lived record keeps its Ed25519 signature and can carry a further ML-DSA-65 signature over the same signed bytes. The further signature is held outside the bytes it signs, so adding it does not change what the Ed25519 signature covers. A deployment adds it when it holds an ML-DSA-65 key, and LightHouse adds it to the commands and Octy receipts it signs when it holds one. Without a key, records are signed with Ed25519 alone, as before. An ML-DSA-65 signature adds about 4.5 KB to a record.

Each verifier applies one of two policies:

| Policy                 | Ed25519     | ML-DSA-65                  |
| ---------------------- | ----------- | -------------------------- |
| `accept` (the default) | Must verify | Must verify when present   |
| `require-hybrid`       | Must verify | Must be present and verify |

Under either policy, a signature that is present and does not verify fails the record. A signature with an algorithm the verifier does not know is reported, and does not satisfy `require-hybrid`.

**Where it is enforced.** Your deployment signs with its own ML-DSA-65 key, held in your secrets store, and verifies commands from LightHouse against LightHouse’s ML-DSA-65 command key. LightHouse verifies records at intake against the keys registered for your deployment. Atlantic registers a deployment’s ML-DSA-65 public key out of band, with at most two active during a rotation; a key is never taken from a record. Your tenant’s policy is set with `GET` and `PUT /api/v1/signature-settings` (`client_admin`, audited).

**Verify it.** `GET /api/v1/octy/keys` publishes each deployment’s ML-DSA-65 keys beside its Ed25519 keys, as JSON Web Keys with `kty` `AKP` and `alg` `ML-DSA-65`, with your tenant’s policy. `lighthouse-ai verify-answer receipt.json` reports each signature on a receipt, and `--require-hybrid` fails a receipt without a valid ML-DSA-65 signature. The evidence panel shows the further signature when it verifies. See [Verifying a receipt](/octy/evidence/#verifying-a-receipt).

## Hybrid sealing of connector credentials

**What it is.** A credential sealed with X25519 alone could be copied today, from a store or from captured traffic, and opened once a large quantum computer exists. Your deployment therefore holds a hybrid ML-KEM-768 + X25519 key beside its X25519 key, and new credentials are sealed with HPKE (RFC 9180) using the ML-KEM-768 + X25519 key encapsulation (X-Wing), HKDF-SHA256 and AES-256-GCM. A hybrid seal opens only with both halves of the key, so breaking ML-KEM-768 or X25519 alone opens nothing.

Your deployment advertises both public keys to LightHouse over its command channel, signed with its own Ed25519 key, together with whether it still accepts X25519-only seals. The Connect page, the CLI and LightHouse itself seal with the hybrid key whenever the advertisement offers one that verifies. A deployment that advertises no hybrid key is sealed to with X25519, as before. A hybrid key that does not verify voids the advertisement, and nothing is sealed.

**Each credential’s seal is shown.** The connection’s card says **Post-quantum sealed** or **Classical seal**. A credential kept under a classical seal is re-sealed by connecting it again from the connector’s page, sealed with the hybrid key; the new connection replaces the old one. The card also recommends rotating long-lived credentials at the provider.

**Requiring post-quantum seals.** A client administrator can require hybrid seals for every new credential, from **Post-quantum seals** on the Connectors page or with `PUT /api/v1/sealing-settings` (`require_hybrid`, audited). With the requirement on, a classical seal is refused with `409 hybrid_seal_required`, a deployment that does not advertise a hybrid key takes no new credential until it does, and nothing falls back to your tenant’s key. Credentials already kept are not changed. A deployment can also be set to refuse X25519-only seals itself.

**Where it is enforced.** The seal is made in your browser, by the CLI on your machine, or by LightHouse the moment a provider’s exchange hands it the token. Your deployment opens it in your account and writes the credential to your own secrets store. See [Where every credential is held](/connect/#where-every-credential-is-held).

**Verify it.** `GET /api/v1/connectors/sealing` shows, for each deployment, the suite a new seal will use (`hybrid` or `classical`) and whether your tenant requires hybrid seals. Each connection carries `seal_suite`, which is also recorded in its `connector_connected` audit entry.

## Signed knowledge provenance

Each document Octy answers from has a signed knowledge item, and each index publish a signed corpus manifest, both carrying the ML-DSA-65 signature where your deployment holds that key. A version 3 receipt names the knowledge item of each passage and the manifest, so an answer can be traced to the documents it came from. See [Signed provenance](/octy/knowledge/#signed-provenance).

## Record formats

The signed bytes, the receipt and knowledge record fields, the key identifiers and the sealed form are described in the client documentation, under your non-disclosure agreement.

Source: https://docs.atlanticagenticlabs.com/security/post-quantum/
