Lineage Skill 1.0 compiler flow
================================

Sources
  video / audio / PDF / OCR / Markdown / notes / legacy package
    │
    ▼
Capture and evidence
  transcribe → analyze → model-selected keyframes → documents → text cards
    │
    ▼
Distill and audit
  lesson/course synthesis → source audit → CoursePackage 1.0
    │
    ▼
Compile apprenticeship
  TeacherModel → CapabilityGraph → PracticeBank → AssessmentBank
    │
    ▼
Runtime package
  MentorPackage → readiness audit → generated Skill → validation
    │
    ▼
External learner evolution
  PracticeEpisodes → MasteryState → ReviewQueue → Personal Skill → graduation

Full media command
==================

python scripts/run_course_pipeline.py \
  --input-dir <video-or-audio-directory> \
  --documents-input <pdf-or-document-directory> \
  --notes-input <notes-file-or-directory> \
  --course-name <course-name> \
  --skill-name <skill-name> \
  --mode mentor,practitioner \
  --apprenticeship full \
  --practice-depth deep \
  --learner-state external \
  --output-dir ./dist

Text/book command
=================

DISTILL_USE_LLM=0 python scripts/run_course_pipeline.py \
  --text-input <markdown-txt-or-directory> \
  --course-name <course-name> \
  --mode mentor \
  --apprenticeship full \
  --text-no-llm \
  --output-dir ./dist

Validation
==========

python scripts/validate_lineage_package.py --package <course_package.json>
python scripts/validate_mentor_package.py --package <mentor_package.json>
python scripts/validate_generated_skill.py --skill-dir <generated-skill>
