Skip to content

Design Doc: Schemas, Protocols & Intents w/Delegations #2312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

JoeCap08055
Copy link
Collaborator

Description

In the current implementation, schemas are registered with immutable numeric identifiers (SchemaId) and describe the layout and storage semantics (e.g., Avro/Parquet formats, on-chain/off-chain storage). These schema IDs are used as references by clients and runtime modules alike, particularly in the delegation system defined by the msa pallet.

Delegations currently allow a user to authorize a provider (e.g., an app or service) to act on their behalf, but this authorization is tightly bound to a specific SchemaId. This model has proven limiting in several ways:

  • Coupling between schema versions and delegations
  • Schemas represent data format, not purpose
  • Lack of human-readable context
  • Rigid governance workflows
  • No concept of publisher authority

These limitations have motivated a re-architecture of the schema and delegation systems to introduce the concepts of:

  • Named schema protocols with version tracking
  • Structured publishing under namespaces
  • Intent-based delegation
  • More expressive APIs and storage models

Closes #2265

@wilwade wilwade added the discussion Topic for Discussion at a Community Call label Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Topic for Discussion at a Community Call
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discussion]: Schemas v2
2 participants