Object storage
The object store holds the current and recent state of every object in the Ontology. It keeps each object as a series of versions in Delta Lake tables in your own storage. This page describes the layout and how source values and edits combine
version and updatedAtIn the platform today
- Each object type is one Delta Lake table,
objects.<type>, in the lake (a local folder, or S3 or MinIO), with one row per object: its properties plus_key,_version,_updatedAtand_edited - Edits are kept apart from source values and applied under the type's conflict policy, and each change an action makes is logged in
ops.edits - A property sealed under an access label is stored as an AES-256-GCM token, so a direct read sees the token, never the value
- Sync reads each backing dataset's change feed from where it last stopped, deletes remove the row, and an action's deletes and creates survive later syncs through
_deletedand_createdmarkers - Attachment properties hold file ids; the files are under
_files/in the lake - The tables can be read directly with DuckDB or the Delta Lake libraries
- The commit log, the hot tier, consistency tokens, time travel through the API, history kept per type and the per-object purge
The built layout
In the platform service, reading the demo airline's aircraft straight from the lake with DuckDB
-- Aircraft on the ground, and which properties hold an edit
SELECT _key AS fleet_number, status, statusReason, _version, _updatedAt, _edited
FROM delta_scan('<lake>/objects/aircraft')
WHERE status = 'AOG'
ORDER BY _updatedAt DESC;
Replace <lake> with the lake folder, or with the s3:// root when the lake is in object storage
Deletes and creates against the source
An action can delete an object whose row is still in its backing dataset, or create one the dataset doesn't hold. Two markers kept with the edits keep the action's result in place until the source catches up
_deleted | _created | |
|---|---|---|
| Left by | A delete rule | A create rule for a key the backing dataset doesn't hold |
| While it is active | Sync skips the key, so the object stays deleted although the source still has the row, and a modify on it fails as not found. The delete supersedes the object's other edits | A full sync, the first or one after the object table is rebuilt, keeps the object although no source row names it |
| Clears when | The source deletes the row too, through writeback or a later build. A row the source adds after that is a new object. A create of the same key also clears it and brings no older edit back | The source reports a row for that key; from then on the source owns it |
Sync also refuses a source row, keeping its object as it was, when its key is empty, when the key appears twice in a full read, or when a required property is empty after edits are overlaid. The refusals are listed in ops.sync_runs, as described on indexing and sync. The rest of this page is delivered on request
What the object store holds
An object is not a source row. A Production batch may be built from three source tables in the ERP and the MES, keyed and cleaned by a pipeline, and then edited by a QA lead who puts it on hold. The object store is where those two streams meet. The sync service writes versions that come from backing datasets, the action service writes versions that come from edits, and the store keeps both, with a record of which input produced each property value
Everything else that describes an object lives in a store built for its shape. The object store keeps scalar, struct and array properties and the keys that make links work. The search index keeps what search queries need. Time series and geotemporal tracks live in the time series store, and attachments live as files in your bucket with a reference on the object
| Data | Where it is stored | Format |
|---|---|---|
| Object versions | Object store, one set of tables per object type | Delta Lake, Parquet files, Zstandard compression |
| One-to-one and one-to-many links | The foreign-key property on the object at the many end | An ordinary property column |
| Many-to-many links | Object store, one link table per link type | Delta Lake, two key columns plus link metadata |
| Search postings, doc values and vectors | Search index | Inverted index and columnar doc values, rebuilt from the object store at will |
| Sensor and metric points | Time series store | Delta Lake partitioned by series and day, plus rollups |
| Attachments and media | Your bucket, under ontology/<ontology>/attachments/ (on request; today under _files/ in the lake, see attachments) | Original bytes, content-addressed by SHA-256 |
| Action log entries | Action log tables and the audit service | Delta Lake plus the hash-chained audit stream |
The search index can be dropped and rebuilt from the object store with no loss, which is how reindexing works. The object store cannot be rebuilt from the index. Backups, residency rules and customer-managed keys therefore apply to the object store first
A direct table read is governed by storage and catalogue grants, not by the Ontology's row access, field access or access labels. Grant direct read access to the object tables only to service principals and people who are cleared for every row and column in them. Everyone else should read through the API or the SDK
The write path, caching and consistency
On request, every write goes through one replicated commit log, busy types are cached beside the query service, each write returns a token so the caller reads its own changes, and history is kept per type. Today, sync and the action service write the object tables directly
Versions and concurrency
The store never updates a row in place. Each write produces a new version with a per-object _version and an _updatedAt commit time. Writers use optimistic concurrency, and writeback and side effects are only queued after the commit
How source values and edits merge
Each property's effective value is computed from the latest source value and the latest edit, under the object type's conflict policy: preferEdit (the default), preferSource or latestWins. Here is how one batch moves through a morning at the creamery under the default policy
| Version | Written by | Change | Effective qaStatus | _prov['qaStatus'] |
|---|---|---|---|---|
| 7 | Sync, gold.batches version 4412 | Batch B-0841 completes on Line 2 | Released | source |
| 8 | Action place-hold | QA manager holds the batch after check QA-7710 | On hold | alog_01J9Z7K3… |
| 9 | Sync, gold.batches version 4419 | Unit count corrected, QA status unchanged | On hold | alog_01J9Z7K3… |
| 10 | Sync, gold.batches version 4425 | The production sheet sets QA status to Released | On hold, review task raised | alog_01J9Z7K3… |
Version 9 shows why edits are stored separately: the source row changed, so the object got a new version, but the source did not touch qaStatus and the edit stands. Version 10 is a real conflict, and the policy keeps the edit and opens a review task for the type's owners rather than silently shipping a held batch. On request, _prov records which input set each property and a conflict raises a review task. Today, the edit is kept without a review task, and _edited plays the part of _prov
Time travel
On request, any read can ask for an earlier state by time. Today, read an earlier table version with the Delta Lake libraries
Retention
Pruning version history never removes the record of a decision. The action log keeps the before and after value of every property an action changed for its own retention period, independent of the object's history
- Retention policies. Retention policies delete rows from an object type's backing dataset on a schedule, sync the type and cut the history of each purged table
- Erasure requests. An approved erasure request deletes one person's objects, backing rows and edits everywhere its plan lists, keeping the hash-chained audit log intact through subject references
- Purging one object. On request, an administrator can purge a single object, for example personal information about a wholesale contact, removing every version and edit of it and recording the purge, but not the purged values, in the audit log
Volume and cost drivers
Storage and compute cost follow the volume of the object store and its index: the number of objects, their row size, the retained history and the links. A few choices dominate it
| Driver | Why it costs | What to do |
|---|---|---|
| Version churn | Every change to any property writes a new version of the whole row | Keep fast-changing measurements in time series, not properties |
| Wide types | Row size grows with every property | Split rarely read groups of properties into a linked type |
| Large values | A large value is copied into every version | Store documents as attachments and keep a reference |
| Many-to-many links | Each link is a row in a link table and in the index | Use a foreign key where the relationship is really one-to-many |
| Vector properties | An embedding adds kilobytes per object, plus the vector index | Embed only the text people search semantically |
| Long history | Retention multiplies churn | Keep short history unless an audit need says otherwise |
Modelling a freezer temperature as a property of Scoop shop updated every 30 seconds writes 2,880 versions per shop per day, about 40,000 versions a day for 14 shops, each a full copy of the shop's row. The same readings as a time series cost a few bytes per point and keep the shop's history readable
Limitations
- Today, deleted objects are removed rather than tombstoned, and there is no time travel through the API
- Direct table reads with Spark or DuckDB bypass row access, field access and access labels. Only catalogue and storage grants protect them
- A transaction never spans more than one action or one source dataset version. There is no way to group writes from two actions, or from a sync and an action, into one atomic commit