Skip to content

Use initial 1.0 resource bundles for Player HUD plugins - #1222

Merged
GLinnik21 merged 11 commits into
mainfrom
feat/hud-bundles-1-0
Nov 3, 2026
Merged

GLinnik21 merged 11 commits into
mainfrom
feat/hud-bundles-1-0

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Player HUD plugins now use a source directory with manifest.json, hud.json and ordinary resource files, built into a canonical .plxhud archive. Package and HUD formats start at 1.0, example plugins at 1.0.0, and report/catalog/index protocols remain 1.

The shared loader validates bounded ZIP32 STORE containers, both JSON documents, exact resource inventories and SVG roles, and binds the full archive SHA to immutable parsed metadata and owned resources. Installation, confirmation, storage, runtime compilation and authoring commands consume that same artifact. The source packer preserves payload bytes and condition order; all seven examples preserve their original layout/palette and retained SVG content.

The native CLI adds packing and explicit schema/export output commands. SDK packaging carries both generated schemas and an indexed source/archive corpus; preview tools freeze one bundle for the entire matrix. Storage uses a strict initial installed.json v1 contract with both format fields, conservative handling of unreadable indexes, and verified archive metadata.

The ARM normal/build dependency graph grows from 86 to 92 packages for both feature sets: zip 9.2.2, getrandom 0.4.3, typed-path 0.13.0, indexmap 2.14.2, hashbrown 0.17.1 and equivalent 1.0.3. The maintained ZIP reader/writer supplies container/CRC handling after bounded preflight. Default features are disabled, so compression, encryption and extraction dependencies remain excluded. The measured graph budget is now exactly 92 with zero additional headroom; normal-edge duplicate versions remain zero. The before/after build table below records the cost. The stripped ARM binary remains within its existing size budget.

Validation on 017ff3ad29443e5ecf47e7c3d3b93f4625cf5c2c:

  • make check passed with default and hostsim passes, structural/C/Python gates and the 550-test harness. Relevant libtest results:
    test result: ok. 926 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 91.10s
    test result: ok. 1319 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 61.17s
    
  • make check-nodef and the actual ARM release-profile cross-build passed.
  • ELF assertions and independently reviewed firmware compatibility passed every supported inventory from 4.4.2 through 11.2.0.
  • Final native probes passed deterministic packing, independent canonical ZIP byte equivalence, 14 malformed-container cases and warning preservation. A full 1 MiB member payload passes; macOS CLI inspection median was 55.5 ms with 30.6 MB peak RSS (host evidence).
  • CI published the source-bound Linux SDK for this implementation commit. Its archive and all 307 inventory files verify; both schemas and the native corpus are included. Registry-native validation passed the 22-case corpus, both generated schema checks, all-language package lint, and the two-iteration authoring exercise. Minimal's 32 captures passed and were inspected: 31 are pixel-identical to the previous published baseline; Up Next differs in 104 button-area pixels by at most one channel level, with placement, labels and footage unchanged. The full Reference/Minimal matrix now passes (102 captures) and has been inspected. All 70 Reference captures are pixel-identical to the previous published visual baseline. Overall 101/102 captures are pixel-identical; the sole difference is the Minimal Up Next pixel difference described above. Registry validation, both render jobs and catalog staging pass in run 41669232941. Physical TV acceptance remains unverified.
  • A later policy-only follow-up records the measured dependency count and clarifies per-entry headroom; it changes no Rust/C/runtime or SDK source.
  • Exact final head 03d0ec7da76054c828b2cf69ba8017ee8576faea passes CI, Simulator CI, and HUD SDK CI. The local current-head ARM rebuild also passes all ELF assertions and firmware inventories; its SHA-256 is 1f317a4f1381f52995e170f9830887460647e341ba5b476ac990f4d7b5a1199c.
Build scenario Before (s) After (s)
No-op host test build 0.2 0.08
Edit leaf (plx_base cbuf.rs), non-incremental 32.78 31.51
Edit leaf (plx_machine landgate.rs), non-incremental 32.39 31.3
Edit leaf (plx_platform devcaps.rs), non-incremental 30.41 32.17
Edit leaf (plx_gfx overdraw.rs), non-incremental 18.62 20.67
Edit leaf (plx_net stream_redirect.rs), non-incremental 36.27 27.31
Edit leaf (plx_ui dwell.rs), non-incremental 22.53 17.28
Edit leaf (plx_plex retry.rs), non-incremental 28.68 27.59
Edit leaf (plx_telemetry window.rs), non-incremental 23.4 23.81
Edit leaf (plx_data tape.rs), non-incremental 22.03 22.48
Edit leaf (plx_session scripted.rs), non-incremental 14.15 14.4
Edit leaf (plx_media units.rs), non-incremental 17.32 17.73
Edit leaf (plx_appkit skip_pill.rs), non-incremental 14.53 14.61
Edit leaf (plx_screens clock_readout.rs), non-incremental 12.64 12.85
Edit leaf (app coldstart.rs), non-incremental 7.28 7.45
Edit hub (plx_ui lib.rs), non-incremental 17.7 17.43
Edit leaf (plx_base cbuf.rs), incremental skipped skipped
Edit hub (plx_ui lib.rs), incremental skipped skipped
Unit suite run (default features) 59.39 57.7
ARM staticlib rebuild (touch lib.rs) skipped skipped

One run per scenario on the same Apple M4 / pinned Rust toolchain. Baseline source 3b651de0a69c; final source 017ff3ad2944. Both runs started clean and restored the tree. Baseline had two load warnings; these samples do not establish a performance improvement.

Target cache footprint: before 2185.5 MB; after 5678.3 MB. The after cache also contains the default, hostsim and shipping-feature gate variants; this is cache coverage, not application binary size. Incremental and ARM rows were unavailable in both runs.

Combined PR review found no functional blocker. Two minor documentation follow-ups remain: icon.asset still refers to the old assets name, and the price-pass comment still describes reparsing rather than the shared decoded package. Physical TV acceptance remains unverified.

@GLinnik21
GLinnik21 marked this pull request as ready for review November 3, 2026 17:04
@GLinnik21
GLinnik21 merged commit 7004bc9 into main Nov 3, 2026
24 checks passed
@GLinnik21
GLinnik21 deleted the feat/hud-bundles-1-0 branch November 3, 2026 17:05
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