BeryX — Capabilities by evaluation criterion
Public document. It organises what BeryX does by the criteria analysts use to evaluate data quality tools (profiling, monitoring, parsing and normalisation, matching, cleansing, enrichment, metadata management, orchestration and experience for business users). It is the technical source for the website's
/rfppage: each section says what exists, where it is in the code and which tests prove it — and, when it is partial, what is missing.Security and compliance are in SEGURANCA.md. Coverage by quality dimension (DAMA, ISO 8000, ISO/IEC 25012) and by DAMA-DMBOK area is in COBERTURA_QUALIDADE.md.
Profiling
Automatic discovery and profile of every table in all connected sources: counts, nulls, distinct values, minimum/maximum/mean/standard deviation, cardinality, distributions and limited samples.
- More than 20 source types: warehouses (BigQuery, Snowflake, Databricks, Amazon Redshift, Fabric, Azure Synapse), operational databases (PostgreSQL, MySQL, Oracle Database, SQL Server and Azure SQL — the Primavera, PHC and Sage ERPs run on the last two), MongoDB (schema inferred from a sample), business applications (SAP S/4HANA and SAP Gateway over OData, Salesforce, Dynamics 365 and other OData v2 and v4 services), files, Google Sheets (each tab is a dataset), object storage (GCS, S3, Azure Blob and ADLS Gen2), SFTP, streaming (Kafka, Pub/Sub) and document sources — list and setup in the connector guide.
- Excel files (
.xlsx,.xlsm) in a folder, a bucket or an SFTP server: each sheet is a dataset, hidden ones included, with the cached value of formulas and a warning for those saved without being calculated. The old.xlsstays out. - Incremental profiling: on large tables with a time column, the re-scan reads only the new window and combines it with the previous profile (with a periodic full profile).
- Documents (SharePoint, Google Drive) have their own document quality profile.
Tests: backend/tests/test_incremental_profiling.py, backend/tests/test_profile_distributions.py.
Monitoring
Automatic monitors by default on every table in the connection (up to 500 per connection in each scan), with no configuration and from each source's metadata (in databases, only from the catalogue): freshness (learns the update cadence), volume (modified z-score over the history) and schema changes, depending on what each source exposes (method).
Drift and anomaly detection: columns added/removed, type changes, null spikes, volume drops, per-column distribution drift (from the quantiles and categories already profiled, method), seasonal and per-segment anomalies. A distribution drift states the shares of the largest categories or the change of the quantiles; the categories and the quantiles are only shown in the explanation, with the mask of the sensitive columns (card #1399), and do not go to the description, the notices, the tickets or the diagnosis.
Anomalies inside a segment that the total does not show (card #1255): in each
standardordeepscan, the nulls (of the columns of the CDEs, of the contracts and of those with stable nulls) and the mean (of up to 3 numeric columns) of each value of the categorical dimensions, counted at the source byGROUP BY. The issue states the column, the dimension, the before and after and what the total showed; the segment's value is only shown in the explanation, with the mask of the sensitive columns, and does not go to titles, notices or prompts; the same goes for the segment that explains an anomaly of the total (card #1379), which the description and the tickets do not name either. A defect in several segments opens a single issue, with the segments counted and listed; seen through several dimensions, too, when the source confirms that they are the same rows. When in doubt, two open: no defect stays hidden behind another. A known incident does not silence the next one. Muting is per column and dimension (ignoring a chronic store to the end silences all the stores in that column), and a defect that starts in a segment and later reaches the total is left with two open issues, until someone closes the first. Multiplicity is controlled per dataset and the false alarm rate is measured and published (method). Personal or confidential columns are neither averaged nor used as a dimension. SQL sources only.Hour of day (card #1255), off by default and turned on per dataset: records that concentrate at an hour the column never had them, against the column's own windows at the same hour of the week. It starts off because, with batch loads whose hour changes from day to day, it warns in 4 to 98% of the scans of normal days, and on a holiday with a Saturday's hours in 22 to 24% (what was measured). It needs five weeks of history and only has recall with eight: the Free plan, which keeps 30 days, never evaluates it. Change and load columns (
updated_at,loaded_at) are left out: their hour is the jobs'.Drift of the relationship between columns (card #1257): in the
deepprofile, the rank correlation of each pair of numeric columns against that of the previous profiles (at least five), when the relationship changes ("amount" and "commission" stopped moving together). It withstands outliers, skewed data and ties (many zeros, whole quantities), and makes no extra query (method)."Never again" rule with the segment (card #1256): on resolving a null anomaly whose drill-down names a dominant segment, or an anomaly of a segment, the proposed rule is an
expressionlimited to that segment, with the tolerance of its baseline, and the whole-column rule stays as the alternative. Only the accepted one is created. On sources that do not evaluateexpression(Oracle, Redshift) and with the partition window, only the whole-column rule is proposed (method).Proposed rules without the values of a sensitive column (card #1408): the range, the accepted values, the sentinels and the freshness the profile proposes for a personal or confidential column do not state the minimum, the maximum, the categories or the delay observed, in the suggestion, the API, the assistant, the MCP and the prompts. Accepting it, which only an administrator does, reads them from the latest profile; if the profile no longer supports it, the acceptance is refused. For those columns no new range is proposed from the history of a rule.
Published methodology: formulas, weights, thresholds and limitations of the score, the anomalies, the duplicates, the trust score and the sampling in METODOS.md, with a "How we calculate" section in the app.
Rule engine with 18 rule types: nulls (
not_null), uniqueness (unique), patterns (pattern), ranges (range), freshness (freshness), minimum volume (row_count_min), check-digit validity (valid_identifier, a registry of identifiers per country) — NIF/NIPC (Portuguese tax numbers), NISS, NIB and Cartão de Cidadão (Portuguese ID card); DNI, NIE and company NIF from Spain; CPF, CNPJ (including the alphanumeric one) and PIS/PASEP from Brazil; AHV/AVS and UID from Switzerland; NHS number and GB VAT from the United Kingdom; IBAN with the country's structure and length (SWIFT registry and Angola); Luhn. Without a published check digit, structure only: SSN, EIN and ITIN from the US, NINO and Companies House from the United Kingdom, NIF and BI from Angola —, reference lists (in_reference_set: the bundled ISO lists or the workspace's reference data registry, with versions, code mappings between systems and a coherence check across datasets), conditions between columns of the same row in a closed expression language — "end_date >= start_date", "total = sum(subtotal, vat)", "if country = 'PT' then valid(nif, 'nif')" — (expression, with the check digit of NIF, NISS, CPF, CNPJ, DNI, NIE, NHS number, AHV/AVS and UID verified in the source itself), custom read-only SQL — a SELECT of the violating rows, with zero or up to N expected rows — (custom_sql), referential integrity (referential: orphan keys against another dataset, by pushdown on the same connection or an in-memory anti-join between connections, proposed by DETGEN for each lineage edge), accuracy against authoritative sources (accuracy, below), series of sensor and meter readings — a value that does not change over N consecutive readings while the state column changes (frozen_value) and intervals between consecutive readings above the expected cadence plus the tolerance (sampling_gap), per series — and, on streams, event age (max_event_age), conformity with the Schema Registry (schema_conformity), required fields (required_fields) and unreadable messages (max_malformed_pct). Expression, SQL and series rules run in the source, over the whole table, and only on SQL sources; on files, APIs and streams they are "not evaluable". The customer's SQL goes through a guard — a single SELECT, no writes, only functions from a list and only tables of the connection — and runs in a transaction that is always rolled back, with read-only mode and a maximum time on the session where the engine has them (DBA.md). The edge cases that Collibra's engine fixed in 2026 (IS NULL after validation, the table next to IN, RLIKE, AND, OR and NOT, SQL that starts with a CTE and the repeated placeholder) have a test in each dialect (card #1333). The table placeholder also works as a column qualifier and glued to the next word, and the column placeholder of Collibra templates becomes the rule's column; a regex that Snowflake's anchoring would change, including one imported from Collibra, is refused with the reason, instead of changing the result (card #1356, METODOS). Custom Python checks remain out. Rules arrive through industry packs (e-commerce, financial, healthcare, SaaS), through suggestions from the profile and the workspace's acceptance history — they only go in when an administrator accepts them — or through the import of dbt (singular tests too, which become custom SQL rules), Great Expectations, SodaCL and ODCS (what it converts). Legacy suites from Informatica Data Quality and Collibra DQ come in through the same import, from the rule exports, with a rule-by-rule migration coverage report (how to migrate). The quality rules of Microsoft Purview, which Microsoft retires on 12 November 2027, are read from the Unified Catalog Data Quality API (through the Purview integration, read only, or from a file) and come in one by one, approved: the plan carries the proposed rule, the rehearsal at the source and the Purview score, and the reconciliation report puts each rule of the export in one of three lists (migrated, with review, no equivalent and why) that add up to the total, and the assets Purview did not let BeryX read apart, with the reason. A second run does not duplicate, even with the rule edited (card #1332, what it converts).Scope rules (card #1235): one rule for every matching column in a domain, a connection, a schema, a table name pattern, a tag or a team. Columns are chosen by semantic type, approved glossary term, sensitivity or a regex on the name. A table that enters the scope gets the rule in its next scan, with no manual action and with an audit record; the ones that already existed only get the list someone rehearsed and approved, applied in the worker. Each rule has an owner, versions and the states draft, active and paused: pausing it stops the evaluation on every dataset. What an approved list removes only another list turns back on, and a list that stopped halfway continues when the rule is resumed. The link to each dataset shows on its detail page and is detached there by whoever edits the dataset, without deleting results and without having to see the scope rule. New datasets follow the access of whoever approved: if that person loses the account or the domain, the rule stops growing, the product says so and the owner gets the task to re-approve it. Lists and counts only hold the datasets the reader can see. A freshness rule on a table without a date is not created: it waits for approval, with the reason. Caps: 100 scope rules per workspace, 2000 rules for each one, 20 columns per dataset, 50 scope rules on a dataset, 10,000 datasets in a scope and 1,000 datasets with changes in a list; whatever exceeds the rule caps is left out and reported. Only the types that run on "All datasets". No paid plan. No source receives anything (
backend/app/domain/rules/scope_apply.py,backend/app/domain/rules/scope_approval.py).Accuracy against authoritative sources (
accuracyrule, card #266). A Portuguese tax number with the right check digit may not exist: the rule asks a source whether the value exists. VAT number in the European Commission's VIES (Member States and Northern Ireland), CP7 postcode and locality in GeoAPI.pt (Portuguese postal service data), phone number in the country's numbering plan with thephonenumberslibrary (E.164, type and country, no network), email by syntax and the domain's MX record (DNS over HTTPS, nothing is sent to the mailbox) and countries and currencies in the published ISO lists, downloaded with periodic refresh. It is opt-in: an admin allows each provider inPUT /api/v1/workspace/accuracyand, without that, no value leaves and the rule stays "not evaluated". Requests are GET only, through the connectors' read-only HTTP client with the anti-SSRF guard; answers are cached in the worker, per workspace, each provider has a minimum interval between requests and each scan has a lookup cap (DATAVAULT_ACCURACY_MAX_LOOKUPS_PER_SCAN). What fails opens an accuracy issue with masked examples. UK and Swiss VAT numbers stay unverified: the official services (HMRC and UID) require POST (backend/app/domain/quality/accuracy.py,backend/app/domain/scans/accuracy.py).Portuguese rules only with Portuguese-shaped data. What is specific to Portugal no longer applies to data with another shape (
backend/app/domain/quality/pt_shape.py):- the CP4 list (4-digit Portuguese postcodes) requires a majority of CP7 (full Portuguese postcodes) in the sample (NNNN-NNN, also with a space or no separator). A column that only stores the CP4 ("1000") no longer gets that rule, because it cannot be told apart from a Swiss code. A Japanese postcode written without a hyphen ("1000001") still passes as Portuguese;
- the NIF and the postcode from the e-commerce pack on
vat_number,tax_id,ziporpostal_codecolumns require the same shape in the last scan's sample. A British VAT number, an American EIN or a Swiss UID does not have the shape of the NIF; - in phone matching, a number without a country code matches the same number with a foreign
country code ("923 456 789" with "+244 923 456 789",
backend/app/domain/quality/matching.py). With no foreign country codes in the key, +351 applies to the 9 digits. With the data countryPT(the default), the mirror case also matches: a Portuguese mobile "912 345 678" is linked to "+244 912 345 678" when that is the only number in the key with the same 9 digits. With another country on one side (see the data country, below), a number without a country code on that side gets that country's code (+34 in Spain) and never +351; - in personal data detection, a phone number from another country counts as a phone: with
+, with the Brazilian DDD area code ("(11) 91234-5678") or, in a column with a phone name, by the digits alone. The name counts when it has a phone word (telefone_alt,phone_number,tlm) or when it is onlycelular,numero_celular,contato,contactoorwhatsapp;canal_contacto,modelo_celularandis_mobiledo not count. Dates, decimals, the CP7 and the CEP (Brazilian postcode) never count as a phone. It no longer passes as an address, and it stays PII (backend/app/domain/compliance/pii_map.py). Without a phone name, a national number also counts when it is written with separators and grouped like a phone number of PT, Spain, Brazil, Angola, the US, Switzerland or the United Kingdom ("020 7946 0958", "612 34 56 78"), in 80% of the sample. In an identifier column (sku,order_ref) it does not count (#552).
In NN/NN/YYYY dates, the correction only reads the month first when some value has the 2nd field above 12. Without proof of the order there is no
UPDATE, only the warning.Data country (#513). The workspace has a country (ISO 3166-1 alpha-2,
PTby default) and the connection and the dataset can override it. The scan uses the one from the lowest level that has it (backend/app/domain/catalog/data_country_service.py). It is not data residency. With a country other thanPT(backend/app/domain/quality/data_country.py):- the semantic type no longer gives
phone_ptorpostal_code_pt, and DETGEN does not propose the CTT CP4 list or the Portuguese phone pattern (backend/app/domain/quality/semantic_types.py,backend/app/domain/rules/generation.py); - phone numbers become the
phonetype with the country's region, when most of the sample are numbers assigned in that country's numbering plan. The plan comes fromphonenumbers, with no network (backend/app/domain/quality/phones.py, #516). A value with a decimal part never counts. Without a phone hint in the column name, only numbers written with «+», «00» or separators count, grouped like a phone number of that plan: the case number «2024/12345» does not count. A column of a numeric type is notphone(backend/app/domain/quality/semantic_types.py); - standardization does not propose +351 or the CP7, addresses are not read as Portuguese and
there is no district and municipality enrichment
(
backend/app/domain/insights/standardization.py); - phone standardization proposes the country's E.164, for example +34 in a Spanish dataset.
A number written with «+» or «00» is only converted with the country's calling code.
Numbers from another country stay as they are, for manual review, and count towards the
tolerance of the rule that protects the column. In Portugal the same holds for +351
(
backend/app/domain/insights/phone_standardization.py); - in matching, each phone number becomes E.164 in the numbering plan of its side's country. «923 456 789» from an Angolan dataset matches «+244 923 456 789» and not «+351 923 456 789». Brazilian numbers with the 9th digit match «+55…», also with the trunk 0 or the carrier code. In the United Kingdom, Switzerland and the US the national format matches the international one;
- NIF, NISS, CC and IBAN are still recognised, because the check digit proves the identifier. The PII map still catches a phone number in a column with a phone name, from the samples.
On a SQL source, a table with a country column (
pais,country…) holding ISO codes of two or more countries, one of themPT, gets for the NIF or NISS column the proposalse pais = 'PT' então válido(nif, 'nif')when the sample mixes values with and without the Portuguese check digit (at least 30% with it): the check digit is only required of the Portuguese rows, at the source.- the semantic type no longer gives
SLOs per dataset and lineage-based incidents (a problem upstream groups the affected datasets downstream).
Alerts in-app, email, Slack, Teams and webhook, with on-call rotations and escalation, and SMS or WhatsApp through the customer's Twilio account for critical incidents and SLA breaches only (a short message with the link, quiet hours and a cap per number). Each channel has an optional scope (domains, connections, datasets, issue types, automatic monitors), so that each team receives only its own, with a preview of the last 30 days.
Anomaly expected with a dated event (card #1319). A real peak (a campaign, a launch, a month-end close) is marked as expected with an event: the name, the first and last day (up to 31, and covering the anomaly's day) and who explained it. The event goes into the workspace calendar for the anomaly's dataset; an admin also records events for the whole workspace. An anomaly of a metric (the statistical detection and the volume and freshness monitors) detected on an event's days (the day in the workspace's time zone, or the day before when the data only goes that far) arrives with the event label on the issue and on the alert, instead of a blind alert: it is still measured and still alerts. With the label, it neither proposes the «never again» rule nor tunes the threshold. The label belongs to the current detection: a detection outside the event, reopening the anomaly or deleting the event remove it. Creating and deleting an event, and explaining another anomaly with it, goes to the trail, with who and when (
backend/app/domain/issues/expected_events.py).Engineering scan on Databricks and Snowflake (card #55). Opt-in per connection and read-only: on Databricks,
GETrequests to the official APIs only (notebooks, jobs, DLT and Lakeflow pipelines, Model Registry); on Snowflake, catalogSHOWandSELECTonly (views, materialized views, procedures, tasks, streams and warehouses). It opens one «Engineering» issue per heuristic, with the affected assets: credentials written in code (the type and the line, never the value),SELECT *, writes to Gold straight from Bronze, scheduled jobs without retries, a timeout or a failure alert, failing jobs and pipelines, notebooks that write tables without a job, tasks suspended for more than 30 days, stale streams, ML models not retrained for more than 90 days and warehouses without auto-suspend. The code is not stored. The AI summary is optional and carries only the findings' metadata (metadata_only). In the app, it is turned on and requested from the connection's card in Connections, and the findings open in Issues with the engineering filter (guide).
Tests: backend/tests/test_auto_monitors.py, backend/tests/test_schema_changes.py,
backend/tests/test_anomalies.py, backend/tests/test_quality_rules.py,
backend/tests/test_slo.py, backend/tests/test_oncall_escalation.py,
backend/tests/test_alert_routing.py, backend/tests/test_expected_events.py,
backend/tests/test_engineering_scan.py, backend/tests/test_scope_rules_api.py,
backend/tests/test_scope_rules_domain.py,
frontend/src/components/EngineeringScanPanel.dom.test.tsx.
Incidents and root-cause diagnosis
- Lineage incident: the open issues that appear within the same 2-hour window in datasets
linked by derivation lineage form one incident, with the source dataset, the impact tree and the
affected consumers. Derivation is the SQL of views, dbt, OpenLineage, the catalog's lineage, the
Fivetran and Airbyte copy, the warehouse system tables and an edge declared by hand without a
join column (
backend/app/domain/lineage/derivation.py). A foreign key says that one table points to another, not that its data comes from it: it does not group issues into an incident, but the impact tree still follows it. When the source's issues are about a column and there is column-level lineage, the blast radius leaves out the datasets that do not use that column. Without that lineage, it stays at table level (backend/app/domain/catalog/incidents.py). - Probable origin: from the root dataset, the incident goes up the ancestors in the derivation
lineage to the end of the known lineage (at most 12 levels and 200 datasets) and returns the
path to the probable origin. Each node carries its state: whether it is monitored (the Sonar
blind-spot criterion), the last scan, the active rules and the last sync of the pipeline that
feeds it (
backend/app/domain/catalog/incident_origin.py). When the origin is not monitored, the API flags it withnote: unmonitored_originand the blind spot's action, andPOST /api/v1/incidents/{id}/origin/suggestionproposes monitoring it. It opens one suggestion per dataset, with a volume rule (row_count_min) when the origin has no rules and the row count is known, and nothing goes in until someone accepts it. A dataset the requester cannot see cuts the path before it, without revealing it. When an external OpenLineage node feeds the origin (the bank statement on an SFTP server, an API, another system's database), the path stops at the origin and says the origin is external, with the node and the job that writes it (external, card #1248): an external node is not a BeryX dataset and is not monitored. - Downstream impact since the bad data came in (card #1233): the incident crosses the impact
tree with time. The window starts at the source's last scan that finished before the incident
(the bad data came in after it) and, without that scan, at the first issue. It lists the
downstream datasets that have received data since then (the last update is the one behind the
trust score's data age; a view counts when any of its parents in the impact was updated) and the
dashboards and consumers that read any of them, each with the state of its checks: failing (open
data-quality issues or an active rule failing), green or no checks. The green ones are flagged
«possibly affected, checks green»: the error went through them without an alarm. A downstream
dataset that a scan saw without an update since the incident does not appear and is counted
apart, and one not seen again counts as undated. A dataset the requester cannot see stays in the
list without name, date, state or counts, and the dashboard that only reads through it stays. The «View in the lineage graph» link opens
/linhagem?incidente=…, with the source, the affected and the involved nodes highlighted and the rest faded. It only reads what the scans recorded (backend/app/domain/catalog/incident_downstream.py). - Root-cause diagnosis: it starts from the source dataset and adds to the profile, the recent
scans and the lineage the customer's code deploys in the 48 hours before that touch the dataset,
the orchestration jobs that failed near the issue, schema drift and, on an orphan-key issue, the
rule and the referenced table. Deploys come from the CD pipeline (
beryx deploy record), from the job version in OpenLineage or from a dbt Cloud deploy job, and for each one only the version, the environment, the service or job and the time are kept, never the author or the commit message (backend/app/domain/integrations/deployments.py). The report writes up to 4 hypotheses, from most to least likely, each with the evidence from the context that supports or weakens it and a read-only confirmation test in SQL and in PySpark. Without an LLM, the offline template writes them in the same format (backend/app/domain/insights/templates.py). Under «Recommended actions», the proposed fix carries the code in SQL, pandas and PySpark, which is copied or applied as a PR from the report; the offline template writes it for duplicates, nulls and schema drift (backend/app/domain/insights/diagnosis_fix.py). At the end, two fixed blocks, written by the code and the same with and without an LLM (card #1234): «Rasto de provas» (evidence trail), with each step and the evidence used (the scans, the current profile against the previous one, each lineage edge up to the ancestors, the external OpenLineage nodes and the queries to the runs, the deploys, the dataset's other issues and earlier diagnoses), and «Não verificado» (not verified), with what was not confirmed and why: with no parent in the derivation lineage, the upstream cause was not verified; with an origin outside the connections, it is not known why the source system sent that data; and also the jobs and deploys with no record, the missing previous profile, the restricted ancestors and the hop limit. The prompt receives that list so as not to present a hypothesis still to be verified as fact (backend/app/domain/insights/rca_evidence.py). - Workspace instructions in the diagnosis (card #1331): an admin writes what only the company
knows (who to escalate to, who approves a fix, what is not rerun), for the workspace and,
optionally, for a dataset, and the diagnosis reads it as context. Each save is a version, with
the author on the trail and without the text in it. There is a limit of 4000 characters per
scope: above it the save is refused and nothing is cut. The embedded-instruction detector and
the secret detector run before saving. The instructions do not widen the data the diagnosis
reads, do not turn off output redaction and apply nothing. Each diagnosis's evidence trail says
which versions it used, with and without an LLM; without one, the template quotes them under
«Recommended actions». With synthetic samples they stay out of the prompt, and the trail says so
(
backend/app/domain/insights/diagnosis_instructions.py). - Complaints as evidence: the signals linked to the dataset, from Jira tickets, Confluence pages
and Slack and Teams channels, enter the diagnosis as human evidence. Each signal has a type from
a closed set (wrong data, outdated, duplicates, missing, process) and the confidence of its link
to the dataset. Promoting it opens an issue and, when possible, proposes a rule that is only
created when someone accepts the suggestion (
backend/app/domain/rules/signal_service.py, connectors). - Team memory: the summary of each report and each diagnosis, the resolution of each issue
(with the note of whoever resolved it and the cause from the latest diagnosis) and the team's
notes and decisions go into the knowledge base. The next diagnosis of the same dataset reads up
to 3 entries, those for the same issue type first, as history and never as evidence of the
current state. An entry marked as outdated leaves the analyses
(
backend/app/domain/knowledge/service.py).
Tests: backend/tests/test_incidents.py, backend/tests/test_incident_origin.py,
backend/tests/test_incident_downstream.py, backend/tests/test_diagnosis.py,
backend/tests/test_diagnosis_instructions.py, backend/tests/test_rca_evidence.py,
backend/tests/test_reports_v2.py, backend/tests/test_deployments.py,
backend/tests/test_signals.py, backend/tests/test_signal_rules.py,
backend/tests/test_knowledge.py.
Parsing and normalisation
Everything is a proposal. BeryX measures the profile's sample and generates the SQL in the connection's dialect and the PySpark. The customer is the one who applies it, and nothing is written to the source.
Semantic types detected automatically per column, from the values and the name: email, URL, UUID, phone, NIF, NISS, IBAN, Cartão de Cidadão, postcode, country, currency, dates, percentages, amounts, names and addresses (
backend/app/domain/quality/semantic_types.py). Types with a fixed format give a suggested pattern or check-digit rule (backend/app/domain/rules/generation.py).Format standardisation: phone numbers, postcodes, NIF, IBAN and dates stored in mixed formats are converted to the canonical form. Step 1 counts the rows per mask and step 2 is a proposed
UPDATE. On acceptance, BeryX proposes thepatternrule that stops the old formats from coming back (backend/app/domain/insights/standardization.py). When few values fail (up to 20%) and the column already has a dominant form, step 2 takes only that minority to the column's form (card #1404). The trigger is thepatternrule that failed, or two values in the sample; a column with different formats on purpose gets no suggestion (backend/app/domain/insights/minority_formats.py, thresholds in METODOS.md).Decomposition of composite fields by locale rules (pt, es, en), with no external services (
backend/app/domain/quality/parsing.py):- addresses → street, number, floor, postcode, locality and country;
- full names → title, first name, surnames (with "de/da/del/y") and last surname, also in the "Surname, Name" form;
- phone numbers → country code, national number, extension and E.164;
- NIF or DNI/NIE/CIF together with the name → identifier validated by the check digit, and name;
- dates in free text (months and days of the week in Portuguese, Spanish and English) → ISO date;
- amounts with currency → decimal value and ISO currency code.
The locale and the day/month order are read from the values themselves. A column with an atomic semantic type (NIF, IBAN, email, postcode, ISO date…) is never treated as composite, and without a hint in the name a phone number is only recognised with "+", "00" or separators (
ATOMIC_SEMANTIC_KINDSinbackend/app/domain/quality/parsing.py). For each column, the report gives the success rate in the sample, the coverage of each component and the masks of the values that do not decompose, never the values. In a test corpus with mixed formats, 30 of 30 PT/ES addresses, 30 of 30 names, 29 of 30 phone numbers and 30 of 30 dates are decomposed.Normalisation proposal (
parse_standardizesuggestion): a read-onlySELECTwith the derived columns and the count of recognised rows, plus the equivalent PySpark. The derived columns are only filled in the rows that the count gives as recognised and stay NULL in the others. There is never anUPDATE(backend/app/domain/insights/parsing_sql.py). A column that already has standardisation does not get the decomposition. Like any accepted suggestion, it opens a pull request in the customer's repository (cleansing and remediation).In the app: the "Parsing" panel in the dataset detail shows the detected components, the coverage and the formats that fail. The "Propose normalisation" button shows the suggestion's SQL and PySpark. The API is
GET /api/v1/datasets/{id}/parsing.Detection of variants of the same value in a categorical column (upper/lower case, spaces), with a normalisation proposal in SQL and PySpark.
ODCS data contracts with types and formats, which can be validated in CI (quality gate in CI). An ODCS v3 contract can also be imported, through the API, in the app or with
beryx contract import: the rehearsal says which rules it creates and what it cannot translate, with the reason, and only the confirmed import creates them, linked to the contract and its version (backend/app/domain/contracts/import_service.py, cards #1325 and #1192). An imported contract is the dataset's active one, but does not count as accepted by the producer: the policies, the domain conformance and the trust score that ask for the acceptance keep asking for it. Whoever cannot see a restricted dataset does not read it in another one's contract. The export passes the ODCS v3.1.0 JSON Schema, and imported back it gives the same rules.In a dataset with an imported contract, the scan compares the schema it reads with the contract's and classifies each difference: a column removed, renamed or with its type changed at the source opens a «Parte o contrato vX.Y» ("Breaks contract vX.Y") issue, with the owner and the declared consumers, and the gate fails; a new column, or a type that was never the contract's, is only a warning (
backend/app/domain/scans/contract_schema.py, card #1326).
Limits: the SQL only uses functions that exist in PostgreSQL, BigQuery, Snowflake, Databricks and
MySQL. SQL Server/Fabric and SQLite do not have REGEXP_REPLACE and get only the PySpark. The
data_iso column comes out as text and is only filled with days that exist in the calendar. In
the SQL, the NIF and the DNI/NIE are recognised by their shape; the check digit is only validated
in the sample report. For phone numbers, the recognised country codes are those of a fixed list
(Portugal, Spain, United Kingdom, USA, France, Germany, Italy, Switzerland, Luxembourg, Belgium,
Netherlands, Ireland, Brazil, Angola, Mozambique and Cape Verde), and the others are not
decomposed.
Tests: backend/tests/test_parsing_composite.py (corpus and components),
backend/tests/test_parsing_sql.py (SQL compiled in PostgreSQL and BigQuery, derived columns
NULL outside the recognised rows, PySpark and API), backend/tests/test_postgres_only.py (the SQL
run on PostgreSQL in the backend-postgres job), backend/tests/test_suggestions_standardization.py,
backend/tests/test_suggestions.py, backend/tests/test_quality_rules.py.
Matching and deduplication
Everything is a proposal. BeryX scores and groups the records, the reviewer's decision is recorded in BeryX and the consolidation comes out as read-only SQL and PySpark. Nothing is written to the source.
- Detection of exact (hash) and approximate (text similarity with
rapidfuzz) duplicates within a dataset, grouped into clusters that are reviewed, merged or ignored in the UI, with a consolidation proposal in SQL (deduplicationROW_NUMBER) and PySpark. - Matching between two datasets, including from different sources (e.g. customers in the CRM and
in the ERP — entity resolution): exact, normalised (email, phone, NIF, name, postcode) or
approximate keys, with pairs, unmatched rows, ambiguous rows and coverage, on the
"Matching" page (
backend/app/domain/quality/matching.py, method). For each pair, the record that would remain (the most complete, then the most recent, then side A), with the reason and a diagnosticSELECT. - Matching rules configurable per field, saved per pair of datasets
(
backend/app/domain/quality/matching_rules.py): for each field, the comparator, the normaliser, the weight and the minimum similarity. The comparators areexact,normalized,jaro_winkler,token(token_sort_ratio),numericwith a tolerance anddatewith a window in days (backend/app/domain/quality/matching_comparators.py). Among the normalisers, "Company name" (company_name) drops the legal form at the end of the name (Lda, Unipessoal, S.A., S.L., Ltda, EIRELI, Inc, LLC, Ltd, PLC, AG, GmbH, Sàrl) and "Person name" (person_name) ignores the particles ("de", "da", "dos", "del", "van") and accepts a name missing some surnames at 0.9 (backend/app/domain/quality/entity_names.py). Blocking is by key, by prefix or by a phonetic code for Portuguese, and there are two thresholds: match (0.85 by default) and review (0.70). In the UI, the columns on each side are chosen from the schema of the two datasets, and fields (up to 12) and blocking rules (up to 4) can be added and removed. With no fields chosen, the rule is built from the suggested keys. - Clusters reviewed in the UI: each row is linked to its best candidate and the links form clusters across the two datasets. A cluster is in "match" when its weakest link passes the match threshold, and in "review" when it falls between the two thresholds. In the "Matching: rules and clusters" section of the "Between datasets" view of Duplicates, each cluster shows the similarity of each field and is marked as merged or ignored. The decision is tied to the cluster's rows, not to the run: it holds in the following runs while the cluster has the same rows, and it goes into the audit trail.
- Survivorship rules per field (
backend/app/domain/quality/survivorship.py): priority source, most recent (by the update column of each dataset, which the suggestion detects by name; without both, the rule is refused), most complete or most frequent, with ties broken by the order of the sources and then of the rows. The consolidated record is only proposed, and each field says which source and which row the value comes from and by which rule. It is exported as a read-onlySELECTor as PySpark with no writes, and it can go on as a suggestion that, once accepted, opens a pull request in the customer's repository (cleansing and remediation). - Metrics per rule set: candidate and scored pairs, clusters in each band, match rate, review decisions (merged, ignored, pending) and the precision observed in those decisions.
- Labelled benchmark (synthetic, Portuguese): with the rules suggested for CRM × ERP and the default thresholds, precision 1.0 and recall 0.85 on 10,000 rows, and precision 1.0 and recall 0.83 on 2,000 (method).
Rule runs happen outside the scan, on the matching queue, over a deterministic sample of up to 50,000 rows of each dataset. With personal data columns in the rules, the run asks for confirmation, as in key matching. The clusters store the scores and a hash of each row. The example values are truncated, with personal data masked, and retention deletes them.
Limits: matching runs in BeryX over that sample, with no pushdown to the source. Each rule set compares two datasets. The thresholds are not tuned automatically from the decisions: the observed precision is shown and whoever manages the rules decides whether to change them. A block with more than 200 rows on one side generates no candidates and is counted. The phonetic code is our own reduction of Portuguese spelling, not a published algorithm. In the exported SQL, the JOIN uses only the equality fields and each row is an A × B pair, with the same choice the app makes for that pair; the pairs that depend on similarity fields, and the choice among more than two records of a cluster, are in the app's clusters.
By design, we are not an MDM hub: we do not maintain a persisted master record or write the golden record to the sources (what we do not do).
Tests: backend/tests/test_duplicates.py, backend/tests/test_duplicate_constellation.py,
backend/tests/test_matching.py, backend/tests/test_record_matching.py,
backend/tests/test_matching_bench.py, backend/tests/test_matching_rules.py,
backend/tests/test_matching_rules_api.py.
Cleansing and remediation
By design: we propose, we do not write.
BeryX proposes the fix — generated SQL and PySpark, with estimated savings and analysed risk (safe vs breaking) — and the customer applies it. We do not ask for write credentials and we never write to the source.
Remediation as a pull request: the fix opens a PR in the customer's GitHub, GitLab or Azure DevOps Repos repository (SQL/PySpark models and dbt tests), for review through the process that already exists.
Governed flow: proposed → accepted → applied → verified, with an audit trail and automatic verification on the next scan.
Rehearsal before accepting: counts at the source, read-only, the rows the fix touches, and never applies it. A fix that looks the value up in another table of the same connection is also counted (card #1405): in rows of the dataset's table, each one once, with a time and a row cap. Only the tables the requester can see are read, without depending on sensitive columns they cannot see, and the number only shows to whoever can read every table it counted (
backend/app/domain/insights/rehearsal_joins.py,backend/app/domain/insights/rehearsal_access.py).Apply the fix where the problem is: on the issue, the incident and an incident's AI report, «Fix» shows the code of each fix (the diagnosis fix in SQL, pandas and PySpark and the dataset suggestions with code) to copy. With a git repository connected, an admin opens the PR, which stays linked to the issues it fixes. A report fix first becomes a suggestion with the link to the report, and the PR code is that of the stored report. Without a repository, the screen gives the code to copy and says where the repository is connected. The PR status (open, merged, applied, verified) shows in the same places and on the suggestion card in the dataset detail (
backend/app/domain/remediation/service.py,backend/app/domain/remediation/report_fixes.py).Resolve and verify: whoever resolves an issue says what they did (PR, fix at the source, other). On an issue from a rule, it stays «awaiting verification» until the next scan evaluates the rule: if it passes, it is verified in that scan, with the badge in the list; if it fails, it reopens with the reason. «Resolve without verifying» is still possible, with the reason, and is marked as such. A close by the scan itself also counts as verified, and the team lens verified MTTR only counts these (
backend/app/domain/issues/verification.py).
Tests: backend/tests/test_git_remediation.py, backend/tests/test_git_azure_devops.py,
backend/tests/test_remediation_lifecycle.py, backend/tests/test_remediation.py,
backend/tests/test_report_fixes.py, backend/tests/test_issue_verification.py.
Enrichment
Everything is a proposal. BeryX adds to each value of a column what a reference source says about it, with its origin, and generates the SQL in the connection's dialect and the PySpark. The customer is the one who applies it, by pull request or SQL after approving the suggestion, and nothing is written to the source.
- Six enrichment types, chosen by the column's semantic type in the last profile and, for the
Spanish postcode, by the column name (
backend/app/domain/quality/enrichment.py):- Portuguese postcode (CP7) → locality, municipality and district, in GeoAPI.pt (data from CTT, the Portuguese postal service, and INE, the statistics office);
- Spanish postcode → locality and autonomous community, in OpenStreetMap's public Nominatim, which receives only the postcode;
- company tax number (NIF) → name and address registered in the European Commission's VIES. Only the NIF of a legal person (first digit 5, 6 or 9) is looked up. The NIF of a natural person is out of scope and does not leave;
- address → latitude and longitude, in a Nominatim instance of the customer's own. Addresses do not go to the public Nominatim, whose usage policy asks that no personal data be sent to it;
- country → ISO 3166-1 alpha-2 code, and currency → ISO 4217 code, from the ISO lists versioned in BeryX, with no external lookup.
- Provenance: each proposed value carries the source, the lookup date and the confidence.
Each proposal gives the coverage in the sample, that is, the rows with a proposed value among
the rows with a value in the column. A value the source does not know, that goes over the
lookup cap or whose source did not answer gets no proposal, with the reason. In VIES, a field
published as
---counts as having no value. - Proposal (
enrichmentsuggestion,backend/app/domain/quality/enrichment_service.py): step 1 counts, read-only, the rows to enrich, and can be rehearsed on the source (rehearsing a fix). Step 2 is a proposedUPDATEon a column of your choice, which only fills the rows where it is empty, or, with no column chosen, aSELECTthat joins the proposed fields. The SQL's reference table only carries values the source confirmed: postcodes, company NIFs and ISO codes. For geocoding, the SQL carries no addresses: step 2 joins a table of coordinates that the customer loads. Like any accepted suggestion, it can go through a pull request to the customer's repository (cleansing and remediation). Scans do not delete a proposal awaiting approval: only a new proposal for the same column and type updates it. Once applied, the suggestion does not become verified on its own, because the scan does not measure enrichment: it is marked as verified by hand, on the suggestion card. - Opt-in per provider: no value leaves before an administrator allows the provider in the
workspace, under "Rules → Enrichment providers" or in
PUT /api/v1/workspace/enrichment. The authorisation records who consented and when. Without authorisation, the sample is not even read. It is separate from the authorisation of theaccuracyrule. What leaves for each provider is in SEGURANCA.md. - Geocoding only in the customer's instance (
nominatim_self_hosted): to allow it, the administrator gives the instance URL (nominatim_url) and confirms that the addresses may be personal data (confirm_personal_data). Changing the URL asks for that confirmation again, and withdrawing the authorisation deletes the URL. Without a configured and allowed instance, no address leaves. The URL goes through the anti-SSRF guard when it is saved and on every lookup. An instance behind authentication is not supported. - API:
GET /api/v1/datasets/{id}/enrichmentlists the candidate columns, with the type and provider of each;POST /api/v1/datasets/{id}/enrichment/proposalsreads a sample of that column only, queries the provider and saves the suggestion (backend/app/api/v1/enrichment.py).
Limits: the proposal runs over a sample of the column, and the values that do not appear in it are left without a proposal. Each proposal has a cap on external lookups, and the public Nominatim answers 1 request per second. For the Spanish postcode, the public Nominatim returns a single result, so a code shared by several localities gives only one of them. GeoAPI.pt and the public Nominatim are free services with no contracted service level. The public Nominatim's values come from OpenStreetMap, under the ODbL licence, which asks whoever publishes them for attribution. Beyond the list above, BeryX does not add third-party data to the records: there is no paid postal service, commercial company database or geocoding outside the customer's Nominatim instance.
Tests: backend/tests/test_enrichment.py.
Metadata management
Automatic catalogue of all sources, with domains/data products, owner and members.
Lineage: foreign keys, the SQL of views (at column level), the dbt
manifest.json, third-party OpenLineage events — OpenLineage — and Unity Catalog lineage and the Data Lineage API of Knowledge Catalog (formerly Dataplex), read in the catalogue import (cards #691 and #692).Lineage from the system tables (card #1179): on every scan, who wrote what on Databricks (
system.access.table_lineageandsystem.access.column_lineage), Snowflake (ACCESS_HISTORYandOBJECT_DEPENDENCIES) and BigQuery (INFORMATION_SCHEMA.JOBS_BY_PROJECT), per table and, where the source gives it, per column, with its origin and the last time it was seen. Names that are not datasets stay as external nodes, and edges that stop appearing turn stale before being removed — Connectors.Lineage explorer (page
/linhagem,GET /lineage/graph, card #714): the workspace's table → table graph and, when you expand a dataset, column → column, with dashboards and models as final nodes. Nodes are coloured by trust (the catalogue's trust score, "Trust B · 74", computed for up to 2,000 datasets, the most connected ones), quality score, open issues, sensitivity or certification. Filter by connection and by the domains the requester can read, expand upstream and downstream hop by hop, show the shortest path between two datasets and export the view as PNG, SVG or JSON. The same view exists as a hierarchical list, and column lineage can also be read as text, in the dataset panel and in the list. The graph works by keyboard and the layout runs in a Web Worker. A dataset the requester cannot see only appears as "Restricted dataset", linked to a visible one (app/domain/lineage/explorer.py).The source of each table in the lineage (page
/linhagemand the dataset details, card #1205): each node shows the connection the dataset belongs to, with the icon of the connector family (database, warehouse, lakehouse, files, cloud, application…), and the medallion layer. Nodes can also be coloured by source, one colour per connection (five colours; from the sixth on, "Other sources"), and "Group by source" puts each connection in a lane with its open issues, with final nodes and restricted ones in lanes of their own. The summary by source gives, per connection, the tables, the open issues (and how many dashboards or models they reach through lineage) and the average trust, those with issues first, and filters the graph by it on click. The legend explains the colours of each mode. The node panel shows the connection, the connector and the layer. On the dataset details, a small graph shows the direct parents and children, with the source and the issues of each, and opens the explorer centred on it (GET /lineage/graph?dataset_id=, which answers 404 to whoever cannot read the dataset).Lineage gaps (page
/linhagem,GET /lineage/gaps, card #1186): the silver and gold datasets, and those that feed a dashboard, with no incoming derivation edge (a foreign key does not count; an external OpenLineage node, such as the bank statement, counts as a parent, card #1248), those feeding dashboards first, and the coverage by layer and by connection (app/domain/lineage/gaps.py). Whoever can write to both datasets declares the parent with a reason: the edge is stored asdeclared, with who declared it, and the dataset leaves the list (app/domain/lineage/declare.py). An admin maps Power BI semantic models to the datasets they read by hand, when the scanner falls short.Suggested derivations (the
/linhagemgaps, Suggestions and Steward,GET /lineage/suggestions, card #1210): for each dataset without a derivation parent, up to three candidate sources, with the confidence and the evidence of each signal: the layers in order in the name (raw_→stg_→int_→fct_/dim_→mart_, bronze → silver → gold, the operational source before everything), the same name without the layer, a_v2,_histor_snapshotcopy, the columns in common (normalised name and compatible type, without the technical ones), the same unique key in both (the same grain; a key that repeats in the child is a foreign key and does not count), row counts that rise and fall together between scans, a table that changes up to six hours after the source (the last modification the source reports) and the queries that read both (co-usage; writes in the system tables already givewarehouseedges). Without the same table name or columns in common, or without a direction, there is no proposal (the same key alone is not enough), and gold never feeds staging (app/domain/lineage/parent_candidates.py). It runs at the end of every scan for its connection, in a savepoint and capped (200 datasets, three per dataset), never failing the scan, and on demand. Whoever can write to both datasets accepts (the edge is stored asdeclared, with the reason and who accepted it, and the gap closes) or rejects (the pair never comes back); a pending one leaves when the dataset gains a parent (app/domain/lineage/suggested_parents.py). Zero LLM.Publishing to the customer's catalogue: quality verdicts in OpenMetadata and DataHub, and "Data Quality Metric" assets in Collibra (Import API v2). In Microsoft Purview, the verdict, score, scan date and BeryX link go into table attributes in the Data Map; the Data Map classifications, labels, owners and glossary are read into the lightweight catalogue. The Data Map ends on 12 November 2027 (Microsoft announcement of 12 November 2026). In Databricks Unity Catalog, the trust score, verdict, failed rules, unresolved issues and certification go into
beryx_*tags on the table; the owner, tags, column comments and lineage are read into the lightweight catalogue. In Knowledge Catalog (card #692), the table's entry gets three BeryX aspects: verdict and trust score, rule results and open issues. Knowledge Catalog connects without a JSON key (BeryX impersonates a customer service account) and is also read: descriptions, glossary and lineage. In Alation (card #693), the table and its columns getberyx_*data quality fields through the Data Quality API: verdict and score, trust score, open issues, certification and one entry per rule, each GOOD, WARNING or ALERT. With a FAIL verdict, the table also gets a Warning trust flag from the integration's user, which is removed when the verdict changes. BeryX does not write owners, terms or descriptions in Alation. In Atlan (card #695), the table gets the attributes of the "BeryX" custom metadata, which an Atlan admin creates: verdict, score and summary, the rules, trust score and grade, open issues, certification, link and scan date, each in the type the attribute has. With a FAIL verdict, the table also gets a BeryX announcement, only if it has no other one, which is removed when the verdict changes. BeryX does not write owners, terms, tags or the Atlan certification. In Informatica CDGC (card #694), each rule and the verdict go up asBERYX-…Data Quality Rule Occurrences linked to the table, with the 0-100 score and the rows read and failed, in one bulk import per push. Sign-in uses the IDMC user and password, bound to the pod's two hosts. BeryX does not write owners or terms in CDGC. Collibra, Purview, Unity Catalog, Knowledge Catalog, Alation, Atlan and Informatica CDGC are validated with a simulated transport; validation in a customer tenant or project is pending — external catalogue.Sensitivity classification per column (personal data) and README per dataset generated and approved by a human.
AI-suggested descriptions (card #687) for the dataset and the columns with no description, built from the metadata and the aggregated profile (type, keys, % nulls, distinct values and sensitivity, never row values), through the
catalog_docstask of the LLM routing. With no model available they come from templates, in pt, en or es. All suggested text goes through the output guard before it is stored, and an edit with personal data is refused. Each suggestion stays marked "suggested by AI" until a person accepts it, as it came or edited, or rejects it, and only an accepted one goes into the catalogue, with history and audit. The owner of one of the dataset's domains or an admin decides on the dataset itself, and an admin decides in bulk in the review queue (GET /description-suggestions). The "Suggest descriptions" action of the bulk operations generates for every dataset in the selection, and the rollback deletes the suggestions nobody decided. Datasets with docs from dbt or from the external catalogue are left out, because the customer's catalogue of record still wins (backend/app/domain/catalog/descriptions.py, external catalogue).Catalogue from the graph (card #715, "Graph suggestions" screen, admins only): an engine with no LLM reads the table and column lineage, the declared keys (also those from the inventory), the profile and the co-usage in queries (pairs of tables read by the same query in Snowflake and BigQuery, counts only). It proposes the description and the glossary term on a column copied 1:1 downstream, the classification of a copied or derived column (a
COUNT(email)does not inheritpii), undeclared foreign keys (a hint in the name, compatible type and profile), the domain (the same rule as the domain suggestions, and a "Dismiss" there counts as a rejection), the owner by strict majority of the neighbours and, only on request, data products by area. Each suggestion carries the confidence and the path in the graph that justifies it, as a list. Nothing is written until a person accepts: accepting applies through the usual service (the term goes through the link approval workflow, if it is on) and each decision is audited. A rejected suggestion only comes back if what it proposes changes (the upstream description text, for example) or, for a domain, the neighbours that voted for it. The pending ones reach the admins in the "My tasks" inbox. A kind only runs by default with precision ≥ 90 % on a test set with known answers, at least 5 cases and 3 traps (backend/app/domain/catalog/graph_engine.py,backend/tests/graph_golden.py).Catalogue and metadata quality (governance KPIs), per workspace and per domain: % of datasets with owner, description, classification, domain, contract and rules; outdated descriptions (the schema changed afterwards), owners who are inactive or have left, datasets with no usage and no owner, and docs for columns that no longer exist. Each problem comes with the suggestion through the channel that solves it (generated README, import from the external catalogue), with targets, daily trend and CSV export (
GET /catalog/metadata-quality,backend/app/domain/catalog/metadata_quality.py).Catalogue search with facets and ranking (card #681, the Datasets "Search" view,
GET /catalog/search): the datasets that match the text, with the cross-cutting search rules, or all of them without text, with eight facets and the count for each value: domain, effective owner, glossary term, sensitivity (the highest among the columns), trust score grade, usage level, certification and the AI models and agents that consume the dataset (card #685). Within a facet the values add up and across facets they narrow down, and each facet counts with the filters of the others. Only the datasets the person searching can see are included, and restricted domains without a grant do not appear in the facet. The order gives points, up to 100: text up to 50 (same name 50, words in the name 40, schema or description 25, column or term 20, tag 15), trust score up to 20, usage up to 20 (logarithmic scale, 1,000 queries/day give 20) and certified 10. Ties are broken by text, trust, usage and name, and each result shows the factors that put it there ("column cliente_id (+20) · certified (+10)"). The text, the filters and the page live in the URL, which can be copied to share the search. The filters and the facets count all the visible datasets that match. Only the trust score, computed on read, is limited to the first 2,000 that pass the other filters, in the order without trust. Above that, the response says so (capped,trust_scored): the trust facet and filter count only those, the rest come at the end, without the trust points, and the count and the empty state say so (backend/app/domain/catalog/faceted_search.py,frontend/src/components/CatalogSearch.tsx).Catalogue of data and AI assets (card #1216, the
/catalogopage, in every profile's menu,GET /catalog/assets): in a single list, the datasets, the vector stores (datasets with embedding columns), the data products, the glossary terms, the business metrics, the AI models and agents and the dashboards, with nine facets: asset type, domain, source (the connection), owner, tag, certification, trust, sensitivity and layer (medallion). The facets are disjunctive, as in catalogue search. An asset that is not a table answers to source and domain through the visible datasets it reads: filtering by source and domain finds the table and the AI agent that reads it. The trust of an agent, a dashboard, a metric or a data product is that of the weakest visible dataset. Each result carries the path (source › schema › table), the owner, the trust, the status and the link to its usual page. Only what the person searching can see is included, and a data product without read access shows only the name, the description and the owner, as in the showcase (backend/app/domain/catalog/asset_catalog.py,frontend/src/pages/Catalogo.tsx).Metadata events in the webhooks and catalogue search in MCP (card #688): a channel asks, in
event_kinds, for the events of a dataset created or removed, a schema changed, an owner or steward changed, a glossary term approved and a certification changed. Each event is recorded in the transaction of the change, and the worker delivers it signed, withIdempotency-Key, within the channel's scope and a team's. A discovery or a deleted connection gives at most 100 events, and the last one says how many were left out. The MCP toolsearch_catalogreadsGET /catalog/searchwith the caller's credentials and does not carry the owner (backend/app/domain/catalog/metadata_events.py,backend/app/domain/alerts/metadata_dispatch.py,backend/app/mcp_catalog.py; see WEBHOOKS and MCP_SERVER).Business glossary (Team plan or above): terms such as "Net revenue", with definition, synonyms, domain and owner, linked to the datasets and columns that implement them. Approving a term or a link is for an admin or the owner of the term's domain, and it goes into the audit log. The term inherits the quality of the approved columns: the datasets' score and the unresolved issues of each column, with the explanation ("is at 51.7 because of 2 issue(s)…"). The suggester proposes columns by name, by synonyms, by semantic type and by dbt description, without an AI key; with AI, the suggestion is marked as AI-generated. A suggestion is never created already approved. Approved terms go into the ODCS contract (
businessNameandtags), intodatavault.yaml, into the catalogue search, into the assistant (search_glossary) and into the MCP server (glossary://terms) (backend/app/domain/catalog/glossary.py,backend/app/api/v1/glossary.py). In the app, the Glossary page searches, creates, edits and approves terms and reviews the suggestions, and the dataset's column table shows each column's terms (accepted with a solid border, proposed with a dashed one), with "+ term" and the notice of links still to review (frontend/src/pages/Glossario.tsx,frontend/src/components/DatasetTermChips.tsx).Glossary terms suggested from the sources (card #1209): BeryX proposes new terms from the concepts that repeat across datasets under similar names and have no term yet.
cliente_id,id_clienteandcustomer_idin three sources give "Cliente". The column name becomes a concept through a pt/en/es vocabulary (synonyms, singular forms,cod/code/keyas the key,em/atas a date), and a table'sidkey joins the columns that reference it. A column whose name does not repeat joins through the profile's semantic type (email, NIF, IBAN, phone, postal code). On their own, generic words such asid,nome,dataorestadodo not make a term. A column that the lineage says is a copy of another (bronze → silver → gold) counts once, at the origin (card #1247): through column lineage (the direct copy, or a transformation that keeps the concept, such asTRIM(nif) AS nif) or, without it, through the table derivation with the same column name. Adding a copy never creates a term. Each suggested term carries the name, a definition, the synonyms, the columns to link, the datasets' most common domain and the evidence (the same concept in several datasets, under different names, a table's key, the semantic type, PII and descriptions). The definition comes from the column's description (dbt, catalogue or accepted) or from a template. With AI, the LLM writes it through the facade (kind="glossary", names, types and descriptions only, never values); it is labelled as AI-generated and goes through the output guard. No duplicates: a concept that a term already covers (by name, by a synonym, in another language or through its linked columns) is not proposed. Discovery runs at the end of each scan, without AI, with caps and without ever failing the scan, and on demand (POST /glossary/term-suggestions/discover). Accepting creates the term as a draft and proposes the links, approved through the usual flow. Rejecting never proposes the concept again. Each person only sees the columns of the datasets they can access. In the app, the Glossary has the "Suggested terms" section, Suggestions shows how many are waiting and the Steward plan carries thereview_glossary_termsaction (backend/app/domain/catalog/glossary_discovery.py,backend/app/domain/catalog/glossary_term_suggestions.py,frontend/src/components/GlossaryTermSuggestions.tsx).Glossary hierarchy, categories and relations (card #677): a term has a broader term (the parent) and a category ("Finance"), and relates to others as a synonym, "contains" (from the whole to the part) or related. The hierarchy accepts no cycles and no more than 6 levels, and "contains" cannot close a cycle either. On a term that is no longer a draft, whoever approves it changes the structure, on every term the change touches: both ends of a relation, and the old and the new parent. A term imported from the customer's catalogue is read-only, also as the other end. With the terms' flow in held mode, the structure of an approved term does not change (409), because the flow does not carry it yet (
PUT /glossary/terms/{id}/hierarchy,POST /glossary/terms/{id}/relations,backend/app/domain/catalog/glossary_hierarchy.py). The dictionary for the customer's catalogue carries only approved terms and keeps the hierarchy (it is a file: BeryX publishes, it does not replace the catalogue, #407). An ancestor not yet approved cuts the published path: the term sits under the last approved one in the chain. In OpenMetadata, there is oneCreateGlossaryTermper term, parents before children, with theparentand therelatedTermsby FQN, and the columns cite the term by the FQN with the path. In DataHub, each category and each term with children is aglossaryNode, and the term carries theparentNodeand the relations inglossaryRelatedTerms(backend/app/domain/catalog/dictionary.py). In the app, the term shows the path, the narrower terms and the relations, and edits them (frontend/src/components/GlossaryTermStructure.tsx).Domain roles, subdomains and owner re-attestation (card #677): a domain has a parent domain (no cycles, at most 5 levels; an admin changes it), stewards and custodians besides the owner, and a RACI matrix per activity (definition, quality, access, classification and lifecycle) with a single "A" per activity. The roles grant no permissions. Whoever manages the domain changes the roles and the RACI. Every 180 days the owner attests they still answer for the domain, and again as soon as the owner changes (in the app, the API, GitOps or the import from the customer's catalogue) or the IdP deactivates the account or removes from a team someone with a role in the domain (SCIM, deleting the group in SCIM, or the IdP groups at login), or an admin deactivates that account in the app (
PATCH /auth/users/{id}, reason "account deactivated"). Only the owner attests: an admin or a token gets 403. An overdue attestation, or one 14 days from its due date, appears in the owner's inbox (ownership_attestation) and leaves it when they attest. The board pack section (GET /ownership-attestations/board-pack, also in Markdown) gives the counts per state and the list of overdue ones, with the domain, the owner, the due date, the days overdue and the reason. The owner suggestion scores people by the domain's datasets they own or steward, with more weight for the ones most queried in the last 30 days, and by the upstream datasets in the lineage they own. Only the datasets the requester sees count. The response carries no dataset names, only counts per kind of evidence (GET /domains/{id}/stewardship,backend/app/domain/catalog/stewardship.py,backend/app/domain/governance/ownership_tasks.py). In the app, the domain has the "Roles and ownership" panel (frontend/src/components/DomainStewardshipPanel.tsx). The app's board pack (under Governance) does not carry this section yet: it is read through the API, like the agents' one.Ghost owners (card #759): the state of the accountable person applies to every governed object with one: the dataset, the domain, the local glossary term, the metric definition (the owner and the definition authority), the critical data element, the policy and the AI agent or model (the owner and the prompt owner). Retired objects, deprecated terms, external terms and planned AI use cases are left out. The states are the ones of the metadata KPIs'
owner_inactive(left the workspace, account deactivated, no sign-in for 90 days) plus a new signal, "silent": an active account with sign-ins but no attestations, approvals or decisions in the audit trail for 180 days, the cadence of a domain owner's attestation. For a policy owner, the window is the longest review period of their policies when it goes beyond 180 days (365 by default): whoever keeps the cadence the product asks of them is not silent. Nor is an account younger than the window. With the owner inactive, each admin gets the "Reassign the owner" task (owner_reassignment) in the inbox, per object and role, with the bell and email notice. The task has no due date and opens the object's page. It closes on its own once the owner changes or the account is active again. Above 500, the cap cuts by the worst state: deactivated accounts go in first, then those who left and last those with no sign-in. A silent owner does not ask for reassignment: it only shows in theGET /governance/ghost-ownersreport (admins only). The report lists the objects, worst state first, with the state, the last sign-in and the last decision of the owner. The counts per state cover every object, andtruncatedsays the list went past the cap of 500 (backend/app/domain/governance/ghost_owners.py).Role charter and "My roles" (card #762): five roles have a charter, the owner, the steward and the custodian of a domain, the definition authority of a registered metric and the owner of an AI agent. Each charter says what the role is and "the decision you take alone", tied to an activity where the role is the "A": for the domain roles, the ones in that domain's RACI matrix; the authority is the "A" of the metric definition, because it signs each version, and the agent owner the "A" of the handover, because only the new owner accepts it. There are default charters (the steward and the custodian with no decision of their own, because the default RACI gives them no "A"), and an admin changes them with
PUT /role-charters. A decision can only be tied to an activity where the role is the "A" in the default RACI or in some domain's. Attesting a domain's ownership confirms the version of the owner charter on screen. Without it, the attestation returns 422, and with a version that has since changed, 409. The confirmed version is stored on the domain. In "My tasks", the "My roles" tab (GET /tasks/my-roles) lists the objects the person answers for, up to 500, with the charter, the activities where they are the "A", the role that decides when a domain's RACI gives the charter's decision to another one and, for the owner, the attestation and whether it confirmed the charter in force. Objects of domains and datasets the person cannot see are left out, and a token has no roles (backend/app/domain/governance/role_charters.py,frontend/src/components/TarefasPapeis.tsx).Workload of each role and summary to the direct manager (card #822): in the same tab, a table shows per month and per role (owner, steward or custodian of a domain, plus "other tasks") the tasks that went through the inbox, the estimated time and how many went past their deadline or had it within the month (
GET /tasks/my-roles/load). A task's role comes from its domains; with several roles in the same domain the owner counts, then the steward. The time is an estimate per task type (EFFORT_MINUTES), not a timesheet, and each task counts once a month. An admin or the domain owner names the direct manager on the domain page (PUT /domains/{id}/role-managers/{user_id}; the owner's, only an admin), with the manager of one of the person's teams as a suggestion. Changing the manager turns sharing off, and the page asks for confirmation when it is on. Sharing belongs to the person (PUT /tasks/my-roles/load/sharing) and only turns on with a named manager. With it on, the worker stores the month once a day and, the following month, sends the manager, in their language, only the numbers per role, without task titles. The first summary says it only counts from the day sharing was turned on. Before sending it checks again that sharing is on and that both accounts are active. Every change of manager and of sharing goes to the audit trail (backend/app/domain/governance/role_load.py,backend/app/domain/governance/role_load_service.py,frontend/src/components/TarefasCarga.tsx,frontend/src/components/GestoresDiretos.tsx).Approval workflows (Team plan or above): the admin configures, per workspace, the workflow for glossary terms, the one for term → column links, the one for certification (see "Certification of datasets and data products"), the one for policy waivers (see "Policies and standards") and the one for access requests (see "Domain access requests, with an end date and recertification"). Each step has approvers (a role: admins, any member or whoever manages the term's domain; a team; or a person), a rule (one approves, all approve or the majority approves), an optional SLA in hours and who it escalates to (admins by default). Once the SLA expires, the worker escalates the request once per step and whoever receives the escalation decides the step alone. Someone who leaves a step (account deactivated, erased or turned into a Reader) stops counting for the rule, and if nobody is left to vote, the admins decide the step (or the request waits, if the workflow says so). On a step with no approver, the task shows it and the vote stays marked in the history. Whoever approved a step does not decide the later ones through delegation or escalation, even while their approver has yet to vote, nor as an admin on a step with no approver: another admin does, or whoever receives the escalation. Someone the workflow names on two steps votes on both, as does their delegate, and an admin's override, with a reason, can still close the request. When nobody can decide a request, it becomes a task for whoever asked and for the admins (
approval_no_decider,backend/app/domain/governance/approval_stuck.py), the certification panel and «Created by me» say so, and whoever asked, even a Reader, or an admin withdraws it (POST /api/v1/approvals/requests/{id}/withdraw): the request closes as cancelled and the object goes back to how it was before the request. On a waiver, whoever asked is whoever wrote it, even if someone else submitted it to the workflow. Someone going away delegates their approvals to another person for a period, under Governance, and the delegate's vote counts for the absent person. Each person's tasks appear in «My tasks» (/tarefas), next to the others, with a bell notice and an email when they arrive and when the step's SLA passes. With the links workflow on, it takes the links proposed by hand, the ones from «Suggest links» and the ones already proposed when the workflow was switched on, and the term shows the step of each one. The history of each request (who decided, at which step, on whose behalf, with what comment) stays in the audit log and on the term: the term's in its own section, each link's in the «Where it is used» table. With no workflow configured, the previous one applies: an admin or whoever manages the domain approves (an admin decides a waiver). Each request, and each assistant action request (the MCP'spropose_actionincluded), carries a preview of what changes if it is approved, computed without AI (card #699): the field-by-field diff, the downstream assets and consumers (agents included), whether it resets the history of a rule or detector and the estimated cost per scan and for AI. A part or a diff line that cannot be computed shows as «Unknown impact», with the reason (for example, the definition of a term approved outside the workflow, which the history keeps only up to 500 characters, or an object that changed after the request). For a held edit, the diff is the proposal against the term. For a metric registry request (card #944), the diff brings the formula, the filters, the grain, the owner, the authority, the terms and the source datasets by name, all of them on submission and only the ones that change on a held edit, and the impact is the source datasets. «My tasks» shows it under «What changes?» (backend/app/domain/governance/approvals.py,backend/app/domain/governance/approval_config.py,backend/app/domain/governance/request_preview.py,backend/app/domain/governance/metric_registry_preview.py,frontend/src/components/RequestPreview.tsx,backend/app/api/v1/approvals.py,frontend/src/pages/Tarefas.tsx,frontend/src/components/FluxosAprovacao.tsx,frontend/src/components/ApprovalHistory.tsx,frontend/src/components/DelegacaoAusencia.tsx).The guarantees an audit asks for:
- Veto. Each step has a rejection threshold: by default, one rejection brings down the step
and the request. With a higher threshold, the step only falls with that number of rejections,
or when the votes still missing can no longer reach the rule (
approvals._outcome). - The requester does not decide. Whoever requested (whoever submitted the request and the
author of the term, the link, the waiver or the access request; in a held edit, only whoever
made the edit) never decides their own request: they do not count as an approver of the step,
nor through delegation, escalation, fallback or override. If no other approver is left, or the
step's approvers resolve to nobody, the workflow says what happens: the
workspace admins decide, except the requester, or the request waits
(
approval_config.barred_voters,approval_config.step_approvers,approvals._enter_step). - Agents do not approve. An API token (with or without an agent record), a call from an MCP
tool, Microsoft 365 Copilot and the automatic steward get 403 when deciding. The MCP has no
tool that decides (
backend/app/api/v1/approvals.py,approval_guard.is_agent). - Proposal with a base. The request keeps what is being approved, the value of each field of
the object when it opened and the SHA-256 of both. Before each decision, the object is compared
with that base: if it changed, the request goes "in conflict" and nothing is applied over it
(
backend/app/domain/governance/approval_guard.py). - Append-only decisions. Approving, rejecting and an admin's override add a line to the
history, which is never edited or deleted. GDPR only removes the person. The override decides
the request over the remaining steps, always asks for a reason, and the reason stays in the
history and in the Audit log (
backend/app/domain/governance/approval_outcomes.py). - Held edit. With held mode on in the terms workflow, an edit to an approved term does not
apply at once: it waits for the workflow, the term shows the previous version and whoever
proposed it does not decide it. Once approved, it enters the term with the history of each
field (
glossary.update_term). - Expiry. A workflow with a deadline in days closes the request as "expired" when nobody
decides it in time. An expired or conflicting request goes back to the requester as a task in
«My tasks», until they request again (
backend/app/domain/governance/approval_returns.py).
- Veto. Each step has a rejection threshold: by default, one rejection brings down the step
and the request. With a higher threshold, the step only falls with that number of rejections,
or when the votes still missing can no longer reach the rule (
Tasks generated by measurement and batch actions («My tasks»,
/tarefas): besides what waits for a decision, the inbox shows what measurement knows is missing, to the dataset owner (its own or the one inherited from the domain) or, with no owner, to the dataset steward. There are four types: the coverage KPI checks that fail (owner, description, classification), the critical issue of a rule with no person or team assigned, the critical data element with no responsible person and the certification less than 14 days from its end. On a dataset with no owner and no steward, the missing owner goes to the admins, and the description and the classification go to nobody until there is one of the two. They are not stored: each read recomputes them, so they close by themselves when the data is fixed. The metadata ones do not count in the menu or notify in the bell or by email, because they are the coverage backlog, with no deadline. The list puts the overdue ones first and then the critical ones (a dataset with a CDE, a critical issue), by deadline. Approving, rejecting with a comment and reassigning work in batch, and permission is checked item by item: only the tasks in the requester's inbox go through, decided by the service of the origin route, and the rest stays undone, with the reason. An agent does not approve or reject in batch, as on the decision route, and a Viewer, even with aneditorgrant, decides on the original screen. The «Created by me» tab lists the pending requests the person opened, and an access request and a change to a RoPA activity (admins only) can be withdrawn from there. With an active absence delegation, the delegate also receives the absent person's generated tasks, with their name. Overdue tasks also reach Slack and Teams, through the collaboration outbox: on each notice tick, onetasks.overdueevent per domain, with the domain name, how many became overdue, how many are critical and the link to the inbox filtered by that domain, with no titles and no people. Only the channels with that subscription receive it, and the «Presence» page policy is read before each send: the pause skips it and «links only» drops the domain name (backend/app/domain/governance/generated_tasks.py,backend/app/domain/governance/task_actions.py,backend/app/domain/governance/task_channels.py,backend/app/api/v1/tasks.py).Certification of datasets and data products: the badge has five states (requested, certified, in review, revoked or rejected). Each certificate keeps who certified, the date, the validity (180 days by default, up to 730) and the evidence of the criteria. The criteria are automatic: owner (the dataset's own or the one inherited from the domain), description, active and unbroken ODCS contract, critical rules passing and a score of at least 80. In a data product they apply to all of its datasets, and the lowest score counts. The request only opens with every criterion met and goes through the certification approval workflow. With no workflow configured, an admin or whoever manages the domain approves. Approval checks the criteria again and only a person approves: an API token or an agent can request, but does not certify. When the validity ends, the worker puts the certificate in review and opens the recertification request, which shows up in «My tasks» and opens on the dataset or the domain. At the end of each scan, a certificate whose contract broke, whose verdict turned to fail or whose score fell below the minimum also goes into review. Approved, the recertification gives a new validity; rejected, the certificate is revoked. An admin or whoever manages the domain revokes, with a reason. The badge shows in the API (
GET /certifications,GET /datasets/{id}/certification,GET /domains/{id}/certification), in the MCP (get_certification, read-only) and in the customer's catalogue: thedatavault_qualitycase published to OpenMetadata, DataHub and Collibra carries the status, the validity and the badge in the summary. Purview only receives the verdict; Unity Catalog, the status in theberyx_certificationtag and the validity inberyx_certified_until. In the app, the badge, the criteria, the request and the revocation show on the dataset page and on the domain page. The catalogue's Datasets list and the domains list show the badge next to the name when the object is certified or in review. Someone who cannot read a restricted domain sees its name but not the certification status of its data product: the list, the tasks and the history leave it out. Deleting the domain or the connection deletes the certification and closes the open request (backend/app/domain/governance/certification.py,backend/app/api/v1/certifications.py,backend/app/domain/integrations/catalog_sync.py,frontend/src/components/CertificacaoPanel.tsx,frontend/src/components/CertificationBadge.tsx).Certification of dashboards (card #1148): the same badge, the same workflow and the same validity, with other criteria (
backend/app/domain/governance/certification_dashboards.py):- Owner and description: the curation owner, with an active account, and a description (the curated one or the dbt one; the sentence the BI sync generates does not count).
- Upstream datasets: the dashboard's sources and all their ancestors along the derivation
lineage (never foreign keys), each one certified or with a green verdict. A
warn, a dataset with no scan with rules and a certificate revoked or in review because a criterion failed are not enough, and afailverdict always counts. With no upstream dataset, or with more than 200, it does not certify. - Registry metrics: the ones the curation links to the dashboard (
metric_ids), all approved. With none linked, this criterion does not count. A draft deleted from the registry no longer counts. - Who certifies: the certification workflow or, without one, an admin or whoever manages the domain of every source. The requester never decides, and approval checks the criteria again.
- The badge falls on its own: at the end of each scan, after the certified datasets fall, and every 15 minutes in the worker for what changes without a scan (a revoked certificate, a new lineage edge, an owner who left, a deleted metric). It falls once, with the reason and the date, the Audit event, the recertification request and the task "Review a dashboard's certificate", to the owner and to the requester. The pass reads the lineage once and writes in batches of 200. A dashboard that a BI or dbt sync left without sources loses its certification, with the Audit event and a notice in the bell of the owner and the requester. A dataset that leaves BeryX (the connection deleted) no longer counts upstream and does not make the badge fall by itself.
- Restricted domains: the badge combines the status of every upstream dataset, so only
someone who sees all of them sees it. To others the dashboard shows as not certified, the same
as one nobody requested, on the page, the list, search, the catalogue, tasks and requests. A path
that crosses a dataset you cannot see is cut there, as in the lineage. The refusal of a revocation
is the same in every state of the certificate, and requesting takes seeing every dataset in the
workspace, so the refusal says nothing about this dashboard. For the same reason the
certification.changedwebhook event is not sent. - Where it shows: on the dashboard page, with the upstream datasets and the status of each one
(
GET /catalog/dashboards/{id}/certification), in global search and in the asset catalogue, with its certification facet. External catalogues and the MCP do not receive it: they publish tables, and dashboards do not go there (backend/app/domain/governance/certification_upstream.py,backend/app/domain/governance/certification_dashboard_tasks.py).
Domain access requests, with an end date and recertification (page
/acessos). Each step goes to the audit log, without the text of the reason (backend/app/domain/access/requests.py,backend/app/domain/access/recertification.py,backend/app/domain/access/access_policy.py,backend/app/api/v1/access_requests.py,frontend/src/pages/Acessos.tsx).- Request. A member of a team (even with the Reader role) or an admin requests access for that team to a domain, read or write, to the masked version or to the sensitive values, with the purpose (BI, agent, RAG or training), the reason, the duration in days and, optionally, the external ticket. A team with a grant with no end date does not request: the domain's owner team changes it in the matrix.
- Approval. The request follows the access request approval workflow, which the admin configures like the others. With no workflow configured, an admin or the domain's owner team approves, as they manage the grants. The domain's named owner manages its content and does not decide access: the access request workflow does not accept the «whoever manages the domain» role. A Reader, even in the owner team, sees the domain's requests but does not decide access, as in the other workflows. A request for the sensitive values always gets one more step at the end, «Personal data», decided by the approvers the policy names (admins by default), and has a shorter maximum duration (30 days by default, against 180). When the policy turns it on, automatic approval approves a read request, masked and with a short duration, right away. A request for the sensitive values is never approved that way. The approver sees on the request the trust decision of the domain's datasets for that purpose.
- End date. Once approved, the request creates the team's grant with an end date. After the end date, the grant stops counting for access and for the personal data clearance, and the worker deletes it.
- In the source. The customer's sources are read-only. So the grant a request approved opens, for the domain's owner team and the admins, the task of carrying it out in the source, in «My tasks». When it goes, it opens the task of removing it: at the end date, on «Revoke access», in a recertification, when it is deleted in the matrix or when the team is deleted. The request then closes as expired or revoked.
- Recertification. A campaign, which an admin opens by hand or which opens by itself every N days, gives each domain's owner team and the admins one task per active grant: confirm or revoke. At the end of the campaign, whatever nobody confirmed is revoked, with the task of removing it in the source.
Owner and steward per dataset: each dataset can have its own owner and steward. Without its own owner, it inherits the owner of the first domain that has one. This rule is the same in the detail, in the dictionary, in search and in the metadata KPIs (
effective_ownerinbackend/app/domain/catalog/metadata.py). The steward is not inherited. Whoever can write to a dataset can change its owner and steward; only an admin changes a domain's owner. The dataset owner does not grant permissions.Tags per dataset and per column: the workspace chooses a tag policy. In free mode it accepts any tag; in controlled mode, only tags on the list can be added (the ones the target already had stay), and only an admin changes it. Editing the tags replaces the manual ones and keeps those from the external catalogue. Changing the owner, the steward or the tags goes into the audit trail (
PATCH /datasets/{id}/owners,PUT /datasets/{id}/tags,PUT /catalog/tag-policy). In the app, the dataset details page has the “Owner, steward and tags” panel, with the history and the diff between dates, and Datasets › Metadata has the tag policy.Exportable data dictionary per dataset, domain or workspace, in CSV, JSON, Markdown, OpenMetadata and DataHub. The dictionary carries descriptions, types, sensitivity, approved terms, tags, owner, steward, active rules and the domains' SLA. Terms are only exported in the plans with the glossary. The OpenMetadata file has one
PUT /api/v1/tables(CreateTableRequest) body per table and, separately, what that request does not accept: the owner and the steward by email (the request requires the user's id in OpenMetadata), the domains, the SLA and the rules. Tags and terms go into theDataVaultclassification and glossary, which must exist in OpenMetadata. The DataHub file hasUPSERTMCPs fordatahub ingest, with the owner asBUSINESS_OWNERand the steward asDATA_STEWARD. The FQN or URN comes from the catalogue sync mapping, if the connection has one. It is a file: BeryX does not send descriptions or tags to the customer's catalogue. In the CSV, cells that start with=,+,-or@are neutralised. Each request carries up to 2,000 datasets; with more, the response carriesX-Dictionary-Truncated: true(GET /datasets/{id}/dictionary,GET /domains/{id}/dictionary,GET /catalog/dictionary,backend/app/domain/catalog/dictionary.py).Metadata history: every change is recorded with the what, who, when, before and after. It covers changes of owner, steward and tags, sensitivity set by hand, term-to-column links created or decided through the API and edits to a term's fields. The history returns the 500 most recent changes in the window, with
X-History-Truncated: truewhen there are more; to go further back, pass inbeforethe id of the oldest one returned. The diff between two dates takes into account all the changes in the window and gives, per field, the value at the start and at the end (GET /datasets/{id}/metadata/history,GET /datasets/{id}/metadata/diff,GET /catalog/metadata-history,GET /catalog/metadata-diff). It is also included in the workspace export. The history starts with this version: earlier audit and sensitivity events were not converted.Cross-cutting search (
GET /search?q=): datasets, columns, glossary terms, tags, owners or stewards and domains (data products), the latter by name and description. Accents and case do not count ("regiao" finds "Região"). Columns live in a table of their own,dataset_columns, one row per column. Profiling, inventory and the dbt import update it on every write (backend/app/infra/db/catalog_index.py). On Postgres the search uses a stored index: GIN over a weightedtsvector(name, schema, description) andpg_trgmtrigrams, which accept one missing or extra letter in a word of 4 or more letters ("custmer" findscustomer_id). A wrong letter or two swapped letters do not always pass: "pagamneto" findspagamento, "emial" does not findemail. With 50,000 columns it answers in under 300 ms (pg_onlytest). On SQLite it matches by LIKE, without typo tolerance. Datasets in domains restricted for the person searching do not appear in any of the kinds (backend/app/domain/catalog/metadata_search.py). A restricted domain appears by name and description, as inGET /domains. For datasets, popularity counts too (card #686): the queries/day of the usage level add up to 0.3 to the score on a logarithmic scale (1,000/day give the maximum; the same name is worth 1), and on SQLite they break ties before the name.Usage from Postgres, SQL Server and Redshift (card #686): the telemetry collection (
POST /dashboard/finops/collect) also gives a usage level to the tables of these sources, from statistics only, without reading data or query text (backend/app/infra/connectors/usage_stats.py). On Postgres it reads the scans inpg_stat_user_tables, with no privilege beyond connecting to the database. On SQL Server it reads the seeks, scans and lookups insys.dm_db_index_usage_stats, with VIEW SERVER STATE. On Redshift it reads thescansteps inSYS_QUERY_DETAIL, without BeryX's own queries, with SYSLOG ACCESS UNRESTRICTED. The view keeps about 7 days, so the average divides by the days it shows, not by 30 (usage_log_keeps_window). Postgres and SQL Server only have cumulative counters, which do not say since when they count (Postgres keeps them across a clean restart, withstats_resetempty). So the average comes from the difference between two collections, at least 7 days apart, without the reads of BeryX's own scans, measured on the same counter before and after each scan (aTABLESAMPLEsample does not raise it, a parallelcount(*)raises it once per process). BeryX reads outside scans count as reads by others, and reads by others during a scan, on its tables, as BeryX's (backend/app/domain/scans/service.py). The first collection and a reset give no new level and do not touch the open warning. A table is only "unused" after 80 days in a row with no reads by others. With a read replica (or SQL Server's read-only intent), BeryX connects only to the secondary, never to the primary: the counters only count the reads made on it, the collection says so and no table becomes "unused" from them (backend/app/domain/finops/read_counters.py). Without the privilege or with Postgrestrack_countsoff, the connection comes out as unavailable, with what is missing, and the previous levels stay (backend/app/domain/finops/usage_priority.py). The Cost × quality panel shows, per connection, what is missing, what the replica does not see and how many tables are still waiting for a level, with the API texts in the language of whoever collects (frontend/src/pages/DashboardExecutivo.tsx).Global search in the app (card #680): on any page, ⌘K (Ctrl+K) or the Search button in the header opens a window over
GET /searchwith up to 5 results per type (datasets, domains, terms and columns) and the app pages the account can see, chosen with the arrow keys and opened with Enter. The/pesquisapage shows up to 20 per type, with a filter by type and what matched underlined (frontend/src/components/CommandPalette.tsx,frontend/src/pages/Pesquisa.tsx). Tags and owners have no destination in the app and stay in the API.BI dashboards and reports as catalogue assets (card #683): Power BI, Tableau and Looker dashboards (BI sync) and dbt exposures of type dashboard have their own page (
/dashboards/:id,GET /catalog/dashboards/{id}) and a listing (GET /catalog/dashboards), and appear in global search as the type "BI dashboards and reports", by name, label and curated description. The page shows the source datasets with the trust of each one, and the dashboard's trust is that of its weakest source. It also shows the usage the tool reported in the last sync (last view, total, "no views for N days"). Editors and admins write the curation (PATCH /catalog/dashboards/{id}): owner, description, tags under the tag policy, glossary terms and the registry metrics the dashboard shows. Each change goes to the audit log (dashboard_curated, only ids and field names), and the curation survives a dashboard that drops out of one sync and comes back (backend/app/domain/catalog/dashboards.py). A dashboard whose only sources are in domains restricted to the requester does not appear. The certification badge is under "Certification of dashboards". They are not yet published to the external catalogue, nor part of the faceted search (see external catalogue).AI models and agents as catalogue assets (card #685): the #674 registry of agents and models (
GET /compliance/ai-agents) is now also catalogue, with the same object and no copy. Each model or agent has its own page (/modelos-ia/:id,GET /catalog/ai-agents/{id}) and a listing (GET /catalog/ai-agents, with akindfilter). The page shows the owner (the person responsible or, without one, the text in the record), the model, the linked AI Act system, the status and the risk level. It also shows the lineage to the training datasets (training, validation and testing roles) and to the datasets consumed in production (inference), with the trust of each one. The model's or agent's trust is that of its weakest dataset, and each stage has its own. The datasets are those in the record, the same ones as the Annex IV datasheet, and only an admin changes them in the registry. In global search they appear as the type "AI models and agents", by name, model and purpose. In the Datasets "Search" view, the "AI models and agents" facet filters the datasets each one consumes, and each result says who uses it (backend/app/domain/catalog/ai_assets.py,frontend/src/pages/ModeloIaDetalhe.tsx). A model or agent whose only datasets are in domains restricted to the requester does not appear. In one that also consumes others, only the visible datasets show. They are not published to the external catalogue (see external catalogue).Pipelines as catalogue assets (card #684): Fivetran and Airbyte connectors (the snapshot of the integration's last sync), the customer's OpenLineage jobs (Airflow, Spark, dbt, Dagster, by the
producertool), dbt Cloud jobs and the Airflow DAGs reported byberyx-airflow(the pipeline is the DAG; the status is that of its latest run, failed if any task failed) have their own page (/pipelines/:id,GET /catalog/pipelines/{id}) and a listing (GET /catalog/pipelines), and appear in global search as the type "Pipelines", by name, tool and curated description and tags. The page shows the status of the last run, the cadence declared in the integrator, the datasets the pipeline reads and writes (in dbt Cloud, the models whose last run came from this job), the open issues on the datasets it writes (this pipeline's sync issues first) and the downstream impact: the datasets after the ones it writes, up to 5 hops and the first 50, the affected consumers (consumers blocked by the trust decision listed apart) and the total reach. Editors and admins write the curation (PATCH /catalog/pipelines/{id}): owner, description, declared schedule and tags under the tag policy. Each change goes to the audit log (pipeline_curated, only ids and field names), and the curation survives a pipeline that drops out of one sync and comes back (backend/app/domain/catalog/pipelines.py). A pipeline that only touches datasets in domains restricted to the requester does not appear; restricted ones downstream show as "Restricted dataset". What is missing: Azure Data Factory has no reader of its own (it only comes in through OpenLineage, if the customer emits it), the same Airflow DAG reported byberyx-airflowand by OpenLineage shows up twice, and pipelines are not published to the external catalogue nor part of the faceted search (see external catalogue).Data products showcase (card #689): the
/produtospage (GET /catalog/data-products) lists the published domains by name, with the description, the owner, the version and the date of the last publication. Deprecated ones only appear on request and drafts never. The data product is the domain, with no separate entity. To whoever reads the domain, each data product also shows the trust (that of the weakest visible dataset, as for dashboards and AI models), how many datasets have an accepted ODCS contract, with the bundle to download (GET /domains/{id}/contract), and the certification badge. In a restricted domain without a grant, or one withheld by an agent's record, only the name, the description and the owner show. The "Request access" button appears without read access and, with read access only, to request write access. It opens the Access form with the domain already chosen (/acessos?dominio=) and, for a write request, with the "Write" type (&papel=editor). Someone who is not in any team cannot request, because a request always comes from a team, and the page points them to the data product's owner. The showcase only reads, with a fixed number of queries per page (backend/app/domain/catalog/marketplace.py,frontend/src/pages/Produtos.tsx). It does not publish to the external catalogue (see external catalogue).Metadata-only inventory (card #682): per connection, scheduled (from every hour to once a week), it brings everything the connection sees without profiling or reading rows: schemas, tables, views and columns, with type, comments, primary and foreign keys, partitions and clustering (BigQuery) and the estimated count when the engine already keeps it (Postgres, MySQL, BigQuery). SQL sources read each schema's catalogue in one go. Salesforce, OData and SAP read the
describeor the$metadata. In sources where columns can only be inferred from rows (files, sheets, topics, collections, REST APIs, Dynamics), the inventory stops at the names, with one object per file and without opening Excel workbooks. Document sources have no inventory (inventory_modeinbackend/app/infra/connectors/inventory.py). The inventory lists every file, topic, collection and entity set, without the discovery cap (200 by default,inventory_tables). Each query has the connector's time cap and, on BigQuery, themaximum_bytes_billed. A run has a 30-minute deadline and a cap of 50,000 objects, and a run that stops halfway does not count absences as removals. Suspended tenants are left out of the schedule, and each connection runs one inventory at a time. The 1st complete run is the baseline. From then on, each new, removed or schema-changed table becomes an event, with the column diff and whether it breaks (backend/app/domain/catalog/inventory.py). Events and removed objects are kept for 90 days. Objects that are not datasets yet appear inGET /searchunder theinventorykind. It stays out of the monitored datasets and of the plan limit: an object becomes a dataset through the usual discovery. API:GET /connections/{id}/inventory,GET /connections/{id}/inventory/objects,PUT /connections/{id}/inventoryandPOST /connections/{id}/inventory/run(admin). For those who already have a catalogue of record, BeryX keeps publishing there (CATALOGO_EXTERNO.md).One-off export to an empty catalogue (card #690, the exception to #407): a customer adopting OpenMetadata or DataHub can take there, once, the datasets of the workspace's connections (up to 2000), with the columns and their type, the dataset and column descriptions, the tags, the approved glossary terms with their approved links and the effective owner. The owner only goes across when the catalogue has a user with the same email. It only writes to a target (type and URL) with no tables or terms that a run to that target did not claim, and the worker checks this again before the first write. An admin requests it and confirms with the workspace name, and the request goes into the audit trail. Repeating it upserts what it already created and does not duplicate, also after a half-written table or a worker that died: the run records the plan's references before writing. A stalled run stops counting as active when its time is up (2 h queued, 30 min without writing). The report counts what was created and gives each connection's mapping for CATSYNC (the prefix and the overrides for the datasets it does not map, such as those without a schema in a mixed connection), without emails (
backend/app/domain/catalog/catalog_bootstrap.py). Outside this, #407 stays as it is: BeryX does not write owners, tags or terms to the customer's catalogue. API:POST /catalog-integrations/{id}/bootstrap/plan(only reads the target),POST /catalog-integrations/{id}/bootstrapandGET /catalog-integrations/{id}/bootstrap(admin).
What is missing: the owner and the tags, the dictionary and the history do not yet
have a page in the app and are used through the API. The metadata-only inventory has no screen
yet either: it is switched on and read through the API, and the app's global search does not
show the inventory kind. The one-off export to an empty catalogue also only exists in the API. Left out of the history are the creation of
terms, the automatically suggested links, what datavault.yaml applies and the automatic
sensitivity classification. With the external catalogue connected, the glossary terms read in
the last import are counted, but those terms do not go into the BeryX glossary. The import
also does not write dataset tags.
Tests: backend/tests/test_column_lineage.py, backend/tests/test_dbt_manifest.py,
backend/tests/test_openlineage_consume.py, backend/tests/test_catalog_sync.py,
backend/tests/test_column_sensitivity.py, backend/tests/test_dataset_readme.py,
backend/tests/test_metadata_quality.py, backend/tests/test_glossary.py,
backend/tests/test_metadata_management.py, backend/tests/test_catalog_search_index.py,
backend/tests/test_catalog_inventory.py, backend/tests/test_catalog_bootstrap.py,
frontend/src/pages/Glossario.dom.test.tsx, frontend/src/components/DatasetTermChips.dom.test.tsx,
frontend/src/components/CommandPalette.dom.test.tsx, frontend/src/pages/Pesquisa.dom.test.tsx,
frontend/e2e/f12-pesquisa-global.spec.ts.
Which catalogue for which customer
BeryX does not replace the customer's catalogue of record (#407). A customer with a catalogue keeps it and BeryX publishes quality there; the BeryX lightweight catalogue serves those without one. The recommendation follows what the customer already uses:
- Microsoft (Azure, Fabric): Microsoft Purview, until the Data Map ends on 12 November 2027.
- Databricks: Unity Catalog.
- Google Cloud (BigQuery): Knowledge Catalog.
- AWS: Amazon DataZone.
- No catalogue: the BeryX lightweight catalogue. When the customer needs 80 or more connectors, OpenMetadata, self-hosted or on Collate.
- Large regulated company: the catalogue it already bought (Collibra, Alation or Informatica CDGC).
- Atlan: Atlan.
- DataHub, open source or DataHub Cloud: DataHub.
The table says what BeryX publishes and reads in each one and what has been validated. The rows
are those of the publisher registry (CATALOG_KINDS in backend/app/infra/catalog/client.py),
and backend/tests/test_docs_drift.py fails when the two stop matching. "Simulated transport":
the tests replace the catalogue's API with a fake server (httpx.MockTransport), and validation
in a customer's catalogue is still missing. The details of each one are in the
external catalogue.
| Catalogue | For whom | BeryX publishes | BeryX reads | State |
|---|---|---|---|---|
| Microsoft Purview | Microsoft (the Data Map ends on 12 November 2027) | The verdict, the score, the scan date and the link, in datavault_* attributes of the table, without the rules |
The classifications and labels (tags and sensitivity), the owners, the descriptions and the glossary | Simulated transport; to confirm in the tenant |
| Unity Catalog | Databricks | The trust score, the verdict, the failed rules, the unresolved issues and the certification, in beryx_* tags of the table |
The dataset owner, the tags, the comments and the lineage | Simulated transport; a customer workspace is still missing |
| Knowledge Catalog | Google Cloud | Three beryx-* aspects on the table's entry: the verdict and the trust score, one entry per rule and the open issues |
The descriptions, the glossary and the lineage | Simulated transport; to confirm in the project |
| BeryX lightweight catalogue | No catalogue | — (stays in BeryX) | The schemas, tables, views and columns of the connections (inventory, card #682) | In BeryX; the inventory is still used only through the API |
| OpenMetadata | No catalogue, needing 80 or more connectors | The verdict, the score and one entry per rule, as test cases | The domains, the owners, the column sensitivity, the descriptions and the glossary | Simulated transport; never tried on Collate |
| Collibra | Large regulated company | The verdict and one entry per rule, as "Data Quality Metric" assets | — | Simulated transport; to confirm in the tenant |
| Alation | Large regulated company | beryx_* fields: the verdict, the trust score, the open issues, the certification and one entry per rule; with a FAIL verdict, a Warning trust flag |
— | Simulated transport; to confirm in the tenant |
| Informatica CDGC | Large regulated company | The verdict with the 0-100 score and one entry per rule, with the rows read and the failed ones, as BERYX-… Data Quality Rule Occurrences linked to the table |
— | Simulated transport; to confirm in the tenant |
| Amazon DataZone | AWS | The share of passed rules and one entry per rule (PASS or FAIL, with the column), in one point of the asset's beryx_quality series; and the scan's OpenLineage RunEvent |
— | Simulated transport; to confirm in the domain |
| Atlan | Atlan | The "BeryX" custom metadata: the verdict, the trust score, the open issues, the certification and one entry per rule; with a FAIL verdict, an announcement | — | Simulated transport; to confirm in the tenant |
| DataHub | DataHub | The verdict, the score and one entry per rule, as assertions | The domains, the owners, the column sensitivity, the descriptions and the glossary | Simulated transport |
Critical data elements and regulatory dossier
- Critical data elements (CDE): a dataset or a column marked for BCBS 239, Solvency II, DORA or another regulation, with a reference ("Principle 3", "Article 19", the line of the report to the supervisor), owner and rationale. An admin or the owner of one of the dataset's domains declares it.
- Regulatory dossier, per regulation and requirement: principles 3 to 6 of BCBS 239; Article 82
of Directive 2009/138/EC and Article 19 of Delegated Regulation (EU) 2015/35, for Solvency II;
Article 8(1) and (4), Article 9(3)(d) and Article 12(7) of Regulation (EU) 2022/2554, for DORA.
For each element it gives the definition (the glossary terms with an approved link), the quality
controls per required dimension with each rule's tolerance and last result, the daily trend of
the results in the window, the open issues, compliance with the domain's SLA, one-hop lineage
(at column level) and the authoritative source (the upstream origins, hop by hop, up to 10), the
ODCS contract and the gaps: no rule, no result in the last 30 days, no owner, no definition, no
SLA. Accuracy counts the
accuracyrule and the latest sample-based accuracy audit completed in the window; integrity counts thereferentialrule. The "CDE coverage" KPI counts the required dimensions that have a control and a result. - Critical elements page (Governance → Critical elements): the dossier filtered by regulation
and by domain, with each element and the status of every requirement and dimension. A dimension
with no rules shows as "Not monitored", never in green
(
frontend/src/pages/ElementosCriticos.tsx). - It is exported in Markdown, CSV and PDF, and shared through the reports' read-only link.
It is deterministic, without generative AI and with metadata only. No status claims compliance:
the dossier points out gaps and does not certify (
GET /api/v1/cde/dossier,backend/app/domain/compliance/regulatory_dossier.py,backend/app/domain/compliance/cde_evidence.py). - Lifecycle (card #703): a marked element starts as a candidate. Submitted with its
justification, which is mandatory, it enters the
cdeapproval workflow (the configured one or, without it, an admin or whoever manages one of the dataset's domains approves). Whoever marked it and whoever submitted it do not approve it. Once approved, it becomes certified while the dataset has a certification in force and goes back to approved when that certification lapses. Unmarking an approved element is also a request in the workflow, with the reason, and it is only retired once approved. Rejected, expired or in conflict, it goes back to candidate. The API (GET /api/v1/cde) and the dossier show the state; the dossier leaves out retired elements (backend/app/domain/compliance/cde_lifecycle.py). A retired element also stops classifying the dataset for AI agents and leaves the Annex IV datasheet; a candidate still counts (backend/app/domain/compliance/ai_agents.py,backend/app/domain/compliance/annex_iv.py). In the request preview (#699), whoever decides sees the element, the justification or the reason, and what the dataset starts or stops inheriting, which is left out if another approved element of the same dataset already gives it (backend/app/domain/governance/request_preview.py). - What an approved element inherits: each warning or critical issue on the dataset that
raises an alert (from a scan, a monitor, an SLO, dbt, a pipeline, BI or costs) gets the
resolution deadline of the CDE policy (24 hours by default, configurable in
PUT /api/v1/cde/policy) and its alert goes out as critical, markedcde. If the severity's resolution SLA (#396) gives an earlier deadline, the issue keeps that one. An informational issue raises no alert and does not get that deadline (backend/app/domain/compliance/cde_lifecycle.py). A notification channel with the "critical elements only" scope (cde_only) receives only those alerts: it is the CDEs' own audience (backend/app/domain/alerts/routing.py). The scope also goes indatavault.yamland in the IaC (backend/app/domain/gitops/workspace_config.py). While the dataset is not certified, the element's owner has the task "Certify a CDE's dataset" in "My tasks", due 30 days after the approval, configurable (backend/app/domain/compliance/cde_tasks.py). - Suggested critical elements (card #1220): a CDE is never inferred, but BeryX suggests
candidates, each with its evidence, for whoever manages the dataset's domain to decide. The
signals: the column feeds an approved definition of the metric registry (the columns its formula
cites) or a business metric (its value column); it reaches, through column lineage or derivation
(never through a foreign key, up to 3 hops), a regulatory report or a leadership dashboard (by
the exposure's name, description and curation tags); it is sensitive PII (health, tax number,
IBAN, identity document); the dataset is read by AI agents and registered consumers or is
heavily queried. What is already a CDE is left out; the proposed regulation is the one the report
names (BCBS 239, Solvency II, DORA) or "Other regulation". They are generated at the end of every
scan and on request (
POST /api/v1/cde/suggestions/generate), without an LLM. Accepting marks the element as a candidate through the usual flow, audited, with the chosen regulation and the rationale; it is then submitted for approval. Rejecting keeps the decision and the element is never suggested again. An admin or whoever manages one of the dataset's domains decides; evidence from reports on datasets the reader cannot see, and from metrics with one source they cannot see (as on the Business page), is left out and counted apart, and the reference and rationale proposed on accepting only name what the person accepting sees (GET /api/v1/cde/suggestions,backend/app/domain/compliance/cde_discovery.py,backend/app/domain/compliance/cde_suggestions.py). The page explains who defines a CDE and what changes once it is approved, with the link to the guide.
What is missing: the "CDE" chip on the dataset, the KPI in the domain dashboard, unmarking an
element in the interface (marking is done from a suggestion; the rest only through the API) and
the "SLA breached" mark by the CDE deadline (the SLA tick measures by the severity policy; the CDE
deadline is in the issue's due_date).
Tests: backend/tests/test_regulatory_dossier.py, backend/tests/test_cde.py,
backend/tests/test_cde_lifecycle.py, backend/tests/test_cde_discovery.py,
backend/tests/test_cde_suggestions.py, frontend/src/pages/ElementosCriticos.dom.test.tsx,
frontend/src/components/CdeSuggestions.dom.test.tsx.
Customer privacy: record of processing, retention and data subjects
Record of processing activities (GDPR, Art. 30) for the customer, one activity per domain. The catalogue prefills it on every read: data categories come from the PII map with the reviewed classification on top (Art. 9 special categories are flagged), the purpose comes from the domain description and the retention period, if the activity does not declare one, comes from the
pii_retention_max_agerule of the data policy. The admin declares the purposes (a catalogue shared with the trust decision by purpose), the legal basis, the data subjects, the recipients, the transfers, the period, the measures and the controller. Datasets with personal data outside any domain are listed separately. It exports to CSV and JSON, with the minimum-evidence posture: BeryX keeps counts and diagnostics, and the rows stay in the customer's warehouse (GET /api/v1/workspace/ropa,GET /api/v1/workspace/ropa/export,backend/app/domain/privacy/ropa.py).Retention alerts: datasets with personal data whose oldest record, by last activity, is past the shortest period of the activities of its domains (or the policy's). It is the same measurement as the retention rule: a profile taken from a sample or over the partition window leaves the dataset "not measured", with the reason, and the response counts the datasets with no declared period (
GET /api/v1/workspace/retention-alerts).Access request with discovery in the sources: the data subject's value (email, NIF, phone, document, IBAN) is looked up only in the classified identifier columns of the type that matches the shape of the value, with one count in the source per column. The value goes as a parameter, never in the SQL text, in the read-only session of the SQL rules. The response says where there is data (dataset, column, how many rows) and never the values; the audit trail keeps the counts and the types looked up, without the value. With the request from the register, it brings its deadline, of one month in the EU and the UK (
POST /api/v1/workspace/subject-data/discover,backend/app/domain/privacy/subject_discovery.py)."Privacy" page: brings together the record, the alerts and the requests. Each open request has the steps its state allows: complete with the outcome, acknowledge receipt, extend once within the initial deadline where the law provides for it, and pause with the reason or resume. A refused step shows the cause next to the request (
PATCH /api/v1/workspace/subject-requests/{id},backend/app/domain/privacy/subject_requests.py).Requests about automated decisions (card #1294): the request register gets the
automated_decisiontype, with three requests: an explanation, a contest and a review by a person. The deadline comes from a rule per jurisdiction and per request, which keeps the article, the URL and the reading date in the code (backend/app/domain/privacy/automated_decision_rules.py): in the EU, Article 86 of the AI Act and Article 22(3) of the GDPR; in the UK, Article 22C of the UK GDPR; in Brazil, Article 20 of the LGPD; in Switzerland, Article 21 of the nFADP; in Angola, Article 29 of Law 22/11; in California, the CPPA regulations. Where the sources read give no deadline, the request is recorded with no date, and none gives the deadline of a request: Colorado's 30 days (C.R.S. 6-1-1704(3)) are a deployer's duty after an adverse outcome, in the obligations register with their own proof, and an explanation request from there is recorded with no date (review of wave 2 of epic #1292). Since card #1300, the register accepts Colorado (us_co) only for requests about automated decisions: a request of another type from there gets 422subject_request_jurisdiction_automated_only, because the surveys give it no rule. The register is in every plan. Linking the request to the agent, the model or the system and to the consumptions that fed the decision is accepted in every plan, but the app only shows it with compliance in the plan; the record and the dossier only go into the response with it.- Human review: who reviewed (an active account in the workspace), when and whether the
decision changed, once per contest or review request (
POST /api/v1/workspace/subject-requests/{id}/human-review). The date cannot be in the future nor more than a day before the request arrived or the decision was made (422automated_decision_review_before_request). - The response comes out as PDF and Markdown, put together from what BeryX has: the rule and
the source, the system and the purpose on the record, the declared role in the decision, the
data used and its state at that moment (the dossier of each consumption), who supervises and the
review, without saying who reviewed. It carries no data about other people and states the
limit: BeryX does not know the model's reasoning, and that part belongs to the controller. It is
a draft in European Portuguese, not legal advice (
GET /api/v1/workspace/subject-requests/{id}/response,backend/app/domain/privacy/automated_decision_response.py). - Personal data: the reviewer is visible to admins only, goes into the workspace export and is removed when the account or the workspace is erased; nothing goes to an LLM.
- Human review: who reviewed (an active account in the workspace), when and whether the
decision changed, once per contest or review request (
RoPA drift (card #704): where the catalogue drifts away from the record, with the age of each deviation. Two deviations, using only the workspace's catalogue metadata:
- a column with personal data (the profiling PII map with the reviewed classification on top) in a dataset outside any domain, and so outside any activity. The dataset is associated with an activity (it joins the domain) or the deviation is justified;
- a destination that the lineage shows and the activity does not declare. Starting from the
domain's datasets with personal data, the traversal follows the lineage edges through the
datasets of the same domain; the first dataset outside it is a destination, as are the
exposures (dbt, BI dashboards) and the Trust API agent consumers (consumptions in the last
30 days) of a dataset inside. The destination is declared as a recipient (it stays in the
activity, in
declared_recipients) or the deviation is justified.
The comparison runs at the end of every scan, every 15 minutes in the worker (for imported lineage and manual classification) and with "Check now". It opens the deviation that appeared, closes the one that went away and reopens, with the age back at zero, the one that came back; a justified one stays justified while it exists. Each open deviation is a task for the admins in "My tasks" (the RoPA is admin-only), and the undeclared destination is also an alert in the bell. Nothing leaves the workspace: neither the customer's sources nor an LLM are called, and the channels (Slack, Teams, webhooks) receive nothing. The record export carries the open deviations (
GET /api/v1/workspace/ropa/drift,POST /api/v1/workspace/ropa/drift/check,POST /api/v1/workspace/ropa/drift/{id}/justify|associate|declare,backend/app/domain/privacy/ropa_drift.py,backend/app/domain/privacy/ropa_tasks.py).PII map re-evaluation when the detectors change (card #1327; "PII" page): every automatic classification keeps the version of the detectors that produced or confirmed it. When the version changes, each dataset's next scan runs the new detectors over the profile it has just stored and shows the difference per dataset, with the old and the new version and the sample read: the column that becomes PII, the one classified below and raised, the one that changes type and the one that no longer is. Nothing changes by itself: an admin applies or keeps each one, and "choose all" skips what a person already confirmed. A lowering is only a suggestion, and a column with no sample is not even suggested. Applied or kept, the row becomes a person's, with the note in the classification trail and the event in the audit log. While nobody decides, protection does not open: masking, the agent guards and the data policy read the recorded classification and the live detection. It does not read the source again or call a model, repeating the scan repeats nothing, and only metadata is stored. The difference may also come from data that changed since the previous evaluation, so it carries the profile date and the values read.
GET /api/v1/dashboard/pii/reevaluationandPOST /api/v1/dashboard/pii/reevaluation/decisions(a person, admin only);backend/app/domain/compliance/pii_reevaluation.pyandbackend/app/domain/compliance/pii_detectors.py.Purpose and legal basis through the workflow engine (card #704): changing the purpose or the legal basis already declared in an activity opens a
processing_activityrequest with the change held, and only the approved close applies it. The other fields save at once, and so does declaring for the first time (the field was empty). With no workflow configured, another admin decides; whoever asked never decides. The activity shows the pending change, and any admin withdraws it with «Withdraw request», on the activity or under «Created by me»: the request is cancelled and the activity stays as it was. Deleting the domain also closes the request (POST /api/v1/workspace/ropa/activities/{domain_id}/pending-change/cancel,backend/app/domain/privacy/ropa_approvals.py).
What is missing: discovery runs in the request, so that the value does not go to the queue, and therefore has caps (40 columns, 15 s per count, 90 s in total) and reports what was left out. Sources without a count in the source (the APIs, such as Salesforce and SAP, MongoDB, streams and documents) are "not supported". In a file above the read cap, the count only covers the rows the profile reads; in a SQL table profiled over the partition window, only that window. Those columns are listed separately, with the rows read, and the page reports the result as incomplete even without matches. An email is looked up as typed and in lower case: stored with other capitals, it is not found. In the drift, recipients written as text do not count (only the declared catalogue destinations do), OpenLineage external nodes (S3, Kafka) and consumers that are not agents are not destinations, and the traversal stops at the first dataset outside the activity. A request to change the purpose or legal basis keeps the approvers it had when it opened, and configuring the workflow afterwards does not touch it. In a workspace with a single admin and no workflow configured, no one can decide it: an admin who joins later decides it, or whoever asked withdraws it and proposes again, with the workflow now configured with someone else.
Tests: backend/tests/test_pii_reevaluation.py, backend/tests/test_pii_detector_version.py,
backend/tests/test_privacy_ropa.py, backend/tests/test_ropa_drift.py,
frontend/src/pages/Privacidade.dom.test.tsx.
Metric definition registry
- One definition per metric (Business page, «Metric definitions» section;
/api/v1/metric-definitions,backend/app/domain/governance/metric_registry.py): name, business definition, reference formula (for example,sum(amount - discount)), filters, grain, owner, definition authority (a team or a person), glossary terms and source datasets. The normalised name is unique in the workspace:Receita Líquidaandreceita-liquidaare the same metric. The new name of a held change is also taken until the request closes: creating or renaming with it gives a conflict, and the dbt import counts it as existing (_reserved_keys). - Versions and approval: a draft can be edited freely. Submitting it opens a
metric_definitionrequest in the workflow engine, and the approved close records version 1. Nothing is written directly to an approved definition: the change is held in the request, and only the approved close applies it, with the next version, the request that approved it and who closed it. The workflow configured for the type in Approvals signs (without one, an admin) and, at the end, the definition authority; with no configured workflow and an authority, only the authority signs. The requester never decides, and the requester or an admin can withdraw an open request. Abefore_flushrefuses to change a field of an approved definition without the new version in the same transaction (refuse_unapproved_changes). If, before the close, the new name becomes another definition's, or the team or account in the change stops being valid (deleted or deactivated), the request goes into conflict and nothing is applied (stale_changes). The history is read atGET /api/v1/metric-definitions/{id}/versions, with the signatures of each version. - Import from dbt:
POST /api/v1/metric-definitions/import-dbt(admins only) creates drafts of the semantic layer metrics already imported that are not yet in the registry. When projects diverge, it uses the most common variant. A definition that already exists does not change, even when renamed after the import (it is recognised by its source dbt metric). - Export in Apache Ossie 0.1.1 (
GET /api/v1/metric-definitions/export,backend/app/domain/governance/semantic_export.py): one file per Snowflake connection, with the approved definitions on its tables. It comes out with the flat root in YAML, forSYSTEM$CREATE_SEMANTIC_VIEW_FROM_OSSIE_YAML, or with thesemantic_modelroot in YAML and in JSON (theosi/folder of dbt 1.12). Left out, counted by reason: drafts, metrics with a source the requester cannot see, with more than one dataset or with a dataset without a schema, formulas that cannot be written in Snowflake SQL, and metrics with a$$in what they bring to the file, which is applied between$$. Other connections get 422. BeryX does not write to the customer's account: the customer applies the file (step by step indocs/CATALOGO_EXTERNO.md). - Metric drift against the registered definition
(
backend/app/domain/lineage/metric_registry_drift.py,backend/app/domain/lineage/metric_conformance.py): each implementation is compared with the approved definition. The implementations are the dbt metric with the same name or label (or the one the definition came from) and the linked business metrics. The formula (average=avg,count_distinct(x)=count(distinct x)), the filters, the grain (on business metrics) and the source are compared. When they diverge, onemetric_driftissue per definition opens, with the evidence per implementation: the aspect, the registered value and the implemented one. The issue is updated on the manifest import, on the close of each version and when a linked business metric is created or deleted (also by the cascade of a deleted connection). It resolves when every implementation follows the definition again and stays silent if ignored. The definition detail shows the same comparison; dbt metrics only appear there in open mode or to admins, like the metric drift report. A definition imported from dbt treats its source metric as conforming through the canonical form of the import only while the registered formula and filters are still that form's (canonical_holds); the source is always compared. - Definition conflict with an owner and a deadline (card #758,
backend/app/domain/governance/metric_choice.py): ametric_driftissue with no person or team goes to whoever answers for the metric, the definition authority of the registered metric with the same key. Without an authority, it goes to the owner of a domain of the source datasets or of the definition's terms (for a metric that only exists in dbt, of the datasets named after the sources). When the same dbt metric has different definitions across projects and none is submitted or approved in the registry, it also opens a "Choose the definition" (metric_choice) request in the workflow engine. With no configured workflow, whoever answers for the issue decides (with no one, the admins) within 5 days (CHOICE_SLA_HOURS), and then the request escalates to the admins. It is not voted on: it closes when someone submits a definition with the metric's key to the registry, and it is cancelled when the issue is resolved or ignored. If the submission is rejected, the task comes back. - Who reads the evidence: the issue has no dataset and the whole workspace reads it, so it
only names what a member without grants sees (
every_reader). A business metric with a source in a restricted domain, or a dbt metric in restricted mode, only counts, and a source dataset that member does not see shows as «Dataset restrito». The definition detail follows the access of whoever asks. Whoever does not see a dataset cannot link it as a source either (the error is the one for an id that does not exist) nor remove it when editing the list. - Linked business metrics: a business metric can follow an approved definition
(
definition_id). Its name and description become the definition's, also after each version, and creation refuses an aggregation or a grain that does not match the definition's formula and grain.
Tests: backend/tests/test_metric_registry.py,
frontend/src/components/RegistoMetricas.dom.test.tsx.
Policies and standards
- Policies and standards with a lifecycle: each policy has a type (quality, privacy,
security, lifecycle and retention, AI ethics or definitions), purpose, text, owner, version and
scope (domains and medallion layers). Whoever edits it submits it for review, and only with an
owner; an admin approves it or returns it to draft, and retires it from any state. In review it
cannot be edited, and editing an approved one opens the next version as a draft. The approved
one stays in force until the next is approved or the policy is retired, and every approved
version is kept with its text, date and approver. The owner or an admin edits it and, without
an owner, anyone who can write. Every change goes to the audit log
(
backend/app/domain/governance/policies.py). - Periodic review: on approval, the next review is scheduled (365 days by default, between 30
and 1095). With the configured notice (30 days by default), the worker opens the review task
for the owner, with a bell notice and an email. The owner sees it in «My tasks» (
/tarefas) and closes it with «Mark review as done»; the next review counts from then and notifies again (backend/app/domain/governance/policy_tasks.py). - Linked controls and computed compliance: the policy links up to 50 controls that already
run: the data policy rules per layer (POLICYCHK), quality rules and a dataset's data contract.
Linking controls does not open a new version. Compliance is computed on every read, control by
control and dataset by dataset: the effective data policy rule of each dataset in scope (the
same one as the verdict), the quality rule's latest result and the contract's status, read as
the verdict and certification read it. A contract with no active version, or with a promised
column the dataset no longer has, fails; with warnings only, it passes. A rule that is
switched off, has never run or whose latest result could not be evaluated (as in Rules) is
"not measured" and stays out of the percentage, which is (pass + waived) / (pass + waived +
fail), for the policy and for each control. On a dataset that no scan has analysed, the data
policy rules that read the score, the profile or the detected PII are "not measured" too, and
a violation that is already visible counts. The
require_owner,require_active_contractandrequire_readmerules always count. Each read evaluates up to 500 datasets in scope (backend/app/domain/governance/policy_compliance.py). - AI controls (card #1296): the policy also links controls on the agents and models in the
AI register, measured on every read like the data ones: agents with an owner and a prompt
owner (on any registered agent), and approved agents with go-live complete, with failure drills
up to date, with the Article 5 screening done and with named supervisors. One check per agent,
with what it is missing (the go-live items, the expired scenarios, the points still open), read
from the go-live checklist: a drill that expires changes the percentage at once, without
waiting for the worker. The supervisors control (card #1295) reads the oversight gaps: it fails
with a supervisor without an active account, or on an agent that acts without prior approval
(or has not declared it) and that nobody with an active account can stop; an agent that waits
for a person on every action passes without supervisors. The agents that count are those that reach the scope of the version in force (with no
domains on the record, they reach all), without planned use cases or retired agents; a proposed
or suspended agent only counts in the owners control. A waiver to an AI control covers all of
its agents. Adding a control is one entry in the registry
(
backend/app/domain/governance/ai_controls.py). The agent register is in the plan'scompliance: without it, the AI controls have no agents to measure. - AI policy starter templates (card #1296): the organisation's AI policy and the acceptable
use of AI by the people who work there, in the five languages, for the customer to adapt. They
say at the top that they are not legal advice, cite the AI Act (Articles 4, 5, 26 and 50, with
their application dates) and ISO/IEC 42001 and the NIST AI RMF by number and topic, and keep
their sources in the code, with the URL and the reading date. Creating from a template makes a
draft policy of the AI ethics type, with acknowledgement switched on and, the AI policy, with
the five AI controls (
backend/app/domain/governance/policy_templates.py). Both texts are on the internal list of texts citing the law: BeryxTech validated them on 23/11/2026, and the review by lawyers comes later. - Acknowledgement by person (card #1296): a policy with the request switched on asks, for
every approved version, the people in scope to say "I have read and acknowledge it". The scope
is the workspace's active accounts and, with domains in scope, only the people of those domains
(members, owner, stewards and custodians), read now: whoever joins gets the task for the
version in force. The
policy_acknowledgementtask reaches «My tasks», a Viewer too and in restricted mode, with a bell notice and an email; after 14 days, the reminder goes out through the deadline notice. The person reads the version's text and acknowledges it under Governance («To read and acknowledge»). The record is kept per person and per version, and a new version asks everyone again. The coverage (how many acknowledged, how many are missing, how many are past the deadline) is in the policy detail; the list by person and the CSV for the auditor are for admins, because they are personal data, which go into the workspace export and leave with the account. Switching the request on or off does not open a version (backend/app/domain/governance/policy_acknowledgements.py). - Approved AI tools (card #1296): the list of the tools and models the organisation has
approved, each with the most sensitive data class it may receive (public, internal,
confidential or personal data), the conditions of use, the marks that shadow AI recognises and
the model identifiers it approves. Anyone in the workspace reads it, a Viewer too, under
Governance (
/governacao#ferramentas-ia); an admin changes it, and every change goes to the audit log. Shadow AI says when a source account belongs to a tool outside the list and when a read was above the entry's class. It is in the plan'scompliance, like the agent register (backend/app/domain/compliance/ai_approved_tools.py). - Waivers that expire: anyone who can write requests a waiver to a linked control, for a
dataset (or all of the control's) and a column (or the whole dataset), with a justification
(10 to 2000 characters) and a mandatory end date, at most 365 days away. On a quality rule or
a contract, the dataset is the control's. With the waiver approval workflow on, the request
enters the workflow engine and is decided in «My tasks»; without it, an admin decides, and the
pending waiver is a task for the admins who did not request it (
policy_waiver_pending). Either way, whoever requested it never decides it, even if someone else submits it to the workflow: in the workflow they do not count as the step's approver, nor by delegation, escalation or fallback, and if they were the only one, the other admins decide (backend/app/domain/governance/approvals.py,backend/app/domain/governance/approval_config.py). Approved and not yet expired, the waiver makes the failure it covers count as "waived"; on a failure across several columns, it only covers it if every column has a waiver (on a broken contract, the columns that no longer exist). Seven days before the end, the worker puts it in the tasks of whoever requested it and of the policy owner, with a bell notice and an email. Once the end date passes, the check counts as non-compliant again on the next read, without waiting for the worker, which marks it expired. It is renewed with a new request, and an identical request (same control, dataset and column) still awaiting a decision refuses the next one. Retiring the policy closes the waivers awaiting a decision as rejected, along with their workflow requests (backend/app/domain/governance/policy_waivers.py). - API and MCP:
/api/v1/policies(backend/app/api/v1/policies.py; with restricted domains in the workspace, admins only), the templates at/api/v1/policies/templates(backend/app/api/v1/policy_templates.py), acknowledgement at/api/v1/policies/acknowledgements/mineand/api/v1/policies/{id}/acknowledge(backend/app/api/v1/policy_acknowledgements.py, a Viewer too and in restricted mode) and the approved tools at/api/v1/compliance/ai-tools(backend/app/api/v1/ai_tools.py; who changed each one, only to an admin). The MCP reads policies and waivers withget_policyandlist_waivers, read-only (backend/app/mcp_policies.py):get_policycarries the AI controls, with the agent of each check that did not pass, and only the counts of acknowledgement. In the app, policies are managed under Governance, and the reviews, the waivers close to their end and the policies to acknowledge appear in «My tasks» (/tarefas,frontend/src/pages/Tarefas.tsx), where a waiver request opens the policy.
BeryX records and measures: the compliance of a policy, the AI one included, is evidence of what is recorded, not an opinion on whether the organisation complies with the law, and the templates are not legal advice.
What is missing: compliance is computed on read and keeps no history, and the review and waiver-end notices are personal (bell and email): they do not go to the workspace's notification channels. Literacy coverage comes in as an AI control with card #1293. A waiver to an AI control cannot be given to a single agent.
Tests: backend/tests/test_policies.py, backend/tests/test_mcp_policies.py,
backend/tests/test_policy_acknowledgements.py, backend/tests/test_ai_approved_tools.py.
Data management maturity from evidence
Capability model: the 11 DAMA-DMBOK2 knowledge areas (governance, architecture, modelling, storage and operations, security, integration and interoperability, documents and content, reference and master data, data warehousing and BI, metadata and quality), each with a level from 0 (non-existent) to 5 (optimised) (
backend/app/domain/governance/maturity.py). The EDM Council DCAM/CDMC mapping stays out until there is a licence.Scored by evidence: each capability with evidence in the product is scored with indicators BeryX already measures: owner, documentation, classification, contract and rule coverage (the governance dashboard KPIs), datasets with lineage, approved CDEs with an owner, issues resolved on time and SLO attainment over the last 30 days, and approved policies with their review in date. Each percentage maps to a level by bands (0 % → 0; under 25 % → 1; 25–49 % → 2; 50–74 % → 3; 75–89 % → 4; 90 % or more → 5) and the capability takes the mean of the measured levels. The score is computed on every read, so it changes on its own when the evidence changes, and each score carries the indicators behind it, with value, sample, level and the page where it shows (
backend/app/domain/governance/maturity_service.py).Manual answers where there is no evidence: an admin gives each capability a manual level (with a mandatory justification) and a target (1 to 5; 3 by default). The answer only counts while the capability has no measured indicator: evidence always wins. Each change goes to the audit trail, without the justification text.
History and heat map: the worker writes one close per quarter and workspace, rewritten once a day while the quarter runs. The heat map crosses capabilities with the last 8 quarters and the current one, against the target. With restricted domains, the whole-workspace history only shows to whoever sees every domain, and the workspace assessment only to admins.
Board pack:
GET /api/v1/governance/maturity/board-pack.mdreturns the assessment in Markdown, with the summary, the heat map, each capability's evidence or justification and the method, without names of people, datasets or columns. In the app, the panel sits in Governance (frontend/src/components/MaturidadeDados.tsx).Centralised or federated (card #1149): seven measured signals, none declared, to see whether governance is ready to move from centralised to federated, below the maturity (
GET /api/v1/governance/federation,frontend/src/components/SinaisFederacao.tsx). Three are the share of the rules and terms created, the issues resolved and the approval votes of the last 90 days done by people with a role in the domain (owner, steward or custodian) or accountable for the dataset. The others are the domains that already do it on their own, with an owner and a steward in place and with critical rules passing, and the approval requests stalled for 5 days or more that only people outside the domain can still decide. The reading is one of four, by rule: the central team is the bottleneck, ready for hybrid, still centralised or not enough data. It is not a score and does not say why the numbers are what they are. The thresholds use the maturity bands (a signal passes at level 3) and the deadline the task inbox gives an approval: there is no published number for this. By domain and by team only the state is shown, with no counts, percentages or times. A team's is that of the domains it writes in, not what its members did. The numbers are for the workspace, in bands, and an act only counts if at least 5 people could have done it, on each side, because they had the role or the permission that day. With fewer than 10 acts that count or with too few people, the signal is not measured and has no sample. Nothing gives the value of one person, not even two requests together (docs/METODOS.md, Centralizado ou federado). The work of people who are no longer in the workspace leaves the count on both sides. The page says what it does not measure: tested standards, delivered use cases, demonstrated value, what is done outside BeryX, what has no author and what has no domain. With restricted domains, only an admin sees it (backend/app/domain/governance/federation.py,backend/app/domain/governance/federation_service.py).
Not yet: data management gaps do not become tasks in the inbox yet (AI governance gaps do, next section). The board pack carries the summary and each capability's score against its target; the heat map and the evidence stay in this Markdown only.
Tests: backend/tests/test_maturity.py, backend/tests/test_federation_signals_1149.py.
AI governance maturity from evidence
The four NIST AI RMF functions: govern, map, measure and manage, from the NIST AI RMF 1.0 (NIST AI 100-1, 26/01/2023), a public framework for voluntary use. Each function has a level from 0 to 5, next to the data management maturity and with the same rules: the same bands per indicator, the mean of the measured levels, the manual answer only where no indicator is measured, a target per function and a close per quarter (
backend/app/domain/governance/ai_maturity.py). Subcategories are cited by number; the theme of each indicator is written by us.Indicators BeryX already measures, read on every request over the whole workspace (
backend/app/domain/governance/ai_maturity_service.py):- govern: approved ethics and AI policies with their review in date and their acknowledgement; agents with an owner and a prompt owner; approved agents with named supervisors and with AI training for the people who operate and supervise them;
- map: the AI inventory with a record, the Article 5 screening done and each system's AI obligations on record;
- measure: failure drills up to date and agent risks reviewed on time;
- manage: go-live complete, AI use case requests decided within the workspace deadline and requests about automated decisions answered on time.
The agent indicators are the policies' AI controls, with the same formula: a drill that expires lowers the measure score the same day. Each score carries the indicators behind it, with the value, the sample, the level, the subcategories and the page where each one goes up. They are measured up to the read limit of the policies and of the controls matrix: the first 200 agents and models by name and the first 200 AI systems by registration date. The page says how many are above it, unmeasured (
agents_truncated,systems_truncated). The bands are indocs/METODOS.md(Maturidade pela evidência).Answers, targets and history:
PUT /api/v1/governance/ai-maturity/answer(admin) saves a function's manual answer and target, in the same table and the same audit trail as the data maturity. The quarterly close is the same row, with the functions next to the capabilities, and the heat map only shows the quarters already measured with the functions.Gaps become tasks: a function below its target in the current quarter close gives the admins the
ai_maturity_gaptask, with the score and the target. It closes when the score reaches the target or when the target changes (backend/app/domain/governance/ai_maturity_tasks.py).Board pack: it carries the summary, with the overall score, the functions assessed, on target and with a gap, and each function's score, target and status by code. Only the summary goes to the narrative.
Not a conformity assessment: the page and the pack say the NIST AI RMF is a voluntary framework and that the score measures the evidence BeryX has. The score does not say the organisation follows the framework or any law, and it is not legal advice (ADR 0010).
Plan and access:
GET /api/v1/governance/ai-maturityis in the plans with compliance (Business and Enterprise; 402 outside them), like the AI registry. These are whole-workspace aggregates without names: with restricted domains, only admins see them. In the app, the panel sits in the Maturity tab of Governance, below the data maturity (frontend/src/components/MaturidadeIA.tsx).
Not yet: the task reads the day's close, so it can arrive up to a day after the page shows the gap. AI governance has no Markdown of its own for the board, unlike data maturity: the summary goes in the pack. An indicator with a small sample (a single approved agent) jumps from 0 to 5.
Tests: backend/tests/test_maturity.py, backend/tests/test_board_pack.py,
frontend/src/components/MaturidadeIA.dom.test.tsx.
Board pack, decision register and minutes
- Board pack per period: an admin generates the pack for a period (up to 366 days, none in
the future). The numbers are computed on request, without AI,
and stored at the reference date with the SHA-256 of the canonical JSON. Each read recomputes
the hash and says whether it still matches (
hash_valid) (backend/app/domain/governance/board_pack.py,backend/app/domain/governance/board_service.py). - KPIs: CDE coverage and the status of each CDE, by the worst required dimension (the same
as the regulatory dossier); open, critical and SLA-breached issues, issues opened and
resolved in the period, and the due-date attainment of the governance dashboard; active,
pending and expiring (30 days) exceptions, with mean and maximum age; catalog coverage
(owner, documentation, classification); access requests decided with every workflow step
that has an SLA closed on time, rebuilt from the step start and the SLA copied into the
request (auto-approval counts as on time; requests without an SLA are left out), and pending
requests past their deadline. Maturity is the assessment from the previous section at the
reference date, with the targets saved per capability: the overall score from 0 to 5, the
capabilities assessed, on target and with a gap, and each capability's score, target and
status, by code only. Only the summary goes to the LLM; in the app, the capabilities with a gap
show by name (
frontend/src/components/PacoteConselhoDetalhe.tsx). With compliance in the plan, the AI governance maturity follows the same way, by the NIST AI RMF functions, with the sentence that the framework is voluntary. - Top risks: failing CDEs, open critical issues, active (and expiring) exceptions and full access to sensitive data granted in the period, including grants that have since expired or been revoked, up to 10 of each.
- AI agents: at the reference date, the agents by status (approved, pending approval and
suspended; those above the 200 limit count as active, with no status read), the global kill
switch, the agents with the go-live complete, without a named owner and with drills missing,
failed or expired, the open risk register (by level, with the review overdue and without an
owner) and the AI controls in the matrix by result. Within the period, the requests on behalf of
a person allowed and denied and the failure drills that passed and that failed. Per agent, up to
50 and by name, the status, the go-live, the owner and the drill scenarios still missing. Agent
names stay in the pack and do not go to the LLM
(
backend/app/domain/compliance/control_matrix.py,board_section). In the app, the section comes after the top risks (frontend/src/components/PacoteConselhoDetalhe.tsx); a pack on version 1 of the content does not have it. Since version 5 (card #1228), the section also counts the approved AI use cases with and without a linked business metric, those approved more than 30 days ago without a metric, and the metrics that moved in the expected direction, in the opposite one, stayed flat or have no data against the baseline frozen at go-live, with those that have open issues in the underlying data counted separately (ai.outcomes, counts only, which go to the narrative). Since version 6 (card #1229), the section also has the "Five questions about AI" block, written by BeryX: who is the named owner of AI security; which models and agents are in use and how many were approved; whether an agent can be stopped right now and whether that has been put to the test; whether the high-risk systems went through adversarial testing; and what evidence is kept to reconstruct an incident. Each has the short answer, the state ("with evidence", a BeryX record; "declared", what the workspace declared; "no evidence") and the link to the screen, is calculated on request, without AI, and is stored with the pack, inside the SHA-256. The second always says "X of Y of what BeryX observed", never a percentage. The fourth stays "no evidence": BeryX does not record red team assessments. The owner's name stays in the pack and never goes to the LLM (backend/app/domain/compliance/ai_questions.py,ai.questions). - AI narrative, over aggregates only: the narrative (summary, risks, decisions requested) is
written on the
board_pack.requestedqueue through the LLM facade, with the output guard. The prompt carries only counts, percentages and codes: no dataset, column, policy, team or person names (board_pack.narrative_input). With no model available, the offline template writes the same sections. - Decisions requested and decision register: the pack records as pending the decisions it
asks the board for: approve policies in review, accept the risk of pending or expiring
exceptions and set the tolerance of failing CDEs. It also requests the decisions that a “yes”
in an agent's Article 5 screening has already opened (
ai_prohibited_practice, card #1144), in every pack until the board takes them (board_pack.requested_decisions). A decision still open is not repeated in the next pack, and one the board has already approved or rejected is not requested again (a policy's comes back when the policy changes version). An admin can also request decisions by hand (an identical open one is a conflict) and record the outcome (approved, rejected or deferred) with a mandatory rationale. Approved or rejected, the decision closes. Each decision is linked to the policy, exception, CDE or agent it decides, with the policy name and version at decision time, and each step goes to the audit trail. Recording a decision does not change the policy or the exception, which follow their own lifecycle (backend/app/domain/governance/board_decisions.py). - Minutes: the meeting minutes live in the pack and cannot be approved while the narrative
is being written. Once approved, they close with their SHA-256 and can no longer be edited, and the
pack closes with them: the narrative can no longer be rewritten and no decision is requested
or taken in it (409
board_pack_locked); one left open stays in the register. Each request for another narrative goes to the audit trail (board_narrative_requested), with the SHA-256 of the narrative it replaces (backend/app/domain/governance/board_service.py). - In the app: under Governance, admins only, you generate the pack, read the KPIs, the top
risks, the AI agents section and the narrative (with the AI label and the model, or the offline-mode notice), decide
what the pack asks for, and write and approve the minutes
(
frontend/src/components/PacoteConselho.tsx). API errors come in the request language (pt, en, es). - API:
/api/v1/governance/board(backend/app/api/v1/board.py), admins only.
What is missing: the pack has no PDF or PPTX export and it is not scheduled (generated on request). Recording a decision applies nothing to the policy or the exception. The AI agents section has no incident register: it shows the global kill switch, the denied requests and the drills that failed.
Tests: backend/tests/test_board_pack.py, frontend/src/components/PacoteConselho.dom.test.tsx.
CDMC key controls: state and evidence
- Map of the 14 key controls: the 14 CDMC key controls (EDM Council) link to the checks BeryX
already measures: policies and their computed compliance, owner, certification, record of
processing, the data policy's retention rule, catalog, classification, restricted domains and
access reviews, rules and results, size and compute cost, and lineage. Only sensitive datasets
count, with
confidentialorpiicolumns (backend/app/domain/compliance/cdmc.py). - State computed from the evidence: a check is
metonly with written evidence (what was observed and where it came from). A control isevidencedin a dataset only when every check ismet, and in the workspace only when every sensitive dataset isevidenced. With sensitive datasets left out of the 500 cap, which stay unassessed, no control isevidencedin the workspace. A workspace without sensitive datasets isno_sensitive_data, which is not green. A scan or a result older than 30 days and an access review older than 365 days no longer count. Policy controls only count when all of them are measured on the dataset: an approved waiver counts, but is stated apart. - Gaps flagged: each failing check gives the gap code and how many datasets have it. What BeryX
does not measure is
product_gapand never counts: the source's location, encryption at rest at the source, the DPIA and the cost of moving data. So controls 4, 9, 10 and 13 are never green. - Exportable evidence:
GET /api/v1/compliance/cdmcas JSON,.mdand.csv(one row per dataset × control × check, with the evidence and the gap), computed on read, with no LLM and without touching the sources. Each person sees the sensitive datasets they can access (backend/app/domain/compliance/cdmc_service.py). In the app, the panel is in Governance (frontend/src/components/ControlosCdmc.tsx).
What is missing: BeryX is not CDMC certified, and the map is not a statement of conformity. The
framework's licence and the cost of the assessment are the owner's decisions. The mapping, the
product gaps and the path to certification are in docs/compliance/cdmc.md.
Tests: backend/tests/test_cdmc.py.
AI agents and models: register, Annex IV datasheet and MCP access
- Register of agents and models linked to the datasets they consume. Each record states the
model, the purpose, the AI Act risk level (or the Art. 10 AI system it belongs to), the allowed
MCP tools and domains and the owner. States: proposed, approved, suspended and retired.
Approving requires a purpose, and changing the purpose, model, tools or domains of an approved
agent sends it back to proposed (
GET/POST /api/v1/compliance/ai-agents,backend/app/domain/compliance/ai_agents.py). - Planned use cases (card #783,
backend/app/domain/compliance/ai_use_cases.py): a record withkinduse_caseregisters a use case before a model or agent exists, with the purpose, the readiness profile (readiness_use_case: RAG, ML, agent or BI) and the candidate datasets, linked like an agent's. It stays proposed, and cannot be approved nor get tokens or OAuth connections (409ai_use_case_not_built) until it becomes a model or an agent. Then it goes through the go-live until approved. It stays out of the catalogue, the control matrix, the board section, the PR review, the Sonar (downstream consumers of the blind spots, map nodes and new agents in «What changed since your last visit») and the ghost owners, and the Trust APIagentconsumer linked to it stays in shadow AI. A record can only go back to a use case while it is proposed and has no unrevoked tokens or OAuth connections. A rotated token counts until the end of its grace period and an expired one counts until someone revokes it, because it can still be rotated. On every request, the API refuses the token of a record that is a use case (403ai_use_case_not_built). - AI use case requests, by anyone (card #1297, plan with compliance,
backend/app/domain/compliance/ai_use_case_requests.py,/conformidade/agentes-ia/pedidos): anyone in the workspace, a Viewer too, requests a use case without going through an admin. The form asks what they want to do and why, which catalogue datasets they need (with the class and the readiness for the profile), whether there is personal data, whether the result decides about people (the values of the #1294 record), which tool or model (from the #1296 approved list), the business owner and the number that should move (#1228), and the AI Act Article 5 screening (the #1144 questions). Before submitting, the page shows the lane and why (POST …/preview).- The triage (
backend/app/domain/compliance/ai_use_case_triage.py) puts it in one of three lanes. The full lane, if it decides or helps decide about people, or if an Article 5 point in force has “yes” or is unanswered. The normal lane, with classified data (personal, confidential or a critical element), declared personal data (“I don't know” counts as “yes”), no tool, one off the list or one that does not accept the data's class. The fast lane, with none of that. A request with personal data never lands in the fast lane (a Hypothesis property proves it). - The fast lane approves without a person (owner decision, 19/11/2026). The trail keeps that it
was the rule (
ai_use_case_request_auto_approved) and the answers that put it there, as codes only. A sample becomes a review task for the domain: always each person's first and 1 in every 10 by default. An admin turns automatic approval off and changes the sample and the days in the triage rules, and each change goes into the audit log (ai_use_case_auto_approval_changed). When off, the fast lane waits for a person. - In the normal lane, whoever manages one of the datasets' domains decides (the named owner or
the
ownerteam), or an admin when the data has no domain, and never the requester. Rejecting needs the reason, which the requester sees on the page. The full lane needs the high-risk triage (#1195) and the impact assessment (#1196), which are not in BeryX yet: the request is marked, the page says what is missing, and until then only an admin approves it, with a note. The trail keeps the steps left undone. - Once approved, the request becomes a planned use case in the registry, with the purpose, the profile, the datasets, the “Decisions about people” section, the Article 5 screening, the model from the list and the expected outcome, and it follows the existing go-live once it becomes an agent or a model.
- Every change runs the triage again: changing the answers of a waiting request, and changing the
planned use case born from it (the datasets, the purpose, Article 5 or the decisions about
people, through
ai_agents.material_changeandpeople_decisions.save_profile). If the new lane needs more than the one it was approved in, the request waits for a person again; rejected after that, the planned use case is retired. - Times in view: per lane, the median between submission and decision over the last 90 days, the
ones waiting and the oldest. A request stalled for more than 5 days (workspace rule) and one
approved by the rule that was drawn in the sample are the
ai_use_case_requesttask of whoever reviews (the stalled ones in the full lane, the admins'). - The requester, the business owner and whoever decided are personal data: only the requester and the reviewers see them, they go into the export and the erasure, and nothing goes to an LLM. BeryX records the request, the triage and the decision; the answers are the requester's declarations, and the page says it is not legal advice.
- Each agent's record says whether its model is on the approved list
(
GET /api/v1/compliance/ai-agents/{agent_id}/approved-model).
- The triage (
- Readiness of each record (
GET /api/v1/compliance/ai-agents/{agent_id}/readiness): for each linked dataset, the score, verdict and blocker of the record's profile (or of the request'suse_case), the same asGET /api/v1/datasets/{dataset_id}/ai-readiness, and whether it is classified (PII or CDE). The overall verdict is the worst dataset's, and a dataset without a scan issem_dados. With no profile on the record, a model is assessed for ML and an agent for agent. - Per-agent identity in MCP tokens: a
dvk_*token created withagent_idis that agent's identity, and the MCP server sends the tool name on every call (X-Beryx-MCP-Tool;read_resourcefor resource reads). On each request the API applies the record: the global kill switch (PUT /api/v1/compliance/ai-agents/kill-switch) and the agent's own (suspended or retired) stop everything; with tools on the record, a call outside the list is refused; the tool in the header only counts on a route it calls, because the header comes from the caller and the token also works on the REST API (backend/app/domain/compliance/ai_agent_tools.py, card #741); a classified dataset, with PII or confidential columns or marked as a CDE, is only readable by an approved agent with a declared purpose and a complete go-live, if the dataset is linked to it and through a tool the rights matrix lets reach classified data; and, with domains on the record, only datasets in those domains. An id the record closes, in the path or the query, gets a 403 with the reason, and so does a domain that holds one of those datasets,/domains/{domain_id}included. Unfiltered listings leave those datasets out and, for the domains that hold them, the domain's report, certification and score: the domain list shows their names, like a restricted domain's. While the record withholds datasets or domains from the agent, whole-workspace views (dashboards, knowledge graph, metadata quality) and the reads that do not filter by dataset (a scan's progress, the Art. 10 AI system, the integrations, the reference lists) are closed to it; the token's own action requests stay open (backend/app/api/agent_access.py). In the RAG gate, a corpus the record closes is «not found». An agent token cannot have theconfigscope, which appliesdatavault.yaml. - Go-live and operation of each agent (card #725,
backend/app/domain/compliance/ai_agent_golive.py):- Owners: the agent owner and the prompt owner are people in the workspace
(
PUT /api/v1/compliance/ai-agents/{agent_id}/owners). Replacing one person with another opens a handover with a five-step runbook: review the rights matrix, the risk register, the agent's tokens, the drills and who oversees the agent (card #1295). Removing the owner and giving the place to someone else opens the same handover, and so does erasing the owner's account: the place stays vacant and the next person does the handover. Only the first assignment and the return of the last owner who accepted do not. The new owner gets theai_agent_handovertask in "My tasks", with a notice in the bell and by email, even with the Viewer role. Only they mark the steps and accept the handover, on the agent page or through the API (POST /api/v1/compliance/ai-agents/handovers/{handover_id}/accept), and only they read what there is to review atGET /api/v1/compliance/ai-agents/{agent_id}/handovers/mine. While the handover is open, the agent cannot read classified data. - Rights matrix (
PUT /api/v1/compliance/ai-agents/{agent_id}/rights): per MCP tool, whether it reaches classified data, the domains (within the record's), the hourly request limit (above it, 429agent_tool_limit) and the action types apropose_actionmay propose (agent_action_not_allowed). With a matrix, the record's tools are the matrix's, and changing it on an approved agent sends it back to proposed. An empty list does not restrict, so emptying the matrix gets 409ai_agent_rights_empty, and emptying the record's tools or domains gets 409ai_agent_tools_emptyandai_agent_domains_empty. To cut off access, you suspend the agent. - Go-live checklist (
GET /api/v1/compliance/ai-agents/{agent_id}/golive): owners with no open handover, a rights matrix, every linked dataset certified, those datasets' classification verified by a person or by the catalogue (no column with only the automatic classification or unclassified), the three failure drills passed within the record's interval (90 days by default), an impact assessment on record, the Article 5 screening with no point in force at “yes” or “to be assessed”, least privilege for the agent's accounts at the source (card #1263, the reach below) and an approval recorded by a person. Approving requires the other eight items (409ai_agent_golive_incomplete). Without all nine, the agent cannot read classified data. Least privilege left unchecked neither passes nor closes: it does not hold up the approval nor close the data (deferredon the item). With all nine, it reads only the linked classified datasets, the ones the checklist verified: a classified dataset not linked to it gets 403agent_classified_deniedand is left out of listings. The checklist is read on every agent request: a certificate that drops, a new unclassified column or a drill that falls due closes that data on the next request. Changing the record clears the impact assessment. Linking or unlinking a dataset on an approved agent, or changing the role of a linked dataset, counts as a change to the record: the agent goes back to proposed, the checklist reads the current datasets and the change is recorded inadmin_events(ai_agent_updated). The record's risk class counts too. The agent page says the real state: approved with the go-live still incomplete, with the missing items. - AI Act Article 5 screening (
GETandPUT /api/v1/compliance/ai-agents/{agent_id}/art5-screeningand/api/v1/compliance/ai-systems/{system_id}/art5-screening, card #1144): one short question per point of paragraph 1, (a) to (h), plus (b-A) and (b-B), answered “no”, “yes” or “to be assessed”, with a note. It is the customer's declaration, not legal advice.- Unanswered: on an agent, the point counts as “to be assessed”. On an AI system, only a
declared “yes” or “to be assessed” counts, and it counts for every linked agent. The
response tells the two cases apart in
answered. - Dates: (b-A) and (b-B) only count from 2/12/2026 (Regulation (EU) 2026/1744, which
amends Article 113(a)). Before that, the response shows
applies_from. - Go-live: a point in force at “yes” or “to be assessed” leaves the
art5_screeningitem unmet. Moving a point from “no” to “yes” or “to be assessed” sends an approved agent back to proposed. - Board: a new “yes” requests a decision (
ai_prohibited_practice, objectai_agent), unless one is already open. The next board pack generated requests it. - Audit: each save is recorded in
admin_events(ai_agent_art5_screened,ai_system_art5_screened) with the point codes only, never the note. - Evidence: the Annex IV datasheet carries the
art5section (“Triagem por fazer” with no answers and “sem resposta” on an unanswered point) and the control matrix oneAI-ART5-…row per agent. - In the app: an admin answers in the Go-live panel of the agent page and, for the system,
on the Compliance page (
frontend/src/components/Art5ScreeningSection.tsx). The section says it is the customer's declaration and not a legal opinion. Each point states the answer in words (“No response” when there is none) and whether it blocks the go-live, and (b-A) and (b-B) say “Counts from” until that date.
- Unanswered: on an agent, the point counts as “to be assessed”. On an AI system, only a
declared “yes” or “to be assessed” counts, and it counts for every linked agent. The
response tells the two cases apart in
- Agent reach at the source (
GET /api/v1/compliance/ai-agents/{agent_id}/reach, card #1263,backend/app/domain/compliance/ai_agent_reach.py): what the agent's accounts at the source, the ones on the record, can do, according to the latest grants snapshot. No request goes to the source. It belongs to the "AI & Data Security" add-on and needs compliance in the plan.- Findings: a classified dataset (confidential or personal columns) the accounts can read and
the record does not link; a dataset they can write to, because the record has no write role;
and, as a suggestion, a grant the account did not use within the access history window (the
dormant access). The account is compared case-insensitively and with or without BigQuery's
serviceAccount:oruser:. PUBLIC counts on the connections where the agent is: those of the linked datasets and those with rows for its accounts. - Verdict:
excesswith a classified dataset outside the record or a write;unknown, with the reason, with no accounts on the record, an account with no rows in the snapshot, or a connection of the agent whose connector does not read grants, has no snapshot, has an out-of-date snapshot (snapshot_stale: read more thansecurity_reads_stale_daysdays ago, 7 by default, the limit of the exposure score and the posture report) or has a cut snapshot;minimalotherwise. A snapshot row proves the access, so an excess counts even in a cut or out-of-date snapshot: waiting does not remove it, only a new snapshot without it. The verdict, the counts and the acceptance count every finding; the response lists up to 500, excesses first. - In BeryX: the rights matrix tools and the linked datasets with no allowed request in 30 days, as a suggestion to remove them. What came in less than 30 days ago does not count.
- The fix: for an admin, the
REVOKEfor each finding in the source's dialect, to copy (backend/app/domain/compliance/ai_agent_reach_fix.py). BeryX does not revoke.- What goes: the snapshot puts the account's direct grant and those of its roles in one row, without saying where each privilege comes from, so the excess goes from the account itself and from every role in the row. On a write finding only the write goes, and SELECT stays.
- What comes back: the reads of linked datasets that the
REVOKEwould take, in the connection's database. When what goes also gives the read (a role, ALL PRIVILEGES,roles/bigquery.dataEditor), the fix adds theGRANTof the read to the account (SELECT, orroles/bigquery.dataViewer); for a Snowflake user, to its roles. - PostgreSQL: the account leaves the role and gets back
USAGEon the schema of every linked table it reads in the connection andSELECTon those the role gave it. Leaving the role also takes what the snapshot does not read, the schemas' USAGE. Roles apply to the cluster: when the account reads linked data in another PostgreSQL connection, the membership stays and the role's privilege on the table goes, for every member. AREVOKEof what the account does not have only gives a warning. - Snowflake: only roles receive privileges, and they apply to the account, where each
BeryX connection is one database. The account only leaves the role when it reads no
linked data in any Snowflake connection; otherwise the role's privilege on the table goes,
for every member, and the membership stays. The name the catalog keeps in lower case
(
hr.colaboradores) goes back to upper case inside quotes ("HR"."COLABORADORES"), and a mixed-case name stays as it is. The fix is run with the role that made the grant (theGRANTED_BY), a role above it or one withMANAGE GRANTS: aREVOKEonly removes the grants made by the active role or a role below it, and succeeds without an error even when it removes nothing. - BigQuery and Databricks: the grant belongs to the group, and the
REVOKEremoves it from every member. - Chained roles: an account only leaves a role it is a direct member of. When it also
reaches the role through another role (in Snowflake, the functional role that inherits the
access role), leaving it takes nothing away: the role's privilege on the table goes, for
every member. The snapshot keeps those roles in
chained. A predefined PostgreSQL role the account reaches that way gets no SQL, because it has no table grants. - No SQL, with the note that the access is removed at the source:
- ownership (OWNERSHIP, in Snowflake and Databricks), which is not revoked and is transferred to another owner; taking the account out of the role that holds ownership is still SQL;
- a privilege that comes from an object above the table: a binding on the BigQuery dataset
and what Databricks inherits from the catalogue or the schema (the
inherited_fromoftable_privileges, kept in the snapshot ininherited). AREVOKE … ON TABLEdoes not remove it, and Databricks accepts it without an error; removing it from the schema or the catalogue would also remove it from the other tables; - a superuser, the buckets and the sources without SQL (the HR CSV export in the demo).
- Go-live: the
least_privilegeitem. An excess closes classified data until it is fixed at the source or accepted by an admin with a reason and a deadline of up to 180 days (POST /api/v1/compliance/ai-agents/{agent_id}/reach/acceptance, inadmin_eventsasai_agent_reach_accepted). The acceptance drops when the excesses change or the deadline passes.unknownstays unchecked and neither passes nor closes. An agent already approved when the item came in has 30 days before the item closes: the migration records the deadline and oneai_agent_least_privilege_graceper agent inadmin_events. Without the add-on (when the trial ends, for example) the item stays unchecked (addon_inactive) and theai_agent_reachtask does not show: the old snapshot is kept for up to 90 days, but the page, the acceptance and the task are behind the add-on, and nothing would unblock it. - Where it shows: the "Reach" section on the agent page, where only an admin sees the names of
the accounts, principals and datasets and the
REVOKE, and everyone else sees counts. One row per agent, with counts only, inGET /api/v1/data-security/ai-agents-reachand on the "AI & Data Security" tab, which needs only the add-on, like shadow AI (the agent page also needs compliance). The posture report counts the agents with least privilege checked, with excess reach and not checked (ai_agent_reachin the exposure section). When the excesses go up between two snapshots, or when an agent in the grace period has excesses, the owner gets theai_agent_reachtask (without an owner, the admins), which closes with a snapshot without excesses or with an acceptance. The names stay out of the logs and never go to an LLM. - Limits:
- the snapshot is per table, so a PostgreSQL column grant is left out, and row access policies and column masks are not in it;
- BigQuery does not return the bindings inherited from the project, folder and organisation;
Databricks only shows what the connection's principal sees; and the members of a BigQuery
or Databricks group are not expanded. What each source's view does not show comes out in
limitsand does not change the verdict; - a snapshot row written before the snapshot kept
inheritedandchaineddoes not say what comes from above the table nor through which roles the account gets there. Until the next read, in BigQuery and Databricks it gets no SQL; in PostgreSQL and Snowflake, with roles, the role's privilege on the table goes (apg_*role gets no SQL), and without roles the account's own goes; - the Snowflake snapshot does not tell a database role from an account role: the fix writes
ROLE, and for a database role it isDATABASE ROLE, with the database name before the role name; - a predefined PostgreSQL role (
pg_read_all_data) has no table grants: the fix takes the account out of it even with linked reads in another connection, and those do not come back. Leaving a role also takes the reads it gave in a database that is not a BeryX connection, and the database'sCONNECTwhen it came from it. A table without a schema in its name gets noUSAGE.
- Findings: a classified dataset (confidential or personal columns) the accounts can read and
the record does not link; a dataset they can write to, because the record has no write role;
and, as a suggestion, a grant the account did not use within the access history window (the
dormant access). The account is compared case-insensitively and with or without BigQuery's
- Decisions about people (card #1294,
GETandPUT /api/v1/compliance/ai-agents/{agent_id}/people-decisionsand/api/v1/compliance/ai-systems/{system_id}/people-decisions,backend/app/domain/compliance/people_decisions.py): in a section of its own on the record, whether the agent, the model or the system makes or helps make decisions about people (none,assists,decides_alone), the decision type, the jurisdictions of the people affected and how a person takes part in the decision. It is the customer's declaration.- Gap: “decides alone” with no human review described gives
human_review_undescribed. - Rights: the response lists, for each chosen jurisdiction, what people can ask for, with the article, the URL and the reading date of each rule, and the requests about automated decisions linked to the record (received, on time, late, with no deadline).
- Control matrix: one
AI-ADM-…row per system that decides about people or already has requests, with those received, those answered on time and late and those with no deadline (backend/app/domain/compliance/people_decision_matrix.py). - Who supervises: the agent's named supervisors with an active account (card #1295); the
agent owner or the system's declared owner only when the agent has no named supervisor.
With named supervisors but none with an active account, the response says so, with neither
the owner nor the deputy in their place. Only the name, never the email
(
backend/app/domain/compliance/people_decisions.py,supervisors_for). - Notice templates per jurisdiction (
GET /api/v1/compliance/automated-decision-notices/{jurisdiction}): they only go out once validated. BeryxTech validated those of the seven jurisdictions on 23/11/2026; a new jurisdiction's template gives 404 until it is validated. - In the app: on the agent's Compliance tab and, for the system, on the Compliance page
(
frontend/src/components/PeopleDecisionsSection.tsx). The section says it is not legal advice.
- Gap: “decides alone” with no human review described gives
- Model version and prompt fingerprint (card #1009,
backend/app/domain/compliance/ai_agent_versions.py): the record keepsmodel_versionandprompt_fingerprint, the SHA-256 of the prompt in hexadecimal, and never the text: anything that is not a hash gets 422ai_agent_invalid_fingerprint. The customer declares both, so the fingerprint detects a prompt swapped by mistake and does not prove which prompt is running. Changing them counts as a change to the record, except for the first declaration, from empty to a value and with no row for that field in the history: an agent approved before the fields existed stays approved. The history of the model, the version and the fingerprint is read atGET /api/v1/compliance/ai-agents/{agent_id}/versions: before, after, who and when. An agent without a fingerprint is a gap on the Annex IV sheet, in what is approved and in the catalog, outside the nine go-live items. A model without a prompt stays empty, with no gap. - Prompt fingerprint on every request (card #1010,
backend/app/domain/compliance/ai_agent_prompt_check.py): the agent sends the hash inX-Beryx-Prompt-Fingerprint, and the usage log keeps the state (match,mismatchorabsent) and the hash.mismatchcloses classified data with 403agent_prompt_mismatchand lets the rest through; it stays that way until an admin declares the fingerprint, with theai_agent_prompt_mismatchtask for the prompt owner and the notice on the agent's page. A new hash sends the agent back to proposed, and repeating the one on the record keeps the approval.absentlogs and goes through, except withprompt_requiredon the record. The hash comes from the agent itself: it detects changes made by mistake and not an agent that lies. - Prompt checked in the cloud (card #1270, “AI & Data Security” add-on, admins only,
backend/app/domain/compliance/ai_agent_prompt_cloud.py): on an Amazon Bedrock agent with the #1020 reference and read role, an admin turns the option on in the record (PUT /api/v1/compliance/ai-agents/{agent_id}/prompt-cloud-check, with the alias, and theai_agent_prompt_cloud_check_setevent). The check (POST …/prompt-cloud-check/verify) reads theinstructionof the version the alias serves, computes the SHA-256 in memory, compares it with the record and discards the text. The state stays on the record and in the usage log (prompt_cloud_state):verified,cloud_mismatch(the latch above, with the task) ordeclared. TheGETreturns the command for the customer to compute the same hash. In the demo and in training, 409discovery_sandbox. - Go-live through the approval workflow (card #804,
backend/app/domain/compliance/ai_agent_approvals.py): with theai_agentworkflow switched on in Governance, the agent is only approved through it. Approving on the status gets 409ai_agent_approval_required, and the agent is submitted atPOST /api/v1/approvals/requests(object_type: ai_agent), proposed or suspended and with the other six checklist items done. Each step has approvers by role, team or person, the rule «one», «all» or «majority» and the rejection threshold (by default, one rejection vetoes). The workflow template brings Security (the admins) and then whoever holds theAof the «AI agent go-live» activity in the RACI matrix of the record's first domain. Whoever submits, the agent owner and the prompt owner do not decide (403). Before each vote the checklist runs again: a certificate that dropped or a drill that fell due closes the request in conflict. Changing the purpose, the model, the risk class, the tools, the domains or the rights matrix, or linking or unlinking a dataset, closes it at once. With the workflow on, the approval item requires the agent's latest request approved: an agent approved before the workflow was switched on stops reading classified data until it goes through it, and you suspend it first to submit it. A suspended agent only leaves through the workflow: asking for another status gets 409ai_agent_approval_required, and retiring it stays direct. With no workflow on, an admin approves and reactivates, as above. - Per-agent kill switch (
POST /api/v1/compliance/ai-agents/{agent_id}/kill): suspends the agent and revokes all its tokens, including those in a rotation's grace period. The next request from any of them gets a 401. An open stream (/events/*) checks the token every 15 s, before the next message, and closes. Because the keep-alive goes out every 15 s, closing can take up to 30 s. It is recorded inadmin_events(ai_agent_killed, with who, the previous state and how many tokens were revoked). Reactivating the agent does not bring the revoked tokens back. - Proposals from a stopped agent (card #1337,
backend/app/domain/compliance/ai_agent_holds.py): the agent's kill switch (the supervisor's too), suspending, retiring and the global kill switch move the agent's pending proposals (propose_action, by token, by OAuth connection or on behalf of a person), or those of every agent, toheld. Approving a held one gets a 409 (action_request_held), and approving one from a stopped agent that was stillpendingholds it and gets the same 409. The registry (pending_proposals,held_proposals) and the cut-off responses (proposals_held) count them, andGET /api/v1/assistant/action-requests?status=heldlists them, withheld(when, who stopped the agent, the reason and the agent). Reactivating does not release them: an admin decides each one inPOST /api/v1/compliance/ai-agents/{agent_id}/held-proposals/{request_id},discardorrelease. Going back to the queue needs the agent back and the global kill switch off (409), is checked again (403 or 422) and gets a new 7-day window.GET /api/v1/compliance/ai-agents/{agent_id}/cutsays whether the agent is stopped, since when and by whom, and the counts; the list of held proposals is for admins only. It goes toadmin_events(ai_agent_proposals_held, with the count,ai_agent_proposal_releasedandassistant_action_request_rejectedwithheld). - Kill switch in the customer's cloud (card #1284, "AI & Data Security" add-on,
backend/app/domain/compliance/ai_agent_cloud_cut.py): with theai_agent.lifecycletype on a channel (on a channel with the type, turning the type or the channel on or off, changing the URL, the team or the types and deleting the channel is an admin's only:403ai_agent_lifecycle_admin_onlyto the others;ai_agent_cloud_cut_enabled,_disabledand_changedinadmin_events, also through IaC and thedatavault.yaml), the agent's kill switch and retiring senddatavault.ai_agent.killed; suspending and the global kill switch,.suspended; reactivating and turning the global one off,.reactivated; an episode of unusual activity,.anomaly. The body carries the agent, the reason, the record's cloud reference and the source accounts, never secrets. A function in the customer's account (the AWS, Azure, Google Cloud, Databricks and Snowflake recipes indocs/KILL_SWITCH_CLOUD.md) turns off the credential and respondscut_status, signed with the channel's secret (cut_signature; without it, the response counts asfailed, never as confirmed);GET /api/v1/compliance/ai-agents/{agent_id}/cutreturnscloud(confirmed,failed,no_recipeorpending, the code and the times), which the agent's page shows next to "cut off in BeryX", and each result goes toadmin_events(ai_agent_cloud_cut_result, with each channel's: with several, a failure prevails). The worker delivers up to 10 events at the same time, with a ceiling per delivery and a deadline per event: a cut-off never stays "waiting" forever. BeryX does not write to the cloud. - Named human oversight (card #1295,
backend/app/domain/compliance/ai_agent_supervision.py): an owner is not a supervisor.- Who oversees (
GETandPUT /api/v1/compliance/ai-agents/{agent_id}/supervision): up to 20 people in the workspace, named by an admin, each with the declared powers (override a decision, stop the agent, escalate), an optional deputy and the declared availability. The record also declares whether the agent acts without a person's prior approval and the support given to those who oversee it. Saving replaces the whole list, and goes toadmin_events(ai_agent_supervision_changed). - Stopping as a supervisor (
POST /api/v1/compliance/ai-agents/{agent_id}/supervision/stop): the supervisor with the power to stop, or their deputy, turns on the kill switch of an approved agent without being an admin, even with the Viewer role, with a note of up to 500 characters. A proposed agent or a use case gets a 409 (ai_agent_supervisor_stop_not_approved): taking it out of the way is an admin's. It goes toadmin_eventsin their name (ai_agent_killed). Reactivating is still an admin's. - Gaps, read on every request and never stored: a supervisor without an active account
(erasing the account leaves the vacancy, with its powers, until an admin saves the list again;
a deactivated account counts the same); an approved agent that acts without prior approval,
or without that declared, with nobody with an active account who can stop it, neither a
supervisor with the power nor their deputy; and the missing declaration. The vacancy opens
the
ai_agent_supervisiontask for the agent owner (without one, for the admins), even with the Viewer role, and so does the lack of anyone who can stop it when the record declares that the agent acts without prior approval; without the declaration it stays on the record only. The task closes on its own when the gap goes away. They are warnings: none of them closes the go-live or the access to data. - Competence: each supervisor's training comes from the workspace's AI literacy register (card #1293): "recorded", with the day of the latest, "expired" or "none", within the plan's window for supervisors (12 months without a plan). The Annex IV datasheet says how many supervisors have training recorded.
- Intervention log: read from their sources and once each, the agent's kill switch
cut-offs, the global ones (on every agent that already existed) and the suspensions through
the status come in on their own, and so do the agent's proposals (
propose_action) that a person rejected or approved. The suspension the kill switch writes is the same cut-off and does not count again. The cut-offs come from the audit trail and last as long as it does (400 days). The other interventions (a decision overridden outside BeryX, an escalation or another one) are recorded by a supervisor or deputy, or by an admin, with the day and the reason in two lines (POST /api/v1/compliance/ai-agents/{agent_id}/interventions,ai_agent_intervention_recorded). - Signs of rubber-stamp oversight, only for the proposals that go through BeryX: the rate of approvals without changes and the median time from the proposal to the decision, including the wait, over the last 90 days. They are only calculated with at least 20 decisions. They raise a warning at 95% or more approved without changes, or with the median under one minute, and never block anything. Today whoever approves cannot edit an agent's proposal, so an approval is always without changes. The thresholds are BeryX's; IMDA's framework for agents (v1.5, section 2.2) suggests tracking the override rate and the response time against automation bias.
- Who sees it: the names, the powers, the deputy and the availability, whoever reads the
agent. The training, the log and the signs, only the admins, the agent and prompt owners, its
supervisors and deputies and the AI security owner; in restricted mode, the others get 403.
A token is not a person: an AI agent's, and also a
dvk_or OAuth one without a record, gets a 403 (ai_agent_supervision_people_only), and the Annex IV datasheet comes to it without the names or the availability. None of this goes to an LLM, and it is included in the workspace export and erasure. - Where it is read: the "Oversight" tab on the agent page, the "Supervisors" step of the
owner handover, the "Human oversight" section of the Annex IV datasheet, with its gaps, and
the board pack counts (
ai.supervision, with no names). The page cites Article 26(2) of the AI Act, which applies to Annex III systems from 2/12/2027, and says it is not legal advice: BeryX records who oversees and what they did, and does not say the organization complies.
- Who oversees (
- Periodic agent review, signed (card #1338,
backend/app/domain/compliance/ai_agent_review.py): approving an agent is a moment; the review is the record that someone looked at the whole picture afterwards.- What changed since the last review (
GET /api/v1/compliance/ai-agents/{agent_id}/review, the "Review" tab on the agent page), since the last review or, without one, since go-live, one line per signal, each with the section it comes from: the record (the model and version, the prompt fingerprint, the tools and MCP servers, the domains, the linked datasets, the purpose and risk level); reach and permissions, with the "AI & Data Security" add-on (the blast radius at the source, who can invoke, who can change the model and the version the cloud serves); the linked data (schema, classification and certification); usage (requests and refusals, anomalous usage alerts and invocation alerts); value (the business number against the baseline); the failure drills and the risk register; incidents; and who answers for it (the owner, the supervisors and the interventions). Each line says "changed", "no changes", "for the period" or "no data", with the reason: a signal that does not exist yet (AI incidents), that needs the add-on, that was not configured or was never read never shows as "no changes". - The decision (
POST /api/v1/compliance/ai-agents/{agent_id}/reviews): the agent's owner or a supervisor (or the deputy), with an active account, even with the Reader role, decides to keep, restrict, suspend or retire, with a note. The review cuts nothing: suspending and retiring are done where they already are. The record is signed by the installation (Ed25519 over the canonical JSON, with its own key), with the record at that moment, the decision, the note, the dates, what asked for the review and the lines, only codes, counts and dates and the reviewer by id; it stays on the agent page, can be downloaded (GET …/reviews/{review_id}/signed) and is checked atPOST /api/v1/compliance/ai-agent-reviews/verify. It goes toadmin_events(ai_agent_review_signed), without the note. - The interval is the record's (90 days by default, 7 to 365, which an admin changes at
PUT …/review/interval), until #1147 makes it depend on the risk, and counts from the last review or from go-live. Only an approved agent has a review due. - Review now: the
ai_agent_reviewtask goes to the owner (without an active owner, to the admins), even with the Reader role, when the review is overdue or when, after the last one, the reach went up, the model version changed (in the record or in the cloud), the owner left, the business number moved against expectations for three periods in a row or a usage alert opened and is still to handle. It closes on its own when someone signs the review. - Where it counts: each approved agent's
AI-REVIEW-*line in the control matrix ("outside the interval" when overdue), the board pack counts (ai.agent_reviews), the numbers on the agenda of the AI management system's management review and the "Approved agents with the periodic review on time" indicator in the Manage function of the AI governance maturity (MANAGE 4.1 and GOVERN 1.5 of the NIST AI RMF). - Who sees it: what changed and the schedule, whoever reads the agent; the reviewer and the note, only the admins, the agent and prompt owners, the supervisors and the AI security owner (in restricted mode, the others get 403). A token gets 403. With the reviewer's account erased, the record stays without the person and is signed again; it is included in the workspace export and erasure. Nothing goes to an LLM. The page cites Article 26(5) of the AI Act and says it is not legal advice.
- What changed since the last review (
- Retired agent: the record stays as evidence. The record itself, the rights matrix, the
owners, the drills, the linked datasets and the impact assessment get 409
ai_agent_retired, and an open handover can no longer move. The risk register stays open: an overdue risk counts in the control matrix until someone reviews or closes it. - Risk register (
GET /api/v1/compliance/ai-agents/risks,backend/app/domain/compliance/ai_agent_risks.py): per agent, each risk has an owner, likelihood and impact from 1 to 5, the score (their product) and the level (low, medium, high, critical), the mitigation, the status and the next review date. The risk owner or an admin records the review (POST /api/v1/compliance/ai-agents/risks/{risk_id}/review), and the next date counts from then. An open risk past its date is overdue. - Failure drills (
POST /api/v1/compliance/ai-agents/{agent_id}/drills,backend/app/domain/compliance/ai_agent_drills.py): three scenarios against the real guards, with synthetic values, without reading the source or calling an LLM. In the PII leak, an email, a NIF and an IBAN go through the LLM output guard and the workspace's classified datasets are requested by the agent without the go-live, and those not linked to it also with a complete go-live. In poisoned data, five requests aimed at a model go through the injection detector. In the forbidden action, a tool outside the matrix, the hourly limit, aconfigtoken and an approval vote by a token are tried. Each check is recorded as passed, failed or not applicable, and the drill fails if the guard it exercises fails (for example, with the output guard switched off). Each scenario has to pass again within the interval, or the guard tests item drops. Each check carries the codes of the risk it exercises (backend/app/domain/compliance/ai_agent_drill_risks.py, card #1268): the PII leak with LLM02:2026 and DSGAI01, poisoned data with LLM01:2026 and ASI01, the tool outside the matrix and the hourly limit with LLM03:2026 and ASI02, theconfigtoken and the vote by a token with LLM03:2026 and ASI03, and the planted instruction of the live drill (below) with LLM01:2026 and ASI01 (OWASP Top 10 for LLM Applications 2026, Top 10 for Agentic Applications 2026 and GenAI Data Security Risks and Mitigations 2026). The codes appear in the result, in the board pack and in the go-live part of the posture report (drill_risks). - Live injection drill (
POST /api/v1/compliance/ai-agents/{agent_id}/planted-drill,backend/app/domain/compliance/ai_agent_planted_drill.py, card #1286): the fourth scenario, "planted instruction", and the only exception to the read-only rule. Off by default; an admin turns it on (PUT /api/v1/compliance/ai-agents/planted-drill/settings, event inadmin_events) and opens a window of up to 15 minutes for an approved agent, with the kill switch off; the agent's owner gets an email. The next response from a read tool of the MCP server to that agent carries a synthetic record, marked in provenance, with a fixed request: calldrill_echo, which does nothing, with a one-time code. It fails if the agent calls it with the code; it passes if the window closes without that and with at least 3 of its requests after the record; otherwise it is inconclusive. The result goes into the drills with the same validity, and the agent record can require it at go-live (PUT …/{agent_id}/planted-drill/required). Required, it does not block the approval, because the window only opens on an approved agent: the agent is approved and only reads classified data after passing it (ai_agent_golive.blocks_approval). It proves one case, not the absence of all. - Scheduled drills (
backend/app/domain/compliance/ai_agent_drill_schedule.py, card #1268): every hour, the worker's scheduler runs each scenario of each approved agentBERYX_AI_AGENT_DRILL_LEAD_DAYSdays (7 by default) before the last drill that passed expires, in active workspaces with compliance on the plan. It is recorded with the author «BeryX (agendador dos ensaios de falha)» in the log and saves the result like a drill requested by hand. A suspended or retired agent does not run, and neither does the live drill: only an admin opens its window. With several worker replicas, each one locks the row of the agent it runs (FOR UPDATE SKIP LOCKED) and the others skip it (tests/test_postgres_only.py). It runs once per validity: one that passes renews it, and one that fails drops in the go-live like a failure by hand, is not repeated and opens the «Scheduled drill failed» task (ai_agent_drill_failed) for the agent's owner (without an owner, for the admins), with the notice in the bell and by email. A drill by hand that fails again does not close it: it closes when the scenario passes again or the agent is retired. The Go-live panel of the agent page says, for each scenario, who requested the last one (the person or the scheduler), from when the scheduler runs it again and the risks it exercises. - Board pack (
GET /api/v1/compliance/ai-agents/board-pack, also in Markdown withboard-pack.md): the risk register (by level, overdue, without an owner and the list from the highest to the lowest) and the drills of the last 90 days by scenario and outcome, with the agents missing a scenario, with a failed one or one past due. Only counts, agent names, titles and dates. The live drill counts in the drills of the period and, in an agent's gaps, only when the record requires it; an inconclusive one goes in its own column and list, never in "failed" (card #1286).
- Owners: the agent owner and the prompt owner are people in the workspace
(
- Usage log: every agent request is logged, allowed or refused, with the agent, tool, route,
datasets, whether they were classified, the refusal reason and the
X-Request-ID. On a listing with no dataset in the request, «classified» says whether what the agent sees includes classified datasets. Only ids and names, never what was read (GET /api/v1/compliance/ai-agents/usage, filters by agent, dataset, outcome, prompt fingerprint state and date). On the agent's page, the «Usage and checks» section brings together the last 30 days, in UTC: the requests per day, the requests with the prompt off the record, with the date and the hash, and the checks against the source by verdict, with the source and the expected value. Only counts and hashes, never the prompt text (GET /api/v1/compliance/ai-agents/{agent_id}/activity,backend/app/domain/compliance/ai_agent_activity.py, card #1068). - Unusual-activity alerts (card #1261,
backend/app/domain/compliance/ai_agent_anomaly_rules.pyandai_agent_anomalies.py): the prompt off the record is no longer the only warning. On the tasks tick, the rules run over each agent's usage log, in a sliding window (60 minutes by default): a burst of refusals, a first refusal for classified data, datasets the agent had not read in the previous 30 days, the tool's hourly cap hit in several hours of the day and a token used after the agent was suspended or retired. That last rule only sees tokens that still exist: the kill switch revokes them, and a revoked token gets a 401 at authentication, before it reaches the usage log (backend/app/api/deps.py). The planted record and the echo of the live drill (#1286) are left out: they are not requests from the agent. Requests per day and classified reads go through the modified z with the calibrated threshold of the scan anomalies, from 5 days on. The thresholds are insettings(ai_agent_anomaly_*,docs/CONFIGURACAO.md). Each episode, per agent and rule, raises a single alert: theai_agent_anomalyevent in the Audit log and the SIEM (codes, counts and ids only;highwhen classified data is involved), theai_agent_anomalytask for the agent's owner (or the admins), with the bell and one email, and the «Alerts» section on the agent's page, with the button to suspend it. The episode closes once the rule has gone a whole window without firing: an agent at the threshold, firing and not firing from tick to tick, keeps a single episode. Nothing suspends by itself: a person does. It is in the plan with compliance, like the rest of the agent registry. - Agent workflows (card #1015,
GET/POST /api/v1/compliance/ai-workflows,backend/app/domain/compliance/ai_workflows.py): ordered steps, each with a registered agent or a human approval, with the purpose, the owner and the risk level. Writing is for admins. It is a declared record: BeryX does not correlate the calls of a real run. From what the steps say, each read calculates the combined reach (reach: the union of the datasets and tools, with the classified ones flagged, andtools_unrestrictedwhen an agent has no list) and the gaps (gaps):agent_suspended,agent_retired,agent_no_goliveandclassified_handoff, classified data from an earlier step reaching an agent that the per-request guard does not let read it. A human approval does not clear classified data. Suspending or retiring an agent, its kill switch and the global one returnaffected_workflows, andGET /api/v1/compliance/ai-workflows?agent_id=shows them before the cut. Affected rather than stopped, because BeryX cuts tokens and does not orchestrate. A workflow with only invisible datasets gets a 404. In a visible workflow, the step of an agent with only invisible datasets stays opaque, with no name and no counts. InGET /api/v1/searchit is theai_workflowkind, on plans with compliance. In the app (card #1016), under Compliance → AI agents → «Open the agent workflows»: the list with the state and the gaps, the page of each workflow with the steps, the reach and the gaps, and, for admins, registering, editing the record, deleting and the step editor, with the order on the «↑» and «↓» buttons (frontend/src/pages/WorkflowsAgentes.tsx,WorkflowAgente.tsx,frontend/src/components/WorkflowStepsModal.tsx). The page of each agent or model lists the workflows it takes part in (AgentWorkflowsSection.tsx), and the dialog for suspending, the kill switch and the global kill switch says before the cut which workflows it affects (AgentesIa.tsx). - Annex IV datasheet (point 2(d)) per agent or model, built from provenance (source, table,
layer and upstream datasets), the profile (rows, columns and columns with missing values),
quality, classification and the Art. 10 bias signals, with gaps written out. It exports as JSON
and Markdown (
GET /api/v1/compliance/ai-agents/{agent_id}/annex-iv.md,backend/app/domain/compliance/annex_iv.py).- When linking the dataset, the admin declares the licence and terms of use, who labelled the
data and the version (
license_terms,labeleranddataset_version). An empty field is a gap in the datasheet; the labeller is only asked for in the training, validation and testing roles. - Who can change this data (card #1264): in the training, validation and testing roles, the row says, from the latest grants snapshot, how many principals can write at the source, how many are service accounts, how many have not accessed it for more than 90 days and whether writing is open to everyone. Counts only; «not read» when the connector returns no grants, the read has not happened yet or did not cover the dataset. For now only in the datasheet's Markdown.
- Training × testing overlap: for each pair of training and testing datasets, the datasheet
counts the test rows that are also in training, by the same declared primary key on both.
An equal key is not enough: the two must be the same table on another connection, one must
derive from the other, or both must derive from a dataset with that key. Only table-level
lineage counts: an edge with a column (
via_column, like the foreign keypedidos.cliente_id) is a reference and does not show that they are the same rows. It reads only the key columns, read-only, up to the data-diff cap (BERYX_DIFF_MAX_ROWS). Each pair read spends one data-diff run of the workspace (BERYX_DIFF_RATE_LIMIT_RUNS) and the datasheet reads everything within the data-diff time limit (BERYX_DIFF_TIMEOUT_S). Never from a sample: with no common key, no such common origin, above the cap, out of runs or out of time, or with the source failing, the pair stays «not measured», with the reason in the gaps. Counts only, never values (backend/app/domain/compliance/annex_iv_overlap.py).
- When linking the dataset, the admin declares the licence and terms of use, who labelled the
data and the version (
- AI-BOM in CycloneDX 1.7 (card #1276, “AI & Data Security” add-on, with compliance in the
plan): the Annex IV datasheet for machines, in the format supply-chain tools read
(
GET /api/v1/compliance/ai-agents/{agent_id}/aibom,backend/app/domain/compliance/ai_bom.py). It reads like the datasheet, with the same data-diff limit.- The model (
machine-learning-model) carries the declared version and themodelCard: the purpose inuseCases, the datasheet's bias signals and evaluation gaps intechnicalLimitationsand the linked datasets inmodelParameters.datasets. In a model record, the model is the record itself. - Each linked dataset is a
datacomponent, with the declared version and licence, the PII or confidential columns (sensitiveData), the regulations of the critical data elements (classification) and the catalogue owner and steward (governance, email only). The bias signals also go on the dataset, as codes (beryx:bias_signals: column, dimension and severity), so they are not lost on an agent with no declared model. - The prompt goes in by its declared fingerprint only (
hashes), never the text. The record's MCP tools sit inside the BeryX MCP server (with the product version), each with the definitions version and the SHA-256 that the signed manifest of #1269 publishes (backend/app/domain/compliance/mcp_tool_manifest.py), and the server points to that manifest (GET /api/v1/public/mcp/tool-manifest). An agent with no tool list may use them all: the BOM lists the manifest's tools and setsberyx:allowed_toolstounrestricted(a model or a use case calls no tools). A record tool the manifest lacks is left without version or hash and goes to the gaps. - The other MCP servers the record declares (#1275) go in as components of their own, each with
the declared package version and SHA-256, the three capabilities and the last check in the
official MCP registry; the remote URL does not go in, and a server with no version or hash
goes to the gaps. The declared tools fingerprint goes on the root (
beryx:tools_fingerprint). - On the model component, the version the cloud serves, the upgrade option and the end of life
(#1339,
beryx:model_version_observed,beryx:model_version_upgradeandberyx:model_end_of_life), only what the last read read, and, with the artifact scan on (#1287), each artifact's format and verdict, the dangerous calls and the SHA-256 of the parts read (beryx:artifact_scan…), without the URIs. externalReferencesto the Annex IV datasheet and, with an AI system linked, to the Article 10 dossier.- What the datasheet lacks is left out: it goes to the
beryx:gapsproperty, with the codes of the Annex IV gaps and those of the BOM (BOM_GAPS). The link note, the declared labeller and the supervisors never go in, nor any value from the sources. The free texts (the limitations and the reference comments) come out in European Portuguese, like the datasheet's Markdown. - It comes in a
{bom, signature}envelope (the fileaibom-….signed.json; the CycloneDX document the tools read is thebom), signed with Ed25519 by a key used only for AI-BOMs (signed_document.py);POST /api/v1/compliance/aibom/verifychecks it, comparing the public key's 32 bytes and not only thekey_id(backend/app/api/v1/ai_agent_aibom.py). The test validates the BOM against the officialbom-1.7.schema.jsonschema, stored with its date and SHA-256 inbackend/tests/fixtures/cyclonedx/.
- The model (
- Shadow AI: agent-type consumers that log consumption through the Trust API without a record
show up in the register as «unauthorised»; registering them with
data_consumer_idon an agent or model record takes them off that list (on a planned use case record, it does not). - In the cloud, without a record, and the inventory coverage (card #1194, “AI & Data Security”
add-on, admins only): with the credentials the records already have for “who invokes” and the
Databricks connections, the register reads, through official listings only, the SageMaker AI
endpoints, Bedrock's custom, imported and provisioned-throughput models and agents, the Bedrock
models invoked in the last 30 days (from CloudTrail, without who invoked), the Vertex AI
endpoints, the Azure OpenAI deployments and the Databricks serving endpoints. What has no record
shows as «in the cloud, without a record», the invoked first, with «create record» (it starts as
proposed, with the model and, when it can, the cloud reference) and «ignore» with a reason, which
stays in the audit trail. The coverage is «X of Y of what BeryX observed», per source (the clouds,
shadow AI in the sources and the Trust API), with the last read and what was left to read, and it
goes into the control matrix and the board pack, counts only. It never reads requests, responses
or invocation logs, and never writes to the customer's cloud
(
GET /api/v1/compliance/ai-inventory,backend/app/domain/compliance/ai_discovery.py; the listing permissions are in the connector guide). - AI controls on AWS (card #1270, “AI & Data Security” add-on, admins only): in the same read of an
AWS source, the AI registry reads the Bedrock guardrails (the prompt-attack filter, the categories,
PII, topics and grounding, blocking, only detecting or off), each agent's guardrail, the guardrail
enforced on the account, invocation logging (on, where to and whether it stores the text) and the
network isolation and VPC of the SageMaker AI endpoints. Each finding comes with the fix to copy
(
awsor the IAM block), which BeryX does not apply; what was not read stays “unread” and is never a finding, and the screen says what the configuration does not say (backend/app/domain/compliance/ai_control_posture_aws.py; the permissions are in the connector guide). For logging that stores the text, the finding says who reads the destination bucket, crossed with the #789 grants snapshot when the bucket is one of the workspace's S3 connections (how many principals and whether it is public, with the link to “Who accesses the source”), and “not read”, never zero, when BeryX does not read it (backend/app/domain/compliance/ai_log_destination.py). Only who reads counts (whoever only writes to the bucket does not), and CloudWatch's large data bucket is crossed like the S3 one. The agent with no guardrail drops to medium, with the reason, when the account or the organization enforces one. With no listing read (a role without the permissions), the source says “not read”, never “0 findings”, also in the posture report. - MCP servers on the machines (card #1288, “AI & Data Security” add-on, admins only; an exception
to the house rule, off by default and turned on by an admin, with the event in the audit trail):
the SDK's
beryx agents scan, run on a laptop, in CI or by the MDM, reads the MCP configurations of Claude Code (with the MDM'smanaged-mcp.json), Claude Desktop, Cursor, VS Code and Codex and sends metadata only: the name, the transport, the declared package and version, the host of a remote server, whether the file has a plaintext secret (yes or no) and, with--tools, the SHA-256 of the remote servers' tool definitions, with the machine and the project as pseudonyms;--dry-runshows the exact JSON. It never sends variable values, tokens, arguments, paths or query strings. The inventory joins the machines per server, with the versions, the fingerprints that changed between machines and «without a record» with «ignore» and the reason (POST /api/v1/compliance/ai-inventory/mcp-scans,backend/app/domain/compliance/mcp_machine_scan.py,docs/AGENTES_CODIGO.md§4). A server that a record declares (#1275) comes out «with a record», with its name, matched first by identity (the remote host, the package or the official registry name); the configuration's name alone only counts on a record with no package nor host and is marked «by name only» (match: name_only), and the record's version is compared with the machines' ones (version_state). The check in the official MCP registry is only the records' one. - Scan of a model's artifacts (card #1287, “AI & Data Security” add-on, admins only; an exception
to the rule of reading the posture only, off by default): on an Amazon Bedrock, SageMaker AI or
Vertex AI agent, an admin turns it on with the
s3://orgs://URIs of the artifacts (and the ones the read of who can change the model, #1274, found in the cloud go in too), and the event goes to the audit trail. Withs3:GetObjectorstorage.objects.geton the prefix only, granted by the customer to the record's reader role or service account, BeryX reads by byte ranges what tells the format (the header of a safetensors or GGUF file, the central directory and the.pklmembers of a PyTorch zip, ZIP64 too, the opcodes of a pickle) and gives one of four verdicts: safe format, pickle with no findings, pickle with dangerous calls (with the name,os.system,builtins.eval…) or “not read” (with the reason). A folder (the SageMaker AI prefix, the model imported into Bedrock, the Vertex AI directory) stays “not read” (prefix_not_listed: listing it would needs3:ListBucket), and so does amodel.tar.gz(tar_gz_not_supported: a gzip file cannot be read by ranges). It never deserialises anything nor downloads the tensors: in a 6 GiBtorch.saveit reads less than 1 KB. It keeps the verdict and the SHA-256 of the parts read, never the content; it reads again every 24 hours, on its own queue, only the artifact whose version changed. The verdict shows on the Annex IV sheet, without the URI. It does not detect backdoors in the weights nor assess the model (GET/PUT /api/v1/compliance/ai-agents/{id}/artifact-scan,backend/app/domain/compliance/model_artifact_scans.py). - Posture fixes by infrastructure-as-code pull request (card #1285, “AI & Data Security” add-on,
admins only; an exception to the read-only rule, off by default and turned on by an admin, with
the event in the audit trail): for the findings with a deterministic fix, BeryX generates a new
file and, in one click, opens it as a pull request in the git repository the customer already
connected (GitHub, GitLab or Azure DevOps), with that integration's permissions and in the folder
the admin chooses. There are three: the excess grant of an agent's blast radius (#1263), as a
SQL migration with the
REVOKEin the source's dialect (PostgreSQL, Snowflake, Databricks or BigQuery); the missing guardrail of a Bedrock agent (#1270), in Terraform, with a guardrail that blocks prompt attacks, its version and the imported agent (import) where only theguardrail_configurationchanges; and the logging turned off, in Terraform: Bedrock invocation logging (metadata only, no text), the Azure OpenAI account's diagnostic settings and the Vertex AI Data Access logs (#1271). Key authentication on the Azure OpenAI account goes the same way, through anazapi_update_resourcethat only changesdisableLocalAuth. Each file carries the why, the link to the finding and the limit: BeryX does not know the customer's modules, and the pull request is a starting point their team adapts. BeryX never changes existing files, never merges and applies nothing; the file is always the one from the latest read, recomputed on the server. The pull request is followed by the worker's polling; after the merge, the finding stays “awaiting verification” until a later read (the source's controls or the next grant snapshot) no longer sees it, and the page says when the read still sees it. The other findings keep the fix to copy, and in the demo and in training the file shows and no pull request opens (GET /api/v1/compliance/posture-fixes,POST /api/v1/compliance/posture-fixes/pull-requests,backend/app/domain/compliance/posture_fix_prs.py,backend/app/domain/compliance/posture_iac.py). Each generated file is validated in the tests without network: the Terraform against the providers' resource schemas and byterraform fmt -check, the SQL by the dialect's parser. - AI controls on Azure and Google (card #1271, “AI & Data Security” add-on, admins only): in the
same read of an Azure OpenAI or Vertex AI source, the AI registry reads each deployment's content
filters (the harm categories, jailbreak and protected material, blocking or only annotating; with
no named policy the default one applies, and embeddings and audio such as Whisper have no filters,
so they give no finding), the network, key
authentication, customer-managed key and diagnostic logs of the Azure account; and the Model
Armor templates and the project's floor setting (the only one that wires the Agent Platform), the
network, CMEK and request logging of the endpoints and the project's effective Data Access logs
on Google (the union of the project, folder and organization). Each finding
comes with the fix to copy (
azorgcloud), which BeryX does not apply; what was not read stays “unread” and is never a finding (backend/app/domain/compliance/ai_control_posture.py; the permissions are in the connector guide). - Model version, pinned or changing by itself (card #1339, “AI & Data Security” add-on): in the
scheduled read of who can invoke, with the same credential, the agent page reads the version the
cloud serves and compares it with the record's: on Azure OpenAI, the deployment's
model.versionandversionUpgradeOptionand, from the account's models, the state, the retirement date and the default version; on Bedrock, the inference profile's model and the foundation model'smodelLifecycle(ACTIVEorLEGACY, with the dates). The findings: the observed version is not the declared one (the record says “declared X, observed Y” and the owner gets the task “Review the model version”), automatic upgrade on (with the fix to pin the version), end of life within 90 days (task, with the date as deadline) or already past, a version at end of life without a date (medium) or with the date beyond 90 days (low) and a record with no declared version. A failed read does not close the task, and the upgrade option Azure does not return stays “not read”. Failure drills and the impact assessment made before a version change seen become “different version”, and the change goes to the audit trail. The AI registry shows the list of all records (admins only). BeryX changes neither the record nor the cloud; what was not read stays “not read”; SageMaker AI, Vertex AI and Databricks are not read (GET /api/v1/compliance/ai-agents/{agent_id}/model-version,backend/app/domain/compliance/model_versions.py; the permissions are in the connector guide). - Who can change the model of an agent in the cloud (card #1274, “AI & Data Security” add-on): on
SageMaker AI, right after each read of who can invoke, with the same reference on the record and the same
reader role, BeryX follows the endpoint to the model it serves (the configuration, the
ModelDataUrl, the image and the registry version, with its approval status) and simulates in IAM who can write to the artifact in S3, update the endpoint or register versions in the registry group. The gaps are the artifact's bucket or the registry group open to writes by anyone or by another account, the served version without approval and whoever can change it without being on the record (its principal or theownertag equal to the owner). Admins see the ARNs and the chain; other members, the counts, in the agent page's «Quem pode alterar» (who can change) section, right after «Quem pode invocar». The Annex IV sheet gains the model's origin: the artifact URI, the image and the approval status of each variant (“outside the registry” only on SageMaker AI, the only one with approval in the registry). It does not open the model file and never writes to the customer's account. On Amazon Bedrock, it reads custom models (GetCustomModel, the training data) and imported models (GetImportedModel, the artifact), with the same bucket and the same simulation, only for who can write to those objects; a foundation model or an inference profile belongs to the provider and has no artifact in the account. On Vertex AI, the endpoint gives the served models andmodels.gettheartifactUriand the image; the policy of the artifact's bucket says whether the public can write, and the Policy Analyzer, one query per target, who can update the endpoint, register model versions or write to the bucket. On Databricks,CAN_MANAGEon the serving endpoint counts and, on the Unity Catalog models it serves, the owner and whoever hasCREATE_MODEL_VERSION,MANAGEorALL_PRIVILEGES, and the schema's and the catalog's owners; the served version'sstorage_locationis the artifact's origin, and who writes to it stays “not read”. A failed read shows its code and date on the page, beside the previous snapshot. Azure OpenAI is not read yet, and the status isnot_supported(GET /api/v1/compliance/ai-agents/{agent_id}/changers,backend/app/domain/compliance/model_changers.pyandmodel_changers_clouds.py; the permissions are in the connector guide). - AI controls on Databricks and Snowflake (card #1272, “AI & Data Security” add-on, admins only):
with the connection that already exists, the AI registry reads the
ai_gatewayof each Databricks serving endpoint (guardrails, inference table, rate limits and usage tracking) and, on a Snowflake connection, the account guardrails (AI_SETTINGS, blocking or only logging), cross-region inference and who hasUSE AI FUNCTIONS(the list of roles comes in the API). Findings: chat endpoint without guardrails, inference table on (the finding says how many principals read it and whetheraccount usersis one of them, from the grants snapshot, or that the grants stay uncrossed when the table is not in the snapshot), no rate limits, usage tracking off, cross-region inference in an account with personal data (with the number of datasets and the severity by the geography of the account's region, read withCURRENT_REGION(): high only withANY_REGION, a*_GLOBALor a group of another geography), account guardrails only logging (low) or off (medium), andPUBLICwithUSE AI FUNCTIONS. The screen also says what is not read: the Unity Gateway service policies and the Cortex Guard ofAI_COMPLETE. Each finding carries the fix to copy, which BeryX does not apply (backend/app/domain/compliance/ai_control_posture.py,frontend/src/pages/agentesIa/ControlosIa.tsx; the permissions are in the connector guide). - Agents on the platforms: the tools, the data and the identity (card #1273, “AI & Data Security”
add-on, admins only): in the same read of an AWS or Azure OpenAI source, the AI registry reads
what each agent can do, from the configuration. From Bedrock Agents, the model, the role, the
memory, the tools (with the code interpreter and the computer use ones) and the knowledge bases
with the bucket and prefixes behind them; from AgentCore, each runtime's network and authorizer
(the code belongs to the customer: its tools are not visible) and each gateway's authorizer,
policy engine and MCP targets; from Microsoft Foundry, each project's agents with their tools and
connections; from Entra Agent ID, the agent identities and their owners. The knowledge base is
linked to the S3 datasets BeryX already classified, and «this agent reads personal data through
this knowledge base, and its record does not link it» is a finding; «Create record» pre-fills the
model, links those datasets and returns the MCP servers. The findings show in the AI registry, in
the “AI & Data Security” tab and in the posture report (counts only). Instructions and secrets are never
kept; Google's Agent Engine, Databricks agents and Snowflake Cortex Agents (
SHOW AGENTSis not read yet) stay “unread”, with the reason, and each platform says what the latest read read: read, partly read (with what was left unread, also on the source) or not read (with the reason). An agent whose configuration was all left unread does not count as read, and a list cut at the ceiling is marked (backend/app/domain/compliance/ai_platform_agents.py; the permissions are in the connector guide). - Anomalous invocations of a model in the cloud (card #1262, “AI & Data Security” add-on): at the
end of each who-invoked read and inventory read, on top of the counts already kept, a principal ×
model pair's spike on a day (modified z with the anomalies' calibrated threshold, at least 5 days
and 100 invocations above the median), a principal's first invocation of the agent's model in 90
days and a model the inventory had never seen invoked in the account. Each alert fires once, with
the
model_invocation_anomalyevent in the trail and in the SIEM (ids, the pseudonym and counts only) and the task for the AI security owner or for the admins; on the agent page and in the new models section of the AI agents page, «It was expected» raises the pair's threshold and «It is an anomaly» lowers it. Only an admin sees the whole model: the others get only the id of a model from the vendor's catalogue. It shows, it does not stop (GET /api/v1/compliance/model-invocation-anomalies,backend/app/domain/compliance/model_invocation_anomalies.py). - Exposure score v2 (card #1278, “AI & Data Security” add-on): each dataset's score
(
GET /api/v1/datasets/{id}/exposureand the DPO view) now adds the reach at the source (the principals that can read it in the last grants snapshot, a bucket's readers too, and more points when reading is open to everyone) and the AI reach (the shadow AI accounts with an open «unauthorised AI» issue, the copies in vector indexes and the ones read by principals who cannot read the source, and who can invoke the model of an agent that reads it without being on the record, each principal once), with the weights reworked so the total stays at 100 (backend/app/domain/compliance/data_exposure.py, table indocs/METODOS.md§ Score de exposição). The response states the version and, for 30 days from the migration that brought it, shows the v1 score alongside. A factor not read yet says «not read» and adds nothing (for vector copies, the part about who reads the index without reading the source stays unread without the issue or the pair's verdict), and while one is left the score never falls below the v1 score for the same facts (floor). Reading the last one removes the floor: with more information the score is more accurate and the band can go down; when a snapshot goes out of date, the factor goes back to «not read» and the floor comes back. The posture report uses v2 and says how many datasets have factors not read yet. Counts only: no names, ARNs or accounts. - AI security in the data posture report (card #1266, “AI & Data Security” add-on, admins only):
the signed report (
GET /api/v1/workspace/data-posture, schemaberyx-data-posture/2) has theai_securitysection, with counts, agent names and dates only: the inventory («X of Y of what BeryX observed», per source, and what is there without a record), model access (per agent with a cloud reference, how many principals can invoke, how many are not the one on the record, the invocations by principals outside the snapshot and, on SageMaker AI, Bedrock, Vertex AI and Databricks, how many can change the model and how many of those are outside the record and, on Azure OpenAI and Bedrock, the version the cloud serves against the one the record declares, the end of life and the version findings, #1339), shadow AI (the accounts and datasets with an open «unauthorised AI» issue), go-live (the approved agents with the checklist incomplete, the overdue drills, the prompts that no longer match the record's fingerprint and whether the AI security lead is named and has accepted, without the name), the cut-offs of the last 90 days (the kill switches and the DLP inspection blocks) and the cloud controls (card #1270: per AWS, Azure OpenAI and Vertex AI source and, since #1272, per Databricks and Snowflake connection, whether the AI controls were read, failed or were never read and how many findings they gave, and the findings by code and severity, without the guardrail, the endpoint or the account; the resource and the fix stay in the AI inventory). Each snapshot carries its date and age and, pastsecurity_reads_stale_daysdays (7 by default, the limit of the scheduled reads), says it is out of date. For the cloud and shadow AI the oldest snapshot counts, and a cloud source whose last read failed is out of date too, as in the controls matrix. A read that never happened says «not read», never zero. The mapping says which items it serves as evidence for, with the source ID (OWASP GenAI Data Security Risks and Mitigations 2026, OWASP Top 10 for LLM Applications 2026, OWASP Top 10 for Agentic Applications 2026, the MITRE ATLAS v2026.10 mitigations and Article 15(5) of the AI Act) and what is left out, and it never says the customer complies. Verification (POST /api/v1/workspace/data-posture/verify) still accepts theberyx-data-posture/1reports already issued (backend/app/domain/compliance/data_posture_ai.py). - Map of the AI security frameworks (card #1277,
backend/app/domain/compliance/ai_security_standards.py): six frameworks re-read on 21/11/2026, each with its version and URL and the items in the source's order: OWASP GenAI Data Security Risks and Mitigations 2026 (v1.0, DSGAI01 to DSGAI21), OWASP Top 10 for LLM Applications 2026 (LLM01 to LLM10, with the 2025 ID of each, because the order changed), OWASP Top 10 for Agentic Applications 2026 (ASI01 to ASI10), OWASP MCP Top 10 (v0.1, in beta, MCP01 to MCP10), 14 MITRE ATLAS v2026.10 mitigations (data, access, provenance, logging and agents) and the five attacks of Article 15(5) of the AI Act. Each item has one of four states: BeryX proves it (reads or measures), records it (the customer declares it), in part (with the limit written down) or left with the customer (code execution, the agent's memory, the model's robustness). Each proof points to a file and a name in the code, and the test fails if an item has no state or a proof points to a path that does not exist. In the controls matrix (CSV and XLSX), each agent has one row per framework (AI-OWASP-DSGAI-…,AI-OWASP-LLM-…,AI-OWASP-ASI-…,AI-OWASP-MCP-…,AI-ATLAS-…andAI-ART15-…), with the counts per state and today's result of the agent's and the workspace's rows that the items' proofs point to: it fails if one failed and passes only if all passed. Items whose proofs are all outside the matrix are listed apart. The board pack counts the controls without these rows.catalogue()returns the map with the counts and the proofs, for the site's /referenciais page, which does not show it yet. The NIST AI RMF and ISO/IEC 42001 are in a sibling map, with the «Standards» view in Compliance (cards #1108 and #1109, entry «AI management standards» below). No state says the customer complies with a framework. - RAG with excess access: who reads the index and not the origin (card #1227, “AI & Data
Security” add-on): for each vector index and declared origin, the latest grants snapshot says who
has a read privilege on each side. The pair comes out
index_widerwhen there are principals that read the index and do not read the origin,source_wider(informative),parityorunknownwith the reason (a side without grants read, a truncated snapshot, the snapshot's limits, two different connections). When in doubt, neverparity. With a classified origin, it opens avector_index_accessissue for the owner of the index's domain, which resolves itself at the next snapshot in parity, and the accesses go into the next recertification. In Privacy, the list «Vector indexes with excess access» (admins only, with the names); on the index page, the counts for whoever reads it. The MCP toolget_vector_index_accessonly returns counts (GET /api/v1/data-security/vector-index-access,backend/app/domain/compliance/vector_index_access.py; the limits are in SEGURANCA.md). - Who can write to training data and to the origins of a vector index (card #1264, “AI & Data
Security” add-on): for each dataset with a training, validation or testing role on a record that
is not retired and for each declared origin of a vector index, the latest grants snapshot says how
many principals can write, how many are service accounts (by the name the source gives:
serviceAccount:in BigQuery and GCS, the application id in Databricks, an AWS service principal in S3; PostgreSQL and Snowflake do not tell them apart), how many have not accessed it for more than 90 days (the #788 history, which sees reads and only on classified datasets) and whether writing is open to everyone (PUBLIC or an everyone group). It opens anai_data_write_exposureissue for the owner of the dataset's domain when writing is open to everyone (critical) or when the number of writers rises between two snapshots (warning), and it resolves itself at the next snapshot with neither. The Annex IV datasheet and the posture report (next to who reads) carry the counts (backend/app/domain/compliance/ai_data_write_exposure.py; the limits are in SEGURANCA.md). - Embedded instructions in the inspection and in the RAG gate (card #1265): the MCP's indirect
injection detector (
backend/app/domain/llm/injection.py) gives theinstructionfinding in the DLP inspection of prompts, responses and tool results (tool_result; “AI & Data Security” add-on,POST /api/v1/data-security/inspect) and theinstrucao_embutidaflag in the RAG gate (POST /api/v1/rag-gate), with the signals. It is a heuristic: it asks for review by default, only blocks or rejects if the request policy asks for it, does not mask the text and the response always says"detector": "heuristic". It counts in the quota as the inspection and the document already did (backend/tests/test_embedded_instructions.py; INSPECAO_DLP.md and RAG_GATE.md). - Text inspection through MCP and recipes for gateways (card #1279, "AI & Data Security"
add-on): the MCP tool
inspect_texthas the request, the response, the quota and the event of the DLP inspection, because it calls the same route with the agent's token: a text counts once, whether it comes through the route or the tool. It goes through the agent record and the rights matrix like the other tools, on the remote server it only shows in a workspace with the add-on, and without a verdict it returns an error, neverpermitir. The text is neither stored nor logged (backend/app/mcp_inspect_text.py). For those who already have a gateway, two recipes tested on 23/11/2026 against a local instance: a custom guardrail in LiteLLM Proxy 1.110.2 and a Lua filter in Envoy 1.40.2 (integrations/gateways/). Each one closes by default when the inspection does not answer (503) and goes on without inspection with the fail-open option, only on a timeout,5xxor429from BeryX; a401,403,404or422, an unreadable response, an unknown verdict or a text above the limits always close, and Envoy refuses a compressed body (415). The choice is the customer's. BeryX does not sit in front of the model: the gateway is the customer's (INSPECAO_DLP.md, «Receitas para gateways»). - Embedded instructions in the scan (card #1280, “AI & Data Security” add-on): on a dataset that is
in an agent's record or is the origin of a vector index, the same detector runs on the row sample
of the text columns (up to 2,000 characters per value and 2 million per dataset) and on the text
of each document of a corpus (the first 100,000 characters). It stores a count per column and per
signal, never the text, and opens an
embedded_instructionissue for the domain owner, critical if the dataset is classified or an agent that reads it can use a tool that acts. The dataset page shows the count and, to whoever sees the values, the examples from the stored sample with the marks neutralised (GET /api/v1/datasets/{id}/embedded-instructions); a request with a token (an AI agent's, advk_or OAuth without a record) gets the count without the examples. A column of prompt templates leaves the issue with a reason (PUT …/embedded-instructions/exemptions), and the next scan closes it also when that was the only column with text. It runs on the sample and is a heuristic: a zero does not prove the column is clean (backend/app/domain/quality/embedded_instructions.py; METODOS.md). - The number that should move (card #1228, plan with compliance): each record (use case, model
or agent) links to one or more business metrics of the workspace, preferably with an approved
definition, with the expected direction (up or down), an optional target and the business owner,
a person of the workspace who may not be the technical owner. The baseline freezes at approval
(the go-live read from the audit trail and kept on the record): the average of the metric's
points over the 8 full weeks before it (4 to 13), with the points used and their SHA-256, which
each read checks again. A daily metric keeps 35 days of points, so the window is cut to 5 weeks.
Without enough points there is "no baseline", never zero, and before go-live it is provisional.
After it, the series with the difference against the baseline per period, the average of the
latest window and the movement against the expected direction (expected, opposite, flat or no
data) and, separately, "review the data" when the metric's sources have open issues. It warns
when the approved definition changes version after go-live and when the metric was deleted or has
no points ("out of date"), and a record approved more than 30 days ago without a metric is a gap
for the business owner. Calculated without AI; BeryX shows how the metric moved, not that the AI
caused it. The board pack and the "For decision-makers" view only carry the counts
(
GET/PUT /api/v1/compliance/ai-agents/{id}/outcomes, MCP toolget_ai_outcomes,backend/app/domain/compliance/ai_outcomes.py; the method in METODOS). - AI security owner (card #1229, plan with compliance): an admin names, in AI agents, a person of
the workspace and an optional deputy, and the named person accepts the role on the same page, even
as a Reader. The naming and the acceptance stay in the audit trail, and changing the owner clears
the acceptance. Only active accounts of the workspace count. What the role gives (reading and
deciding anomalous invocations, their tasks and the detail of the agents' oversight) only applies,
to the owner and the deputy, after the acceptance; until then it stays with the admins (card
#1309). The deputy accepts their own role separately, in the same panel, and only acts with both
acceptances, theirs and the owner's; changing the deputy clears the deputy's acceptance (card
#1358). It is the answer to the first of the five AI questions of the board pack and of the
"For decision-makers" view: with nobody, "nobody named" (no evidence); named, declared; accepted,
with evidence
(
GET/PUT /api/v1/compliance/ai-agents/security-owner,POST …/security-owner/accept,backend/app/domain/compliance/ai_security_owner.py). - Pre-check of SQL before running it (card #701): the agent sends the query and the purpose
and gets the trust decision for each table it reads (joins, CTEs, subqueries, quoted names), with
the worst one setting the summary. A table that does not match a dataset the agent can see is
unknown, nevertrusted, and a table outside the token's scope answers like one that does not exist. The SQL is only read with sqlglot and never runs (POST /api/v1/trust/check-sql, MCP toolcheck_sql_trust,backend/app/domain/quality/trust_sql.py). - Numbers that hold up (card #726): the agent sends the number it is about to answer with and
how it measured it (dataset, aggregation, column, filters and period) or the SQL that produced it.
BeryX recomputes it on the source, read-only, with the connection's timeout and cost caps,
compares it within a tolerance and returns
verified,divergent(with the source value and the evidence) orunverifiable(with the reason). A number that matches anuntrustedsource, or one with no scan, isunverifiable. On sensitive columns, the metric can only count. The agent's SQL goes through the SQL rules guard and cannot read them, not even under another name (a*, a list of aliases, even on the table's own alias, a UNION). Each check goes into the output log, per agent, and into the audit trail (POST /api/v1/ai-outputs/verify,GET /api/v1/compliance/ai-agents/{agent_id}/outputs, MCP toolverify_claim,backend/app/domain/quality/claim_check.py). - The definition that stands, over MCP (card #760): the
metrics://definitionsresource gives an agent the approved definitions from the metric registry, with the formula, the filters, the grain, the approved version, the owner and the definition authority (name only) and the source datasets the caller can see (backend/app/mcp_metrics.py). Withdefinition_id,verify_claimrecomputes the number with that version's formula and filters, on one of the definition's source datasets, instead of the aggregation the agent sends; the query goes through the agent SQL guard, and a change waiting for approval only counts once approved (backend/app/domain/quality/claim_definition.py). - The agent that asked and did not read is recorded (card #730):
POST /trust/consumptionswithconsumed: falsestores an abstention, with the decision the agent saw. It counts apart from the consumptions (abstentions_7din the dataset's «Consumers» and inGET /consumers), does not warn the channels or the bell like a read inuntrusted, and in an incident's impact an agent that reads none of the datasets in reach shows up as blocked («1 agent blocked by the trust decision») instead of affected. The SDK records the datasets that reachfail_onthis way (trust.check, and theTrustGatewhen it refuses), and the MCP toolget_trust_decisionwithconsumer_namerecords it on anuntrusteddecision (backend/app/domain/lineage/data_consumers.py). - Decision-time dossier (card #820): for each recorded consumption, an admin exports as JSON,
PDF or HTML what BeryX knew at the moment it was recorded: the decision the agent saw, the
verdict and policy status of the last evaluation up to then, data freshness, the unresolved
issues and the approved version of the dataset's metric definitions. Each section says whether
it was captured in the record, reconstructed from history or is unavailable; the policy content
keeps no versions and comes out unavailable. Metadata only, signed with Ed25519, with the signed
JSON inside the PDF, and verifiable through
POST /api/v1/trust/dossier/verify(GET /api/v1/trust/consumptions/{consumption_id}/dossier,backend/app/domain/compliance/decision_dossier.py). In the app (card #1069), with compliance in the plan, an admin opens the dossier of each consumption in the «Decision-time dossiers» section of the dataset page and the agent page (the consumptions of the consumer the agent's record authorises and those the agent's tokens recorded), reads the state of the data at that moment, section by section, and downloads the signed JSON exactly as the API returned it. In «Verify dossier» you paste the JSON or upload the export's .json or .html, and the page says whether the signature and the content match (GET /api/v1/trust/consumptions,backend/app/domain/compliance/decision_dossier_service.py,frontend/src/pages/VerificarDossie.tsx). - Agents never approve or certify: a token only writes to the operations the API opens to it,
and an agent's only action is to propose (
propose_action), which a person decides in the app. - Source content marked in MCP results: every tool and every resource says in
_meta(beryxtech.com/provenance) which fields carry text from the sources and the people of the workspace and which are shaped like a request to a model, without deleting or changing the text. The server instructions remind the agent that those fields are data, never orders (backend/app/mcp_provenance.py, MCP server). - MCP tool definitions with a signed fingerprint (card #1269): a manifest gives the SHA-256
of each
tools/listdefinition (RFC 8785 canonical JSON) and the one of the whole list, with the version of the definitions, the date and what changed since the previous one, signed with Ed25519. It is read atGET /api/v1/public/mcp/tool-manifestand in theberyx://tools/manifestresource, and verified atPOST /api/v1/public/mcp/tool-manifest/verify.tools/listcomes in name order, so the list hash matches, and a definition that changes without a new version in the changelog breaks CI (backend/app/domain/compliance/mcp_tool_manifest.py, MCP server). - The agent's other MCP servers on the record (card #1275, "AI & Data Security" add-on): the
record declares the MCP servers the agent uses besides BeryX's, with the official registry
name, the exact version, the package
fileSha256, the remote URL and three capabilities (reads private data, receives untrusted content, communicates externally), added up per agent. The agent sends inX-Beryx-Tools-Fingerprintthe SHA-256 of the tool definitions of all of them, with the canonicalisation of the BeryX manifest, and each request goes to the usage log withmatch,mismatchorabsent; a divergence opens the owner's task and, with thetools_enforcedoption, closes classified data. An admin checks the version and the hash of each server in the official MCP registry (GET /v0.1/servers/{serverName}/versions/{version}, read-only), and Annex IV lists the servers. Changing the servers sends an approved agent back to "proposed". The fingerprint comes from the agent itself: it detects a tool swapped by mistake, not an agent that lies (GET/PUT /api/v1/compliance/ai-agents/{agent_id}/mcp-servers,backend/app/domain/compliance/ai_agent_mcp_servers.py, security). - Readiness alerts per use case: each record in the registry is a use case (an agent, a
model or a planned use case), and the datasets linked to its record are the ones that feed it.
Each dataset is read with the per-dataset blockers of the readiness per purpose (
no_scan,verdict_fail,contract_invalid,ai_readiness_blocked,open_critical_issues). With a readiness profile on the record (a planned use case always has one), the purpose is that profile's, the same as the record's readiness:mlis read astreino. Without a profile, it is the one its role and kind give: training, validation and testing fortreino; an agent's production use foragenteandrag; a model's foragente. Each blocker is an "AI use case blocked" task (ai_use_case_blocked) in the inbox of the use case owner or, with no owner, of the admins, with the bell and email notice once per blocker. The detail gives the dataset, the code and, for an AI-readiness blocker, the purpose. The task has no due date, opens the dataset and closes on its own once the blocker is gone, the dataset leaves the record or the use case is retired (backend/app/domain/governance/ai_use_case_tasks.py, card #781). - AI literacy: the Academy's “Using AI at work” trail (card #1305, in every plan): six
short lessons, in Portuguese and English, for people who use AI at work, who are the people
Art. 4 of the AI Act addresses. They cover what an AI system does and what it does not, what
data can go to which tool, reviewing before you use, what the law asks of people who use AI
(Arts. 4, 5 and 50, summarised and without transcribing the law), how to request a use case
and whom to report a problem to, and what overseeing an agent means. The exercises are done in
the workspace, the training one included, and only count what the person did themselves (not
what a colleague did): rating an assistant answer or an AI report as “Useful” or “Not useful”,
confirming or correcting a column's classification and, on the plans with compliance,
acknowledging one of the organisation's AI policies, such as the acceptable use policy that
goes with the list of approved tools (card #1296). Classifying needs someone who writes to the
dataset: a Viewer does not see it and it does not count for her, and her credential is issued
with the other two. The agent's record links to the lesson for supervisors
(
/academia?trilho=ai_user#licao-uso-ia-supervisionar). On the plans with compliance, there is also the exercise of submitting a use case request (card #1297; only the person's own request counts). An exercise on a page the plan does not have does not show on that plan and does not count for the credential, in every trail (PLAN_GATESinbackend/app/domain/navigation/profiles.py). The credential says the person completed the trail, with the verification link, and does not measure a level, because Art. 4 asks for measures to promote literacy and no level. The lessons that cite the law keep the source (the article, the URL and the date it was read) in the Academy index, say they are not legal advice and are on the internal list of texts citing the law: BeryxTech validated them on 23/11/2026, and the review by lawyers comes later. The credentials of the AI trails are read per workspace throughcompletions(backend/app/domain/academy/service.py,docs/academia/indice.json). - AI literacy register (card #1293, in
compliance, Business and Enterprise;backend/app/domain/academy/literacy_records.py,literacy.py,literacy_import.pyandliteracy_export.py;GET /api/v1/academy/literacy): per person, the AI trainings done, with the day, the topic, who delivered it and the link to the evidence. It is the record of the measures Article 4(1) of the AI Act asks of providers and deployers of AI systems: to promote the literacy of their staff and of those who operate or use the systems on their behalf, with no level or training qualification required (the Commission's Q&A of 20/10/2026 accepts an internal record of trainings).- Academy completions come in on their own: the credential of an AI trail (“Using AI at
work” or “AI agent owner”) shows in the register on the day it is issued, with the
verification link as evidence, read from the credentials (
service.completions) with no copy. - Outside trainings are recorded by the person themselves, a Viewer included, or by an
admin for anyone, one by one (
POST /api/v1/academy/literacy/trainings) or from a CSV file (POST /api/v1/academy/literacy/trainings/import, admin only: email, topic, provider, date and evidence; it first shows what each line would give, and a line equal to a training already recorded is left out). The person or an admin deletes an outside one; the Academy ones leave with the credential. - By role and by system: each agent or model says who operates it (a list an admin saves,
PUT /api/v1/compliance/ai-agents/{agent_id}/operators) and who oversees it (the supervisors and deputies with an active account from #1295). The “Literacy” tab on the agent page shows the coverage of each list: “6 of 8 people who operate this agent have AI training recorded in the last 12 months” (GET /api/v1/compliance/ai-agents/{agent_id}/literacy). A new person on the list with no training lowers the coverage on the next read. - The plan (
PUT /api/v1/academy/literacy/plan, admin): per role (everyone in the workspace, operators, supervisors, the owner of an agent or of the prompt), which training is expected and how often (1 to 60 months, or once). The coverage window is the plan's, and 12 months without a plan. A gap shows on the agent's record and becomes theai_literacy_trainingtask for the person, a Viewer included, which closes on its own once the training is recorded; with no plan written, nobody gets a task. It never closes the go-live or access to data. - The AI control
agent_literacy(policies, #1296): approved agents where everyone who operates and oversees them has training within the window. With nobody recorded, it is not measured; what is missing is counts by role, never names. The “Organisation AI policy” template links it, with section 6 of the text. - Export for the auditor, admin only: a CSV, one line per training
(
GET /api/v1/academy/literacy/export.csv), and a dated Markdown document (export.md) with what the law asks and does not ask, the plan, the coverage of the workspace and of each agent and each person's trainings with the evidence. Each export is recorded inadmin_events(ai_literacy_exported), like the other changes (ai_literacy_training_recorded,ai_literacy_training_deleted,ai_literacy_trainings_imported,ai_literacy_plan_changed,ai_agent_operators_changed). - Who sees it (personal data): each person sees their own trainings, in the Academy's “AI
literacy register” section; everyone's register, the plan and the export, only admins. On
the record, the operators' names are for whoever reads the agent and each person's status
only for those who need it (like training under oversight); in restricted mode, the others
get 403. An AI agent's token always gets 403 (
ai_literacy_people_only). None of this goes to an LLM. It is included in the workspace export and erasure, and the trainings and the place on the lists leave with the person's account (GDPR, Art. 17). - The page text says what Article 4 asks and what it does not, neither measures
anyone's level nor says the organisation complies, and says it is not legal advice. The sources,
with the URL and the date read, are in
literacy_records.LEGAL_SOURCES, and the texts are on the internal list of texts citing the law: BeryxTech validated them on 23/11/2026, and the review by lawyers comes later.
- Academy completions come in on their own: the credential of an AI trail (“Using AI at
work” or “AI agent owner”) shows in the register on the day it is issued, with the
verification link as evidence, read from the credentials (
What is missing in the use case requests (#1297): the full lane does not yet have the high-risk triage (#1195) or the impact assessment (#1196), and only marks the request. Removing a tool from the approved list does not run the triage again on the requests already approved with it: the triage runs when the request or the use case changes.
What is missing: with domains on the record, the domain list (GET /api/v1/domains) still shows
the names of the others, without their datasets or score. A reference list imported from a column
only stores the «dataset.column» name, not the dataset id, so it is closed as a whole to an agent
with withheld datasets. The tool list applies to requests that come
through the MCP server: whoever holds the token can call the API with another header. The
classification and domain guard does not use that header, but the rights matrix does: without the
header of a tool in the matrix, a request does not reach classified data. The scheduler only runs
again a drill that passed: a scenario that never ran or whose last drill failed runs only when
someone asks for it, and until then classified data stays closed. The app's board pack (under Governance) carries the agents
section with the pack's sealed numbers (see «Board pack, decision register and minutes»). Each
agent's status, approval, cut-offs,
registration, record and linked datasets are in Compliance → AI agents
(frontend/src/pages/AgentesIa.tsx, cards #929 and #1011). The owners, the rights matrix, the
drills, the impact assessment and the risks are edited in the Go-live panel on the agent's page
(frontend/src/components/AgentGoLivePanel.tsx, card #1012), and only an admin edits them.
The record has no purpose code, so an agent that only indexes data cannot be told apart from one
that acts on it: an agent's production use is always read for both purposes.
Tests: backend/tests/test_ai_agents.py, backend/tests/test_ai_workflows.py,
backend/tests/test_ai_agent_golive.py,
backend/tests/test_ai_use_case_tasks_781.py, backend/tests/test_mcp_server.py,
backend/tests/test_mcp_provenance.py, backend/tests/test_trust_sql.py,
backend/tests/test_decision_dossier.py, backend/tests/test_mcp_tool_manifest.py,
backend/tests/test_academy.py, backend/tests/test_academy_ai_literacy.py,
backend/tests/test_ai_use_case_requests.py.
AI Act obligations per system, with the proof and the date
- Obligations register (card #1298,
backend/app/domain/compliance/ai_act_obligations.py): a versioned list of entries (REGISTRY_VERSION,CHANGELOG). Each obligation keeps the article, the jurisdiction, the roles (provider,deployer), the date of application per risk class (2/12/2027 for Annex III, 2/8/2028 for Annex I, 2/2/2025 for literacy and prohibited practices), the source (the article, the URL and the reading date) and the proof it asks for. For a deployer: Articles 4, 5, 25(1), 26(1), (2) and (4) to (12), 27 and 86, read on 19/11/2026 in the consolidated version of 27/7/2026. An obligation with no source or no date breaks the test. - Provider (card #1299,
backend/app/domain/compliance/ai_act_obligations_provider.py, register version 1.1.0): Article 9 (risk management and residual risk), 10, 11 with one entry per point of Annex IV, 12, 13, 14, 15 and 17 (quality management, with the note that EN 18286:2026 gives a presumption since 14/10/2026 and that the Commission says ISO/IEC 42001 is not aligned with it), 43, 47, 48 and 49(1) (declared with the date, with no flow of their own), 72 (the Commission's plan template comes by 2/9/2027) and 73. BeryX measures the Article 10 dossier (ai_act.build_art10_pack), which is also Annex IV, point 2(d); points 5, 8 and 9 ask for the proof of Articles 9, 47 and 72. Alongside, without proving it, it shows the risk register (#725), the supervisors' powers and the "acts without prior approval" declaration (#1295), the failure drills and the usage log of the linked agents. The system's risk register (#1145), the metrics (#1058) and the incidents (#1146 and #1121) stay declared by the customer. Articles 43, 47 to 49, 72 and 73 apply formally since 2/8/2026 and, in practice, on the annex's dates (our reading). A provider's system reviewed under version 1.0.0 gets the review task. Version 1.3.0 (the review of wave 2 of epic #1292) adds Article 16, declared with the date: the name and contact on the system (point (b)), the documentation for 10 years (Article 18), the logs for at least six months (Article 19, the same proof as Article 26(6)), the corrective actions (Article 20) and accessibility (point (l)). The Article 73 note gives the serious and irreversible disruption of critical infrastructure (2 days), the reasonable likelihood of the causal link and the reporting to the AI Office for the systems under its competence (Article 75(1a)). - States per obligation, read on every request
(
GET /api/v1/compliance/ai-systems/{system_id}/obligations,backend/app/domain/compliance/ai_act_obligations_service.py):measured: BeryX measures the proof, from what already exists: the literacy of those who operate and oversee the linked agents (#1293), the system's Article 5 screening (#1144), the named supervisors and their training (#1295), the rules, contracts and score of the inference datasets, the explanation requests (#1294) and the Article 25 decisions;declared: the customer declared the proof, with the date and the link;missing: no record;not_applicable: does not apply, per the record (the deployer is not a public authority; the system does not decide about people; the system is in Annex III, point 2, critical infrastructure, which registers at national level and is outside Articles 27 and 86; or, for Article 27, a private entity outside point 5) or per the customer, with the reason, for that obligation only.- Alongside go the facts and gaps BeryX measures (
facts,gaps, counts only, never names) and what it knows without proving it (the #1294 notice template, the linked agents' usage log).
- Shared proof: "the proof exists" is kept per proof
(
PUT /api/v1/compliance/ai-systems/{system_id}/obligations/{proof}, admin): two obligations with the same proof read the same declaration, and switching the system's role switches the list and keeps what was declared. The customer's "does not apply" is kept per obligation (obligationin the samePUT): one law's does not clear the same proof in the others. Only proofs and obligations in the system's current list can be declared (422ai_obligation_proof_not_listed). The proofs that depend on cards still to do (the provider's instructions, monitoring and incidents, the Article 27 assessment) stay declared by the customer. - Dates and what was already on the market (Article 111(2)): the record gains
in_use_since(the first unit of this type and model placed on the market or put into service, as recital 39 of Regulation (EU) 2026/1744 says, not the day the customer started using it),significant_change_on,deployer_entityandannex_iii_point(the Annex III point, 1 to 8). A system already on the market before the annex's date only counts after a significant change in design after it (due_onempty until then); a system for public authorities (the deployer is a body governed by public law, or the provider intends the system for one), by 2/8/2030, or earlier, with the significant change. Literacy and prohibited practices have no such safeguard. - You may have become a provider (Article 25(1),
backend/app/domain/compliance/ai_provider_shift.py): on a deployer's system, changing the purpose, putting its own brand on it (own_brand), declaring a significant change in design (point (b), the substantial modification) or changing the purpose or model of a linked approved agent opens a question. An admin records the decision and the reason (POST /api/v1/compliance/ai-systems/{system_id}/provider-shift/{question_id});became_providerswitches the system's role and closes its other open questions, and after thatstill_deployeris refused (409). The page says, before confirming, that the decision switches the role and the list. - New register version: when a source changes, the version goes up with the obligations that
changed, and each system already reviewed that has them gets the
ai_act_obligations_reviewtask, for admins, which closes when someone marks the list as reviewed (POST /api/v1/compliance/ai-systems/{system_id}/obligations/review,backend/app/domain/compliance/ai_act_obligation_tasks.py). - Controls matrix and export: one
AI-OBL-…row per system, with the counts per state (backend/app/domain/compliance/ai_act_obligation_matrix.py):passedonly with no obligation without a record and no gaps in what BeryX measures,partialwhen a measure has gaps (people without training, requests past the deadline, input datasets with no rules, contract or scan). And the export per system as Markdown, with the source, the date and the day each obligation was validated ("awaiting validation" on a new obligation) (GET /api/v1/compliance/ai-systems/{system_id}/obligations.md). The Article 10 dossier as Markdown (GET /api/v1/compliance/ai-systems/{system_id}/art10.md) gets the table of the AI Act obligations at the end (#1299). - Laws outside the EU (card #1300,
backend/app/domain/compliance/ai_obligations_world.py): the UK (UK GDPR, Articles 22A to 22D, since 5/2/2026), Switzerland (nFADP, Articles 21 and 22, and the FDPIC's position), Brazil (LGPD, Article 20), Angola (Law 22/11, Article 29) and, in the US, Colorado (SB 26-189, on 1/1/2027), California (the CPPA regulations, with dates up to 2027 and 2028), Texas (TRAIGA) and New York City (Local Law 144), read on 19/11/2026 (register version 1.2.0). Each obligation keeps the source (the article, the URL and the reading date) and the date it applies from; where the source gives no start date (Brazil and Angola), the obligation says so (coverage=in_force_undated). An obligation with no source breaks the test.- Validated by BeryxTech on 23/11/2026: these countries' obligations now enter the list.
The rule of 19/11/2026 stands: a country only enters once all its obligations are validated
(the date in
OWNER_VALIDATED_ON). With a new obligation awaiting validation, the page shows that country's watch list and says why (jurisdictions[].published=false). - Where it applies: the system record says where, besides the EU, it is used (
used_in, onPOST/PATCH /api/v1/compliance/ai-systems), and the "Decisions about people" of the system or of a linked agent say where the people affected are. The list adds those countries' obligations to the AI Act's, per jurisdiction (jurisdictions, with the reason:always,used_in,people). - No repeated proof: when a law asks for what the AI Act already asks for, it uses the same proof (the notice, the explanation), and the customer declares it once. People's rights are the #1294 rules: the obligations read the source and the date from there. BeryX also measures the requests to contest and for review by a person, with the review recorded, and shows alongside what the record says about how a person takes part in the decision.
- Conditions from the record: the safeguards for solely automated decisions (UK, Switzerland, Brazil, Angola) apply with "decides alone"; with "helps decide", the UK asks for proof that the human involvement is meaningful, and Article 22C applies, with the hint, until it is declared. Colorado and California apply in both cases; New York City, in employment decisions; the Texas notice, at a governmental entity or in a health care service. Colorado's statement within 30 days of an adverse outcome is an active duty, with its own proof; a Colorado explanation request enters the data subject register with no deadline.
- The watch list: the bills that are not yet law (PL 2338/2023 and the ANPD's AI rule,
Angola's proposed AI law, the Swiss preliminary draft) show in the system's jurisdictions, with
the status and the source (
watch), and create no obligations. - Systems already reviewed that have a new obligation get the review task. The survey is in
docs/internacional/ia-fora-da-ue.md.
- Validated by BeryxTech on 23/11/2026: these countries' obligations now enter the list.
The rule of 19/11/2026 stands: a country only enters once all its obligations are validated
(the date in
- In the app: on the Compliance page, for each system, the obligations record (with "First unit
placed on the market or put into service", the Annex III point and "Where it is used, besides the
EU") and one list per jurisdiction, with the reason, the state written out and not only the
colour, the date, the source, "To be validated" on a new obligation, the proof shared with
another law, which
obligations each declaration covers and the watch list (
frontend/src/components/AiObligationsSection.tsx,AiSystemRecordFields.tsx). The section says it is not legal advice and never says the system meets the AI Act or the laws of other countries. The Markdown export has one section per jurisdiction and the watch list. - Audit:
ai_obligation_declared,ai_obligations_reviewed,ai_provider_shift_openedandai_provider_shift_decided, with codes only; the note, the link and the reason are the customer's text and do not go there. Everything goes into the workspace export and erasure.
Limits: the obligations and the dates are text that cites the law, validated by BeryxTech on 23/11/2026 and not yet reviewed by lawyers (it is on the internal list of texts citing the law). A new obligation says "awaiting validation" until it is validated. BeryX does not verify a declared proof nor know whether the customer controls the input data: it says what it measures. Outside the EU, only for the deployer (Texas also for the provider).
Tests: backend/tests/test_ai_act_obligations_1298.py, backend/tests/test_ai_act_obligations_1299.py,
backend/tests/test_ai_obligations_world_1300.py,
frontend/src/components/AiObligationsSection.dom.test.tsx.
AI management standards: NIST AI RMF and ISO/IEC 42001, 23894 and 42005
- Map of the standards (card #1108,
backend/app/domain/compliance/ai_standards.py, with the data inai_standards_rmf.pyandai_standards_iso.py): the 72 subcategories of the NIST AI RMF 1.0, by function; the 27 clauses (4 to 10) and the 38 Annex A controls of ISO/IEC 42001 that the NIST crosswalk cites, each with the AI RMF subcategories the crosswalk links to it; and the clauses of ISO/IEC 23894 and ISO/IEC 42005 from each one's crosswalk (the 42005 numbers are the DIS ones). Each line gives the BeryX proofs that answer the theme (41 stable keys, from the agent registry to the AI policy, literacy, human oversight, decisions about people, approved tools, use case requests, AI obligations and the AI management system of #1301), the state (recorded, BeryX records it;partial, records it in part;outside, outside BeryX) and what is left out. Of the ISO standards, only the number and a short theme written by us go in, never the text of the standard. The source and date of each standard are in the code: NIST AI 100-1, the crosswalk on the 42001 FDIS, the revised 23894 crosswalk and the one on the 42005 DIS, read on 13/11/2026. - Workspace counts (
backend/app/domain/compliance/ai_standards_service.py, no LLM, counts only): agents in the registry, approved, with an active owner, with the impact assessment recorded, with risks past their review date, with overdue drills, the kill switch activations in the last 90 days, the shadow AI accounts to review, and those of the new proofs (supervisors, decisions about people, use case requests, systems and Article 5 screenings, AI policies in force and who acknowledged them, approved tools, who operates or oversees without training). The counts of the "AI & Data Security" add-on (shadow AI, who invokes, parity) stay empty in a workspace without it, with the reasonaddon_data_security.annex_a_controlsgives the 38 Annex A controls with the workspace's evidence. - API:
GET /api/v1/compliance/ai-standards(the four standards, with their sources and the lines per state),GET /api/v1/compliance/ai-standards/{standard}(the lines and the counts) andGET /api/v1/compliance/ai-standards/{standard}.md, for the auditor (backend/app/api/v1/ai_standards.py). In the plan with compliance (402 without it), like the Compliance page. The standard's view counts the whole workspace: in restricted mode, only admins read it. - Controls matrix (
backend/app/domain/compliance/control_matrix_export.py): the CSV and the XLSX gain thenist_ai_rmfandiso_iec_42001columns ("NIST AI RMF" and "ISO/IEC 42001" in the XLSX), with the subcategories and numbers that the proof each control measures answers: the go-live, the drills, the kill switch, the actions on behalf of a person, the Article 5 screening, the inventory, the requests about automated decisions and the AI obligations. The CDMC controls and the re-reads of the AI security frameworks keep both cells empty. - In the app (card #1109,
frontend/src/components/AiStandardsSection.tsx): the «Standards» section of the Compliance page, with a selector of the four standards (arrows and Enter, like the other tabs) and, per standard, one table per function or clause with the number, the theme, the state written out, the proofs with a link to the page where they live and the workspace's counts, what is left out and the crosswalk between the AI RMF and 42001. «Export as Markdown» downloads the export for the auditor. The fixed note at the top says that BeryX records evidence and neither certifies nor declares conformity with any standard, that ISO/IEC 42001 certification is for an accredited body and that the ISO numbers come from NIST's crosswalk, without the text of the standard. At 375 px, each row becomes a block.
Limits: the map says what BeryX records for each theme, and no state says a requirement is met. BeryX neither certifies nor declares conformity with any standard: the certification of an AI management system (ISO/IEC 42001) is for an accredited body, and the AI RMF is voluntary. The 42001 numbers come from NIST's crosswalk, made on the FDIS of May 2023, and are checked against the standard once it is in hand. The map is text that cites standards and is on the internal list of texts citing the law: BeryxTech validated it on 23/11/2026, and the review by lawyers comes later.
Tests: backend/tests/test_ai_standards.py, backend/tests/test_ai_standards_ui.py,
frontend/src/components/AiStandardsSection.dom.test.tsx.
The customer's AI management system (ISO/IEC 42001)
What the ISO/IEC 42001 auditor asks for in stage 1 and stage 2, prefilled with what BeryX already
records (card #1301, backend/app/domain/compliance/aims*.py). Admins only, in the plan with
compliance (Business and Enterprise; 402 outside it).
- Statement of applicability (
aims_service.soa_view): the 38 Annex A controls of the #1108 map (ai_standards_service.annex_a_controls), each with the number and the theme written by us, the evidence BeryX links on its own (the map's proofs, with the link to the page and the workspace's counts) and what is left out; on top, the organisation's decision (applies, excluded or undecided), the justification (required to exclude) and the control's wording written by the organisation. Approving needs all 38 decided, freezes what was approved (each control's fingerprint,aims.entry_digest) and raises the version, with who approved and when; with nothing changed, it is refused (409). A control that differs from the approved content is "awaiting approval", named (changed_controls), and saving the same values changes nothing. It exports as Markdown, dated and signed (aims_export: Ed25519 over the canonical JSON, with the installation's key for this document), with the exact signed line at the end: the file checks on its own. - Scope and objectives (
aims_service.set_scope,create_objective): the agents and models in the registry are in, and the organisation takes out the ones that stay outside, each with the reason. Each AI objective has an indicator BeryX measures live (the 13 of the AI governance maturity of #1302 and two of the number that should move of #1228), the target in %, the owner and the deadline. The counts and indicators (of the statement, the objectives, the review and the pack) cover the whole workspace, the same as the «Standards» view and the board pack, and the UI and the exports say so (aims.COUNTS_NOTE): the scope decides which agents open nonconformities on their own. - Internal audit (
aims_service.create_audit,add_finding): the programme (what, by the clause and control numbers of the map; when; who audits) and each audit with its findings (nonconformity, observation, opportunity for improvement) and its conclusion. - Management review (
aims_reviews.py): the agenda, by short themes of ours (not the standard's list), starts prefilled with the numbers for the period, read the same way as the board pack's (the agents, the go-live, the drills, the risks, the AI maturity, the number that should move) and the management system's (the objectives, the nonconformities by origin, the audits and findings, the statement), without the lists' caps; the state at the moment of reading (the objectives, the open nonconformities, the agents, the risks, the maturity and the statement,aims.AGENDA_AT_READING) is labelled «State on», apart from the period's numbers. It links the period's board pack, if there is one. The decisions go into the board's decision register (kind and object aims_review), already decided in a single transaction and with the rationale, and into the linked pack's register while its minutes await approval; the generic request (POST /api/v1/governance/board/decisions) does not accept theaims_reviewkind. Once held, the minutes and the decisions close. - Nonconformities and corrective actions (
aims_nonconformities.py): they open on their own, proposed, once per signal (source_keyunique in the workspace), from what BeryX sees in the agents in scope: a failure drill that fails on an approved agent (in the drill itself and in the worker's hourly sweep, which also catches the live drill; a drill from before a person dismissed or closed the last one for that agent and scenario does not reopen it), the prompt latch off the record of any operating agent in scope, approved or not (#1010), and a dataset of an approved agent that loses its data certification (#670); and from a "nonconformity" audit finding. The sweep goes through the workspaces in batches, skips the suspended ones and reads only the latest drill of each agent and scenario. A person confirms or dismisses them (dismissing needs a reason): the proposal is the admins'aims_nonconformitytask. Once confirmed, it takes the cause, the corrective action, the owner and the deadline, and closes with a note on what was seen afterwards. - Auditor pack (
aims_export_service.pack_document): a ZIP with the stage 1 documents (the scope, the AI policy and the risk and impact assessment methodologies through the registry's counts, the objectives and the statement) and the stage 2 records (operation through the counts, the audits and findings, the reviews with their agenda and decisions, the nonconformities), as Markdown and signed JSON; the statement also comes as JSON. Complete: above 5000 records of a kind,omittedand the Markdown say how many were left out. Decimal numbers go as text, and the Markdown describes the canonical JSON: the signature checks the same outside Python. - API:
GET|PUT /api/v1/compliance/aims/scope,GET|POST /api/v1/compliance/aims/objectives,PUT /api/v1/compliance/aims/objectives/{objective_id},GET /api/v1/compliance/aims/soa,PUT /api/v1/compliance/aims/soa/{control_id},POST /api/v1/compliance/aims/soa/approve,GET /api/v1/compliance/aims/soa.md,GET|POST /api/v1/compliance/aims/audits,PUT /api/v1/compliance/aims/audits/{aims_audit_id},POST /api/v1/compliance/aims/audits/{aims_audit_id}/findings,GET|POST /api/v1/compliance/aims/reviews,GET|PATCH /api/v1/compliance/aims/reviews/{review_id},POST /api/v1/compliance/aims/reviews/{review_id}/decisions,GET|POST /api/v1/compliance/aims/nonconformities,PATCH /api/v1/compliance/aims/nonconformities/{nonconformity_id},POST /api/v1/compliance/aims/nonconformities/{nonconformity_id}/decision,POST /api/v1/compliance/aims/nonconformities/{nonconformity_id}/closeandGET /api/v1/compliance/aims/auditor-pack.zip(backend/app/api/v1/aims.py). - In the app (
frontend/src/components/AimsSection.tsx): the «AI management system» section of the Compliance page, right after «Standards», for admins only, with five tabs (the statement, the scope and objectives, the internal audit, the management review and the nonconformities) and the «Auditor pack» button. In the #1108 map, 42001 clauses 4.3, 6.2, 9.2, 9.3 and 10.2 now cite these proofs.
Limits: BeryX records, measures and provides the evidence; it neither certifies nor declares conformity with ISO/IEC 42001, and the certification of an AI management system is for an accredited body. It is not legal advice or a conformity assessment. The standard is bought in January 2027: until then, the Annex A numbers and themes are those of NIST's public crosswalks, written by us, the wording of the controls is the organisation's and the text of the standard never goes in; with the standard in hand the numbers and themes are checked, and any change goes in the changelog. The names of who approves, audits, owns an objective or an action, or decides and closes a nonconformity are personal data: only admins see them, they go into the workspace export and erasure, leave the records when the account is erased and never go to an LLM. The "prompt off the record" signal is the hash the agent sends: it catches a prompt changed by mistake, not an agent that lies. An approved agent with no linked datasets never "loses" a certificate. An auditor who is not an admin does not record the findings (an admin records them). The texts that cite the standard are on the internal list of texts citing the law: BeryxTech validated them on 23/11/2026, and the review by lawyers comes later.
Tests: backend/tests/test_aims.py, backend/tests/test_aims_regressions.py,
backend/tests/test_aims_demo.py, frontend/src/components/AimsSection.dom.test.tsx.
Orchestration and workflow
- My tasks (page
/tarefas,GET /api/v1/tasks): each owner's and steward's inbox with what is waiting for that person's decision — draft glossary terms and proposed links (whoever manages the term's domain, or an admin), approval workflow requests (whoever decides the current step: the approver, the delegate of someone away, whoever received the escalation or, with nobody left to vote, an admin), contract proposals the producer has answered (admins), AI action requests (the role the policy requires), assigned issues and, since card #669, the periodic review of the policies the person owns and the waivers close to their end (whoever requested it and the policy owner). Each task only appears to whoever can decide it, under the original route's rule (an issue or a link needs write permission on the dataset, and an approval request leaves out the links to datasets the person cannot see), with a deadline and overdue SLAs first; it filters by domain and by type. With the terms workflow on, a draft term only reaches the inbox once submitted, as an approval request. With the links workflow on, a link without a request opens the glossary, where «Accept» puts it into the workflow. Approving or rejecting in the inbox calls the original screen's route (same service and same audit): for an approval request it is the vote on the step, with the optional reason for rejecting; a batch of AI actions only opens in Team → AI actions, where you see what it runs. The count sits in the menu and in a summary on the home page. A bell notice and one email per person go out when the task arrives and when the deadline passes (app/domain/governance/tasks.py). For an approval request, the deadline is the step's SLA, each step notifies whoever decides it and whoever receives the escalation is notified too. The arrival of an issue a person assigned only goes to the bell, because that assignment already sends the email; the arrival of an issue the system assigns, such as a breached SLO, goes by email. An agent reads the inbox through the MCP toollist_my_tasks(backend/app/mcp_tasks.py, read-only): with a person's credentials it gets that person's inbox and with a token it gets an empty one. - Orchestrators: dbt Cloud webhook (scan at the end of each job) and Airflow package with a quality gate in a DAG — orchestrators.
- Integrators: health of Fivetran and Airbyte pipelines (read-only, official APIs) — failed or late sync per destination dataset, latency and source↔destination reconciliation, and the sync in root-cause diagnosis — integrators.
- Root cause with confidence and confirmed causes: each hypothesis of the root-cause diagnosis
carries a confidence from 0 to 1 computed by the code, never by the LLM, from the kind of
evidence, the minutes between the deploy or job and the issue, the number of signals and the
severity, and is marked as weak below 0.3 (
backend/app/domain/insights/rca_hypotheses.py). With an LLM or with the offline template, the same context gives the same confidence; the list and the factors are kept in the report trace and returned byGET /api/v1/issues/{id}/root-cause. Whoever resolves marks the cause withPUT /api/v1/issues/{id}/root-cause: one of the hypotheses or another category from a closed set (deploy, failed job, schema drift, upstream source, orphan keys, source data, other). One is stored per issue, with ids and the category only. In an incident it goes on the root issue if whoever marks it sees the root's dataset, and marking it needs write access to that dataset; if they do not see it, it stays on the issue itself. With the diagnosis given (report_id), the root is the one at the time of the diagnosis, even if it has been resolved since: the incident is recomputed on every read and the root changes as issues are resolved (anchored_rootinbackend/app/domain/issues/root_cause.py). The confirmed causes of the last 90 days are aggregated by connection and by dataset (GET /api/v1/issues/root-cause/patterns), counting only those of the datasets the requester sees. With 3 or more confirmations of the same category and at least 40 % of the source's, a suggestion opens, once per source and category, and the scan does not delete it. A connection's suggestion counts only the confirmations of the datasets every member sees. On a dataset, for deploys or failed jobs, the suggestion proposes a volume rule (row_count_min) that only applies when someone accepts it (backend/app/domain/issues/root_cause.py). - Cause at the origin and origin owner: with the causes “upstream source” and “source data”,
the confirmation also stores the origin dataset and connection (
origin_dataset_idinPUT /api/v1/issues/{id}/root-cause). The origin given must be the root's dataset or one of its ancestors through derivation lineage, and whoever gives it must see it. Without it, the ancestor that the chosen “upstream source” hypothesis points to (upstream:<id>) is stored, if it meets the same conditions; otherwise, the probable origin of the incident's path, or the most upstream node of that path the person marking it sees (resolve_origininbackend/app/domain/issues/root_cause.py). Confirmations coming from downstream (with an origin that is not the dataset itself) are also grouped by the origin connection (originsinGET /api/v1/issues/root-cause/patterns); without any, only the connection pattern remains. With the same threshold, that pattern's suggestion counts by source system, goes to the origin dataset with the most confirmations and proposes the rule for the kind of cause, read from the confirmed issues: volume givesrow_count_min, freshness givesfreshnessonly with the dataset's freshness column, and schema givesschema_conformityonly on a stream. Values, or no reliable column, give a suggestion without a rule. The connection gains an owner, a person or a team, and that team's ticket destination (GET/PUT /api/v1/connections/{id}/owner, only admins change it, audited). With a destination, the suggestion also proposes the ticket to the owner. On accepting, on the card or in bulk, the ticket is opened through the suggestion's ticket link, one per integration, if the plan includes tickets. The count only includes the confirmations every member sees downstream and at the origin, and the text carries no downstream names or ids (backend/app/domain/issues/origin_pattern.py). - BI tools: Power BI, Tableau and Looker (read-only, official APIs) — failed or late refreshes as issues, dashboards in lineage and in issue impact with their owner, and a warning for dashboards nobody has viewed — BI tools.
- User stories in the team tool: with Jira, Linear, ServiceNow, Azure DevOps or GitHub and
GitLab Issues connected, «Create user story» and «Link to an existing one» are on the issue, the
incident, the AI report, the suggestion, the contract proposal and the dataset, and in bulk in
the Issues list. The item type is chosen (user story, bug, task) and the description carries the
context: the owner, the impact, the proposed fix and the link back to BeryX. Automatic rules
open a ticket on their own for new issues that match them, and are set up in Notifications ›
Tickets (
backend/app/domain/integrations/ticket_context.py). - CI/CD: rules and contracts gate in the pipeline, data-diff between base and candidate — quality gate in CI.
- Agents: MCP server for Claude and other MCP clients — MCP server.
- Record validation at the point of entry: the integrator or the pipeline sends up to 5,000
records to
POST /api/v1/datasets/{id}/validatebefore writing them and gets a verdict for each one from the dataset's active rules (not_null,pattern,range,required_fields,valid_identifierwith the identifiers of the per-country registry,in_reference_setwith the ISO lists and the workspace's own), the reason code of each failure and the batch verdict. Rules over the whole dataset (unique,freshness…) are marked as not applicable. Nothing is stored or sent to an LLM and the source is not read: rejecting or quarantining stays on the customer's side.dvk_*token or SDK (dv.validate.records) — record validation. - IDE: VS Code extension with inline quality in dbt/SQL files — score, issues, contract and PII per table, per-column profile on hover, policy alerts and the branch's data-diff, and the findings of the data code rules in the Problems panel, with a quick fix when there is only one — VS Code extension.
- Repository health: per git repository, the share of models with tests, description, owner
and contract, the findings of the last PR check and the trend, plus a revocable badge for the
README —
GET /code/health(data code). - Configuration as code: deterministic export/import of the workspace configuration in
YAML (
datavault.yaml), to review in code review and promote between environments. The file carries the rules (rules), the domains (domains), the data policy (data_policy), the AI policy (llm_policy), the alert channels (channels), the scheduled reports (report_schedules), the business glossary with the approved links (glossary) and, per connection, the scan schedule and the activation of automatic monitors (scan_schedules,auto_monitors) and the source environment (connection_environments) — with no secrets or ids. The import first shows the plan (the diff of what changes) and applies all or nothing. The plan classifies each change as cosmetic, "resets the baseline" (it changes what a rule measures, such assql,expression,regexor the bounds of arange, or deletes the rule with its results) or "restarts detector training" (it changes the cadence of a connection's scheduled scans). It also estimates the daily cost (scans, queries, bytes, AI) of the current configuration and of the file's, from stored history only: with no history, the value is "unknown". The apply only applies the changes that reset with the fingerprint of the reviewed plan (confirm_resets,beryx config apply --confirm-resets), and the Terraform provider warns interraform plan. The customer runs it from their own CI with the SDK (beryx config planon the PR,beryx config applyon merge, over/api/v1/workspace/config) and a "Configuration as code" token; changes to the AI and data policies and to the connections' environment stay with an admin. The operator also runs it withbackend/scripts/workspace_config.py, which runs alongside the backend (in the pipeline). Through the API, rules, domains, channels and scheduled reports are managed resource by resource at/api/v1/iacwith the same token — this is what the Terraform provider uses (integrations/terraform). Monitors defined in other tools (e.g.montecarlo.yml) are not imported: rules come in through the import formats — dbt, Great Expectations, SodaCL and ODCS (what it converts), plus the exports of the Informatica Data Quality, Collibra DQ and Microsoft Purview legacy suites — and go out as dbt, SodaCL and GX: dbt tests, SodaCL checks or a Great Expectations suite (GET /api/v1/datasets/{id}/rules/export?format=dbt|sodacl|gx; the whole workspace in a single SodaCL file throughGET /api/v1/rules/export). In SodaCL and GX, only what the import reads back as the same rule is written; what is left out (stream rules, check digits, SQL rules outside dbt, tolerances above zero) comes in the file with its reason, in the SodaCL header and inmeta.beryx.unsupportedin GX (what goes out). - Issue workflow with statuses, assignees, rotations and scheduling of scans and reports.
Tests: backend/tests/test_orchestrators.py, backend/tests/test_data_diff.py,
backend/tests/test_mcp_server.py, backend/tests/test_workspace_config_gitops.py,
backend/tests/test_iac_api.py, backend/tests/test_ide.py,
backend/tests/test_record_validation_api.py, integrations/vscode/test/.
Experience for business users
- Reports per persona (engineering, management, executive) with estimated impact in euros (the cost to fix and the business value at risk), in PDF, schedulable and shareable via a read-only link. The export draws the distribution of a personal or confidential column with the counts only, without the bounds, and the read-only link does not draw it (card #1407).
- Governance dashboard for the CDO: the programme's effectiveness in one place — coverage
(owner, documentation, classification, contracts, rules), cycle time and MTTR of critical
issues, compliance with SLO/SLA and deadlines, adoption of suggestions and of "Never again"
rules, score per dimension, critical incidents and usage —, each KPI with a target per workspace
or organisation, traffic light, monthly trend and drill-down by domain; export of the executive
scorecard (CSV) and of the evidence for the procurement pack (Markdown)
(
GET /governance,backend/app/domain/governance/kpis.py).- Hold accountable (card #1217): on an at-risk or off-target KPI, an admin (or, on a
domain, whoever manages it) picks a person or a team, a target date and a note. Whoever is
accountable gets the "Improve a KPI" task with the link to the drill-down, the KPI shows who
it is and until when, and on the resolution, SLA and incident KPIs the open issues that weigh
on the KPI can be assigned to them straight away, with each one's history. The task closes on
its own when the KPI reaches its target (
POST /governance/domains/{domain_id}/accountabilities,backend/app/domain/governance/accountability.py).
- Hold accountable (card #1217): on an at-risk or off-target KPI, an admin (or, on a
domain, whoever manages it) picks a person or a team, a target date and a note. Whoever is
accountable gets the "Improve a KPI" task with the link to the drill-down, the KPI shows who
it is and until when, and on the resolution, SLA and incident KPIs the open issues that weigh
on the KPI can be assigned to them straight away, with each one's history. The task closes on
its own when the KPI reaches its target (
- Business insights (Business page): user-defined metrics over the datasets, in business
language (
GET /business-metrics,backend/app/domain/insights/business_insights.py).- Definition: sum, count, distinct count or average; in euros, customers, counts or numbers; per day or per week. The date column has a date or date-and-time type (on SQLite, text as well) and sum and average need a numeric column. Creation refuses a column classified as personal or confidential data when the metric would show its values (segment, date, value of a sum or average); a distinct count accepts it.
- Creating a metric (card #1215): the page opens on the metrics, with the tabs Metrics, New
metric, Metric definitions and Summary delivery, and «Create metric» at the top. The source
is chosen by its full path, source › schema › table, with the connector icon, grouped by
source and with the layer and the domains, in a box with search (
GET /datasetsreturns theconnection_name, theconnector_typeand thedomains). The dataset columns show up as fields, with the type, the semantic type from the profile and the approved glossary terms. Below, the query the scan will run, read-only:POST /business-metrics/sql-previewbuilds it with the same code as the computation and does not run it (backend/app/domain/insights/business_metrics_preview.py). - Computation: on every scan, only on PostgreSQL, MySQL, SQL Server, Fabric, Snowflake, BigQuery, Databricks and SQLite (creation refuses other sources), with a read-only aggregate query: no rows, only the aggregate of each period and segment. A column classified later no longer leaves: the segment drops out of reads and of the next scan, and a date or a value stops the source.
- Insight: the metric, the period, the change against the previous period and against the usual (the same weekday or the previous 8 weeks) and the evidence: the datasets, the query and the open problems in the data. For sum and count, the change breaks down by source and segment (average and distinct count have a single source and creation refuses them a segment, because the parts do not add up to the change in the total), and the share that sits in sources with open problems in the data (freshness, volume, structure, rules) separates "check the data" from a change without data problems, without claiming causes. A period that some source has not computed yet stays "awaiting update", never zero. With the metric in euros or customers (other than an average), it also shows an estimate of the value in rows with rules failing in the last scan.
- Business value at risk (owner's decision, 17/11/2026): the metrics in euros that add up give
each open issue that feeds them (a source of the metric, or upstream through derivation
lineage up to 3 hops, never through a foreign key) the value of the last 30 days × the
exposure (the share of affected rows when the issue measures it; otherwise 1% for a critical
and 0.25% for a warning), capped at the metric value. It stays apart from the cost to fix in
the
impact_json(business_value_at_risk_eur_month) and adds to it on the executive dashboard, in the "For decision-makers" decisions and in the value report, with each metric counted once; FinOps shows it outside the costs. It is not a loss (METODOS,backend/app/domain/insights/value_at_risk.py). - Cost to fix (owner's request, 18/11/2026): each open issue has the hours of six profiles
(data engineering, analysis, steward / data owner, business owner, management, platform) in
each activity (triage, analysis, fix, reprocessing, validation, meetings, planning, business
involvement and accumulated backlog) at the profile's hourly rate, plus the compute of the
reprocessing (from the dataset's telemetry, counted once per dataset) and the wasted storage.
The people seen on the issue, the days open, the real time to resolve, the reopenings and the
compute are measured; the base effort by severity and type and the hourly rates are
assumptions an admin edits in Team & Access. The hours also show as opportunity cost,
without being added. A downstream issue whose real origin is another open issue (the
incident's root through derivation lineage) inherits the origin's fix and counts only the
reprocessing and the validation, and the breakdown says how many downstream issues inherit
the origin's fix (card #1250). The executive dashboard, "For decision-makers", FinOps and the value
report show the breakdown by profile and by activity, and the value at risk by metric, issue
and dataset (METODOS,
backend/app/domain/quality/fix_cost.py). - Summary: written by templates in Portuguese, English and Spanish, without an LLM, with the sources of each metric and the link to the page; it goes by email, Slack or Teams weekly or daily.
- Team views (
GET /team-lens,backend/app/domain/access/team_lens.py): the engineering, management and executive dashboards, the quality calendar, the dimension scorecard and the SLO (with the CSVs) take?team=(global,mineor the team id). A team's scope is the datasets of the domains where it holds an active grant and those whose owner is a member or the manager of the team; withoutteam, whoever sees the global view gets it and everyone else gets their own teams.- Admin policy (
PUT /team-lens/policy, audited asteam_lens.policy_updated):open(default, everyone sees everything),aggregates(detail only for one's own teams, KPIs for the others) orisolated(the other teams leave theAccessScope: datasets and domains that are only theirs return 404 across the whole API, "My tasks" included). The global view and the comparison between teams belong to admins and to the roles inglobal_roles. A stored policy that is not recognised counts asisolated, withoutglobal_roles(team_lens.policy_of). - Lens KPIs (
GET /team-lens/kpis): score, open issues, 30-day MTTR, fixes applied and rule coverage;GET /team-lens/comparisonputs the teams side by side, only for whoever sees the global view (backend/app/domain/scans/team_kpis.py). - Team manager:
PUT /teams/{team_id}/manager(admin, audited asteam_manager_set); counts as a member for the lens and for the isolated mode. - Workspace report per team:
POST /reportswithteam_id(only forworkspace_overview) builds the context only from the datasets, issues, rules, duplicates and signals in the team's scope, without the workspace's LLM cost (backend/app/domain/insights/overview.py). Theteam_idhas to be the id of a team of the workspace with datasets in scope (422 otherwise). The datasets are stored with the request (AIReport.team_scope_json): the context and the export charts use only those, stored issue and signal text that names an outside dataset becomes "Dataset restrito", and whoever hasreadon all of them can read the report, also after a grant is removed. A team report does not go into the knowledge base, where it would have no dataset and be readable by the whole workspace (backend/app/domain/knowledge/service.py,ingest_report).GET /issues,GET /suggestions,GET /reports,GET /tasksandGET /tasks/counttake the same?team=. - Scans and samples:
GET /scans,GET /scans/{scan_id},GET /scans/{scan_id}/live,GET /duplicatesandGET /rules/{rule_id}/failing-rows.sqltake the same?team=. A scan is in the lens when it read one of the team's datasets (team_lens.scan_in_lens, the worker's rule); outside it, the usual 404. - Delivery to the team: the weekly digest of team channels carries the team's KPIs and also
goes to the manager, when the manager reads what the team reads
(
backend/app/domain/alerts/team_channels.py). A finished team report is emailed to the members and the manager who have a confirmed account andreadon every dataset stored with the request (backend/app/domain/insights/team_reports.py). - In the app, the "Team lens" picker (
frontend/src/components/TeamLensSelect.tsx) is on the three dashboards, Issues, Suggestions, AI reports, SLO and "My tasks". The choice stays in the URL (?equipa=) and in the browser (frontend/src/lib/teamLensStore.ts). The task count in the menu and the summary on the home page follow the stored choice. In the "Workspace report" dialog you pick the scope: the whole workspace, only for whoever sees the global view, or one team.
- Admin policy (
- Natural-language assistant over the workspace's quality data.
- Live scan: the first scan is shown step by step; first result in minutes.
- Interface in Portuguese, English and Spanish; public quality badge per dataset.
Tests: backend/tests/test_reports_v2.py, backend/tests/test_report_pdf.py,
backend/tests/test_assistant_chat.py, backend/tests/test_public_badge.py,
backend/tests/test_governance.py, backend/tests/test_business_metrics.py,
backend/tests/test_team_lens.py, backend/tests/test_team_lens_properties.py,
backend/tests/test_team_lens_views.py, backend/tests/test_team_report_scope.py,
backend/tests/test_team_digest_delivery.py.