Files
canina/specs/corporate-backend/plan.md
T

910 B

Plan

Base 1f01b9dab9, clean isolated corporate-backend branch. Existing graph hash 6a73473cee9e207543fdeeb668bea544f766200a1b16b8a3a9ce18d4e42e51af; graph is navigation only (binding unverified). Graph traversal AdminModule -> PrismaService/auth confirmed by direct source. Existing UI fields inspected in hermesApi.ts. Admin JwtAuthGuard supports JWT/API keys; RolesGuard requires admin scope for API keys.

Add standalone Prisma corporate entities with foreign keys and migration, admin/hermes controller and service wired in AdminModule. Shared validation functions explicitly validate bodies, reject unknown keys. All mutations use transactions with advisory key locks, payload digest and stored response. Per-task row locks serialize claims/evidence/review/children. Use authenticated actor identity, never submitted reviewer/executor identity. No worker/cron activation.