Skip to content

BUILD-2248: run a synthetic guest scene with persistent output from the development CLI - #6691

Merged
shayderrr merged 16 commits into
ItsNotRexed:mainfrom
Arkex-ai:dev/guest-scene
Nov 23, 2026
Merged

shayderrr merged 16 commits into
ItsNotRexed:mainfrom
Arkex-ai:dev/guest-scene

Conversation

@Arkex-ai

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as BUILD-2248 (DEV-GUEST-SCENE-ENTRY).

Depends on: #6590, #6587

What and why

Run the existing headless synthetic guest scene from the development CLI with python -I scripts/dev.py guest-scene. The command requires an explicit --out so the report, logs and generated frames remain available after the run. It delegates help, input validation and execution to the checkout's scene runner. The documentation shows the native inputs and explains when a failed command produces a report.

The forwarding helper is shared with the boot trace command from #6590. Review the incremental change against its head 580e1b441. The scene runner and native runtime are unchanged.

Tested

Windows 11, Python 3.14.7, RTX 5070 Ti, Windows driver 32.0.16.2101. CLI head cf20501056490d370fcb2941ac932cc3a83441f6. Loader and synthetic guest built from runtime source 9b13eeade with static SDL3 and the opt-in scene. Used the two handwritten M1.5 shaders and offline audio.

  • Ran the standalone producer and the new CLI with separate output directories and --negative-controls. Both exited 0. Checked all 600 frame records against the save/resume runs. All 28 files in the report's output inventory matched by SHA-256 across invocations, including 12 PPM files. The damaged scene and damaged checkpoint each returned the expected child exit code 1.
  • Ran the four guest-scene CLI tests, five boot-trace CLI tests and four discovery tests. All passed. These cover help, caller-relative paths, forwarding, an occupied destination, partial trace JSON and failures before report creation.
  • Ran the existing guest-scene reference tests (3), boot trace tests (20), text line-ending tests (3), scripts/check_no_game_data.py and git diff --check. All passed.

AI-assisted: yes (OpenAI Codex).

Checklist

  • No game data, keys or decryption, including in logs and fixtures.
  • Translator contract table entry is inapplicable to this CLI-only change.

@wasonidas

Copy link
Copy Markdown

Independent CPU-only check of cf20501056490d370fcb2941ac932cc3a83441f6, reviewing the delta above #6590 and #6587. Windows 11, Python 3.15.2, synthetic runner controls only.

test_dev_guest_scene.py (4), test_dev_discovery.py (4), and test_dev_boot_trace.py (5) passed. Help worked without an output path. Missing or incomplete --out returned exit 2. Caller-relative paths, including spaces and Unicode, reached the runner unchanged. An occupied-output retry returned exit 2 and preserved the earlier report byte-for-byte. An uncreatable output directory returned exit 1 without leaving an orphaned report.

No full rendered scene was exercised. AI-assisted.

@memorypressure

Copy link
Copy Markdown

Verified on Linux (CPU-only): all 13 contract tests pass merged with main 1cc6e3c; scripts/dev.py is stdlib-only and runs under python -I; the discovery tests prove producers are not executed; guest-scene tests substitute python for Wine so nothing GPU-dependent pretends to have run. The control is real — the discovery suite errors 4 ways on clean main. Minor: help_argv hardcodes bare python, which some platforms lack. Flag: no CI checks reported. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Summary

  • Adds scripts/dev.py, a development CLI exposing discover (tool inventory with JSON schema), boot-trace and guest-scene subcommands that forward to the existing analyzers/runner.
  • Adds docs/dev-tools.md describing the JSON output, exit codes, prerequisites and path handling for both entry points.

Why merge

It gives contributors a single documented entry point for the boot-trace analyzer and headless guest runner, with a machine-readable inventory and clear exit-status semantics.

Verdict: Approve

@shayderrr

Copy link
Copy Markdown
Collaborator

Summary

  • Adds scripts/dev.py, a development CLI exposing discover (tool inventory with JSON schema), boot-trace and guest-scene subcommands that forward to the existing analyzers/runner.
  • Adds docs/dev-tools.md describing the JSON output, exit codes, prerequisites and path handling for both entry points.

Why merge

It gives contributors a single documented entry point for the boot-trace analyzer and headless guest runner, with a machine-readable inventory and clear exit-status semantics.

Verdict: Approve

@memorypressure

Copy link
Copy Markdown

Post-merge heads-up from a routine sweep at main dde82f2: your merge cc67780 added the docs/dev-tools.md link to runtime/README.md#a-600-frame-headless-guest-scene, and tests/test_docs_links.py test_every_relative_link_resolves is RED on clean main as a result — the heading exists (runtime/README.md:521) but the checker's strip_fences treats it as fenced because runtime/README.md has an odd fence count (35). Reproduced: ('docs/dev-tools.md', '../runtime/README.md#a-600-frame-headless-guest-scene', 'anchor not found'). Fix candidates: balance the README's fences (likely one stray ``` somewhere) or make strip_fences pairing fence-aware. Main has been red on test_docs_links since your merge. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

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.

4 participants