Skip to content

Add configurable Home-only profile for 2023 Frame - #36

Open
cmcky wants to merge 1 commit into
nthnclrk:mainfrom
cmcky:codex/ls03c-home-operation
Open

cmcky wants to merge 1 commit into
nthnclrk:mainfrom
cmcky:codex/ls03c-home-operation

Conversation

@cmcky

@cmcky cmcky commented Nov 7, 2026

Copy link
Copy Markdown

On the reported 2023 32-inch Frame, changing the saved Home app also changed the startup app. This adds an experimental, owner-configured profile that assigns only the native Home operation and checks the other captured settings without writing them. The existing reference helper and its firmware guard remain unchanged.

The profile prepares source for the owner's app identity, checks the exact model and firmware, captures a private original state, and provides guarded apply and restore policies. Its SDK-user execution and output transport remain owner-supplied; it is not an unattended installer.

Device evidence: On QN32LS03CBFXZA with T-KSU2ECAKUC-0090-2230.0, the owner observed the operation-only assignment surviving a power cycle. From artwork, the first Home press opened Samsung's Art screen and the second opened CleanFrame. Art Mode and slideshow rotation were observed after restart. A prior combined-setting experiment was restored and independently read back. Operation-only restore/reapply and Home from streaming apps or HDMI have not been tested. The configurable helper in this PR was created afterward and has not itself been run on the TV.

Validation:

  • npm run check, npm run check:tools, and npm run check:public.
  • CLEANFRAME_PUBLIC_FONTS=1 npm run check:browser — 421 checks passed.
  • python3 -B scripts/native-home/frame-2023/check.py — 9 offline preparation and preflight tests passed.
  • Generated helper and fake-backend policy harness built with .NET 6; synthetic Home assignment, stale-state, recovery, preflight freshness and baseline serialization checks passed without TV access.

CI runs the profile's offline policy checks with .NET. The tests do not establish native API behavior on other devices or firmwares.

Copilot AI balanced review requested due to automatic review settings November 7, 2026 21:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟡 Changes recommended

Two moderate unresolved findings remain: error reporting uses Exception.ToString() which can leak sensitive build/source details, and run_sdb bounds only stdout while leaving stderr unbounded, risking excessive diagnostics output.

2 open issues
What changed in this PR

This pull request adds an experimental, owner-configurable “Home-only” native profile for the reported 2023 Samsung Frame to set only the native Home operation while capturing and verifying other settings without writing them, along with offline policy validation and CI coverage.

Changes:

  • Introduces a frame-2023 profile with offline preparation (prepare.py), host-side preflight generation (preflight.py), and an on-TV .NET helper template (Home.cs.in) supporting guarded apply/restore.
  • Adds offline policy checks (Python + .NET) and wires them into CI.
  • Updates compatibility documentation with the reported device/firmware evidence and explicitly scoped limitations.

Before approval, please address the review notes raised in:

  • scripts/native-home/frame-2023/Home.cs.in (exception output leakage; lock cleanup masking errors; symlink checks for attestation/baseline reads).
  • scripts/native-home/frame-2023/preflight.py (stderr output bounding in run_sdb).
  • scripts/native-home/frame-2023/prepare.py (directory permissions should not depend on umask).
  • .github/workflows/check.yml (minor portability nit: call dotnet directly rather than $(command -v dotnet)).
File Summary
scripts/​native-home/​frame-2023/​README.md Documents the experimental profile scope, safety constraints, owner responsibilities, and recovery workflow.
scripts/​native-home/​frame-2023/​profile.example.json Example owner configuration for package/app identity used during offline preparation.
scripts/​native-home/​frame-2023/​prepare.py Generates private, owner-configured helper source under .local/ with template substitution and safety checks.
scripts/​native-home/​frame-2023/​preflight.py Host-side, read-only preflight generation and device/model/app identity checks.
scripts/​native-home/​frame-2023/​PolicyChecks.cs Host-side .NET policy test program validating the Home-only state machine and recovery behavior.
scripts/​native-home/​frame-2023/​Home.cs.in On-TV helper template implementing guarded query/capture/apply/restore behavior for Home operation only.
scripts/​native-home/​frame-2023/​check.py Offline Python tests and optional .NET build/run checks for the generated helper and policy harness.
docs/​compatibility.md Records the 2023 Frame “Home-only operation” observation and clarifies limits/unknowns.
.github/​workflows/​check.yml Adds .NET setup and runs the new offline profile checks in CI.

This pull request requires changes.

Review effort: Balanced

}
Console.WriteLine("CLEANFRAME_2023_HOME=" + JsonSerializer.Serialize(new { Mode = args[0], State = result }));
return 0;
} catch (Exception error) { Console.Error.WriteLine("ERROR=" + error); return 1; }
Comment on lines +46 to +49
p = subprocess.run([str(sdb), *args], capture_output=True, text=True, timeout=10)
if p.returncode or len(p.stdout) > 1048576:
raise ValueError('The developer connection did not return a valid response.')
return p.stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants