PreciseDocs

Data boundaries

Raw media logs and event-level records belong in your authorized lake or warehouse. The customer Gateway reads them under your grant. Its native reader, warehouse fallback, aggregate-output checks and approved Partner Clean Room releases have different boundaries.

On this page
CapabilityRuntimeStatus
Inspect public query rules, keys and scopesSandboxLive
Restrict reads and exports to the customer grantTenant CloudPreview
Apply the tenant identifier-output policyTenant CloudPreview
Inspect proof examples from public-test AccessSandboxPreview

Where data sits

DataWhere it sitsWhat crosses to Precise
Raw logs, event-level delivery, full datasetsYour lake or warehouseThe customer controls raw storage and the placement and credentials of its reader
Snapshot exports for a runA prefix in your own bucket, stage or external locationExports target the named prefix. Scope the provider identity to that prefix and validate object resolution on the chosen read path
Aggregates and run recordsComputed by the Gateway in your cloudThe aggregate, its run_id and its result_digest
Business context and versioned summariesPrecise's store, scoped to your tenantHeld by Precise
Raw logs to Granted columns (named columns); Granted columns to Your bucket (one fixed statement); Your bucket to Gateway (pinned snapshot); Gateway to Aggregates and run records (output rule).Your cloudRaw logsGranted columnsYour bucketGatewayAggregates and runrecordsnamed columnsone fixed statementpinned snapshotoutput rule
Diagram source
Mermaid
flowchart LR
  subgraph cloud ["Your cloud"]
    logs["Raw logs"]
    view["Granted columns"]
    bucket["Your bucket"]
    gateway["Gateway"]
  end
  precise["Aggregates and run records"]
  logs -->|named columns| view
  view -->|one fixed statement| bucket
  bucket -->|pinned snapshot| gateway
  gateway -->|output rule| precise

What you grant

The grant is yours to write and yours to revoke. It names one reader, the columns it may read, the compute it may use, and the one prefix it may write to. On each cloud the recorded connection answers "rows_leave_your_cloud": false.

CloudThe reader may readThe reader may write
AWSNamed columns, through Lake Formation SELECTs3:PutObject and s3:AbortMultipartUpload on one prefix
Google CloudAn authorized view and query-job rights in the job projectOrdinary export and managed Iceberg have different bucket rights and principals
SnowflakeA view over the named columnsOne stage you own
DatabricksA view over the named columnsOne external location you registered

The warehouse renderer rejects ungranted projections, relations and tenant changes before producing SQL. The destination is derived from the grant and request, and every statement reads one fixed source version. A catalog's row or masking rule is additional authority. The native restricted read applies supported predicates and requires reader attestation. The warehouse fallback refuses any table that carries catalog read restrictions, so a restricted table is read under its rules or not at all. Cloud connection examples, SQL and provider requests.

The connectors are tested against local stand-ins for each cloud's APIs. A live connection is set up with you during onboarding.

The identifier output rule

Every column in a governed catalog carries a role, and every catalog carries an output policy.

SettingValuesEffect
ColumnRoleIdentifier, Dimension, MeasureDirect identifier projections are rejected on the governed SQL route
OutputPolicy.allow_row_exporttrue or falseRequests aggregate-only release on that catalog
OutputPolicy.min_group_nA whole number of 1 or moreSets the minimum group size at supported aggregation nodes. A floor above 1 also requests aggregate-only output

For a policy refusal, read not_computable and the diagnostic code. These checks cover the SQL plan the Gateway can inspect.

CodeWhen
identifier-column-projection-prohibitedThe output projects an identifier column. The message names the column
row-export-prohibitedThe catalog requires aggregate output and the query returns rows
column-output-policy-unprovenThe Gateway cannot prove that the query's plan satisfies the policy

count and approx_distinct over an identifier return a number and are allowed. This rule runs in the Gateway of a cloud deployment. The public sandbox serves a synthetic catalog with no identifier-role columns, so it has nothing for the rule to refuse.

The governed SQL analyzer fails closed across every expression variant, including quantified comparisons, nested sorting and VALUES expressions, and blocks direct projection or encoding of identifier sketches while allowing aggregate estimates such as theta_estimate and hll_estimate. An aggregate count and a serialized sketch still have different disclosure properties, and native snapshot reopening and warehouse exports carry different evidence. Keep sensitive identifiers out of exposed diagnostics and unvalidated joins, pin storage access to a provider-enforced prefix, retain source revisions and object digests, and require an independent release review and passing regression tests for each customer deployment before relying on it for restricted data.

One Partner Clean Room question releases identifier tokens by design, and both owners approve it first: building an audience. The destination receives tokens that tell it which of its own identifiers matched. Partner Clean Room states what that question releases.

What the public sandbox enforces

The public catalog contains synthetic data. A read-only query for a nonexistent measure returns HTTP 422 query_failed.

Runtime: SandboxStatus: LivePOST /api/sql/run
curl -sS --fail-with-body https://sandbox.precise.ai/api/sql/run \
  -H 'content-type: application/json' \
  -d '{"sql":"SELECT unlisted_measure FROM orders"}'

Recognized personal-field names return HTTP 400 pii_not_accepted. Statements outside the read-only SELECT contract return query_failed. These are recorded refusal codes. The sample above reads the published synthetic catalog.

Across the sandbox use synthetic aggregates. Its field-name filter is a fixture-level input rule. It cannot establish a customer installation's release policy.

Tenant isolation in the control plane

The customer Gateway's cloud grant and the Precise Access database secure different resources. Access migration 004_rls.sql enables and forces PostgreSQL row-level security on 24 tenant-scoped tables. The ordinary application role is a nonowner without BYPASSRLS. Its transaction-local app.tenant_id must match each row for both visibility and writes. A missing or empty setting authorizes no tenant rows. Protocol seller authentication uses a separately granted security-definer lookup for the exact live credential digest. Privileged DB administration and cloud warehouse authorization require separate controls. The PGlite and PostgreSQL 17 integration suites exercised tenant isolation under ordinary roles. The public sample workspace alone cannot demonstrate another customer's deployed database policy.

Keys and scopes

ScopeWhat it allowsWho holds it
precise:readRead the book, the guide, the track record and verified runsScoped per-company key (penv_...)
precise:queryRun read-only SQL or a structured join on the pinned catalogScoped per-company key (penv_...)
precise:runRun Gateway analyses, workflows and holdout sizingScoped per-company key (penv_...)
precise:recordRecord and score Decisions in a workspaceScoped per-company key (penv_...)
Runtime: SandboxStatus: LiveGET /.well-known/oauth-protected-resource
curl -sS --fail-with-body https://sandbox.precise.ai/.well-known/oauth-protected-resource

A per-company workspace key travels as Authorization: Bearer <key>. Any gated sandbox, SQL, Gateway, or MCP request without a valid key answers 401 with a WWW-Authenticate header that points to the metadata above, and the MCP error carries the code workspace_required. Request a private 30-day workspace key at https://sandbox.precise.ai.

Where to go next

↑↓ to move↵ to open

Connect an agent

Precise Sandbox speaks MCP over Streamable HTTP with a per-company workspace key (penv_...). Request a private sandbox key at sandbox.precise.ai.

https://sandbox.precise.ai/api/mcp/<YOUR_SANDBOX_KEY>

Set PRECISE_SANDBOX_KEY to your per-company workspace key (penv_...), then run once in a terminal.

claude mcp add --transport http precise-sandbox https://sandbox.precise.ai/api/mcp --header "Authorization: Bearer $PRECISE_SANDBOX_KEY"