We do something almost like this, but we didn't try to invent any of the hard bits. We serialize our domain instances into JSON documents which also happen to contain the business rules as in-line SQL properties, and then project this JSON document into SQL databases as required for evaluating business logic.
Ephemeral, in-memory instances of SQLite can be incredibly powerful tools for building an extensible business logic engine.
Ephemeral, in-memory instances of SQLite can be incredibly powerful tools for building an extensible business logic engine.