Milestone 147: add layout package v2 dto schema skeleton#171
Merged
Coasterpete merged 1 commit intoJun 18, 2026
Merged
Conversation
Adds the TrackLayoutPackageV2 contract-only DTO, vocabulary, JSON helper, schema, and tests while deferring mapper, validator, runtime behavior, and V1 changes. Tests: 1,675/1,675 passed. git diff --check passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Milestone 147 PR3 — Track Layout Package V2 DTO and Schema Skeleton
Overview
Introduces the initial TrackLayoutPackageV2 contract skeleton.
This milestone converts the V2 design and shape-lock decisions from M147 PR1 and PR2 into concrete DTO and schema artifacts while intentionally deferring import/export behavior, validation logic, and runtime integration.
The goal is to establish a stable V2 contract foundation before implementation work begins.
Motivation
M147 PR1 defined the long-term direction for TrackLayoutPackageV2.
M147 PR2 locked the intended V2 JSON shape, including:
This PR translates those decisions into code and schema artifacts so future milestones can build against a stable contract definition.
Implementation
V2 DTO Model
Added:
Provides the initial V2 DTO hierarchy including:
The DTO shape mirrors the locked V2 contract design.
Vocabulary
Added:
Defines V2 contract identifiers and version constants.
JSON Support
Added:
Provides deterministic V2 JSON serialization support consistent with existing contract behavior.
JSON Schema
Added:
Key schema decisions:
bankingheartlinebankingheartlinemetadata.layoutIdcurvatureTransition.interpolationModerestricted tolinearTest Coverage
Added:
Coverage includes:
Compatibility
No existing contracts were modified.
V1 remains unchanged.
No changes were made to:
Intentionally Deferred
This milestone does not implement:
Those responsibilities belong to later milestones.
Validation
Tests: 1,675 / 1,675 passed.
Additional verification:
Result
Quantum now has a versioned TrackLayoutPackageV2 contract foundation consisting of DTOs, vocabulary, JSON support, schema definitions, and automated tests.
Future milestones can build validators, mappers, import/export workflows, and heartline authoring support on top of a stable V2 contract surface.