Branches and proposals
Definitions in the Ontology change the way code does. You make changes on a branch, preview them against real data, open a proposal, let automated checks and the owners of each changed resource review it, and merge. The platform service runs this cycle as change sets on the Model changes screen. This page starts with what is in the platform today, then covers the rest, delivered on request
- The Editor role on the ontology to create a branch, push to it and open a proposal; approving a task needs ownership of the changed resource, and changing the proposal policy needs Administrator
- Every access label on a resource to review or approve its task, for example
QUALITYon a labelled object type - A data branch attached to an ontology branch needs lakeFS over your open table storage and a pipelines project attached to the ontology
In the platform today
Changes to the ontology's definitions run in the platform service with tests, and on the Model changes screen in Build. A change set is the built form of a branch and its proposal in one: it is opened from the current revision of the ontology folder, holds a list of typed operations, and is checked, previewed, reviewed and merged as a unit. Agents cannot open, review or merge a change set
| Operations | Change |
|---|---|
addType, editType, removeType | An object type |
addProp, editProp, renameProp, removeProp | A property: its type, values, unit, source column, name and who it is hidden from |
addLink, removeLink | A link type |
addAction, editAction, addActionParam, removeActionParam | An action type: parameters, conditions, rules and writeback |
setAccessLabel, setRowPolicy | Who may read an object type: its access label, and one row policy or a list of them |
addValueType, editValueType, removeValueType | A value type: base type, constraints, unit and message |
addSharedProperty, editSharedProperty, removeSharedProperty | A shared property |
addInterface, editInterface, removeInterface, implementInterface, removeImplementation | An interface, and an object type's implementation of it |
moveEdits, castEdits, dropEdits, resetEdits | What happens to the active edits on a property, or on a whole type, when the change set merges |
putDefinition, removeDefinition | A whole action type, metric, dashboard, automation, agent or verified answer, as one entry, used by solution packages |
Each operation edits only the lines of ontology.yaml for the definition it changes, so comments and layout elsewhere stay as they were. The change set shows the proposed file as a diff against the revision it was based on
- Checks run on every edit, and each problem they find is blocking, a warning or information
- Validity loads the proposed folder in a temporary copy
- Breaking finds a removed or renamed type, property or link still used by an action, function, agent, automation, verified answer, metric, dashboard tile, share, AI function or pipeline, a property whose existing values will not convert to its new type, active edits left holding a type their property no longer has, and a key change
- Impact lists the object types with their object counts, the pipelines, actions, functions, agents, metrics, shares and screens touched, and who gains or loses visibility
- Preview builds a throwaway data branch, re-syncs the affected object types there with the proposed definitions, and reports objects created and removed, new properties left empty, values that fail to convert and links that point nowhere. The branch is discarded afterwards, so
mainis never touched - Review needs an approval for each affected object type from its owner group, as the catalogue resolves it, or from an administrator. A change to a value type, shared property or interface also needs the owner of shared definitions. The author cannot approve their own change set. Changing the operations on a type resets the approvals for that type only
- Merge needs every approval and no blocking problem, and is refused when the ontology has moved since the change set was based.
:rebasereplays the operations on the live revision and lists any that no longer apply. A merge applies the new definitions to the running service, keeps the previous revision, carries the active edits through the operations, re-syncs the affected object types and records the change in the history
When several copies of the service share the ontology folder, every other copy reloads within about 10 seconds. Two merges saved at the same moment on two copies cannot both land: one is written and the other is refused with MODEL_CHANGE_STALE
Edits through a model change
Objects carry edits that actions made on top of their source values. A model change says what becomes of them, and the merge carries them through the operations in order. The four edit operations change no definition and never apply to the key property
| Operation | What happens to the edits |
|---|---|
{ op: moveEdits, type: aircraft, id: msn, to: location } | Moved to another property of the type. Where an object has an edit on both, the later one stays. The undo history moves too, so undoing an earlier action puts back what the other property held before the move. Sealed edits move only between properties sealed with the same access label |
{ op: castEdits, type: aircraft, id: msn } | Converted to the property's type. The checks refuse the merge while any value won't convert, and list those objects |
{ op: dropEdits, type: aircraft, id: msn } | Dropped, so the objects show the source value again |
{ op: resetEdits, type: aircraft } | Every edit on the type dropped; delete and create markers stay |
A renamed property keeps its edits and their undo history under the new name, and a removed property's edits are dropped. When a property's type changes while it still has edits in the old type, the checks block the merge with EDITS_NOT_CONVERTED until the change set converts them with castEdits or drops them with dropEdits
On the Model changes screen, renaming, retyping or removing a property shows how many edits it holds and what can happen to them: keep, convert, drop or move. Change existing edits adds the four operations on their own, and a check that refuses the merge offers the operation that settles it
| Endpoint | Does |
|---|---|
GET /api/v2/model-changes, /{id}, /{id}/yaml, /history | Change sets, one with its checks, preview and reviews, its proposed file, and the history of merges |
GET /api/v2/model-changes/{id}/edits | How many active edits each property holds once the change set's operations have carried them, with how many still hold a type the property no longer has |
POST /api/v2/model-changes | Opens a change set with a title and description |
POST /api/v2/model-changes/{id}/operations, DELETE …/operations/{op} | Adds an operation, or several in order as { operations: [...] } (all or none), or removes one; checks run again |
POST /api/v2/model-changes/{id}/reviews | Approves, requests changes or comments, with a verdict and a body |
POST /api/v2/model-changes/{id}:check, :preview, :approve, :requestChanges, :rebase, :merge, :discard | Runs the cycle |
Change sets and their reviews are kept with the history, and every step is audited. Delivered on request: revisions numbered in order, reading main's data through a branch's definitions with ?branch=, the preview index, data branches attached to a change, the lint, action test, function test and evaluation checks, the proposal policy, protected resources, revert proposals and command-line tools for branches and proposals
How change works
On request, branches of the definitions sit alongside numbered revisions of main. You browse main's data through a branch's definitions before anything merges, attach a data branch when a change needs new columns or datasets, and apply actions on the branch without anything leaving the platform
Branches of the ontology's definitions run as change sets, described under in the platform today; a change set previews on a throwaway data branch rather than holding its own. Branches of the lake's data are built, on their own rather than attached to an ontology branch: a copy-on-write branch, built in or on lakeFS, where actions with writeback, pipelines, agents, evaluations and SQL run, with row-level diffs, conflict-checked merges and what-ifs. In the platform service, ?branch= and the X-MSO-Branch header address one of those data branches. See data branches and what-ifs
Proposals, checks and merging
Built change sets, described under in the platform today, cover checks, review, rebase and merge. On request, a review task for each changed resource, more checks such as lint and tests, a proposal policy that sets the approvers for each kind of change, protected resources and revert proposals
Limitations
- A proposal merges definitions only. Objects, links and edits made by actions applied on a branch are never merged into
main, and there is no way to promote them - Every proposal targets
main. Branches cannot be cut from other branches or merged into each other - Writeback, webhooks and notifications are always previews on a branch, so the real delivery path to a source system is first exercised after the merge
- A merged revision is never rewritten. Undoing a change is a revert proposal with its own checks and approvals, not a rollback of history
- Data branch conflicts are reported per table, not per row. Two branches that change different rows of the same table still conflict and need a resolution