Skip to content

fix(audit): do not report rows under a persistent bar that scrolling reveals - #4775

Merged
thymikee merged 5 commits into
mainfrom
fix/audit-tab-bar-scroll-rows
Nov 20, 2026
Merged

thymikee merged 5 commits into
mainfrom
fix/audit-tab-bar-scroll-rows

Conversation

@thymikee

@thymikee thymikee commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

agent-device audit reported covered-control for 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: true when the cover is a persistent bar and a scrollable ancestor of the covered node can move it clear:

  • the scroller reports hiddenContentBelow and the clear strip above the bar (bar top minus scroller top) is at least the node's height, or
  • the scroller reports hiddenContentAbove and 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-control only for a covered node with persistentBar and scrollCanReveal. The touch refusal is unchanged: the node keeps interactionBlocked: "covered" and press still refuses target_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

  • Tested SHA: de708b4bb1492333360b9fac8a8b52196b55b928.
  • Fixtures through the real occlusion scan (snapshot-audit-scroll-reveal.test.ts): the Pantry shape and an Android RecyclerView under a BottomNavigationView with no root node publish scrollCanReveal and report nothing; list-at-end, straddling carousel, and short strip keep covered-control. The short-strip fixture fails without the strip check.
  • pnpm check:affected --run: all runnable checks passed (exactCommit=true).
  • Live, iOS simulator 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 carry scrollCanReveal: true and audit --json has no covered-control; Profile "Delete all grocery items" is still reported as covered-control. Details in this comment.
  • Android live: the helper publishes the bottom bar as bare FrameLayout items 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.
  • The earlier Smoke Tests failure matches a main-branch failure of the same assertDiffLine assertion (links in the comment above).

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.43 MB 6.43 MB +1.7 kB
Package (unpacked) 6.43 MB 6.43 MB +1.7 kB
Package (download) 1.95 MB 1.95 MB +525 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 20.6 ms 18.1 ms -2.5 ms
CLI --help 44.3 ms 41.1 ms -3.2 ms

@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 1 new finding on 1e3cbde. The verdict and the full list are in the summary comment.

@thymikee

Copy link
Copy Markdown
Member Author

At 1e3cbde there is one likely defect, one docs mismatch and one missing validation. The Smoke Tests job without a matrix suffix is failing, which points to the Android or Linux replay lane. The diff touches the Android route, because annotateCoveredSnapshotNodes runs on every android-uiautomator capture, so please check that log before calling the failure unrelated. There are no conflicts.

scrollCanRevealTarget decides from frames alone. It checks that a scrollable ancestor exists and that its frame is not wholly inside the bar. It ignores the scroller's remaining content toward the bar (hiddenContentBelow for a bottom bar, hiddenContentAbove for a top bar), and it ignores the scroll axis. Take a full-viewport list scrolled to its end in an app that adds no bottom inset for a floating tab bar. The last row stays under the bar at every offset, yet it gets scrollCanReveal: true. A horizontal carousel that straddles the bar's top edge gets the same flag, although horizontal scrolling cannot move it clear of the bar. In both cases the audit drops covered-control for a control that is truly unreachable. That is the missing-inset defect this finding exists to catch, and the issue acceptance and commands.md:435 promise it is still reported. Agents that read coveredBy.scrollCanReveal from a refusal will also loop on scrolls. The rule: scrollCanReveal holds only when some scroll the scroller can perform moves the node toward the bar-free side. That predicate is the single owner of the rule. Derive the bar's edge from the cover rect, require the matching hidden-content fact on the scroller, and require an axis that can move the node off that edge. Please add one fixture without hiddenContentBelow (list at its end, row under the bar) that keeps the finding, and one with a straddling horizontal scroller. This is code-derived and not reproduced on a device; also confirm that the hidden-content annotation runs before annotateCoveredSnapshotNodes in every producer's pipeline.

The audit help at snapshot.ts:172, commands.md:435 and snapshots.md:172-173 say the exemption covers "a row". isScrollRevealedByCover (snapshot-audit.ts:246) applies to every covered node with a role, including buttons, links and fields, and the #4763 test drops the "Unsave Berry Overnight Oats" button. An agent that reads the help expects a covered button under a tab bar to still be reported, but the audit stays silent and reads as a clean screen. Please say "a control or row" in those three places, since the issue's captured case drops both.

The change alters the coveredBy fact on every snapshot capture, on iOS and on Android bottom navigation, and #4763 requires a live branch-built run on Pantry. The PR body gives the first half as prose, without a transcript, and no run shows an unrevealable control still reported. Please attach an audit --json transcript that reaches two states: (a) Recipes at initial scroll with no covered-control and coveredBy.scrollCanReveal true on @E25, and (b) a covered control that no scroll can reveal still reported, such as the list scrolled to its end with a row under the bar, or a fixed control under the bar. One Android BottomNavigationView screen with a scrolled row under the bar would also help.

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 scrollCanReveal, so the clause can go; and cover?.persistentBar === true at line 259 is redundant because scrollCanReveal is only set when a bar kind is set, so checking scrollCanReveal alone is enough.

Before merge, scrollCanReveal needs direction and axis evidence with a fixture for a list at its end, the help and docs need "a control or row", and the live transcript needs to show an unrevealable covered control still reported.

@thymikee

Copy link
Copy Markdown
Member Author

Addressed the review at 1e3cbde. New head: da366e3.

  1. scrollCanReveal evidence. scrollCanRevealTarget (packages/capture-kit/src/snapshot-occlusion.ts) decided from frames alone. It now derives the bar's edge from the cover rect against the viewport and publishes scrollCanReveal only when a scrollable ancestor of the node reports hidden content toward that edge (hiddenContentBelow for a bottom bar, hiddenContentAbove for a top bar), its scroll axis can move the node off that edge (a horizontal-only scroller cannot clear a bottom bar it straddles), and its frame reaches beyond the bar on the bar-free side. Fixtures added: (a) a vertical list scrolled to its end with a row stuck under the floating tab bar keeps covered-control with no scrollCanReveal; (b) a horizontal carousel straddling the bar (hiddenContentBelow present, so only the axis rejects it) keeps the finding; (c) the Pantry shape with hidden content below still gets scrollCanReveal and drops the finding. (a) and (b) fail at 1e3cbde (scrollCanReveal: true where it must be absent; 2 failed / 54 passed in snapshot-audit.test.ts) and pass after (56/56). Hidden-content annotation runs before the occlusion scan in every producer: iOS engine applyHiddenContentHints (geometry.ts), Android helper can-scroll-* (snapshot-presentation/android/helper.ts) plus the geometry fallback (platform-android/src/snapshot.ts), all before buildSnapshotState -> annotateCoveredSnapshotNodes.

  2. Wording. "a row" is now "a control or row" in the audit help (packages/command-surface/src/capture/snapshot.ts), website/docs/docs/commands.md and website/docs/docs/snapshots.md; the scrollCanReveal meaning clauses now describe the evidence rule instead of the old frame containment.

  3. Live evidence, branch-built CLI on simulator uisdk-proto (iOS 26.2, udid 3832F7F4-5A2D-44E8-987F-9DAA2FE6E4EA), app dev.uisdk.nativeproto, session tabbar, Metro 8081. Raw outputs saved under the checkout .tmp/evidence/ (01-18 + SUMMARY.md).

  • Recipes after scroll down 0.25: scroller {"ref":"e4","type":"ScrollView","rect":{"x":0,"y":0,"width":402,"height":874},"hiddenContentBelow":true}; covered row e27 "Roasted Salmon, 30 minutes" publishes "coveredBy":{"kind":"tab-bar","label":"Tab Bar","rect":{"x":0,"y":791,"width":402,"height":83},"persistentBar":true,"scrollCanReveal":true}; audit --json findings are only small-target, no covered-control. At the initial scroll the audit likewise had no covered-control (no row had reached the bar yet).
  • scroll bottom: scroller reads {"ref":"e4","hiddenContentAbove":true} with no hiddenContentBelow; 0 covered nodes; the last row "Avocado Toast, 10 minutes" ends at y=743, above the bar top 791, so no control remains under the tab bar at the end offset (Pantry insets its list bottom) and there is nothing left to report there.
  • Profile tab: the fixed button e39 "trash, Delete all grocery items" (y=777.7 h=54, center inside the bar) is covered with "coveredBy":{"kind":"tab-bar","label":"Tab Bar","persistentBar":true} and no scrollCanReveal, and audit --json reports {"ref":"@e39","kind":"covered-control","label":"trash, Delete all grocery items"}. An unrevealable covered control is still reported live.
  1. Smoke Tests verdict. The failing job is 135759296350 (run 44580434074, Android lane) at 1e3cbde: assertAutomationSystem expected an added diff line "Open automation lab" and got additions: 0. The same job also fails on main at this PR's base eeff795 (job 135658415553, "wait timed out for text: Automation lab") and passes on later main commits 0ba31d8 and 8d40b08. The assertion reads text snapshot lines; this change only adds/removes a field inside coveredBy, which is never printed in text output and never read by interaction guards, so it cannot cause that failure. Verdict: pre-existing flake in the live Android emulator lane, not caused by this PR. Android BottomNavigationView live evidence is not included here; that is tracked separately in Android: publish Material bottom navigation as a bar so audit and press detect covered controls #4760.

Gate: set -o pipefail && pnpm check:affected --run 2>&1 | tail -4 -> "check:affected: all runnable checks passed." + "[passed] exactCommit=true", receipt resolvedHead da366e3 (format, lint, typecheck, layering, fallow, build, vitest-related, unit, command-docs, docs-links, docs-prose passed; device lanes skipped as CI-owned).

Head: da366e3 on fix/audit-tab-bar-scroll-rows.

@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 1 new finding on da366e3. The verdict and the full list are in the summary comment.

@thymikee

Copy link
Copy Markdown
Member Author

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 barViewportRect(scan.viewportRects) at snapshot-occlusion.ts:244. collectViewportRects matches only Application or Window nodes, and Android emits no root node (snapshot-visibility.ts:121-124). On every android-uiautomator capture the viewport is null, so scrollCanRevealTarget returns false at line 223. Take a RecyclerView row under a BottomNavigationView with canScrollForward set, so hiddenContentBelow is true. That row is still reported as covered-control, and coveredBy.scrollCanReveal is never published. 1e3cbde set it. The Android carousel test hides this because it adds a type:'Window' root (snapshot-audit.test.ts:622) that Android cannot produce. barViewportRect also copies the first two branches of resolveViewportRect and drops the third fallback that Android relies on (snapshot-visibility.ts:152-182). So the bottom navigation exemption listed in commands.md:435 and snapshots.md:166 never applies on Android. That is the #4763 false positive on Android, and agents lose the scrollCanReveal hint on a press refusal. The rule the code must satisfy: the bar's reveal direction comes from facts that every producer emits. Please drop the viewport. For each scrollable ancestor, return true when hiddenContentBelow && scroller.top < cover.top, or hiddenContentAbove && scroller.bottom > cover.bottom. That deletes barViewportRect, the viewportRects scan field and the collectViewportRects import. If you keep a viewport, call resolveViewportRect(nodes, coverRect, scan.viewportRects) instead of the copy. Either way, add an Android fixture with no root node and a RecyclerView with hiddenContentBelow under a BottomNavigationView, and expect scrollCanReveal: true. That fixture fails at this head.

The delta also rewrites the predicate that sets coveredBy on every iOS and Android capture (snapshot-occlusion.ts:215). The #4763 acceptance needs a live branch-built Pantry run, and there is none at da366e3. The new hidden-content requirement means the live iOS tree must carry hiddenContentBelow on the Recipes ScrollView, and no unit test can prove that. Without a run, the fix may silently not apply on device. Please attach an audit --json transcript from da366e3 or later on Pantry, iOS 26.2. It should show (a) Recipes at initial scroll with no covered-control, @e25 with coveredBy.scrollCanReveal true, and snapshot --json showing hiddenContentBelow on the ScrollView. It should also show (b) the same list scrolled to the bottom with a row still under the bar, or a fixed control under the bar, still reported as covered-control with scrollCanReveal absent. After the Android change, please add (c) one Android BottomNavigationView screen with a covered, scroll-revealable row that shows scrollCanReveal true.

Could the predicate be viewport-free and axis-guard-free? For each scrollable ancestor, return true when scroller.hiddenContentBelow && scroller.rect.y < cover.rect.y, or scroller.hiddenContentAbove && scroller.rect.bottom > cover.rect.bottom. That would remove barViewportRect, OcclusionScan.viewportRects, the collectViewportRects import, HORIZONTAL_SCROLL_KIND_FRAGMENTS and barAtBottom, and it would work for every producer, including Android.

Not blocking: HORIZONTAL_SCROLL_KIND_FRAGMENTS (snapshot-occlusion.ts:231) re-derives scroll axis from a kind substring, but the producers that own hidden-content facts already decide it (Android isVerticalScrollableNode in ui-hierarchy-builder.ts:570, iOS y-only hints in geometry.ts:195). The carousel test reaches the guard only through an android.widget.HorizontalScrollView with hiddenContentBelow:true, which the Android producer never emits. You can delete the guard, state once on the RawSnapshotNode hiddenContent* fields that they are vertical by construction, and rebuild the carousel fixture as a horizontal scroller without hidden-content flags. Take or leave this.

The open inline thread on the horizontal scroller (discussion) no longer applies. A horizontal scroller is skipped at line 231 and needs hiddenContentBelow plus a frame reaching above the bar, and both producers emit vertical-only hidden-content facts. You can resolve it.

The Android failure is derived from code: collectViewportRects returns [] on Android, barViewportRect returns null, and the predicate returns false. Whether the live iOS tree after foldIosSnapshot carries hiddenContentBelow on the scroll view still needs the live run below.

CI was still running for da366e3. The diff touches annotateCoveredSnapshotNodes, which runs on every iOS, Android and macOS capture (snapshot-state.ts:112), so a Smoke Tests failure on a lane that asserts audit or coveredBy output would likely relate. The 1e3cbde Smoke Tests failure log the earlier review asked about is still not posted. The branch now conflicts with main.

Before merge, please make the predicate viewport-free, add the Android fixture without a root node, and attach the da366e3 Pantry audit --json transcript showing both outcomes.

@thymikee
thymikee force-pushed the fix/audit-tab-bar-scroll-rows branch from da366e3 to 90efce1 Compare November 19, 2026 20:01
@thymikee

Copy link
Copy Markdown
Member Author

Both review items are addressed. Head is 90efce1fac.

1. scrollCanRevealTarget no longer uses a viewport

The predicate is now viewport-free. For each scrollable ancestor it returns true when:

  • scroller.hiddenContentBelow && scroller.rect.y < cover.rect.y, or
  • scroller.hiddenContentAbove && scroller.rect.y + scroller.rect.height > cover.rect.y + cover.rect.height

The persistent-bar requirement stays. Removed: barViewportRect, the viewportRects field on the occlusion options, and the collectViewportRects import, plus the horizontal kind-substring guard. The horizontal guard is not needed any more because the Android producer (isVerticalScrollableNode in packages/platform-android/src/ui-hierarchy-builder.ts) only publishes hiddenContentAbove/hiddenContentBelow for vertical scrollable nodes, so a HorizontalScrollView can never satisfy the predicate. The kernel docs for SnapshotCoveringNode.scrollCanReveal and RawSnapshotNode.hiddenContentAbove/Below now state this.

This is the bug the review described: resolveViewportRect falls back to the root node's rect, and the Android helper emits no root node, so the viewport was wrong and every covered row under a bottom bar lost its exemption.

2. Android no-root fixture

Added 'drops the covered-control finding for a RecyclerView row under a BottomNavigationView with no root node' in packages/capture-kit/src/snapshot/__tests__/snapshot-audit.test.ts. The tree has no root node at all, a androidx.recyclerview.widget.RecyclerView with hiddenContentBelow: true, and a com.google.android.material.bottomnavigation.BottomNavigationView cover. It asserts scrollCanReveal: true on the covering node and that audit drops the finding. The list-at-end and straddling-carousel fixtures still pass.

One adjustment to disclose: the straddling-carousel fixture keeps its expectation (finding kept, no scrollCanReveal), but I dropped hiddenContentBelow: true from the android.widget.HorizontalScrollView node and rewrote its comment. That flag was not something the Android producer can emit for a horizontal scroller, so the old fixture was asserting against a shape that cannot occur. The carousel is now kept out of the exemption because no ancestor publishes hidden content, which is the real reason.

3. Live device evidence at this head

iOS, simulator 3832F7F4-5A2D-44E8-987F-9DAA2FE6E4EA, Pantry dev build dev.uisdk.nativeproto, CLI built from this branch.

Both outcomes, same session.

Recipes, list scrolled down 100px. The full-screen ScrollView @e4 reports hiddenContentBelow: true, so rows under the tab bar get the exemption and audit has no covered-control findings (4 small-target only):

@e27 "Roasted Salmon, 30 minutes"  rect (32,854 308x20)
  coveredBy { kind: "tab-bar", rect: (0,791 402x83), persistentBar: true, scrollCanReveal: true }
@e28 "Save Roasted Salmon"         rect (348,856 22x18)
  coveredBy { kind: "tab-bar", rect: (0,791 402x83), persistentBar: true, scrollCanReveal: true }
audit --json  findings: small-target x4   checks.snapshot: complete   limitations: []

Profile tab, at the top of the list. Here the rows under the bar are genuinely unreachable until you scroll past them, so there is no scrollCanReveal and the control is still reported:

@e39 "trash, Delete all grocery items"  rect (20,777.67 362x54)
  coveredBy { kind: "tab-bar", rect: (0,791 402x83), persistentBar: true }
audit --json  findings: small-target x3, covered-control @e39   checks.snapshot: complete

Raw outputs: .tmp/evidence/ios-final-recipes-mid-{snapshot,audit}.json, .tmp/evidence/ios-final-profile-top-{snapshot,audit}.json.

Android, AVD Pixel_9_Pro_XL_API_37 (emulator-5556), Agent Device Tester com.callstack.agentdevicelab. The snapshot helper path is confirmed: androidSnapshot.backend: "android-helper", helperVersion: "0.21.42-dev".

I could not reproduce the reviewer's Android shape live, and I did not want to fake it. On the installed apps I checked (Agent Device Tester, Telegram, RN074, RN076, PagerViewExample), the helper publishes the tab bar items as bare android.widget.FrameLayout nodes with no com.google.android.material.bottomnavigation.BottomNavigationView container anywhere in the tree, so there is nothing to act as a persistent-bar cover and no node ends up with coveredBy. The list container is also reported as android.widget.ScrollView, not RecyclerView:

scrollable: [android.widget.ScrollView  rect (54,159 1236x2449)  hiddenContentBelow: true]
bottom bar: android.widget.FrameLayout "Home" (0,2680 269x240), "Catalog" (269,2680 269x240),
            "Form" (538,2680 269x240), "Audio" (807,2680 269x240), "Settings" (1076,2680 268x240)
covered:    []
audit --json  findings: []   checks.snapshot: complete   limitations: []

So the container-class part of this is still #4760. The no-root fixture in item 2 is the coverage we have for the Android shape until the helper publishes that container. Raw outputs: .tmp/evidence/android-lab-home-snapshot.json, .tmp/evidence/android-home-audit.json.

4. The Smoke Tests failure is pre-existing

The failing Smoke Tests job on the previous head, 135759296350, fails in its "Run Android smoke checks" step with:

AssertionError [ERR_ASSERTION]: expected added snapshot line containing Open automation lab: {...}
    at assertDiffLine (test/integration/android-emulator-e2e/live-assertions.ts:72)
    at live-automation-scenario.ts:253

Main fails the same assertion. 125899227591 on d47bc9d3b7 has the identical message and the identical stack (assertDiffLine, live-automation-scenario.ts:253). It is an Android smoke scenario problem, not this change. Logs: .tmp/evidence/job-135759296350.log, .tmp/evidence/main-job-125899227591.log.

Checks

set -o pipefail && pnpm check:affected --run passes on this head (check:affected: all runnable checks passed, exactCommit=true, receipt at .tmp/validation/run-yf1QVS/receipt.json). Typecheck, lint and the layering scan are clean.

@apex-sentinel-staging

This comment has been minimized.

@thymikee

Copy link
Copy Markdown
Member Author

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 annotateCoveredSnapshotNodes. Your live iOS and Android excerpts cover the device routes they reach. The Android bottom-bar route is not reachable live (#4760), so only the unit fixture covers it. The list-at-end row is also covered only by a unit fixture, because Pantry insets its list bottom. No conflicts are known.

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 scrollCanReveal is published. This is derived from code; no live shape that hits it has been seen yet. Would counting a side as clear only when its strip is at least the node's height cover it, with one fixture for a top navigation-bar row at list top? Also, the PR body Summary still describes the earlier rule and its Validation cites live runs at 1e3cbde. Updating both to the head predicate and the head-level live run would keep them accurate.

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 scrollCanReveal true. You can resolve both threads.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 19, 2026
@thymikee

Copy link
Copy Markdown
Member Author

Still ready at de708b4. The change since 90efce1 applies the optional item: scrollCanRevealTarget now counts a side as clear only when its strip between the cover and the scroller edge is at least the target height, so a row under a nav bar at the top of a full-screen list is no longer marked revealable. The scroll-reveal tests moved into their own file. The label stays.

@apex-sentinel-staging

This comment has been minimized.

@thymikee

Copy link
Copy Markdown
Member Author

This now conflicts with main. Please rebase. The code verdict at de708b4 stands, so a clean rebase gets the label back without a new review.

@thymikee thymikee removed the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 20, 2026
thymikee and others added 5 commits November 20, 2026 07:55
…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.
@thymikee
thymikee force-pushed the fix/audit-tab-bar-scroll-rows branch from de708b4 to 0b78610 Compare November 20, 2026 07:20
@thymikee

Copy link
Copy Markdown
Member Author

Rebased onto main (115c83a) at 0b78610.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 0b78610

Since the review of de708b4: 0 new · 0 still open · 1 no longer raised (1 marked fixed)

No open findings.

Reviewed with this repository's own Sentinel configuration (115c83a8e121).

💬 Talking to Sentinel

In a finding's thread, reply with:

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.

@thymikee

Copy link
Copy Markdown
Member Author

Ready again at 0b78610. The rebase onto main is clean. The only patch changes are the audit help text picked up from main and a new fixture commit that marks the scroll-reveal bars clickable, so they stay out of the role-less clickable check that #4780 added. The earlier code verdict stands.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 20, 2026
@thymikee
thymikee merged commit 5b906b7 into main Nov 20, 2026
20 checks passed
@thymikee
thymikee deleted the fix/audit-tab-bar-scroll-rows branch November 20, 2026 10:16
thymikee added a commit to pcbeingused333/agent-device that referenced this pull request Nov 20, 2026
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audit (iOS): rows under the floating tab bar reported as covered-control when scrolling reveals them

1 participant