Skip to content

fix(lyrics): report collected lyrics truthfully - #272

Merged
streambinder merged 1 commit into
masterfrom
feat/lyrics-reporting
Oct 26, 2026
Merged

streambinder merged 1 commit into
masterfrom
feat/lyrics-reporting

Conversation

@streambinder

Copy link
Copy Markdown
Owner

This pull request is cycle 001 of the specification workflow and stacks on the onboarding pull request. The artifacts live in specs/001-lyrics-reporting/.

The investigation in the specification disproved the first reading of the report. The search had found the lyrics and the persistence had stored the frame: the synchronization itself had written the lyrics cache during the run. The lyrics text of one composer starts with a blank line, and both reporting sites reduced the value to its first line, so a present value read as not found in the run output and as unset in show.

The change normalizes a lyrics text once at the lyrics boundary: Search strips leading blank lines from the merged result before the cache write, normalizes a legacy cache entry on read, and counts a blank-only entry as a miss; Get strips the same way. The collect log line and the show Lyrics row now excerpt the first non-empty line through a new sys.FirstContentLine, so the fallback fires only for an actually empty value. The choice rules, the failure accounting, and the frame format stay unchanged.

Verification: the full suite passes locally with the race detector and the per-package coverage gate (cmd 98.1 percent, lyrics 96.8 percent, sys 94.7 percent), with new tests for the normalization, the legacy cache, the stored frame in show, and the end-to-end run output. No real track, artist, or source page is named, per section 24 of the standard.

@streambinder
streambinder force-pushed the feat/lyrics-reporting branch from 60143b1 to a5a40bc Compare October 26, 2026 13:32
@streambinder
streambinder force-pushed the feat/lyrics-reporting branch 2 times, most recently from c37cbba to 3af1ddb Compare October 26, 2026 13:45
@streambinder
streambinder changed the base branch from feat/sdd-onboarding to master October 26, 2026 13:46
A lyrics text with leading blank lines read as missing in the run output and in show.
@streambinder
streambinder force-pushed the feat/lyrics-reporting branch from 3af1ddb to 91d84f5 Compare October 26, 2026 13:46
@streambinder
streambinder merged commit a5c7032 into master Oct 26, 2026
6 of 7 checks passed
@streambinder
streambinder deleted the feat/lyrics-reporting branch October 26, 2026 13:54
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