scripts: game-abba.ps1 runs an in-game ABBA comparison over gate runs (D3D12-GAME-ABBA) #2804
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2804"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-12-01T00:27:55Z.
Claimed in the coordination issue as: D3D12-GAME-ABBA (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7293606762)
What and why
An A/B between separate runs needs a balanced order, warm caches, the same exe throughout, and every run checked before it counts. Testers still do this by hand, one gate run at a time. This adds the runner that #2783's
planandabbawere written for:scripts/game-abba.ps1takes the order fromd3d12_ab_compare.py plan: warm-up runs of each arm, then discarded runs, then-Pairspairs in ABBA order. It runs each slot throughscripts/game-gate.ps1(#2782).-Data,-MoreA,-MoreB.-CheckoutA,-DataA,-CheckoutB,-DataB. Each arm runs its own checkout's gate and exe, with a data folder of its own, because the caches differ.d3d12_ab_compare.py checkchecks each measured run. A run counts only if all of these hold:-MoreA/-MoreBsettings show in the runtime's settings line (#2775), when the run has one. A value the line hides counts as shown;abbauses:checkis built on it).-MoreA/-MoreBare read once, the gate's way (d3d12_ab_compare.py settings,check --more): names and values trimmed, the last value of a name kept. Items the settings line could never show (no=, a name that is notLEONIDA_..., an empty value, a space or more than 120 characters in a value the line shows as it is) are refused before the first run. The rule for "shows as it is" mirrorsleonida.rs, pinned by a contract test. Messages name an item by its position, never by its text.summary.jsonincluded) gets anab-excluded.txt, whichabbanow leaves out, and its slot runs again (-Retry, 1). A failed warm-up or discarded run stops the series at once.abbainto<Out>/comparison.txtandcomparison.json. Every comparator call's exit code is checked before its output is used. Exit 0 with a comparison, 1 without one.abba.jsonrecords the arms' inputs (-MoreA,-MoreB,-More,-PlayArgs, the folders), what ran, which exe and commit, and what was left out and why. It is written at the start and after each run, beside itself then moved over, so an error leaves a record. The files the runner writes are LF.-Outstarts clean, but only when itsabba.jsonis this runner's. Anything else there is refused and kept. Every folder and each checkout'sscripts\game-gate.ps1is checked before anything is deleted.-DryRunprints the plan and every gate command without starting anything.abbacan never compare);-Outinside a checkout or holding one, or overlapping-Game,-DataTemplateor a data folder;-Retrybelow 0.-More/-PlayArgsare not passed to the gate.#Requires -Version 7.0).docs/measuring_fps.md(section 3) anddocs/game_gate.mddescribe it.Tested
On Windows 11 Pro 10.0.26300, rebased on
main8422def75:tests/test_game_abba.py, 23 tests. Besides the dry runs and refusals, a stand-in gate that writesrun.jsonandsummary.jsondrives the whole path (gate, check, retry, outputs): a failed run left out and run again in the A B B A order, a cut summary, a failed comparator, a failed warm-up, too few runs left, runs measuring another exe or other settings, a re-run into the same-Out, an-Outthe runner did not write, the record's fields and bytes.tests/test_d3d12_ab_compare.py, 26 tests:check(each reason to leave a run out, an unreadable summary, a run without a frame rate), the settings reader (hidden values, last value of a name, items named by position), the contract onleonida.rs, and an excluded run left out byabba.test_game_gate.py,test_tool_stdout_encoding.py,test_ci_registration.py, the docs tests,scripts/check_no_game_data.pyon the changed files, andgit diff --checkare clean.main8f41d7d01code: a null A/B,LEONIDA_FPS_LINE=1against=0(the top-left frame-rate line). One exe with two settings, 4 pairs, 120 s in the world per run, with the driver mod from #2784 enabled through-More.GPUs tested: NVIDIA GeForce RTX 3080 10 GB, driver 32.0.16.2140, Windows 11 Pro 10.0.26300
AI-assisted: yes. Claude Code (Claude Fable 5.2 and Claude Opus 5.5); a separate Claude Opus 5.5 agent reviewed the diff before this push.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-01T00:30:08Z.
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12, head
413212ff9, mainb7a1be296. CPU only, no pwsh and no game on this machine.MEASURED
test_d3d12_ab_compare.py, the four newRunstests fail:checkdoesn't exist on main.test_game_abba.py,test_it_needs_powershell_7andtest_no_variable_takes_a_parameters_name_in_another_casefail: the script doesn't exist on main.test_d3d12_ab_compare.py18 passed;test_game_abba.py2 passed, 4 skipped).test_game_abba.py:50, :65, :81, :97, all "needs Windows and pwsh". So the parts ofgame-abba.ps1that run are not exercised here. Only the static checks ran (the#Requires -Version 7.0line and the variable/parameter case clash).READ IN CODE
scripts/game-abba.ps1starts with#Requires -Version 7.0, consistent with #2805 doing the same forgame-gate.ps1.tools/d3d12_ab_compare.pygainscheck_run()and achecksubcommand (run,--exe,--settingrepeatable), which the script calls for each measured run.ASSUMED
abba.json) needs a Windows run, or at least-DryRununder pwsh 7. Not reproduced here.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T01:18:00Z.
Verified on Windows, with the control that matters: the tests fail when the change is reverted.
Cherry-picked onto
maind920d850din a clean worktree, Python 3.13.14:python -m pytest tests/test_game_abba.py + tests/test_d3d12_ab_compare.py -q with this pull request: 6 + 18 passed with scripts/game-abba.ps1 y tools/d3d12_ab_compare.py from main: 6 failed (script borrado) y 4 failed (tool de main)So the new tests are tied to the change and not to each other's fixtures. No part of this needed a GPU, a display or game data, which is what the gate tests are built for.
What I could not test: the script against a real run folder -
game-abba.ps1drives one, and this machine has the game but not the gate harness the other contributors used, so the shape is proven and the run is not.AI-assisted: yes - DeepSeek v4.1 (flash), applied and ran both arms on the machine above.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T05:49:33Z.
Review: COMMENTED
Verified with pwsh here: 6/6
test_game_abba.py, 18/18test_d3d12_ab_compare.py, 21/21test_game_gate.py. The dry runs and a stub-gate end-to-end run confirm the shape — warm-up A, warm-up B, the discarded run(s), then A,B,B,A — a failed measured run is left out and retried, andcomparison.txt/json+abba.jsonare written.plan(tools/d3d12_ab_compare.py:268-275) alternates A,B / B,A andabbarequires an even A-first count (:170-172), so a synthetic 1 ms/run drift yields effect 0.00 under ABBA, and an ABAB order is rejected as unbalanced (the linear-trend fallback also gives 0).One real failure-path bug: a re-run into the same
-Outkeeps a staleab-excluded.txt. Labels are deterministic, the gate reuses the folder (New-Item -ItemType Directory -Force), andscripts/game-abba.ps1:112only writes the exclusion. In the stub run, the first invocation's06-measured-Bfailed and was excluded; the second invocation's06-measured-Bpassed, butcomparison.txtstill saidleft out (excluded: gate FAIL)whileabba.jsonsaidleft_out: null— the record and the comparison disagree and a good run is silently dropped. Remove$dir(or at least its exclusion file) before each attempt, or require a fresh-Out. The previous run'sdatacopy is left behind the same way.Two smaller ones:
-Outinside the runner's checkout is accepted: the guard (:65-67) loops only-CheckoutA/-CheckoutB; add$repo. I passed-Outinside the runner's tree and the dry run was happy.Coverage: all six tests are dry runs or refusals — deleting the
ab-excluded.txtwrite keeps them green, so the gate/check/retry/output path is untested. A stubgame-gate.ps1writingrun.json/summary.json(the shapetests/test_game_gate.py'sFakealready uses) would cover it and the stale-file case. Alsoabba.jsonrecords schema/builds/pairs/runs but not-MoreA/-MoreB/-PlayArgs, so the arms' inputs live only in the run folders.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T12:00:16Z.
I checked
413212ff9onbf30e2585. All 18 comparison tests passed. I also forced the ABBA dry-run tests to execute on Linux with PowerShell 7.4.21. Five of six passed. The checkout-containment case failed because the check appends a Windows path separator on Linux. Using[IO.Path]::DirectorySeparatorCharfor both paths passes all six with the same fixtures, without launching a game.This is a portability note for Linux dry runs. The native Windows verification in the other comments covers the supported launch path.
AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-02T00:39:48Z.
The two-build cache guard accepts the same Windows directory if one argument ends in a separator. At
413212ff9I ran game-abba.ps1 with two distinct checkout directories, -Pairs 2 and -DryRun. Passing the same existing folder to -DataA and -DataB exited 1 before planning. Appending a backslash to just -DataB exited 0 and printed all eight gate commands. Python os.path.samefile confirmed both arguments named the same directory. A control using separate data directories also planned eight commands. This would let both builds write their caches to the same place in a measured run. For the reproduced spelling, normalize optional trailing separators on both absolute paths with Path.TrimEndingDirectorySeparator before comparing, and cover it alongside the exact-spelling refusal. No game was launched. Codex-assisted.Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-02T00:41:12Z.
A truncated summary can make game-abba.ps1 exit 0 with an empty comparison.json. On Windows at
413212ff9I ran the unmodified runner and comparator with a synthetic gate, -Pairs 2 and -Retry 1. The first measured A wrote a valid run.json then exited 1. With summary.json absent the runner recordedno summary, retried that slot, and produced both pairs. With the same failed gate writing a truncated JSON object instead,checkraised JSONDecodeError; the runner recorded left_out=null, skipped the retry, and the final text and JSON comparison commands both raised the same error. The runner still exited 0. Treating an unreadable summary as an exclusion would allow the existing retry. Checking the comparator exit codes before consuming their output would also keep failed comparisons from being published as successful. All other synthetic slots had valid passing summaries. Codex-assisted.Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-12-02T04:13:53Z.
Rebased on
main8422def75and changed after the reviews of @KelboLive, @andrew-ai and @merzleckeier (headac3e21757):-Out: it starts clean, but only when itsabba.jsonis this runner's (the schema marks it). Anything else in-Outis refused and kept. Every folder and each checkout'sscripts\game-gate.ps1is checked before anything is deleted. A staleab-excluded.txtcan no longer drop a good run.summary.json: an unreadable summary is a left-out run, so its slot runs again. Every comparator call's exit code is checked before its output is used. The exit code is 0 with a comparison and 1 without one, and-Pairsmust be 3 or more, because 2 pairs can never be compared.-Outmay not overlap a checkout (the runner's own included),-Game,-DataTemplateor a data folder, in either direction. The separator comes from[IO.Path]::DirectorySeparatorChar.-MoreA/-MoreBare read once, the gate's way, and the last value of a name counts. Items the settings line could never show are refused before the first run. Values it hides (a folder with a space, a long path) count as shown, mirroringleonida.rsunder a contract test.checkusesabba's own definition of a run that counts.abba.jsonrecords-MoreA,-MoreB,-More,-PlayArgsand the folders. It is written as the run goes, beside itself and then moved over. The files are LF. Empty-More/-PlayArgsare not passed to the gate, which matters under PowerShell 7.0-7.2.tests/test_game_abba.py, 23 tests.tests/test_d3d12_ab_compare.pyhas 26 tests. Each fix has a test that fails without it.AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5; a separate Claude Opus 5.5 agent reviewed the diff before this push).
Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-12-02T10:13:05Z.
RUN (independent run on Windows, #2804 head
33d08e5d6, merged locally intomaina917c54d6withgit merge --no-ff, no conflicts. CI on the head: change-scope, check, linux-python-and-viewer, no-game-data and semantic-tests all pass.)The game was not started: each slot of a real series is a gate run, which starts the game, so only the dry runs and the tests' stand-in gate ran here. No cargo.
Commands, unittest files run with
python -Ias the CI's standalone loop runs them, PowerShell 7 present:python -I tests/test_d3d12_ab_compare.py -v: main 14 OK; merge 26 OK.python -I tests/test_game_abba.py -v: merge 23 OK in 148 s, none skipped (dry runs, refusals, and the stand-in gate's whole path).main's tools with this pull request's two test files:test_d3d12_ab_compare.py26 run, 12 errors, exactly the 12 new tests (nocheck_run,arm_settings,EXCLUDEDorSOURCES, nocheckcommand);main's 14 pass.test_game_abba.py23 run, 19 failures and 4 errors, all becausescripts/game-abba.ps1does not exist onmain. That red only shows the file is new; the mutations below are what show the tests read its behaviour.[System.Management.Automation.Language.Parser]::ParseFileonscripts/game-abba.ps1: 0 errors.scripts/run_standalone_tests.py -j 4(the 13tests/test_docs_*.py,test_i18n_index.py,test_design_contract_rows.py,test_ci_registration.py,test_tool_stdout_encoding.py,test_game_gate.py,test_d3d12_ab_compare.py,test_red_green.py, andtest_game_abba.pyon the merge): main 20 files, 0 failed; merge 21 files, 0 failed. The contract test on theleonida.rsrules passes on today'smain.Mutations of the merge, the file restored after each (the Python ones run with
test_d3d12_ab_compare.py, the PowerShell ones withtest_game_abba.py):checklets the cache get warm 60 s later in the world (warm > world + AFTER_WORLD_S + 60): killed (test_check_leaves_out_what_does_not_measure_the_arm).arm_settingskeeps a name's first value instead of its last: killed (test_the_last_value_of_a_name_counts_as_the_gate_keeps_it).test_a_value_the_line_hides_counts_as_shown,test_check_keeps_a_good_run_and_gives_its_exe).run_valueignoresab-excluded.txt: killed (test_a_run_the_runner_left_out_is_left_out).-Pairsrefused below 2 instead of 3: killed (test_refusals).-Retryignored): killed (4StubGatetests, among themtest_a_cut_summary_is_left_out_and_its_slot_runs_again).test_a_failed_warm_up_or_discarded_run_stops_at_once,test_a_re_run_deletes_only_what_the_runner_wrote).Get-FolderPathwithoutTrimEndingDirectorySeparator(the ending-separator case raised in review): killed (test_refusals).-Outthis runner did not write is no longer refused: killed (test_an_out_the_runner_did_not_write_is_refused_and_kept).9 mutations, 9 killed.
Not covered here: the game, so no real series (real gate runs, real
summary.jsonand settings lines, a real build's exe hash, two-builds mode with two real checkouts and their caches), PowerShell on Linux (the separator test ran on Windows only), macOS.Verdict: PASS.
Machine: Windows 11 Pro 26300, i9-13900K, 64 GB, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (the CI uses 3.12), PowerShell 7.6.10.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T10:25:19Z.
Merging. Head
33d08e5d6merges cleanly withmain80910637fand does not force a rebase of #2566. Independent check on head33d08e5d6: enlight3d's red/green on maina917c54d6+ PR (12 new compare tests and test_game_abba red on main, 26 and 23 green, 9/9 mutations killed, comment 7342139940); every review point from KelboLive, andrew-ai and merzleckeier answered and fixed before this head; CI 5/5 green incl. no-game-data; no conflict with current main; item D3D12-GAME-ABBA claimed in #2570. Merged by MoonEyes.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-02T10:38:37Z.
VERIFY-2804 — Linux, Fedora 45, Python 3.15.2, no GPU device, no game files, no title, no Windows
Verdict: PASS with caveats. The change adds a runner (
scripts/game-abba.ps1) that drives the repository's own game gate in a balanced order and a checker (d3d12_ab_compare.py check) that leaves out a measured run that does not measure its arm. The checker's rules mirror the runtime's own settings line, and the repository's own contract test proves that mirror has not drifted. The caveats: the pull request now conflicts withmain; the 19 behavioural tests of the runner are Windows-gated and could not be run here; and the settings comparison is silently skipped when the runtime wrote no settings line.head
33d08e5d("tests: test_game_abba.py reads paths and errors the same on a CI runner (review)"), baseorigin/main=80910637f, merge base8422def75. Six files, +1014/−7:scripts/game-abba.ps1(+244, new),tests/test_game_abba.py(+483, new),tools/d3d12_ab_compare.py(+132),tests/test_d3d12_ab_compare.py(+126),docs/measuring_fps.md(+31),docs/game_gate.md(−2/+3).1. What it changes
tools/d3d12_ab_compare.py— two new subcommands on the existing comparison tool:check <run> [--exe=<sha16>] [--more=<arm's settings>](line 308,check_run) — prints JSON{"excluded": <why or null>, "exe": <sha16>}. A run is left out whenabbawould leave it out anyway (run_value, line 157: no summary, unreadable summary, a failed gate, no frame rate), or when it does not measure its arm: the pipeline cache was not warm before the measured window (warm_at_sis None, or later thanworld_at_s + AFTER_WORLD_S, line 320), its exe is not its arm's, or one of the arm's settings does not show in the runtime's settings line with the arm's value.settings --more=<text>(line 273,arm_settings) — splits an arm's-Moretext the way the gate reads it (split at;, name and value trimmed, a name's last value kept) and names each item it could never show, by position and byLEONIDA_name, never by its text.The runtime's settings-line rules are mirrored in
PLAIN/SHOWN/SOURCES(lines 72–80), andSOURCESquotes the runtime's own source lines so that a change there breaks a test.scripts/game-abba.ps1— the runner: it takes the order fromd3d12_ab_compare.py plan(warm-ups, discarded runs, then ABBA pairs), runs each slot throughscripts\game-gate.ps1, and checks each measured run. One exe with two settings (-Data,-MoreA,-MoreB) or two builds (-CheckoutA/-DataAagainst-CheckoutB/-DataB, each arm running its own checkout's gate, with a data folder each). A run left out getsab-excluded.txtin its folder (line 221) and its slot runs again (-Retry). The runner refuses before any run: an-Outinside a checkout or holding one, an-Outoverlapping-Game/-DataTemplate/a data folder, fewer than 3 pairs, an arm setting the settings line could never show (lines 114–119), and an-Outholding files it did not write.docs/measuring_fps.mdsection 3 anddocs/game_gate.md— the runner is documented, and the "Not in this version" list no longer says "An ABBA runner over several runs".2. The claims it makes, and which ones I checked
tools/game_gate.py:28setsAFTER_WORLD_S = 60.0and the tool imports exactly that constant (tools/d3d12_ab_compare.py:60), so the two cannot drift apart. The gate'swarm_at()(tools/game_gate.py:206) returns the first time in the world from which 60 s passed with nothing being made, sowarm_at_s > world_at_s + 60does mean that a pipeline was made inside the measured window. ✓scripts/game-abba.ps1:200-201keeps the exe of the arm's first run (if (-not $exes.ContainsKey($slot.Arm))) and passes it tocheckas--exe(line 215). ✓-MoreA/-MoreBsettings show in the runtime's settings line" — checked: the runner passes--more=$own, the arm's own text only (line 215), and the checker compares each of those names against the run'ssettingsblock, which is whattools/game_gate.py:428writes intosummary.jsonfrom the runtime's settings line. A value the runtime hid (<hidden, N chars>) counts as shown (line 329), as documented. ✓scripts/game-gate.ps1:130splits-Moreat;into a hashtable, so the last value of a name wins;arm_settingsdoes the same (line 291:last.pop(name, None); last[name] = (position, value)). ✓-More(split at;, name and value trimmed)" — checked: the gate trims both ($k.Trim(),$v.Trim()), andarm_settingsdoespart.strip()on both. ✓d3d12/apps/leonida/src/leonida.rs:52-81(settings_line): a name must start withLEONIDA_(the tool requires the whole name to beLEONIDA_plus capitals, digits and_), a value is shown as it is only when every character is an ASCII letter or digit or one of._,:+=*-(the tool'sPLAIN), and a value longer than 120 characters is cut (the tool'sSHOWN). ✓const SHOWN: usize = 120;to119and the contract testtest_the_runtime_still_writes_settings_by_the_rules_mirrored_herefailed with "no longer says 'const SHOWN: usize = 120;'"; I reverted the change. ✓mainand merges cleanly" — no longer true: the pull request is rebased on8422def75,mainis now80910637f, and the merge conflicts —docs/game_gate.mdonly, both sides having edited the "Not in this version" list (git merge-tree --write-treereports "自动合并 docs/game_gate.md / 冲突(内容)"). The API agrees:mergeable_state: dirty. The checklist item was true when the body was written. Should-fix (rebase).#Requires -Version 7.0(line 1) and the tests check it (test_it_needs_powershell_7). There is nopwshon this machine, so the script was read, not run. ✗ not verified here.3. What the tests do here
The repository's own red/green tool:
python3 -I scripts/red_green.py 2804 --work-dir /home/shangli/oc-workspace/gta6/rg-2804— verdict "red then green": 15 tests go from red to green (test_the_runtime_still_writes_settings_by_the_rules_mirrored_here, the ninetest_check_*/test_settings_*cases intests/test_d3d12_ab_compare.py, and four static checks of the script), 14 pass on both sides, 1 only on green (test_check_prints_json), 0 regressions.python3 -I tests/test_d3d12_ab_compare.py— 26 tests, OK.python3 -I tests/test_game_abba.py— 23 tests: 19 skipped, 4 OK. The 19 skipped are the whole behavioural class, gated by@unittest.skipUnless(os.name == "nt" and PWSH, ...)(tests/test_game_abba.py:261): they drive the runner against a stand-in gate through PowerShell, and the gate stubs use Windows-only pieces (a.cmdwrapper that fails one comparator command,tests/test_game_abba.py:58). The 4 that run are static checks of the script's text (the#Requiresline, no parameter named like a variable in another case, the path-separator use, and the write-beside-then-move rule).What the checker does, run by hand on a synthetic
summary.jsonin the gate's shape (I wrote it by hand fromtools/game_gate.py:360-452):checksays{"excluded": null, ...}pipelines were made in the measured windowLEONIDA_RELAY=1in the settings line, the arm asking for2LEONIDA_RELAY shows another valueLEONIDA_Xin the settings line, the arm asking for itLEONIDA_X is not in the settings lineanother exe than its arm's first runEach of the five answers is the one the pull request's description promises.
4. Anything wrong in the change (with the file and line)
Nothing that changes the verdict. Four observations for the maintainer:
scripts/game-abba.ps1conflicts withmain(see above) — a rebase is needed; the conflict is indocs/game_gate.mdonly.tools/d3d12_ab_compare.py:324:for name, value in arm_settings(more)[0] if shown else ()). The gate's summary writes"settings": run.settings or {}(tools/game_gate.py:428), and a run with no settings line is only a warning in the gate (no_settings_line,tools/game_gate.py:417), so such a run passes the gate and is then counted by the comparison without its arm's settings ever being checked. The description says the settings are checked "when the run has one", so this is as documented — but the skip is invisible in the output (the run is not marked as left out). Worth a word in the record, or a line in the summary.tools/d3d12_ab_compare.py:329): the runtime hides any value with a character outside._,:+=*-(a folder, a file), so an arm whose setting is a path is verified only in the sense that the setting is present — its value is not checked at all, and the length in<hidden, N chars>is not compared either. The description says exactly this ("a value it hid counts as shown"), so it is a documented limitation rather than a defect, but it is the case the repository's own settings line was built to hide, so the arm's identity rests on the setting being there at all.VICTORY_name is refused, although the runtime still accepts it and renames it (leonida.rs:31-43,apply_settings_names):arm_settingsrequires the whole name to matchLEONIDA_[A-Z0-9_]+(line 71), so an arm written the old way is refused before the first run. This is the safe direction (the old name would appear in the settings line asLEONIDA_X=… (from VICTORY_X), which the gate's reader would not match), but the refusal message says only that the name is notLEONIDA_-shaped, which does not tell the user that the older spelling would have worked.5. What I did not check
pwshon this machine, soscripts/game-abba.ps1was read, not run. The 19 behavioural tests of the runner — the plan and the gate commands (-DryRun), the refusals, a stand-in gate that drives the whole path (a failed run left out and run again, a cut summary, a failed comparator, a failed warm-up, too few runs left, a run measuring another exe or other settings, a re-run into the same-Out, an-Outthe runner did not write, the record's fields and bytes) — are gated onos.name == "nt"and could not run here. Their logic I checked by reading both the script and the test.abba,trend_fit, the Student-t interval) are pre-existing (#2783) and I did not re-derive them; this pull request adds the runner and the check around them.scripts/game-gate.ps1,tools/game_gate.py) was read where the check depends on it (warm_at,AFTER_WORLD_S, the settings line, the-Morehandling, the summary's fields), not run against a real run folder.ghCLI here).red_green.pyran the Python files the pull request changes. The docs and repository-hygiene suite (python3 -I -m unittest discover -s tests -p "test_docs_*.py") is 57 tests, OK, andscripts/check_no_game_data.pyon the six changed files is clean.AI-assisted: the report was written with MiniMax M3.1 Flash (the pull request's own author says it was written with Claude Code, and that a separate Claude Opus 5.5 agent reviewed the diff before the push).
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-12-02T11:07:46Z.
Rebased on
maina252854a2(head3df7430e3). The only conflict was the "Not in this version" list indocs/game_gate.md, where #2813 had removed the time series line. The resolution keeps this pull request's text for the route and the runner, without that line. Nothing else changed: the 7 commits are the same apart from that hunk.On Windows 11 at this head:
tests/test_game_abba.py23 OK,tests/test_d3d12_ab_compare.py26 OK,tests/test_game_gate.py35 OK (#2812 and #2813 included),test_text_write_line_endings,test_ci_registration,test_docs_repo_paths,test_docs_links,test_docs_cli_flagsOK, andcheck_no_game_data.pyclean on the six files.Thanks @enlight3d and @imShangLi for the runs. On @imShangLi's observations 2-4:
no_settings_line.VICTORY_name is refused rather than renamed.None of these changes what a series measures today. Making each one visible in the record (a flag per run, a clearer message for
VICTORY_) belongs in a follow-up pull request rather than in this head that has been verified.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T11:11:50Z.
Verified by OreoFR (oreofr-agent, AI-assisted; third-party red/green on the current head). Head
3df7430e3already contains maina252854a2: merging it in is a fast-forward with no conflicts. Windows 11, Python 3.12, CPU only, no game files.tests/test_d3d12_ab_compare.pytests/test_game_abba.pytests/test_game_gate.pytools/d3d12_ab_compare.pylacks what the new tests call, andscripts/game-abba.ps1does not exist on main.test_game_abba.pycases need PowerShell 7 (needs Windows and pwsh), which this PC does not have (Windows PowerShell 5.1 only). They were skipped on both sides. A green from a machine withpwshwould complete this.Safe to merge into main?
scripts/game-abba.ps1is a new script, andtools/d3d12_ab_compare.pyadds to an analysis tool.Not merged by me: maintainers decide.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T11:30:20Z.
Merging. Head
3df7430e3merges cleanly withmain40ac04183and does not force a rebase of #2566. Independent check on rebased head3df7430e3: OreoFR's red/green on this head (red: 12 and 4 errors with main's tools, green OK; 19 pwsh-only cases skipped on that machine, which enlight3d ran on the previous head33d08e5d6with the same 7 commits), comment 7343567236; the rebase only changed the 'Not in this version' list of docs/game_gate.md after #2813; CI 5/5 green incl. no-game-data; main CI green on40ac04183; no open review or question; item D3D12-GAME-ABBA claimed in #2570. Merged by MoonEyes.AI-assisted (Claude Code).