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
- Goal:
alvidaa repo maintenance, inventory tracking and launcher updates. working towards 2.0. - Roster: ds41 (supervisor, you), zcode-bee3 (this pane; also ran the
11-04 TV lane under the name
super), zcode-bee1, zcode-bee2. agy1/crouton/zcode-bee1-3 originals all cycled out during 11-04 β mentions to them bounce; check the roster before @mentioning. - Open tasks: 2b1f25eb (this handoff), 6e9fbd75 (catalogue correctness pass, claimed), 9d67d051 (root debug/status page, bee1), 9b72249e (R6 UI-bundle RE, bee2), 48f254f6 (2.0 roadmap tracking β unassigned).
LIVE DEVICE STATE (TV 50A51HUV, 09.01O.P0813, 192.168.0.11)
- The launcher is LIVE and owner-approved: dark-glass redesign rendered
by odin (the TV's Chromium browser), reached via watcher bounce
(bridge polls
statetype == remote_launcherat 1s and launches the installed web appvidaa-homeβhttp://127.0.0.1:8770/). - The home shell is PRISTINE.
/APPS/channelA/hisenseUI/index.htmlis stock; nothing may be injected into it (findings 12 Β§7: this Cobalt build has noHTMLCanvasElementβ canvas overlays are impossible, and any injected script that dies darkens home AND every app until reboot). - Bridge:
alvidaa-bridge(Go, static armv7,bridge/), loopback MQTT127.0.0.1:36669, HTTP/WS0.0.0.0:8770(hook flag), assets/var/local/alvidaa/launcher/, config/var/local/alvidaa/config.json(watcher enabled, interval 1s), log/var/local/alvidaa/bridge.log. bee2 deployed the combined binary on 11-05: directory-URL fix (v1.0-48 lineage) + cache-firstserveIcon+ iconcache default moved to<assets>/iconcache+ Spotify icon. Verify 5/5 icons +GET /icon/vidaa-reconβ 200 after their window. - Hook:
otaTest.shv12 on the TV (early bridge start ~15s into boot, before the LAN wait; late start pidof-guarded). Captured into the repo by bee1 (bf53bd3;launcher/hookinstall.htmlembeds HOOK_V12). Known v13 candidates: the watchdogpgrepbug (line ~54: pgrep missing βkill -9 $(pidof dropbear)runs every 30s for 20min post-boot, murdering SSH sessions mid-command), and the tvtools fetch hardcoding 192.168.0.85.
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
- 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.
- 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. - No canvas in the home engine.
HTMLCanvasElementdoes not exist (probe-verified, findings 12 Β§7). Native launcher work is DOM-only. - The shell is shared.
hisenseUI/index.htmlis 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. - One MQTT identity per TV. The bridge and
server/vidaa_server.pyshare the paired client identity β never both at once. console.logdoes not reach syslog. The stock UI logs via an SDKjsplugins 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).psis unreliable β a bareps wlists only getty. Use/proc/<pid>or/var/local/tvtools/busybox ps.pidofalso misses the engine sometimes; the engine's comm isUIMainWebModule(plus aFRAMEsibling), uidUhisUI:UGhisUI.- The framework caches its app list across installs β an
INSTALL AS APPre-point takes effect only after a reboot (/APPS/websdk/Appinfo.jsonis the ground truth on disk). - TV egress is kill-listed β the icon pipeline must serve from the
local cache (
/icon/*), never fetch from the network at runtime. - SSH sessions die mid-command during ~20min post-boot (the pgrep
watchdog bug above). Keep remote commands short, use busybox full paths
(
tail,sedetc. are not on PATH).
In flight / next
- bee1: root debug/status page (9d67d051) β
/debug.html+/api/debug+ launcher tile; surfaces bridge/watcher/kill-list state so outages stop being guesswork. Also: polish pass landed (diagnostics behind?debug, three bg wallpapers viatools/make_bg.py). - bee2: R6 groundwork (9b72249e) β static RE of the six UI bundles toward a native DOM launcher inside the home engine (no odin, no watcher, no flash β the stock home proves Cobalt renders DOM fine). This is the 2.0 strategic line; findings 12 Β§7/Β§8 are required context.
- bee3 (me): catalogue correctness pass (6e9fbd75) after this doc.
- Issue #10 (09.60A.Q0707): your tokens.json/rc=135 analysis matches what the TV lane knows β the per-app write gate closing that lane is the fourth such unit. No contradiction.
- Watch item: the bridge restarted by itself overnight (pid 3085β25645, cause unknown, recovered cleanly) β the debug page's "last restart" field exists to make this visible.
2.0 prioritisation
- Stabilise the odin lane (icons 5/5, backgrounds, debug page) β shipping.
- 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.
- Lane 1 (unrooted) maintenance continues via inventory/PRs β it is the product lane and the root lane must never break it.