feat(libcinternal): add recovered inventory placeholders #13273

Merged
Celegans12 merged 4 commits from upstream-pr/13273 into main 2026-11-03 08:10:15 +00:00
Celegans12 commented 2026-10-30 10:53:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-30T10:53:22Z.


What

Add the 40 newly named, physically corroborated exports for the existing libSceLibcInternal system-library provider. Each entry immediately throws through NotImplemented_nid_no_patch; the parameterless int declarations are import-resolution placeholders with unverified arguments, return types and behavior.

Evidence is pinned to LIBRARIES.md and the per-library metadata at 226383a7fa4b1275d6cebf61eb1c1e7ca7b58bcb. These names were unresolved at the prior inventory pin. All 40 name/NID pairs independently recompute and are also present in the physical libSceLibcInternal map at cc1d586fddab576a520f226da6b2632b031e6d09.

The inventory has 86 newly named LibcInternal records. This change excludes 42 whose NIDs are absent from that pinned physical-module map: 40 C23 stdc_* names, memset_explicit, and timespec_getres. It also excludes four __std_find_last_trivial_* placeholders so they do not shadow a working libc implementation being prepared by @Danigamer05.

The existing LibcInternal host is retained because the pinned map assigns these NIDs directly to it and none has a global source, normalized-name, assembly or literal-alias owner on the preparation base. The current loader searches the named LibcInternal provider before its existing libc fallback (WindowsEntryStubBuilder.cpp), and GuestModuleBuilder.cpp retains both dependencies. Existing libc vector helpers, declarations, aliases and implementations are unchanged. No new host, Sysmodule ID or middleware replacement is introduced.

Name NID
__std_minmax_d -h179cDLv9E
__std_minmax_element_f 2+A95Lpvs7w
__std_bitset_to_string_1 40rZnNs8g7A
__std_max_1i 42RB3vrLDrk
__std_minmax_element_d 4sz2d0dPfM4
__std_max_2u 8SuWbX+OAKQ
_ZNSt8__sce_v215_Thrd_sleep_forEm B7RFX6LbnZI
__std_atomic_notify_multi_direct BS5uazcBa-k
__std_min_d CGoV+Pxv01c
__std_max_1u EY5VhjRs2Ns
__std_min_2i F0X6QBFDu+Q
__std_max_element_d GYJW0yA3+F0
__std_min_1u JkTHJqCAwss
__std_min_element_f JpRyi95NwdQ
__std_minmax_f LPtBDdftNWI
__std_min_f QvYwwfBxkAQ
__std_minmax_1u RcZeqPseA-g
__truncdfhf2 S-XTDZYtLwg
__std_minmax_4i TdSSMbkd+uI
__std_atomic_wait_get_deadline ToTzlyOSMrU
__std_max_2i VUfc7GWVKT4
sceLibcInternalPrimitiveMallocStatsFast VctQdQmb1aY
__std_atomic_wait_get_remaining_timeout X1WFm9oMoc4
__std_atomic_wait_direct_8 XDmCPWa3MEo
__std_min_1i XxFnGBq9gO4
__std_min_2u ciCrvCIGY3E
__std_minmax_1i eRl6YSM0BKw
__std_minmax_8i fmig4AQY0xs
__std_max_d g2zY7vjUEDQ
__std_max_element_f hXRNdF7MiVg
__std_minmax_4u lMvSDjUw6q8
sceLibcInternalPrimitiveMallocStats n+qovUGsL3U
_ZNSt8__sce_v236_Mtx_init_with_default_name_overrideEPP13pthread_mutexiPKc naKdJL9d3nE
__std_minmax_2u qI8SBSRZ-FA
__std_minmax_2i qgPObzu1h+E
__std_max_f qxTZXxipaZY
__std_minmax_8u sS4cYWO4yXw
__std_min_element_d vqKFqjbsrg0
__std_atomic_wait_direct_16 vsw4c+uWXGQ
__std_bitset_to_string_2 xM78av0AYxM

Tested

On the current revision, the recovered source compiled on Linux x86-64 with GCC using -std=c++20 -Wall -Wextra -Werror -fsyntax-only; conventions and git diff --check passed, and the 40 declarations matched the 40 definitions with all four find-last placeholders absent.

The following tests apply to the earlier 44-export version, before removing four placeholders. Linux x86-64, GCC 13.3.0. Current-main base: ebe0ffe04c7fb4b1e750caa699718554d820701e; validated head 48f1f0db5722c70094c4faf87fc27a4d32910c70.

  • python3 tools/check_conventions.py --base origin/main and git diff --check origin/main passed.
  • Direct C++20 compilation of the new translation unit passed with -Wall -Wextra -Werror.
  • python3 core/libs/tests/test_public_headers.py --compiler g++ passed after the current-main rebase: 374 libraries, 14,705 exports, unique declarations and umbrella reachability, and all standalone header compilation units. This invoked the full nonbatched compiler audit, rather than individual CTest shards.
  • A minimal native DSO patched with the repository nid_patcher exposes all 44 exact expected NIDs once each, no extra NID-like exports and no raw declarations. Disassembly shows 44 direct calls to NotImplemented_nid_no_patch.
  • Full-root native CMake configuration with BUILD_TESTING=ON passed, and the actual libSceLibcInternal, nid_patcher and guest_init_once_tests targets built successfully. After the current-main rebase, configuration, native targets and focused tests passed again: guest_init_once 1/1 and the CMake public_headers generator 1/1. The actual rebuilt provider DSO was patched using the standard NID-patcher sequence; every expected new NID appears exactly once and every raw name is removed. The all-library patched-output target was not built.
  • python3 tools/pr_overlap.py --branch feat/libcinternal-recovered-inventory-20261030 --repo boykopovar/AnyPS5 --base main --jobs 8 examined all 1,443 open PR heads against main 3948413d701b093b32a194f5fe5525ea8d5f5079. No confirmed line, export or new-file collisions remained. The new source-list entry uses an independent insertion point before the existing unwind configuration. Git submodule recursion was disabled only for this read-only scan; its comparison logic was unchanged. The final topic also merges cleanly into that newer scanned main; native tests were run on the explicit base recorded above.
  • The scanner could not normalize stale peers #5021, #11749, #11750 and #11751 because they already conflict with its base. Their shared files were examined against each peer's true common ancestor. The candidate's exact additive insertions merge in both orders and preserve every peer byte (16/16 shared-file checks including #10392). A global normalized definition/assembly/literal-alias scan of each checked peer found no owner of any of the 44 candidate NIDs. These checks address this candidate's overlap only; they do not claim that the stale peer branches merge cleanly into current main.

No test invokes the new unknown-ABI exports and no test was added solely to assert symbol existence. The all-library build and full CTest suite were not run. No PS5 hardware, title/homebrew, Ghost of Yōtei, Windows or GPU testing was performed. No library behavior or title-compatibility improvement is claimed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5083200891 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13273). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-30T10:53:22Z. --- ### What Add the 40 newly named, physically corroborated exports for the existing `libSceLibcInternal` system-library provider. Each entry immediately throws through `NotImplemented_nid_no_patch`; the parameterless `int` declarations are import-resolution placeholders with unverified arguments, return types and behavior. Evidence is pinned to [LIBRARIES.md](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/226383a7fa4b1275d6cebf61eb1c1e7ca7b58bcb/LIBRARIES.md) and the [per-library metadata](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/226383a7fa4b1275d6cebf61eb1c1e7ca7b58bcb/data/firmware-13.60/libscelibcinternal-f9a6d6abff.jsonl) at `226383a7fa4b1275d6cebf61eb1c1e7ca7b58bcb`. These names were unresolved at the prior inventory pin. All 40 name/NID pairs independently recompute and are also present in the [physical libSceLibcInternal map](https://github.com/boykopovar/ps5-nid-map/blob/cc1d586fddab576a520f226da6b2632b031e6d09/data/Modules/libSceLibcInternal.inc) at `cc1d586fddab576a520f226da6b2632b031e6d09`. The inventory has 86 newly named LibcInternal records. This change excludes 42 whose NIDs are absent from that pinned physical-module map: 40 C23 `stdc_*` names, `memset_explicit`, and `timespec_getres`. It also excludes four `__std_find_last_trivial_*` placeholders so they do not shadow a working `libc` implementation being prepared by @Danigamer05. The existing LibcInternal host is retained because the pinned map assigns these NIDs directly to it and none has a global source, normalized-name, assembly or literal-alias owner on the preparation base. The current loader searches the named LibcInternal provider before its existing `libc` fallback (`WindowsEntryStubBuilder.cpp`), and `GuestModuleBuilder.cpp` retains both dependencies. Existing `libc` vector helpers, declarations, aliases and implementations are unchanged. No new host, Sysmodule ID or middleware replacement is introduced. | Name | NID | | --- | --- | | `__std_minmax_d` | `-h179cDLv9E` | | `__std_minmax_element_f` | `2+A95Lpvs7w` | | `__std_bitset_to_string_1` | `40rZnNs8g7A` | | `__std_max_1i` | `42RB3vrLDrk` | | `__std_minmax_element_d` | `4sz2d0dPfM4` | | `__std_max_2u` | `8SuWbX+OAKQ` | | `_ZNSt8__sce_v215_Thrd_sleep_forEm` | `B7RFX6LbnZI` | | `__std_atomic_notify_multi_direct` | `BS5uazcBa-k` | | `__std_min_d` | `CGoV+Pxv01c` | | `__std_max_1u` | `EY5VhjRs2Ns` | | `__std_min_2i` | `F0X6QBFDu+Q` | | `__std_max_element_d` | `GYJW0yA3+F0` | | `__std_min_1u` | `JkTHJqCAwss` | | `__std_min_element_f` | `JpRyi95NwdQ` | | `__std_minmax_f` | `LPtBDdftNWI` | | `__std_min_f` | `QvYwwfBxkAQ` | | `__std_minmax_1u` | `RcZeqPseA-g` | | `__truncdfhf2` | `S-XTDZYtLwg` | | `__std_minmax_4i` | `TdSSMbkd+uI` | | `__std_atomic_wait_get_deadline` | `ToTzlyOSMrU` | | `__std_max_2i` | `VUfc7GWVKT4` | | `sceLibcInternalPrimitiveMallocStatsFast` | `VctQdQmb1aY` | | `__std_atomic_wait_get_remaining_timeout` | `X1WFm9oMoc4` | | `__std_atomic_wait_direct_8` | `XDmCPWa3MEo` | | `__std_min_1i` | `XxFnGBq9gO4` | | `__std_min_2u` | `ciCrvCIGY3E` | | `__std_minmax_1i` | `eRl6YSM0BKw` | | `__std_minmax_8i` | `fmig4AQY0xs` | | `__std_max_d` | `g2zY7vjUEDQ` | | `__std_max_element_f` | `hXRNdF7MiVg` | | `__std_minmax_4u` | `lMvSDjUw6q8` | | `sceLibcInternalPrimitiveMallocStats` | `n+qovUGsL3U` | | `_ZNSt8__sce_v236_Mtx_init_with_default_name_overrideEPP13pthread_mutexiPKc` | `naKdJL9d3nE` | | `__std_minmax_2u` | `qI8SBSRZ-FA` | | `__std_minmax_2i` | `qgPObzu1h+E` | | `__std_max_f` | `qxTZXxipaZY` | | `__std_minmax_8u` | `sS4cYWO4yXw` | | `__std_min_element_d` | `vqKFqjbsrg0` | | `__std_atomic_wait_direct_16` | `vsw4c+uWXGQ` | | `__std_bitset_to_string_2` | `xM78av0AYxM` | ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> On the current revision, the recovered source compiled on Linux x86-64 with GCC using `-std=c++20 -Wall -Wextra -Werror -fsyntax-only`; conventions and `git diff --check` passed, and the 40 declarations matched the 40 definitions with all four find-last placeholders absent. The following tests apply to the earlier 44-export version, before removing four placeholders. Linux x86-64, GCC 13.3.0. Current-main base: `ebe0ffe04c7fb4b1e750caa699718554d820701e`; validated head `48f1f0db5722c70094c4faf87fc27a4d32910c70`. - `python3 tools/check_conventions.py --base origin/main` and `git diff --check origin/main` passed. - Direct C++20 compilation of the new translation unit passed with `-Wall -Wextra -Werror`. - `python3 core/libs/tests/test_public_headers.py --compiler g++` passed after the current-main rebase: 374 libraries, 14,705 exports, unique declarations and umbrella reachability, and all standalone header compilation units. This invoked the full nonbatched compiler audit, rather than individual CTest shards. - A minimal native DSO patched with the repository `nid_patcher` exposes all 44 exact expected NIDs once each, no extra NID-like exports and no raw declarations. Disassembly shows 44 direct calls to `NotImplemented_nid_no_patch`. - Full-root native CMake configuration with `BUILD_TESTING=ON` passed, and the actual `libSceLibcInternal`, `nid_patcher` and `guest_init_once_tests` targets built successfully. After the current-main rebase, configuration, native targets and focused tests passed again: `guest_init_once` 1/1 and the CMake `public_headers` generator 1/1. The actual rebuilt provider DSO was patched using the standard NID-patcher sequence; every expected new NID appears exactly once and every raw name is removed. The all-library patched-output target was not built. - `python3 tools/pr_overlap.py --branch feat/libcinternal-recovered-inventory-20261030 --repo boykopovar/AnyPS5 --base main --jobs 8` examined all 1,443 open PR heads against main `3948413d701b093b32a194f5fe5525ea8d5f5079`. No confirmed line, export or new-file collisions remained. The new source-list entry uses an independent insertion point before the existing unwind configuration. Git submodule recursion was disabled only for this read-only scan; its comparison logic was unchanged. The final topic also merges cleanly into that newer scanned main; native tests were run on the explicit base recorded above. - The scanner could not normalize stale peers #5021, #11749, #11750 and #11751 because they already conflict with its base. Their shared files were examined against each peer's true common ancestor. The candidate's exact additive insertions merge in both orders and preserve every peer byte (16/16 shared-file checks including #10392). A global normalized definition/assembly/literal-alias scan of each checked peer found no owner of any of the 44 candidate NIDs. These checks address this candidate's overlap only; they do not claim that the stale peer branches merge cleanly into current main. No test invokes the new unknown-ABI exports and no test was added solely to assert symbol existence. The all-library build and full CTest suite were not run. No PS5 hardware, title/homebrew, Ghost of Yōtei, Windows or GPU testing was performed. No library behavior or title-compatibility improvement is claimed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-10-30 11:10:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:10:07Z.

Review: APPROVED


Reviewed — looks good

The 44 libc-internal placeholders have unique names, match the pinned NID metadata and physical-module map, and clearly remain unimplemented at head 48f1f0db5722c70094c4faf87fc27a4d32910c70.

What I ran

Reviewed head 48f1f0db5722c70094c4faf87fc27a4d32910c70 against PR base 3948413d701b093b32a194f5fe5525ea8d5f5079. A merge preview onto current main 947ca6fe0ce323b2aec50c6ac31e9be69b5ceac8 was clean (tree a1e816125db5bdc2136504913b23a16e4e78b9a7). Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. I did not build or compile locally; author-reported compiler/test results are identified separately.

git diff --check 3948413d701b093b32a194f5fe5525ea8d5f5079...48f1f0db5722c70094c4faf87fc27a4d32910c70
python3 tools/check_conventions.py --base 3948413d701b093b32a194f5fe5525ea8d5f5079 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --title 'feat(libcinternal): add recovered inventory placeholders' --body /tmp/13273-body.md
python3 core/libs/tests/test_public_headers.py --audit-only
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 3948413d701b093b32a194f5fe5525ea8d5f5079 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --json
python3 tools/pr_overlap.py --branch refs/review/pr-13273 --jobs 16

Results

Check Result
Diff whitespace and conventions Passed.
Public-header audit at exact PR worktree Passed: 374 libraries and 14,705 exports checked.
ABI lexical audit Passed with no findings.
NID/source/map verification 44 unique declarations; every name and computed NID matched the pinned metadata and physical module map.
Peer export check The overlap scan could not compare stale shared-file branches #5021, #11749, #11750, and #11751. I searched each exact open head for all 44 names and NIDs under core/libs/prx; no matches were found.
Author-reported Linux validation C++20 compilation of the new translation unit passed with -Wall -Wextra -Werror; the public-header compiler audit and focused CTest passed. The DSO/NID patch checks are also author-reported.
Hosted CI Conventions, intake, labels, eligibility, report, and Windows passed. Linux and specialized jobs were skipped.
Current-main merge preview Clean.
Unedited local check output
All conventions checks passed.
374 libraries, 14705 exports: unique declarations and umbrella coverage verified
declarations: 44 unique names: 44
NID/source/map mismatches: 0

git diff --check produced no output. ABI audit summary: status: passed, findings: 0.

Findings

Blocking

None found in the reviewed change.

Non-blocking

These names intentionally throw NotImplemented_nid_no_patch. Their argument lists, return types, and runtime behavior remain unknown, as stated in the PR description and debt file.

Sources

Not verified

I did not build the provider or independently run the author's CTest/DSO checks. Linux and specialized hosted jobs were skipped. I did not test on PS5 hardware. I did not reproduce the author's full three-way comparisons for the four stale peer branches; the direct source-name/NID search found no duplicate owner on those heads.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711395682 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13273#pullrequestreview-5711395682). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T11:10:07Z. **Review:** APPROVED --- # Reviewed — looks good The 44 libc-internal placeholders have unique names, match the pinned NID metadata and physical-module map, and clearly remain unimplemented at head `48f1f0db5722c70094c4faf87fc27a4d32910c70`. ## What I ran Reviewed head `48f1f0db5722c70094c4faf87fc27a4d32910c70` against PR base `3948413d701b093b32a194f5fe5525ea8d5f5079`. A merge preview onto current `main` `947ca6fe0ce323b2aec50c6ac31e9be69b5ceac8` was clean (tree `a1e816125db5bdc2136504913b23a16e4e78b9a7`). Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. I did not build or compile locally; author-reported compiler/test results are identified separately. ```sh git diff --check 3948413d701b093b32a194f5fe5525ea8d5f5079...48f1f0db5722c70094c4faf87fc27a4d32910c70 python3 tools/check_conventions.py --base 3948413d701b093b32a194f5fe5525ea8d5f5079 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --title 'feat(libcinternal): add recovered inventory placeholders' --body /tmp/13273-body.md python3 core/libs/tests/test_public_headers.py --audit-only python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 3948413d701b093b32a194f5fe5525ea8d5f5079 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --json python3 tools/pr_overlap.py --branch refs/review/pr-13273 --jobs 16 ``` ## Results | Check | Result | |---|---| | Diff whitespace and conventions | Passed. | | Public-header audit at exact PR worktree | Passed: 374 libraries and 14,705 exports checked. | | ABI lexical audit | Passed with no findings. | | NID/source/map verification | 44 unique declarations; every name and computed NID matched the pinned metadata and physical module map. | | Peer export check | The overlap scan could not compare stale shared-file branches #5021, #11749, #11750, and #11751. I searched each exact open head for all 44 names and NIDs under `core/libs/prx`; no matches were found. | | Author-reported Linux validation | C++20 compilation of the new translation unit passed with `-Wall -Wextra -Werror`; the public-header compiler audit and focused CTest passed. The DSO/NID patch checks are also author-reported. | | Hosted CI | Conventions, intake, labels, eligibility, report, and Windows passed. Linux and specialized jobs were skipped. | | Current-main merge preview | Clean. | <details><summary>Unedited local check output</summary> ```text All conventions checks passed. 374 libraries, 14705 exports: unique declarations and umbrella coverage verified declarations: 44 unique names: 44 NID/source/map mismatches: 0 ``` `git diff --check` produced no output. ABI audit summary: `status: passed`, `findings: 0`. </details> ## Findings ### Blocking None found in the reviewed change. ### Non-blocking These names intentionally throw `NotImplemented_nid_no_patch`. Their argument lists, return types, and runtime behavior remain unknown, as stated in the PR description and debt file. ## Sources - [New placeholder definitions](https://github.com/boykopovar/AnyPS5/blob/48f1f0db5722c70094c4faf87fc27a4d32910c70/core/libs/prx/libSceLibcInternal/RecoveredInventory.cpp) and [public declarations](https://github.com/boykopovar/AnyPS5/blob/48f1f0db5722c70094c4faf87fc27a4d32910c70/core/libs/prx/libSceLibcInternal/include/RecoveredInventory.hpp). - [Pinned firmware 13.60 metadata](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/226383a7fa4b1275d6cebf61eb1c1e7ca7b58bcb/data/firmware-13.60/libscelibcinternal-f9a6d6abff.jsonl) and [pinned physical-module map](https://github.com/boykopovar/ps5-nid-map/blob/cc1d586fddab576a520f226da6b2632b031e6d09/data/Modules/libSceLibcInternal.inc). ## Not verified I did not build the provider or independently run the author's CTest/DSO checks. Linux and specialized hosted jobs were skipped. I did not test on PS5 hardware. I did not reproduce the author's full three-way comparisons for the four stale peer branches; the direct source-name/NID search found no duplicate owner on those heads.
MarcZX10 commented 2026-10-30 11:39:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:39:57Z.

Review: APPROVED


Reviewed — looks good

The 44 additions match the pinned firmware inventory and physical-module map, and the exact-head static and merge checks found no blocking issue; they are clearly documented as import-resolution placeholders.

What I ran

Reviewed head 48f1f0db5722c70094c4faf87fc27a4d32910c70 against PR base 3948413d701b093b32a194f5fe5525ea8d5f5079. The current-main merge preview was clean against 1c6b316cf762c7a8d34623907d62bc1cba2217b6. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No local build or C++ tests were run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13273
git diff --check 1c6b316cf762c7a8d34623907d62bc1cba2217b6...48f1f0db5722c70094c4faf87fc27a4d32910c70
python3 tools/check_conventions.py --base 1c6b316cf762c7a8d34623907d62bc1cba2217b6 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --title 'feat(libcinternal): add recovered inventory placeholders' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13273-48f1f0db5722/pr-body.md
python3 tools/pr_abi_audit.py --base 1c6b316cf762c7a8d34623907d62bc1cba2217b6 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --json
git merge-tree --write-tree 1c6b316cf762c7a8d34623907d62bc1cba2217b6 48f1f0db5722c70094c4faf87fc27a4d32910c70
gh pr checks 13273 --repo boykopovar/AnyPS5 --watch=false

The isolated precheck checkout lacked the workspace-only ABI and test-quality helpers. I reran the ABI audit from the workspace and compared all candidate NIDs with the pinned inventory and map. I also checked candidate NIDs against the added literal exports in open PRs #11749, #11750, #11751, and #10392; none overlapped.

Results

Check Result
Diff and conventions Passed against current main; conventions also passed in hosted CI
ABI audit Passed: 44 symbols, no findings
Pinned firmware inventory and physical module map All 44 names/NIDs found; no mismatch or omission
Merge preview Clean against current main
Hosted CI Intake, eligibility, labels, report, conventions, and Windows passed; Linux and specialized jobs skipped
Author-reported Linux checks Direct C++20 compilation, public-header audit, focused native targets, and guest_init_once 1/1 passed on the stated head; not rerun locally
Observed output
{'audit_status': 'passed', 'audited': 44, 'findings': [], 'metadata_missing': 0, 'nid_mismatch': 0, 'physical_map_missing': 0}
{'status': 'passed', 'symbols': 44, 'findings': []}
f17c0fb3dacebe6638bfe405b8582c67bddb6cbc
All conventions checks passed.
conventions pass 17s
intake pass 5s
labels pass 9s
windows pass 7m48s
linux skipping
register-context skipping
relinker skipping
relinker-asan skipping
write-watch skipping
eligibility pass 6s
report pass 30s

Negative control

Assertion Change to code under test Result
New exports preserve or implement runtime behavior Not claimed; each placeholder throws Not applicable

Findings

Blocking

None found.

Non-blocking

The parameterless int signatures and runtime behavior remain unverified by design, as the PR body and technical-debt entry state. The existing peer PRs add different NIDs; their stale-base merge conflicts do not establish that those branches are mergeable with current main.

Sources

Not verified

No local native build or CTest run; no PS5 console/title behavior; the actual parameter lists, return types, runtime ABI, and firmware availability beyond the cited inventory.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711684577 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13273#pullrequestreview-5711684577). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T11:39:57Z. **Review:** APPROVED --- # Reviewed — looks good The 44 additions match the pinned firmware inventory and physical-module map, and the exact-head static and merge checks found no blocking issue; they are clearly documented as import-resolution placeholders. ## What I ran Reviewed head `48f1f0db5722c70094c4faf87fc27a4d32910c70` against PR base `3948413d701b093b32a194f5fe5525ea8d5f5079`. The current-main merge preview was clean against `1c6b316cf762c7a8d34623907d62bc1cba2217b6`. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No local build or C++ tests were run. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13273 git diff --check 1c6b316cf762c7a8d34623907d62bc1cba2217b6...48f1f0db5722c70094c4faf87fc27a4d32910c70 python3 tools/check_conventions.py --base 1c6b316cf762c7a8d34623907d62bc1cba2217b6 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --title 'feat(libcinternal): add recovered inventory placeholders' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13273-48f1f0db5722/pr-body.md python3 tools/pr_abi_audit.py --base 1c6b316cf762c7a8d34623907d62bc1cba2217b6 --head 48f1f0db5722c70094c4faf87fc27a4d32910c70 --json git merge-tree --write-tree 1c6b316cf762c7a8d34623907d62bc1cba2217b6 48f1f0db5722c70094c4faf87fc27a4d32910c70 gh pr checks 13273 --repo boykopovar/AnyPS5 --watch=false ``` The isolated precheck checkout lacked the workspace-only ABI and test-quality helpers. I reran the ABI audit from the workspace and compared all candidate NIDs with the pinned inventory and map. I also checked candidate NIDs against the added literal exports in open PRs #11749, #11750, #11751, and #10392; none overlapped. ## Results | Check | Result | |---|---| | Diff and conventions | Passed against current `main`; conventions also passed in hosted CI | | ABI audit | Passed: 44 symbols, no findings | | Pinned firmware inventory and physical module map | All 44 names/NIDs found; no mismatch or omission | | Merge preview | Clean against current `main` | | Hosted CI | Intake, eligibility, labels, report, conventions, and Windows passed; Linux and specialized jobs skipped | | Author-reported Linux checks | Direct C++20 compilation, public-header audit, focused native targets, and `guest_init_once` 1/1 passed on the stated head; not rerun locally | <details><summary>Observed output</summary> ```text {'audit_status': 'passed', 'audited': 44, 'findings': [], 'metadata_missing': 0, 'nid_mismatch': 0, 'physical_map_missing': 0} {'status': 'passed', 'symbols': 44, 'findings': []} f17c0fb3dacebe6638bfe405b8582c67bddb6cbc All conventions checks passed. conventions pass 17s intake pass 5s labels pass 9s windows pass 7m48s linux skipping register-context skipping relinker skipping relinker-asan skipping write-watch skipping eligibility pass 6s report pass 30s ``` </details> ## Negative control | Assertion | Change to code under test | Result | |---|---|---| | New exports preserve or implement runtime behavior | Not claimed; each placeholder throws | Not applicable | ## Findings ### Blocking None found. ### Non-blocking The parameterless `int` signatures and runtime behavior remain unverified by design, as the PR body and technical-debt entry state. The existing peer PRs add different NIDs; their stale-base merge conflicts do not establish that those branches are mergeable with current `main`. ## Sources - [Recovered LibcInternal placeholders at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/48f1f0db5722c70094c4faf87fc27a4d32910c70/core/libs/prx/libSceLibcInternal/RecoveredInventory.cpp) - [Pinned PS5 13.60 LibcInternal inventory](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/226383a7fa4b1275d6cebf61eb1c1e7ca7b58bcb/data/firmware-13.60/libscelibcinternal-f9a6d6abff.jsonl) - [Pinned physical LibcInternal module map](https://github.com/boykopovar/ps5-nid-map/blob/cc1d586fddab576a520f226da6b2632b031e6d09/data/Modules/libSceLibcInternal.inc) ## Not verified No local native build or CTest run; no PS5 console/title behavior; the actual parameter lists, return types, runtime ABI, and firmware availability beyond the cited inventory.
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
boykopovar/AnyPS5!13273
No description provided.