Entity / Expressions

Where you write an expression and who answers it

Question you expressDeclared withInterpreted by
Which rows a list holds and in what orderQuery.where, Query.orderByServer SQL; page when placing written rows
Which state a row is inEntity.refineQueries and writes referencing that state
What every stored row must holdEntity.invariantServer writer, SQL CHECK, page, and forms
Whether a specific write applies nowWrite.update(..., { when })Writer WHERE clause and page pre-check
Who may read or write a rowfoldkit-guard ruleServer SQL and client may hints
Reusable domain predicateExpr.operatorAny interpreter supporting its body

foldkit-entity defines the expression language and its reference evaluator. Authority stays with the server: the server decides list membership and commits writes, while client evaluations serve as immediate UI previews replaced when the server responds.