FLUID contract schema 0.7.6 — the current PREVIEW version, opened when 0.7.5 was promoted to stable.
🔥 NEW in v0.7.6:
• Declarative packaging modes — a top-level packaging block (plus a per-exposure binding.packaging override) declares per-container ownership for the IaC emit: isolated (this product creates and owns the container) vs shared (a pre-existing, platform-owned pool referenced via an OpenTofu data source), with a per-kind containers override map for hybrid tiers and a pool id for tenancy/cost attribution (RFC-packaging-modes.md).
• Backward compatible with v0.7.5 — every 0.7.5 contract validates as 0.7.6 unchanged; an ABSENT packaging block keeps the legacy byte-identical emit.
{
"fluidVersion": "0.5.7",
"kind": "DataProduct",
"id": "gold.customer.analytics_360_v1",
"name": "Customer 360 Analytics",
"description": "Unified customer profiles with ML-driven insights",
"domain": "Customer Experience",
"tags": [
"customer-data",
"analytics",
"gold-layer"
],
"labels": {
"team": "customer-analytics",
"criticality": "high",
"cost-center": "engineering"
},
"metadata": {
"layer": "Gold",
"owner": {
"team": "customer-analytics",
"email": "customer-analytics@company.com"
},
"businessContext": {
"domain": "Customer Experience",
"subdomain": "Customer Intelligence"
}
},
"exposes": [
{
"exposeId": "customer_profiles",
"title": "Unified Customer Profiles",
"version": "2.1.0",
"kind": "table",
"tags": [
"pii",
"customer-facing",
"real-time"
],
"labels": {
"sensitivity": "high",
"retention": "7-years",
"region": "us-central1"
},
"contract": {
"schema": [
{
"name": "customer_id",
"type": "STRING",
"required": true,
"description": "Unique customer identifier",
"sensitivity": "cleartext",
"tags": [
"identifier",
"primary-key"
],
"labels": {
"business-name": "Customer ID",
"data-category": "identifier"
}
}
]
},
"binding": {
"platform": "gcp",
"format": "bigquery_table",
"location": {
"project": "company-data",
"dataset": "gold_customer",
"table": "profiles_v1"
}
}
}
]
}
Vendor / plugin-namespaced configuration. Each plugin claims a single sub-key (e.g. customScaffold, customCatalog) and validates its own schema there via the fluidbuild.extensionvalidators entry-point.
Additional Properties of any type are allowed.
Type: objectContract schema version. Accepts '0.7.3' (source-aligned data products + acquisition pattern + ingestion engines) or '0.7.4' (adds the MCP output-port gateway + runtime agentPolicy enforcement). 0.7.4 is fully backward-compatible with 0.7.3 — every 0.7.3 contract validates as 0.7.4 unchanged. '0.7.6' is the current preview.
^\d+\.\d+(\.\d+)?$
"0.7.4"
"0.7.3"
Kind of contract. 'MLPipeline' added for basic ML support.
Stable product identifier, e.g. 'gold.hr.employee360v1'.
Must match regular expression:^[A-Za-z0-9_][A-Za-z0-9_.-]*[A-Za-z0-9_]$|^[A-Za-z0-9_]$
Must be at least 1 characters long
Business domain/mesh domain (e.g., 'HR', 'Finance').
Product-level labels for metadata and automation.
{
"team": "customer-analytics",
"criticality": "high",
"cost-center": "engineering",
"retention": "7-years",
"region": "us-central1",
"business-name": "Customer Profiles",
"data-category": "analytical"
}
Each additional property must conform to the following schema
Type: stringLabel values are always strings for consistency and tooling compatibility.
Generation envelope injected by fluid forge / fluid init — records how, when and by which tool/command the contract was generated. Machine-written (not user-authored); additive metadata that does not affect the data product's semantic contract.
Envelope schema version.
Envelope discriminator, e.g. 'ContractMetadata'.
ISO 8601 UTC timestamp of generation.
Tool, version and command that generated the contract.
Data layer label (e.g., Bronze/Silver/Gold). Free-form. When set together with productType, the two MUST be consistent under the canonical mapping (Bronze↔SDP, Silver↔ADP, Gold↔CDP).
NEW in v0.7.3: Data Mesh data-product type. SDP = Source-Aligned Data Product (raw ingestion from external systems; corresponds to Bronze). ADP = Aggregated Data Product (cross-source joined / domain-modelled; corresponds to Silver). CDP = Consumption-Aligned Data Product (analytics- or product-shaped; corresponds to Gold). Either metadata.layer or metadata.productType is sufficient — the validator infers the missing one. When both are present they MUST agree.
NEW in v0.7.3: Data classification label propagated to catalog + access policy enforcement.
NEW in v0.7.3: Feature gates the contract opts into (e.g., 'acquisition' while Bronze acquisition is in beta).
All items must be unique
No Additional ItemsOncall rotation or contact for operational issues.
Business alignment information for data mesh organization.
No Additional PropertiesBusiness domain this product belongs to.
Business subdomain for more granular organization.
Business capability this product supports.
Value stream this product participates in.
Must contain a minimum of 1 items
{
"exposeId": "customer_profiles",
"title": "Customer Profiles Table",
"kind": "table",
"tags": [
"pii",
"customer-facing",
"analytical"
],
"labels": {
"sensitivity": "high",
"retention": "7-years",
"team": "customer-analytics"
},
"contract": {
"schema": [
{
"name": "customer_id",
"type": "STRING",
"required": true,
"sensitivity": "cleartext",
"tags": [
"identifier",
"primary-key"
],
"labels": {
"business-name": "Customer ID",
"data-category": "identifier"
}
}
]
},
"binding": {
"platform": "gcp",
"format": "bigquery_table",
"location": {
"project": "company-data",
"dataset": "customer",
"table": "profiles"
}
}
}
Detailed description of the exposed resource.
Semantic version (semver.org).
Must match regular expression:^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$
Hash of canonical schema/OpenAPI. Used by contract-tests gates.
Must match regular expression:^sha256:[0-9a-fA-F]{64}$
NEW in v0.7.3: Schema evolution policy. strict = fail on any schema change; discoverandfreeze = capture from source on first run, fail thereafter; evolvesafe = accept additive changes; evolveall = accept all changes (cast on type narrow, route failures to DLQ).
Tabular schema (for table/view/file).
No Additional ItemsMust be at least 1 characters long
Column data type. Accepts a canonical FLUID/SQL type name (case-insensitive) or a parameterized form such as decimal(18,4) or varchar(255). The enum lists the canonical bare types; the pattern additionally permits case variants and parameter suffixes. Intentionally generous — it rejects obvious garbage (e.g. MYSTERY_TYPE) while admitting the cross-dialect superset.
(?i)^\s*(string|text|varchar|varchar2|nvarchar|char|nchar|character|clob|int|integer|int2|int4|int8|int16|int32|int64|tinyint|smallint|mediumint|bigint|long|longint|serial|bigserial|float|float4|float8|float32|float64|double|real|double\s+precision|decimal|dec|numeric|number|bignumeric|money|boolean|bool|bit|date|time|datetime|datetime2|smalldatetime|timestamp|timestamptz|timestamp_tz|timestamp_ntz|timestamp_ltz|timestampntz|timestamp\s+with(out)?\s+time\s+zone|interval|year|variant|object|array|struct|map|record|row|json|jsonb|super|binary|varbinary|bytes|blob|bytea|raw|geography|geometry|geom|point|uuid|uniqueidentifier|guid|enum|hll)\s*(\(\s*[0-9A-Za-z_,\s'\"-]*\s*\))?\s*$
Field-level sensitivity classification for improved policy ergonomics.
Semantic meaning (e.g., 'email', 'phone', 'identifier').
Business-friendly name for this field.
Business definition and meaning of this field.
Field-level validation constraints.
No Additional ItemsOpenAPI document URL (for APIs).
Compatibility promise for non-breaking evolution.
Enhanced data quality rules including anomaly detection.
No Additional PropertiesISO-8601 duration (e.g., P1D, PT15M, P2Y6M).
Must match regular expression:^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?$
Simplified SQL-expression data quality rules (alternate form of dq.rules for inline assertions).
No Additional ItemsRule identifier.
SQL or boolean expression that must evaluate to true.
Severity when the rule fails.
Availability percentage (e.g., 99.9%).
Must match regular expression:^(100(\.0+)?|\d{2}(\.\d+)?|\d{1}\d(\.\d+)?)%$
e.g., '0 rows'
Target completeness ratio (0.0 to 1.0).
Value must be greater or equal to 0 and lesser or equal to 1
Acceptable error rate (0.0 to 1.0).
Value must be greater or equal to 0 and lesser or equal to 1
Column-level access control. A column named in any restriction is restricted. 'deny': the principal may not read the columns. 'allow': the columns are readable only by the principals an allow names. A deny beats an allow, and a restriction never grants access: the readers are the expose's readers. Principals are logical and resolve through binding.principals. NEW in v0.7.6 (the field itself is older): fluid apply enforces it. GCP BigQuery: a Data Catalog taxonomy per product and dataset with fine-grained access control, a policy tag per set of restricted columns that share their readers, attached through the table schema's policyTags, and roles/datacatalog.categoryFineGrainedReader for exactly the expose's readers allowed to read them: the accessPolicy read grantees and the expose's own policy.authz.readers (a denied principal gets an access error on the columns). A restriction on an expose with no reader on the binding is refused, as it would lock the columns for everyone. A restriction's tags and labels are written into the policy tag's description; AWS has no place for them. AWS: each governance.lakeFormation grant with SELECT excludes the restricted columns its principal may not read (tablewithcolumns.excludedcolumnnames); a grant's hand-written excludedColumns must agree, and a binding with no Lake Formation grants is refused. fluid verify checks the policy tags and their readers on GCP, and the principals' Lake Formation permissions on AWS.
Logical principal the restriction applies to, written as in accessPolicy (e.g. group:analysts@company.example); binding.principals maps it per cloud.
Columns of this expose's schema.
No Additional Itemsdeny: the principal may not read the columns. allow: only the principals an allow names may read them.
Columns to treat before they land. The DuckDB acquisition runner rewrites each named column inside the write, so the file, S3 object or BigQuery load and the DLQ receive the treated value; quality gates judge the source value first. A treated column lands as a string, so declare it with a string type (string, or VARCHAR under a schemaPolicy that compares source type names). A rule the build cannot apply (an unset salt or key, k_anonymity, a column the stream lacks, a non-string declared type, the incremental cursor) refuses the build rather than landing the column untreated. fluid verify checks every non-null value of a masked column for its strategy's shape, on a local file and, through Athena, on an S3+Glue table. The MCP output-port gateway drops masked columns from what it serves.
hash: lowercase hex SHA-256 of salt || value, deterministic so joins work (64 hex characters). mask: every character but the first params.keepFirst and the last params.keepLast replaced by '*', length preserved. tokenize: HMAC-SHA256 token, 32 hex characters, the token the tokenizepii preLand hook makes. encrypt: AES-GCM, written as 'aesgcm:v1:' + base64url(nonce || ciphertext || tag) with the column name as associated data; reversible with the key, not deterministic. kanonymity: accepted by the schema but refused at landing: it is a property of a whole table over its quasi-identifiers, not of one value.
Strategy parameters. The runner accepts exactly these keys and refuses any other, including a literal salt or key: secrets come only from the environment, never the contract, which is published with the plan, the bundle and the Glue table's fluid_contract parameter. Contracts on 0.7.5 and earlier may use the same keys; their schemas leave params untyped, and the runner checks them at build time.
NEW in v0.7.6: hash only. The environment variable holding the salt, at least 16 bytes. Unset or empty, the build is refused: an unsalted SHA-256 of a phone number is reversed by enumerating the numbering plan.
Must match regular expression:^[A-Z_][A-Z0-9_]{0,127}$
NEW in v0.7.6: tokenize and encrypt. The environment variable holding the key. tokenize defaults to FLUIDPIITOKENIZATIONKEY and needs at least 32 bytes; encrypt defaults to FLUIDPIIENCRYPTIONSECRET_KEY and needs the base64 of a 16, 24 or 32-byte AES key (openssl rand -base64 32). Unset or empty, the build is refused.
Must match regular expression:^[A-Z_][A-Z0-9_]{0,127}$
NEW in v0.7.6: mask only. Leading characters left as they are.
Value must be greater or equal to 0 and lesser or equal to 64
NEW in v0.7.6: mask only. Trailing characters left as they are, so +46701234567 lands as ********4567. A value no longer than keepFirst + keepLast is masked entirely.
Value must be greater or equal to 0 and lesser or equal to 64
Additional Properties of any type are allowed.
Type: objectProvider-specific predicate
NEW in v0.7.1: AI/LLM usage governance - controls which AI models can consume this data and for what purposes.
No Additional PropertiesWhitelist of AI models permitted to consume this data. Examples: ['gpt-4', 'claude-3-opus', 'gemini-pro']. Empty array = no AI access.
All items must be unique
No Additional Items^[a-z0-9][a-z0-9-_.]*[a-z0-9]$|^[a-z0-9]$
"gpt-4"
"claude-3-opus"
"claude-3-sonnet"
"gemini-pro"
"gemini-ultra"
"llama-3"
"mixtral-8x7b"
Blacklist of AI models explicitly prohibited from consuming this data. Takes precedence over allowedModels.
All items must be unique
No Additional ItemsMaximum tokens per AI request. Prevents excessive data exposure in single queries.
Value must be greater or equal to 1
4096
8192
16384
Daily token limit for AI consumption. Enforces usage quotas.
Value must be greater or equal to 1
Permitted AI use cases. Controls whether data can be used for training, inference, reasoning, etc.
All items must be unique
No Additional Items[
"inference",
"reasoning",
"summarization"
]
[
"search",
"qa",
"rag"
]
Prohibited AI use cases. Example: Allow reporting but deny model training.
All items must be unique
No Additional Items[
"training",
"fine_tuning"
]
Whether AI agents can use this data for multi-step reasoning/chain-of-thought. False = simple retrieval only.
Whether AI systems can cache/store this data. False = ephemeral processing only.
Data retention requirements for AI systems consuming this data.
Maximum days AI system can retain this data. 0 = no retention allowed.
Value must be greater or equal to 0
Whether AI system must delete data after use.
Whether AI consumption must be logged/audited.
Free-text description of allowed purposes. Example: 'Customer service chatbot only, not for marketing'.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"gcp"
^(alias/|arn:)
Each additional property must conform to the following schema
^(user|group|serviceAccount|domain):.+$
^(user|group|serviceAccount|domain):.+$
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"aws"
^projects/
Each additional property must conform to the following schema
^arn:aws[a-z0-9-]*:iam::
^arn:aws[a-z0-9-]*:iam::
Target platform. NEW in v0.7.5: 'pgvector' for the vector/embeddings output port (pgvector-on-PostgreSQL RAG target — emits the embeddings table + ANN index DDL for the ai-embeddable columns). NEW in v0.7.5: 'confluent' for the Confluent Cloud Tableflow managed Kafka→Iceberg emitter. NEW in v0.7.4: 'postgres' for the MCP output-port PostgreSQL driver (AWS Athena uses platform 'aws').
Binding format. NEW in v0.7.5: 'pgvectortable' — a pgvector embeddings table target for the vector output port. NEW in v0.7.4: 'postgrestable' (PostgreSQL driver), 'athenatable' / 'gluetable' (AWS Athena driver) for the MCP output port.
Apache Iceberg table format configuration
No Additional PropertiesIceberg table format version
Underlying file format for data files
Partition transformation specifications
No Additional ItemsPartition field name
Source column for partitioning
Partition transform function
Number of buckets (for bucket transform)
Truncate width (for truncate transform)
Sort order specifications for data files
No Additional ItemsColumn to sort by
Sort direction
NULL value ordering
Iceberg table properties
Each additional property must conform to the following schema
Type: stringNEW in v0.7.5: vector / embeddings output-port configuration (platform 'pgvector', format 'pgvectortable'). Consumed by fluidbuild.output_ports.vector to emit the pgvector embeddings-table + ANN-index DDL and a RAG provenance manifest for the schema's ai-embeddable columns.
No Additional PropertiesEmbedding vector width (e.g. 1536 for OpenAI text-embedding-3-small, 1024 for Cohere embed-english-light). Maps to the pgvector column type vector(<dimensions>).
Value must be greater or equal to 1 and lesser or equal to 16000
Provenance: the embedding model that produces the vectors (e.g. 'text-embedding-3-small'). Recorded in the RAG manifest and the embeddings-table's embedding_model column so a retriever can verify model parity.
pgvector column type: 'vector' (float32, up to 2000 dims) or 'halfvec' (float16, half the storage, up to 4000 dims).
ANN index built on the embedding column. 'hnsw' (higher recall / lower query latency, buildable before data lands), 'ivfflat' (lower build cost, needs data first), or 'none' (no index — exact search only).
Distance function the index optimises for → pgvector operator class: cosine→vectorcosineops, l2→vectorl2ops, innerproduct→vectoripops, l1→vectorl1_ops.
Target embeddings table name. Defaults to '<exposeId>_embeddings' when omitted.
Provenance: the source primary-key column that ties each embedding row back to its origin row (written to the embeddings-table's source_key column). Enables update/delete propagation from the source product to the vector store.
HNSW index tuning (used when indexType is 'hnsw').
No Additional PropertiesMax bi-directional links per node (pgvector default 16).
Value must be greater or equal to 1
Build-time dynamic candidate-list size (pgvector default 64).
Value must be greater or equal to 1
IVFFlat index tuning (used when indexType is 'ivfflat').
No Additional PropertiesNumber of inverted lists (pgvector guidance: rows/1000 for < 1M rows).
Value must be greater or equal to 1
Provider-native addressing with tightened structure for better interop.
No Additional PropertiesCloud account ID
GCP project ID
BigQuery dataset or database name
Database name
Schema name
Table name
Storage bucket name
File or object path
API gateway endpoint
Base URL for API endpoints
Pub/Sub or Kafka topic name
Pub/Sub subscription name
Cloud region
Cloud zone
NEW in v0.7.5: Confluent Cloud environment id (env-xxxxx) for the Tableflow emitter.
NEW in v0.7.5: Confluent Cloud Kafka cluster id (lkc-xxxxx) the Tableflow topic belongs to.
NEW in v0.7.5: AWS Kinesis Data Stream name — maps to awskinesisstream in the streaming IaC emitter.
NEW in v0.7.5: Amazon Redshift Serverless namespace name — maps to awsredshiftserverlessnamespace.
NEW in v0.7.5: Amazon Redshift Serverless workgroup name — maps to awsredshiftserverlessworkgroup.
NEW in v0.7.5: ARN of the IAM role attached to the Redshift Serverless namespace / used by the redshift-data CREATE EXTERNAL SCHEMA bridge.
NEW in v0.7.5: Redshift external (Spectrum) schema name created over a Glue database via the redshift-data CREATE EXTERNAL SCHEMA bridge.
NEW in v0.7.5: Glue Data Catalog database that backs the Redshift external schema.
NEW in v0.7.5: ARN of the pre-created AWS IAM role Confluent Tableflow assumes (byobaws). Its trust policy is updated post-apply with the provider integration's externalid (two-phase IAM).
NEW in v0.7.5: Iceberg catalog kind/profile selector — maps to iceberg.catalog.type (e.g. glue, rest, nessie, hive). REST-fronted catalogs (polaris / unity / snowflake open catalog) map to 'rest'. Consumed by providers/icebergcatalog.py and the streaming-sink validator.
NEW in v0.7.5: Iceberg warehouse — the canonical Iceberg REST 'warehouse' property (maps to iceberg.catalog.warehouse): an object-store URI (s3://|gs://|abfss://) for object-store catalogs, or the catalog/warehouse name for a REST catalog.
NEW in v0.7.5: REST Iceberg catalog endpoint URL — the canonical Iceberg REST 'uri' property (maps to iceberg.catalog.uri).
NEW in v0.7.5: Iceberg partition columns — a FLUID abstraction over the Iceberg PARTITIONED BY / PartitionSpec (maps to iceberg.tables.default-partition-by). On a gcp BigQuery table with exposes[].lifecycle.expire: true (fluid-schema 0.7.6), one DATE, TIMESTAMP or DATETIME column to partition by (time_partitioning.field); without it the table is partitioned by ingestion time. With a column, retention counts from the date in that column, not from landing: BigQuery deletes a partition retention after its date, so a backfill of older rows is deleted at once. Leave it out for the S3 rule's semantics (age since written).
Provider-specific binding properties (e.g., cluster_by, comment for Snowflake).
Additional Properties of any type are allowed.
Type: objectPer-resource governance: registerLocation, principal grants, tag associations, row/column filters. Account-wide governance (admins, tag definitions) lives at the contract top-level governance block.
No Additional PropertiesPer-resource LF settings: location registration, principal grants, LF-tag associations, row/column filters. Applies only to formats backed by S3 + Glue catalog (iceberg/parquet/csv/json/avro/orc/delta).
No Additional PropertiesWhen true, emit awslakeformationresource that registers the binding's S3 path with Lake Formation. Required before LF can manage access to objects under that path.
NEW in v0.7.6: Which grants[] principals get a statement in the awss3bucketpolicy emitted beside the grants (s3:ListBucket and s3:GetBucketLocation on the bucket, s3:GetObject under location.path). A statement lets its principal read the objects straight from S3, which skips Lake Formation's column, row and cell filters and its revocations. 'cross-account' (the default): only principals whose ARN names an AWS account other than the one running the apply, decided at plan time against the caller identity; same-account grantees get no statement, since on a registered location Lake Formation vends them credentials. 'none': no bucket policy at all; the tightest setting when the location is registered (registerLocation) and every reader, cross-account ones included, queries through a Lake Formation integrated engine, or when the bucket policy is managed elsewhere. 'all-grantees': every grantee, same-account included, which is the output before this field existed and reopens the direct S3 read path. An emitted awss3bucketpolicy is authoritative: it replaces every other statement on the bucket. When no grantee is left none is emitted.
Principal-based LF grants on this exposure's database/table. Each entry maps a principal to a permission set (and optional column projection). Emitted as awslakeformationpermissions resources. Field idiom adapted from ODCS v3 roles[] (principal + access-type), bound to IAM ARNs since LF is cloud-specific.
No Additional ItemsIAM principal ARN (role or user) receiving the grant.
Must match regular expression:^arn:aws[a-z0-9-]*:iam::
LF permissions granted. Valid values per the hashicorp/aws awslakeformationpermissions resource.
Must contain a minimum of 1 items
All items must be unique
No Additional ItemsSubset of permissions the principal can re-grant. Maps to awslakeformationpermissions.permissionswithgrant_option.
All items must be unique
No Additional ItemsOptional column-level restriction. When set, the grant is emitted against awslakeformationpermissions.tablewithcolumns instead of .table, allowing the principal to read only the listed columns.
All items must be unique
No Additional ItemsOpposite of columns: every column EXCEPT these is granted. Maps to tablewithcolumns.excludedcolumnnames. Mutually exclusive with columns.
All items must be unique
No Additional ItemsRow-level (and optionally column-level) filter applied to all reads of this table via LF. Emitted as awslakeformationdatacellsfilter. The filter must then be granted to principals via grants[].permissions including SELECT — LF enforces both layers.
No Additional PropertiesFilter name (must be unique per table).
PartiQL-flavoured row predicate. ALL lets every row through (use when only column filtering is intended).
Columns visible through the filter. Mutually exclusive with allColumns / excludedColumnNames.
All items must be unique
No Additional ItemsColumns hidden through the filter (everything else is visible).
All items must be unique
No Additional ItemsConvenience for the LF column-wildcard form (every column visible). When true, columnNames / excludedColumnNames must be omitted.
NEW in v0.7.6: Per-exposure packaging override — key-wise precedence over the contract-wide top-level packaging block (binding.packaging > packaging > absent-legacy).
NEW in v0.7.6: Blanket ownership mode for every container kind. Default when the block is present: 'isolated'. Per-kind exceptions go in containers.
NEW in v0.7.6: Pool id of the platform-owned tenant pool this product writes into. REQUIRED (enforced by the resolver) whenever any container resolves 'shared' — a pool must be addressable. Propagated as the fluid_pool label/tag for cost attribution.
Must be at least 1 characters long
NEW in v0.7.6: Optional path to the platform team's pool manifest file; snapshotted into the bundle at stage 1 so bundleDigest covers it (any pool-file edit invalidates downstream plans).
Must be at least 1 characters long
NEW in v0.7.6: Per-container-kind ownership overrides — each key wins over mode for that kind, yielding hybrid tiers. Kind↔platform mapping: bucket → awss3bucket / googlestoragebucket; database → snowflakedatabase AND awsgluecatalogdatabase; dataset → googlebigquerydataset; schema → snowflakeschema; warehouse → snowflakewarehouse; cluster → Confluent environment/cluster (v1: shared only).
NEW in v0.7.6: Ownership of the object-store bucket (awss3bucket / googlestoragebucket).
NEW in v0.7.6: Ownership of the database container — covers Snowflake database AND AWS glue_database.
NEW in v0.7.6: Ownership of the BigQuery dataset (googlebigquerydataset).
Same definition as bucketNEW in v0.7.6: Ownership of the Snowflake schema (snowflake_schema).
Same definition as bucketNEW in v0.7.6: Ownership of the Snowflake warehouse (snowflake_warehouse) — isolated gives per-product cost attribution.
Same definition as bucketNEW in v0.7.6: Ownership of the Confluent environment/cluster. v1 accepts 'shared' only — dedicated-cluster provisioning is not yet supported (the resolver rejects 'isolated').
Same definition as bucketNEW in v0.7.6: Encryption at rest for an AWS S3 binding or a GCP BigQuery binding. Absent: nothing is emitted, and the cloud's default applies: SSE-S3 for new S3 objects, Google-managed keys for BigQuery.
No Additional PropertiesNEW in v0.7.6: The KMS key the bucket's objects are encrypted with (SSE-KMS with an S3 Bucket Key). 'product' (the default): fluid apply creates a customer managed key for each bucket this product owns (awskmskey, rotation on, alias alias/fluid/<contract id>/<bucket>) and makes it the bucket's default encryption (awss3bucketserversideencryptionconfiguration). Its key policy lets the account's IAM policies decide who may use it (the KMS default statement for the account root) and, when the binding carries governance.lakeFormation, lets the Lake Formation service-linked role AWSServiceRoleForLakeFormationDataAccess encrypt and decrypt, matched by aws:PrincipalArn so the role need not exist yet. A principal querying through Athena with credentials Lake Formation vends then needs no KMS permission of its own; a grantee in another account that the bucket policy lets read the objects directly (governance.lakeFormation.bucketPolicy) is also allowed kms:Decrypt, through S3 only. The writer (the identity the build runs as) needs kms:GenerateDataKey and kms:Decrypt from IAM. tofu destroy deletes the alias and schedules the key for deletion after 7 days, the minimum KMS allows; kms:CancelKeyDeletion recovers it until then. Dropping the block, or naming another key, removes the product key while the bucket keeps the objects encrypted under it, which become unreadable once the deletion window ends unless they are rewritten or the deletion is cancelled; fluid apply refuses that plan without --allow-data-loss. On a shared (pool) bucket the bucket's default encryption is the pool owner's, so 'product' is refused there. 'alias/<name>' or a key or alias ARN: an existing key, looked up at plan time (data awskmskey, so the identity running fluid apply needs kms:DescribeKey on it) and made the default encryption of a bucket this product owns by its key ARN, since S3 resolves an alias in the account of whoever writes; the plan fails unless the key is Enabled and a symmetric encryption key (SYMMETRICDEFAULT). On a pool bucket it is only checked. Its key policy is its owner's, and must let the Lake Formation role use it when the location is registered: an AWS managed key cannot be used with that role, so alias/aws/s3 is refused with registerLocation, and the plan fails for any key that is not customer managed. 'none': nothing is emitted. fluid verify checks that the key is Enabled and that the objects under the binding's prefix are SSE-KMS with it. On a gcp binding (fluid-schema 0.7.6, BigQuery tables): 'product' creates a Cloud KMS key ring and crypto key for each dataset this product writes (googlekmskeyring fluid-<contract id>-<dataset> and googlekmscryptokey 'bigquery', in the dataset's location, EU and US mapping to the europe and us key locations, rotated every 90 days), grants the project's BigQuery service agent roles/cloudkms.cryptoKeyEncrypterDecrypter on it, and makes it the dataset's defaultencryptionconfiguration and the table's encryptionconfiguration. The project must have the Cloud KMS API (cloudkms.googleapis.com) enabled. A key ring and key cannot be deleted on GCP: tofu destroy removes them from state and schedules the key's versions for destruction (30 days by default), and a later apply adopts the same names. 'projects/<p>/locations/<l>/keyRings/<r>/cryptoKeys/<k>': an existing key in the dataset's location, used as given; its owner grants the BigQuery service agent. 'none': Google-managed keys. An alias/... or arn:... value is refused on a gcp binding, and a Cloud KMS name on an aws binding. Adding a key to a table that exists replaces the table (BigQuery cannot re-key it in place), so fluid apply refuses that plan without --allow-data-loss; the next build lands the data again. fluid verify checks kmsKeyName on the dataset and the table.
^alias/[A-Za-z0-9/_-]{1,250}$
^arn:aws[a-z-]*:kms:[a-z0-9-]+:[0-9]{12}:(key|alias)/[A-Za-z0-9/_-]{1,250}$
^projects/[a-z0-9.:-]{1,100}/locations/[a-z0-9-]{1,63}/keyRings/[A-Za-z0-9_-]{1,63}/cryptoKeys/[A-Za-z0-9_-]{1,63}$
NEW in v0.7.6: Maps the contract's LOGICAL principals (accessPolicy.grants[].principal and exposes[].policy.authz.columnRestrictions[].principal, keyed exactly as the contract writes them) to the identities they stand for on this binding's platform, so the base contract stays cloud-neutral and each environment's overlay binds it. On gcp an identity is an IAM member (user:, group:, serviceAccount: or domain:); on aws an IAM principal ARN. A value is one identity or a list; [] says the principal has no identity on this cloud, and nothing is granted to it there. When the block is present, every principal the contract names for this expose must be a key: an unmapped one is refused, never emitted as written. Without the block the principals are used as written, except that a GCP principal in a reserved top-level domain (.example, .test, .invalid, .localhost) is refused as a placeholder. Modelled on ODCS v3's roles[] bound per server (servers[].roles) and on dbt grants resolved per target.
Each additional property must conform to the following schema
Must be at least 1 characters long
All items must be unique
No Additional ItemsMust be at least 1 characters long
NEW in v0.7.6: An expose's lifecycle. The same fields as the contract-root lifecycle, plus expire, which is only meaningful where there is storage to expire.
Unified lifecycle state vocabulary.
How long this expose's data is kept (ISO-8601 duration, e.g. P30D, P7Y). A declaration unless expire is true. With expire: true on an AWS S3 binding, fluid apply expires the objects under the binding's prefix this long after they are written; on a GCP BigQuery table it deletes each daily partition this long after its day ends. Years and months are counted as 365 and 30 days, and a part of a day rounds up to a whole one.
NEW in v0.7.6: Delete stored data once it is older than retention. Default false, so a contract that declares a retention period does not start deleting data when forge-cli is upgraded. Honoured by the AWS emitter on an S3 binding and by the GCP emitter on a BigQuery table; on a gcp binding that is not a BigQuery table (GCS, Pub/Sub, Iceberg storage) it is refused rather than dropped. AWS: fluid apply writes one rule per expose into the bucket's awss3bucketlifecycleconfiguration, filtered to the binding's prefix (location.path, else {database}/{table}/; a binding with neither is refused, so no rule ever expires a whole bucket). The rule expires the current version retention after it is written, removes a noncurrent version (on a versioning-enabled bucket) one day after it stops being current, and aborts an incomplete multipart upload after 7 days or the retention period if shorter. The lifecycle configuration is AUTHORITATIVE for the whole bucket: S3 keeps one per bucket, so rules that fluid apply did not write are replaced. It is therefore written only for a bucket this product owns; on a shared (pool) bucket (packaging) nothing is written, the pool's owner must hold the rule, and fluid verify checks that an enabled rule covering the prefix expires objects after exactly this period. Objects already older than the period when the rule is first applied are expired on S3's next lifecycle run, typically within a day. Removing expire later deletes the lifecycle configuration, which fluid apply refuses without --allow-data-loss (it refuses every plan that removes a resource holding data or policy; removing an access grant or a policy tag is a revocation and is not gated); tofu destroy deletes it. GCP (fluid-schema 0.7.6): the BigQuery table is partitioned by day (timepartitioning type DAY, on binding.location.partitionBy when it names one date or timestamp column, else by ingestion time) with expirationms = retention in days, so BigQuery deletes each partition that long after its day ends. BigQuery counts from the partition's date, not from when its rows were written: by ingestion time (no partitionBy, the default and the S3 rule's semantics) no row is deleted sooner than retention after it landed; with partitionBy, retention is the age of the date in that column, so a backfill of rows whose date is already older than retention lands in expired partitions and is deleted at once. It is never a whole-table expiration, which would delete the product. BigQuery cannot partition a table that exists, so adding expire to a live table replaces it: fluid apply refuses that plan without --allow-data-loss, and the next build lands the data again. A later change of retention is an in-place update. Removing expire from a live table removes the partitioning's replacement trigger, which fluid apply also refuses without --allow-data-loss; BigQuery cannot un-partition a table, so to keep data longer set a longer retention instead. fluid verify checks the live table's partition expiration.
Reference to replacement data product or expose.
Human/machine-readable SLI check description
Default SLI trio (freshness, completeness, latency) by kind.
No Additional PropertiesEnable auto-generation of default SLIs.
Default freshness SLI configuration.
No Additional PropertiesFreshness threshold (auto-set by kind: table=PT6H, stream=PT1M, api=PT1S)
Same definition as windowDefault completeness SLI configuration.
No Additional PropertiesCompleteness threshold (auto-set by kind: table=0.95, stream=0.99)
Value must be greater or equal to 0 and lesser or equal to 1
Default latency SLI configuration.
No Additional PropertiesP95 latency threshold (auto-set by kind: api=PT200MS, table=PT5S, stream=PT100MS)
Same definition as windowLatency percentile to measure.
Value must be greater or equal to 0 and lesser or equal to 100
Alert dispatcher config consumed by the acquisition Alerter (DLQ overflow, schema-fingerprint changes, anomaly signals).
No Additional PropertiesFor kind=file: NDJSON sink path (env-vars expanded).
For kind=webhook: Slack-compatible incoming webhook URL. Validated against the SSRF guard at construction time.
NEW in v0.7.2: Semantic model definition mapping physical columns to business concepts. Defines entities, measures, dimensions, and metrics for agent-consumable business logic. Eliminates semantic hallucination by providing machine-readable KPI definitions. Compatible with dbt MetricFlow, Snowflake Semantic Views, and OSI-aligned formats.
No Additional Properties{
"name": "orders_revenue_model",
"description": "Canonical semantic model for revenue analytics",
"defaultAggTimeDimension": "order_date",
"entities": [
{
"name": "order",
"type": "primary",
"expr": "order_id"
},
{
"name": "customer",
"type": "foreign",
"expr": "customer_id"
}
],
"measures": [
{
"name": "order_amount",
"agg": "sum",
"expr": "amount",
"description": "Sum of all order amounts"
},
{
"name": "order_count",
"agg": "count_distinct",
"expr": "order_id",
"createMetric": true
}
],
"dimensions": [
{
"name": "order_date",
"type": "time",
"expr": "completed_at",
"typeParams": {
"timeGranularity": "day"
}
},
{
"name": "region",
"type": "categorical"
}
],
"metrics": [
{
"name": "net_revenue",
"description": "GAAP-compliant net revenue: completed orders minus discounts, excluding refunds",
"type": "derived",
"inputMetrics": [
"gross_revenue",
"total_discounts"
],
"expr": "gross_revenue - total_discounts",
"owner": "finance-data@company.com"
},
{
"name": "gross_revenue",
"description": "Total value of completed orders",
"type": "simple",
"measure": "order_amount",
"filter": "status = 'completed'"
}
]
}
Human-readable name for this semantic model.
Business context explaining what this semantic model represents.
Default time dimension used for measure aggregation. Can be overridden per-measure.
Join keys with type annotations. Entities connect this table to others in the semantic graph.
No Additional ItemsEntity name (e.g., 'order', 'customer').
Entity key type: primary (unique, complete), foreign (references another table), unique (unique, possibly partial), natural (real-world identifier).
Column expression. Defaults to entity name if omitted.
Aggregatable column expressions. Measures are the atomic building blocks from which metrics are composed.
No Additional ItemsMeasure name (e.g., 'totalamount', 'ordercount').
Aggregation function applied to the expression.
SQL expression to aggregate. Defaults to measure name if omitted.
Aggregation parameters (mirrors dbt-semantic-interfaces agg_params). Currently used by agg=percentile.
No Additional PropertiesPercentile in [0, 1] for agg=percentile (0.5 = median). Consumers default to 0.5 when omitted.
Value must be greater or equal to 0 and lesser or equal to 1
Use the discrete percentile (PERCENTILEDISC / usediscrete_percentile) instead of continuous interpolation.
Override the model-level default time dimension for this measure.
Dimension over which this measure cannot be naively aggregated (e.g., account balances).
No Additional PropertiesWhich value to pick when the non-additive dimension is present.
If true, automatically create a simple metric from this measure.
Categorical and time-based grouping axes. Dimensions define how data can be sliced in queries.
No Additional ItemsDimension name (e.g., 'orderdate', 'region', 'productcategory').
Dimension type: categorical (text/enum grouping) or time (temporal axis).
SQL expression. Defaults to dimension name if omitted.
Type-specific parameters.
No Additional PropertiesDefault time granularity for this dimension.
Composable KPI definitions built from measures. Metrics are the named business calculations that agents and tools resolve.
No Additional ItemsMetric name (e.g., 'netrevenue', 'customerchurn_rate').
Business definition of this metric.
Metric type: simple (single measure + filter), derived (expression over other metrics), ratio (numerator/denominator).
Reference to a measure name (for simple metrics).
SQL WHERE clause filter (e.g., "status = 'completed' AND is_refunded = FALSE").
References to other metric names (for derived/ratio metrics).
No Additional ItemsMathematical expression combining input metrics (for derived metrics).
Numerator metric name (for ratio metrics).
Denominator metric name (for ratio metrics).
Business owner of this metric definition.
AWS Glue crawler configuration for auto-discovery of schema from S3 paths.
Glue crawler name.
IAM role ARN for the crawler.
Cron schedule expression (e.g., 'cron(0 6 * * ? *)').
Custom classifier names to apply.
No Additional ItemsPolicy for schema changes detected by the crawler.
AWS Glue Iceberg table management configuration (snapshots, compaction).
Underlying file format for Iceberg data files.
Snapshot retention policy.
Maximum age of snapshots in milliseconds.
Minimum number of snapshots to retain.
Iceberg compaction settings.
Target file size in MB after compaction.
NEW in v0.7.4: Declares this expose as agent-consumable over MCP, with per-expose overrides for the consumer-side output-port server (fluid mcp output-port serve). Its presence opts the expose into the Fluid MCP gateway, where policy.agentPolicy.allowedModels / allowedUseCases are enforced at every read.
Hard cap for the sample MCP tool. Defends against an over-curious agent asking for petabyte-scale row counts. Default: 100.
Value must be greater or equal to 1
Surfaced on the describe tool so consumer agents can declare downstream handling. Advisory; the real gate is policy.agentPolicy.
Upstream data product identifier (e.g., 'silver.hr.people_v2'). Renamed from 'provider' for clarity.
Same definition as idSemver range (e.g., ^1.2, ~1.4, >=1.0.0). Not strictly validated by regex; tooling enforces.
Minimum completeness expectation.
Value must be greater or equal to 0 and lesser or equal to 1
Business purpose for consuming this data.
Cross-mesh only. Id of the federated workspace that owns this upstream, as declared in federation/upstreams.yaml. Set it when the upstream lives in another mesh rather than this workspace; omit it for a local upstream, which is resolved by walking the workspace.
Must be at least 1 characters long
Cross-mesh only. The contract digest this product was composed against, as sha256:<64 hex>. fluid apply re-fetches the upstream's live digest and compares: a mismatch means the upstream changed since composition. Required whenever upstreamWorkspace is set.
^sha256:[0-9a-f]{64}$
NEW in v0.5.5: Multiple build configurations for multi-modal data products (e.g., batch + streaming, SQL + ML).
No Additional ItemsEnhanced build configuration supporting v0.4.0 patterns with v0.5.5 improvements.
No Additional PropertiesIf the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"hybrid-reference"
Hybrid-reference pattern from v0.4.0 (dbt-style).
No Additional Propertiesdbt profile target to run against. Forwarded to dbt as --target <name> by the build runner (allowlisted against the profile's real targets; falls back to the profile default when the requested target is unavailable).
dbt node selector(s) forwarded to dbt --select. Accepts a single selector string or an array of selector strings; the build runner drops flag-like values (those starting with '-').
Legacy alias for select (dbt's older --models flag). Same string-or-array shape; select takes precedence when both are set.
Additional Properties of any type are allowed.
Type: objectEach additional property must conform to the following schema
Type: enum (of string)Key-value labels for structured metadata and automation. Consistent pattern used throughout FLUID objects.
Same definition as labelsIf the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"embedded-logic"
Embedded logic pattern from v0.4.0.
No Additional PropertiesAdditional Properties of any type are allowed.
Type: objectKey-value labels for structured metadata and automation. Consistent pattern used throughout FLUID objects.
Same definition as labelsIf the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"multi-stage"
NEW in v0.5.5: Multi-stage orchestration pattern.
No Additional PropertiesUnified identifier pattern: starts/ends with alphanumeric or underscore, allows dots and hyphens in middle. Both casing conventions accepted (snake_case / dotted lowercase / PascalCase / UPPER) so existing catalog ids round-trip unchanged.
Same definition as idKey-value labels for structured metadata and automation. Consistent pattern used throughout FLUID objects.
Same definition as labelsValue must be greater or equal to 1
Key-value labels for structured metadata and automation. Consistent pattern used throughout FLUID objects.
Same definition as labelsIf the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"acquisition"
NEW in v0.7.3: Source-aligned acquisition pattern. The build ingests data from an external system (no transformation). Engine ∈ {duckdb, airbyte, meltano, dlt, kafka-connect, debezium}.
No Additional PropertiesExternal source system specification.
No Additional PropertiesSource system kind: filesystem, postgres, mysql, sqlite, http, salesforce, stripe, github, kafka, etc. Engine-specific catalog of supported kinds.
Connection details. Use ${VAR} placeholders for env values; use secretRef for credentials. Inline secrets are forbidden by validator.
Allows ${ENV_VAR} placeholders that resolve to an integer at runtime.
Reference to a secret in the configured backend (vault://, aws://, gcp://, azure://, env://).
Must match regular expression:^[a-z][a-z0-9_+.-]*://.+
NEW in v0.7.3: Username/principal for SQL- or REST-style sources. Required by most database drivers (Postgres/MySQL/Oracle/etc.) — without it the underlying client falls back to the OS-user identity and typically fails authentication. Goes alongside secretRef (or an inline password) for the credential pair.
NEW in v0.7.3: Default schema/namespace within the source database to read from. Maps to engine-specific config: dlt sqldatabase schema=, Meltano tap-postgres filterschemas=[], Airbyte source-postgres schemas=[], Debezium schema.include.list, Kafka Connect JDBC schema.pattern. Use schemas (array) to scope to multiple schemas at once.
NEW in v0.7.3: Multi-schema variant of schema. When both are set, schemas wins and schema is treated as a deprecated alias. Engines that don't natively support multi-schema reads will iterate the list.
All items must be unique
No Additional ItemsAdditional Properties of any type are allowed.
Type: objectColumn used for incremental cursor (e.g., updated_at, SystemModstamp).
List of streams/tables/objects to ingest.
No Additional ItemsAdditional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: objectDestination format for ingested data. binding.platform on the expose remains the source of truth for where; sink.format describes how.
No Additional PropertiesDelivery semantics + idempotency + DLQ configuration.
No Additional PropertiesTemplate for the idempotency key. Default: {runid}:{stream}:{recordpk}
Value must be greater or equal to 0
Schema evolution behavior. Stricter-wins between policy and per-change overrides.
No Additional PropertiesPre-land hook chain - runs on each batch before destination write.
No Additional ItemsPre-land quality gates + anomaly signals.
No Additional PropertiesAdditional Properties of any type are allowed.
Type: objectCost tracking + budget enforcement.
No Additional PropertiesValue must be greater or equal to 0
Human-readable size with unit suffix (e.g., '50GB', '500MB').
Value must be greater or equal to 0
Additional Properties of any type are allowed.
Type: objectCatalog auto-registration on first apply.
No Additional PropertiesSingle-flight concurrency control.
No Additional PropertiesAdditional Properties of any type are allowed.
Type: objectConnector image supply-chain verification.
No Additional PropertiesEngine deployment mode and target.
No Additional PropertiesURL for bring-your-own mode.
Additional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: objectValue must be greater or equal to 1
Confluent-compatible Schema Registry config. When url is set, the runner injects key.converter/value.converter for Avro into the emitted connector config.
Schema Registry HTTP endpoint, e.g. http://schema-registry:8081
Additional Properties of any type are allowed.
Type: objectOpt-in: derive the Iceberg sink connector config. Defaults OFF when a hand-written sinkconnectorconfig is present (RFC §6.2).
Explicit topics the derived Iceberg sink consumes (else derived from source streams).
No Additional ItemsOperator escape hatch: connector config keys merged LAST over the derived Iceberg sink config.
Each additional property must conform to the following schema
Type: stringOptional Iceberg streaming-sink tuning (RFC §6.2). All keys optional.
No Additional PropertiesValue must be greater or equal to 1
Additional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: objectBuild identifier for multi-build scenarios (e.g., 'batch-processing', 'ml-training').
Same definition as idHuman-readable description of this build configuration.
Build pattern: hybrid-reference (dbt-style), embedded-logic (raw SQL/code), multi-stage (complex pipelines), or acquisition (source-aligned ingestion from external systems).
Build/ingestion engine. Transformation engines: dbt, sql, python, spark, glue, custom. Adapter-qualified dbt engines (dbt-<adapter>, e.g. dbt-glue, dbt-snowflake, dbt-bigquery) are accepted too and route through the dbt build runner, which derives the adapter from the suffix. Ingestion engines (acquisition pattern only): duckdb (zero-infra files/JDBC), airbyte (350+ SaaS), meltano (Singer 600+ taps), dlt (Python-native), kafka-connect (streaming), debezium (CDC). AWS Glue: glue (Spark ETL jobs managed by Glue).
^dbt-[a-z0-9]+([_-][a-z0-9]+)*$
Capabilities the build asks for (acquisition pattern). Validation enforces capabilities ⊆ runner.declared_capabilities.
All items must be unique
No Additional ItemsPattern-specific build properties with conditional validation.
Build execution configuration (triggers, runtime, retries).
No Additional PropertiesNEW in v0.7.0: Can reference data products directly via exposeRef for strong typing and auto-URI generation. Backward compatible with raw URIs.
No Additional ItemsRaw dataset URI (legacy, e.g., 'dataset://gcp/project/dataset/table')
NEW in v0.7.0: Data product reference with strong typing
Cron expression for schedule trigger
Custom timetable configuration
Each additional property must conform to the following schema
Type: stringContainer image for execution
Service account for cloud execution
Value must be greater or equal to 1
^[a-z0-9_][a-z0-9_.-]*[a-z0-9_]$|^[a-z0-9_]$
Value must be greater or equal to 1
Default configuration for all tasks (can be overridden per task)
Value must be greater or equal to 0
NEW in v0.7.0: Enhanced error categorization and handling
Error types that should trigger retries
No Additional Items[
"TemporaryFailure",
"RateLimitExceeded",
"ConnectionTimeout",
"DeadlineExceeded"
]
Error types that should fail immediately
No Additional Items[
"ValidationError",
"SchemaViolation",
"PermissionDenied",
"InvalidCredentials"
]
Must contain a minimum of 1 items
Backward compatibility: If 'operator' is specified but not 'type', map operator to type
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
Operator field is deprecated but still works. Maps: FluidExecuteOperator→fluid_execute, BashOperator→bash, etc.
NEW in v0.7.0: Validate provider_action tasks have required fields
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"provider_action"
Validate fluid_execute tasks
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"fluid_execute"
FluidExecute
Validate bash tasks
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"bash"
Bash
Validate python tasks
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"python"
Python
^[a-z0-9_][a-z0-9_.-]*[a-z0-9_]$|^[a-z0-9_]$
NEW in v0.7.0: Simplified task type taxonomy. Replaces 'operator' field (backward compatible). Types: provideraction (NEW!), fluidvalidate, fluidplan, fluidapply, fluidexecute, fluidverify, fluiddqcheck, bash, python, sensor, or provider-specific operators.
DEPRECATED in v0.7.0: Use 'type' instead. Maintained for backward compatibility with v0.6.1 contracts. Maps to 'type' automatically (FluidExecuteOperator → fluid_execute, BashOperator → bash).
NEW in v0.7.0: Provider name when type=provider_action. Examples: aws, gcp, azure, snowflake, databricks.
NEW in v0.7.0: Provider action when type=provideraction. Format: service.operation (e.g., s3.ensurebucket, table.ensure, kinesis.create_stream).
Must match regular expression:^[a-z0-9_]+\.[a-z0-9_]+$
"s3.ensure_bucket"
"table.ensure"
"database.ensure"
"kinesis.create_stream"
"glue.create_job"
"bigquery.create_table"
NEW in v0.7.0: Reference to transformation step in builds[].transformations[]. Links orchestration tasks to build steps for clearer mapping.
Additional Properties of any type are allowed.
Type: objectNEW in v0.7.0: Declares what exposes[] this task produces. Enables automatic dataset registration and lineage tracking.
No Additional ItemsOptional: Airflow dataset URI. Auto-generated from binding.location if not specified.
How this task updates the data
NEW in v0.7.0: Tasks can declare dependencies on other data products with version constraints and freshness requirements.
No Additional ItemsTask-specific overrides for taskDefaults
XCom configuration for inter-task communication (from v0.6.1)
Task-level access control (from v0.6.1)
Cost tracking (enhanced in v0.7.0)
NEW in v0.7.0: Track actual costs vs estimate
NEW in v0.7.0: Alert if actual > threshold * estimate (e.g., 1.5 = 150%)
NEW in v0.7.0: Budget enforcement
Value must be greater or equal to 1
Value must be greater or equal to 1
List of exposeIds produced by this build.
No Additional ItemsUnified identifier pattern: starts/ends with alphanumeric or underscore, allows dots and hyphens in middle. Both casing conventions accepted (snake_case / dotted lowercase / PascalCase / UPPER) so existing catalog ids round-trip unchanged.
Same definition as idDependencies on other builds (for multi-build orchestration).
No Additional ItemsUnified identifier pattern: starts/ends with alphanumeric or underscore, allows dots and hyphens in middle. Both casing conventions accepted (snake_case / dotted lowercase / PascalCase / UPPER) so existing catalog ids round-trip unchanged.
Same definition as idLegacy transformations array for backward compatibility.
No Additional ItemsPath/script identifier (dbt model, sql file, etc.)
List of exposeIds materialized by this step. VALIDATION: Tools must validate that every output exists in exposes[].exposeId.
No Additional ItemsUnified identifier pattern: starts/ends with alphanumeric or underscore, allows dots and hyphens in middle. Both casing conventions accepted (snake_case / dotted lowercase / PascalCase / UPPER) so existing catalog ids round-trip unchanged.
Same definition as idKey-value labels for structured metadata and automation. Consistent pattern used throughout FLUID objects.
Same definition as labelsSingle build configuration (legacy). Use 'builds' array for multi-modal.
Same definition as builds_itemsOptional lineage tracking for better data governance.
No Additional PropertiesLevel of lineage tracking granularity.
Upstream dependencies and their field mappings.
No Additional ItemsField-level lineage mappings (optional).
No Additional ItemsTransformation logic or SQL expression.
Type of data relationship.
Known downstream consumers (optional).
No Additional ItemsImpact level if this data product changes.
Optional schema evolution strategy for managing changes.
No Additional PropertiesVersioning strategy for schema changes.
Compatibility approach for schema evolution.
Advance notice period for breaking changes.
Value must be greater or equal to 0
Whether schema changes require approval.
List of approvers for schema changes.
No Additional ItemsOptional ML model specifications for MLPipeline kind.
No Additional PropertiesList of feature names used by this model.
No Additional ItemsTarget variable for supervised learning.
Validation metrics (e.g., accuracy, auc_roc).
No Additional ItemsMinimum acceptable metric values.
Each additional property must conform to the following schema
Type: numberOptional environment-specific overrides (dev, staging, prod).
Each additional property must conform to the following schema
Type: objectEnvironment-specific metadata overrides.
No Additional PropertiesEnvironment-specific expose overrides.
No Additional ItemsUnified identifier pattern: starts/ends with alphanumeric or underscore, allows dots and hyphens in middle. Both casing conventions accepted (snake_case / dotted lowercase / PascalCase / UPPER) so existing catalog ids round-trip unchanged.
Same definition as idReference to replacement data product or expose.
NEW in v0.7.1: Jurisdiction and data residency requirements for compliance enforcement.
No Additional Properties{
"jurisdiction": "EU",
"allowedRegions": [
"eu-west-1",
"eu-central-1"
],
"dataResidency": true,
"crossBorderTransfer": false,
"regulatoryFramework": [
"GDPR"
],
"enforcementMode": "strict"
}
{
"jurisdiction": "US",
"allowedRegions": [
"us-east-1",
"us-west-2"
],
"dataResidency": true,
"regulatoryFramework": [
"CCPA",
"HIPAA"
],
"enforcementMode": "strict"
}
Required legal jurisdiction for data storage and processing. Used to validate binding.location matches sovereignty intent.
"EU"
"US"
"Global"
Explicit list of allowed cloud regions. Example: ['eu-west-1', 'eu-central-1'] for EU-only.
All items must be unique
No Additional Items[
"eu-west-1",
"eu-central-1"
]
[
"us-east-1",
"us-west-2"
]
Explicit list of prohibited cloud regions. Takes precedence over allowedRegions.
All items must be unique
No Additional ItemsWhether data must remain within jurisdiction boundaries at rest and in transit. True = strict residency.
Whether cross-border data transfer is permitted. False = data never leaves jurisdiction.
Allowed legal mechanisms for cross-border transfer (if permitted). Example: ['SCCs', 'BCRs', 'Adequacy'].
All items must be unique
No Additional ItemsApplicable regulatory frameworks. Example: ['GDPR', 'CCPA', 'HIPAA'].
All items must be unique
No Additional Items[
"GDPR"
]
[
"GDPR",
"CCPA"
]
[
"HIPAA"
]
How sovereignty violations are handled. strict = block deployment, advisory = warn, audit = log only.
Whether binding.location must be validated against sovereignty rules before deployment.
Root-level access policy for automated IAM binding generation. Defines principals, permissions, and resources for data product access control.
No Additional Properties{
"grants": [
{
"principal": "group:data-analytics@company.com",
"permissions": [
"read",
"select",
"query"
]
},
{
"principal": "serviceAccount:pipeline@project.iam.gserviceaccount.com",
"permissions": [
"write",
"insert",
"update",
"delete"
]
}
]
}
List of access grants to principals (users, groups, service accounts).
No Additional ItemsIdentity receiving access. Format: 'user:email@domain.com', 'group:name@domain.com', 'serviceAccount:name@project.iam.gserviceaccount.com'
"group:data-analytics@company.com"
"serviceAccount:pipeline@project.iam.gserviceaccount.com"
"user:analyst@company.com"
Permissions to grant. Will be mapped to provider-specific roles (e.g., BigQuery roles).
All items must be unique
No Additional Items[
"read",
"select"
]
[
"write",
"insert",
"update"
]
Resources this grant applies to. JSONPath expressions referencing exposes[] items. If omitted, applies to all exposed resources.
No Additional Items"$.exposes[?(@.exposeId=='customer_table')]"
"$.exposes[?(@.kind=='table')]"
Optional conditions for conditional access (e.g., IP restrictions, time windows).
Additional Properties of any type are allowed.
Type: objectTop-level orchestration configuration for scheduling and workflow engines.
NEW in v0.7.3: Retention durations for run state, run logs, lineage events, and DLQ records. Honored by the retention sweeper invoked from policy-apply.
No Additional PropertiesNEW in v0.7.6: Declared downstream consumers of this data product — the business artifacts built on it (dashboards, notebooks, analyses, ML apps). Shape follows dbt exposures so existing dbt exposure definitions map field-for-field. Purely declarative and additive: consumers never affect plan/apply. RESERVED, not yet consumed — no code reads this key today; it is carried verbatim into plan.json and the contract COMMENT so it survives round-trip, and is intended to feed lineage terminal nodes and impact statements ('Affects: Revenue dashboard') in a later release.
Stable identifier for this consumer (unique within the contract).
Same definition as idHuman-facing display name, e.g. "Weekly Revenue Dashboard".
What kind of artifact consumes this product.
Owning team for this consumer (routable identity, as in metadata.owner).
Contact address for the consumer's owner.
Link to the live artifact (dashboard URL, notebook, app).
How production-hardened the consumer is (dbt exposures semantics).
Which output ports this consumer reads. Absent = all exposes.
No Additional ItemsUnified identifier pattern: starts/ends with alphanumeric or underscore, allows dots and hyphens in middle. Both casing conventions accepted (snake_case / dotted lowercase / PascalCase / UPPER) so existing catalog ids round-trip unchanged.
Same definition as idContract-level governance: account/project-wide settings (e.g. AWS Lake Formation admins and LF-tag definitions). Per-resource grants and tag associations live under binding.governance.
No Additional PropertiesAWS Lake Formation account-wide settings: data-lake admins and LF-tag (TBAC) definitions. Applies to the AWS account the contract's IaC apply targets.
No Additional PropertiesIAM principal ARNs (roles or users) granted Lake Formation admin privileges. Emitted as awslakeformationdatalakesettings.admins. AUTHORITATIVE, not additive: Lake Formation's PutDataLakeSettings replaces the account's admin list with the one sent, so an admin NOT listed here is REMOVED on apply. List every principal that must stay a data lake admin, including the role or user that runs the apply: left out, it loses Lake Formation admin on that apply, and the Lake Formation grants and registrations that need an admin can then fail. The terraform-provider-aws resource also clears the data lake settings its configuration omits, and this block sets only the admins, so the account's create-database and create-table default permissions (the IAMAllowedPrincipals default for new databases and tables), trusted resource owners and parameters are cleared too. Destroying the resource empties the admin list and resets CROSSACCOUNTVERSION to 1. Re-applying the same list is a no-op.
All items must be unique
No Additional Items^arn:aws[a-z0-9-]*:iam::
LF-TBAC tag-key definitions. Each entry is a tag key mapped to its allowed string values. Emitted as one awslakeformationlf_tag per key; values are the tag's allowed-values list. Field idiom borrowed from OpenMetadata's classification-label model — see ODCS roles + OpenMetadata data contracts spec.
Each additional property must conform to the following schema
Type: array of stringMust contain a minimum of 1 items
All items must be unique
No Additional ItemsNEW in v0.7.6: Contract-wide packaging default — declarative container ownership (isolated = this product creates and owns its infrastructure containers; shared = containers are pre-existing, platform-owned pools the product writes into but does not own). Overridable per exposure via binding.packaging. An ABSENT block means legacy behavior: the IaC emit is byte-identical to pre-packaging releases.
Same definition as packaging