Skip to content

fix(lab-report): deliver --from-note reads rendered report blocks - #46

Merged
agiacalone merged 1 commit into
mainfrom
fix/from-note-rendered-blocks
Oct 27, 2026
Merged

agiacalone merged 1 commit into
mainfrom
fix/from-note-rendered-blocks

Conversation

@agiacalone

Copy link
Copy Markdown
Owner

Problem

reg-lab-report deliver --from-note only parsed the hand-authored block grammar. A block written by reg-lab-report render wraps 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 delivered FEEDBACK.md would 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 the github: 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-note warns before shipping a graded block with no comment or no score line.
  • Changelog entry and a note in docs/design/feedback-from-note.md.

Verification

  • 4 new tests in tests/test_feedback_note.py; full suite 700 passed, 1 skipped.
  • Parsed all six Fa26 recon REPORT.md files: 173 graded blocks, none missing a comment or scores.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LMsLD73YktSkHCT6wBQMFb

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
@agiacalone
agiacalone merged commit 9b27a12 into main Oct 27, 2026
4 checks passed
@agiacalone
agiacalone deleted the fix/from-note-rendered-blocks branch October 27, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant