TypeScript and Zod schemas, DTO types, operations, and stable IDs for learner-facing linguistic annotation.