runtime/shims: shim PSM app-notification and WER file registration APIs (RT-PSM-APPNOTIFY-WER) #1240

Merged
piyonchu merged 1 commit from upstream-pr/1240 into main 2026-11-29 03:35:54 +00:00
piyonchu commented 2026-11-24 20:42:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by piyonchu on 2026-11-24T20:42:16Z.


Summary

Claim ID: RT-PSM-APPNOTIFY-WER

Adds runtime/shims/appnotify.cpp and runtime/test/appnotify_test.cpp (wired into runtime/CMakeLists.txt and scripts/build_runtime.ps1):

  • Shims RegisterAppConstrainedChangeNotification and UnregisterAppConstrainedChangeNotification across kernel32.dll, kernelbase.dll, twinapi.appcore.dll, and api-ms-win-core-psm-appnotify-l1-1-0/1.dll, returning distinct tracked registration handles, ignoring nullptr/foreign/already-freed handles cleanly on unregister, and using constant-initialized SRWLOCK + raw lists to avoid MSVC TLS init guards. (RegisterAppStateChangeNotification and UnregisterAppStateChangeNotification are left out so they do not collide with #769.)
  • Shims WerRegisterFile / WerUnregisterFile across kernel32.dll, kernelbase.dll, wer.dll, and api-ms-win-core-windowserrorreporting-l1-1-0/1.dll, tracking normalized GAME:/G:/T: and host paths in-process without mutating host WER state or creating files on disk.
  • Adds unit tests in runtime/test/appnotify_test.cpp executed via rt::shims::find.

Verification

  • Host: Windows 11 (10.0.26100 SDK), MSVC (RelWithDebInfo), rebased onto cont/main (871e4b8b9), commit b607337fd.
  • ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure: 100% tests passed out of 148 (including #83 appnotify), with 7 game-data tests skipped (LEONIDA_GAME_DIR unset) and 2 gameinput tests disabled (no SDL3).
  • python -I tests/test_build_runtime_fallback.py: passed (10/10).
  • python -I scripts/check_no_game_data.py ... and git diff --check cont/main..HEAD: clean.
  • No game files used; CPU runtime test only (no GPU required). AI-assisted.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479993723 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1240). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-24T20:42:16Z. --- ### Summary Claim ID: `RT-PSM-APPNOTIFY-WER` Adds `runtime/shims/appnotify.cpp` and `runtime/test/appnotify_test.cpp` (wired into `runtime/CMakeLists.txt` and `scripts/build_runtime.ps1`): - Shims `RegisterAppConstrainedChangeNotification` and `UnregisterAppConstrainedChangeNotification` across `kernel32.dll`, `kernelbase.dll`, `twinapi.appcore.dll`, and `api-ms-win-core-psm-appnotify-l1-1-0/1.dll`, returning distinct tracked registration handles, ignoring `nullptr`/foreign/already-freed handles cleanly on unregister, and using constant-initialized `SRWLOCK` + raw lists to avoid MSVC TLS init guards. (`RegisterAppStateChangeNotification` and `UnregisterAppStateChangeNotification` are left out so they do not collide with `#769`.) - Shims `WerRegisterFile` / `WerUnregisterFile` across `kernel32.dll`, `kernelbase.dll`, `wer.dll`, and `api-ms-win-core-windowserrorreporting-l1-1-0/1.dll`, tracking normalized `GAME:`/`G:`/`T:` and host paths in-process without mutating host WER state or creating files on disk. - Adds unit tests in `runtime/test/appnotify_test.cpp` executed via `rt::shims::find`. ### Verification - Host: Windows 11 (`10.0.26100` SDK), MSVC (`RelWithDebInfo`), rebased onto `cont/main` (`871e4b8b9`), commit `b607337fd`. - `ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure`: `100% tests passed out of 148` (including `#83 appnotify`), with 7 game-data tests skipped (`LEONIDA_GAME_DIR` unset) and 2 `gameinput` tests disabled (no SDL3). - `python -I tests/test_build_runtime_fallback.py`: passed (`10/10`). - `python -I scripts/check_no_game_data.py ...` and `git diff --check cont/main..HEAD`: clean. - No game files used; CPU runtime test only (no GPU required). AI-assisted.
aslan2142 commented 2026-11-25 01:51:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T01:51:58Z.


@piyonchu one overlap to sort out before this can go in:

  • The same two functions are shimmed in #769. This PR registers RegisterAppStateChangeNotification and UnregisterAppStateChangeNotification for api-ms-win-core-psm-appnotify-l1-1-0.dll and l1-1-1.dll (runtime/shims/appnotify.cpp, the APPNOTIFY_API table). #769 (RT-GDK-SPEECH-DISPLAY-LIFECYCLE, claimed at 04:11 UTC on 2026-11-24, before this one's 20:42 UTC) registers the same pair on the same two API sets.
  • Why it matters: the shim registry is a map keyed by DLL and name, so with both merged, which of the two implementations the title gets depends on the order of static initialisation, and it could differ between builds.
  • They don't do the same thing: #769 keeps the callbacks and runs them, with quiesced = TRUE, when the title's window is closed, then ends the run; this PR stores the registration and never calls it.
  • The request: please drop the RegisterAppStateChangeNotification / UnregisterAppStateChangeNotification pair from this PR, and keep the rest: the constrained-change pair and the WerRegisterFile shims are not in #769 and are welcome. If a test of yours covers the state-change pair (for example UnregisterAppStateChangeNotification(nullptr)), that case would fit into #769's lifecycle_test instead; say so there if you'd like it added.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7150048516 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1240#issuecomment-7150048516). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T01:51:58Z. --- @piyonchu one overlap to sort out before this can go in: - **The same two functions are shimmed in #769.** This PR registers `RegisterAppStateChangeNotification` and `UnregisterAppStateChangeNotification` for `api-ms-win-core-psm-appnotify-l1-1-0.dll` and `l1-1-1.dll` (`runtime/shims/appnotify.cpp`, the `APPNOTIFY_API` table). #769 (`RT-GDK-SPEECH-DISPLAY-LIFECYCLE`, claimed at 04:11 UTC on 2026-11-24, before this one's 20:42 UTC) registers the same pair on the same two API sets. - **Why it matters:** the shim registry is a map keyed by DLL and name, so with both merged, which of the two implementations the title gets depends on the order of static initialisation, and it could differ between builds. - **They don't do the same thing:** #769 keeps the callbacks and runs them, with `quiesced = TRUE`, when the title's window is closed, then ends the run; this PR stores the registration and never calls it. - **The request:** please drop the `RegisterAppStateChangeNotification` / `UnregisterAppStateChangeNotification` pair from this PR, and keep the rest: the constrained-change pair and the `WerRegisterFile` shims are not in #769 and are welcome. If a test of yours covers the state-change pair (for example `UnregisterAppStateChangeNotification(nullptr)`), that case would fit into #769's `lifecycle_test` instead; say so there if you'd like it added. AI-assisted (Claude Code, Claude Opus 5.5).
piyonchu commented 2026-11-25 02:08:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by piyonchu on 2026-11-25T02:08:18Z.


Thanks for catching the #769 overlap, @aslan2142! Updated #1240 (b607337fd) and rebased cleanly onto main (871e4b8b9):

  • Dropped RegisterAppStateChangeNotification and UnregisterAppStateChangeNotification from runtime/shims/appnotify.cpp and runtime/test/appnotify_test.cpp so there is no SHIM_TABLE registry collision with #769.
  • Kept RegisterAppConstrainedChangeNotification, UnregisterAppConstrainedChangeNotification, WerRegisterFile, and WerUnregisterFile, plus re-tested ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure (100% passed out of 148, #83 appnotify passed) and python -I tests/test_build_runtime_fallback.py (10/10 passed).

I also left a brief note on #769 with the negative test cases (nullptr registration pointer, null callback zeroing *Registration, nullptr/foreign-handle unregister) in case they are useful for lifecycle_test.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7150361373 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1240#issuecomment-7150361373). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-25T02:08:18Z. --- Thanks for catching the `#769` overlap, @aslan2142! Updated `#1240` (`b607337fd`) and rebased cleanly onto `main` (`871e4b8b9`): - Dropped `RegisterAppStateChangeNotification` and `UnregisterAppStateChangeNotification` from `runtime/shims/appnotify.cpp` and `runtime/test/appnotify_test.cpp` so there is no `SHIM_TABLE` registry collision with `#769`. - Kept `RegisterAppConstrainedChangeNotification`, `UnregisterAppConstrainedChangeNotification`, `WerRegisterFile`, and `WerUnregisterFile`, plus re-tested `ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure` (`100% passed out of 148`, `#83 appnotify` passed) and `python -I tests/test_build_runtime_fallback.py` (`10/10` passed). I also left a brief note on `#769` with the negative test cases (`nullptr` registration pointer, null callback zeroing `*Registration`, `nullptr`/foreign-handle unregister) in case they are useful for `lifecycle_test`.
piyonchu commented 2026-11-26 21:40:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by piyonchu on 2026-11-26T21:40:43Z.


Rebased onto latest main (fac8b4bb9, head commit 677379b01), resolving the scripts/build_runtime.ps1 fallback file list conflict cleanly (shims\xapu_queue.cpp + shims\appnotify.cpp).

Verified locally after rebase:

  • git diff --check cont/main..HEAD
  • python -I scripts/check_no_game_data.py runtime/CMakeLists.txt runtime/shims/appnotify.cpp runtime/test/appnotify_test.cpp scripts/build_runtime.ps1
  • cmake --build runtime/build --config RelWithDebInfo --target gta6rt appnotify_test
  • ctest --test-dir runtime/build -C RelWithDebInfo -R "^appnotify$" --output-on-failure (1/1 passed)
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7203956286 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1240#issuecomment-7203956286). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-26T21:40:43Z. --- Rebased onto latest `main` (`fac8b4bb9`, head commit `677379b01`), resolving the `scripts/build_runtime.ps1` fallback file list conflict cleanly (`shims\xapu_queue.cpp` + `shims\appnotify.cpp`). Verified locally after rebase: - `git diff --check cont/main..HEAD` - `python -I scripts/check_no_game_data.py runtime/CMakeLists.txt runtime/shims/appnotify.cpp runtime/test/appnotify_test.cpp scripts/build_runtime.ps1` - `cmake --build runtime/build --config RelWithDebInfo --target gta6rt appnotify_test` - `ctest --test-dir runtime/build -C RelWithDebInfo -R "^appnotify$" --output-on-failure` (1/1 passed)
zmasi commented 2026-11-28 21:51:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T21:51:55Z.


Independent Verification Report — 677379b018 + origin/main (a8465211fb)

Environment: Windows 11 (26200), AMD Ryzen 9 5950X, MSVC 19.44.35228 (x64, /std:c++20 /EHsc /W4 /permissive- /utf-8, Debug /Od /MDd & Release /O2 /MD, /link /OPT:NOREF).
Verdict: C++ shim & appnotify_test PASS (46/46); 2 minor hygiene/SDK items noted below — clean Git merge with origin/main (8690b4f8adf8).

1. Red -> Green Verification

  • Red (origin/main registry.cpp + #1240 appnotify_test.cpp): Fails immediately (rt::shims::find returns nullptr for RegisterAppConstrainedChangeNotification, UnregisterAppConstrainedChangeNotification, WerRegisterFile, and WerUnregisterFile).
  • Green (677379b018 + origin/main):
    • appnotify_test (Debug /Od /MDd & Release /O2 /MD): PASS (46 check(s), 0 failure(s)), 0 warnings under /W4 /permissive- (verifying SHIM_TABLE resolution across all 5 appnotify and 5 WER DLL names, null/sentinel/foreign/double unregister safety, 4-thread x 64-iteration concurrent register/unregister stress, and GAME:/G:/T:/.. traversal normalization).
    • python -I tests/test_ctest_registration.py & python -I tests/test_docs_encoding.py: PASS.
    • Verified zero SHIM_TABLE symbol overlap with lifecycle.cpp (RegisterAppStateChangeNotification / UnregisterAppStateChangeNotification remain solely in lifecycle.cpp).

2. Non-Blocking Hygiene & SDK Notes

  1. Accidental UTF-8 BOM in scripts/build_runtime.ps1:1: On origin/main, scripts/build_runtime.ps1 has no BOM (23 20 42...), whereas 677379b018 prepends a 3-byte UTF-8 BOM (ef bb bf 23 20 42...). Stripping those 3 leading bytes keeps git diff clean.
  2. WER_FILE_COMPRESSED (0x4) in wer_register_file (runtime/shims/appnotify.cpp:202): Windows SDK 10.0.26100.0 <werapi.h> defines WER_FILE_DELETE_WHEN_DONE = 0x1, WER_FILE_ANONYMOUS_DATA = 0x2, and WER_FILE_COMPRESSED = 0x4. Widening kWerKnownFlagsMask from 0x3u to 0x7u avoids returning E_INVALIDARG if a title passes WER_FILE_COMPRESSED.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246329405 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1240#issuecomment-7246329405). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T21:51:55Z. --- ### Independent Verification Report — `677379b018` + `origin/main` (`a8465211fb`) **Environment:** Windows 11 (`26200`), AMD Ryzen 9 5950X, MSVC `19.44.35228` (`x64`, `/std:c++20 /EHsc /W4 /permissive- /utf-8`, Debug `/Od /MDd` & Release `/O2 /MD`, `/link /OPT:NOREF`). **Verdict:** **C++ shim & `appnotify_test` PASS (`46/46`); 2 minor hygiene/SDK items noted below** — clean Git merge with `origin/main` (`8690b4f8adf8`). #### 1. Red -> Green Verification - **Red (`origin/main` `registry.cpp` + `#1240` `appnotify_test.cpp`):** Fails immediately (`rt::shims::find` returns `nullptr` for `RegisterAppConstrainedChangeNotification`, `UnregisterAppConstrainedChangeNotification`, `WerRegisterFile`, and `WerUnregisterFile`). - **Green (`677379b018` + `origin/main`):** - `appnotify_test` (Debug `/Od /MDd` & Release `/O2 /MD`): **PASS (`46 check(s), 0 failure(s)`)**, `0` warnings under `/W4 /permissive-` (verifying `SHIM_TABLE` resolution across all 5 appnotify and 5 WER DLL names, null/sentinel/foreign/double unregister safety, 4-thread x 64-iteration concurrent register/unregister stress, and `GAME:`/`G:`/`T:`/`..` traversal normalization). - `python -I tests/test_ctest_registration.py` & `python -I tests/test_docs_encoding.py`: **PASS**. - Verified zero `SHIM_TABLE` symbol overlap with `lifecycle.cpp` (`RegisterAppStateChangeNotification` / `UnregisterAppStateChangeNotification` remain solely in `lifecycle.cpp`). #### 2. Non-Blocking Hygiene & SDK Notes 1. **Accidental UTF-8 BOM in `scripts/build_runtime.ps1:1`:** On `origin/main`, `scripts/build_runtime.ps1` has no BOM (`23 20 42...`), whereas `677379b018` prepends a 3-byte UTF-8 BOM (`ef bb bf 23 20 42...`). Stripping those 3 leading bytes keeps `git diff` clean. 2. **`WER_FILE_COMPRESSED` (`0x4`) in `wer_register_file` (`runtime/shims/appnotify.cpp:202`):** Windows SDK `10.0.26100.0` `<werapi.h>` defines `WER_FILE_DELETE_WHEN_DONE = 0x1`, `WER_FILE_ANONYMOUS_DATA = 0x2`, and `WER_FILE_COMPRESSED = 0x4`. Widening `kWerKnownFlagsMask` from `0x3u` to `0x7u` avoids returning `E_INVALIDARG` if a title passes `WER_FILE_COMPRESSED`. AI-assisted.
piyonchu commented 2026-11-29 01:14:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by piyonchu on 2026-11-29T01:14:52Z.


Addressed both items and rebased onto cont/main (16f505304, head a3b3fe054), thanks @zmasi!

  1. UTF-8 BOM (scripts/build_runtime.ps1): Stripped the 3-byte UTF-8 BOM from scripts/build_runtime.ps1.
  2. WER_FILE_COMPRESSED (runtime/shims/appnotify.cpp, runtime/test/appnotify_test.cpp): Widened kWerKnownFlagsMask from 0x3u to 0x7u (supporting WER_FILE_COMPRESSED = 0x4) and added a corresponding test check in appnotify_test.cpp.

Verified locally after a3b3fe054:

  • python -I tests/test_text_encoding.py: Ran 2 tests ... OK
  • python -I tests/test_docs_encoding.py: Ran 1 test ... OK
  • python -I tests/test_ctest_registration.py: Ran 7 tests ... OK
  • ctest --test-dir runtime/build -C RelWithDebInfo -R "^appnotify$" --output-on-failure: 1/1 passed
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248657874 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1240#issuecomment-7248657874). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-29T01:14:52Z. --- Addressed both items and rebased onto `cont/main` (`16f505304`, head `a3b3fe054`), thanks @zmasi! 1. **UTF-8 BOM (`scripts/build_runtime.ps1`)**: Stripped the 3-byte UTF-8 BOM from `scripts/build_runtime.ps1`. 2. **`WER_FILE_COMPRESSED` (`runtime/shims/appnotify.cpp`, `runtime/test/appnotify_test.cpp`)**: Widened `kWerKnownFlagsMask` from `0x3u` to `0x7u` (supporting `WER_FILE_COMPRESSED = 0x4`) and added a corresponding test check in `appnotify_test.cpp`. Verified locally after `a3b3fe054`: - `python -I tests/test_text_encoding.py`: `Ran 2 tests ... OK` - `python -I tests/test_docs_encoding.py`: `Ran 1 test ... OK` - `python -I tests/test_ctest_registration.py`: `Ran 7 tests ... OK` - `ctest --test-dir runtime/build -C RelWithDebInfo -R "^appnotify$" --output-on-failure`: `1/1` passed
OreoFR commented 2026-11-29 01:41:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T01:41:53Z.


Verified by OreoFR

  • Base: main 5825b02ff + PR head a3b3fe054 (tested as a merge)
  • Test: ctest -R ^appnotify$
  • Red on main: n/a (new shim; the test needs shims/appnotify.cpp, absent on main)
  • Green with the PR: appnotify passes; gta6rt links with the new shim
  • gta6rt link: OK (gta6rt.exe builds and links; dumpbin /dependents shows the same DLLs as main, no network DLL)
  • Verdict: READY
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248954919 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1240#issuecomment-7248954919). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T01:41:53Z. --- **Verified by OreoFR** - Base: main `5825b02ff` + PR head `a3b3fe054` (tested as a merge) - Test: `ctest -R ^appnotify$` - Red on main: n/a (new shim; the test needs `shims/appnotify.cpp`, absent on main) - Green with the PR: `appnotify` passes; `gta6rt` links with the new shim - gta6rt link: OK (`gta6rt.exe` builds and links; `dumpbin /dependents` shows the same DLLs as main, no network DLL) - Verdict: READY - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
zmasi commented 2026-11-29 02:37:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T02:37:15Z.


#1240 | head a3b3fe0542 (merged cleanly onto origin/main c8bf0e7b65) | Windows 11 (10.0.26200.9974), MSVC 19.44.35228 (x64), Python 3.12.10 | AI-assisted: yes

Summary — PASS (Re-verification of updated head a3b3fe054265)

Re-verified a3b3fe05426578493027567eb6acb7de0dc9a7de merged cleanly onto origin/main (c8bf0e7b6568f471b42540010e335ca6413d4c58, git merge-tree --write-tree exit 0) on native Windows 11 (x64).

Red -> Green Verification

  1. Red (origin/main c8bf0e7b65):
    • runtime/shims/appnotify.cpp and runtime/test/appnotify_test.cpp are absent on origin/main.
  2. Green (origin/main + #1240):
    • MSVC 19.44.35228 build (/std:c++20 /O2 /MD /EHsc /W4 /permissive- /utf-8 /link /OPT:NOREF):
      • appnotify_test.cpp + appnotify.cpp + registry.cpp compiled cleanly with 0 warnings.
    • Native Windows 11 execution:
      • appnotify_test.exe -> 48 check(s), 0 failure(s) (export resolution across DLL sets, RegisterAppConstrainedChangeNotification / UnregisterAppConstrainedChangeNotification null/foreign/double-unregister and multi-threaded concurrent registration, plus WerRegisterFile / WerUnregisterFile argument validation, GAME: / G: / T: root-traversal rejection, normalized dot-dot path matching, WER_FILE_COMPRESSED, and ERROR_NOT_FOUND after removal).
    • CMake Gate:
      • python tests/test_ctest_registration.py -> OK

Cross-PR Note (#1242)

  • Merges cleanly (rc=0) with origin/main (c8bf0e7b65) and #1931. Co-merging alongside sibling PR #1242 touches the same source/target registration lines in runtime/CMakeLists.txt and scripts/build_runtime.ps1 (runtime/README.md auto-merges cleanly), so whichever lands second will need a small 2-file merge.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249542145 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1240#issuecomment-7249542145). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T02:37:15Z. --- #1240 | head a3b3fe05426578493027567eb6acb7de0dc9a7de (merged cleanly onto origin/main c8bf0e7b65) | Windows 11 (10.0.26200.9974), MSVC 19.44.35228 (x64), Python 3.12.10 | AI-assisted: yes ### Summary — PASS (Re-verification of updated head `a3b3fe054265`) Re-verified `a3b3fe05426578493027567eb6acb7de0dc9a7de` merged cleanly onto `origin/main` (`c8bf0e7b6568f471b42540010e335ca6413d4c58`, `git merge-tree --write-tree` exit `0`) on native Windows 11 (`x64`). ### Red -> Green Verification 1. **Red (`origin/main` `c8bf0e7b65`)**: - `runtime/shims/appnotify.cpp` and `runtime/test/appnotify_test.cpp` are absent on `origin/main`. 2. **Green (`origin/main` + `#1240`)**: - **MSVC `19.44.35228` build (`/std:c++20 /O2 /MD /EHsc /W4 /permissive- /utf-8 /link /OPT:NOREF`)**: - `appnotify_test.cpp + appnotify.cpp + registry.cpp` compiled cleanly with `0` warnings. - **Native Windows 11 execution**: - `appnotify_test.exe` -> **`48 check(s), 0 failure(s)`** (export resolution across DLL sets, `RegisterAppConstrainedChangeNotification` / `UnregisterAppConstrainedChangeNotification` null/foreign/double-unregister and multi-threaded concurrent registration, plus `WerRegisterFile` / `WerUnregisterFile` argument validation, `GAME:` / `G:` / `T:` root-traversal rejection, normalized dot-dot path matching, `WER_FILE_COMPRESSED`, and `ERROR_NOT_FOUND` after removal). - **CMake Gate**: - `python tests/test_ctest_registration.py` -> **`OK`** ### Cross-PR Note (`#1242`) - Merges cleanly (`rc=0`) with `origin/main` (`c8bf0e7b65`) and `#1931`. Co-merging alongside sibling PR `#1242` touches the same source/target registration lines in `runtime/CMakeLists.txt` and `scripts/build_runtime.ps1` (`runtime/README.md` auto-merges cleanly), so whichever lands second will need a small 2-file merge.
DadaCap commented 2026-11-29 03:35:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-29T03:35:52Z.


Merging, thank you @piyonchu! OreoFR's agent verified this head merged with current main: the test fails on main and passes with the PR (https://github.com/ProjectLeonida/mandy/pull/1240#issuecomment-7248954919), and it still merges cleanly.

AI-assisted (Claude Code, Claude Opus 5.5), on behalf of DadaCap.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7250144231 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1240#issuecomment-7250144231). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-29T03:35:52Z. --- Merging, thank you @piyonchu! OreoFR's agent verified this head merged with current main: the test fails on main and passes with the PR (https://github.com/ProjectLeonida/mandy/pull/1240#issuecomment-7248954919), and it still merges cleanly. AI-assisted (Claude Code, Claude Opus 5.5), on behalf of DadaCap.
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!1240
No description provided.