launchers: values written into PowerShell keep every single quote (LAUNCHER-SINGLE-QUOTE-ESCAPE) #3253

Merged
LouisRiverstone merged 2 commits from upstream-pr/3253 into main 2026-12-03 16:55:13 +00:00
LouisRiverstone commented 2026-12-02 22:43:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-02T22:43:43Z.


Claim: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7360857465 (LAUNCHER-SINGLE-QUOTE-ESCAPE)

Depends on: #3233 (this branch is #3233's commit plus one; the edited lines are next to its line 742)

What and why

PowerShell reads U+2018, U+2019, U+201A and U+201B as single quotes, not only '. Two launchers write PowerShell source text and quoted it with -replace "'", "''", which doubles only the ASCII apostrophe:

  • d3d12/scripts/play-nvidia.ps1 builds LEONIDA_MENU_ARGS, the command the F1 menu's SAVE AND RESTART runs through powershell -Command (host/menu.rs restart()). A folder named with a typographic apostrophe ended the string early: the restart did not parse. Reproduced in Windows PowerShell 5.1.
  • scripts/game-gate.ps1 writes launch.ps1. Besides the -More values, it pasted $repo, $play, $Game and $Data into quotes with no escaping at all, so a repository under C:\Bob's\ already broke it. It also wrote the file with Set-Content, which on Windows PowerShell uses the ANSI code page (U+201B became ?), while pwsh, which runs launch.ps1, reads a file with no BOM as UTF-8.

What changed

  • Both scripts quote through [Management.Automation.Language.CodeGeneration]::EscapeSingleQuotedStringContent (a one-line ConvertTo-Quoted; the repository has no shared PowerShell module).
  • game-gate.ps1 quotes the four folders the same way and writes launch.ps1 as UTF-8 with a BOM, which both PowerShells read. $PlayArgs stays raw on purpose: it is argument text, pasted the same way as in Test-NoDlssBound.
  • tests/test_launcher_quoting.py:
    • one test passes a dry run's LEONIDA_MENU_ARGS to a stub script, as the runtime does, and checks -Exe, -PcGlyphs and -MenuRestart arrive intact;
    • the other runs the gate's launch.ps1 block alone with folders and a value holding all five quotes, parses the file it writes, and checks there are no errors and that the quoted strings are the values given.

Verification (Windows 11, Windows PowerShell 5.1, Python 3.11; no game files, no GPU needed)

  • Red/green by hand: with both .ps1 changes reverted, both tests fail. The restart gets the path cut at the first typographic quote, and launch.ps1 has a parse error. With the change, both pass.
  • tests/test_win_launchers.py, tests/test_play_nvidia_menu_choice.py and tests/test_game_gate.py still pass.
  • python -I scripts/check_no_game_data.py on the three files: exit 0. Both .ps1 stay CRLF and ASCII; the test is LF and ASCII.

AI assistance

AI-assisted: written with Claude Code (Claude Opus 5.5). It was reviewed by a separate read-only reviewer agent (Claude Opus 5.5), which checked that EscapeSingleQuotedStringContent doubles all five quotes in 5.1, that $PlayArgs is meant to stay raw, that nothing else reads launch.ps1, and the encodings. It found nothing blocking; I applied its suggestion to keep the test's own temporary paths out of quotes.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5616033638 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-02T22:43:43Z. --- Claim: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7360857465 (LAUNCHER-SINGLE-QUOTE-ESCAPE) Depends on: #3233 (this branch is #3233's commit plus one; the edited lines are next to its line 742) ### What and why PowerShell reads U+2018, U+2019, U+201A and U+201B as single quotes, not only `'`. Two launchers write PowerShell source text and quoted it with `-replace "'", "''"`, which doubles only the ASCII apostrophe: - `d3d12/scripts/play-nvidia.ps1` builds `LEONIDA_MENU_ARGS`, the command the F1 menu's SAVE AND RESTART runs through `powershell -Command` (`host/menu.rs` `restart()`). A folder named with a typographic apostrophe ended the string early: the restart did not parse. Reproduced in Windows PowerShell 5.1. - `scripts/game-gate.ps1` writes `launch.ps1`. Besides the `-More` values, it pasted `$repo`, `$play`, `$Game` and `$Data` into quotes with no escaping at all, so a repository under `C:\Bob's\` already broke it. It also wrote the file with `Set-Content`, which on Windows PowerShell uses the ANSI code page (U+201B became `?`), while `pwsh`, which runs `launch.ps1`, reads a file with no BOM as UTF-8. ### What changed - Both scripts quote through `[Management.Automation.Language.CodeGeneration]::EscapeSingleQuotedStringContent` (a one-line `ConvertTo-Quoted`; the repository has no shared PowerShell module). - `game-gate.ps1` quotes the four folders the same way and writes `launch.ps1` as UTF-8 with a BOM, which both PowerShells read. `$PlayArgs` stays raw on purpose: it is argument text, pasted the same way as in `Test-NoDlssBound`. - `tests/test_launcher_quoting.py`: - one test passes a dry run's `LEONIDA_MENU_ARGS` to a stub script, as the runtime does, and checks `-Exe`, `-PcGlyphs` and `-MenuRestart` arrive intact; - the other runs the gate's `launch.ps1` block alone with folders and a value holding all five quotes, parses the file it writes, and checks there are no errors and that the quoted strings are the values given. ### Verification (Windows 11, Windows PowerShell 5.1, Python 3.11; no game files, no GPU needed) - Red/green by hand: with both `.ps1` changes reverted, both tests fail. The restart gets the path cut at the first typographic quote, and `launch.ps1` has a parse error. With the change, both pass. - `tests/test_win_launchers.py`, `tests/test_play_nvidia_menu_choice.py` and `tests/test_game_gate.py` still pass. - `python -I scripts/check_no_game_data.py` on the three files: exit 0. Both `.ps1` stay CRLF and ASCII; the test is LF and ASCII. ### AI assistance AI-assisted: written with Claude Code (Claude Opus 5.5). It was reviewed by a separate read-only reviewer agent (Claude Opus 5.5), which checked that `EscapeSingleQuotedStringContent` doubles all five quotes in 5.1, that `$PlayArgs` is meant to stay raw, that nothing else reads `launch.ps1`, and the encodings. It found nothing blocking; I applied its suggestion to keep the test's own temporary paths out of quotes.
merzleckeier commented 2026-12-02 22:48:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T22:48:33Z.

Review: COMMENTED


Reviewed 51bb0da2. In a sandbox I ran both new path round-trip tests with Linux PowerShell 7.7.0 after enabling the Windows-gated class in the disposable test copy. Both passed: a synthetic executable and glyph folder survive F1 restart, and the gate’s generated launch script parses back to the original folder strings. The launcher suite also passed its five runnable tests with five Windows-only skips.

The current #3233 head (86e92f66) is an actual ancestor of this PR, and its tree matches the previous #3233 head 9f84a449. #3240 at 3de2d360 merges cleanly with this PR. With #3247 at 3e5887f6, the launcher script merges cleanly and the inherited conflict is in tests/test_win_launchers.py, where both branches add tests at the same spot.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6160417289 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#pullrequestreview-6160417289). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T22:48:33Z. **Review:** COMMENTED --- Reviewed `51bb0da2`. In a sandbox I ran both new path round-trip tests with Linux PowerShell 7.7.0 after enabling the Windows-gated class in the disposable test copy. Both passed: a synthetic executable and glyph folder survive F1 restart, and the gate’s generated launch script parses back to the original folder strings. The launcher suite also passed its five runnable tests with five Windows-only skips. The current #3233 head (`86e92f66`) is an actual ancestor of this PR, and its tree matches the previous #3233 head `9f84a449`. #3240 at `3de2d360` merges cleanly with this PR. With #3247 at `3e5887f6`, the launcher script merges cleanly and the inherited conflict is in `tests/test_win_launchers.py`, where both branches add tests at the same spot.
fiestorra commented 2026-12-03 00:08:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T00:08:24Z.


VERIFY-3253 — Windows nativo: red then green en las comillas del script de arranque

Own commit 51bb0da2d — play-nvidia.ps1, game-gate.ps1, tests/test_launcher_quoting.py (+122), tests/test_win_launchers.py (+46)

Ran at the head

python -I tests/test_launcher_quoting.py     2 tests — OK
python -I tests/test_win_launchers.py       10 tests — OK

Negative control: I put main's scripts/game-gate.ps1 and d3d12/scripts/play-nvidia.ps1 back, kept the tests and re-ran:

FAIL: test_the_gate_writes_a_launch_script_that_reads_back_every_value
FAIL: test_the_menu_restart_hands_back_every_quote
FAIL: test_nvidia_menu_restart_preserves_pc_glyphs_folder

It bites in three places, and the third one is the important one: the same bug reaches a launcher that was not touched by this pull request (test_win_launchers.py), because the quoting rule is shared — which is exactly why a fix in one script and a fix in the other have to land together.

What the change is: a value written into PowerShell keeps every single quote — ' is the quoting character in this language, and a path or a switch value containing one closes the string early: 'the folder's name'. The tests do not check the text, they check the round trip — "reads back every value" and "hands back every quote" — which is the only assertion that survives a different quoting strategy.

What I could not test

  • A launch with such a value in a real run: the tests build the script text and read it back with a parser.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362840828 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7362840828). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T00:08:24Z. --- ## VERIFY-3253 — Windows nativo: `red then green` en las comillas del script de arranque | | | |---|---| | Own commit | `51bb0da2d` — `play-nvidia.ps1`, `game-gate.ps1`, `tests/test_launcher_quoting.py` (+122), `tests/test_win_launchers.py` (+46) | **Ran at the head** ``` python -I tests/test_launcher_quoting.py 2 tests — OK python -I tests/test_win_launchers.py 10 tests — OK ``` **Negative control**: I put `main`'s `scripts/game-gate.ps1` and `d3d12/scripts/play-nvidia.ps1` back, kept the tests and re-ran: ``` FAIL: test_the_gate_writes_a_launch_script_that_reads_back_every_value FAIL: test_the_menu_restart_hands_back_every_quote FAIL: test_nvidia_menu_restart_preserves_pc_glyphs_folder ``` **It bites in three places, and the third one is the important one**: **the same bug reaches a launcher that was not touched by this pull request** (`test_win_launchers.py`), **because the quoting rule is shared** — **which is exactly why a fix in one script and a fix in the other have to land together.** **What the change is**: **a value written into PowerShell keeps every single quote** — `'` is the quoting character in this language, and **a path or a switch value containing one closes the string early**: `'the folder's name'`. **The tests do not check the text, they check the *round trip*** — **"reads back every value"** and **"hands back every quote"** — **which is the only assertion that survives a different quoting strategy.** ## What I could not test - **A launch with such a value in a real run**: the tests build the script text and read it back with a parser. Written with an AI assistant.
fiestorra commented 2026-12-03 01:32:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:32:38Z.


The stack is rebased, both branches are on the fork, and they merge in order

After #3247 landed, this pull request could not merge — it is stacked on #3233 and the same file conflicted. Both halves are now rebased and verified:

branch head based on what it carries
pr-3233-rebased fcaed1015 main d5b30be1c #3233's -PcGlyphs replay, plus #3247's test kept
pr-3253-rebased 185575f27 fcaed1015 this pull request's own commit, 51bb0da2d, alone
https://github.com/fiestorra/leonida-carry/pull/new/pr-3233-rebased
https://github.com/fiestorra/leonida-carry/pull/new/pr-3253-rebased

Verified on 185575f27 (this machine, no conflicts during the rebase at all):

python tests/test_win_launchers.py            Ran 11 tests — OK
python tests/test_launcher_quoting.py          2 tests — OK     (this pull request's own)
python tests/test_play_nvidia_menu_choice.py  16 tests — OK

185575f27 is one commit on top of fcaed1015 — 51bb0da2d alone, three files, +137/−6 — and it rebased with no conflict because the file resolution #3233 needed was already made. That is the stack working as a stack should: the second half is trivial once the first is done.

Authors are unchanged (Luiz Neves for #3233, yours here), so these can be pushed to the original branches or merged from the fork — whichever the maintainer prefers.

And the order is not a preference: #3253 cannot go first (git merge-base --is-ancestor pr/3233 pr/3253 says yes), so the two land together or the second one waits.

The same two branches also leave tests/test_win_launchers.py consistent for #3104: it conflicts in play-nvidia.ps1 only — one hunk, its own rebase.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364460228 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7364460228). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T01:32:38Z. --- ## The stack is rebased, both branches are on the fork, and they merge in order **After `#3247` landed, this pull request could not merge — it is stacked on `#3233` and the same file conflicted.** **Both halves are now rebased and verified**: | branch | head | based on | what it carries | |---|---|---|---| | **`pr-3233-rebased`** | `fcaed1015` | `main` `d5b30be1c` | **`#3233`'s `-PcGlyphs` replay, plus `#3247`'s test kept** | | **`pr-3253-rebased`** | `185575f27` | `fcaed1015` | **this pull request's own commit, `51bb0da2d`, alone** | ``` https://github.com/fiestorra/leonida-carry/pull/new/pr-3233-rebased https://github.com/fiestorra/leonida-carry/pull/new/pr-3253-rebased ``` **Verified on `185575f27`** (this machine, no conflicts during the rebase at all): ``` python tests/test_win_launchers.py Ran 11 tests — OK python tests/test_launcher_quoting.py 2 tests — OK (this pull request's own) python tests/test_play_nvidia_menu_choice.py 16 tests — OK ``` **`185575f27` is one commit on top of `fcaed1015`** — **`51bb0da2d` alone, three files, +137/−6** — **and it rebased with no conflict because the file resolution `#3233` needed was already made.** **That is the stack working as a stack should: the second half is trivial once the first is done.** **Authors are unchanged** (`Luiz Neves` for `#3233`, yours here), **so these can be pushed to the original branches or merged from the fork** — whichever the maintainer prefers. **And the order is not a preference**: **`#3253` cannot go first** (`git merge-base --is-ancestor pr/3233 pr/3253` says yes), **so the two land together or the second one waits.** **The same two branches also leave `tests/test_win_launchers.py` consistent for `#3104`**: **it conflicts in `play-nvidia.ps1` only** — **one hunk, its own rebase.** Written with an AI assistant.
fiestorra commented 2026-12-03 02:03:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T02:03:13Z.


Re-stacked on the new base: 5798bac1e, one commit on 3c2a1c728, and it rebased with no conflict at all

After #3182 moved tests/test_win_launchers.py, both halves of this stack had to move. The lower one is now 3c2a1c728 on d15e048a7, and this one is one commit on top of it:

git rebase --onto 3c2a1c728 fcaed1015     Successfully rebased, no conflict
head 5798bac1e · 3 files changed, 137 insertions(+), 6 deletions(-)   against the lower branch
python tests/test_win_launchers.py        Ran 12 tests — OK
python tests/test_launcher_quoting.py       2 tests — OK

No conflict this time, and that is the point of the stack: the contested file was resolved once, in #3233's rebase, and this pull request's own commit — 51bb0da2d, the quoting fix — applies on top of it without touching that resolution.

So the branch is: https://github.com/fiestorra/leonida-carry/pull/new/pr-3253-rebased, head 5798bac1e, author unchanged (Luiz Neves), and it is one commit on top of #3233's rebase.

The order is not a preference and never was: #3253 carries #3233 (git merge-base --is-ancestor: yes), so it cannot go first — but once #3233 merges, this one is a single commit and its own tests are two files.

Two branches, two rebases, and the second was free — which is what a stack is for, and what the four of these cost nobody when they are merged in order.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365031926 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7365031926). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T02:03:13Z. --- ## Re-stacked on the new base: `5798bac1e`, one commit on `3c2a1c728`, and it rebased with no conflict at all **After `#3182` moved `tests/test_win_launchers.py`, both halves of this stack had to move.** **The lower one is now `3c2a1c728` on `d15e048a7`, and this one is one commit on top of it**: ``` git rebase --onto 3c2a1c728 fcaed1015 Successfully rebased, no conflict head 5798bac1e · 3 files changed, 137 insertions(+), 6 deletions(-) against the lower branch python tests/test_win_launchers.py Ran 12 tests — OK python tests/test_launcher_quoting.py 2 tests — OK ``` **No conflict this time, and that is the point of the stack**: **the contested file was resolved once, in `#3233`'s rebase, and this pull request's own commit — `51bb0da2d`, the quoting fix — applies on top of it without touching that resolution.** **So the branch is: `https://github.com/fiestorra/leonida-carry/pull/new/pr-3253-rebased`, head `5798bac1e`, author unchanged (Luiz Neves), and it is one commit on top of `#3233`'s rebase.** **The order is not a preference and never was**: **`#3253` carries `#3233`** (`git merge-base --is-ancestor`: yes), **so it cannot go first — but once `#3233` merges, this one is a single commit and its own tests are two files.** **Two branches, two rebases, and the second was free** — **which is what a stack is for, and what the four of these cost nobody when they are merged in order.**
LouisRiverstone commented 2026-12-03 02:11:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-03T02:11:11Z.


Rebased with its stack: this PR is now one commit, bddb2e52e, on #3233's 5418b7fac (on main d15e048a7). The rebase applied with no conflict. tests/test_launcher_quoting.py (2), tests/test_win_launchers.py (12), tests/test_play_nvidia_menu_choice.py and tests/test_game_gate.py pass. With both .ps1 files put back from the commit below, the two quoting tests fail. Thanks @fiestorra and @merzleckeier.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7365179833 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7365179833). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-03T02:11:11Z. --- Rebased with its stack: this PR is now one commit, `bddb2e52e`, on #3233's `5418b7fac` (on `main` `d15e048a7`). The rebase applied with no conflict. `tests/test_launcher_quoting.py` (2), `tests/test_win_launchers.py` (12), `tests/test_play_nvidia_menu_choice.py` and `tests/test_game_gate.py` pass. With both `.ps1` files put back from the commit below, the two quoting tests fail. Thanks @fiestorra and @merzleckeier.
MoonEyes commented 2026-12-03 07:01:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T07:01:45Z.


This pull request has a merge conflict with current main (d9b618f10), so it can't be run in game or merged as it is. Could you merge the latest main into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370510380 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7370510380). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T07:01:45Z. --- This pull request has a merge conflict with current `main` (`d9b618f10`), so it can't be run in game or merged as it is. Could you merge the latest `main` into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head. AI-assisted (Claude Code).
LouisRiverstone commented 2026-12-03 11:52:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-12-03T11:52:01Z.


@MoonEyes rebased with its stack: this PR is one commit, 499088156, on #3233's 5fcc7ab9c (on main b053a1813). The rebase applied with no conflict. tests/test_launcher_quoting.py (2), tests/test_win_launchers.py (13), tests/test_play_nvidia_menu_choice.py and tests/test_game_gate.py pass. With both .ps1 files put back from the commit below, the two quoting tests fail. Clean-room check: exit 0.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7377282317 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7377282317). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-12-03T11:52:01Z. --- @MoonEyes rebased with its stack: this PR is one commit, `499088156`, on #3233's `5fcc7ab9c` (on `main` `b053a1813`). The rebase applied with no conflict. `tests/test_launcher_quoting.py` (2), `tests/test_win_launchers.py` (13), `tests/test_play_nvidia_menu_choice.py` and `tests/test_game_gate.py` pass. With both `.ps1` files put back from the commit below, the two quoting tests fail. Clean-room check: exit 0.
merzleckeier commented 2026-12-03 12:08:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T12:08:14Z.


Rechecked the rebased stack on b053a181 with #3233 5fcc7ab9, #3253 49908815, and #3258 d59f87a9. Under PowerShell 7.6.6 on Linux, the generated launch.ps1 started a synthetic launcher through the gate’s -File argument. Paths with spaces, ASCII apostrophes and all four typographic single quotes, the settings value, and the stub’s exit code all survived. I also ran #3253’s actual LEONIDA_MENU_ARGS through the Rust restart_process from #3303 5942d059. The restarted stub received the exact script, executable and -PcGlyphs paths. The two quoting tests passed with their platform guard adapted for Linux.

One existing follow-up in the generated launch.ps1. Set-Location still treats brackets in the checkout path as a wildcard. With synthetic sibling folders checkout [a] and checkout a, the stub ran from checkout a on both main and the stack. Set-Location -LiteralPath preserved the intended working directory in the same fixture.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7377683887 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7377683887). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T12:08:14Z. --- Rechecked the rebased stack on `b053a181` with #3233 `5fcc7ab9`, #3253 `49908815`, and #3258 `d59f87a9`. Under PowerShell 7.6.6 on Linux, the generated `launch.ps1` started a synthetic launcher through the gate’s `-File` argument. Paths with spaces, ASCII apostrophes and all four typographic single quotes, the settings value, and the stub’s exit code all survived. I also ran #3253’s actual `LEONIDA_MENU_ARGS` through the Rust `restart_process` from #3303 `5942d059`. The restarted stub received the exact script, executable and `-PcGlyphs` paths. The two quoting tests passed with their platform guard adapted for Linux. One existing follow-up in the generated `launch.ps1`. `Set-Location` still treats brackets in the checkout path as a wildcard. With synthetic sibling folders `checkout [a]` and `checkout a`, the stub ran from `checkout a` on both `main` and the stack. `Set-Location -LiteralPath` preserved the intended working directory in the same fixture. AI-assisted with OpenAI Codex.
EdenBendheim commented 2026-12-03 13:11:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-03T13:11:57Z.


Independent native Windows launcher compatibility verification — stock 300 s gate PASS, and exact emitted restart dry replay PASS (no interactive F1 restart).

Tested #3253 head 499088156977db9771b6aefbd0a37de650700b6b stacked on #3233 5fcc7ab9cf7cd671019b5b5e84171d46323b82f4, current main b053a1813c8980c4357d51bbe6e69a35dc8c476c, clean local merge cd7cddbaa398b915d81c20806ed406b3bda55128. The staged diagnostics,dlss,mimalloc executable SHA-256 0991cd2699da81a9944cbf84742a90389929fbe550a94368327a632102470b8c was built for #3235 on the same base; comparing the entire trees found differences only in the two launcher scripts and test files, so this is a runtime-equivalent binary, not a new exact-source build. Windows 11 Home 26200, RTX 3090 24 GB driver 610.88, Ryzen 9 5900X, 32 GB RAM.

  • Windows PowerShell 5.1: the two new quote tests FAIL with only the previous stack layer's launcher scripts restored, then both PASS after byte-identical restoration. #3233's PcGlyphs regression FAILS alone with main's play-nvidia script (12/13 pass), then 13/13 PASS after restoration. Menu choice 16/16, gate tests 35/35, clean-room and diff checks PASS.
  • A real stock gate generated launch.ps1 (UTF-8 BOM, zero AST parse errors, exact decoded cache path), then launched the application with a private cache path containing U+2019 and spaces and an absolute benign custom-glyph fixture path also containing U+2019 and spaces. All three documented existing prepared glyph references were used, so no prompt asset construction occurred. The private pipeline seed was verified by size and SHA-256 for 10 files before launch and saved back to the same nested cache. No custom glyph movie generation or visual glyph correctness claim.
  • Series S stretch, no DLSS/FG/precompile, native control and teleport succeeded, but later marks moved away from the target, so sustained placement at the intended busy location was not established. World 303.858 s; actual exit 0, target stop, cache saved, title suspended, never killed; no crash/device loss. World+60 2621 present intervals, median/p5 FPS 14.89/4.98, p95/p99 frame ms 200.89/538.67, max world gap 5.934 s. Peak private 23370 MiB, min commit headroom 6197 MiB, VRAM 7275/23558 MiB. Compatibility smoke, no performance attribution.
  • Exact emitted LEONIDA_MENU_ARGS from this launch was passed to the stock play-nvidia script through Windows PowerShell 5.1 -Command with -DryRun appended. Exit 0; intact typographic-apostrophe PcGlyphs path, MenuRestart, private cache/data, three prepared glyph references and Series S stretch/no FG/no precompile all confirmed. F1 SAVE AND RESTART itself was not clicked and no live restarted child was measured. This supplies real initial-launch compatibility for the stacked changes and synthetic replay for both, not an interactive restart pass.

AI-assisted: GPT-6.2 Sol. Independent parent recomputation verified the runtime statistics and test counts. No game content or private paths attached.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7379458359 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7379458359). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-12-03T13:11:57Z. --- **Independent native Windows launcher compatibility verification — stock 300 s gate PASS, and exact emitted restart dry replay PASS (no interactive F1 restart).** Tested #3253 head `499088156977db9771b6aefbd0a37de650700b6b` stacked on #3233 `5fcc7ab9cf7cd671019b5b5e84171d46323b82f4`, current main `b053a1813c8980c4357d51bbe6e69a35dc8c476c`, clean local merge `cd7cddbaa398b915d81c20806ed406b3bda55128`. The staged diagnostics,dlss,mimalloc executable SHA-256 `0991cd2699da81a9944cbf84742a90389929fbe550a94368327a632102470b8c` was built for #3235 on the same base; comparing the entire trees found differences only in the two launcher scripts and test files, so this is a **runtime-equivalent** binary, not a new exact-source build. Windows 11 Home 26200, RTX 3090 24 GB driver 610.88, Ryzen 9 5900X, 32 GB RAM. - Windows PowerShell 5.1: the two new quote tests FAIL with only the previous stack layer's launcher scripts restored, then both PASS after byte-identical restoration. #3233's PcGlyphs regression FAILS alone with main's play-nvidia script (12/13 pass), then 13/13 PASS after restoration. Menu choice 16/16, gate tests 35/35, clean-room and diff checks PASS. - A real stock gate generated launch.ps1 (UTF-8 BOM, zero AST parse errors, exact decoded cache path), then launched the application with a private cache path containing U+2019 and spaces and an absolute benign custom-glyph fixture path also containing U+2019 and spaces. All three documented existing prepared glyph references were used, so no prompt asset construction occurred. The private pipeline seed was verified by size and SHA-256 for 10 files before launch and saved back to the same nested cache. No custom glyph movie generation or visual glyph correctness claim. - Series S stretch, no DLSS/FG/precompile, native control and teleport succeeded, but later marks moved away from the target, so sustained placement at the intended busy location was not established. World 303.858 s; actual exit 0, target stop, cache saved, title suspended, never killed; no crash/device loss. World+60 2621 present intervals, median/p5 FPS 14.89/4.98, p95/p99 frame ms 200.89/538.67, max world gap 5.934 s. Peak private 23370 MiB, min commit headroom 6197 MiB, VRAM 7275/23558 MiB. Compatibility smoke, no performance attribution. - Exact emitted LEONIDA_MENU_ARGS from this launch was passed to the stock play-nvidia script through Windows PowerShell 5.1 -Command with -DryRun appended. Exit 0; intact typographic-apostrophe PcGlyphs path, MenuRestart, private cache/data, three prepared glyph references and Series S stretch/no FG/no precompile all confirmed. **F1 SAVE AND RESTART itself was not clicked and no live restarted child was measured.** This supplies real initial-launch compatibility for the stacked changes and synthetic replay for both, not an interactive restart pass. AI-assisted: GPT-6.2 Sol. Independent parent recomputation verified the runtime statistics and test counts. No game content or private paths attached.
MoonEyes commented 2026-12-03 15:26:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T15:26:53Z.


In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #3220, #3240, #3253 and #3257 merged into main b053a1813; this PR tested at its current head 499088156. Series S 1080, DLSS FG 2x, launched through play-nvidia.ps1 with -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed, scripted walk, 330 s.

  • Result: PASS. No device lost, no crash, no unhandled exception; the run ended on its time limit.
  • Median over the last 240 s: 17.3 fps (main alone today: 16-17.5); 19.9 frames per 1000 over 100 ms.
  • Not covered: the F1 menu was not pressed by hand, and this does not test the specific path the PR changes beyond a normal launch.

AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383157442 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3253#issuecomment-7383157442). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T15:26:53Z. --- In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #3220, #3240, #3253 and #3257 merged into main `b053a1813`; this PR tested at its current head `499088156`. Series S 1080, DLSS FG 2x, launched through `play-nvidia.ps1` with `-SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed`, scripted walk, 330 s. - Result: **PASS**. No device lost, no crash, no unhandled exception; the run ended on its time limit. - Median over the last 240 s: 17.3 fps (main alone today: 16-17.5); 19.9 frames per 1000 over 100 ms. - Not covered: the F1 menu was not pressed by hand, and this does not test the specific path the PR changes beyond a normal launch. AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.
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
ProjectLeonida/mandy!3253
No description provided.