> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Breaking Changes: Data Governance

> Collate 2.1 governance changes to policies and approvals, glossaries and ontologies, and data retention.

# Data Governance

This page covers the following changes when you upgrade from Collate 2.0.8 to Collate 2.1:

* Policies and roles
* Approval-gated changes
* Glossaries and ontologies
* Domains and data products
* Governance workflows
* Metadata standards and completeness
* Governance automations
* Data retention

Classifications and tags have no breaking changes in Collate 2.1. Task and approval-task changes are covered on the Collaboration page. For more information, see [Collaboration](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/collaboration.md).

## Policies and Roles

Collate 2.1 changes the default policies and roles as follows.

### New Default Policy Rules

> [!NOTE]
>
> **Behavioral.** Affects who can query the Resource Description Framework (RDF) store with SPARQL Protocol and RDF Query Language (SPARQL), create Context Center memories, and start conversations.

The upgrade adds rules to `DataConsumerPolicy`, the policy behind the **Data Consumer** role. Each rule is added only if you have not removed the permission it builds on:

| Rule | What it allows | Added when |
| - | - | - |
| `DataConsumerPolicy-ExecuteSparqlQuery-Rule` | Authenticated users and bots can run read-only SPARQL queries through the agent SPARQL endpoint and the Model Context Protocol (MCP) knowledge-graph tools | An allow rule in the policy still lists `ViewAll` |
| `DataConsumerPolicy-CreateContextMemory-Rule` | Authenticated users can create Context Center memories. The creator owns the memory | An allow rule in the policy still lists `EditDescription` |
| `DataConsumerPolicy-CreateConversation-Rule` | Authenticated users can start conversations and reply | Always |

> [!WARNING]
>
> SPARQL results are not filtered by asset or domain policies. If you restrict who can view assets through custom policies, delete `DataConsumerPolicy-ExecuteSparqlQuery-Rule` after the upgrade. If you replaced `DataConsumerPolicy` with your own definition, none of these rules are added for you. Add them yourself if you want these capabilities for non-admin users.

### Domain-Only Access Is Restricted Further

> [!NOTE]
>
> **Behavioral.** Affects users who hold the domain-only access policy.

Two deny rules are added to the domain-only access policy:

* `DomainAccessDenyAdministrationRule` stops domain-restricted users from changing policies, roles, bots, or applications in any domain. This covers creating, deleting, deploying, and editing.
* `DomainAccessDenyTeamAndUserRule` stops them from changing teams and users that belong to no domain. It also stops them from changing bot users. This covers creating, deleting, and editing.

If domain owners in your organization manage roles, bots, or applications, give them a separate role that is not covered by these rules.

### Bots Can No Longer Impersonate Other Bots

> [!NOTE]
>
> **Breaking.** Affects bots that hold `BotNonAdminImpersonationPolicy`.

The upgrade adds a rule, `BotNonAdminImpersonationPolicy-DenyBotUsers`, to this policy. It denies the `Impersonate` operation when the target is a bot user. A bot that used this policy to impersonate another bot is refused after the upgrade.

### Ontology Roles and Policy

> [!NOTE]
>
> **Additive.** A new `OntologyAuthorPolicy` lets its holders manage ontologies. This covers concepts, properties, axioms, and change sets. The upgrade also attaches `OntologyAuthorPolicy` and `OntologyReviewerPolicy` to the existing `DataSteward` role. Data stewards can then author and review ontologies.

## Approval-Gated Changes

> [!NOTE]
>
> **Additive.** This applies only to workflows you change. A governance workflow with an event-based trigger can now hold edits until a reviewer approves them. Nothing is held until you set **Approval Mode** to **Enforce** on a workflow.

> [!NOTE]
>
> **Behavioral.** This applies once you turn it on. In an Enforce workflow, a human edit to a watched field is not written. This covers `PUT` and `PATCH` requests, comma-separated values (CSV) imports, and bulk asset changes. Collate returns the asset with its approved value and creates a change request and review task. Bots are never held. Scripts that edit governed assets and expect the change to appear immediately must wait for approval or run as a bot.

This feature adds the following for API users:

* Change requests are served from `/v1/changeRequests`. You can list them by asset or requester and read them. You can also list revisions and decisions and withdraw your own pending request.
* The bulk add and remove asset calls on domains and data products are checked by the same approval step and respect `dryRun`.
* Resolving a review task takes `changeRequestRevision` and, optionally, per-change `changeDecisions`.

## Glossary and Ontology

The following glossary and ontology changes apply in Collate 2.1.

### Terms Proposed by Automation Go to Review

> [!NOTE]
>
> **Behavioral.** Affects the stored `GlossaryTermApprovalWorkflow`.

The upgrade adds a branch right after the start of this workflow. A term that an automation proposed (provider `automation`) now waits for a person to approve it, in approval steps of its own. This includes terms that Collate AI agents and AI Automations suggest, and the Draft terms that Collate derives from Context Center memories. When nobody else can decide, the task is assigned to admins. Every other term is reviewed as before. If you edited the workflow so that its start has more than one outgoing edge, the upgrade does not change it and an admin must connect the branch.

### Draft Glossary Terms Derived From Context Center Memories

> [!NOTE]
>
> **Behavioral.** Affects glossaries in workspaces where the AI platform and Context Center memory extraction are on.

Collate 2.1 can turn a Context Center memory into a Draft glossary term. A Glossary Agent decides whether to skip the memory, use an existing glossary, or create a new glossary. Collate then writes the glossary and the Draft term in one step. It never overwrites a name that is already taken. The term links back to its source memory and records the agent's confidence, its reasons, and when it derived the term. The term is an automation-provided term, so it waits in the review branch described in the previous section.

Review these terms in the glossary's list of terms that are waiting for review. Reject the ones you do not want. The memory extraction setting `LLM_MEMORY_EXTRACTION_ENABLED` is on by default in Collate 2.1.

### Relation Type Usage Response Changed

> [!NOTE]
>
> **Breaking.** Affects clients of `GET /v1/glossaryTerms/relationTypes/usage`.

In Collate 2.0, the response was a map of relation type name to count. In Collate 2.1, it is a list of objects, each with a `relationshipType` (an entity reference) and a `count`.

```diff theme={null}
- { "relatedTo": 12, "synonym": 4 }
+ [
+   { "relationshipType": { "name": "relatedTo", "...": "..." }, "count": 12 },
+   { "relationshipType": { "name": "synonym", "...": "..." }, "count": 4 }
+ ]
```

Update any script or dashboard that reads this endpoint.

### In-Process RDF Reasoning Is Removed

> [!NOTE]
>
> **Breaking.** Affects anyone who relied on `inferenceEnabled` or reasoning levels on SPARQL queries.

Collate no longer runs reasoners in its own process.

These settings in the RDF configuration are deprecated and ignored:

* `inferenceEnabled`
* `defaultInferenceLevel`
* `cacheInferredTriples`
* `maxInMemoryInferenceTriples`

SPARQL queries use no inference unless they ask for `custom`, which reads materialized rule output. To keep inference, turn on `materializedInferenceEnabled`. It runs rule-based inference inside the RDF store.

### New RDF Settings

> [!NOTE]
>
> **Additive.** These settings are new in Collate 2.1 and do not change behavior until you change them.

| Setting | Default | What it does |
| - | - | - |
| `graphReplaceChunkBytes` | `16777216` | Largest request size, in bytes, for replacing a whole named graph. An example is an active ontology release. A larger graph is uploaded in chunks. Keep it at or below the upload limit of Fuseki, the RDF store server |
| `materializedInferenceEnabled` | `false` | Materializes inference rules into per-rule named graphs inside the RDF store, so SPARQL queries can request `custom` inference. Requires Fuseki storage |
| `shaclValidationMode` | `REPORT` | Sets the Shapes Constraint Language (SHACL) validation mode. The configuration file included with Collate uses `REPORT` |
| `dereferenceableIris` | `false` | Exposes authenticated, content-negotiated redirects for the Internationalized Resource Identifiers (IRIs) that Collate creates |
| `strictOwlProfile` | `true` | Rejects authored axioms that break the supported Web Ontology Language (OWL) 2 DL profile |
| `aiEnabled` | `false` | Turns on the optional AI-assisted ontology flows. Manual authoring stays available when it is off |
| `federation.enabled` | `false` | Allows federated SPARQL queries. When it is off, every `SERVICE` clause is rejected. `allowedEndpoints` (empty by default) lists the external endpoints that may appear in a `SERVICE` clause |

Use the environment variable `RDF_AI_ENABLED` to turn on `aiEnabled`. The older `RDF_ASK_COLLATE_ENABLED` still works as a fallback but is deprecated.

### Only Approved Glossary Terms Can Be Applied Through the API

> [!NOTE]
>
> **Breaking.** Affects clients that tag assets with glossary terms that are not Approved.

The UI only offers Approved glossary terms when you tag an asset, but Collate 2.0 let the API apply a term in any status. In Collate 2.1, the API rejects a glossary term that is newly applied to an asset or field unless it is Approved.

This applies to the following:

* Create, update, patch, and bulk requests
* Table data models
* The columns API
* The `assets/add` endpoint of a term
* Column bulk-update and CSV import previews

A term that the asset already holds stays, so a request that sends it back unchanged still succeeds. In a bulk request, a rejected item fails on its own and the others are saved.

> [!NOTE]
>
> Approve the terms your integrations apply, or stop applying terms that are not yet approved.

### Moving Glossary Terms and Changing Assets in Bulk

> [!NOTE]
>
> **Behavioral.** Affects scripts that call the glossary term move and bulk asset endpoints.

The following changes apply:

* Moving a term needs a parent. Name the new parent with both `id` and `type` in the move request. Without it, the call returns a `400 Bad Request` error with `A move needs the parent the term moves under`. To move a term to the top level, name the glossary itself as the parent.
* Bulk asset changes are checked one asset at a time. Adding or removing assets on a glossary term, tag, domain, or data product no longer checks one permission for the whole request. Each asset is checked and saved like its own edit. Failures are reported per asset, and an asset held by an approval workflow is returned with a pending status.

### Ontology Support

> [!NOTE]
>
> **Additive.** None of the ontology APIs below exist in Collate 2.0.8, so no existing client is affected.

The following ontology features are new:

* The following are new entities with their own APIs:
  * Native ontologies
  * Concepts
  * Properties
  * Axioms
  * Change sets
  * Releases
  * Packs
  * Bulk jobs
* `importRdf` also accepts JavaScript Object Notation for Linked Data (JSON-LD).
* `GET /v1/glossaries/{id}/exportOntology` exports a glossary. It works even when RDF storage is off. It supports the following formats:
  * Turtle
  * RDF/XML
  * N-Triples
  * JSON-LD
* Glossary terms accept `iri` and `conceptMappings` on create.
* The new query features are a read-only agent SPARQL endpoint, saved SPARQL queries, and an ontology summary at `GET /v1/glossaryTerms/ontology/summary`.
* The term list and search endpoints accept `provider` and `excludeProvider`. The glossary list accepts `domain`.

## Domains and Data Products

> [!NOTE]
>
> **Behavioral.** Affects clients that read domain and data product assets.

The following changes apply to domains:

* The asset list and asset count endpoints for domains now need `ViewBasic` on domains. These endpoints are `/v1/domains/{id}/assets`, its by-name variant, and the counts. They also take the caller's own access into account.
* The task list for a domain is limited to tasks the caller can view.

> [!NOTE]
>
> **Additive.** `GET /v1/domains` accepts `owners` and `domainType` filters. It also accepts `tags` and `glossaryTerms` filters. `GET /v1/domains/styles` returns the color and icon of every styled domain and data product.

## Governance Workflows

> [!NOTE]
>
> **Additive.** Workflow definitions accept a `lifecycle` configuration and two new automated tasks, `dataCompletenessTask` and `collectMetadataTask`. Existing workflow definitions keep working without changes.

> [!NOTE]
>
> **Breaking.** In an approval task, `expiryTimer.durationVariable` and `expiryTimer.dateVariable` must now start with a letter or underscore and contain only letters, digits, and underscores. A custom workflow that uses a name with a dash, a dot, or a leading digit fails validation.

### Bot Users Can't Trigger Workflows

> [!NOTE]
>
> **Behavioral.** Affects integrations that rely on a bot's changes to start a governance workflow.

Bot users can't trigger workflows. A change that a bot makes to an asset doesn't start an event-based workflow. If a script or integration used a bot to start a workflow, make the change as a user instead.

## Metadata Standards and Completeness

> [!NOTE]
>
> **Additive.** Metadata standards and completeness scoring do not exist in Collate 2.0.8, so no existing client is affected.

Collate 2.1 adds metadata standards. A standard defines what a complete asset looks like. Admins edit a draft rule set. Publishing freezes it into a published rule set and raises the rule version. You can then turn scoring on or off for each published standard.

The following pieces are new:

* `/v1/governance/metadataStandards` lets you manage standards. `POST /v1/governance/metadataStandards/{id}/publish` publishes one.
* `/v1/governance/completeness` returns the latest snapshot, run history, and the score trend over time. It also lists the assets that fail the active standard, ranked by downstream usage. You can export that gaps list as CSV.
* A scoring run records a frozen copy of the rules that produced it, so a past score stays reproducible after you edit the standard. Scoring follows the Data Insights schedule.
* The Metadata Completeness page in the UI is at `/governance/metadata-completeness`.

Viewing completeness data needs `ViewAll` on the completeness resource. Publishing a standard needs `EditAll` on the metadata standard resource.

## Governance Automations

> [!NOTE]
>
> **Behavioral.** Affects teams that manage Automator pipelines through the ingestion pipeline API or with ingestion pipeline permissions.

Governance automations are now their own entity, served from `/v1/governance/automations`. In Collate 2.0, they were Automator ingestion pipelines. Creating, editing, and deleting them is now checked against a dedicated governance automation permission instead of ingestion pipeline permissions.

The upgrade adopts every existing Automator pipeline into its own governance automation. The pipeline keeps its name, schedule, and run history. The Automator configuration is copied into the new entity. A pipeline whose configuration cannot be read is skipped, and the upgrade logs a warning.

After the upgrade, check that the roles of people who manage automations include the governance automation permission. Point scripts that create or edit Automator pipelines at `/v1/governance/automations`. Deploying and triggering an automation are separate operations on the same resource.

## Java SDK

> [!NOTE]
>
> **Breaking.** Affects Java SDK users. The generated enum `org.openmetadata.schema.type.WorkflowTriggerFields` is removed. The list of trigger fields is now a server resource, not a schema type. Remove any import of it.

## Data Retention

> [!NOTE]
>
> **Behavioral.** Affects the Data Retention application.

| Setting | Default | Effect |
| - | - | - |
| `workflowRetentionPeriod` | `30` days | Deletes the short-lived automation workflow records left by test connection, query runner, and reverse ingestion runs. Use `0` to keep them forever |
| `activityCommentsRetentionPeriod` | `0` (keep forever) | Retention for comments on activity events |

> [!WARNING]
>
> The Data Retention application deletes automation workflow records older than 30 days. The deletion cannot be undone. To keep them longer, set `workflowRetentionPeriod` to a larger value before the first run after the upgrade.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.