Skip to content

Lab: describe_program and game_open commands - #504

Merged
dayfine merged 4 commits into
lab/toolingfrom
lab/slice4b
Nov 15, 2026
Merged

dayfine merged 4 commits into
lab/toolingfrom
lab/slice4b

Conversation

@dayfine

@dayfine dayfine commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Base: lab/tooling; the diff shows only this change. Second PR of #131 Slice 4 (after #485).

The lab server had no way to read what a program takes or whether a game is in front without running something. This adds two read-only lab channel commands. describe_program prints the selected program's id and the static contract of its options as one line of JSON: each saved option's key (as set takes it), type, default (not the current value), bounds for numbers, entries and which are enabled for enums and selects, and nested groups. prechecks says unsupported for now, because #485's precheck list is on upstream/frlg-free-party-slots and has not reached lab/tooling. game_open [image] prints game_open yes or game_open no home|user_select|black|no_video. It does not tell one game from another. To name each option by its key, BatchOption gets a free keyed_options() accessor (Common/Cpp, one function). The MCP tools for these live in lab/server/pa_lab on agents and are not part of this PR. Tested with new table-driven unit tests (CommonFramework::LabProgramContract, NintendoSwitch::CommandFileRunner game_open) run by the dispatched Ubuntu CI build (Fork Draft CI does not run on this base); the local compile was skipped because a console run held the heavy gate. No console run.

describe_program prints the selected program's id and the static contract
of its options (keys, types, defaults, bounds, enum entries and which are
enabled, nested groups) as one line of JSON; prechecks report unsupported
until the precheck list reaches lab/tooling. game_open reports whether a
game is in front (not Home, the user select or a black screen). Both read
only. BatchOption gains keyed_options() so the contract can name each
option by the key set takes.
@dayfine
dayfine marked this pull request as ready for review November 15, 2026 01:53
# Conflicts:
#	SerialPrograms/Source/ComputerPrograms/ComputerPrograms_UnitTestRunner.cpp
@dayfine
dayfine merged commit f1d8983 into lab/tooling Nov 15, 2026
2 of 9 checks passed
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