{"success":true,"filters":{"category":"identity","primitive":null,"search":null},"summary":{"contracts":2,"categories":1,"requiredFields":8,"relationships":8,"evidenceOutputs":9,"failClosedRules":6,"apiSurfaces":8,"sourceModules":8},"contracts":[{"id":"primitive-contract-user","primitive":"user","name":"User","category":"identity","purpose":"Represents the learner, manager, admin, instructor, or API-linked person whose AI readiness evidence is being produced.","owns":["Authentication identity","Learner profile","Role assignment","Organization membership","Personal readiness evidence"],"requiredFields":["id","email","orgId","role","createdAt"],"relationships":["Belongs to one organization when training is tenant-scoped","Enrolls in courses and learning paths","Submits attempts and receives grading results","Earns credentials, badges, and certificates","May manage teams or approve content depending on role"],"evidenceProduced":["Identity-bound attempt history","Credential registry ownership","Learning progress","Manager report learner row"],"sourceModules":["src/lib/db/schema.ts:users","src/lib/auth.ts","src/lib/content-access.ts","src/lib/enterprise-access.ts"],"apiSurfaces":["/api/enterprise/users","/api/enterprise/training-data","/api/readiness/score-model","/api/proof-artifacts"],"failClosedRules":["Private evidence writes require a resolved user.","Production auth must not fall back to demo identity.","Managers can only inspect learners inside their permitted org or team boundary."]},{"id":"primitive-contract-organization","primitive":"organization","name":"Organization","category":"identity","purpose":"Defines the tenant boundary for company academies, custom content, manager reports, exports, policy training, and enterprise integrations.","owns":["Tenant identity","Company academy","Custom branding","Approved AI tool catalog","Enterprise integration settings"],"requiredFields":["id","name","createdAt"],"relationships":["Owns users, teams, courses, scenarios, skill atoms, rubric contracts, and tool scripts","Scopes enterprise API keys, SSO, SCIM, LMS, HRIS, and webhooks","Aggregates team and department readiness evidence"],"evidenceProduced":["Org readiness dashboard","Compliance training evidence","Audit logs","Department benchmark reports","AI adoption risk and ROI dashboards"],"sourceModules":["src/lib/db/schema.ts:organizations","src/lib/platform/company-academy.ts","src/lib/platform/org-readiness-dashboard.ts","src/lib/platform/integrations.ts"],"apiSurfaces":["/api/company-academy","/api/org-readiness-dashboard","/api/integrations","/api/evidence-export-center"],"failClosedRules":["Org-only content cannot be read without a matching orgId.","Enterprise exports must include tenant identity but not private raw scenario contents.","Platform admins need explicit org context for tenant-scoped mutations."]}]}