StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
test(catalog): validate browse pagination journey
David Nashashe92570d21567
diff --git a/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md b/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.mdindex 60dffe48..e80b21e0 100644--- a/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md+++ b/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md@@ -980,14 +980,16 @@ paths, plus reversible quick-filter save/reload/remove persistence. The fullregenerated with its connected assertion passing. Catalog is now structurallyextracted under `:feature:catalog`; its execution report records passingconnected goldens, a public-M3U Home/Live/Movies/Series/Search smoke pass,- and a diagnostic temporary Xtream fixture run covering VOD/series details,- episodes, saved filters, and cross-type Search. The checked-in- `tools/catalog_xtream_fixture.py` now provides a rerunnable development- seed, and `tools/catalog_connected_validation.py` provides a semantic ADB- journey for the fixture-backed Home/Movies/Series/detail/favorite/saved/- Search path plus the Settings-owned Dashboard shelf customization- cancel/save/reset flow; the remaining browse/action/direct-Favorites/- accessibility journeys,+ and a diagnostic temporary Xtream fixture run covering 63-item VOD/series+ catalogs, VOD/series details, episodes, saved filters, and cross-type Search.+ The checked-in `tools/catalog_xtream_fixture.py` now provides a rerunnable+ development seed, and `tools/catalog_connected_validation.py` provides a+ semantic ADB journey for the fixture-backed Home/Movies/Series/detail/+ favorite/saved/Search path, Movies full-library entry/back,+ `Load more (60/63)` → `Pagination Movie 63`, Infinite scroll off/on+ restoration, and the Settings-owned Dashboard shelf customization+ cancel/save/reset flow. Series pagination, browse reorder, download/Cast+ completion, direct-Favorites, and accessibility journeys,successfuldiagnostic Dashboard benchmark rerun after populating a scrollable seededHome shelf, open paired benchmark gate, refreshed release-like profiles, anddiff --git a/docs/COMPOSE_REDUCTION_PHASE5_CATALOG_REPORT.md b/docs/COMPOSE_REDUCTION_PHASE5_CATALOG_REPORT.mdindex 9da068cd..4b519f29 100644--- a/docs/COMPOSE_REDUCTION_PHASE5_CATALOG_REPORT.md+++ b/docs/COMPOSE_REDUCTION_PHASE5_CATALOG_REPORT.md@@ -100,11 +100,13 @@ live channels only; Search accepted `3ABN` and rendered seven Live TV resultsstate.As a follow-up, a temporary local Xtream-compatible fixture was used with the-same debug `MainActivity` on this emulator. It returned one live channel, two-movies, two series, movie metadata, and two episodes per series. The run-rendered Dashboard media shelves, Movies and Series browse cards, movie and-series details, season/episode rows, movie and series favourite toggles, saved-filters, and a five-result cross-type Search query (Live TV 1, Movies 2,+same debug `MainActivity` on this emulator. It returns one live channel, 63+movies, 63 series, movie metadata, and two episodes per series. The first two+items are stable fixture titles; generated pagination-category items make the+second-page boundary deterministic. The run rendered Dashboard media shelves,+Movies and Series browse cards, the Movies full-library entry/back path, movie+and series details, season/episode rows, movie and series favourite toggles,+saved filters, and a five-result cross-type Search query (Live TV 1, Movies 2,Series 2). The semantic route/title/count evidence and the exact fixturelimitations are recorded in`validation/phase5_catalog/task14-xtream-fixture-journeys.md`. The fixture is@@ -113,14 +115,18 @@ now available as the checked-in development toolby `tools/catalog_connected_validation.py`. This remains diagnostic evidence,not a production-provider pass.-The same semantic harness now also opens the Settings-owned Dashboard shelf-customization dialog through TV focus, proves cancel leaves the persisted-seven-shelf order unchanged, saves a six-shelf edit, and resets/saves the-default order again. The rerun and surface list are recorded in-`validation/phase5_catalog/task14-xtream-fixture-journeys.md`. The remaining-browse load-more/reorder/return, download, Cast chooser, direct Favorites-host,-touch/phone/tablet, RTL, reduced-motion/accessibility, and long screenshot/logcat-matrix are still open.+The same semantic harness now also opens Settings Browsing, switches Infinite+scroll off, proves the selected Movies library reaches `Load more (60/63)`,+activates the control to render `Pagination Movie 63`, and restores Infinite+scroll on. It then opens the Settings-owned Dashboard shelf customization+dialog through TV focus, proves cancel leaves the persisted seven-shelf order+unchanged, saves a six-shelf edit, and resets/saves the default order again.+The rerun and surface list are recorded in+`validation/phase5_catalog/task14-xtream-fixture-journeys.md`. Movie+pagination and the Movies browse return path are covered; Series pagination,+browse reorder, download completion, Cast chooser, direct Favorites-host,+touch/phone/tablet, RTL, reduced-motion/accessibility, and the paired+performance matrix remain open.## Build isolation and performancediff --git a/docs/COMPOSE_REDUCTION_PHASE5_ROADMAP.md b/docs/COMPOSE_REDUCTION_PHASE5_ROADMAP.mdindex b92c6794..ce9bb7b3 100644--- a/docs/COMPOSE_REDUCTION_PHASE5_ROADMAP.md+++ b/docs/COMPOSE_REDUCTION_PHASE5_ROADMAP.md@@ -115,14 +115,17 @@ regenerated from the current palette, with its connected assertion passing.Catalog extraction is structurally implemented with passing connected goldenchecks and current-checkout build-isolation samples. The public-M3U seededHome/Live/Movies/Series/Search smoke pass is supplemented by a diagnostic-temporary Xtream fixture run covering VOD/series details, episodes, saved-filters, and cross-type Search; the semantic evidence is recorded in the-Catalog validation directory. The checked-in `tools/catalog_xtream_fixture.py`-now provides a rerunnable development seed, and-`tools/catalog_connected_validation.py` provides a semantic ADB journey for-the fixture-backed Home/Movies/Series/detail/favorite/saved/Search path and-Settings-owned Dashboard shelf customization cancel/save/reset flow. The-remaining browse/action/direct-Favorites/accessibility journeys remain open.+temporary Xtream fixture run covering 63-item VOD/series catalogs, VOD/series+details, episodes, saved filters, and cross-type Search; the semantic evidence+is recorded in the Catalog validation directory. The checked-in+`tools/catalog_xtream_fixture.py` now provides a rerunnable development seed,+and `tools/catalog_connected_validation.py` provides a semantic ADB journey+for the fixture-backed Home/Movies/Series/detail/favorite/saved/Search path,+Movies full-library entry/back, Movies `Load more (60/63)` → `Pagination Movie+63`, Infinite scroll off/on restoration, and Settings-owned Dashboard shelf+customization cancel/save/reset flow. Series pagination, browse reorder,+download/Cast completion, direct-Favorites, and accessibility journeys remain+open.A focused Dashboard macrobenchmark rerun passed 1/1 with five warm iterationsonce public-M3U live-channel activity populated a scrollable Home shelf(`frameCount` min/median/max 88/91/98; `frameOverrunMs` P50/P90/P95/P99diff --git a/docs/DEV_SEEDING.md b/docs/DEV_SEEDING.mdindex fc211302..ea91d3ba 100644--- a/docs/DEV_SEEDING.md+++ b/docs/DEV_SEEDING.md@@ -56,10 +56,12 @@ xtream.dev.password=fixturextream.dev.name=Catalog Fixture```-The fixture serves one live channel, two movies, two series, and deterministic-detail/episode metadata. It is for local diagnostic and acceptance journeys;-stop the process and remove the four entries after testing. The script never-contacts an external provider.+The fixture serves one live channel, 63 movies, 63 series, and deterministic+detail/episode metadata. The first two movie/series entries are stable named+fixtures; generated pagination-category entries make the 60-item page boundary+reproducible. It is for local diagnostic and acceptance journeys; stop the+process and remove the four entries after testing. The script never contacts+an external provider.For the repeatable TV semantic journey, with the fixture-configured debug APKinstalled, run:diff --git a/docs/superpowers/plans/2026-09-02-catalog-feature-extraction.md b/docs/superpowers/plans/2026-09-02-catalog-feature-extraction.mdindex d01c7d5c..2ec2fffe 100644--- a/docs/superpowers/plans/2026-09-02-catalog-feature-extraction.md+++ b/docs/superpowers/plans/2026-09-02-catalog-feature-extraction.md@@ -35,9 +35,11 @@ Search in the production activity; its semantic evidence is in`validation/phase5_catalog/task14-xtream-fixture-journeys.md`. The checked-in`tools/catalog_xtream_fixture.py` now provides a rerunnable development seed,and `tools/catalog_connected_validation.py` provides a semantic ADB journey-for the fixture-backed Home/Movies/Series/detail/favorite/saved/Search path and-the Settings-owned Dashboard shelf customization cancel/save/reset flow. The-remaining browse/action/direct-Favorites/accessibility journeys;+for the fixture-backed Home/Movies/Series/detail/favorite/saved/Search path,+Movies full-library entry/back, the `Load more (60/63)` → `Pagination Movie 63`+second-page transition with Infinite scroll restored on, and the Settings-owned+Dashboard shelf customization cancel/save/reset flow. The remaining Series+pagination, browse reorder, action/direct-Favorites/accessibility journeys;repository-wide app lint remains open.A focused Dashboard macrobenchmark rerun now passes after public-M3Ulive-channel activity populates a scrollable seeded Home shelf, but it is@@ -1184,6 +1186,53 @@ git commit -m 'docs(catalog): report phase 5 feature extraction'If generated profile paths differ, stage only files produced by the verified generator and list their actual paths in `profile-validation.md`.+---++### Task 14: Exercise deterministic Xtream VOD pagination and Settings controls++**Files:**+- Create: `tools/catalog_xtream_fixture.py`+- Create: `tools/catalog_connected_validation.py`+- Create: `validation/phase5_catalog/task14-xtream-fixture-journeys.md`+- Test: `tools/tests/test_catalog_xtream_fixture.py`++**Interfaces:**+- Consumes: the existing debug `xtream.dev.*` provider hooks and production TV+ navigation/activity.+- Produces: a local-only Xtream fixture with one live channel, 63 movies, 63+ series, detail metadata, and two episodes per series; a semantic ADB journey+ that proves the fixture-backed Catalog and Settings paths without seeding+ application state or changing production provider behavior.++- [x] **Step 1: Add deterministic fixture data and contract tests**++ Keep the first two movie/series titles stable for detail and Search checks;+ place generated items in pagination categories and assert the 63-item shape+ in the fixture unit test. The fixture uses an ephemeral port in unit tests+ and port 8765 only for the emulator's `10.0.2.2` host mapping.++- [x] **Step 2: Add the semantic connected journey**++ Prove Home/Movies/Series/detail/favorite/saved/Search, Movies full-library+ entry/back, Settings Infinite scroll off, `Load more (60/63)` activation+ through `Pagination Movie 63`, restoration of Infinite scroll on, and+ Dashboard customization cancel/save/reset. Persist UIAutomator snapshots and+ a JSON report under ignored `build/` output.++- [x] **Step 3: Run the TV journey and record bounded evidence**++ The API 36 AOSP TV run passed 5/5 feature connected tests and the semantic+ journey in `build/catalog-validation-pagination-final-15`. The fixture was+ stopped and its temporary local properties are removed after validation.++- [ ] **Step 4: Finish the remaining Catalog acceptance gates**++ Execute Series selected-library pagination, browse reorder, download+ completion, Cast receiver chooser, direct Favorites-host reorder/save/cancel,+ touch/phone/tablet/RTL/reduced-motion/accessibility variants, and a+ cache-equivalent Dashboard performance comparison. Keep app lint and other+ Phase 5 gates separate from Catalog ownership.+## Exit Criteria- `:feature:catalog` owns Dashboard, Movies, Series, VOD, Favorites, Search, detail presentation, route registration, feature-local components, resources, tests, and goldens.diff --git a/tools/catalog_connected_validation.py b/tools/catalog_connected_validation.pyindex e3512dba..ce366633 100644--- a/tools/catalog_connected_validation.py+++ b/tools/catalog_connected_validation.py@@ -308,12 +308,40 @@ class AdbClient:returnraise CatalogValidationError(f"Could not focus a card containing marker '{marker}'.")+ def focus_and_activate_browse_card(+ self,+ marker: str,+ *,+ timeout: float = DEFAULT_TIMEOUT_SECONDS,+ ) -> None:+ """Focus the first fixture card in a modern browse grid and activate it."""++ compiled = [re.compile(re.escape(marker), re.IGNORECASE)]+ deadline = time.monotonic() + timeout+ # From the shell rail, Down twice enters the browse lens row. Three+ # Left transitions align its x-column with the first fixture card;+ # Down then lands on the first card in the grid (Movie/Series One).+ self.key("KEYCODE_DPAD_DOWN")+ self.key("KEYCODE_DPAD_DOWN")+ for _ in range(3):+ self.key("KEYCODE_DPAD_LEFT")+ self.key("KEYCODE_DPAD_DOWN")+ for _ in range(4):+ if time.monotonic() >= deadline:+ break+ dump = self.snapshot(f"focus_browse_card_{_safe_name(marker)}")+ if _focused_target_matches(dump, compiled):+ self.key("KEYCODE_DPAD_CENTER")+ return+ self.key("KEYCODE_DPAD_RIGHT")+ raise CatalogValidationError(f"Could not focus browse card '{marker}'.")+def focus_and_activate_matching(self,patterns: Sequence[str],*,timeout: float = DEFAULT_TIMEOUT_SECONDS,- max_steps: int = 8,+ max_steps: int = 10,) -> str:"""Activate a currently visible action by walking the focused row."""@@ -334,62 +362,155 @@ class AdbClient:patterns: Sequence[str],*,timeout: float = DEFAULT_TIMEOUT_SECONDS,- max_steps: int = 10,+ max_steps: int = 8,) -> str:- """Walk a scrollable TV dialog to a matching footer/action control."""+ """Walk a TV dialog's focused controls to a matching footer/action."""compiled = [re.compile(pattern, re.IGNORECASE) for pattern in patterns]deadline = time.monotonic() + timeout- # The dialog's body owns vertical focus until its footer row is reached.- # Batch those transitions without a dump after every key; a UIAutomator- # dump/pull is comparatively slow on the TV emulator and can otherwise- # exhaust the journey timeout before the footer receives focus.+ # Dialog body rows can recompose after Remove, leaving focus on an Add+ # control. Batch the vertical transition to the footer, then probe a+ # small horizontal neighborhood (Cancel -> Reset -> Save Order). This+ # keeps the path semantic while avoiding a slow dump after every D-pad+ # event on the TV emulator.+ def probe() -> bool:+ if time.monotonic() >= deadline:+ return False+ dump = self.snapshot("focus_dialog_action")+ if _focused_target_matches(dump, compiled):+ self.key("KEYCODE_DPAD_CENTER")+ return True+ return False++ if probe():+ return "activated"for _ in range(max_steps):self.key("KEYCODE_DPAD_DOWN")for _ in range(3):self.key("KEYCODE_DPAD_LEFT")self.key("KEYCODE_DPAD_DOWN")+ if probe():+ return "activated"+ for _ in range(3):+ self.key("KEYCODE_DPAD_LEFT")+ if probe():+ return "activated"for _ in range(4):- if time.monotonic() >= deadline:- break- dump = self.snapshot("focus_dialog_action")- if _focused_target_matches(dump, compiled):- self.key("KEYCODE_DPAD_CENTER")+ if probe():return "activated"self.key("KEYCODE_DPAD_RIGHT")raise CatalogValidationError("Could not focus a matching dialog action.")- def open_settings_customization(self, *, timeout: float = DEFAULT_TIMEOUT_SECONDS) -> None:- """Open the Settings-owned Dashboard shelf dialog through TV focus."""+ def focus_and_activate_browse_entry(+ self,+ marker: str = "Browse Full Movie Library",+ *,+ timeout: float = DEFAULT_TIMEOUT_SECONDS,+ ) -> None:+ """Open the full-library browse entry through the TV focus path."""++ compiled = [re.compile(re.escape(marker), re.IGNORECASE)]+ deadline = time.monotonic() + timeout+ # The modern browse hero focuses the first lens after one Down; the+ # full-library entry is three Left transitions from that lens.+ self.key("KEYCODE_DPAD_DOWN")+ for _ in range(3):+ if time.monotonic() >= deadline:+ break+ self.key("KEYCODE_DPAD_LEFT")+ dump = self.snapshot("focus_browse_entry")+ if not _focused_target_matches(dump, compiled):+ raise CatalogValidationError(f"Could not focus browse entry '{marker}'.")+ self.key("KEYCODE_DPAD_CENTER")++ def focus_and_activate_load_more(self, *, timeout: float = DEFAULT_TIMEOUT_SECONDS) -> None:+ """Focus and activate the selected-category Load more card."""++ # A swipe leaves focus on the shell rail. The first Down enters the+ # last visible grid row; the remaining transitions reach the footer+ # card after the 60-item page.+ for _ in range(7):+ self.key("KEYCODE_DPAD_DOWN")+ deadline = time.monotonic() + timeout+ while time.monotonic() < deadline:+ dump = self.snapshot("focus_load_more")+ if _focused_target_contains(dump, "Load more"):+ self.key("KEYCODE_DPAD_CENTER")+ return+ self.key("KEYCODE_DPAD_DOWN")+ raise CatalogValidationError("Could not focus the selected-category Load more card.")++ def open_settings_browsing(self, *, timeout: float = DEFAULT_TIMEOUT_SECONDS) -> None:+ """Select the Settings Browsing category and focus its first row."""- # App Settings starts on the Providers category. Move to Browsing,- # select it, then move into the remembered content row for Customize- # Home. This keeps the probe on the production remote path instead of- # relying on coordinate taps that are unreliable in TV touch mode.self.key("KEYCODE_DPAD_DOWN")self.key("KEYCODE_DPAD_DOWN")self.key("KEYCODE_DPAD_CENTER")self.wait_for(- "settings_customization_ready",+ "settings_browsing_ready",required=("Customize Home", "7 shelves"),timeout=timeout,)- time.sleep(0.5)+ time.sleep(0.3)self.key("KEYCODE_DPAD_RIGHT")- time.sleep(0.2)- deadline = time.monotonic() + timeout- while time.monotonic() < deadline:- dump = self.snapshot("focus_customize_home")- if _focused_target_contains(dump, "Customize Home"):- self.key("KEYCODE_DPAD_CENTER")- return++ def set_infinite_scroll(self, enabled: bool, *, timeout: float = DEFAULT_TIMEOUT_SECONDS) -> None:+ """Set the Settings VOD pagination mode through the TV remote path."""++ # Browsing content starts at Live TV Channel Mode. Infinite scroll is+ # the eighteenth row in that list (0-based index 17).+ for _ in range(17):+ self.key("KEYCODE_DPAD_DOWN")+ dump = self.snapshot("focus_infinite_scroll")+ if not _focused_target_contains(dump, "Infinite scroll"):+ raise CatalogValidationError("Could not focus the Settings Infinite scroll row.")+ values = extract_ui_strings(dump)+ current_enabled = "Load the next page as you scroll near the end." in values+ if current_enabled != enabled:+ self.key("KEYCODE_DPAD_CENTER")+ time.sleep(0.4)+ expected = "Load the next page as you scroll near the end." if enabled else "Show a Load more button for the next page."+ self.wait_for("settings_infinite_scroll_updated", required=("Infinite scroll", expected), timeout=timeout)++ def open_settings_customization(self, *, timeout: float = DEFAULT_TIMEOUT_SECONDS) -> None:+ """Open the Settings-owned Dashboard shelf dialog through TV focus."""++ # Re-entering Settings after changing pagination can preserve the+ # Browsing content focus. In that case the two Down events below may+ # activate Customize Home immediately, so recognize the already-open+ # dialog before trying to select the row again.+ initial = self.snapshot("settings_customization_initial")+ if "Customize top navigation" in extract_ui_strings(initial):+ return++ # Select the Browsing category through a semantic UIAutomator target,+ # then normalize focus to the shell before stepping into the exact+ # Customize Home row. This avoids relying on the remembered D-pad+ # position after the pagination journey, where the same key sequence+ # can land on Top navigation instead.+ self.tap_marker("Browsing", timeout=timeout)+ self.wait_for(+ "settings_customization_ready",+ required=("Customize Home", "7 shelves"),+ timeout=timeout,+ )+ for _ in range(40):+ self.key("KEYCODE_DPAD_UP")+ for _ in range(3):self.key("KEYCODE_DPAD_DOWN")- raise CatalogValidationError("Could not focus the Settings Customize Home row.")+ focused = self.snapshot("focus_customize_home")+ if not _focused_target_contains(focused, "Customize Home"):+ raise CatalogValidationError("Could not focus the Settings Customize Home row.")+ self.key("KEYCODE_DPAD_CENTER")def navigate(self, route: str, package: str, activity: str) -> None:if route not in TOP_LEVEL_DESTINATIONS:raise CatalogValidationError(f"Unknown top-level route '{route}'.")if route == "home":+ # Recreate the activity so a deep grid/detail surface cannot retain+ # its remembered destination when the explicit launcher intent is+ # delivered to an existing task.+ self.shell("am", "force-stop", package)self.shell("am", "start", "-W", "-a", "android.intent.action.VIEW", "-n", f"{package}/{activity}")returnfor _ in range(40):@@ -452,7 +573,23 @@ def run_journey(client: AdbClient, package: str, activity: str, timeout: float)required=("streamvault.destination:movies", "Fixture Movie One", "Fixture Movie Two"),timeout=timeout,)- client.focus_and_activate_marker("Fixture Movie One")+ client.focus_and_activate_browse_entry(timeout=timeout)+ client.wait_for(+ "movies_full_library",+ required=("streamvault.destination:movies", "Filters & Sort", "Fixture Movie One", "Fixture Movie Two"),+ timeout=timeout,+ )+ client.key("KEYCODE_BACK")+ client.wait_for(+ "movies_after_full_library",+ required=("streamvault.destination:movies", "Browse Full Movie Library", "Top Rated", "Newest Movies"),+ timeout=timeout,+ )+ # The selected-library grid remembers its last scroll offset across Back;+ # return it to the top before reusing the card-focus probe for Movie One.+ for _ in range(4):+ client.shell("input", "swipe", "960", "250", "960", "900", "500")+ client.focus_and_activate_browse_card("Fixture Movie One", timeout=timeout)client.wait_for("movie_detail", required=("Fixture Movie One", "Play", "Copy URL", "Download", "Cast"), timeout=timeout)_ensure_favorite(client, timeout=timeout)client.key("KEYCODE_BACK")@@ -466,7 +603,7 @@ def run_journey(client: AdbClient, package: str, activity: str, timeout: float)required=("streamvault.destination:series", "Fixture Series One", "Fixture Series Two"),timeout=timeout,)- client.focus_and_activate_marker("Fixture Series One")+ client.focus_and_activate_browse_card("Fixture Series One", timeout=timeout)client.wait_for("series_detail", required=("Fixture Series One", "Season 1"), timeout=timeout)_ensure_favorite(client, timeout=timeout)client.wait_for_any("series_favorite", ("Remove from favourites", "Remove from favorites"), timeout=timeout)@@ -518,6 +655,62 @@ def run_journey(client: AdbClient, package: str, activity: str, timeout: float)required=("streamvault.destination:settings",),timeout=timeout,)+ client.open_settings_browsing(timeout=timeout)+ client.set_infinite_scroll(False, timeout=timeout)+ client.navigate("movies", package, activity)+ client.wait_for(+ "movies_pagination_route",+ required=("streamvault.destination:movies", "Fixture Movie One"),+ timeout=timeout,+ )+ client.focus_and_activate_browse_entry(timeout=timeout)+ client.wait_for(+ "movies_pagination_library",+ required=("Filters & Sort", "Fixture Movie One"),+ timeout=timeout,+ )+ for _ in range(20):+ client.shell("input", "swipe", "960", "900", "960", "250", "500")+ client.wait_for(+ "movies_pagination_ready",+ required=("Load more (60/63)",),+ timeout=timeout,+ )+ client.focus_and_activate_load_more(timeout=timeout)+ for _ in range(4):+ client.shell("input", "swipe", "960", "900", "960", "250", "500")+ client.wait_for(+ "movies_pagination_loaded",+ required=("Pagination Movie 63",),+ forbidden=("Load more (60/63)",),+ timeout=timeout,+ )+ # After appending the second page, focus can remain inside the deep grid+ # and repeated DPAD_UP presses do not reliably reach the shell rail. Reset+ # the top-level surface through the production activity entry point before+ # exercising the Settings route again.+ client.navigate("home", package, activity)+ client.wait_for(+ "home_after_pagination",+ required=("streamvault.destination:home", "Fixture Movie One"),+ timeout=timeout,+ )+ client.navigate("settings", package, activity)+ client.wait_for(+ "settings_route_after_pagination",+ required=("streamvault.destination:settings",),+ timeout=timeout,+ )+ client.open_settings_browsing(timeout=timeout)+ client.set_infinite_scroll(True, timeout=timeout)+ # Re-enter the Settings destination so the customization helper starts+ # from the category rail rather than the Infinite scroll content row.+ client.navigate("settings", package, activity)+ client.wait_for(+ "settings_route_before_customization",+ required=("streamvault.destination:settings",),+ timeout=timeout,+ )client.open_settings_customization(timeout=timeout)client.wait_for("dashboard_customization",@@ -566,6 +759,8 @@ def run_journey(client: AdbClient, package: str, activity: str, timeout: float)return ["home","movies_browse",+ "movies_full_library",+ "movies_after_full_library","movie_detail","movies_saved","series_browse",@@ -573,6 +768,15 @@ def run_journey(client: AdbClient, package: str, activity: str, timeout: float)"search_fixture","search_fixture_content","settings_route",+ "settings_browsing_ready",+ "settings_infinite_scroll_updated",+ "movies_pagination_route",+ "movies_pagination_library",+ "movies_pagination_ready",+ "movies_pagination_loaded",+ "home_after_pagination",+ "settings_route_after_pagination",+ "settings_route_before_customization","settings_customization_ready","dashboard_customization","dashboard_customization_cancelled",diff --git a/tools/catalog_xtream_fixture.py b/tools/catalog_xtream_fixture.pyindex 5007fadb..056bd399 100644--- a/tools/catalog_xtream_fixture.py+++ b/tools/catalog_xtream_fixture.py@@ -26,9 +26,11 @@ LIVE_CATEGORIES = []VOD_CATEGORIES = [{"category_id": "201", "category_name": "Fixture Movies", "parent_id": 0, "is_adult": 0},+ {"category_id": "202", "category_name": "Pagination Movies", "parent_id": 0, "is_adult": 0},]SERIES_CATEGORIES = [{"category_id": "301", "category_name": "Fixture Series", "parent_id": 0, "is_adult": 0},+ {"category_id": "302", "category_name": "Pagination Series", "parent_id": 0, "is_adult": 0},]@@ -56,7 +58,7 @@ def live_streams() -> list[dict[str, object]]:def vod_streams() -> list[dict[str, object]]:- return [+ streams = [{"num": 1,"name": "Fixture Movie One",@@ -90,10 +92,35 @@ def vod_streams() -> list[dict[str, object]]:"is_adult": 0,},]+ # Keep the first two named fixture entries stable for the detail/search+ # journey, then add a second category large enough to cross the Catalog's+ # 60-item selected-category page boundary. The pagination names/category+ # deliberately omit "Fixture" so the five-result search assertion remains+ # focused on the acceptance entries above.+ for index in range(3, 64):+ streams.append(+ {+ "num": index,+ "name": f"Pagination Movie {index:02d}",+ "stream_type": "movie",+ "stream_id": 1000 + index,+ "stream_icon": f"{ASSET_BASE}/movie-two.svg",+ "cover_big": f"{ASSET_BASE}/movie-two.svg",+ "added": str(1704000000 - index),+ "category_id": "202",+ "category_name": "Pagination Movies",+ "container_extension": "mp4",+ "rating": "5.0",+ "rating_5based": "2.5",+ "tmdb": str(9000 + index),+ "is_adult": 0,+ }+ )+ return streamsdef series_streams() -> list[dict[str, object]]:- return [+ streams = [{"series_id": 2001,"name": "Fixture Series One",@@ -131,6 +158,27 @@ def series_streams() -> list[dict[str, object]]:"is_adult": 0,},]+ for index in range(3, 64):+ streams.append(+ {+ "series_id": 2000 + index,+ "name": f"Pagination Series {index:02d}",+ "cover": f"{ASSET_BASE}/series-two.svg",+ "cover_big": f"{ASSET_BASE}/series-two.svg",+ "movie_image": f"{ASSET_BASE}/series-two.svg",+ "plot": "A deterministic series pagination fixture.",+ "description": "A deterministic series pagination fixture.",+ "genre": "Drama",+ "releaseDate": "2023-01-01",+ "rating": "5.0",+ "rating_5based": "2.5",+ "category_id": "302",+ "category_name": "Pagination Series",+ "last_modified": str(1704000000 - index),+ "is_adult": 0,+ }+ )+ return streamsdef movie_info(stream_id: int) -> dict[str, object]:diff --git a/tools/tests/test_catalog_xtream_fixture.py b/tools/tests/test_catalog_xtream_fixture.pyindex 7bdfdbee..c8002fff 100644--- a/tools/tests/test_catalog_xtream_fixture.py+++ b/tools/tests/test_catalog_xtream_fixture.py@@ -19,7 +19,9 @@ class CatalogXtreamFixtureTest(unittest.TestCase):movies = FIXTURE.payload("get_vod_streams", {})series = FIXTURE.payload("get_series_info", {"series_id": ["2001"]})- self.assertEqual([1001, 1002], [item["stream_id"] for item in movies])+ self.assertEqual(63, len(movies))+ self.assertEqual([1001, 1002], [item["stream_id"] for item in movies[:2]])+ self.assertEqual("Pagination Movies", movies[-1]["category_name"])self.assertEqual("Fixture Series One", series["info"]["name"])self.assertEqual(2, len(series["episodes"]["1"]))diff --git a/validation/phase5_catalog/task14-xtream-fixture-journeys.md b/validation/phase5_catalog/task14-xtream-fixture-journeys.mdindex aa820462..f43a9d83 100644--- a/validation/phase5_catalog/task14-xtream-fixture-journeys.md+++ b/validation/phase5_catalog/task14-xtream-fixture-journeys.md@@ -16,10 +16,13 @@ then the settings were removed after the run. Route captures remain ignoredlocal artifacts; the fixture is a development diagnostic, not a production-provider claim.-The fixture returned one live channel, two movies, two series, movie metadata,-and one season with two episodes per series. All observed player-API, XMLTV,-and image requests returned HTTP 200. No credentials or raw provider URLs are-included in this evidence.+The fixture returns one live channel, 63 movies, 63 series, movie metadata,+and one season with two episodes per series. The first two movie/series items+remain stable fixture titles for detail and Search assertions; the remaining+items are generated in pagination categories so the selected-library flow can+prove a second page. All observed player-API, XMLTV, and image requests+returned HTTP 200. No credentials or raw provider URLs are included in this+evidence.## Rerun protocol@@ -48,19 +51,23 @@ focus/input path and does not mutate `local.properties`.The command passed on `emulator-5554` (API 36 AOSP TV, 1920x1080) with`com.streamvault.app.debug`. It proved these surfaces in one run: Home,-Movies browse, movie detail and favourite toggle, the Movies `Saved` filter,-Series browse, series detail with Season 1 and both episodes, and Search with-the five grouped fixture results. The report and UI dumps are local ignored-artifacts under `build/catalog-validation-fixture`; no provider credentials or-raw URLs are checked in.--A follow-up run with the same fixture and emulator also passed the Settings--owned Dashboard shelf customization dialog. It opened the dialog through the-TV focus path, removed a shelf and cancelled without changing the persisted-`7 shelves` setting, saved the removal to `6 shelves`, then reset and saved the-default order back to `7 shelves`. The semantic report is under-`build/catalog-validation-customization-8` and includes the settings route,-dialog, cancel, save, and restore surfaces.+Movies browse and full-library entry/back, movie detail and favourite toggle,+the Movies `Saved` filter, Series browse, series detail with Season 1 and both+episodes, Search with the five grouped fixture results, Settings Browsing, and+the VOD pagination toggle. With Infinite scroll disabled, the selected Movies+library reached `Load more (60/63)`; semantic focus activated it and the next+page rendered through `Pagination Movie 63` with the button gone. Infinite+scroll was restored to enabled before the Dashboard customization checks.+The report and UI dumps are local ignored artifacts under+`build/catalog-validation-pagination-final-15`; no provider credentials or raw+URLs are checked in.++The same run passed the Settings-owned Dashboard shelf customization dialog.+It opened the dialog through semantic Settings targets, removed a shelf and+cancelled without changing the persisted `7 shelves` setting, saved the removal+to `6 shelves`, then reset and saved the default order back to `7 shelves`.+The report includes the settings route, dialog, cancel, save, and restore+surfaces.The fixture test uses an ephemeral loopback port and does not require Android.The production-activity run uses port 8765 because that is the emulator-host@@ -72,6 +79,8 @@ mapping used by `10.0.2.2`.|---|---|| Dashboard | `streamvault.destination:home`; Recently Added Movies and Recently Updated Series each rendered two fixture cards. || Movies browse | `streamvault.destination:movies`; two titles, one category, Top Rated/Newest shelves, and both movie cards rendered. |+| Movies full-library entry/back | Browse hero activated `Browse Full Movie Library`; the selected library rendered `Filters & Sort` and returned to the modern browse surface through Back. |+| Movies pagination | With Infinite scroll off, the selected library rendered `Load more (60/63)` after 20 swipes; activation appended the second page through `Pagination Movie 63` and removed the button. Infinite scroll was then restored on. || Movie detail | `Fixture Movie One` rendered rating, release date, duration, genre, director, cast, plot, Play/Copy URL/Download/Cast/Trailer actions, and favourite toggle. || Movies saved filter | Movies `Saved` filter rendered exactly `Fixture Movie One` after the detail toggle. || Series browse | `streamvault.destination:series`; two titles, one category, and both series cards rendered. |@@ -109,7 +118,8 @@ The run does not close the full Phase 5 acceptance gate. The public M3U flowremains live-only, and the following journeys still need to be executed againstthe checked-in fixture (or approved provider data):-- browse load-more, reorder, return-route, download enqueue, and Cast chooser;+- browse reorder and the Series selected-library load-more path;+- download completion and Cast receiver chooser;- direct Favorites host rendering and reorder/save/cancel;- touch-mode, phone/tablet, RTL, reduced-motion, and accessibility variants;- cache-equivalent before/after Dashboard performance comparison.