You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rules: hidden-text and dev-leakage report pass after a scan cut short by a work cap #501
Found while fixing #474. content/hidden-text stops its element walk at 20,000 elements and its stylesheet index at 400,000 characters / 4,000 rules, and content/dev-leakage has similar work caps. Since #474, a fail/warn check from either rule records details.scanTruncated when a cap cut the scan short. But when the truncated scan found nothing, both rules still emit pass ("No hidden text or links detected", "No development, private or preview hosts referenced").
A pass is evaluation evidence. buildResolutionSignal (packages/rules/src/resolution.ts) counts it, so the page drops out of the check's failing set, and the publish merge resolves the page's prior findings. That holds even when the hidden block or dev URL sits past the cap and is still there. The local merge resolves on a pass too.
The case is rare: it needs a page of more than 20,000 elements or more than 4,000 stylesheet rules, with the finding past the cap.
Acceptance Criteria
A content/hidden-text or content/dev-leakage scan cut short by a work cap with no findings does not report pass. It reports a status the resolution signal treats as not evaluated (for example skipped with a distinct skipReason), or a pass the signal does not count
A prior finding on such a page is carried by the publish merge rather than resolved (a runCloudSmartAudits test)
Activity
fix(rules): skip, not pass, when a work cap cut the hidden-text or de…
fix(rules): skip, not pass, when a work cap cut the hidden-text or de…