{"success":true,"filters":{"category":null,"primitive":"user","search":null},"summary":{"contracts":1,"categories":1,"requiredFields":5,"relationships":5,"evidenceOutputs":4,"failClosedRules":3,"apiSurfaces":4,"sourceModules":4},"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."]}]}