Skip to content

Private samples

Ghost Bakery learns the structure of your data, never the values. To import a sample, inference needs column names and the shape of each value, such as length, letter case, digit positions and which values repeat. It does not need the values themselves. Chef and the local MCP server replace every value on your machine before the sample is sent.

What each client sends

Client Before sending On the server
Chef (browser) Cuts the sample to 20 rows and canonicalizes it in the browser Infers from the canonical sample and deletes it once processed
Local MCP server Cuts the sample to 20 rows and canonicalizes it on your machine Infers from the canonical sample and deletes it once processed
API and remote MCP server Nothing: the sample arrives as the caller sends it Cuts it to 20 rows before it is queued, infers, and deletes it once processed

In every case, the recipe, column reports and warnings never contain a sample value. The 20-row limit is the default of limit.global.max_sample_rows. For JSON, the limit applies to every array at any depth.

For sensitive data, use Chef or the local MCP server. If you call the API directly, send only a few rows and replace sensitive values yourself first.

What canonicalization does

Canonicalization replaces each value with a synthetic value of the same shape. It keeps lengths, letter case, digit positions, separators and which values are equal to each other, which is all inference reads. For example, these rows:

text
id;name;email;status;amount;paid_at
1;Ana Souza;[email protected];paid;120.50;2026-03-01 09:30:00
2;Bruno Lima;[email protected];paid;89.90;2026-03-02 14:05:00
3;Carla Dias;[email protected];refunded;15.00;2026-03-04 11:00:00

leave the browser as:

text
id;name;email;status;amount;paid_at
4;Aga Gggga;[email protected];gaga;100.10;2000-01-01 00:10:00
5;Agggg Ggga;[email protected];gaga;10.10;2000-01-01 10:00:00
6;Aagga Agag;[email protected];gaaggaaa;10.00;2001-01-01 10:00:00

Both samples give the same recipe. The two paid values stay equal, so inference can still see a repeated value. The email stays an email, but the person and the domain are gone.

What the server still sees

  • Column names and JSON keys. They are sent as written, because inference relies on them. Do not put sensitive data in headers or keys.
  • Shapes. The length of each value, its character classes and its equality pattern stay visible.
  • Small value sets. Some values cannot change without changing their shape, such as a single 0. A synthetic value can also match an original by chance. Values from a very small set may stay guessable.

How it is checked

The canonicalizer follows a published specification, and Chef's JavaScript and the MCP server's Go produce byte-identical output on a shared set of 66 test vectors. Automated tests check that canonicalizing a sample never changes the inferred recipe, and that no sample value reaches the recipe. You can see exactly what Chef sends in your browser's network tab: the request carries the canonical sample only.

The data protection page describes how uploaded data and results are stored.