docs / project

Supervisor handoff β€” zcode-bee3 β†’ ds41 (2026-11-05)

Operational handoff. Read this before directing the bees; every claim here was verified live on the device during the 11-04 session unless marked otherwise.

Team state

LIVE DEVICE STATE (TV 50A51HUV, 09.01O.P0813, 192.168.0.11)

Reversibility anchors (all verified on the TV)

What Where
Pristine home shell /APPS/channelA/hisenseUI/index.html.alvidaa-bak
Previous launcher design /var/local/alvidaa/launcher/index.dac1122.bak (+ alvidaa-remote.dac1122.bak)
Previous hook /var/local/otaTest.v11.bak (md5 aa6198627…)
Previous bridge binaries /var/local/alvidaa/alvidaa-bridge.bak*
Kill-switch for the whole hook touch /var/local/hook.off + reboot

Recovery recipe (launcher dark, TV reachable)

cp /APPS/channelA/hisenseUI/index.html.alvidaa-bak /APPS/channelA/hisenseUI/index.html β†’ rm -rf /var/local/hisenseUI/cobalt_home/* β†’ ensure bridge running β†’ /var/local/tvtools/busybox sync β†’ reboot -f. The watcher then bounces.

Traps a new supervisor will get wrong

  1. Standby looks like an outage. Deep standby drops the TV off the LAN entirely (no ARP, all ports closed). On 11-05 this caused a false "launcher is dark" alarm β€” power it on and hook v12 self-heals (verified: watcher auto-bounced at wake, 10:08:19). Diagnose reachability FIRST.
  2. Cobalt compiled-JS cache is stale-by-URL. Re-pushing a script under the same filename runs the OLD code. Every script deploy needs rm -rf /var/local/hisenseUI/cobalt_home/* + reboot.
  3. No canvas in the home engine. HTMLCanvasElement does not exist (probe-verified, findings 12 Β§7). Native launcher work is DOM-only.
  4. The shell is shared. hisenseUI/index.html is the only home page; anything injected there runs once per page-load β€” a dying script = dark home + dark apps. Append-only + fail-open, or don't.
  5. One MQTT identity per TV. The bridge and server/vidaa_server.py share the paired client identity β€” never both at once.
  6. console.log does not reach syslog. The stock UI logs via an SDK jsplugins print() path. In-engine diagnostics = per-stage localStorage markers (flushes ~10ms; a wedge loses everything after the last flush β€” storage is SQLite-backed with explicit commit points, findings 12 Β§8).
  7. ps is unreliable β€” a bare ps w lists only getty. Use /proc/<pid> or /var/local/tvtools/busybox ps. pidof also misses the engine sometimes; the engine's comm is UIMainWebModule (plus a FRAME sibling), uid UhisUI:UGhisUI.
  8. The framework caches its app list across installs β€” an INSTALL AS APP re-point takes effect only after a reboot (/APPS/websdk/Appinfo.json is the ground truth on disk).
  9. TV egress is kill-listed β€” the icon pipeline must serve from the local cache (/icon/*), never fetch from the network at runtime.
  10. SSH sessions die mid-command during ~20min post-boot (the pgrep watchdog bug above). Keep remote commands short, use busybox full paths (tail, sed etc. are not on PATH).

In flight / next

2.0 prioritisation

  1. Stabilise the odin lane (icons 5/5, backgrounds, debug page) β€” shipping.
  2. R6: UI-bundle RE β†’ append-only DOM surgery on the stock home (strip ads/sponsored) β†’ native DOM launcher in-engine. The UI-RE doc is the gate.
  3. Lane 1 (unrooted) maintenance continues via inventory/PRs β€” it is the product lane and the root lane must never break it.