Schema and migration workflows
August 7, 2026 · View on GitHub
TypeBridge separates desired schema, migration history, and generated application projections. For new V2 systems, a versioned Split-YAML workspace is the canonical authoring authority.
Recommended V2 flow
- Author a Split-YAML schema set and workspace.
- Validate it offline with
type-bridge … schema check. - Generate the configured Python, TypeScript, and Rust projections from one snapshot.
- Create and review a migration.
- Apply the migration only in an environment that permits it.
- Deploy application packages bound to the resulting schema fingerprint.
If the workspace deploys the generic TypeBridge server, configure and deploy its source-free authority artifact from that same generation snapshot.
Split-YAML is the only active authoring path. Existing TOML and historical migration material is handled only by the documented read-only conversion and recovery workflows. Generated files are projections, not alternate schema authorities: regenerate them after an accepted schema change and never edit or subclass their runtime bases.
Generated packages embed compiled authority for their normal remote sessions.
When configured, the separately emitted typebridge.schema-authority/v1 JSON
is a source-free generic-server deployment codec, not a second authoring
format. Never edit it; regenerate it with every package after changing
Split-YAML.
API boundary projections
Application-boundary DTOs should be defined by the application around generated models. Generated Python, TypeScript, and Rust packages retain language-specific types while sharing canonical field, role, and schema identities.