cd /news/ai-agents/slayer-2-0-the-ossie-release · home › topics › ai-agents › article
[ARTICLE · art-176230] src=motley.ai ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

SLayer 2.0: the Ossie release

MotleyAI released SLayer 2.0, a query language whose syntax is now a strict superset of Apache Ossie Layer 3, meaning any valid Ossie Layer 3 query is also a valid SLayer 2.0 query with the same semantics and results on the same models. The company enforces the alignment with a nightly CI check across all nine of SLayer's fully tested databases against test cases in the Ossie repo, and a query-command flag lets users enforce strict Ossie L3 by rejecting non-Ossie-legal queries and formatting output column names the Ossie way. MotleyAI said full Ossie Layer 1 coverage, making Ossie the native format for all models, and Layer 2 SQL-extension alignment will land within the next couple of weeks.

key takeaway

SLayer 2.0 accepts any valid Apache Ossie Layer 3 query as a strict superset with identical semantics, verified by a nightly CI check across nine databases, and a query flag enforces strict Ossie L3 by rejecting non-Ossie-legal queries and stripping dataset name prefixes from output columns.

by read5 min views1 publishedNov 25, 2026
SLayer 2.0: the Ossie release
Image: Motley (auto-discovered)

One curious thing that I learned when studying math: when trying to understand a domain, try to understand how it thinks about itself. Once you get that, things suddenly become easy - so in math, theorems are not created as much as discovered.

Once you get the internal logic of the domain, the semantics write themselves, happens to me time and again. The latest case is how after building the expressive, agent-friendly SLayer query language, I looked at Apache Ossie Layer 3 semantics and realized that where the two overlapped, they were nearly identical.

What is Ossie Layer 3?

The Ossie spec has four layers. Layer 1 is the model definition: the semantic model format plus the expression language used inside it. Layer 2, the Relational Query Interface, is an SQL extension to support semantic layer, well, semantics. Layer 3, the Wide Table Query Interface, is a query format similar to most semantic layers, where the caller says which dimensions, measures, filters etc. it wants, and the interface figures out the how. Layer 4, Ontology, is a separate workstream.

This led me to SLayer 2.0 (out today), which aligns the syntax to be a strict superset of Ossie Layer 3. That is, any valid Ossie Layer 3 query is also a valid SLayer 2.0 query, and has the same semantics and the same result when applied to the same models. This is enforced by a nightly CI check, on all nine of SLayer’s fully tested databases, against the test cases in the Ossie repo.

A flag in the query command lets you enforce strict Ossie L3, that is rejecting all queries that are not Ossie-legal, and formatting the output column names the Ossie way (throwing away the dataset name prefixes).

Layer 1 is partly there already: SLayer 2.0 stores imported Ossie model documents as they are and exports them back, and every Ossie expression it accepts means what Ossie says it means (see Ossie compliance). Making Ossie the native format for all models, full Layer 1 coverage, and Layer 2 (SQL extension) alignment will land within the next couple of weeks.

Why support Ossie beyond export/import? #

When most semantic layers declare “Ossie support”, they mean “export and import Ossie L1 documents”. While that is a start, that still forces users to maintain and keep in sync two versions of the semantic layer config (migrations are rarely instantaneous, and often different systems coexist). Having Ossie L1 be the actual storage format (SLayer 2.0 already stores imported Ossie documents as they are; all models follow within the next couple of weeks) lets you maintain a single source of truth, used by all systems.

Likewise, as the extreme overlap between Ossie and SLayer even before the alignment shows, there really is such a thing as natural query semantics, and given the names behind Ossie, it’s likely that the Ossie representation of it will increasingly grow in importance. This is especially important in the agentic era, as agents will have the common query formats inherent in their training data, and so will be better able to write queries in these than in more exotic ones.

What does SLayer offer on top of Ossie? #

The simple answer, for now, is that SLayer is Ossie Layer 3 plus:

- flexible query-time expressions (more on those below)
- a large collection of [supported database targets](https://docs.motley.ai/slayer/configuration/datasources/#supported-database-types)

In most semantic layers to date, that came at a cost of a drastic reduction in expressiveness: even to query for a ratio of two already defined metrics usually required adding a new metric for the ratio; anything more adventurous, like re-aggregation (e.g. average per region of a total per city) or grouping by a calculated dimension (e.g. LTV of customers grouped by recent usage) was either impossible or convoluted.

So that’s where SLayer came in. We just wanted to allow “the usual calculations” at query time, while letting the engine take care of the joins and subqueries involved. Here are some of the “usual calculations”:

  • On the fly aggregations on existing fields, including at custom grains (sets of dimensions). The result of the aggregation is itself a dataset which can take part in further expressions.
  • Arithmetic: add, multiply, divide subexpressions. These subexpressions can contain aggregates and fields from different datasets, and have different grain (the missing dimensions get broadcast over)
  • The usual row-level functions, like CASE WHEN , string operations,exp , etc.
  • Time-aware transforms such as cumsum ortime_shift
  • Beyond metrics: use these expressions freely to define dimensions, filters and order by
  • A time spine : a virtual dataset you can use to align metrics with different time dimensions

So far, so natural. The fun starts when you allow these to be combined and nested arbitrarily, while making sure no aggregation gets its row cardinality messed up by an accidental filter join, aligning grains of expression components, and the like. Doing this right is hard enough that it deserves a separate post - coming up next!

── more in #ai-agents 4 stories · sorted by recency
── more on @motleyai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/slayer-2-0-the-ossie…] indexed:0 read:5min 2026-11-25 · —