# The confidential tier — the full specification The detailed version of [The confidential tier](./the-attested-tier.md), for auditors and security reviewers: each link of a confidential turn and what it verifies, exactly what crosses readable, the checks you can run yourself, and how the enclave stays on and is replaced by a new build. What it does not hide is on the [short page](./the-attested-tier.md#what-it-does-not-hide). > See also: [the trust model — the full specification](./trust-model-spec.md) (the double blind and the chain of checks) > and [Verify it yourself](./verify.md) (the commands). --- ## One confidential turn in full {#one-confidential-turn-in-full} In a confidential room every turn runs inside a measured **AWS Nitro enclave**, and the model that answers runs on **confidential-compute inference**. The room key `mk` is made on the member's device when the room is created; the server stores only a commitment to it. 1. **Your device checks the enclave.** It fetches the enclave's attestation — a document signed by AWS Nitro hardware the operator cannot reach — with a fresh nonce, verifies it against the AWS root pinned in the app's source, and compares the measurements with the published ones (`/enclave-claim.json`), which anyone can rebuild from source. Anything else is refused before a byte is sent. 2. **It seals the whole request to the enclave.** The enclave makes its keypair inside itself at boot and never exports it; the attestation binds its public half. Your device seals each request — the message, any file, the room key — to that key as one envelope, with a one-time answer key inside. Our servers (the API front and the host beside the enclave) carry the sealed bytes both ways and cannot open them; only the measured image can. Your device seals only to an enclave whose measured policy says it opens envelopes, and sends nothing when it cannot check that. The room is read the same way: its history comes back sealed under the room key and is opened on your device. 3. **The turn runs inside.** The enclave opens the room, runs the assistant and its tools, re-seals the result and writes ciphertext back to storage. Its answer to your device goes back sealed under the one-time key, bound to the request it answers. The credentials the enclave itself needs are released to it only by a key policy that checks its measurement — an account administrator is refused. 4. **The model call stays confidential.** The enclave sends a model call only to an **attested no-log gateway** into confidential-compute inference, and the call is refused if that gateway does not attest. The enclave's measured code verifies the gateway's attestation; the gateway's measured code verifies the model's enclave (AMD SEV-SNP, or Intel TDX with NVIDIA GPU evidence) before forwarding. Every call — the turn and every helper call — must come back with the gateway's **signed inference receipt**, bound to a fresh nonce and to the exact request and response, stating that the upstream was verified. Anything else fails closed and the answer is discarded. The tools do not go through the gateway: reading a file, looking at an image or searching the web goes to Tinfoil's confidential enclave (AMD SEV-SNP), whose measurement the turn enclave verifies itself before it sends — a web search's query then leaves that enclave for the search provider — and writing a PDF or fetching a page runs in Witbitz's own measured tools enclave. 5. **The answer carries its proof.** Each reply is signed inside the enclave with the build that ran it, the verified model receipts and the tool calls it made. `space.certificates()` checks a room's whole history on the device ([SDK](./sdk.md)). So the operator is blind both at rest and in use: storage holds ciphertext, and the one place plaintext opens is a machine whose code you can check and whose key we cannot reach. ## What crosses readable {#what-crosses-readable} - **Beside the envelope:** which room a request is for (for a private lane, its shared room too), its kind (a message, a read, a reaction, a write to the room's state), an approval's yes or no, a read's position in the history, when, and how large, and the device's network address. - **Inside it:** a signed-in member's sign-in token rides inside the envelope, with the signed `@username` the device fetched beforehand, so our servers do not see which account posts in which room. - **One exception:** in a room that requires an approved device, the device's enrollment key id (and its platform) stays beside the envelope, because the device list where a removed device is struck off lives outside the enclave. - **Connections:** a connection's call (a calendar, an issue tracker) is sealed to the credential enclave too, both ways. - **Older apps:** apps from Official v152 (the hosted app v59) seal every request and every answer. An older app seals only the room key: its messages, files and answers cross our API front and the enclave's host readable, though never stored that way, until it updates. ## What you can check yourself | Check | How | |---|---| | **The attestation is genuine AWS hardware** | The COSE signature and certificate chain, to the AWS Nitro root pinned in source — the root the document carries is discarded. Runs in the browser. | | **The image is the published source** | Rebuild it: the measurement (PCR0) reproduces from published source, with every build input pinned. Every release is also rebuilt by a separate build enclave and logged in Rekor, with a published audit verdict. | | **It was signed by our signing certificate** | PCR8 derived from the published certificate yourself; a stated value that contradicts its certificate is rejected. | | **It is live, not replayed** | Send a nonce; it must come back inside the signed document. Without one the result says `fresh: false`. | | **This answer came from that build** | The reply's turn certificate: its signature, its attestation, the audit verdict for its build. | The commands: [Verify it yourself](./verify.md). ## Always on, and updated without downtime One measured enclave serves every confidential room, always on, so a first message never waits for a launch. If it stops answering with a valid attestation, an orchestrator replaces it from its launch template — the new instance pulls its measured image and opens its credentials through the measurement-gated key policy, with no operator step. A new build runs **beside** the old one: the published claim names both measurements during the switch, so devices accept either, and the old one is retired after the cutover. Each new instance makes a fresh key, so every device re-verifies before it seals.