feat(schema): copilot per-product rollen/rechten — AccessLevel + ProductMember.role/access + CopilotAppUser + policy-helper #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/copilot-user-roles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Samenvatting
Deel 1 van de copilot per-product gebruikers/rollen/rechten-feature (IDEA-118 vervolg; plan dubbel-GO na 3 cross-model-reviewrondes). Twee additieve commits:
2528aff):enum AccessLevel {READ_WRITE, READ_ONLY}+enum CopilotAppUserStatus {PENDING, LINKED};ProductMember.role/access/updated_at(backfill via defaultsDEVELOPER/READ_ONLY); nieuwemodel CopilotAppUser(mapping host-app-user → scrum4meUser— de product-owner is géénProductMember, dus de mapping wijst naarUser; de service berekent de effectieve owner-of-member-toegang);CopilotChatSession.user_id/app_user_ref; back-relations opProduct+User.da713c8):lib/copilot-access.ts— één@prisma-vrije bron-van-waarheid voor de RO/RW-classificatie (read+ideatie = RO; muteren/uitvoeren = RW;dispatch_jobper kind; fail-safe default RW) + 6 unit-tests.Verificatie
gen-consumer-schema.sh→prisma validate= "valid 🚀" (de canonieke file heeft bewust geendatasource; validatie loopt via de consumer-gen, zoals bij alle consumers).npm run verifygroen: dep-gate (lib/@prisma-vrij),tsc --noEmitclean, 107 tests (incl. de 6 nieuwe policy-tests).Hierna (na merge)
Web (designated migrator) bumpt de submodule + authort de additieve migratie, draait
update_scrum4me_web+ psql-verify; daarna copilot-service (Deel 2) + kit (Deel 3) + web-UI (Deel 4) + kit-first-uitrol (Deel 5). Volledige plan: scrum4me-workersdocs/superpowers/plans/2026-06-12-copilot-user-roles.md.🤖 Generated with Claude Code