xgameruntime: serve the store, accessibility and feature classes locally #529

Merged
csj0oe merged 3 commits from upstream-pr/529 into main 2026-11-29 21:51:41 +00:00
csj0oe commented 2026-11-29 20:10:36 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-29T20:10:36Z.


What

Three runtime classes the title actually reaches are now served, with only honest local answers.

  • XStore: answers the context, the game-licence query (active, not a trial, no expiry) and the package identifier, matching a <StoreId> in the title's configuration; products, purchases, entitlements and add-ons stay on the probe, which still logs the slot and caller. No entitlement is invented.
  • XGameRuntimeFeature: answers from what is implemented instead of false for everything. Store and Error answer no, and the comment says why.
  • XAccessibility: fills the closed-caption and high-contrast records; captions report off, high contrast off.

Slot numbers were read from the title's own wrapper records; the interfaces reach slot 83, so the probe tables grew from 64 to 96 entries — unmapped slots are real probe entries, not memory past a table.

The follow-up commit fixes what review found: the stored interface ID now matches the recorded wrapper contract, the slot provenance is documented and confirmed, the caption background colour is opaque black under the {A,R,G,B} layout, the disc-licence flag is false because disc cannot be distinguished offline, the captions-off path carries a ponytail: note naming the ceiling, the configuration file is restored by an RAII helper even on early return, and the invalid-argument paths assert the caller's buffer is untouched.

Behaviour notes

  • Every class now has a service, so TUXBOX_RUNTIME_PROBE=1 serves every class even when TUXBOX_RUNTIME_SERVICES withholds it.
  • The accessibility class is named XAccessibility, matching the interface; the token in the services list changes with it.

Verification

  • Compiler static_asserts pin the caption properties (28 bytes), the licence (104 bytes) and the colour (4 bytes {A,R,G,B}) with every offset.
  • 16 Rust tests pass as a real x64 binary under Proton GE; the control guest passes; python tuxbox.py check --no-gpu 9/9.
  • A run of the control shows serving XStore, serving XAccessibility, serving XGameRuntimeFeature, plus probe lines for the unimplemented slots.

Not covered

  • No live launch, so which slots and stores the title actually asks for is unmeasured; the probe will name any unimplemented slot on the next run.
  • Captions report off with success rather than the documented error; the note records that no caption overlay is drawn.
  • The feature answers are only as good as the implementation behind them; whether the title branches on them is unmeasured.
  • No GPU run.
<!-- greyfinch-sync:brcly/TuxBox:issue:5554636873 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/529). Originally posted by [csj0oe](https://github.com/csj0oe) on 2026-11-29T20:10:36Z. --- ## What Three runtime classes the title actually reaches are now served, with only honest local answers. - **XStore:** answers the context, the game-licence query (active, not a trial, no expiry) and the package identifier, matching a `<StoreId>` in the title's configuration; products, purchases, entitlements and add-ons stay on the probe, which still logs the slot and caller. No entitlement is invented. - **XGameRuntimeFeature:** answers from what is implemented instead of `false` for everything. Store and Error answer no, and the comment says why. - **XAccessibility:** fills the closed-caption and high-contrast records; captions report off, high contrast off. Slot numbers were read from the title's own wrapper records; the interfaces reach slot 83, so the probe tables grew from 64 to 96 entries — unmapped slots are real probe entries, not memory past a table. The follow-up commit fixes what review found: the stored interface ID now matches the recorded wrapper contract, the slot provenance is documented and confirmed, the caption background colour is opaque black under the `{A,R,G,B}` layout, the disc-licence flag is false because disc cannot be distinguished offline, the captions-off path carries a `ponytail:` note naming the ceiling, the configuration file is restored by an RAII helper even on early return, and the invalid-argument paths assert the caller's buffer is untouched. ## Behaviour notes - Every class now has a service, so `TUXBOX_RUNTIME_PROBE=1` serves every class even when `TUXBOX_RUNTIME_SERVICES` withholds it. - The accessibility class is named `XAccessibility`, matching the interface; the token in the services list changes with it. ## Verification - Compiler `static_assert`s pin the caption properties (28 bytes), the licence (104 bytes) and the colour (4 bytes `{A,R,G,B}`) with every offset. - 16 Rust tests pass as a real x64 binary under Proton GE; the control guest passes; `python tuxbox.py check --no-gpu` 9/9. - A run of the control shows `serving XStore`, `serving XAccessibility`, `serving XGameRuntimeFeature`, plus probe lines for the unimplemented slots. ## Not covered - No live launch, so which slots and stores the title actually asks for is unmeasured; the probe will name any unimplemented slot on the next run. - Captions report off with success rather than the documented error; the note records that no caption overlay is drawn. - The feature answers are only as good as the implementation behind them; whether the title branches on them is unmeasured. - No GPU run.
brcly commented 2026-11-29 20:38:03 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T20:38:03Z.


Thanks. From reading, this looks fine: honest local answers and tests for each case. We're adding Lanes self-test scenarios that call these providers, so they're checked without booting a title. We'll merge it once those pass with it.

<!-- greyfinch-sync:brcly/TuxBox:comment:7262236562 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/529#issuecomment-7262236562). Originally posted by [brcly](https://github.com/brcly) on 2026-11-29T20:38:03Z. --- Thanks. From reading, this looks fine: honest local answers and tests for each case. We're adding Lanes self-test scenarios that call these providers, so they're checked without booting a title. We'll merge it once those pass with it.
brcly commented 2026-11-29 20:52:40 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T20:52:40Z.


We're merging #526, #527 and #530 now. This one conflicts with #526 in runtime/xgameruntime/src/probe.rs: both change the class table (the accessibility class's name, the analytics entry and the slot tables). Since the slot wiring is what this PR gets right, I'd rather you resolve it than guess. Could you rebase it onto main once those land? Then we'll run it through the same check.

<!-- greyfinch-sync:brcly/TuxBox:comment:7262427696 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/529#issuecomment-7262427696). Originally posted by [brcly](https://github.com/brcly) on 2026-11-29T20:52:40Z. --- We're merging #526, #527 and #530 now. This one conflicts with #526 in `runtime/xgameruntime/src/probe.rs`: both change the class table (the accessibility class's name, the analytics entry and the slot tables). Since the slot wiring is what this PR gets right, I'd rather you resolve it than guess. Could you rebase it onto `main` once those land? Then we'll run it through the same check.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!529
No description provided.