Introduce Poly.DomainModeling.V2 immutable domain core with mutation sessions and MCP-oriented authoring tools#18
Draft
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/scoizzle/Poly/sessions/a072a8fa-bfbc-4903-aee1-d828a6dab6e9 Co-authored-by: scoizzle <2981795+scoizzle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/scoizzle/Poly/sessions/a072a8fa-bfbc-4903-aee1-d828a6dab6e9 Co-authored-by: scoizzle <2981795+scoizzle@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create simplified domain modeling system for UI/API/MCP consumers
Introduce May 14, 2026
Poly.DomainModeling.V2 immutable domain core with mutation sessions and MCP-oriented authoring tools
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.
This PR adds a new
Poly.DomainModeling.V2foundation for UI/API/MCP consumers with an immutable domain model, unified mutation shape, and session-based mutation workflow. It establishes a clean v2 surface for future domain modeling evolution while keeping analysis, rendering, and validation first-class.Immutable V2 domain primitives
Domain,DomainType/Entity,Property,Stage,Action,Relationship.IEffecthierarchy with concrete effects:SetProperty,TransitionStage,CreateEntity,InvokeAction.RelationshipKind.Builder + DSL authoring surface (internals-backed)
DomainBuilder,EntityBuilder,ActionBuilder) with nested lambda composition.DomainFactory.Create(...)and DSL wrappers (DomainDsl,EntityDsl,ActionDsl).Unified mutation contract
DomainMutation+DomainMutationKindas a single mutation payload model for API/MCP workflows.DomainMutationEnginewith immutable updates and validation enforcement.Session lifecycle and traceability
DomainSessionManagerwithCreateSession,Mutate, andGetTrace.DomainSession) and mutation history (DomainTraceEntry).MCP-style high-level operations
DomainMcpTools.CreateEntityWithPattern(...)for opinionated entity bootstrapping.DomainMcpTools.AddCRUD(...)for standard action/effect scaffolding.Analysis / rendering / validation support
DomainValidator,DomainAnalyzer, andDomainRendererto keep quality and inspectability strong in the v2 surface.E-commerce demo + focused tests
DomainModelingV2ECommerceDemoshowing both DSL-first and session/mutation-driven composition.Original prompt