Rails: The Sharp Parts. Queries, Read Models, and Batching

Queries own the reads the way commands own the writes, and a T::Struct is the only thing that crosses between them. Every read here ran against ActiveRecord 8.1 before it went in.