# Add event-sourced CoreEngine for server-side state management · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/4ce3c3bf8ada2334754ab7f2da09d9ba274b234c)

Repository: [flambo/t3code](https://git.cafe/flambo/t3code)

Visibility: public

Requested revision: 4ce3c3bf8ada2334754ab7f2da09d9ba274b234c

Requested commit: 4ce3c3bf8ada2334754ab7f2da09d9ba274b234c

Commit: 4ce3c3bf8ada2334754ab7f2da09d9ba274b234c

Tree: 0e5477d5f3c741f6ebb139f8b91bf8a495ee9653

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Add event-sourced CoreEngine for server-side state management

Introduces a new event-sourced architecture with SQLite persistence:
- CoreEngine handles command dispatch and read model generation
- SqliteEventStore provides durable event storage
- CommandHandlers process domain commands (CreateProject, CreateThread, etc.)
- ReadModels derive current state from event history

Simplifies client-side state management by moving persistence to the server.
Removes redundant client-side persistence schema and session logic tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

```

## Parents

- [781006f0054f3e40ec7f7eadd612b037ea52f5ff](https://git.cafe/flambo/t3code/commit/781006f0054f3e40ec7f7eadd612b037ea52f5ff?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/4ce3c3bf8ada2334754ab7f2da09d9ba274b234c?format=markdown)
