Chapter 21 · Data Marts, Domain Data Products, Self-Service Analytics, and Ownership

Self-Service Sandboxes, Certified Data, Promotion, Ownership, and Access Boundaries

Build a sandbox-to-certified promotion path with owners, access classes, dependency evidence, contract hashes, reconciliation tests, and explicit rejection of convention-only promotion.

Intermediate → Advanced145–180 minutesSandbox → certification promotion labPROMO-001 BLOCK · PROMO-002 CERTIFYLast reviewed: September 2026

Learning outcomes

01

Distinguish a sandbox from certified data by enforceable lifecycle and evidence, not naming conventions.

02

Build a promotion checklist that tests metric versions, conformance, reconciliation, ownership, and access boundaries.

03

Reject a plausible sandbox dataset when its shared semantics drift.

04

Repair and certify the same use case without suppressing domain experimentation.

05

Design rollback/deprecation and observability for certified assets.

Continuity and explicit mart-layer addition

Chapter 21 begins from Chapter 20's governed warehouse/semantic truth: 10 current paid lines, 8 orders, 12 units, 820 USD gross revenue, 495 USD cost, and 325 USD gross profit. The canonical fact grain remains one current paid order line. The active semantic contracts remain gross_revenue_usd.v1, active_customers.v1, and period_retention.v1. This chapter does not redefine those facts or metrics. It adds domain delivery surfaces—marts, data products, sandboxes, and certified outputs—whose shared concepts must inherit the governed contracts.

Lab contract

Runtime: Python standard library plus SQLite; generation evidence uses the local runtime reported by the script. Environment: local/in-process, synthetic, and no-cost. Storage: one SQLite file plus JSON evidence; views stand in for dependent marts. Source: the Chapter 20 AtlasMart fact/dimension fixture. Time: warehouse order_date semantics remain UTC and are not silently converted. Currency: governed gross revenue is USD-only. Security: access-class labels are metadata in this lab, not database-enforced authorization; production enforcement belongs in the warehouse/semantic/security stack. History: existing SCD/history semantics are unchanged. Portability: the mart concepts are vendor-neutral; view syntax, catalog metadata, masking, policy enforcement, and materialization are engine-specific.

1. Sandbox freedom and certified trust serve different purposes

A sandbox is an exploratory space where analysts may create temporary transformations and hypotheses. Certified data is a published contract whose owner accepts responsibility for semantics, quality, freshness, security, documentation, and change. Naming a schema prod or adding “certified” to a table name is not certification.

2. Promotion is an evidence gate

Promotion checklist
required promotion evidence[ ] named owner and support path[ ] declared consumer/business decision[ ] declared grain and refresh/freshness contract[ ] dependencies point to governed facts/dimensions/metrics[ ] shared metric version/hash matches registry[ ] control totals reconcile at declared grain[ ] conformance tests pass for shared dimensions[ ] security/access class is reviewed and technically enforceable[ ] lineage and contract hash are recorded[ ] rollback/deprecation path exists[ ] no hidden filters, unit changes, or local redefinitions[ ] sandbox output is reproducible from versioned inputs

Not every organization needs these exact labels, but every promotion system needs equivalent evidence. The gate should be automatable where possible and explicitly reviewed where semantics/security require human judgment.

3. Controlled failure: convention-only promotion

The sandbox marketing table has a named owner and could be renamed into a production schema. Yet the lab deliberately fails three certification checks: metric reconciliation, metric-version pinning, and conformed-customer dependency. The correct outcome is BLOCK, even though the SQL executed successfully.

PROMO-001 evidence
metric_reconciliation  FAIL  observed=665.00; expected=820.00metric_version         FAIL  gross_revenue_usd.v1 hash not pinnedconformed_customer     FAIL  team-local semanticsowner                  PASS  growth-analyticsaccess_class            PASS  marketing-certifiedDECISION: BLOCK

4. Repair without forbidding experimentation

The analyst can keep the 665 USD sandbox as an experiment if it is clearly named and scoped—for example non_sales_channel_paid_amount_experiment. To publish enterprise revenue, the repaired product joins the governed customer dimension and consumes the active revenue contract. The second promotion run passes every check.

PROMO-002 evidence
metric_reconciliation  PASS  observed=820.00; expected=820.00metric_version         PASS  gross_revenue_usd.v1 hash pinnedconformed_customer     PASS  governed dim_customer dependencyowner                  PASS  growth-analyticsaccess_class            PASS  marketing-certifiedDECISION: CERTIFY

5. Ownership is operational responsibility

A certified owner answers: who receives failures, who approves breaking changes, who explains the metric, who reviews access, who communicates incidents, and who retires unused products? Ownership without a support/change process is only a label. Conversely, central platform teams should provide reusable certification tooling so domains are not forced to reinvent checks.

6. Access boundaries: metadata versus enforcement

The lab records finance-certified, marketing-certified, and operations-certified access classes. Those labels do not enforce anything by themselves. Production certification must prove that database roles, semantic policies, row/column filters, exports, service identities, and downstream caches implement the intended boundary. Chapter 22 goes deeper into these mechanisms.

7. Replay, promotion retries, and rollback

Promotion should be idempotent for the same artifact hash and dependency versions. A retry after a network/tool failure must not create a second differently named “certified” object with ambiguous status. Record promotion run ID, artifact/contract hash, test evidence, reviewer, dependency versions, and certification timestamp. Rollback means restoring the prior certified version and marking the failed version withdrawn/deprecated—not silently editing its historical evidence.

8. Production judgment

Sandboxes maximize learning speed; certification minimizes consumer ambiguity. Correctness: certify through semantic/control tests, not task success. Freshness: publish watermarks/SLOs. Security: prove enforcement, not labels. Observability: track promotion, failures, usage, ownership. Cost: stale unused certified tables create refresh/storage debt. Portability: schema/RBAC/catalog primitives vary by platform. Migration: promote new versions alongside old, move consumers, then deprecate.

9. Bridge to Lesson 5

Lesson 5 combines the chapter into one mart strategy: three domains, one shared governed core, domain-specific delivery, a sandbox path, and an acceptance suite that detects drift before certification.

Knowledge check

Check your understanding

  1. Why does owner=marketing not make 665 USD certifiable as revenue?
  2. What is the difference between access metadata and enforcement?
  3. What evidence should survive rollback?
Review the answers

1. Ownership cannot override the shared metric contract.

2. Metadata describes intent; database/semantic/security policies enforce it.

3. Promotion run, hashes, tests, dependencies, certification state, and deprecation/rollback history.

Authoritative references

10. Lab cleanup/reset

Delete atlasmart_ch21_lab (or your configured local output directory) and rerun python ch21_lab.py to recreate a clean deterministic state. No cloud resource or repository file is modified by the lab.

Keep knowledge open

Help the academy stay free and grow.

If these tutorials save you time, a small donation supports new lessons, technical review, diagrams, examples, and long-term maintenance.

ETHEthereum / ERC-20 only
0x716c4Ab160C4B66F31a28AE2448BfF68fc3a2ef0

Send only Ethereum or ERC-20 compatible assets to this address.