feat(savedata): add missing cloud and sync inventory exports #13027

Merged
Celegans12 merged 297 commits from upstream-pr/13027 into main 2026-10-30 12:45:46 +00:00
Celegans12 commented 2026-10-29 22:26:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-29T22:26:18Z.


What

Adds seven missing libSceSaveData import-resolution placeholders to the existing shared source, with one reachable public declaration for each:

Name NID
sceSaveDataCheckPremiumMember K9sf4j1ASdE
sceSaveDataCheckSyncStatus 3q2BZJuQpYE
sceSaveDataGetAllSizeProspero BVflHqZdogc
sceSaveDataGetAutoSyncInfo MDOHimunyn8
sceSaveDataGetCloudInfo sWToMYsKicE
sceSaveDataNotifySaveDataDownload RoXnvhw+jX0
sceSaveDataSetAutoSyncSettings RET0IGbAE+U

The name/NID pairs come from LIBRARIES.md and the per-library 13.60 metadata, pinned to bfec40deb4c47a17d7603ee2bc79aa6862c0c56b. The metadata file's exact Git blob hash is 0a607a6b64b256b4004acfcad21331bb338b974a; it was checked against the pinned Contents API, and all seven bindings were independently recomputed. A normalized global scan of 914 non-test core C/C++/header/assembly files found no current source, explicit-alias or assembly NID owner for these additions.

libSceSaveData and libSceSaveData.native already compile the same native Export.cpp through SaveDataLibrary.cmake. Both public umbrellas reach the existing primary API header. The shared build therefore emits these additions in both existing compiled owners. The inventory evidence is for logical libSceSaveData; it does not separately establish native firmware exports or a new physical provider.

Every new call immediately throws through NotImplemented_nid_no_patch. Parameterless int declarations are import placeholders, not verified ABI prototypes. Unknown signatures and behavior remain recorded in the native library's debt. Existing code, declarations and debt bytes are preserved around the seven additions. This implements no cloud, sync, premium-membership or download behavior and makes no title compatibility claim.

This revision removes sceSaveDataMountSysProspero2 from the source, canonical header and debt entry. The collaborator's decision on #5121 requires a title ID and import log before that exact proposal is resumed; those are unavailable here. A later contributor comment on an unrelated PR is not treated as overriding that decision. The removed binding remains held and is outside this PR's corrected scope.

The corrected head 2299b471cb3f5ab47970dead6856d04885e4c7b0 is an actual merge of current main 1a217758a55c09e817366fa4411daac854eeb3f9 and the original published head d058e59ffdcc397b03a83257656f1be5d7eb1e40, with the held binding removed before the merge commit. Its diff against main contains only the seven additions in three files; the original head remains an ancestor for the same existing PR/topic.

Tested

Linux x86-64, GCC 13.3.0, Release, BUILD_TESTING=ON. Current correction base: 1a217758a55c09e817366fa4411daac854eeb3f9.

  • python3 tools/check_conventions.py --base origin/main, public-header audit, C++20 syntax compilation of the changed source and both compiled owners' public umbrellas, and whitespace checks passed. The same reachable canonical declaration serves both owners; none was duplicated in the native API header.
  • The live read-only preflight covered 1,451 open PRs and refreshed 34 new/changed heads. Excluding this same existing PR, no open peer reserves any of the seven names/NIDs. The independent scoped closed-history review checks these seven separately from the removed #5121 identity; closed status alone is not treated as rejection.
  • All three owned files were merged against each of the ten current SaveData peer heads using their true merge bases, in both directions: 60/60 content merges clean, retaining all seven names. Heads: #12853 3e43ead24cba62a70e78a14bdc7b75c682875af5, #12846 1c466b11a055c47fe30283781cbbbf6ad90fb6f2, #12748 bb346f7cadff91367e99b2e66438ee72a468ae7e, #12699 e64a9b14ef9320cf2a4eab3a6f2516deee770264, #12650 46b89c8f4f6ddc37674e7fb0b58a080ff2983723, #12644 43dc8a75c7456293aa33db365c46432bb13a8bb9, #12625 bc6a5e4ea1ff34484812255ef7e3d07c92b7ce68, #10674 1842be8ecca527ec183ddab2192dc8f50551eaa4, #8630 d3b5b39a255405ab0894684259a388922067affa, #8285 c03058cb2ac759b6f1cccfa9535b3f7ac53c9a31. This includes #8630; its old whole-branch conflict in an unrelated mount-status test is outside this PR's three files. No shared export identity or ordering dependency was found. These manual checks do not replace the mandatory final scanner below.
  • Current native builds of both libSceSaveData and libSceSaveData.native, all twelve targets listed by the focused test setup, and nid_patcher passed. Main 1a217758a55c09e817366fa4411daac854eeb3f9 passed all 11 selected CPU checks; combined validation commit 6324cb13d89c0cd2cee0fa5c6ac95159bc604e8c passed those same 11 plus public_headers (12/12). Its other six alias-inventory additions touch no SaveData paths. Every source/header/debt blob of this corrected topic is identical to its blob in that validation tree. Checks: six guest_savedata_{search,delete,convert,mount_status,ps4,cancel} tests plus memory metadata, growth, growth-read-failure, journal, native write replacement and public headers.
  • Standard NID patching with libc's preserve-export-list and nm -D --defined-only verified all seven new name/NID pairs: absent in baseline and defined exactly once in each corrected compiled owner, fourteen physical definitions total. The removed sceSaveDataMountSysProspero2 NID fIu-ckf3n-o is absent from both owners in both snapshots. Independent salted SHA-1 recomputation agrees with the pinned metadata. These checks establish import identity, not firmware ABI or behavior.
  • The unchanged core/libs/tests/PatchedLibraries.cpp, compiled as a standalone loader, loaded the four-module dependency closure before and after: 4/4 loaded and zero failed in each run. The closure contains both SaveData owners plus libc/libkernel. No unknown-ABI export was invoked.
  • The unchanged tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch codex/savedata-policy-correction-merge --jobs 4 completed against 1,450 open PRs, excluding this same PR through its preserved original-head ancestry. It reports an uncompared #8630 source/debt pair because that peer already conflicts with main. This is not a literal clean scanner result. The 60 true-base file merges above cover all ten current peers and all three owned files in both directions: all are clean, including #8630; its unrelated whole-branch test conflict remains outside this patch. No duplicate export or ordering dependency was found.

Existing save-data tests cover prior host behavior; they do not call the unknown-ABI placeholders or establish console cloud/sync semantics. Loader checks establish loading only. No tests were added solely to assert export existence or require unfinished exports to keep throwing.

The full all-library build and full CTest suite were not run. No Windows, GPU, PS5 hardware, title or Ghost of Yōtei validation.

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 (ChatGPT Work)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5076445412 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13027). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-29T22:26:18Z. --- ### What Adds seven missing `libSceSaveData` import-resolution placeholders to the existing shared source, with one reachable public declaration for each: | Name | NID | | --- | --- | | `sceSaveDataCheckPremiumMember` | `K9sf4j1ASdE` | | `sceSaveDataCheckSyncStatus` | `3q2BZJuQpYE` | | `sceSaveDataGetAllSizeProspero` | `BVflHqZdogc` | | `sceSaveDataGetAutoSyncInfo` | `MDOHimunyn8` | | `sceSaveDataGetCloudInfo` | `sWToMYsKicE` | | `sceSaveDataNotifySaveDataDownload` | `RoXnvhw+jX0` | | `sceSaveDataSetAutoSyncSettings` | `RET0IGbAE+U` | The name/NID pairs come from [LIBRARIES.md](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/bfec40deb4c47a17d7603ee2bc79aa6862c0c56b/LIBRARIES.md) and the [per-library 13.60 metadata](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/bfec40deb4c47a17d7603ee2bc79aa6862c0c56b/data/firmware-13.60/libscesavedata-f92dab8a68.jsonl), pinned to `bfec40deb4c47a17d7603ee2bc79aa6862c0c56b`. The metadata file's exact Git blob hash is `0a607a6b64b256b4004acfcad21331bb338b974a`; it was checked against the pinned Contents API, and all seven bindings were independently recomputed. A normalized global scan of 914 non-test core C/C++/header/assembly files found no current source, explicit-alias or assembly NID owner for these additions. `libSceSaveData` and `libSceSaveData.native` already compile the same native `Export.cpp` through `SaveDataLibrary.cmake`. Both public umbrellas reach the existing primary API header. The shared build therefore emits these additions in both existing compiled owners. The inventory evidence is for logical `libSceSaveData`; it does not separately establish native firmware exports or a new physical provider. Every new call immediately throws through `NotImplemented_nid_no_patch`. Parameterless `int` declarations are import placeholders, not verified ABI prototypes. Unknown signatures and behavior remain recorded in the native library's debt. Existing code, declarations and debt bytes are preserved around the seven additions. This implements no cloud, sync, premium-membership or download behavior and makes no title compatibility claim. This revision removes `sceSaveDataMountSysProspero2` from the source, canonical header and debt entry. [The collaborator's decision on #5121](https://github.com/boykopovar/AnyPS5/pull/5121#issuecomment-6159585744) requires a title ID and import log before that exact proposal is resumed; those are unavailable here. A later contributor comment on an unrelated PR is not treated as overriding that decision. The removed binding remains held and is outside this PR's corrected scope. The corrected head `2299b471cb3f5ab47970dead6856d04885e4c7b0` is an actual merge of current main `1a217758a55c09e817366fa4411daac854eeb3f9` and the original published head `d058e59ffdcc397b03a83257656f1be5d7eb1e40`, with the held binding removed before the merge commit. Its diff against main contains only the seven additions in three files; the original head remains an ancestor for the same existing PR/topic. ### Tested Linux x86-64, GCC 13.3.0, Release, `BUILD_TESTING=ON`. Current correction base: `1a217758a55c09e817366fa4411daac854eeb3f9`. - `python3 tools/check_conventions.py --base origin/main`, public-header audit, C++20 syntax compilation of the changed source and both compiled owners' public umbrellas, and whitespace checks passed. The same reachable canonical declaration serves both owners; none was duplicated in the native API header. - The live read-only preflight covered 1,451 open PRs and refreshed 34 new/changed heads. Excluding this same existing PR, no open peer reserves any of the seven names/NIDs. The independent scoped closed-history review checks these seven separately from the removed #5121 identity; closed status alone is not treated as rejection. - All three owned files were merged against each of the ten current SaveData peer heads using their true merge bases, in both directions: 60/60 content merges clean, retaining all seven names. Heads: #12853 `3e43ead24cba62a70e78a14bdc7b75c682875af5`, #12846 `1c466b11a055c47fe30283781cbbbf6ad90fb6f2`, #12748 `bb346f7cadff91367e99b2e66438ee72a468ae7e`, #12699 `e64a9b14ef9320cf2a4eab3a6f2516deee770264`, #12650 `46b89c8f4f6ddc37674e7fb0b58a080ff2983723`, #12644 `43dc8a75c7456293aa33db365c46432bb13a8bb9`, #12625 `bc6a5e4ea1ff34484812255ef7e3d07c92b7ce68`, #10674 `1842be8ecca527ec183ddab2192dc8f50551eaa4`, #8630 `d3b5b39a255405ab0894684259a388922067affa`, #8285 `c03058cb2ac759b6f1cccfa9535b3f7ac53c9a31`. This includes #8630; its old whole-branch conflict in an unrelated mount-status test is outside this PR's three files. No shared export identity or ordering dependency was found. These manual checks do not replace the mandatory final scanner below. - Current native builds of both `libSceSaveData` and `libSceSaveData.native`, all twelve targets listed by the focused test setup, and `nid_patcher` passed. Main `1a217758a55c09e817366fa4411daac854eeb3f9` passed all 11 selected CPU checks; combined validation commit `6324cb13d89c0cd2cee0fa5c6ac95159bc604e8c` passed those same 11 plus `public_headers` (12/12). Its other six alias-inventory additions touch no SaveData paths. Every source/header/debt blob of this corrected topic is identical to its blob in that validation tree. Checks: six `guest_savedata_{search,delete,convert,mount_status,ps4,cancel}` tests plus memory metadata, growth, growth-read-failure, journal, native write replacement and public headers. - Standard NID patching with libc's preserve-export-list and `nm -D --defined-only` verified all seven new name/NID pairs: absent in baseline and defined exactly once in each corrected compiled owner, fourteen physical definitions total. The removed `sceSaveDataMountSysProspero2` NID `fIu-ckf3n-o` is absent from both owners in both snapshots. Independent salted SHA-1 recomputation agrees with the pinned metadata. These checks establish import identity, not firmware ABI or behavior. - The unchanged `core/libs/tests/PatchedLibraries.cpp`, compiled as a standalone loader, loaded the four-module dependency closure before and after: 4/4 loaded and zero failed in each run. The closure contains both SaveData owners plus libc/libkernel. No unknown-ABI export was invoked. - The unchanged `tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch codex/savedata-policy-correction-merge --jobs 4` completed against 1,450 open PRs, excluding this same PR through its preserved original-head ancestry. It reports an uncompared #8630 source/debt pair because that peer already conflicts with main. This is not a literal clean scanner result. The 60 true-base file merges above cover all ten current peers and all three owned files in both directions: all are clean, including #8630; its unrelated whole-branch test conflict remains outside this patch. No duplicate export or ordering dependency was found. Existing save-data tests cover prior host behavior; they do not call the unknown-ABI placeholders or establish console cloud/sync semantics. Loader checks establish loading only. No tests were added solely to assert export existence or require unfinished exports to keep throwing. The full all-library build and full CTest suite were not run. No Windows, GPU, PS5 hardware, title or Ghost of Yōtei validation. <!-- 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. --> ### 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 (ChatGPT Work) <!-- yes / no -->
rooklz commented 2026-10-29 22:40:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-29T22:40:07Z.

Review: APPROVED


Host-only evidence on d058e59ffd vs upstream/main 3679074dd6: conventions PASS; pr_overlap clean (10 merged file-sharers, no open overlap); merge-tree clean; relinker ctest 499/499 here; pinned 13.60 savedata jsonl lists all eight exports; SaveDataLibrary.cmake shares Export.cpp for libSceSaveData + .native; standalone ASan harness confirms each stub throws via NotImplemented_nid_no_patch(func). AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705907528 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13027#pullrequestreview-5705907528). Originally posted by [rooklz](https://github.com/rooklz) on 2026-10-29T22:40:07Z. **Review:** APPROVED --- Host-only evidence on d058e59ffd vs upstream/main 3679074dd6: conventions PASS; pr_overlap clean (10 merged file-sharers, no open overlap); merge-tree clean; relinker ctest 499/499 here; pinned 13.60 savedata jsonl lists all eight exports; SaveDataLibrary.cmake shares Export.cpp for libSceSaveData + .native; standalone ASan harness confirms each stub throws via NotImplemented_nid_no_patch(__func__). 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!13027
No description provided.