PreciseDocs

Data and measurement

Use campaign delivery, invoices and outcomes to find which audiences, publishers and Deal IDs earn their fees. A randomized comparison against a BAU Control Line can establish the net gain from a buying change. Download the public Parquet files to check the sample numbers in DuckDB.

On this page

What you can do today

CapabilityRuntimeStatus
Query the synthetic book with read-only SQLSandboxLive
Run the 21 exposed Gateway methods and five workflowsSandboxLive
Size an Audience Holdout and check its integritySandboxLive
Reproduce a public sample figure from its Parquet files in DuckDBSandboxLive
Read authorized AWS, Google Cloud, Snowflake or Databricks tables after connectionTenant CloudPreview
Estimate distinct counts and quantiles on the tenant GatewayTenant CloudPreview
Match the synthetic partner data with the public-test workerSandboxPreview
Run the two-owner worker on approved inputs with tenant credentialsTenant CloudPreview

The public sandbox uses the Sample Book · Synthetic Data. For a tenant deployment, your data engineer authorizes the named views, columns and export destination.

Run a query now

This query totals media spend and impressions by format across the sample book.

Runtime: SandboxStatus: LivePOST /api/sql/run
SELECT format,
       ROUND(SUM(media_spend_usd), 2) AS media_spend_usd,
       SUM(impressions) AS impressions
FROM gold_daily_cube
GROUP BY format
ORDER BY media_spend_usd DESC

Observed · Log-only · no holdout. The sample query returns online_video $9,262,672.56 on 947,760,000 impressions, ctv $6,045,887.44 on 335,736,000, and audio $4,543,211.68 on 716,504,000. These are media costs. Supply, DSP and data fees require their own source rows before calculating post-fee return.

FieldWhat it is
run_idThe Gateway run that computed the rows. GET /api/runs/<run_id> returns the stored record
result_digestSHA-256 of the result record. For this deterministic query, identical pinned inputs and settings reproduce the rows. Preserve its digest and run ID; the sandbox lookup is process-local
catalog_digestThe digest of the pinned catalog the query read
engine, methodprecise-gateway/datafusion-56 and dataset/columnar-query@1.0.0

The DuckDB tab on the panel gives a script that reads the same public Parquet files. Cloud connections shows the comparison.

The sample book

The sandbox models a quarter of programmatic buying from 2026-07-01 to 2026-09-30, Eastern time. It holds 84 orders for 18 advertisers across 48 campaigns, $19,851,771.68 of media spend, and 13 Audience Holdouts.

TableRowsWhat it holds
orders84One row per order line, with its booked rate, flight and budget
line_items168DSP line items under an order line, each with its segment, fee and deal
deals10Supply agreements with their contracted floor and any shared cap
segments18Audience segments with their fee and fee structure
tests13One row per Audience Holdout, with its planned split and planned lift
gold_daily_cube32,979The whole book by day: delivery, spend, booked revenue and segment fees
outcomes25,963Retail results by exposure date, line item, seller and holdout arm
invoices251What was billed per order and month, beside what the DSP delivered
wins250,000A systematic sample of won auctions. Multiply by sample_weight to estimate totals across 2,000,000,000 impressions
bid_sample173,181A sample of submitted bids. Weight each row by 1 / sample_rate

The guide lists the type and grain of every column. Invoke the MCP tool get_guide with {"section": "catalog"}, or read the resource precise://catalog.

Query rules on the sandbox

  • One read-only SELECT over the pinned catalog. A standalone VALUES statement is refused.
  • max_rows accepts 1 to 200. SQL text is limited to 20,000 characters.
  • timeout_ms runs from 100 to 120,000.
  • A field name that carries personal data, such as email, ip_address or user_id, returns HTTP 400 with pii_not_accepted.

Limits and errors has the limits and the error codes.

Decide what the evidence supports

EvidenceHow to use it
ForecastCompare the expected net lift and its prediction interval with the fees and opportunity cost of testing.
Observed · Log-only · no holdoutCompare spend, delivery or cost per outcome in the logs. A difference between two sellers can reflect inventory mix.
Holdout-ProvenCheck randomized assignment, BAU delivery, exposure leakage, maturity of outcomes and independent readback of the change. Count the net difference once per eligible measurement window.

A sample holdout assigned 4,516,160 units to treatment and 4,523,200 to control with zero control exposure. That checks assignment integrity. Estimating lift still requires outcomes on both arms. Keep source and evidence separate: a Recorded Replay can reproduce an experiment on synthetic data.

Check the inputs, method and result

↑↓ 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"