Repository navigation
fix(audit): do not report rows under a persistent bar that scrolling reveals - #4775
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 1e3cbde. The verdict and the full list are in the summary comment.
|
At 1e3cbde there is one likely defect, one docs mismatch and one missing validation. The
The audit help at The change alters the Not blocking, take or leave: the comment at snapshot-audit.ts:254 says the touch refusal "keeps its own scroll hint", but the persistent-bar hint never suggests scrolling and does not read Before merge, |
|
Addressed the review at 1e3cbde. New head: da366e3.
Gate: Head: da366e3 on fix/audit-tab-bar-scroll-rows. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on da366e3. The verdict and the full list are in the summary comment.
|
Thanks for the update. Compared with the earlier review. Android still reports rows that scrolling reveals, and there is no live run at this commit yet. The delta measures the bar edge against The delta also rewrites the predicate that sets Could the predicate be viewport-free and axis-guard-free? For each scrollable ancestor, return true when Not blocking: The open inline thread on the horizontal scroller (discussion) no longer applies. A horizontal scroller is skipped at line 231 and needs The Android failure is derived from code: CI was still running for da366e3. The diff touches Before merge, please make the predicate viewport-free, add the Android fixture without a root node, and attach the da366e3 Pantry |
da366e3 to
90efce1
Compare
|
Both review items are addressed. Head is 1.
|
This comment has been minimized.
This comment has been minimized.
|
This PR is ready at 90efce1. The hidden-content edge predicate fixes the problems from the earlier review. All 20 checks pass at this commit, including every capture route that runs Not blocking, and you can take or leave these: the predicate pairs each hidden-content flag with a frame edge. It does not check that the clear strip on that side can hold the node. For example, a transparent RN header sits over a full-screen ScrollView at y=0, with a navigation bar at y=62 and a row at list top. Scrolling down would move that row into the 62pt strip and then off screen, yet Of the earlier inline threads, the horizontal scroller axis one is fixed at head, because producers emit hiddenContent* only for vertical scrollers. The barViewportRect thread no longer applies: the function was deleted, and the no-root Android fixture pins |
|
Still ready at de708b4. The change since 90efce1 applies the optional item: |
This comment has been minimized.
This comment has been minimized.
|
This now conflicts with |
…reveals The occlusion scan marked rows partly under the iOS 26 floating tab bar as covered, and the audit reported them as covered-control even though scrolling down reveals them. The scan now publishes scrollCanReveal on the cover when the cover is a persistent bar and the covered node's scrollable ancestor is not wholly inside the bar, so a scroll has clear viewport to reveal the node. The audit drops the covered-control finding for such rows; the touch refusal still stands at the current scroll position. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
… a viewport scrollCanRevealTarget measured the bar's edge against barViewportRect, which copies two of resolveViewportRect's three branches, and read the viewport from collectViewportRects. That scan matches only Application or Window nodes and Android emits no root node, so on every android-uiautomator capture the viewport was null, the predicate returned false, and a RecyclerView row with hiddenContentBelow under a BottomNavigationView stayed a covered-control finding with no scrollCanReveal hint on a press refusal. The predicate is now viewport-free and axis-guard-free: for each scrollable ancestor it returns true when the ancestor reports hiddenContentBelow with its frame reaching above the bar, or hiddenContentAbove with its frame reaching below the bar. Both producers own the vertical axis when they publish those flags, so the horizontal kind-substring guard is gone and the kernel documents the fields as vertical by construction. barViewportRect, the OcclusionScan viewportRects field and the collectViewportRects import are deleted. The persistent-bar requirement stays. An Android fixture with no root node pins the row under a BottomNavigationView at scrollCanReveal true, and the carousel fixture now carries no hidden-content flags, which is what the Android producer emits for a HorizontalScrollView.
… in scroll-reveal fixtures
de708b4 to
0b78610
Compare
|
Rebased onto main (115c83a) at 0b78610.
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
* origin/main: (70 commits) refactor(apple-runner): one RUNNER_ERROR_CODES row per runner error code with parity/docs gates (callstack#4774) fix(android): require acknowledgements for test IME typing (callstack#4722) feat(scroll): add scroll refresh for pull-to-refresh (callstack#4770) refactor(host-kit): add request Scope and use it for the wait capture deadline (callstack#4794) fix(android): let permission all change nothing on an app that declares no permissions (callstack#4796) fix(cli): replace the CLI session and generated remote config instead of rewriting them in place (callstack#4797) fix(host-kit): accept a group-writable script directory the user owns (callstack#4799) fix(cli): escape control characters at the CLI's stdout and stderr writes (callstack#4778) fix(audit): do not report rows under a persistent bar that scrolling reveals (callstack#4775) fix(daemon): refuse an unsafe state directory before first use (callstack#4783) refactor: settle remaining single-deadline races through settleWithin (callstack#4788) refactor(host-kit): settle deadline races via settleWithin with R87 race ratchet (callstack#4766) fix(android): authenticate and bound persistent snapshot helper sessions (callstack#4729) fix(daemon): bound upload ingress and finalization (callstack#4721) chore(gates): ratchet wire-published reason literals by value (R89) (callstack#4779) feat(audit): evaluate role-less clickable views on Android (callstack#4780) fix(mutation): keep umask-setting tests out of Stryker's thread pool (callstack#4785) feat(audit): report controls that share one accessible name (callstack#4771) fix(contracts): pair open runtime hints with their apply operation (callstack#4754) refactor(daemon): report startup progress over the launch channel instead of marker files (callstack#4777) ...
Summary
agent-device auditreportedcovered-controlfor a list row partly under a persistent bar (the iOS 26 floating tab bar on the Pantry demo) even though a scroll reveals it. Closes #4763.The occlusion scan now publishes
coveredBy.scrollCanReveal: truewhen the cover is a persistent bar and a scrollable ancestor of the covered node can move it clear:hiddenContentBelowand the clear strip above the bar (bar top minus scroller top) is at least the node's height, orhiddenContentAboveand the clear strip below the bar is at least the node's height.The rule reads no viewport or root node, so it works on Android captures, which have none. The audit drops
covered-controlonly for a covered node withpersistentBarandscrollCanReveal. The touch refusal is unchanged: the node keepsinteractionBlocked: "covered"andpressstill refusestarget_covered. A fixed control, a list scrolled to its end, a horizontal carousel straddling the bar, and a strip too short for the node keep the finding.Validation
de708b4bb1492333360b9fac8a8b52196b55b928.snapshot-audit-scroll-reveal.test.ts): the Pantry shape and an Android RecyclerView under a BottomNavigationView with no root node publishscrollCanRevealand report nothing; list-at-end, straddling carousel, and short strip keepcovered-control. The short-strip fixture fails without the strip check.pnpm check:affected --run: all runnable checks passed (exactCommit=true).uisdk-proto(iOS 26.2), Pantry dev build, branch-built CLI at 90efce1 (the strip check after it only narrows the rule): Recipes mid-scroll rows carryscrollCanReveal: trueandaudit --jsonhas no covered-control; Profile "Delete all grocery items" is still reported ascovered-control. Details in this comment.FrameLayoutitems with no BottomNavigationView container, so the Android shape is covered by the fixture only. Android: publish Material bottom navigation as a bar so audit and press detect covered controls #4760 tracks publishing the bar.assertDiffLineassertion (links in the comment above).