feat: examples + output_shape on Lesson schema (#129)#160
Conversation
Closes #129. Adds optional Lesson.examples (list[Example{good,bad}]) and Lesson.output_shape (str|None). Round-trip preserved in markdown serializer. Rule injection emits <rule><goal/><shape/><good/><bad/></rule> XML when populated, falls back to legacy bullet otherwise. capture_example_from_correction populates examples list during graduation.
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 Walkthrough
WalkthroughThis PR adds a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Review rate limit: 2/5 reviews remaining, refill in 34 minutes and 46 seconds. Comment |
Closes #129.
Changes
Exampledataclass withgood/badfieldsLesson:examples: list[Example],output_shape: str | None<rule><goal/><shape/><good/><bad/></rule>XML when populatedcapture_example_from_correctionpopulates examples on graduation (de-duped, cap=3)Test plan
pytest tests/test_lesson_examples.py -xvs— 4/4 passtest_doctor_runs_on_brain, fixed in fix(test): de-flake test_doctor_runs_on_brain #157)Layering check
No Layer 0 -> 2 imports introduced.