Categorical primitive forms, I