Govern

Business glossary

Business terms with owners, reviewers, and a status state machine. Attach terms to columns, charts, dashboards, notebooks, metrics, models, and tables so every number carries an authoritative definition. Approved terms are stapled into Ask grounding so the AI can't drift from your language.

What this page does for you

The Goni business glossary is a workspace-scoped dictionary of the terms your team uses to describe the data. Every term has one authoritative definition, an owner accountable for it, and a state machine that keeps drafts out of the surfaces analysts trust. Approved terms are auto-injected into AI Q&A grounding so the planner speaks your vocabulary rather than guessing.

You’ll learn:

  • The term shape - what a term carries and how it renders across the app.
  • The status state machine (draft, review, approved, deprecated) and who can move which arrow.
  • The assignment model - the seven asset kinds you can attach a term to, and the id format for each.
  • How glossary terms are stapled into /api/ask grounding and the column-suggestion algorithm.
  • The REST API surface - reads, writes, history, usages, and assignment endpoints.

What a business glossary is

A business glossary is the shared, versioned list of every term your data team wants to mean one thing. “MRR”, “active customer”, “region EMEA”, “chargeback ratio” - each has a definition, an owner, and a state that says whether it’s proposed, under review, blessed, or retired.

Without one, every dashboard reinvents the label, every AI query hallucinates a synonym, and every audit walks back through a Slack thread. With one, the same phrase renders the same definition next to the column, in the chart drawer, on the metric page, and in the AI’s answer.

The Goni glossary is a first-class governance surface. It lives in the semantic project (git-backed), is edited through the API (audit-logged), and is grounded into AI Q&A (approved-only). Draft terms are visible only where authors need them; they never leak into a customer-facing chart tooltip or the LLM’s context.

Term shape

A term is a small YAML document under glossary/<workspace>/<id>.yml in the semantic project. The API returns the same shape as JSON:

FieldTypePurpose
idstringStable slug (lowercase, -/_). Never changes; renaming is a create+delete.
namestringHuman-readable label. Rendered as the term’s title.
definition_mdmarkdownThe authoritative definition. Markdown allowed so a term can carry an inline formula or a link out.
statusenumdraft, review, approved, deprecated. See the state machine below.
ownerslist of emailAccountable for the definition. Owners can edit past-draft terms and can deprecate.
reviewerslist of emailGate review to approved and deprecated to approved. Empty list means any author can review (matches OpenMetadata’s auto-approve default).
synonymslist of stringAlternate names. Feed the AI grounding scorer and the column-suggestion picker.
related_termslist of term idsCross-links rendered in the term drawer.
domainstringOptional grouping (finance, product, ops). Filters the term list.
tagslist of stringShared tag surface. See Tags.
external_urlurlOptional link to an external source of truth.
workspace_idstringWhich workspace’s glossary this term belongs to.
author, updated_atstring, timestampServer-stamped provenance.

Terms without a status default to draft on save.

Status state machine

Terms flow through four states. The server enforces transitions on every PUT /api/glossary/terms/{id}; a call that violates the state machine returns 403 with the reason.

   draft ─────► review ─────► approved
     │            │              │
     │            └──────────────┘  (review, both directions)
     │                             │
     └─────────────────────────────┴─────► deprecated
                                              │
                                              ▼
                                          approved
                                          (owner + reviewer only)

Allowed transitions, per role against a term:

From \ Todraftreviewapproveddeprecated
draft-author, owner, reviewerreviewer (fast-track)owner
reviewreviewer (send back)-reviewerowner
approved-owner-owner
deprecatedownerownerowner AND reviewer-

Notes:

  • Every transition requires the corresponding role on the term. owner means the caller’s email is in owners; reviewer means the caller’s email is in reviewers OR the reviewers list is empty. The allow_admin_policies role bypasses all role gates.
  • Once a term leaves draft, only owners can edit its content. Non-owners get 403 with only term owners can edit terms past Draft. Ask an owner to make changes.
  • A substantive edit to an approved (or deprecated) term auto-transitions the status back to review. This is the “someone changed the definition, get eyes on it” bump - it fires even when the caller kept status: approved in the request body.
  • Un-deprecation to approved requires the caller to be BOTH owner and reviewer on the term. A pure owner can only lift a deprecated term back to draft or review.

Assignment model

Terms attach to any asset in the seven-kind allow-list. The URL shape is:

PUT /api/glossary/assignments/{kind}/{id}

The {kind} slot is validated against a closed allow-list to reject typos before they create stray buckets. The {id} slot is opaque - each kind picks the id format that makes sense for that surface.

Kindid formatExample
column<database>.<table>.<column>analytics.fct_subscriptions.arr_eur
table<database>.<table>analytics.fct_subscriptions
model<model_name>fct_subscriptions
metric<metric_name>active_arr
chart<chart_id>weekly-arr-by-country
dashboard<dashboard_id>exec-weekly-nps
notebook<notebook_id>arr-decomposition

Assignments are stored per-workspace in glossary/<workspace>/_assignments.yaml. A GET /api/glossary/assignments/{kind}/{id} fans out across every workspace the caller can see, so a column in a shared warehouse can pick up terms defined by multiple teams. The response hydrates the attached terms in a single pass rather than N per-term lookups.

Kinds are extensible; new kinds land in validAssignmentKinds in the server as the surface grows.

Grounding: Ask reads approved terms

/api/ask and /api/ai/chat respones include a glossary_terms array with the approved terms the server judged relevant to the question plus the grounded plan (metric name + dimensions).

  • Only approved terms are eligible. Drafts and terms under review never reach the LLM’s context, so a work-in-progress definition can’t leak into a customer answer.
  • Ranking is a whole-word substring hit on the term’s name, id, synonyms, and (with a smaller bonus) definition_md. The scorer runs against a token bag built from the question, the resolved metric name, and each grounded dimension name.
  • Workspace ACL is applied AFTER ranking: the raw scorer oversamples 3x the visible cap so a caller barred from N-1 workspaces still gets up to cap accessible terms.
  • The terms are then serialised into the LLM’s system prompt as authoritative definitions the model MUST honour. This is the “MRR means active_arr, not sum(orders.amount)” guardrail - it turns your glossary into the vocabulary the AI is required to speak.

See Ask: grounded AI Q&A for the response shape.

Column suggestions

When an analyst opens a column drawer with no terms attached, the picker calls:

GET /api/glossary/suggest/column/{database}/{table}/{column}

The scorer ranks every term (all statuses except deprecated - a draft term in progress is still useful to attach) by fuzzy similarity between the column name and every term’s name, id, and synonyms. Score is Jaccard on token sets plus a +0.3 substring bonus when either side contains the other. Terms below a 0.34 minimum are dropped; single-token candidate names are also dropped when the column has more than one token (guards against a term named simply “Customer” Jaccard-1.0 matching every *_id / customer_* column).

The endpoint oversamples 4x the visible cap and then post-filters by workspace access so callers barred from N-1 workspaces still get up to five accessible suggestions.

Workspace scoping

Every term belongs to a workspace_id. Reads and writes respect the workspace ACL:

  • List (GET /api/glossary/terms) filters the returned terms to workspaces the caller can access.
  • Get (GET /api/glossary/terms/{id}) returns 404 (not 403) on a term in an inaccessible workspace, so a caller can’t probe for term existence.
  • Put (PUT /api/glossary/terms/{id}) is gated by allow_save AND workspace access. Moving a term across workspaces requires access to both source and target.
  • Delete (DELETE /api/glossary/terms/{id}) is gated by allow_delete AND workspace access. Fails closed on a transient GetTerm error rather than allowing the delete.
  • History (GET /api/glossary/terms/{id}/history, .../at/{sha}) walks past workspace-id if the term is now deleted, and gates on the last-known workspace so deleted terms can’t leak their git-log.

API endpoints

All endpoints are rooted at /api/glossary. Full reference is in REST API.

  • GET /api/glossary/terms - list terms, optional ?domain=, ?status=, ?q= filters, ?limit=&cursor= pagination.
  • GET /api/glossary/terms/{id} - fetch one term.
  • PUT /api/glossary/terms/{id} - create or update. Enforces state machine + edit gate.
  • DELETE /api/glossary/terms/{id} - remove. Requires allow_delete.
  • GET /api/glossary/terms/{id}/history - git-backed change log.
  • GET /api/glossary/terms/{id}/at/{sha} - term at a specific commit.
  • GET /api/glossary/terms/{id}/usages - reverse lookup: which assets carry this term.
  • GET /api/glossary/assignments/{kind}/{id} - list terms attached to an asset (fans across workspaces).
  • PUT /api/glossary/assignments/{kind}/{id} - replace the term-id list on an asset.
  • POST /api/glossary/assignments/batch - bulk lookup for many (kind, id) pairs.
  • GET /api/glossary/suggest/column/{database}/{table}/{column} - fuzzy-ranked suggestions.

Every write emits a glossary.term.put audit row via the same origin-tagged path as chart and dashboard writes. See Audit and lineage.

  • Audit and lineage - assignments hang off lineage nodes; column suggestions fire from the Schema Browser.
  • Ask: grounded AI Q&A - how approved terms staple into the LLM’s prompt.
  • Access control - allow_save / allow_delete gates on term CRUD.
  • Tags - shared taxonomy that composes with glossary terms.
  • REST API - full endpoint reference.

Last updated