StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
chore(phase7): harden boundary verification and live evidence
David Nashashb60c461da1bb
diff --git a/build.gradle.kts b/build.gradle.ktsindex 28987956..fd528cb9 100644--- a/build.gradle.kts+++ b/build.gradle.kts@@ -88,7 +88,7 @@ tasks.register("verifyCoreNavigationBoundary") {tasks.register("verifyFeaturePlaybackBoundary") {group = "verification"- description = "Verifies that :feature:playback remains independent from :app and root navigation controllers."+ description = "Verifies that :feature:playback remains independent from :app, root navigation, and Media3 implementation details."dependsOn(":feature:playback:verifyFeaturePlaybackBoundary")}diff --git a/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md b/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.mdindex a6c1f3ff..b09ca3ec 100644--- a/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md+++ b/docs/COMPOSE_REDUCTION_AND_UI_ARCHITECTURE_PLAN.md@@ -1081,7 +1081,7 @@ Validation recorded for this checkpoint:- `:data:compileDebugKotlin :data:compileDebugUnitTestKotlin`- `:app:assembleDebug`-The provider boundary task currently emits existing Gradle configuration-cache compatibility warnings because its custom verification action accesses project/script objects at execution time. The verification itself passes; making that custom task configuration-cache-safe remains dependency/build cleanup work.+The provider, settings, and playback boundary tasks now use typed task inputs and configuration-time dependency snapshots, so the boundary verification path is configuration-cache compatible. A warm rerun of all three verification tasks reused the configuration cache successfully on 2026-09-06.Phase 7 checkpoint 2 - settings boundary (complete):@@ -1120,7 +1120,7 @@ Automated validation recorded for this checkpoint on 2026-09-06:- `:player:testDebugUnitTest :feature:playback:testDebugUnitTest :feature:live:testDebugUnitTest :app:assembleDebug`- Both commands completed with `BUILD SUCCESSFUL` and zero failed tests.-Live TV device acceptance passed on 2026-09-06 using the `Television_1080p` AOSP TV emulator. Two channels were each captured for 61 screenshots at a two-second cadence; both had 61 unique frame hashes and a healthy `PLAYING` media session with `error=null`. Sanitized evidence is recorded in [`validation/phase7_player_capability/README.md`](../validation/phase7_player_capability/README.md) and [`validation/phase7_player_capability/live-validation.log`](../validation/phase7_player_capability/live-validation.log).+Live TV device acceptance passed on 2026-09-06 using the `Television_1080p` AOSP TV emulator. Two channels were each captured for 61 screenshots with a two-second sleep interval between captures; both had 61 unique frame hashes and a healthy `PLAYING` media session with `error=null`. Fresh startup logs recorded HLS prepare and first-frame success for both channels. Sanitized evidence is recorded in [`validation/phase7_player_capability/README.md`](../validation/phase7_player_capability/README.md) and [`validation/phase7_player_capability/live-validation.log`](../validation/phase7_player_capability/live-validation.log).The remaining final dependency/package cleanup is still outstanding Phase 7 work.diff --git a/feature/playback/build.gradle.kts b/feature/playback/build.gradle.ktsindex aac8443e..d070650f 100644--- a/feature/playback/build.gradle.kts+++ b/feature/playback/build.gradle.kts@@ -1,4 +1,15 @@+import org.gradle.api.DefaultTaskimport org.gradle.api.artifacts.ProjectDependency+import org.gradle.api.file.DirectoryProperty+import org.gradle.api.file.RegularFileProperty+import org.gradle.api.provider.ListProperty+import org.gradle.api.provider.SetProperty+import org.gradle.api.tasks.Input+import org.gradle.api.tasks.InputDirectory+import org.gradle.api.tasks.OutputFile+import org.gradle.api.tasks.PathSensitive+import org.gradle.api.tasks.PathSensitivity+import org.gradle.api.tasks.TaskActionplugins {alias(libs.plugins.android.library)@@ -61,89 +72,65 @@ val forbiddenFeaturePlaybackSourceTokens = listOf("androidx.media3")-fun findForbiddenFeaturePlaybackSourceReferences(sourceRoot: java.io.File): List<String> = sourceRoot- .walkTopDown()- .filter { it.isFile && it.extension in setOf("kt", "java") }- .flatMap { file ->- file.readLines().flatMapIndexed { index, line ->- forbiddenFeaturePlaybackSourceTokens.filter(line::contains).map { token ->- "${file.relativeTo(sourceRoot)}:${index + 1}: $token"- }- }- }- .toList()+abstract class VerifyFeaturePlaybackBoundaryTask : DefaultTask() {+ @get:Input+ abstract val expectedProjectDependencies: SetProperty<String>-val featurePlaybackBoundaryReport = layout.buildDirectory.file(- "reports/feature-playback-boundary/report.txt"-)+ @get:Input+ abstract val actualProjectDependencies: SetProperty<String>-val verifyFeaturePlaybackBoundary = tasks.register("verifyFeaturePlaybackBoundary") {- group = "verification"- description = "Verifies the playback presentation-implementation source and dependency boundary."- outputs.file(featurePlaybackBoundaryReport)- outputs.upToDateWhen { false }- notCompatibleWithConfigurationCache(- "The boundary scan reads resolved Gradle model state at execution time."- )+ @get:Input+ abstract val directMedia3Dependencies: SetProperty<String>- doLast {- val projectDependencyPaths = configurations- .flatMap { configuration ->- configuration.dependencies- .withType<ProjectDependency>()- .filter { dependency -> dependency.path != project.path }- .map { dependency -> dependency.path }- }- .toSet()+ @get:Input+ abstract val forbiddenSourceTokens: ListProperty<String>- check(projectDependencyPaths == allowedProjectDependencies) {- ":feature:playback project dependencies must be exactly " +- "${allowedProjectDependencies.sorted()}; found ${projectDependencyPaths.sorted()}"- }+ @get:Input+ abstract val requiredFixtureViolations: SetProperty<String>- val directMedia3Dependencies = configurations- .flatMap { configuration ->- configuration.dependencies- .filterIsInstance<org.gradle.api.artifacts.ExternalModuleDependency>()- .filter { dependency -> dependency.group == "androidx.media3" }- .map { dependency -> "${dependency.group}:${dependency.name}" }- }- .toSet()+ @get:InputDirectory+ @get:PathSensitive(PathSensitivity.RELATIVE)+ abstract val productionSourceRoot: DirectoryProperty- check(directMedia3Dependencies.isEmpty()) {- ":feature:playback must not declare Media3 directly; found ${directMedia3Dependencies.sorted()}"+ @get:InputDirectory+ @get:PathSensitive(PathSensitivity.RELATIVE)+ abstract val fixtureRoot: DirectoryProperty++ @get:OutputFile+ abstract val reportFile: RegularFileProperty++ @TaskAction+ fun verifyBoundary() {+ val projectDependencyPaths = actualProjectDependencies.get()+ check(projectDependencyPaths == expectedProjectDependencies.get()) {+ ":feature:playback project dependencies must be exactly " ++ "${expectedProjectDependencies.get().sorted()}; found ${projectDependencyPaths.sorted()}"}- val sourceRoot = layout.projectDirectory.asFile.resolve("src/main")- val violations = findForbiddenFeaturePlaybackSourceReferences(sourceRoot)+ val media3Dependencies = directMedia3Dependencies.get()+ check(media3Dependencies.isEmpty()) {+ ":feature:playback must not declare Media3 directly; found ${media3Dependencies.sorted()}"+ }+ val violations = findForbiddenSourceReferences(productionSourceRoot.get().asFile)check(violations.isEmpty()) {- ":feature:playback contains forbidden app or root navigation references:\n" ++ ":feature:playback contains forbidden app, root navigation, or Media3 implementation references:\n" +violations.joinToString("\n")}- val fixtureRoot = layout.projectDirectory.asFile.resolve("src/test/resources/boundary-fixtures")- val fixtureViolations = findForbiddenFeaturePlaybackSourceReferences(fixtureRoot)- val requiredFixtureViolations = setOf(- "AppPackageImport.kt:3: import com.streamvault.app",- "FullyQualifiedAppReference.kt:3: com.streamvault.app",- "MainActivityReference.java:4: MainActivity",- "RootNavigation.kt:3: NavHostController",- "RootNavigation.java:4: NavController",- "Media3EngineImport.kt:3: Media3PlayerEngine",- "Media3FullyQualifiedReference.java:4: androidx.media3"- )- check(fixtureViolations.containsAll(requiredFixtureViolations)) {+ val fixtureViolations = findForbiddenSourceReferences(fixtureRoot.get().asFile)+ val requiredViolations = requiredFixtureViolations.get()+ check(fixtureViolations.containsAll(requiredViolations)) {":feature:playback boundary fixtures are not detected: " +- "${requiredFixtureViolations - fixtureViolations.toSet()}"+ "${requiredViolations - fixtureViolations.toSet()}"}- val reportFile = featurePlaybackBoundaryReport.get().asFile- reportFile.parentFile.mkdirs()- reportFile.writeText(+ val report = reportFile.get().asFile+ report.parentFile.mkdirs()+ report.writeText(listOf("projectDependencies=${projectDependencyPaths.sorted().joinToString(",")}",- "directMedia3Dependencies=${directMedia3Dependencies.sorted().joinToString(",")}",+ "directMedia3Dependencies=${media3Dependencies.sorted().joinToString(",")}","mainSourceViolations=${violations.joinToString("|")}","fixtureViolations=${fixtureViolations.joinToString("|")}").joinToString("\n")@@ -154,6 +141,45 @@ val verifyFeaturePlaybackBoundary = tasks.register("verifyFeaturePlaybackBoundar"no direct Media3 dependencies, no forbidden source references, and Kotlin/Java fixture coverage.")}++ private fun findForbiddenSourceReferences(sourceRoot: java.io.File): List<String> = sourceRoot+ .walkTopDown()+ .filter { it.isFile && it.extension in setOf("kt", "java") }+ .flatMap { file ->+ file.readLines().flatMapIndexed { index, line ->+ forbiddenSourceTokens.get().filter(line::contains).map { token ->+ "${file.relativeTo(sourceRoot)}:${index + 1}: $token"+ }+ }+ }+ .toList()+}++val featurePlaybackBoundaryReport = layout.buildDirectory.file(+ "reports/feature-playback-boundary/report.txt"+)++val verifyFeaturePlaybackBoundary = tasks.register<VerifyFeaturePlaybackBoundaryTask>(+ "verifyFeaturePlaybackBoundary"+) {+ group = "verification"+ description = "Verifies the playback presentation-implementation source and dependency boundary."+ expectedProjectDependencies.set(allowedProjectDependencies)+ forbiddenSourceTokens.set(forbiddenFeaturePlaybackSourceTokens)+ requiredFixtureViolations.set(+ setOf(+ "AppPackageImport.kt:3: import com.streamvault.app",+ "FullyQualifiedAppReference.kt:3: com.streamvault.app",+ "MainActivityReference.java:4: MainActivity",+ "RootNavigation.kt:3: NavHostController",+ "RootNavigation.java:4: NavController",+ "Media3EngineImport.kt:3: Media3PlayerEngine",+ "Media3FullyQualifiedReference.java:4: androidx.media3"+ )+ )+ productionSourceRoot.set(layout.projectDirectory.dir("src/main"))+ fixtureRoot.set(layout.projectDirectory.dir("src/test/resources/boundary-fixtures"))+ reportFile.set(featurePlaybackBoundaryReport)}tasks.named("check") {@@ -207,3 +233,26 @@ dependencies {androidTestImplementation(libs.androidx.test.runner)androidTestImplementation(libs.truth)}++val featurePlaybackProjectDependencies = configurations+ .flatMap { configuration ->+ configuration.dependencies+ .withType<ProjectDependency>()+ .filter { dependency -> dependency.path != project.path }+ .map { dependency -> dependency.path }+ }+ .toSet()++val featurePlaybackDirectMedia3Dependencies = configurations+ .flatMap { configuration ->+ configuration.dependencies+ .filterIsInstance<org.gradle.api.artifacts.ExternalModuleDependency>()+ .filter { dependency -> dependency.group == "androidx.media3" }+ .map { dependency -> "${dependency.group}:${dependency.name}" }+ }+ .toSet()++verifyFeaturePlaybackBoundary.configure {+ actualProjectDependencies.set(featurePlaybackProjectDependencies)+ directMedia3Dependencies.set(featurePlaybackDirectMedia3Dependencies)+}diff --git a/feature/playback/src/test/java/com/streamvault/feature/playback/PlaybackModuleBoundaryTest.kt b/feature/playback/src/test/java/com/streamvault/feature/playback/PlaybackModuleBoundaryTest.ktindex cc057484..dc8148f5 100644--- a/feature/playback/src/test/java/com/streamvault/feature/playback/PlaybackModuleBoundaryTest.kt+++ b/feature/playback/src/test/java/com/streamvault/feature/playback/PlaybackModuleBoundaryTest.kt@@ -24,7 +24,7 @@ class PlaybackModuleBoundaryTest {}@Test- fun `boundary guard rejects Kotlin and Java app and root navigation fixtures`() {+ fun `boundary guard detects app root navigation and Media3 implementation fixtures`() {val fixtureViolations = boundaryReportValue("fixtureViolations")assertThat(fixtureViolations).contains("AppPackageImport.kt:3: import com.streamvault.app")diff --git a/feature/provider/build.gradle.kts b/feature/provider/build.gradle.ktsindex 45d5ad04..f8952f7c 100644--- a/feature/provider/build.gradle.kts+++ b/feature/provider/build.gradle.kts@@ -1,4 +1,15 @@+import org.gradle.api.DefaultTaskimport org.gradle.api.artifacts.ProjectDependency+import org.gradle.api.file.DirectoryProperty+import org.gradle.api.file.RegularFileProperty+import org.gradle.api.provider.ListProperty+import org.gradle.api.provider.SetProperty+import org.gradle.api.tasks.Input+import org.gradle.api.tasks.InputDirectory+import org.gradle.api.tasks.OutputFile+import org.gradle.api.tasks.PathSensitive+import org.gradle.api.tasks.PathSensitivity+import org.gradle.api.tasks.TaskActionplugins {alias(libs.plugins.android.library)@@ -58,71 +69,54 @@ val forbiddenFeatureProviderSourceTokens = listOf("NavController")-fun findForbiddenFeatureProviderSourceReferences(sourceRoot: java.io.File): List<String> = sourceRoot- .walkTopDown()- .filter { it.isFile && it.extension in setOf("kt", "java") }- .flatMap { file ->- file.readLines().flatMapIndexed { index, line ->- forbiddenFeatureProviderSourceTokens.filter(line::contains).map { token ->- "${file.relativeTo(sourceRoot)}:${index + 1}: $token"- }- }- }- .toList()+abstract class VerifyFeatureProviderBoundaryTask : DefaultTask() {+ @get:Input+ abstract val expectedProjectDependencies: SetProperty<String>-val featureProviderBoundaryReport = layout.buildDirectory.file(- "reports/feature-provider-boundary/report.txt"-)+ @get:Input+ abstract val actualProjectDependencies: SetProperty<String>-val verifyFeatureProviderBoundary = tasks.register("verifyFeatureProviderBoundary") {- group = "verification"- description = "Verifies that provider feature source and dependencies remain app-independent."- outputs.file(featureProviderBoundaryReport)- outputs.upToDateWhen { false }- notCompatibleWithConfigurationCache(- "The boundary scan reads resolved Gradle model state at execution time."- )+ @get:Input+ abstract val forbiddenSourceTokens: ListProperty<String>- doLast {- val projectDependencyPaths = configurations- .flatMap { configuration ->- configuration.dependencies- .withType<ProjectDependency>()- .filter { dependency -> dependency.path != project.path }- .map { dependency -> dependency.path }- }- .toSet()+ @get:Input+ abstract val requiredFixtureViolations: SetProperty<String>++ @get:InputDirectory+ @get:PathSensitive(PathSensitivity.RELATIVE)+ abstract val productionSourceRoot: DirectoryProperty- check(projectDependencyPaths == allowedProjectDependencies) {+ @get:InputDirectory+ @get:PathSensitive(PathSensitivity.RELATIVE)+ abstract val fixtureRoot: DirectoryProperty++ @get:OutputFile+ abstract val reportFile: RegularFileProperty++ @TaskAction+ fun verifyBoundary() {+ val projectDependencyPaths = actualProjectDependencies.get()+ check(projectDependencyPaths == expectedProjectDependencies.get()) {":feature:provider project dependencies must be exactly " +- "${allowedProjectDependencies.sorted()}; found ${projectDependencyPaths.sorted()}"+ "${expectedProjectDependencies.get().sorted()}; found ${projectDependencyPaths.sorted()}"}- val sourceRoot = layout.projectDirectory.asFile.resolve("src/main")- val violations = findForbiddenFeatureProviderSourceReferences(sourceRoot)+ val violations = findForbiddenSourceReferences(productionSourceRoot.get().asFile)check(violations.isEmpty()) {":feature:provider contains forbidden app or root navigation references:\n" +violations.joinToString("\n")}- val fixtureRoot = layout.projectDirectory.asFile.resolve("src/test/resources/boundary-fixtures")- val fixtureViolations = findForbiddenFeatureProviderSourceReferences(fixtureRoot)- val requiredFixtureViolations = setOf(- "AppPackageImport.kt:3: import com.streamvault.app",- "DataImport.kt:3: com.streamvault.data",- "FullyQualifiedAppReference.kt:3: com.streamvault.app",- "MainActivityReference.java:4: MainActivity",- "RootNavigation.kt:3: NavHostController",- "RootNavigation.java:4: NavController"- )- check(fixtureViolations.containsAll(requiredFixtureViolations)) {+ val fixtureViolations = findForbiddenSourceReferences(fixtureRoot.get().asFile)+ val requiredViolations = requiredFixtureViolations.get()+ check(fixtureViolations.containsAll(requiredViolations)) {":feature:provider boundary fixtures are not detected: " +- "${requiredFixtureViolations - fixtureViolations.toSet()}"+ "${requiredViolations - fixtureViolations.toSet()}"}- val reportFile = featureProviderBoundaryReport.get().asFile- reportFile.parentFile.mkdirs()- reportFile.writeText(+ val report = reportFile.get().asFile+ report.parentFile.mkdirs()+ report.writeText(listOf("projectDependencies=${projectDependencyPaths.sorted().joinToString(",")}","mainSourceViolations=${violations.joinToString("|")}",@@ -134,6 +128,44 @@ val verifyFeatureProviderBoundary = tasks.register("verifyFeatureProviderBoundar"and Kotlin/Java fixture coverage.")}++ private fun findForbiddenSourceReferences(sourceRoot: java.io.File): List<String> = sourceRoot+ .walkTopDown()+ .filter { it.isFile && it.extension in setOf("kt", "java") }+ .flatMap { file ->+ file.readLines().flatMapIndexed { index, line ->+ forbiddenSourceTokens.get().filter(line::contains).map { token ->+ "${file.relativeTo(sourceRoot)}:${index + 1}: $token"+ }+ }+ }+ .toList()+}++val featureProviderBoundaryReport = layout.buildDirectory.file(+ "reports/feature-provider-boundary/report.txt"+)++val verifyFeatureProviderBoundary = tasks.register<VerifyFeatureProviderBoundaryTask>(+ "verifyFeatureProviderBoundary"+) {+ group = "verification"+ description = "Verifies that provider feature source and dependencies remain app-independent."+ expectedProjectDependencies.set(allowedProjectDependencies)+ forbiddenSourceTokens.set(forbiddenFeatureProviderSourceTokens)+ requiredFixtureViolations.set(+ setOf(+ "AppPackageImport.kt:3: import com.streamvault.app",+ "DataImport.kt:3: com.streamvault.data",+ "FullyQualifiedAppReference.kt:3: com.streamvault.app",+ "MainActivityReference.java:4: MainActivity",+ "RootNavigation.kt:3: NavHostController",+ "RootNavigation.java:4: NavController"+ )+ )+ productionSourceRoot.set(layout.projectDirectory.dir("src/main"))+ fixtureRoot.set(layout.projectDirectory.dir("src/test/resources/boundary-fixtures"))+ reportFile.set(featureProviderBoundaryReport)}tasks.named("check") {@@ -184,3 +216,16 @@ dependencies {androidTestImplementation(libs.androidx.test.runner)androidTestImplementation(libs.truth)}++val featureProviderProjectDependencies = configurations+ .flatMap { configuration ->+ configuration.dependencies+ .withType<ProjectDependency>()+ .filter { dependency -> dependency.path != project.path }+ .map { dependency -> dependency.path }+ }+ .toSet()++verifyFeatureProviderBoundary.configure {+ actualProjectDependencies.set(featureProviderProjectDependencies)+}diff --git a/feature/settings/build.gradle.kts b/feature/settings/build.gradle.ktsindex e175963b..44fe43fa 100644--- a/feature/settings/build.gradle.kts+++ b/feature/settings/build.gradle.kts@@ -1,4 +1,15 @@+import org.gradle.api.DefaultTaskimport org.gradle.api.artifacts.ProjectDependency+import org.gradle.api.file.DirectoryProperty+import org.gradle.api.file.RegularFileProperty+import org.gradle.api.provider.ListProperty+import org.gradle.api.provider.SetProperty+import org.gradle.api.tasks.Input+import org.gradle.api.tasks.InputDirectory+import org.gradle.api.tasks.OutputFile+import org.gradle.api.tasks.PathSensitive+import org.gradle.api.tasks.PathSensitivity+import org.gradle.api.tasks.TaskActionplugins {alias(libs.plugins.android.library)@@ -62,80 +73,54 @@ val forbiddenFeatureSettingsSourceTokens = listOf("NavController",)-fun findForbiddenFeatureSettingsSourceReferences(- sourceRoot: java.io.File,- forbiddenTokens: List<String> = forbiddenFeatureSettingsSourceTokens,-): List<String> = sourceRoot- .walkTopDown()- .filter { it.isFile && it.extension in setOf("kt", "java") }- .flatMap { file ->- file.readLines().flatMapIndexed { index, line ->- forbiddenTokens.filter(line::contains).map { token ->- "${file.relativeTo(sourceRoot)}:${index + 1}: ${token}"- }- }- }- .toList()+abstract class VerifyFeatureSettingsBoundaryTask : DefaultTask() {+ @get:Input+ abstract val expectedProjectDependencies: SetProperty<String>-val featureSettingsBoundaryReport = layout.buildDirectory.file(- "reports/feature-settings-boundary/report.txt"-)+ @get:Input+ abstract val actualProjectDependencies: SetProperty<String>-val verifyFeatureSettingsBoundary = tasks.register("verifyFeatureSettingsBoundary") {- group = "verification"- description = "Verifies that settings feature source and dependencies remain app-independent."- outputs.file(featureSettingsBoundaryReport)- outputs.upToDateWhen { false }- notCompatibleWithConfigurationCache(- "The boundary scan reads resolved Gradle model state at execution time."- )+ @get:Input+ abstract val forbiddenSourceTokens: ListProperty<String>- doLast {- val projectDependencyPaths = configurations- .flatMap { configuration ->- configuration.dependencies- .withType<ProjectDependency>()- .filter { dependency -> dependency.path != project.path }- .map { dependency -> dependency.path }- }- .toSet()+ @get:Input+ abstract val requiredFixtureViolations: SetProperty<String>++ @get:InputDirectory+ @get:PathSensitive(PathSensitivity.RELATIVE)+ abstract val productionSourceRoot: DirectoryProperty++ @get:InputDirectory+ @get:PathSensitive(PathSensitivity.RELATIVE)+ abstract val fixtureRoot: DirectoryProperty++ @get:OutputFile+ abstract val reportFile: RegularFileProperty- check(projectDependencyPaths == allowedProjectDependencies) {+ @TaskAction+ fun verifyBoundary() {+ val projectDependencyPaths = actualProjectDependencies.get()+ check(projectDependencyPaths == expectedProjectDependencies.get()) {":feature:settings project dependencies must be exactly " +- "${allowedProjectDependencies.sorted()}; found ${projectDependencyPaths.sorted()}"+ "${expectedProjectDependencies.get().sorted()}; found ${projectDependencyPaths.sorted()}"}- val sourceRoot = layout.projectDirectory.asFile.resolve("src/main")- val violations = findForbiddenFeatureSettingsSourceReferences(sourceRoot)+ val violations = findForbiddenSourceReferences(productionSourceRoot.get().asFile)check(violations.isEmpty()) {":feature:settings contains forbidden app, feature, or root navigation references:\n" +violations.joinToString("\n")}- val fixtureRoot = layout.projectDirectory.asFile.resolve("src/test/resources/boundary-fixtures")- val fixtureViolations = findForbiddenFeatureSettingsSourceReferences(- fixtureRoot,- )- val requiredFixtureViolations = setOf(- "AppPackageImport.kt:3: import com.streamvault.app",- "FullyQualifiedAppReference.kt:3: com.streamvault.app",- "MainActivityReference.java:4: MainActivity",- "RootNavigation.kt:3: NavHostController",- "RootNavigation.java:4: NavController",- "ProviderFeatureImport.kt:3: import com.streamvault.feature.provider",- "PlaybackFeatureImport.java:3: import com.streamvault.feature.playback",- "DataImport.kt:3: import com.streamvault.data",- "DataImport.kt:3: com.streamvault.data",- "FullyQualifiedDataReference.kt:3: com.streamvault.data",- )- check(fixtureViolations.containsAll(requiredFixtureViolations)) {+ val fixtureViolations = findForbiddenSourceReferences(fixtureRoot.get().asFile)+ val requiredViolations = requiredFixtureViolations.get()+ check(fixtureViolations.containsAll(requiredViolations)) {":feature:settings boundary fixtures are not detected: " +- "${requiredFixtureViolations - fixtureViolations.toSet()}"+ "${requiredViolations - fixtureViolations.toSet()}"}- val reportFile = featureSettingsBoundaryReport.get().asFile- reportFile.parentFile.mkdirs()- reportFile.writeText(+ val report = reportFile.get().asFile+ report.parentFile.mkdirs()+ report.writeText(listOf("projectDependencies=${projectDependencyPaths.sorted().joinToString(",")}","mainSourceViolations=${violations.joinToString("|")}",@@ -148,6 +133,48 @@ val verifyFeatureSettingsBoundary = tasks.register("verifyFeatureSettingsBoundar"and Kotlin/Java fixture coverage.")}++ private fun findForbiddenSourceReferences(sourceRoot: java.io.File): List<String> = sourceRoot+ .walkTopDown()+ .filter { it.isFile && it.extension in setOf("kt", "java") }+ .flatMap { file ->+ file.readLines().flatMapIndexed { index, line ->+ forbiddenSourceTokens.get().filter(line::contains).map { token ->+ "${file.relativeTo(sourceRoot)}:${index + 1}: $token"+ }+ }+ }+ .toList()+}++val featureSettingsBoundaryReport = layout.buildDirectory.file(+ "reports/feature-settings-boundary/report.txt"+)++val verifyFeatureSettingsBoundary = tasks.register<VerifyFeatureSettingsBoundaryTask>(+ "verifyFeatureSettingsBoundary"+) {+ group = "verification"+ description = "Verifies that settings feature source and dependencies remain app-independent."+ expectedProjectDependencies.set(allowedProjectDependencies)+ forbiddenSourceTokens.set(forbiddenFeatureSettingsSourceTokens)+ requiredFixtureViolations.set(+ setOf(+ "AppPackageImport.kt:3: import com.streamvault.app",+ "FullyQualifiedAppReference.kt:3: com.streamvault.app",+ "MainActivityReference.java:4: MainActivity",+ "RootNavigation.kt:3: NavHostController",+ "RootNavigation.java:4: NavController",+ "ProviderFeatureImport.kt:3: import com.streamvault.feature.provider",+ "PlaybackFeatureImport.java:3: import com.streamvault.feature.playback",+ "DataImport.kt:3: import com.streamvault.data",+ "DataImport.kt:3: com.streamvault.data",+ "FullyQualifiedDataReference.kt:3: com.streamvault.data"+ )+ )+ productionSourceRoot.set(layout.projectDirectory.dir("src/main"))+ fixtureRoot.set(layout.projectDirectory.dir("src/test/resources/boundary-fixtures"))+ reportFile.set(featureSettingsBoundaryReport)}tasks.named("check") {@@ -201,3 +228,16 @@ dependencies {androidTestImplementation(libs.androidx.test.runner)androidTestImplementation(libs.truth)}++val featureSettingsProjectDependencies = configurations+ .flatMap { configuration ->+ configuration.dependencies+ .withType<ProjectDependency>()+ .filter { dependency -> dependency.path != project.path }+ .map { dependency -> dependency.path }+ }+ .toSet()++verifyFeatureSettingsBoundary.configure {+ actualProjectDependencies.set(featureSettingsProjectDependencies)+}diff --git a/validation/phase7_player_capability/README.md b/validation/phase7_player_capability/README.mdindex fab96b46..1c422cb7 100644--- a/validation/phase7_player_capability/README.md+++ b/validation/phase7_player_capability/README.md@@ -4,8 +4,8 @@ Validation date: 2026-09-06Build: `app-debug.apk` from commit `d6b5f273`Device: `Television_1080p` AOSP TV emulator, `emulator-5554`Capture method: binary-safe `cmd.exe` redirection from `adb exec-out screencap -p`-Cadence: one screenshot every 2 seconds-Window: 61 screenshots per channel, approximately 2 minutes+Capture loop: 2-second sleep interval between captures+Window: 61 screenshots per channel; measured wall-clock windows were 188 seconds for channel 1 and 201 seconds for channel 2 because each capture also includes ADB overhead.## Channel 1 — 00s Replay@@ -22,7 +22,7 @@ Window: 61 screenshots per channel, approximately 2 minutes- Unique SHA-256 frame hashes: 61.- Media session: `PLAYING(3)`, `error=null`.- Media metadata: `3ABN Dare To Dream Network`.-- Log evidence: the media-session/Now Playing trace remained in state `3` for this channel; no fatal error, stuck-player timeout, or MPEG-TS fallback appeared in the captured log.+- Log evidence: fresh startup produced HLS prepare and first-frame success, followed by a full-playback media session in `PLAYING(3)` with `error=null`; no fatal error, stuck-player timeout, or MPEG-TS fallback appeared in the captured log.- Result: PASS.## Overall resultdiff --git a/validation/phase7_player_capability/live-validation.log b/validation/phase7_player_capability/live-validation.logindex 092e2059..a7391bc3 100644--- a/validation/phase7_player_capability/live-validation.log+++ b/validation/phase7_player_capability/live-validation.log@@ -1,7 +1,8 @@2026-09-06 channel=00s Replay prepare resolvedStreamType=HLS timeoutProfile=LIVE target=<redacted>2026-09-06 channel=00s Replay first-frame-success streamType=HLS audioPath=PLATFORM_DECODER target=<redacted>2026-09-06 channel=00s Replay media-session state=PLAYING error=null metadata=00s Replay-2026-09-06 channel=00s Replay fatal-error=none stuck-player-timeout=none unintended-mpeg-ts-fallback=none+2026-09-06 channel=00s Replay scan fatal-error matches=0 stuck-player-timeout matches=0 unintended-mpeg-ts-fallback matches=0+2026-09-06 channel=3ABN Dare To Dream Network prepare resolvedStreamType=HLS timeoutProfile=LIVE target=<redacted>+2026-09-06 channel=3ABN Dare To Dream Network first-frame-success streamType=HLS audioPath=PLATFORM_DECODER target=<redacted>2026-09-06 channel=3ABN Dare To Dream Network media-session state=PLAYING error=null metadata=3ABN Dare To Dream Network-2026-09-06 channel=3ABN Dare To Dream Network now-playing state=3-2026-09-06 channel=3ABN Dare To Dream Network fatal-error=none stuck-player-timeout=none unintended-mpeg-ts-fallback=none+2026-09-06 channel=3ABN Dare To Dream Network scan fatal-error matches=0 stuck-player-timeout matches=0 unintended-mpeg-ts-fallback matches=0