Repository navigation
Conversation
nc9
force-pushed
the
fix/integrity-logo-alt-cap
branch
from
November 1, 2026 01:47
4ffe7c4 to
6e1d290
Compare
…n four files that fit a lane watchdog #1465 Signed-off-by: Nik Cubrilovic <[email protected]>
…sit budget with the clock off; drop an unused import #1465 Signed-off-by: Nik Cubrilovic <[email protected]>
…r control, no-cue controls served first in the shared half, one auth cue list #1458 #1459 #1460 Signed-off-by: Nik Cubrilovic <[email protected]>
…ide the budgets, with its cost #1459 Signed-off-by: Nik Cubrilovic <[email protected]>
…before the reads #1424 Signed-off-by: Nik Cubrilovic <[email protected]>
…n full; honest memory note #1424 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/integrity-logo-alt-cap
branch
from
November 1, 2026 03:16
6e1d290 to
5bbc7b6
Compare
This was referenced Nov 1, 2026
Merged
Merged
Contributor
Author
|
Landed in v0.0.155 as nik |
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.
Refs #1424. Depends on #1466: rebased on main v0.0.153 and on #1466's reworked branch; it contains its commits, so merge #1466 first and rebase (the diff then shrinks to one commit). Not stacked on the branch, so it is not closed when #1466 merges.
The two follow-ups from the #1455 review:
altof every logo in a control went to the window pass in full. A control keeps the first 4 alts in full, the next ones for their first 300 characters (the old cut), and at most 100 alts in all; past that the control is counted incontrolsUnread. A later alt (5th or beyond) longer than 300 characters also counts the control as not read in full, so the cut is never silent (fixed after review: the first version only counted past 100). A control wrapping 100,000 images (5.1 MB): 361 ms and 67 MB RSS before, 270 ms and 23 MB in my single run; the reviewer measured 100,000 controls at 536 MB peak before and 435 MB after with no clear wall-time gain, so read it as a modest memory saving, not a speed-up.gathered,wanted,served) and the alt map as soon as the budget pass has built the prepared controls, before the reads.Tests (
integrity-evasions-784.test.ts, 38): the phrase in the 3rd alt padded past 300 characters is found; the same padded alt as the 20th logo is read only at its start (not found, no error) while an unpadded phrase in the 20th alt is found; 300 logos in one control reportscontrolsUnread: 1. Integrity suites pass (the 300 x 16 KB U+FDFA runner test sits near the 2 s budget and failed once in a full-file run under load, then passed alone three times; the same test is on main).Docs and CHANGELOG (the #1458-#1460 bullet) updated. Skill change: none.
nik
Known, pre-existing and not changed here:
controlsUnreadcan double count a control whose attribute cut and window cut both fire (paddedAttributesvs the per-attribute cut); to be filed as its own issue.