refactor(prx): name the Xml, NKWebKit, Jsc and FreeTypeOl stubs the NID database resolves #12457

Merged
simnJS merged 1 commit from upstream-pr/12457 into main 2026-10-29 11:57:20 +00:00
simnJS commented 2026-10-28 14:29:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simnJS on 2026-10-28T14:29:45Z.


What

tools/nid_names.py already resolves 775 of the 803 *Unknown_* exports on main through its pinned aerolib database, and every suggestion passes its compute_nid(name) == nid check (status rename-ready). This names the 542 of them in four libraries that no open pull request touches. Behaviour is unchanged: every body still throws through NotImplemented_nid_no_patch, and the exported NID set of each library is the same as on main. A title that reaches one of them now fails with the real symbol in the message instead of sceXmlUnknown_+kAtAhAVcd0, as in #1145.

Library Named Form
libSceXml 150 function named after its sce::Xml mangled symbol, declared in a new include/Api.hpp that libSceXml.hpp includes
libSceNKWebKit 150 function named after its symbol: WebCore 82, Inspector 20, JSC 12, WTF 10, WebKit C API 24 (WK*), WTFSetLogChannelLevel, JSObjectSetPrivate; the Api.hpp declarations are renamed in place
libSceJsc 150 function named after its symbol: Inspector 60, JSC 48, WTF 31, bmalloc 6, Deprecated::ScriptValue 1, JSObjectHasPropertyForKey, JSValueMakeString, JSWeakObjectMapCreate, WTFLogAlwaysV; declarations appended to Api.hpp
libSceFreeTypeOl 92 helper sceFreeTypeOl<Name>_nid_no_patch that keeps its NID alias: the 83 FTA_* module and format helpers, FT_Add_Module, FT_Alloc, FT_Attach_Stream, FT_CMap_Done, FT_CMap_New, FT_Done_GlyphSlot, FT_Done_Memory, FT_Free, FT_Get_Module_Interface
  • The C++ libraries follow #1145 (_ZN3sce4Json17InitParameterRttiC1E… in libSceJson2): the throwing function carries the symbol name and the NID is derived from it, so the explicit APS5_EXPORT alias goes away. Each name gets exactly one header declaration, as public_headers requires.
  • libSceFreeTypeOl follows its sibling libSceFreeTypeOt (49032fe9ed, 379b8a550d): libSceFreeType defines the FT_* symbols, so a same-named export here would be a duplicate export; the helper takes the symbol's name without FT_ (FTA_ becomes Fta) and keeps the alias. FT_Alloc and FT_Free get exactly the helper names #12004 gives them (sceFreeTypeOlAlloc_nid_no_patch, sceFreeTypeOlFree_nid_no_patch), so those lines merge with #12004 and #12373 without a conflict.
  • libSceNKWebKit Export.cpp started with 150 copies of the same #include "prx/libSceNKWebKit/include/Api.hpp"; they collapse to one.
  • The four debt entries name the database and say the names are hash-checked; prototypes and behaviour stay unverified.

Every name fits its library: all 150 libSceXml names are sce::Xml, the libSceJsc and libSceNKWebKit names are JavaScriptCore/WTF/Inspector/bmalloc and WebCore/WebKit symbols, the libSceFreeTypeOl names are FreeType's. As an independent check, hashing every identifier of the bundled FreeType 2.13.3 tree (3rdparty/freetype, 58467 identifiers) gives the same names for the seven libSceFreeTypeOl NIDs whose functions still exist in 2.13.3 (FT_Add_Module, FT_Attach_Stream, FT_CMap_Done, FT_CMap_New, FT_Done_GlyphSlot, FT_Done_Memory, FT_Get_Module_Interface), and 106 libSceFreeTypeOt NIDs; FT_Alloc/FT_Free (removed from FreeType before 2.13) and Sony's FTA_* helpers come from the database only.

Left out on purpose:

  • libSceFreeTypeOt (126 resolvable): its Export.cpp is edited by 25 open pull requests that rename or remove these aliases as they implement them (#10582 … #10613, #11426, #11613, #12370 and others).
  • libSceIcu (107 resolvable): #12320 removes 20 of these blocks and twelve more open pull requests implement libSceIcu.
  • 28 exports the database does not know (libkernel 17, libSceVrTracker2 6, libSceNpManager 2, libSceDiscMap, libScePad, libSceVideoRecordingP).

tools/progress.py: unchanged, 46.65 % (+542 declared, -542 removed: the same throwing stubs under their real names).

Reproduce from main (the whole change except the debt text):

import re, sys
from pathlib import Path
sys.path.insert(0, "tools")
import nid_names

PRX = Path("core/libs/prx")
DB = nid_names.load_db(nid_names.DEFAULT_CACHE)
BLOCK = re.compile(r'int APS5_VABI (\w+)\(\) \{\n    NotImplemented_nid_no_patch\(__func__\);\n\}\nAPS5_EXPORT\("([A-Za-z0-9+-]{11})", \1\);\n')

def resolve(nid, helper):
    name = DB.get(nid, "")
    return name if "Unknown_" in helper and name and nid_names.compute_nid(name) == nid else None

def camel(name):
    prefix, rest = ("Fta", name[4:]) if name.startswith("FTA_") else ("", name.removeprefix("FT_"))
    return prefix + "".join(part[:1].upper() + part[1:] for part in rest.split("_"))

def rename_symbols(library, mode):
    export = PRX / library / "Export.cpp"
    renamed = []
    def replace(match):
        name = resolve(match.group(2), match.group(1))
        if name is None:
            return match.group()
        renamed.append((match.group(1), name))
        return f"int APS5_VABI {name}() {{\n    NotImplemented_nid_no_patch(__func__);\n}}\n"
    text = BLOCK.sub(replace, export.read_text(encoding="utf-8"))
    include = f'#include "prx/{library}/include/Api.hpp"\n'
    export.write_text(include + re.sub(r"\A(?:" + re.escape(include) + r")+", "", text), encoding="utf-8", newline="\n")
    api = PRX / library / "include/Api.hpp"
    declarations = "".join(f"int APS5_VABI {name}();\n" for _, name in renamed)
    if mode == "replace":
        source = api.read_text(encoding="utf-8")
        for helper, name in renamed:
            source = source.replace(f"int APS5_VABI {helper}();\n", f"int APS5_VABI {name}();\n", 1)
        api.write_text(source, encoding="utf-8", newline="\n")
    elif mode == "append":
        head, tail = api.read_text(encoding="utf-8").rsplit("\n}\n", 1)
        api.write_text(f"{head}\n{declarations}\n}}\n{tail}", encoding="utf-8", newline="\n")
    else:
        api.parent.mkdir(exist_ok=True)
        api.write_text(f'#pragma once\n\n#include "SceTypes.hpp"\n\nextern "C" {{\n\n{declarations}\n}}\n', encoding="utf-8", newline="\n")
        (PRX / library / f"{library}.hpp").write_text(f"#pragma once\n\n{include}", encoding="utf-8", newline="\n")

def rename_helpers(library, prefix):
    export = PRX / library / "Export.cpp"
    def replace(match):
        name = resolve(match.group(2), match.group(1))
        return match.group() if name is None else match.group().replace(match.group(1), f"{prefix}{camel(name)}_nid_no_patch")
    export.write_text(BLOCK.sub(replace, export.read_text(encoding="utf-8")), encoding="utf-8", newline="\n")

rename_symbols("libSceXml", "create")
rename_symbols("libSceNKWebKit", "replace")
rename_symbols("libSceJsc", "append")
rename_helpers("libSceFreeTypeOl", "sceFreeTypeOl")

Tested

Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7 (x86_64-ucrt-posix-seh), Release, BUILD_TESTING=ON, on main 750cf6cf48. No title run: nothing changes behaviour.

  • Exported NIDs: built and NID-patched libSceXml.prx, libSceNKWebKit.prx, libSceJsc.prx and libSceFreeTypeOl.prx; their PE export tables (objdump -p) hold exactly the NIDs main's sources declare (150, 150, 160 and 92, plus the two shared FT_Outline_Get*Border exports in libSceFreeTypeOl), none missing, none added.
  • Source check: for each library, the NIDs of the explicit aliases plus compute_nid of every exported function name are the same set before and after; no Unknown export is left in the four files.
  • python tools/nid_names.py: 803 unknowns before, 261 after (libSceFreeTypeOt 126, libSceIcu 107, and the 28 without a database entry).
  • Builds with no warnings in the four libraries. guest_freetype_outline_border_* (libSceFreeTypeOl and libSceFreeTypeOt, raw and patched) and guest_jsc_string, the tests that link these libraries: pass, 3 runs each (--repeat until-fail:3).
  • public_headers, public_headers_compile_*, conventions_*, test_registration and test_script_registration: 107/107 pass. test_public_headers.py --audit-only: 368 libraries, 13511 exports verified.
  • python tools/check_conventions.py --base origin/main with this title and body: all checks pass.
  • python tools/pr_overlap.py --branch refactor/name-nid-database-stubs: no overlap with the 1328 open pull requests. Three share a file: #12004 and #12373 (libSceFreeTypeOl/Export.cpp, where they rename the same two helpers to the same names) and #12442 (libSceJsc/Export.cpp, include/Api.hpp, docs/dev/debt/libSceJsc.md); git merge-tree with each head gives no conflict.

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:5052222285 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12457). Originally posted by [simnJS](https://github.com/simnJS) on 2026-10-28T14:29:45Z. --- ### What `tools/nid_names.py` already resolves 775 of the 803 `*Unknown_*` exports on `main` through its pinned [aerolib database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv), and every suggestion passes its `compute_nid(name) == nid` check (status `rename-ready`). This names the 542 of them in four libraries that no open pull request touches. Behaviour is unchanged: every body still throws through `NotImplemented_nid_no_patch`, and the exported NID set of each library is the same as on `main`. A title that reaches one of them now fails with the real symbol in the message instead of `sceXmlUnknown_+kAtAhAVcd0`, as in #1145. | Library | Named | Form | |---|---|---| | libSceXml | 150 | function named after its `sce::Xml` mangled symbol, declared in a new `include/Api.hpp` that `libSceXml.hpp` includes | | libSceNKWebKit | 150 | function named after its symbol: WebCore 82, Inspector 20, JSC 12, WTF 10, WebKit C API 24 (`WK*`), `WTFSetLogChannelLevel`, `JSObjectSetPrivate`; the `Api.hpp` declarations are renamed in place | | libSceJsc | 150 | function named after its symbol: Inspector 60, JSC 48, WTF 31, bmalloc 6, `Deprecated::ScriptValue` 1, `JSObjectHasPropertyForKey`, `JSValueMakeString`, `JSWeakObjectMapCreate`, `WTFLogAlwaysV`; declarations appended to `Api.hpp` | | libSceFreeTypeOl | 92 | helper `sceFreeTypeOl<Name>_nid_no_patch` that keeps its NID alias: the 83 `FTA_*` module and format helpers, `FT_Add_Module`, `FT_Alloc`, `FT_Attach_Stream`, `FT_CMap_Done`, `FT_CMap_New`, `FT_Done_GlyphSlot`, `FT_Done_Memory`, `FT_Free`, `FT_Get_Module_Interface` | - The C++ libraries follow #1145 (`_ZN3sce4Json17InitParameterRttiC1E…` in libSceJson2): the throwing function carries the symbol name and the NID is derived from it, so the explicit `APS5_EXPORT` alias goes away. Each name gets exactly one header declaration, as `public_headers` requires. - libSceFreeTypeOl follows its sibling libSceFreeTypeOt (49032fe9ed, 379b8a550d): libSceFreeType defines the `FT_*` symbols, so a same-named export here would be a duplicate export; the helper takes the symbol's name without `FT_` (`FTA_` becomes `Fta`) and keeps the alias. `FT_Alloc` and `FT_Free` get exactly the helper names #12004 gives them (`sceFreeTypeOlAlloc_nid_no_patch`, `sceFreeTypeOlFree_nid_no_patch`), so those lines merge with #12004 and #12373 without a conflict. - libSceNKWebKit `Export.cpp` started with 150 copies of the same `#include "prx/libSceNKWebKit/include/Api.hpp"`; they collapse to one. - The four debt entries name the database and say the names are hash-checked; prototypes and behaviour stay unverified. Every name fits its library: all 150 libSceXml names are `sce::Xml`, the libSceJsc and libSceNKWebKit names are JavaScriptCore/WTF/Inspector/bmalloc and WebCore/WebKit symbols, the libSceFreeTypeOl names are FreeType's. As an independent check, hashing every identifier of the bundled FreeType 2.13.3 tree (`3rdparty/freetype`, 58467 identifiers) gives the same names for the seven libSceFreeTypeOl NIDs whose functions still exist in 2.13.3 (`FT_Add_Module`, `FT_Attach_Stream`, `FT_CMap_Done`, `FT_CMap_New`, `FT_Done_GlyphSlot`, `FT_Done_Memory`, `FT_Get_Module_Interface`), and 106 libSceFreeTypeOt NIDs; `FT_Alloc`/`FT_Free` (removed from FreeType before 2.13) and Sony's `FTA_*` helpers come from the database only. Left out on purpose: - libSceFreeTypeOt (126 resolvable): its `Export.cpp` is edited by 25 open pull requests that rename or remove these aliases as they implement them (#10582 … #10613, #11426, #11613, #12370 and others). - libSceIcu (107 resolvable): #12320 removes 20 of these blocks and twelve more open pull requests implement libSceIcu. - 28 exports the database does not know (libkernel 17, libSceVrTracker2 6, libSceNpManager 2, libSceDiscMap, libScePad, libSceVideoRecordingP). `tools/progress.py`: unchanged, 46.65 % (+542 declared, -542 removed: the same throwing stubs under their real names). Reproduce from `main` (the whole change except the debt text): ```python import re, sys from pathlib import Path sys.path.insert(0, "tools") import nid_names PRX = Path("core/libs/prx") DB = nid_names.load_db(nid_names.DEFAULT_CACHE) BLOCK = re.compile(r'int APS5_VABI (\w+)\(\) \{\n NotImplemented_nid_no_patch\(__func__\);\n\}\nAPS5_EXPORT\("([A-Za-z0-9+-]{11})", \1\);\n') def resolve(nid, helper): name = DB.get(nid, "") return name if "Unknown_" in helper and name and nid_names.compute_nid(name) == nid else None def camel(name): prefix, rest = ("Fta", name[4:]) if name.startswith("FTA_") else ("", name.removeprefix("FT_")) return prefix + "".join(part[:1].upper() + part[1:] for part in rest.split("_")) def rename_symbols(library, mode): export = PRX / library / "Export.cpp" renamed = [] def replace(match): name = resolve(match.group(2), match.group(1)) if name is None: return match.group() renamed.append((match.group(1), name)) return f"int APS5_VABI {name}() {{\n NotImplemented_nid_no_patch(__func__);\n}}\n" text = BLOCK.sub(replace, export.read_text(encoding="utf-8")) include = f'#include "prx/{library}/include/Api.hpp"\n' export.write_text(include + re.sub(r"\A(?:" + re.escape(include) + r")+", "", text), encoding="utf-8", newline="\n") api = PRX / library / "include/Api.hpp" declarations = "".join(f"int APS5_VABI {name}();\n" for _, name in renamed) if mode == "replace": source = api.read_text(encoding="utf-8") for helper, name in renamed: source = source.replace(f"int APS5_VABI {helper}();\n", f"int APS5_VABI {name}();\n", 1) api.write_text(source, encoding="utf-8", newline="\n") elif mode == "append": head, tail = api.read_text(encoding="utf-8").rsplit("\n}\n", 1) api.write_text(f"{head}\n{declarations}\n}}\n{tail}", encoding="utf-8", newline="\n") else: api.parent.mkdir(exist_ok=True) api.write_text(f'#pragma once\n\n#include "SceTypes.hpp"\n\nextern "C" {{\n\n{declarations}\n}}\n', encoding="utf-8", newline="\n") (PRX / library / f"{library}.hpp").write_text(f"#pragma once\n\n{include}", encoding="utf-8", newline="\n") def rename_helpers(library, prefix): export = PRX / library / "Export.cpp" def replace(match): name = resolve(match.group(2), match.group(1)) return match.group() if name is None else match.group().replace(match.group(1), f"{prefix}{camel(name)}_nid_no_patch") export.write_text(BLOCK.sub(replace, export.read_text(encoding="utf-8")), encoding="utf-8", newline="\n") rename_symbols("libSceXml", "create") rename_symbols("libSceNKWebKit", "replace") rename_symbols("libSceJsc", "append") rename_helpers("libSceFreeTypeOl", "sceFreeTypeOl") ``` ### Tested Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7 (x86_64-ucrt-posix-seh), Release, `BUILD_TESTING=ON`, on `main` `750cf6cf48`. No title run: nothing changes behaviour. - Exported NIDs: built and NID-patched `libSceXml.prx`, `libSceNKWebKit.prx`, `libSceJsc.prx` and `libSceFreeTypeOl.prx`; their PE export tables (`objdump -p`) hold exactly the NIDs `main`'s sources declare (150, 150, 160 and 92, plus the two shared `FT_Outline_Get*Border` exports in libSceFreeTypeOl), none missing, none added. - Source check: for each library, the NIDs of the explicit aliases plus `compute_nid` of every exported function name are the same set before and after; no `Unknown` export is left in the four files. - `python tools/nid_names.py`: 803 unknowns before, 261 after (libSceFreeTypeOt 126, libSceIcu 107, and the 28 without a database entry). - Builds with no warnings in the four libraries. `guest_freetype_outline_border_*` (libSceFreeTypeOl and libSceFreeTypeOt, raw and patched) and `guest_jsc_string`, the tests that link these libraries: pass, 3 runs each (`--repeat until-fail:3`). - `public_headers`, `public_headers_compile_*`, `conventions_*`, `test_registration` and `test_script_registration`: 107/107 pass. `test_public_headers.py --audit-only`: 368 libraries, 13511 exports verified. - `python tools/check_conventions.py --base origin/main` with this title and body: all checks pass. - `python tools/pr_overlap.py --branch refactor/name-nid-database-stubs`: no overlap with the 1328 open pull requests. Three share a file: #12004 and #12373 (`libSceFreeTypeOl/Export.cpp`, where they rename the same two helpers to the same names) and #12442 (`libSceJsc/Export.cpp`, `include/Api.hpp`, `docs/dev/debt/libSceJsc.md`); `git merge-tree` with each head gives no conflict. ### 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 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-28 14:34:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T14:34:25Z.

Review: COMMENTED


I checked the exact head fa4dd26fa7 against upstream/main 446bd8776c. The 150 former explicit NID aliases in each of libSceXml, libSceJsc and libSceNKWebKit resolve to names in the PR source whose compute_nid(name) matches the original NID (450/450); all 92 libSceFreeTypeOl aliases remain present. python3 tools/nid_names.py reports 261 unknowns with 233 suggestions, consistent with the described remaining unknowns, and python3 tools/check_conventions.py --base upstream/main passes. I did not run a C++ build or title test, and Windows/report CI is still in progress, so this is a source/convention check rather than full runtime validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684388039 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12457#pullrequestreview-5684388039). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T14:34:25Z. **Review:** COMMENTED --- I checked the exact head `fa4dd26fa7` against `upstream/main` `446bd8776c`. The 150 former explicit NID aliases in each of libSceXml, libSceJsc and libSceNKWebKit resolve to names in the PR source whose `compute_nid(name)` matches the original NID (450/450); all 92 libSceFreeTypeOl aliases remain present. `python3 tools/nid_names.py` reports 261 unknowns with 233 suggestions, consistent with the described remaining unknowns, and `python3 tools/check_conventions.py --base upstream/main` passes. I did not run a C++ build or title test, and Windows/report CI is still in progress, so this is a source/convention check rather than full runtime validation.
rooklz commented 2026-10-28 14:50:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-28T14:50:24Z.

Review: APPROVED


I checked head fa4dd26fa7 on macOS 15 (Apple clang, libc++, arm64 host; Python 3.13). This adds macOS evidence to the Windows run in the body and to @MarcZX10's source check. The libs lane is not built on macOS, so I did not run the guest tests.

  • Exported NID set. For each library I took pr_overlap.source_exports over all of the library's sources, at fa4dd26fa7~1 and at the head. The sets are identical: libSceXml 150/150, libSceNKWebKit 150/150, libSceJsc 160/160, libSceFreeTypeOl 92/92. None is only in base, none only in head, and no NID has more than one name.
  • libSceFreeTypeOl helper names. I looked up all 92 kept aliases in the pinned aerolib.csv. Every NID is in the database, compute_nid(symbol) == nid holds, and every helper name equals the symbol after the stated mapping: FT_ removed, FTA_ → Fta, underscores dropped. 92/92, no mismatch.
  • Duplicate C symbols. I scanned every APS5_VABI definition under core/libs/prx for names defined in more than one library. There are 14 at base and the same 14 at head, all pre-existing (MsgDialog/.native, LibreSsl/LibreSsl3 and so on). The 450 new names add none, so no WTF/JSC name is shared between libSceJsc and libSceNKWebKit.
  • Headers. test_public_headers.py --audit-only reports 13061 → 13511 exports verified, which is +450 declarations, one per new name. I ran all 64 public_headers_compile_* batches with Apple clang -Werror and they pass. Batches 6 and 50 fail on arm64 at WindowsFormatting.hpp:658 (the long double static_assert, libc, which this PR does not touch); with -arch x86_64 they pass.
  • Translation units. clang++ -arch x86_64 -std=c++20 -fsyntax-only -Werror -Wall on the four Export.cpp gives 0 errors at both base and head.
  • Counts. tools/progress.py --module gives the same counts before and after (Xml 0/150, NKWebKit 0/150, Jsc 4/160, FreeTypeOl 0/92). nid_names.py --json goes from 803 rows (775 rename-ready, 28 unknown) to 261 (233 rename-ready, 28 unknown), which matches the body.
  • File sharers. I merged the head with upstream/main b4757928c0, #12442, #12004 and #12373 in one octopus merge. It is clean, with only an auto-merge in libSceFreeTypeOl/Export.cpp. On the merge, the NID sets are unchanged against the head (same four counts), the header audit passes with 13516 exports, the Jsc and FreeTypeOl TUs compile with 0 errors, and there are still 14 duplicate names.
  • Conventions. check_conventions.py --base upstream/main passes with this title and body.

Debt hunks: these are wording updates only (the stub prefix is replaced by the symbol families, plus a link to the database). They make no behaviour claim.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684636451 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12457#pullrequestreview-5684636451). Originally posted by [rooklz](https://github.com/rooklz) on 2026-10-28T14:50:24Z. **Review:** APPROVED --- I checked head `fa4dd26fa7` on macOS 15 (Apple clang, libc++, arm64 host; Python 3.13). This adds macOS evidence to the Windows run in the body and to @MarcZX10's source check. The libs lane is not built on macOS, so I did not run the guest tests. - **Exported NID set.** For each library I took `pr_overlap.source_exports` over all of the library's sources, at `fa4dd26fa7~1` and at the head. The sets are identical: libSceXml 150/150, libSceNKWebKit 150/150, libSceJsc 160/160, libSceFreeTypeOl 92/92. None is only in base, none only in head, and no NID has more than one name. - **libSceFreeTypeOl helper names.** I looked up all 92 kept aliases in the pinned `aerolib.csv`. Every NID is in the database, `compute_nid(symbol) == nid` holds, and every helper name equals the symbol after the stated mapping: `FT_` removed, `FTA_` → `Fta`, underscores dropped. 92/92, no mismatch. - **Duplicate C symbols.** I scanned every `APS5_VABI` definition under `core/libs/prx` for names defined in more than one library. There are 14 at base and the same 14 at head, all pre-existing (MsgDialog/.native, LibreSsl/LibreSsl3 and so on). The 450 new names add none, so no WTF/JSC name is shared between libSceJsc and libSceNKWebKit. - **Headers.** `test_public_headers.py --audit-only` reports 13061 → 13511 exports verified, which is +450 declarations, one per new name. I ran all 64 `public_headers_compile_*` batches with Apple clang `-Werror` and they pass. Batches 6 and 50 fail on arm64 at `WindowsFormatting.hpp:658` (the `long double` static_assert, libc, which this PR does not touch); with `-arch x86_64` they pass. - **Translation units.** `clang++ -arch x86_64 -std=c++20 -fsyntax-only -Werror -Wall` on the four `Export.cpp` gives 0 errors at both base and head. - **Counts.** `tools/progress.py --module` gives the same counts before and after (Xml 0/150, NKWebKit 0/150, Jsc 4/160, FreeTypeOl 0/92). `nid_names.py --json` goes from 803 rows (775 rename-ready, 28 unknown) to 261 (233 rename-ready, 28 unknown), which matches the body. - **File sharers.** I merged the head with `upstream/main` `b4757928c0`, #12442, #12004 and #12373 in one octopus merge. It is clean, with only an auto-merge in `libSceFreeTypeOl/Export.cpp`. On the merge, the NID sets are unchanged against the head (same four counts), the header audit passes with 13516 exports, the Jsc and FreeTypeOl TUs compile with 0 errors, and there are still 14 duplicate names. - **Conventions.** `check_conventions.py --base upstream/main` passes with this title and body. Debt hunks: these are wording updates only (the stub prefix is replaced by the symbol families, plus a link to the database). They make no behaviour claim. AI-assisted: yes
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!12457
No description provided.