Entity / One domain declaration
Who owns what
| Fact | Owner |
|---|---|
| A Post has a title, one Author, many Comments, a comment count | foldkit-entity |
| Whether a title is valid | the Effect Schema of that field |
| Relations arrive as refs; the store follows them | foldkit-remote |
author is the author_id column; title is stored as headline | foldkit-remote-drizzle (bind) |
| What editing a post may change | the operation's input struct, not the Entity |
| What the user is typing, and whether it is valid yet | foldkit-form, in the parent's Model |
| Which elements draw a form | foldkit-mixins-form |
| Which id is open, which save is in flight | foldkit-crud, reading Remote |
An Entity implies nothing about operations. There is no generated CRUD: a list exists because someone declared a query, an editor because someone declared a form and a mutation. A relation existing is not a licence to read a table.