Skip to content

Conversation

@doasync
Copy link
Member

@doasync doasync commented Jan 15, 2026

Note: The full theoretical paper (which served as the initial foundation for this PR's description) has been moved to a Gist.
Link: The Inevitable Architecture

New Model API & Fast Food Demo App

Branch: research/models -> main

🏗 Structure Changes

New experimental packages and demonstration applications.

New Packages & Apps

  • packages/core-experimental: A new core library introducing the "Model + Facets" architecture. It provides primitives like facet(), define, model(), and keyval() for building composable domain models.
  • apps/fast-food: A comprehensive proof-of-concept application built with core-experimental. It demonstrates how to handle complex domain requirements like polymorphism (heterogeneous carts) and reusable logic (traits).
  • apps/models-research: A dedicated workspace for research documentation (PAPER.md), presentations, and isolated demos (GameDemo, UserDemo) to validate the new architectural concepts.

Modified Packages

  • packages/core: Internal updates to definitions and factory paths to support the experimental extensions.
  • packages/react: Added sanity tests and example integrations to ensure compatibility with the new model structure.

This PR introduces the new architecture.

- Refactor keyval to use a flattened $state store.

- Fix instance.ts variant logic for leave events.

- Fix timeout in game.test.ts.

- Improve instance.test.ts coverage.
…ee demo

- Core: Added ref.self and ref.tag to core-experimental.
- Core: Implemented internal dependency resolution and array facet multiplexing in instance.ts.
- Core: Improved resource cleanup in instance.ts for custom logic.
- App: Implemented polymorphic Chat User demo with union and keyval.
- App: Implemented advanced Recursive Tree Demo with single-selection, targeted collapsing, and reactive renaming.
- Docs: Added DEMO_RD.md and DEMO_IMPL.md for the tree demo.
- Tests: Added comprehensive coverage for recursion and tag resolution.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 72 out of 75 changed files in this pull request and generated 22 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Enable linting and size-limit checks in GitHub Actions
- Fix size-limit executor compatibility with v11
- Remove obsolete lint:workspace script for Nx 19
- Verify build, test, and type-check pass locally
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@effector effector deleted a comment from Copilot AI Jan 18, 2026
@doasync doasync requested a review from Copilot January 18, 2026 21:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 143 out of 228 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants