Skip to content

fix(check): report a closing card's lines as one line_unread finding - #7721

Open
sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7709-line-unread-closing-card
Open

sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7709-line-unread-closing-card

Conversation

@sx4im

@sx4im sx4im commented Nov 14, 2026

Copy link
Copy Markdown

A film whose last frame is an end card made of several text elements got one line_unread finding per chunk, all saying the same thing: the card is held too briefly.

detectLineUnread now groups final lines whose refined start times are within one sample of each other into a single closing-card finding, anchored on the line with the highest floor and listing the rest in elements. A line that arrives later than the rest keeps its own finding, since its hold is different.

Verified: craftAudit.test.ts 29/29, including a seven-line card (one finding, floor 2.85 s) and a late signature (two findings). oxlint and oxfmt clean, comment citations and ratchet pass.

Fixes #7709

Lines that come on together and stay to the film's end are one closing
card, so detectLineUnread groups final lines whose refined starts are
within one sample and reports the card once, anchored on the line with
the highest floor and listing the rest in elements. A line that arrives
later than the rest keeps its own finding.

Tests: craftAudit.test.ts now covers the seven-line card from the issue
(one finding, floor 2.85 s) and a late signature (two findings).

This branch has not been deployed

No deployments
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.

check: line_unread reports every text chunk of a closing card as "the film's last line"

1 participant