Repository navigation
Conversation
nc9
force-pushed
the
fix/integrity-window-budget-1458
branch
from
November 1, 2026 01:41
0b0dfa7 to
bc89b02
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]>
nc9
force-pushed
the
fix/integrity-window-budget-1458
branch
from
November 1, 2026 03:16
bc89b02 to
c3ba976
Compare
Merged
Contributor
Author
|
Landed in v0.0.154 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.
Closes #1458, closes #1459, closes #1460. Builds on #1455 (merged in v0.0.152). This branch contains #1471's commits (rebased on 9b5d4e9), so the release takes #1471 then #1466 then #1469. Rebased on main v0.0.153; the brand-first ordering is per attribute, the floor is per control.
Changes (
packages/rules/src/integrity)google,microsoft,calendly, ..., derived from the lexicon) are kept before windows that only repeat a sign-in word, so one label padded with repeatedsign intext no longer spends the cap before the Google phrase. The cut is still counted incontrolsUnread.cues.ts(AUTH_LABEL_PHRASES,SIGN_IN_PHRASES,PROVIDER_VERBS,PROVIDER_BRANDS).AUTH_LABEL,SIGN_IN_LABELandPROVIDER_BUTTONare built from it and exported;signals.tsimports them (the local copies are gone) and the window prefilter incontrols.tsderives its auth words from the same lists throughcuePattern().Tests
integrity-evasions-784.test.ts(37): the integrity/brand-impersonation: one attribute full of repeated sign-in text spends the per-attribute window cap before the brand phrase is read #1458 repro on every attribute (7,000 characters ofsign in, padding, the phrase, moresign in), fails when the brand-first ordering is removed; the integrity/brand-impersonation: derive the window prefilter's auth verbs from AUTH_LABEL and PROVIDER_BUTTON #1460 test checks that every phrase the exported lists build passes the prefilter and that a phrase added to the list reachescuePattern.integrity-budget-1424-decoys.test.ts(RuleRunner, the decoy tests test(rules): integrity budget tests run with the rule clock off and in files that fit a lane watchdog #1465 #1471 moved there): 21,000 cue-bearing decoys (8.6 MB) before the real padded control are found (fails with the floor at 0), and before an obfuscated (fullwidth) real control too; the earlier starvation, exhausted-budget and hostile-shape tests pass.docs-rule-pages,tsgo, docsmake validate. One adversarial timing test failed once under load and passed on two reruns and on main.Docs and CHANGELOG updated. Skill change: none.
nik