{"success":true,"filters":{"category":"learning","primitive":null,"search":null},"summary":{"contracts":5,"categories":1,"requiredFields":33,"relationships":16,"evidenceOutputs":20,"failClosedRules":15,"apiSurfaces":18,"sourceModules":19},"contracts":[{"id":"primitive-contract-role","primitive":"role","name":"Role","category":"learning","purpose":"Maps a learner to the AI workflows, tools, risks, skill atoms, scenarios, rubrics, and credentials that matter for their job.","owns":["Role academy","Vertical positioning","Workflow scope","Tool mission mix","Readiness benchmarks"],"requiredFields":["slug","name","audience","workflows","skillAtoms","toolMissions"],"relationships":["Routes learners into role academies, demos, readiness assessments, and learning paths","Filters skill graph nodes and scenario seeds","Defines manager report and benchmark context"],"evidenceProduced":["Role selection recommendation","Role readiness benchmark","Role academy proof packet","Vertical SEO landing page"],"sourceModules":["src/lib/platform/verticals.ts","src/lib/platform/role-selection-quiz.ts","src/lib/platform/readiness-benchmarks.ts","src/lib/platform/vertical-seo-matrix.ts"],"apiSurfaces":["/api/role-academies","/api/role-selection-quiz","/api/readiness/benchmarks","/api/vertical-seo-matrix"],"failClosedRules":["Unknown roles route to assessment instead of fabricated credentials.","Custom role curricula require source grounding before publishing.","Role policy enforcement must override generic workflow advice."]},{"id":"primitive-contract-skill-atom","primitive":"skill_atom","name":"Skill Atom","category":"learning","purpose":"Stores the smallest trainable and assessable AI capability across a role, workflow, tool, industry, or policy boundary.","owns":["Trainable capability","Failure modes","Practice pattern","Assessment configuration","Prerequisite graph"],"requiredFields":["id","name","version","status","visibility","context","pattern","assessment"],"relationships":["Belongs to courses, learning paths, missions, scenarios, and rubric contracts","Depends on other skill atoms through required, recommended, or related edges","Feeds readiness scoring dimensions and credential evidence"],"evidenceProduced":["Skill mastery status","Skill atom result","Skill graph coverage edge","Credential skill evidence"],"sourceModules":["src/lib/db/schema.ts:skillAtoms","src/lib/platform/skill-atoms.ts","src/lib/platform/skill-graph.ts","src/app/api/skill-atoms/route.ts"],"apiSurfaces":["/api/skill-atoms","/api/skill-graph","/api/platform/manifest"],"failClosedRules":["Draft skill atoms cannot count as learner readiness evidence.","Org-only skill atoms cannot leak into public catalogs.","Deprecated skill atoms remain visible only for historical evidence references."]},{"id":"primitive-contract-scenario","primitive":"scenario","name":"Scenario","category":"learning","purpose":"Represents a realistic work situation used for simulations, drills, assessments, capstones, and company-specific practice.","owns":["Scenario context","Difficulty","Ideal behaviors","Linked skill atoms","Recommended tool scripts"],"requiredFields":["id","title","context","rubric","difficulty","status","visibility"],"relationships":["Instantiates from scenario seeds","Links to courses, missions, skill atoms, and rubric contracts","Produces attempts and grading results","Can be generated from policies, tickets, calls, SOPs, briefs, and docs"],"evidenceProduced":["Simulation attempt","Baseline scenario result","Exit scenario result","Manager review artifact"],"sourceModules":["src/lib/db/schema.ts:scenarios","src/lib/platform/scenario-seeds.ts","src/lib/demo-scenarios.ts","src/lib/platform/studio.ts"],"apiSurfaces":["/api/demo/scenarios","/api/studio/source-training","/api/course-library","/api/grading/universal"],"failClosedRules":["Private or org-only scenario text cannot be included in public proof artifacts.","Company-generated scenarios require privacy review before learner use.","Scenario attempts must reference the rubric contract version used at grading time."]},{"id":"primitive-contract-mission","primitive":"mission","name":"Mission","category":"learning","purpose":"Packages practice into a guided loop that can include scenarios, tools, workflow steps, timed drills, daily practice, or team competition tasks.","owns":["Practice objective","Mission steps","Target skill atoms","Tool requirements","Completion evidence"],"requiredFields":["id","title","role","difficulty","steps","evidenceRequired"],"relationships":["Belongs to learning paths, daily missions, tool mission catalogs, and competitions","Creates workflow sessions and step attempts","Feeds streak, XP, credential, and manager evidence"],"evidenceProduced":["Mission completion","Tool practice artifact","Workflow step attempt","Daily practice streak"],"sourceModules":["src/lib/platform/daily-missions.ts","src/lib/platform/tool-mission-catalog.ts","src/lib/platform/team-competitions.ts","src/lib/db/schema.ts:toolMissionStepAttempts"],"apiSurfaces":["/api/daily-missions","/api/tool-missions","/api/team-competitions","/api/workflow-portfolio"],"failClosedRules":["Mission completion cannot award evidence without required step proof.","Tool missions must respect the approved tool catalog for the learner role.","Practice scoring cannot be promoted to credential evidence without the required rubric gate."]},{"id":"primitive-contract-learning-path","primitive":"learning_path","name":"Learning Path","category":"learning","purpose":"Orders baseline assessment, missions, simulations, tool practice, workflow proof, exit assessment, and credentials for a role or company academy.","owns":["Path sequence","Maturity track","Role target","Manager evidence plan","Credential handoff"],"requiredFields":["id","targetRole","track","steps","skillsGained","managerEvidence"],"relationships":["Assembles courses, missions, scenarios, skill atoms, assessments, and credentials","Can be personalized after baseline assessment","Feeds manager coaching reports and weekly skill reports"],"evidenceProduced":["Learning plan","Path progress","Before/after readiness movement","Credential eligibility"],"sourceModules":["src/lib/platform/learning-paths.ts","src/lib/platform/personalized-learning-plans.ts","src/lib/platform/weekly-skill-reports.ts"],"apiSurfaces":["/api/learning-path-catalog","/api/personalized-learning-plans","/api/weekly-skill-reports"],"failClosedRules":["A path without role context routes to role selection or baseline assessment.","Manager evidence is read-only until attempts and results exist.","Personalized paths must preserve tenant content visibility."]}]}