npm run test:hdmi-evidence runs the HDMI 1 receiver monitor, receiver
decoder, HDMI 4 switch replay and fresh-session scaler checker. The HDMI 4
collector accepts raw log lines on stdin with --replay. Its
first_retained_request identifies the earliest matched scaler request in
that stream. The separate checker needs a fresh open, accepted ownership
and continuous request coverage to establish the first request of a session.
The synthetic HDMI 4 fixture exercises both. The real stock switch still
has an unidentified requester. Replay fixture · Stock receipt
The offline receiver decoder runs with stock Node.js. It reads one capture of HDMI backend, TVRM and media-server JSONL events from standard input, with optional ordered TVRM slot diagnostics. Its host acceptance tests run in npm test or separately with node --test tests/host/hdmi-receiver-decoder.test.cjs.
The stock HDMI 1 replay tests also run the saved monitor’s AWK selector against synthetic input. On Windows they use the AWK executable bundled with Git for Windows.
npm test includes the bounded monitor acceptance tests. Run them separately with node --test tests/host/stock-hdmi1-monitor.test.cjs. They use an in-memory SSH substitute and a local Bash pipeline with a synthetic producer. On Windows the shell test uses Git Bash.
From the repository root in PowerShell:
npm test
npm run lint
npm run test:controlsThe default suite exercises the current prototype, both browser probes, the silent-clip runner and the HDMI evidence suite with simulated transports. The optional controls cover the retained passive and local-media code.
Reproduce host checks for the completed read-only collectors
Run in a normal Windows user context for the owner-only file and directory ACL checks. The tests use synthetic transports or local loopback. The plan commands validate local pins. The original scopes and receipts are in the collection archive.
node tests/host/hdmi-element-collector.test.cjs
node scripts/collect-hdmi-elements.cjs --plan
node tests/host/hdmi-host-key-check.test.cjs
node scripts/check-hdmi-host-key.cjs --plan
node tests/host/resource-client-collector.test.cjs
node scripts/collect-resource-client.cjs --plan
node tests/host/videooutput-collector.test.cjs
node scripts/collect-videooutput.cjs --plan
node tests/host/val-library-reader.test.cjs
node scripts/collect-val-library.cjs --plan
node tests/host/val-capability-reader.test.cjs
node scripts/collect-val-capability.cjs --planNative acceptance requires CMake/Ninja, json-c and GLib in the existing Ubuntu WSL environment. Use fresh output directories for the entry/trace/witness and adapter/core acceptance projects:
wsl -d Ubuntu --exec cmake -S /mnt/d/Development/webos-multiview/native/phase2-hdmi-candidate-0.1.12 -B /mnt/d/Development/webos-multiview/build/check-prototype -G Ninja -DCMAKE_BUILD_TYPE=Debug
wsl -d Ubuntu --exec cmake --build /mnt/d/Development/webos-multiview/build/check-prototype
wsl -d Ubuntu --exec ctest --test-dir /mnt/d/Development/webos-multiview/build/check-prototype --output-on-failure
wsl -d Ubuntu --exec cmake -S /mnt/d/Development/webos-multiview/native/phase2-hdmi-dispatch -B /mnt/d/Development/webos-multiview/build/check-adapter -G Ninja -DCMAKE_BUILD_TYPE=Debug
wsl -d Ubuntu --exec cmake --build /mnt/d/Development/webos-multiview/build/check-adapter
wsl -d Ubuntu --exec ctest --test-dir /mnt/d/Development/webos-multiview/build/check-adapter --output-on-failureIf json-c headers are not on the host search path, supply -DJSON_C_INCLUDE_DIR=. The current workspace retains its validated header input at build/phase-2/entry-diagnostic-host-0.1.11/include. That is a local dependency, not another installed app. Do not delete all build evidence as a cache cleanup.
The 2026-11-23 consolidation passed npm test, npm run lint and
npm run test:controls. Fresh Release builds with Ninja in Ubuntu WSL
passed all five CTest cases across the repository root and the
native/phase2-hdmi-clip project. The earlier 2026-11-18 review also passed
the six collector suites and their plan commands, the 0.1.12 and dispatch
native checks, the ABI version and report schema tests, and the 0.1.12
package hash checks.
On 2026-11-29, npm test, npm run test:controls and npm run lint
passed on Windows. A fresh repository-root Release build in Ubuntu WSL
passed four CTest cases (ownership lifetime, inventory, progress watch and
veto error). SHA-256 checks matched all seven November 29 scaler receipts
and the retained native 0.1.12/0.1.13, browser preview 0.1.0 and browser
pair 0.1.2/0.1.5 IPKs to the earlier records. The browser pair 0.1.5 digest
is in build/phase-2/c1-tuner-placement-20261123-001/tuner-install.json.
npm run test:hdmi-browser
npm run package:hdmi-preview
npm run package:hdmi-pairThe browser apps use the existing webOS CLI and require no ARM compilation. The default output is dist/. Packaging refuses to overwrite an existing IPK. For a verification rebuild, pass a fresh output directory, for example npm run package:hdmi-preview -- build/preview-rebuild. Each package stages its manifest, HTML, JS, CSS and shared icon.
| App | Package and behavior |
|---|---|
| Single HDMI preview | io.github.tpapaz.multiview.hdmipreview_0.1.0_all.ipk. Explicit opt-in opens HDMI 4 for a bounded observation. TV result |
| Browser pair probe | io.github.tpapaz.multiview.hdmipair_0.1.5_all.ipk. A fresh owner-armed relaunch starts HDMI 4. A separate OK opens the requested tuner preview or HDMI 1. Version 0.1.5 was TV-tested with the tuner and produced a picture handoff. The HDMI 1 evidence is from 0.1.2 and 0.1.3. Tuner trial |
The existing extracted SDK is /home/tasos/.cache/webos-multiview/202608/arm-webos-linux-gnueabi_sdk-buildroot. Use its share/buildroot/toolchainfile.cmake with the current candidate CMake project in a fresh build directory. Retail C1 uses ARM32 soft-float and /lib/ld-linux.so.3. Supply the retained C1 LS2/json-c/rt/pthread libraries used by the existing build rather than inventing or downloading replacement providers. The sources must not bundle those firmware libraries.
The current ELF is already built and direct-ABI checked:118 imports/10 exact saved providers,112,020 bytes. scripts/verify-hdmi-window-abi.py checks a specified local ELF using retained provider inventories. Native/ASan/UBSan acceptance and the one actual lifecycle/physical TV result are recorded with the artifact; build success alone never establishes firmware runtime behavior or dual HDMI. ThreadSanitizer could not start in the tested host environment; no pass is claimed.
Build the registration helper from the repository root with the existing WSL SDK and an existing local output directory.
wsl -d Ubuntu --exec /home/tasos/.cache/webos-multiview/202608/arm-webos-linux-gnueabi_sdk-buildroot/bin/arm-webos-linux-gnueabi-g++ -std=c++14 -Wall -Wextra -Werror -Os native/phase2-media-registration/main.cpp -lplayerAPIs -o build/phase-2/c1-helper-media-registration.elfThe local build produced an 8,368-byte ELF32 ARM executable, SHA-256 cc55a6296d8cb9571f902a430a136657194515d08c2f60af8929b48e454924b8. The helper checks whether the SDK returns a nonempty pre-load media ID. Its eight-second alarm covers player construction, the getter and destruction. Its own output reports only presence or absence. This artifact has no HDMI open, selection or ownership calls. Packaging, target execution and runtime registration are unverified.
The 0.1.13 native probe was built with
the existing ARM32 SDK. Direct ABI verification matched 168 imports across
11 dependencies. The offline packager checked the IPK contents and bound the
installed-file hashes. The 257,874-byte IPK is
dist/io.github.tpapaz.multiview.hdmiwindow_0.1.13_arm.ipk with SHA-256
79f4d189113667a384ffac2ad0cb4825aa353ea05060a228a6698a47ac1f103b.
The build, ABI and package receipts are under build/phase-2/hdmi-clip-0.1.13/.
From the repository root in PowerShell:
$probe = 'build/phase-2/hdmi-clip-0.1.13'
$root = '/mnt/d/Development/webos-multiview'
$sdk = '/home/tasos/.cache/webos-multiview/202608/arm-webos-linux-gnueabi_sdk-buildroot'
wsl -d Ubuntu --exec cmake -S native/phase2-hdmi-clip -B "$probe/host" -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo "-DJSON_C_INCLUDE_DIR=$root/build/phase-2/entry-diagnostic-host-0.1.11/include"
wsl -d Ubuntu --exec cmake --build "$probe/host"
wsl -d Ubuntu --exec ctest --test-dir "$probe/host" --output-on-failure
wsl -d Ubuntu --exec cmake -S native/phase2-hdmi-clip -B "$probe/arm" -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel "-DCMAKE_TOOLCHAIN_FILE=$sdk/share/buildroot/toolchainfile.cmake" "-DLUNA_LIBRARY=$root/build/phase-1/firmware-inspection/native-idle/libluna-service2.so.3" "-DJSON_C_LIBRARY=$root/build/phase-1/firmware-inspection/native-idle/libjson-c.so.4" "-DCLOCK_LIBRARY=$root/build/phase-2/admission-runtime-20261111/librt.so.1" "-DPTHREAD_LIBRARY=$root/build/phase-2/admission-runtime-20261111/libpthread.so.0"
wsl -d Ubuntu --exec cmake --build "$probe/arm"
# Create an ABI receipt only in a fresh output slot.
wsl -d Ubuntu --exec python3 scripts/verify-hdmi-window-abi.py "$probe/arm/multiview-hdmi-clip" $probe --with-clip
wsl -d Ubuntu --exec python3 scripts/package-hdmi-clip.py
node --test tests/host/hdmi-clip-runner.test.cjs
node scripts/run-hdmi-clip.cjs --planThe native test exercises normal overlap, cancellation, worker stalls during startup, feed and unload, and worker termination on parent exit. It also checks that missing exit status leaves cleanup uncertain. The runner test simulates two connections, installed-file checks, a witnessed lifecycle, and rejection of an attempt on a different boot. Version 0.1.13 passed the C1 installation and idle lifecycle check. Mixed playback remains untested. C1 lifecycle result
The core uses the SDK player as the parent. It passes the parent ID only to open and uses the fresh logical session ID for selection and cleanup. A failed stop still leads to one close attempt. The result records both acknowledgments and local teardown separately. A completed observation window provides no owner-association or picture evidence.
Run from PowerShell with the existing WSL environment and a fresh output directory under ignored build/:
$probeBuild = 'build/phase-2/hdmi1-ownership-offline-local'
New-Item -ItemType Directory -Path $probeBuild -ErrorAction Stop | Out-Null
wsl -d Ubuntu --exec cmake -S . -B "$probeBuild/host" -G Ninja -DCMAKE_BUILD_TYPE=Release
wsl -d Ubuntu --exec cmake --build "$probeBuild/host" --target hdmi1-ownership-test
wsl -d Ubuntu --exec ctest --test-dir "$probeBuild/host" -R hdmi1-ownership-lifetime --output-on-failure
wsl -d Ubuntu --exec /home/tasos/.cache/webos-multiview/202608/arm-webos-linux-gnueabi_sdk-buildroot/bin/arm-webos-linux-gnueabi-g++ -std=c++14 -Wall -Wextra -Wpedantic -Werror -Os -fPIC -shared '-Wl,-z,defs' native/phase2-media-registration/ownership.cpp -lplayerAPIs -o "$probeBuild/libhdmi1-ownership.so"2026-11-22, offline. All four root CTest cases passed. The lifetime test compiles the same core against a substitute SDK and port-1 session. It covers the complete sequence, failed registration, unusable IDs, ambiguous open, cancellation, failed selection, interrupted observation and teardown failures. The separate SDK link produced an 8,380-byte ARM32 shared library with SHA-256 566332c59555dfac3ca8e68d15b79a99b2ae58c5cf9ebaaadd0cdbfeb8390201. Its constructor, getter and destructor imports match exports in the saved C1 libplayerAPIs.so.1 (0b0f665415e6). This checks those three symbols only. The device adapter requirements remain open. Packaging and TV execution have not occurred.
IPK: dist/io.github.tpapaz.multiview.hdmiwindow_0.1.12_arm.ipk,51,124 bytes, SHA256 cb7ec17381a23526299545300f5437c3d1fbeb12e45f1466adc05a71ec829e4f. Build/package/ABI records: build/phase-2/physical-candidate-0.1.12/. Actual picture result.
The build record retains its build-time archiveVerified false fact. The separate package-validation.json binds its exact hash, ELF, manifest/version/schema and IPK bytes. Later TV outcomes remain separate immutable captures. Do not rewrite old receipts to make cleanup or a later device result appear to have happened at build time.
The pinned validate-physical-candidate.py and package-physical-candidate.py are as-built one-shot recipes. Their occupied outputs are preserved, and their old preservation inputs include retired controls/IPKs. They are retained as current artifact provenance, not rerunnable commands for the consolidated tree. A future native revision needs a fresh version/output contract. No package is built here.
node scripts/run-physical-candidate.cjs --planThis hashes local sources/package and reports the plan without loading the TV adapter. Live flags are owned by the prototype contract and require explicit owner scope. Retain normal PowerShell foreground execution, prompt owner timer cue and scheduled bounded collection. No dev server, GitHub Actions, automatic commit/push, TV connection or install is part of any offline check.