Skip to content

Lab: set up lab/main, the base for lab builds - #92

Merged
dayfine merged 11 commits into
lab/mainfrom
lab/main-setup
Oct 31, 2026
Merged

dayfine merged 11 commits into
lab/mainfrom
lab/main-setup

Conversation

@dayfine

@dayfine dayfine commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Base: lab/main (a copy of fork main at 687bc48); the diff shows only the lab tooling this PR adds.

Sets up lab/main, the long-lived base that every lab build (BDSP AutoStory on console B, FRLG nav on console A) merges; it is never merged into main, and upstream-bound branches never merge it.

What each merge brings in:

Left out:

  • Lab control folder (lab/control-folder): already in main via fork PR Lab control folder: start/stop the selected program from scripts #76, so nothing to merge.
  • frlg_route, frlg_max_repel, frlg_rng_reset CFR commands: they live in PokemonFRLG_OverworldCommands.cpp and need the FRLG nav code (frlg/brock-mvp, nav/core), so they stay on lab/frlg-nav-cfr.

Process: the daily sync (pa-tools/sync_branches.py) now merges fork main into lab/main. The lab build process is written up on agents in lab/LAB_BUILDS.md (dac7527); it describes the process once this PR merges.

Testing

  • C++ CI on lab/main-setup: Mac, Windows Clang, Ubuntu Default.
  • git merge-tree of this branch into bdsp/event-sandgem-center is clean; into lab/frlg-nav-cfr it conflicts only in NintendoSwitch_CommandFileRunner.cpp (both sides add history; take this side).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E

dayfine and others added 11 commits October 29, 2026 13:58
…iles

Answering "does this detector fire on that screen?" meant a rebuild and a
full program run. Command File Runner runs .txt files dropped into
<folder>/inbox against the live console, one command per line (press,
dpad, stick, wait, shot/shots, detect, wait_for/expect, state, close_game,
help, stop), and writes a timed result file with screenshots to
<folder>/outbox, stopping a file at its first failing line.

Options set the command folder and whether to stop once the inbox is
empty. Games can register their own commands and detectors. README.md
next to the code documents the file format and every command; like the
other testing programs it has no page on the documentation site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Moves the line splitting, button and D-pad names and the inbox order into
their own file, unchanged, and tests them without a console.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
A command line is now just its words: split_command_line() returns them,
and required_arg(), optional_number() and optional_duration() read
arguments from them, with the same error messages. All definitions move
to the .cpp. Adds a unit test for the argument readers and checks the
error messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
On the macOS Intel CI build, the std::invalid_argument from std::stod()
escapes the catch (std::exception&), so the "argument errors" test failed
with "Unknown exception". strtod() reports a bad number without
throwing; the error message is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
…w long it moved

A timed stick hold moves a different number of tiles from one try to the
next, so a map measured with holds is not measured. "walk x y" holds the
left stick in 200 ms slices and stops when two slices in a row barely
change the screen (a wall, a sign, someone in the way).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Brings in the Command File Runner, including the 'walk' command from
lab/cfr-walk (fork PR #84, merged into lab/lab-console).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
With Stream History on, a lab script can keep the video of a program run
that just ended (the RNG reset and launch) by running this right after.
Ported from beceebc on lab/frlg-nav-cfr to the free-function command
signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
@dayfine
dayfine marked this pull request as ready for review October 31, 2026 16:21
@dayfine
dayfine merged commit 6715b24 into lab/main Oct 31, 2026
17 checks passed
@dayfine
dayfine deleted the lab/main-setup branch October 31, 2026 16:21
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