Partner Clean Room
A Partner Clean Room is a data clean room for two owners. Each owner approves the exact job, the worker proves what it is before it reads a row, and each owner keeps its own ledger of what was released.
On this page
| Capability | Runtime | Status |
|---|---|---|
| Run the public-test room job and verify its synthetic proof using the supplied test authority | Sandbox | Preview |
| Provision both owners’ grants, ledgers and independent trust roots | Tenant Cloud | Preview |
Diagram source
flowchart LR
carda["Owner A's signed card"]
cardb["Owner B's signed card"]
env["Envelope both approve"]
worker["Attested worker"]
leda["Owner A's ledger"]
ledb["Owner B's ledger"]
out["Result and proof file"]
carda --> env
cardb --> env
env -->|every check passes first| worker
worker --> leda
worker --> ledb
worker --> outWhat both owners sign
Each owner signs a dataset card for one table. The card states the pinned snapshot's digest, the match key and its mode, what a row counts (a person or a household), the owner's minimum group size (min_k), its budget of epsilon and queries, a rounded row count, the key fill rate, and five format-check hashes.
Both owners then approve one envelope. The envelope pins both cards by digest and states the whole job.
| Envelope field | What it fixes |
|---|---|
operation | The one question: overlap_count, group_lift or adcp_segment_activation |
privacy | strict_floor, or geometric_dp with its epsilon |
min_audience_size | The smallest audience both sides accept |
image_digest, dual_signer_key_ids | The exact worker image and the two keys that must have signed it |
processor | Who runs the job, on which cloud, in which region (entity, cloud, region) |
payment | Who pays and the most the run may cost (payer, cost_ceiling, currency) |
expires_at | The last moment the job may run |
destination | For an audience question: the one destination allowed to receive the audience (agent) and how long the audience lives (ttl_seconds) |
ledgers | Where each owner's ledger sits |
Every owner signs the envelope digest with its organization key. An owner whose signed card pins a human passkey must also supply that person's assertion over the same digest. For the two-person ceremony, require both cards to pin a credential before accepting the job. In the downloadable fixture both do. An organization-only card can omit the optional approvers.passkey field, and its organization signature suffices. Inspect the signed card and assertion together before claiming that a person approved.
In this second signed synthetic example, inspect the publisher's card under request.cards.a.approvers. It has only the organization key; the advertiser's card also pins a passkey. The Rust and Node verifiers report 2 organization signatures, 1 passkey approval. Signed one-human proof · Public test root for this proof
What the worker proves before it reads a row
The run has a fixed order. Each step runs only when every step before it passed, and no data file is opened before step 5.
- Approvals. Both cards carry their owner's signature, and both owners signed this digest and every passkey pinned by those cards verified.
- Format check. Five fixed, awkward email addresses are normalized and hashed. Each card carries its owner's five hashes. When a side's pipeline prepares addresses differently, the run stops and names the address and the likely cause.
- Attestation. The worker makes a signing key for this run alone and asks its Confidential Space launcher for a token bound to the envelope digest and that key. It checks the token's certificate chain to the Confidential Space root and every launch claim in the table below.
- Image signatures. The image carries both signatures the envelope names: Precise's and an auditor's.
- Ledgers. The worker loads both owners' ledgers, checks their chain links and any heads that the owners pinned, checks that the release fits both budgets, and claims the next sequence number on each. Each claim holds half of the seed for this run's noise.
| Launch claim | Required value |
|---|---|
| Image | The digest the envelope names, from a production Confidential Space image |
| Debugging | Disabled since boot |
| Secure boot | On |
| Hardware | A model that encrypts memory: GCP_AMD_SEV, GCP_AMD_SEV_ES, GCP_INTEL_TDX or INTEL_TDX. GCP_SHIELDED_VM is turned away |
| Issuer and audience | iss equals https://confidentialcomputing.googleapis.com and aud equals precise-room |
| Token times | Safe integer nbf, iat and exp. The verifier requires nbf ≤ iat < exp and checks validity at the run time. An archived proof uses its issue time for the offline check |
| Zone | Inside the region both owners signed |
| Command and environment | No command override. One environment variable, PRECISE_ROOM_REQUEST_URI |
| Memory monitoring | Off |
The container image states the same policy in its labels. It is one static binary on a distroless base, running as a non-root user.
What the worker releases
For a household release, the worker drops rows with blank or null household keys and rejects a missing household column. Shared identifiers must map households one-to-one across owners, who may use different aliases. In the boundary fixture 180 matched identifiers belong to 60 households. At floor 60 they can produce 180 destination tokens. At 61 membership is withheld even if the noisy count reaches 61. Both the true and the released count must reach the floor.
Both Parquet files are read into memory and reduced to one row per person or household. The join happens in memory. What the run writes is listed under "What each owner keeps": the proof file, and an intent and an entry on each ledger.
strict_floor. A count under the floor is withheld. The floor is the largest of the two owners' minimums and the envelope's minimum audience.geometric_dp. Every count gets two-sided geometric noise at the epsilon the envelope states, and is kept inside the integer range JSON carries exactly, 0 through 2⁵³−1.- An audience.
adcp_segment_activationbuilds an audience only when both the true matched count and the released count meet the strictest signed minimum. It writes a token file for the destination, and the proof file carries that file's digest.
Noise covers counts. Three things are released under their own rules and carry no noise: the group labels of a lift question, the decision to build an audience, and which identifiers are in an audience. The destination computes the same token from each of its own identifiers, so it learns exactly which of its own identifiers are in the audience. Agree that disclosure with your partner before choosing the audience question.
What each owner keeps
Each dataset ledger charges requests across partners. Recipients can combine answers already disclosed. To detect a rollback to an older complete chain, both owners must sign their independently retained latest expected_head in the envelope. The field is optional. Chain linkage alone cannot establish that the last entry you received is current.
- An entry records the envelope digest, the charge in epsilon and queries, the running total, and the result's digest. Each entry chains to the one before it.
- The worker writes an intent first, with the result encrypted to each owner's key, and then the entry. A retry after a crash finds the intent and returns the same answer, so noise is drawn once.
- On local files the worker claims a sequence number with a create-if-absent write, so two rooms racing for one number cannot both win it. The matching requests for S3 (
If-None-Match: *) and Cloud Storage (ifGenerationMatch=0) are built, and are sent once bucket transport is in.
| Crash point | Who has the result? | Recovery for the same envelope |
|---|---|---|
| After the first or second sequence claim | Each claim holds a seed share. No result has been written. | Reuse the claim and reserve the missing side. |
| After one or both intents | Each stored intent contains ciphertext for both recipients. An owner with its key and access to an intent can decrypt its copy. | Reuse the ciphertext and result digest, then complete both entries. |
| After the first debit | One ledger is final. The second owner's debit can still be pending. | Finish the second entry. Keep both ledgers and their independently held heads available. |
| After both debits | Each owner can inspect its ledger entry and the signed result. | Replaying the envelope returns the recorded answer with no second charge. |
A deployment requiring two durable debits before either owner can decrypt needs a separate key-release gate. The current intent already contains decryptable ciphertext.
The run's signing key exists for one run. On confidential hardware, memory is encrypted with a key the processor discards when the machine stops.
Run a sample room
demo-fixtures writes a complete synthetic room: two owners, their tables and keys, and a test authority.
precise-room demo-fixtures --out /tmp/room
precise-room doctor --envelope /tmp/room/request.json --test-authority /tmp/room/test-authority
precise-room run --envelope /tmp/room/request.json --test-authority /tmp/room/test-authority
precise-room verify --proof /tmp/room/proof.json --pki-root /tmp/room/test-authority/root.pemdoctor checks steps 1 to 4 and that both tables and both ledgers can be reached. It reads no data. This is its output on the sample room written to /tmp/room, with sample data.
PASS approvals envelope sha256:b9f56337a900
PASS canary 5 of 5 canary hashes agree on both sides
PASS image_signatures signed by both keys the envelope names
PASS attestation token from test-authority
PASS input_a file:///tmp/room/data-a.parquet
PASS input_b file:///tmp/room/data-b.parquet
PASS ledger_a file:///tmp/room/ledger-a
PASS ledger_b file:///tmp/room/ledger-b
fixture_ready
Run precise-room run with the same envelope and authority.run prints the result and writes proof.json. open --proof <file> --owner a|b --key <recipient key> decrypts the copy of the result an owner's ledger holds. A second run of the same envelope serves the same answer and spends nothing more.
Built today
- The worker with five commands:
doctor,run,verify,open,demo-fixtures. - Three questions and two protections, tested end to end on Parquet: measurement, audience building, retries, budgets, rollbacks and tampering.
- Two verifiers that share no code, one in Rust and one in JavaScript. See Offline verification.
- The container image for arm64 and amd64, with a whole room run inside each.
- Native
precise.commitment-leaf/v2commitment leaves (room_envelopeandroom_execution) on newly generated proofs, with backward-compatible verification of archived 11-leaf v1 proofs and strict JSON parsing across every CLI input. - 68 Rust tests and 46 JavaScript tests, including v2 and v1 commitment verification, household floors, token time/issuer/audience checks, trusted roots and release-rule verification.
Next to build
- Bucket transport. The worker reads local files today. The conditional-write requests are built, and sending them and exchanging the attestation token for bucket access come next.
- A run on confidential hardware. The launcher client sends the documented request and is tested against a local stand-in. A token issued on real hardware has yet to pass through the verifiers.
- Audience delivery. An audience's token file is written locally. Sending it to its destination, encrypted to the destination's key, comes next.
- Seed protection at rest. Each ledger holds half of a run's noise seed, unencrypted. A party that can read both owners' ledgers can remove the noise from that run's counts. Wrapping each half with a key only the attested worker can use is next.
- Public anchoring. A proof reaches a signed Merkle tree today. Anchoring on AliceNet and Ethereum comes next.
- Image signature payloads in the proof. The proof carries each signer's signature over a statement naming the image digest. Copying the launcher's own signature records into the proof comes next.
For the buyer's view of the same room, see Partner data matching.