Skip to content

First version of the OSI spec - #3

Merged
khush-bhatia merged 9 commits into
mainfrom
kbhatia_spec_v1
Dec 12, 2025
Merged

First version of the OSI spec #3
khush-bhatia merged 9 commits into
mainfrom
kbhatia_spec_v1

Conversation

@khush-bhatia

@khush-bhatia khush-bhatia commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

First version of the OSI spec. It covers the following:

  • Core semantic model structure
  • Support for datasets, relationships, fields, and metrics
  • Multi-dialect metric expressions
  • Vendor extensibility framework
  • Context for agents

@khush-bhatia khush-bhatia changed the title Kbhatia spec v1 First version of the OSI spec Dec 12, 2025
@khush-bhatia
khush-bhatia marked this pull request as ready for review December 12, 2025 18:34
Comment thread core-spec/spec.yaml Outdated
Comment thread core-spec/spec.yaml Outdated
Comment thread core-spec/spec.yaml
# - [column1] # Simple key on one column
# - [column2, column3] # Composite key on two columns
unique_keys:
- [] # Array of column names (single or composite)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be an array of array of column names?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is. The first array is indicated by the -. I know yaml is confusing that way.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand. But the comment on line 80 as well as examples in the comment block need an update to clarify this.

Comment thread core-spec/spec.yaml Outdated
# Used for determining relationship type of either many-to-one or one-to-one
# Examples:
# - [column1] # Simple key on one column
# - [column2, column3] # Composite key on two columns

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an example with two unique keys, each being composite?

khush-bhatia and others added 3 commits December 12, 2025 15:07
Co-authored-by: Hossein Ahmadi <hossein.ahmadi@gmail.com>
Co-authored-by: Hossein Ahmadi <hossein.ahmadi@gmail.com>
@khush-bhatia
khush-bhatia merged commit 3a8cefa into main Dec 12, 2025
@tlento

tlento commented Dec 15, 2025

Copy link
Copy Markdown

I didn't get space to read through this prior to merge but my one main comment is this spec is under-specified.

For now it's not a big deal but there are a lot of opaque string and functionally untyped array types in here, which puts an enormous burden on all developers of converters to enumerate the possibilities of what those might contain.

We will need to go through and refine these before the spec is ready for publication or even for vendors to start building against it. If we are still going to use something like protobuf we'll need to resolve a lot of these issues in order to make that work well anyway, so I think that might be a good next step.

@khush-bhatia

khush-bhatia commented Jan 22, 2026

Copy link
Copy Markdown
Contributor Author

I didn't get space to read through this prior to merge but my one main comment is this spec is under-specified.

For now it's not a big deal but there are a lot of opaque string and functionally untyped array types in here, which puts an enormous burden on all developers of converters to enumerate the possibilities of what those might contain.

We will need to go through and refine these before the spec is ready for publication or even for vendors to start building against it. If we are still going to use something like protobuf we'll need to resolve a lot of these issues in order to make that work well anyway, so I think that might be a good next step.

I missed this comment before. Synced offline with Tom. This spec is a starting point, we will gradually move to a more typed spec as it evolves and yes we can maintain the spec in both proto and yaml format .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants