Core Architecture & Invariant CI / validate (push) Failing after 0s
- README.md: add step-by-step Getting Started guide (TV prerequisites, host setup, .env/token, pairing, server run, MCP client connection) so new users have a linear onboarding path; add CAPTURE_MAX_WIDTH/CAPTURE_JPEG_QUALITY, pillow, M2.1 status, and docs/experiments/ link. - ARCHITECTURE.md: add pillow to runtime dependencies and document CaptureClient host-side JPEG downscaling, KeyImportError mapping, and server.py config wiring so architecture reflects main. - ROADMAP.md: add M2.1 active items (#21-#23) to Near Term and record #20 (PR #24) plus Crunchyroll E2E benchmarks under Completed. - docs/designs/lg-smtv-mcp.md: reconcile config.py and capture.py rows in Package & Module Layout for #20 capture downscaling and KeyImportError handling.
4.1 KiB
4.1 KiB
Roadmap
Current Direction
lg-smtv-mcp has completed Milestone M2 (capture, E2E hardening, and systemd deployment packaging) and #17 (systemd sandboxing hardening). Active work is Milestone M2.1: Live-TV Polish & Latency Optimizations (1/4 complete), focused on reducing screenshot payload size/round-trips, fixing immediate turn_off() standby transitions, and unblocking systemd-analyze checks in the Nix sandbox.
Near Term
- #21 (
M2.1):fix(manager): transition to STANDBY_OFFLINE immediately on turn_off()so immediatetv_wake()calls do not returnalready_connectedbefore the TV drops1008. - #22 (
M2.1):fix(test): unblock systemd-analyze tests inside Nix build sandbox(investigate--root=<tmp_path>or narrow sandbox-only skip while keepingnix developenforcement strict). - #23 (
M2.1):feat(capture): add optional wait_for_change settle retry on keys/type_text capture(500ms bounded retry within the shared 6.0s capture budget whenchanged_since_last=false).
Completed
M2.1: Live-TV Polish & Latency Optimizations (In Progress — Completed Items)
- #20 (PR #24, Completed 2026-11-19): Added optional
CAPTURE_MAX_WIDTH(64..3840) andCAPTURE_JPEG_QUALITY(1..95) settings inconfig.py, addedpillowruntime dependency, and implemented host-side JPEG downscaling/recompression incapture.py(reducing median live-TV capture size by 69.1% and disk-only offloads from 60% to 7%). - Live-TV E2E Benchmarks (
0d67615,84ae8b2,128752b): Executed standardized Crunchyroll E2E navigation benchmarks against65UR8750PSA(WebOS/4.1.0) and recorded baseline vs. post-#20telemetry indocs/experiments/.
Post-M2 Hardening (Completed 2026-11-18)
- #17 (PR #18): Hardened
deploy/lg-smtv-mcp.servicewith bounded restart throttling (StartLimitIntervalSec=60s,StartLimitBurst=5) and a 14-directive sandboxing baseline (9.0 UNSAFE→4.9 OK), added automatedsystemd-analyzetests intests/test_deploy.py, documented adopted/rejected directives inREADME.md, and fixedasyncsshSFTP capture reads (sftp.open()) insrc/lg_smtv_mcp/tv_core/capture.py.
M2: Capture, E2E Hardening & Systemd Deployment (Completed 2026-11-17)
- #11 (PR #14): E2E harness hardening in
tests/test_e2e_mvp.py— fast-fail ASGI lifespan startup,elapsed_mscontract check, and post-turn_off()1008->get_statestale parity. - #12 (PR #15):
tv_core/capture.py(CaptureClient+AsyncSshCaptureTransport), defaultserver.pywiring, and offline capture contract tests; review remediation CR-01..CR-11 landed in61d2315. - #13 (PR #16):
deploy/lg-smtv-mcp.servicesystemd template, deployment + Developer Mode SSH setup docs inREADME.md, and DNS-rebinding / PATH env guidance.
M1: MVP Core & End-to-End Verification (Completed 2026-11-16)
- #1 (PR #6): Nix flake packaging,
pyproject.toml, Pydantic v2TvConfig, andConfigError/TvErrortaxonomy. - #2 (PR #7):
tv_core(SsapClientmultiplexer,PointerClient,TvManagerstate machine,FrameCapturerseam). - #3 (PR #9):
MCPServertools,BearerAuthMiddleware+TransportSecuritySettings, ASGIlifespan, andpair/serveCLI. - #4 (PR #10): Full-stack offline MVP E2E test (
tests/test_e2e_mvp.py) and live-TV operator smoke checklist (README.md).