Repository navigation
fix(bridge): native login guard scan uses the per-step budget - #121
Merged
Merged
Conversation
The read-only guard that scans the whole document before any change had a fixed 1.5 s bound while every later probe already used the per-step budget (3 s default, 5 s max). A scan of a 20,000-element page takes about 1.3 s at normal speed and about 3 s with 2x CPU throttling, so on slow hosts or runners the guard alone could end a run with ui_timeout (main's Validate failed three times this way on 2026-11-19 before #120 gave the scenario the 5 s budget, which the guard did not use). The guard now uses the same budget. Ships with the next version (no version change here). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1bobby-git
force-pushed
the
fix/native-policy-guard-budget
branch
from
November 19, 2026 03:58
38cdea0 to
745e43d
Compare
1bobby-git
pushed a commit
that referenced
this pull request
Nov 19, 2026
Ships #121 (the guard scan uses the per-step budget). Bumps add-on, package, protocol, manifest, runtime and tests to 1.8.77 with CHANGELOG and release notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017YMfNUhiWuLfvJL8w9QQfu
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.
Requested by 바비 · project thread
Why
1.8.76 could not be released at first: main's
Validatefailed three times withui_timeoutin the 20,000-element "large dashboard OFF -> ON" scenario, so Release was skipped and Home Assistant's add-on build got 404 on the release archive. #120 then gave that scenario the 5 s step budget and 1.8.76 was released (installed and running on HA since 2026-11-19 12:58 KST).The scenario's first probe is still the guard scan with a fixed 1.5 s bound, which ignores the step budget. Measured locally: ~1.3 s per scan of the 20,000-element page at normal speed, ~3.0 s at 2x CPU throttling. So the same timeout can return on slow runners or slow hosts (the HA host is an Intel N100).
Change
bridge/src/browser/native-login-policy.ts: the guard scan uses the per-step budget (3 s default, 5 s max) like every later probe. Only the bound changes; no check, decision, or mutation path changes.Not released by itself: no version change. It ships with the next version.
Validation (local, Windows, Edge as Chromium)
npm run typecheckclean, build OK. vitest: 1952 passed, 3 failed, all Windows-only and unrelated (symlink and shell update-helper tests).🤖 Generated with Claude Code