From 9d7364714d86ca997566e38948aefb9b932c9300 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 13 Sep 2026 14:02:02 +0200 Subject: [PATCH] Remove dead-code survivors from census REC-027/REC-106 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit REC-027: delete scripts/capture-android-screenshot.ps1. EveFlutter's copy (F:/Projects/EveFlutter/scripts/capture-android-screenshot.ps1) matches byte-for-byte (sha256 75abf61227a12f760d277a3995b0170e2aac74d362940ba6cb109053aabe0f24, 3774 bytes) and is the only caller found, invoked by EveFlutter/scripts/capture-android-flutter-parity.ps1:58. Kill-attempt searches (rg -F "capture-android-screenshot.ps1", excluding node_modules/.git/obj/bin) came back empty in Eve, EveConformance, EveTui, EveElectron, EveUnity, and EvePlugins. REC-106 (partial): delete web/fixtures/fensalir-client-surface.json, an unused Fensalir fixture. Kill-attempt searches (rg -F "fensalir-client-surface.json") came back empty in both Eve (re-verifying the census) and Fensalir. Not touched in this pass: the stale GameCult.Eve.Surface.0.3.2.nupkg and the other reproducible ignored/gitignored outputs (artifacts/, bin~/, obj~/, test obj/, node_modules/) — untracked and out of git's purview, reported to the coordinator rather than deleted. Co-Authored-By: Claude Sonnet 5 --- scripts/capture-android-screenshot.ps1 | 102 ---------------------- web/fixtures/fensalir-client-surface.json | 88 ------------------- 2 files changed, 190 deletions(-) delete mode 100644 scripts/capture-android-screenshot.ps1 delete mode 100644 web/fixtures/fensalir-client-surface.json diff --git a/scripts/capture-android-screenshot.ps1 b/scripts/capture-android-screenshot.ps1 deleted file mode 100644 index c77a0f7..0000000 --- a/scripts/capture-android-screenshot.ps1 +++ /dev/null @@ -1,102 +0,0 @@ -param( - [string] $OutputPath = "artifacts\parity\android-periwinkle.png", - [string] $ApkPath = "artifacts\android\eve-debug.apk", - [string] $PackageName = "org.gamecult.eve", - [string] $ActivityName = ".MainActivity", - [int] $LaunchDelaySeconds = 3, - [int] $Width = 0, - [int] $Height = 0, - [ValidateSet("portrait", "landscape", "natural")] - [string] $Orientation = "natural", - [switch] $UseFixture, - [switch] $ForceInstall -) - -$ErrorActionPreference = "Stop" - -$projectRoot = Split-Path -Parent $PSScriptRoot -$absoluteOutput = if ([System.IO.Path]::IsPathRooted($OutputPath)) { $OutputPath } else { Join-Path $projectRoot $OutputPath } -$absoluteApk = if ([System.IO.Path]::IsPathRooted($ApkPath)) { $ApkPath } else { Join-Path $projectRoot $ApkPath } -New-Item -ItemType Directory -Force (Split-Path -Parent $absoluteOutput) | Out-Null - -$devices = adb devices | Select-String -Pattern "device$" -if (-not $devices) { - throw "No adb device is connected for Android parity capture." -} - -if (-not (Test-Path $absoluteApk)) { - throw "Android APK not found: $absoluteApk" -} - -$overrideSize = $Width -gt 0 -and $Height -gt 0 -$overrideRotation = $Orientation -ne "natural" -$previousWindowUserRotation = $null -$previousIgnoreOrientationRequest = $null -try { - if ($overrideRotation) { - $previousWindowUserRotation = (adb shell cmd window user-rotation).Trim() - $previousIgnoreOrientationRequest = (adb shell cmd window get-ignore-orientation-request).Trim() - $rotation = if ($Orientation -eq "landscape") { "1" } else { "0" } - adb shell cmd window set-ignore-orientation-request true | Out-Host - adb shell cmd window user-rotation lock $rotation | Out-Host - } - - if ($overrideSize -or $overrideRotation) { - adb shell am force-stop $PackageName | Out-Host - } - - if ($overrideSize) { - $wmWidth = if ($Orientation -eq "landscape") { $Height } else { $Width } - $wmHeight = if ($Orientation -eq "landscape") { $Width } else { $Height } - adb shell wm size "${wmWidth}x${wmHeight}" | Out-Host - if ($LASTEXITCODE -ne 0) { - throw "adb wm size failed with exit code $LASTEXITCODE" - } - } - - $installed = adb shell pm path $PackageName - if ($ForceInstall -or -not $installed) { - adb install -r $absoluteApk | Out-Host - if ($LASTEXITCODE -ne 0) { - throw "adb install failed with exit code $LASTEXITCODE" - } - } - - $launchArgs = @("shell", "am", "start", "-n", "$PackageName/$ActivityName") - if ($UseFixture) { - $launchArgs += @("--ez", "org.gamecult.eve.PARITY_FIXTURE", "true") - } - adb @launchArgs | Out-Host - if ($LASTEXITCODE -ne 0) { - throw "adb launch failed with exit code $LASTEXITCODE" - } - - Start-Sleep -Seconds $LaunchDelaySeconds - - cmd /c "adb exec-out screencap -p > `"$absoluteOutput`"" - if ($LASTEXITCODE -ne 0) { - throw "adb screencap failed with exit code $LASTEXITCODE" - } -} finally { - if ($overrideSize) { - adb shell wm size reset | Out-Host - } - if ($overrideRotation) { - if ($previousWindowUserRotation -match "^free") { - adb shell cmd window user-rotation free | Out-Host - } elseif ($previousWindowUserRotation -match "^lock\s+(\d+)") { - adb shell cmd window user-rotation lock $Matches[1] | Out-Host - } - if ($previousIgnoreOrientationRequest -match "true") { - adb shell cmd window set-ignore-orientation-request true | Out-Host - } elseif ($previousIgnoreOrientationRequest -match "false") { - adb shell cmd window set-ignore-orientation-request false | Out-Host - } - } -} - -if (-not (Test-Path $absoluteOutput) -or (Get-Item $absoluteOutput).Length -le 0) { - throw "adb screencap did not produce a PNG: $absoluteOutput" -} - -Write-Host $absoluteOutput diff --git a/web/fixtures/fensalir-client-surface.json b/web/fixtures/fensalir-client-surface.json deleted file mode 100644 index 3ef7b85..0000000 --- a/web/fixtures/fensalir-client-surface.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "type": "dashboard-state", - "schema": "mimir.eve_dashboard_state.v1", - "providerId": "fensalir.direct2d", - "title": "Fensalir Direct2D Client Surface", - "version": 1, - "updatedAt": "2026-05-31T03:34:00.000Z", - "selectedNodeId": "surface-contract", - "nodes": [ - { - "id": "surface-contract", - "label": "Eve Surface Contract\nCultMesh -> AquariumUiDocument", - "kind": "state-detail", - "x": -0.62, - "y": -0.18, - "width": 0.34, - "height": 0.34, - "health": "owner", - "detail": "Browser Eve is the reference renderer. Fensalir consumes the same provider-owned surface document and lowers it into AquariumUiDocument. Provider repos own state and command semantics; Fensalir owns DirectWrite/Direct2D rendering, focus, keyboard, pointer dispatch, and overlay timing." - }, - { - "id": "direct2d-overlay", - "label": "DirectWriteOverlay\nD3D11-on-12 Direct2D", - "kind": "renderer", - "x": -0.12, - "y": -0.54, - "width": 0.34, - "height": 0.22, - "health": "ready", - "detail": "Draws Eve panels after the D3D12 scene. Existing Fensalir mechanism: DirectWriteOverlay.Render(frame, debugUi, clientUiPanels, performanceText)." - }, - { - "id": "aquarium-ui", - "label": "AquariumUiDocument\npanels and controls", - "kind": "surface", - "x": 0.36, - "y": -0.48, - "width": 0.34, - "height": 0.22, - "health": "adapter target", - "detail": "First lowering target for shared Eve documents: readouts, buttons, toggles, sliders, options, text boxes, tree items, and detail panes." - }, - { - "id": "field-reservoir", - "label": "Field Reservoir\nengine timing witness", - "kind": "telemetry", - "x": -0.12, - "y": 0.02, - "width": 0.34, - "height": 0.22, - "health": "live", - "detail": "Fensalir remains a field/evidence engine. Eve surface rendering must stay overlay/client UI; it must not become another field-truth path." - }, - { - "id": "program-output", - "label": "Program Output\nshared D3D12 texture", - "kind": "media", - "x": 0.36, - "y": 0.06, - "width": 0.34, - "height": 0.22, - "health": "external surface", - "detail": "The program-output texture is external publication. Eve UI controls it; the resolved HDR scene and shared texture publication stay renderer-owned." - }, - { - "id": "command-sink", - "label": "Command Sink\nEve/CultNet outbound", - "kind": "command", - "x": -0.38, - "y": 0.48, - "width": 0.30, - "height": 0.18, - "health": "pending", - "detail": "The first implementation cut needs a provider command sink so Direct2D control activation sends the same command messages as browser, iOS, and Android." - }, - { - "id": "parity-probe", - "label": "Parity Probe\nbrowser reference fixture", - "kind": "test", - "x": 0.28, - "y": 0.50, - "width": 0.34, - "height": 0.18, - "health": "required", - "detail": "Recorded surface fixtures should render in browser and Fensalir with comparable hierarchy, selection, controls, and detail text before provider-specific polish." - } - ] -}