Skip to content

Examples

End-to-end scenarios with runnable code — sample Contracts, sample policies, sample workloads, and compliance setups.

This section is being populated. For worked examples available right now, see:

  • Sample policies — a curated library of CEL expressions for common scenarios (PII columns required, write-by-role-only, retention floors, row filters, column masks).
  • Sample Contracts — full Data Contracts binding Meaning + Access + State for a dataset, walked through the draft → review → compile → deploy → active → audit lifecycle.
  • Sample workloads — Iceberg write workloads under Polaris and Nessie, with and without violations, plus Trino reads through the SQL proxy showing identical enforcement.
  • Compliance scenarios — SOC 2 controls mapped to Contracts; HIPAA-flavored retention + access control; PCI scope reduction via detection and the audit chain.
  • AI-agent recipes — the MCP graph.traverse presets (ai_agent_context, impact_analysis, pii_propagation, explain_a_number) under Access enforcement.

Have an example you’d like to contribute? See CONTRIBUTING.md.