Repository navigation
Interlinear marks: whole annotation is real text again; lone mid-line terminator fires (#8274) - #8276
Merged
Merged
Conversation
…ne terminator fires (#8274) #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]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
Contributor
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
… keep the added tests Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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.
Fixes #8274 (main red: GitGalaxy Smoke Tests).
What failed
All 3 full-suite parts failed on one test,
test_hidden_text_mongolian_interlinear_4108.py::test_real_text_does_not_fire(whole / empty / two annotations). A real failure, not a flake: #8257 (a well-formed U+FFF9..FFFA..FFFB annotation is real text, lone marks are hidden) and #8265 (every mark fires) merged with contradictory contracts.Fix
security_lens.py: drop the three interlinear marks (U+FFF9 to U+FFFB) from the unconditional class (keeps Hidden text: U+180E outside Mongolian and lone interlinear marks (Part of #4108) #8257's contract, fewer false positives on real annotation text).Class sweep
Class: two rules over the same character range with contradictory contracts. Siblings checked (U+180E, Hangul filler, bidi isolates): no overlap.
Sibling gaps: a stray terminator after a whole annotation on the same line is not flagged (needs a variable-width lookbehind); no burned-estate program needs it.
Lessons for agents
A new rule widening a character class that a sibling rule refines must read that sibling's tests first; run the whole
tests/security_auditingfile family, not just the new test.Cross-repo: none.
Co-Authored-By: Claude Sonnet 5.5 [email protected]
Generated with Claude Code