Repository navigation
fix(lab-report): deliver --from-note reads rendered report blocks - #46
Merged
Merged
Conversation
The note parser only knew the hand-authored block grammar. A block written by `reg-lab-report render` wraps its score line in `*github: ... *` with a Feedback PR link and quotes its comment, so the parser kept the total and silently dropped the comment and every component score. The score line now skips the `github:` lead and link tokens, the comment falls back to the block quote, and `_no submission_` reads as no comment. deliver --from-note warns about a graded block with no comment or scores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LMsLD73YktSkHCT6wBQMFb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
reg-lab-report deliver --from-noteonly parsed the hand-authored block grammar. A block written byreg-lab-report renderwraps its score line in*github: … · [Feedback PR](…)*and puts the comment in a block quote. The parser kept the total and silently dropped the comment and every component score, so the deliveredFEEDBACK.mdwould show a grade with no breakdown and no feedback. Found while delivering Fa26 Lab 1 extension feedback on 2026-10-27.Fix
feedback_note: the score line skips thegithub:lead and markdown-link tokens; the comment falls back to the block quote; the rendered_no submission_quote is no comment. Prose containing·is still rejected as a score line, and a plain_Comments:_comment keeps any quote inside it.feedback_deliver:--from-notewarns before shipping a graded block with no comment or no score line.docs/design/feedback-from-note.md.Verification
tests/test_feedback_note.py; full suite 700 passed, 1 skipped.REPORT.mdfiles: 173 graded blocks, none missing a comment or scores.🤖 Generated with Claude Code
https://claude.ai/code/session_01LMsLD73YktSkHCT6wBQMFb