Architecture-first LLM pipeline for educational content generation.
cd "Question Generation"
pip install -e .
cp .env.example .env # Add API keys
# Generate questions
python scripts/generate_questions.py 10 42 5design/ folder:
- ADRs - Why Langfuse, Pydantic, versioned prompts
- DomainModel - Core entities
- SequenceDiagrams - Component flows
- guards/ - Automated enforcement
Protection layers:
- Design guards → Architecture compliance
- MyPy strict → Type safety
- Pydantic → Runtime validation
- Tests → Behavior locked
pip install -e ".[dev]"
pre-commit install
# Run gates
pre-commit run --all-files
pytest tests/