Repository navigation
Interlinear annotation anchors U+FFF9-FFFB count as hidden text (Part of #4108) - #8265
Merged
Merged
Conversation
… of #4108) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 11, 2026
…ne terminator fires (#8274) (#8276) #8265 added U+FFF9-FFFB to the unconditional hidden-text class, contradicting #8257's well-formed-annotation exemption and turning main red. Keep #8257's contract, drop the class entries, and add the lone mid-line terminator alternative it missed. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.
Part of #4108 (slice 27, filler).
What
Probe of the sibling gaps listed in #8207. The Hangul filler (U+3164 / U+FFA0 / U+115F / U+1160) already landed in #8249, so this slice takes the next one: interlinear annotation anchors U+FFF9-FFFB. Probed on the real lens, a run of each scored 0; they render as nothing and have no use in source text. Added to the Invisible Unicode hidden-text class in
security_lens.py.Class / Sibling gaps
Class: invisible or zero-width code points the hidden-text regex must count wherever they sit (comment, string, code). Handled (tested fire in all three shapes): U+200B, U+202E, U+2060-2064, U+2066-2069, U+061C (#8207), Hangul fillers in runs (#8249), U+FFF9-FFFB (this PR). Tested no-fire: U+FFF8, U+FFFC, U+FFFD, accented/CJK text.
Sibling gaps (status missing): Mongolian vowel separator U+180E; Braille blank U+2800; combining grapheme joiner U+034F. Why not here: each has legitimate prose uses (Mongolian, braille, Hebrew/Arabic) so needs a run-length or context rule and its own false-positive probe. Source: #8207 sibling list. Also open: a 1-2 char variation-selector/tag payload is not counted (
unicode_steganography, by design for emoji).Evidence
tests/security_auditing/test_hidden_text_interlinear_4108.py; with the Invisible Unicode: bidi isolates, Arabic letter mark, word joiner and invisible operators count as hidden text (Part of #4108) #8207 test file 54 pass.pr_gates.py --fast: 9/9.--ratchetsand the crucible golden check not run: the change adds three code points to one regex, and Invisible Unicode: bidi isolates, Arabic letter mark, word joiner and invisible operators count as hidden text (Part of #4108) #8207 found no crucible file containing such characters (not re-verified here).Remaining slices: the sibling gaps above, one probe each.
🤖 Generated with Claude Code