Skip to content

About

Source-grounded lesson mapping and review prototype

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Lesson Map

Turn timed subtitles into reviewable source material for educational skills. Lesson Map prepares overlapping context windows, assigns each subtitle cue an ID, and helps validate proposed action chains and hierarchical semantic maps.

Status: early prototype. It does not call an AI model, transcribe audio, inspect video or Houdini scenes, verify factual claims, or automatically build skills. An accepted citation only proves that its cue ID exists in the selected input; it does not prove that the citation supports the claim.

Quick start

Requires Python 3.9 or newer; no third-party packages. Use subtitles that you have permission to process.

python context_check.py prepare examples/demo.vtt output/demo
python semantic_map.py prompt output/demo output/demo/semantic_prompt.txt

Read the generated output/demo/window-*.txt files and provide one window to a model of your choice. Save its JSON response locally, then check its structure and references:

python context_check.py validate output/demo examples/demo_actions.json --window window-001.txt
python semantic_map.py validate output/demo examples/demo_semantic_map.json

The demo subtitles and example annotations are original synthetic fixtures, not excerpts from a course. The examples remain needs_review. For real material, the generated index stores the source's absolute local path and hash; review generated files before sharing them.

Windows PowerShell may require $env:PYTHONIOENCODING='utf-8' to display the JSON and emoji correctly.

How it works

  1. context_check.py prepare parses WebVTT/SRT cues, keeps source timestamps and SHA-256, and creates windows with preceding/following context (default 180 seconds plus 60 seconds on each side). It does not modify the subtitle file.
  2. Each window contains a prompt for a model to extract the instructor's goal, prior state, action, subsequent observation, and later use. It explicitly distinguishes an observed sequence from a proven causal link.
  3. semantic_map.py prompt creates a separate whole-lesson prompt for lesson → phase → task → step. Phase boundaries are proposed by the model, not produced by the Python script.
  4. The validators check structure, known evidence references, hash, ranges and hierarchy. A human or a separate reviewer must still inspect whether an assertion is grounded, whether context is missing, and whether visual evidence and technical details are correct.

Semantic tags are extensible and may overlap: 🎯 goal, 🔵 concept, ⚪ state, 🟢 action, 🟣 result, 🔴 risk, 🟡 open question. Tags identify roles, not confidence, correctness or importance. Status is separate.

Limitations and next steps

  • Model integration, independent semantic review, direct video/frame inspection, Houdini runtime checks, cost controls and skill export are not yet implemented.
  • Whole-lesson prompts can exceed a model's context; hierarchical chunk merging is not implemented.
  • The parser targets conventional SRT and VTT cues. Complex overlapping, rolling captions, embedded markup and malformed files need more testing.
  • actions: [] is structurally valid; no tool currently checks coverage of actions. Phase coverage is not proof of correct segmentation.
  • Research plans and model candidates are hypotheses, not measured guarantees. Never mistake temporal proximity for causality.

Contributing

Issues and pull requests are welcome. Start with CONTRIBUTING.md. Please contribute small, reproducible examples that you have permission to share, rather than copyrighted courses or personal transcripts.

python -m unittest discover -s tests -v

Licensed under the MIT License.

About

Source-grounded lesson mapping and review prototype

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages