Skip to content

0.7.0 preparations: ported 0.6.x fixes, offline privacy disclosure, device-pass fixes, release note and audit - #233

Merged
GLinnik21 merged 13 commits into
mainfrom
release-prep/0.7.0
Sep 24, 2026
Merged

GLinnik21 merged 13 commits into
mainfrom
release-prep/0.7.0

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Everything cut-release needs before the 0.7.0 dispatch: three 0.6.x fixes that never reached trunk, the privacy disclosure offline mode was missing, four harness/build defects the device pass surfaced, and the finished release note and audit. No version bump — release.yml -f bump=minor does that.

Ported from release/v0.6

An audit of all 38 commits on release/v0.6 that are not on main found every real fix present except three:

  • diag: ambiguous bare IPv6 is redacted as a complete address (d1aeb23). ::1:80 was read as loopback + port and kept verbatim in reports.
  • telemetry: handled playback events carry the webOS/hardware context crash reports already carry (c48770c). Incident reports deliberately not: the consent-free one-press report promises it does not identify the television. PRIVACY.md says so.
  • telemetry: the crash-log mark is bound to the file it measured, and the read is bounded (e0a9fb3): (dev, ino) + prefix hash, 4 MiB, O_NOFOLLOW, owned regular file (shared with session::open_owned_regular). A pre-port mark still loads, conservatively.

Privacy

  • PRIVACY.md and the in-app Privacy page now disclose that offline mode keeps, for each profile used on this television, its own server access token(s) and a one-way PIN check (PBKDF2, never the PIN), plus cached profile pictures; sign-out removes all of it. A test keeps the two copies from drifting. No notice revision bump — local-storage disclosure, not a reporting-scope change.

Defects found by the device pass

  • dev: replay-after-EOS arm decided from app.route(), which since 235e519 still reads Player at the call site (navigation is parked until the next commit). pipe_replay_after_eos had not exercised LG checklist search: the state machine — zones, the ▼ handoff, scroll and the keyboard #46 since 2026-09-12. Now decided from finish_playback's Up Next handoff; passes on the TV.
  • harness: a session: stored case with no stored sign-in called sys.exit and aborted the whole --server batch; it is now a [SKIP].
  • harness: audio_switch_native picked row 0, which since Audio: one language precedence for every pick, and the file's default outranks a built-in English #210 is the file default already active at start — a no-op. It now switches to row 1; passes on the TV. menupick logs when a row is already active.
  • build: C objects are rebuilt when src/config.local.h appears, changes or disappears. The prerequisite was a parse-time wildcard, so deleting the header left a stale main.o with the private server address linked into a local stable package (check-elf.sh caught it; CI builds from a clean checkout). Reproduced with a sentinel header, red then green.

CI

  • The storage helper's firmware-compat grading now runs for releases, not only nightlies (release.yml fwcompat: true, plus ci.yml's load matrix).

Release documents

  • docs/release-notes/v0.7.0.md and the authored half of docs/release-audits/v0.7.0.md, both lint-clean. The compatibility block moves nothing. docs/known-issues.md and the forward-port plan record the backport audit's result.

Verification (final tree)

  • make check: 4352 / 4405 / 101 passed, 0 failed; --no-default-features check clean; ARM build clean.
  • make FLAVOR=stable RELEASE=1 ipk + ci/check-package.py: all packaging assertions passed; ci/check-elf.sh: all ELF assertions passed; tools/fwcompat.py: main binary and storage helper OK on every image 4.4.2–11.2.0.
  • Release-level fw-compat review of v0.6.0.. : no blocker.
  • TV (dev set, debug flavour, guest): pipeline 44 cases, all green after the replay fix bar one flake; --server 32 cases, green bar a flake and the carried subtitle_image_pgs known issue; --fps/--fps-player fail only the three *-100 bench scenes, whose 20 ms ceiling is still uncalibrated (same on main).
  • Not run: an in-place upgrade of a real 0.6.6 install (left for the post-publish install step) and an offline boot on the device (needs a stored sign-in). The audit says both.

🤖 Generated with Claude Code

GLinnik21 and others added 13 commits September 24, 2026 20:36
….6.x c48770c)

Handled playback-error events built by playback::event_body never touched the
Sentry SDK scope that sdk::start (native.rs) populates for a native crash, so
they carried only their own `playback` context — no `webos`, no `hardware`.
Ported 0.6's fix: one shared sentry::attach_hardware_context helper, sourcing
crate::webos::info()/device()/rtkmem_context() and paths::install_kind() (the
same probes native.rs's crash path reads), wired into playback::event_body
next to the existing attach_user call. PRIVACY.md's playback-report paragraph
now names the added television model/SoC/hardware revision/webOS release and
rtkmem/install fields, matching what a crash report already discloses.

incident::event_body (sign-in/storage/keymanager reports) is deliberately NOT
wired to the same helper in this change: it also serialises the consent-free
"OneOff" one-press report (telemetry/queue.rs), which PRIVACY.md describes as
identifying "only that one report — not you or this television". Adding
television model/SoC/hardware-revision context to that path would make that
sentence false, and event_body has no per-ConsentKind branch to add it only
to the Standing variant. That's a real design decision beyond this fix's
scope, left for a follow-up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the read (port of 0.6.6 e0a9fb3)

The prospective opt-in cutoff on main stored a bare byte offset, and the
importer only reset it when the log was SHORTER. A replaced crash log that
had grown past the old offset inherited it, so a pre-opt-in crash could be
reported or a new one skipped. The log and the mark were also read with a
plain std::fs::read: unbounded, following symlinks, any owner.

Port 0.6.6's binding: the mark carries the (dev, ino) and FNV-1a prefix hash
of the log it measured; resume_from honours the offset only for that file and
prefix, reads a mismatched log from the start, and treats a missing or
pre-binding mark conservatively (existing log stays local, cutoff persisted).
The log is read through session::open_owned_regular (O_NOFOLLOW, owned
regular file, now shared with read_owned_regular) with the 4 MiB bound; the
opt-in cutoff streams the log so an oversized one cannot disable opt-in. The
wire format is 0.6.6's; a mark holding only reported_bytes still loads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Offline mode (e61baca) caches, per Plex Home profile switched to on this
television, that profile's own server access token(s) and, for a
PIN-protected profile, a one-way check derived from the PIN, so a switch and
a PIN entry keep working with no internet; profile pictures are also cached
as files for the same reason. None of this was disclosed. State it in the
stored-data and lifetimes paragraphs: what is kept per profile, that it is a
check derived from the PIN and never the PIN itself, and that signing out
removes all of it while switching profiles keeps it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PRIVACY.md's stored-data paragraph had a verbless fragment listing server
addresses, profile names/pictures, library choices and logs with no main
verb ("It also keeps ..." was missing). Give it a verb and rewrap.

legal.rs's condensed in-app PRIVACY copy still said only "the profile you
selected together with the profile names and pictures on your account",
which predates per-profile offline access: session.json now keeps every
switched-to profile's own server token(s) and, for a PIN-protected
profile, a one-way PIN check. Update the ON THIS TELEVISION and RETENTION
sections to match, and add an assertion that the constant mentions both
facts so the two copies cannot drift again silently.

No consent/notice revision bump: this is a local-storage disclosure, not
a change in what is reported off-device.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- release note: offline mode keeps every profile that has been USED on
  this television, not every profile of the account
- known-issues: record the 2026-09-24 audit result — all 38 release/v0.6
  commits verified against main (issue #74 via 6f3486d, the 0.6.x
  persistence/sign-in/consent line via #105), and the three real gaps the
  audit found are ported in this change (IPv6 ambiguous-address redaction,
  hardware context on handled playback events, crash-log mark identity
  binding)
- player/mod.rs: the jail_error_shape doc comment described a fork-vs-main
  split that no longer exists on this branch; state plainly that
  Player.repair/webos::jail_repair is the code here
- v0.7.0-forward-port-plan.md: correct the IPv6 redaction row — d1aeb23's
  ambiguous-address fix was missed in the earlier port and lands in this
  change

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ot only nightlies

release.yml now passes fwcompat: true to build-package.yml, same as nightly.yml — the
"known asymmetry to revisit" left by #137 was never a compatibility concern, just an
unenabled input from the refactor that introduced it. ci.yml's PR-gating firmware load
matrix now checks pkg/plxnative-storage the same way it already checks pkg/plxnative,
since the storage helper ships in every package as of 0.7.0.

ci/check-elf.sh stays scoped to pkg/plxnative: most of its sections (the Starfish
interposer, the Sentry crash-report image base/build-id, ET_EXEC) assume the main
binary specifically and would need real rework, not a second invocation, to apply to
the LS2 helper — skipped rather than forced.

Validated: tools/fwcompat.py --min-release 4.4.2 pkg/plxnative-storage passes OK on all
14 databases (4.4.2 floor); the three edited workflow files parse as YAML.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he parked route (regression from 235e519)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ch abort

require_stored_session() signaled a missing `session: stored` precondition with
sys.exit(), called from inside run_case() inside main()'s per-case
`try/except Exception` loop. SystemExit is not an Exception, so the first
stored-session case with no signed-in session on the install aborted the
entire batch (a release audit got 2 of 35 server cases before the abort).

Factor the probe into stored_session_reason(tv), which returns the reason
string or None instead of exiting, and a pure partition_stored_sessions()
helper. main() now checks once, before the per-case loop (same shape as the
existing link-conditioner check), moves any case whose precondition is unmet
into a skip list reported in the summary as
`[SKIP] ... <- \`session: stored\` ...`, and only exits if an explicit
--filter/--suite selection leaves nothing runnable, naming the reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…start pick now chooses (#210)

Since #210, a cold play with no Plex language preference picks the file's
DEFAULT audio track at start, not a hardcoded English preference. For
episode_hevc_4k_hdr10_eac3 that default is row 0 (German, e-ac3), so
audio_switch_native's old menupick=0,0 selected the track already active:
TrackMenu::on_ok saw active_audio == sel, returned None, and the checker's
"route transition: native audio idx=" line never appeared even though the
native-switch path itself was fine.

Repoint the case at row 1 (English, e-ac3) so the switch actually changes
the active track, and update the title/covers and the two docs
(tests/fixtures/README.md, tests/fixtures/make_fixtures.py) that still
described the pre-#210 "English auto-picked at start" premise.

Also make the no-commit case legible: scenarios.rs's menupick_arm now logs
"menupick: row N already active — no commit" when pick_track_row returns
None, and run.py's op_audio_native surfaces that line in its failure
message instead of a bare "switch was not native".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…disappears

`src/app.h` opportunistically includes the gitignored src/config.local.h via
__has_include, but the C object pattern rule only listed $(wildcard src/*.h)
as a header prerequisite — a list computed at Makefile parse time. Deleting
config.local.h simply drops it from that list; make then sees no changed
prerequisite and leaves the stale .o (and whatever it baked in, e.g. a dev
PMS_HOST) untouched. ci/check-elf.sh caught a private IP address linked into
a local build this way.

Add CONFIG_LOCAL_STAMP, a presence+hash signature of config.local.h that is
rewritten only when the signature changes, and make it an explicit
prerequisite of the src/%.o rule so its mtime tracks the header's appearance,
change, or disappearance even though a wildcard cannot see a deleted file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fills the PENDING device-evidence placeholders in the v0.7.0 audit and
note with the dev-set pass from 2026-09-24/25: pipeline, server, host/static
and fps suites, the pipe_replay_after_eos regression fix, the harness
drift fix in audio_switch_native, and the explicit not-run statements for
the in-place stable upgrade and offline boot. The note's two compatibility
lines lose their PENDING language without moving any tier.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T23:30:10.598198Z 8af159b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8af159b9c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +707 to +708
if bytes.len() as u64 > max {
return Err(std::io::ErrorKind::InvalidData.into());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep importing after the crash log exceeds 4 MiB

Once plxnative-crash.log grows past this limit, read_snapshot returns an error and recover_pending_at imports no log records or advances/truncates the mark. Because src/main.c:127 opens this log with O_APPEND and the log is never rotated, every subsequent boot sees the same oversized file, permanently disabling crash-log reporting for an installation that accumulates enough diagnostics. Stream/hash the already-marked prefix and bound only the unread suffix, or rotate/truncate successfully processed data, instead of rejecting the entire file.

Useful? React with 👍 / 👎.

@GLinnik21
GLinnik21 merged commit a788b27 into main Sep 24, 2026
10 checks passed
@GLinnik21
GLinnik21 deleted the release-prep/0.7.0 branch September 24, 2026 23:41
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.

1 participant