Data protection policies
MUCGPT lets deployments define their data-protection levels centrally in the core service. The same levels are exposed to clients through GET /config and are the basis for handling documents, chats, MCP sources and assistants.
This page documents the configuration. For the product model behind it, see Privacy by design.
Configuration
Levels are configured in the core service YAML. There are no built-in levels: a dimension without configured levels is "not configured" and is reported as an empty list; nothing is inferred. The example below uses fictional sample values.
classifications:
confidentiality:
levels:
- id: "public"
value: 0
title: "Public"
description: "Data that is approved for publication."
info_url: "https://intranet.example.org/data-classification#public"
icon: "globe"
color: "neutral"
supported: true
- id: "internal"
value: 1
title: "Internal"
description: "Data for internal use only."
info_url: "https://intranet.example.org/data-classification#internal"
icon: "shield"
color: "info"
supported: true
personal_data:
levels:
- id: "none"
value: 0
title: "No personal data"
description: "Content that does not relate to a natural person."
info_url: "https://intranet.example.org/privacy#none"
icon: "person"
color: "neutral"
supported: true
- id: "personal"
value: 1
title: "Personal data"
description: "Content that relates to a natural person."
info_url: "https://intranet.example.org/privacy#personal-data"
icon: "person"
color: "warning"
supported: trueThe section can also be overridden via the environment variable MUCGPT_CORE_CLASSIFICATIONS (JSON object). Its keys merge with the YAML section: {} keeps every configured level, and a dimension key replaces only that dimension's levels list. To clear both dimensions, set both lists to empty. Individual list entries cannot be overridden separately.
Level properties
| Field | Required | Description |
|---|---|---|
id | yes | Stable lowercase slug, unique within the dimension. Used by stored level assignments and other configuration. |
value | yes | Non-negative integer rank, unique within the dimension and at most 9007199254740991 (the largest JavaScript-safe integer). Higher means more sensitive. Never reuse a value. |
title | yes | Level name shown to users. Rendered verbatim; it is not translated. |
description | no | Longer explanation, shown verbatim. |
info_url | no | Absolute http(s) link to guidance about the level. |
icon | no | Fluent icon slug (e.g. lock-closed, shield, person). Unknown slugs fall back to the frontend's default icon. |
color | no | Semantic color role: neutral (default), info, success, warning, danger or brand. Raw colors are rejected. |
supported | no | Defaults to true. false retires a level without deleting it (see below). |
Validation
Validation fails core startup for:
- duplicate
idorvaluewithin a dimension, - a configured dimension in which no level has
supported: true, - a non-slug
idoricon, - an empty
title, an over-long title/description, or a non-http(s)info_url, - unknown properties (typos).
API
GET /api/backend/v1/config exposes both dimensions, ordered by value:
{
"classifications": {
"confidentiality": {
"levels": [
{
"id": "public",
"value": 0,
"title": "Public",
"description": "Data that is approved for publication.",
"info_url": "https://intranet.example.org/data-classification#public",
"icon": "globe",
"color": "neutral",
"supported": true
}
]
},
"personal_data": { "levels": [] }
}
}Clients must treat the field as optional and tolerate empty level lists.
Identity, ordering and changes over time
idis the identity. Stored level assignments and other configuration reference a level byid. Titles, descriptions, icons, colors and the list order can change without affecting stored data.valueis the rank. It defines ordering and comparisons such as "this tool may receive data up to level X". Values must be unique and must never be reused for a different meaning, even after a level is retired.- Renumbering shifts the rank of persisted level values. Only do it with a data migration if stored values exist.
- Removing a level leaves stored assignments pointing at an
idno longer in the catalog. Clients must render such values as unconfigured instead of falling back to another level. Prefersupported: falseover deletion.
supported: false keeps a level readable for existing assignments but excludes it from new assignments and from processing that requires an explicitly approved level.
Assistant service
The assistant service does not consume the levels yet. When it does, the same configuration shape is intended to be reused; the sharing mechanism (duplicated configuration, a shared config file, or a core endpoint) will be decided in that change.