feat(libSceNpCppWebApi): answer abort, getId and getResponse of never-started transactions as the module does #12447

Closed
simnJS wants to merge 1 commit from upstream-pr/12447 into main
simnJS commented 2026-10-28 13:55:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simnJS on 2026-10-28T13:55:13Z.


What

Ten libSceNpCppWebApi exports on never-started transactions threw on main. They now give the answers the library's own module code gives for that state. A transaction never starts here: start and the API calls fail, so the two words its constructor zeroes stay null.

  • TransactionBase<...>::abort and getId of the four UserProfile::V1 transactions (GetFriendsResponse, GetBlockingUsersResponse, GetBasicPresencesResponse, GetPublicProfilesResponse) return 0x80553508 and 0. This is the TransactionBase code #11235 read in the module bundled with PPSA21564, for six abort and five getId instantiations that main answers that way; main also answers finish of these four transactions with 0x80553508. getId is declared std::int64_t, as #11235 declares the others. These four instantiations were not read in a module.
  • Transaction<...>::getResponse of the InGameCatalog::V5 Vector<IntrusivePtr<Container>> and TitleCloudStorage::V1 GetMultiDataStatusesResponseBody transactions return 0x80553508 and leave the response untouched. BunnyFl read these two instantiations in the module bundled with ASTRO BOT (PPSA21567): they return 0x80553508 when the transaction's word at +0 or +8 is null (comment on #10832). The constructors of these two transactions zero those words on main (#11235), and only a successful start sets them.

What stays throwing, from the same comment: start of these two transactions and DataApi::getMultiDataStatusesByUser. Past the LibContext checks, their answer comes from libSceNpWebApi2 and the service, which nothing measured shows. #10832 was closed for giving them NOT_SIGNED_IN without a source; this PR does not touch them.

Debt: the UserProfile entry no longer lists abort/getId as throwing, and a new entry records what is not read (the four UserProfile instantiations) and what still throws (the two starts and getMultiDataStatusesByUser).

tools/progress.py: libSceNpCppWebApi 484/751 → 494/751.

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; the branch merges cleanly into the current main f3eb573e6f, whose newer commits do not touch libSceNpCppWebApi. No title run.

  • guest_np_cpp_web_api_signed_out (extended) and the library's other three tests, guest_np_cpp_web_api_offline, guest_np_cpp_web_api_intrusive_ptr and guest_np_cpp_web_api_string: pass, 20 runs each on this head (ctest --repeat until-fail:10 twice, with a rebuild in between).
  • The new checks cover:
    • the four UserProfile aborts returning 0x80553508 and the four getIds returning 0, next to the instantiations already checked;
    • getResponse on each of the two transactions after construction and finish: 0x80553508, a 0x18-byte response filled with a sentinel left untouched, and the transaction's 0x10 zeroed bytes and the bytes after them unchanged.
  • Control: each of the ten functions put back alone to main's throwing body (same declaration, so the test compiles) makes guest_np_cpp_web_api_signed_out fail with <that symbol> not implemented (exit 0xc0000409): 10 of 10, one rebuild each.
  • public_headers and public_headers_compile_*: 65/65 pass.
  • Full suites on GitHub runners at this head, from my fork:
    • Windows, the upstream build.yml in full mode: run 40718036566, build and every test pass.
    • Linux, Ubuntu 24.04 (a fork-only workflow): run 40718010092, 2721 tests. Two fail, neither from this change: conventions_ci_gate rejects that fork-only workflow file, and precise_wait also fails on the fork's main.
  • python tools/check_conventions.py --base origin/main with this title and body: all checks pass.
  • python tools/pr_overlap.py --branch feat/npcppwebapi-never-started-userprofile: only #11644, in docs/dev/debt/libSceNpCppWebApi.md. It rewrites the line just above the UserProfile entry this PR cuts, so git reports an adjacent conflict; keeping both edits resolves it. This PR goes after #11644 and will merge main once it lands. None of the seven open libSceNpCppWebApi PRs touches these ten functions.

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: #11644
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5051691661 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12447). Originally posted by [simnJS](https://github.com/simnJS) on 2026-10-28T13:55:13Z. --- ### What Ten libSceNpCppWebApi exports on never-started transactions threw on `main`. They now give the answers the library's own module code gives for that state. A transaction never starts here: `start` and the API calls fail, so the two words its constructor zeroes stay null. - **`TransactionBase<...>::abort` and `getId` of the four `UserProfile::V1` transactions** (`GetFriendsResponse`, `GetBlockingUsersResponse`, `GetBasicPresencesResponse`, `GetPublicProfilesResponse`) return `0x80553508` and 0. This is the `TransactionBase` code #11235 read in the module bundled with PPSA21564, for six `abort` and five `getId` instantiations that `main` answers that way; `main` also answers `finish` of these four transactions with `0x80553508`. `getId` is declared `std::int64_t`, as #11235 declares the others. These four instantiations were not read in a module. - **`Transaction<...>::getResponse` of the `InGameCatalog::V5` `Vector<IntrusivePtr<Container>>` and `TitleCloudStorage::V1` `GetMultiDataStatusesResponseBody` transactions** return `0x80553508` and leave the response untouched. BunnyFl read these two instantiations in the module bundled with ASTRO BOT (PPSA21567): they return `0x80553508` when the transaction's word at +0 or +8 is null ([comment on #10832](https://github.com/boykopovar/AnyPS5/pull/10832#issuecomment-6416121806)). The constructors of these two transactions zero those words on `main` (#11235), and only a successful `start` sets them. What stays throwing, from the same comment: `start` of these two transactions and `DataApi::getMultiDataStatusesByUser`. Past the `LibContext` checks, their answer comes from `libSceNpWebApi2` and the service, which nothing measured shows. #10832 was closed for giving them `NOT_SIGNED_IN` without a source; this PR does not touch them. Debt: the UserProfile entry no longer lists `abort`/`getId` as throwing, and a new entry records what is not read (the four UserProfile instantiations) and what still throws (the two `start`s and `getMultiDataStatusesByUser`). `tools/progress.py`: libSceNpCppWebApi 484/751 → 494/751. ### 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`; the branch merges cleanly into the current `main` `f3eb573e6f`, whose newer commits do not touch libSceNpCppWebApi. No title run. - `guest_np_cpp_web_api_signed_out` (extended) and the library's other three tests, `guest_np_cpp_web_api_offline`, `guest_np_cpp_web_api_intrusive_ptr` and `guest_np_cpp_web_api_string`: pass, 20 runs each on this head (`ctest --repeat until-fail:10` twice, with a rebuild in between). - The new checks cover: - the four UserProfile `abort`s returning `0x80553508` and the four `getId`s returning 0, next to the instantiations already checked; - `getResponse` on each of the two transactions after construction and `finish`: `0x80553508`, a 0x18-byte response filled with a sentinel left untouched, and the transaction's 0x10 zeroed bytes and the bytes after them unchanged. - Control: each of the ten functions put back alone to `main`'s throwing body (same declaration, so the test compiles) makes `guest_np_cpp_web_api_signed_out` fail with `<that symbol> not implemented` (exit `0xc0000409`): 10 of 10, one rebuild each. - `public_headers` and `public_headers_compile_*`: 65/65 pass. - Full suites on GitHub runners at this head, from my fork: - Windows, the upstream `build.yml` in full mode: [run 40718036566](https://github.com/simnJS/AnyPS5/actions/runs/40718036566), build and every test pass. - Linux, Ubuntu 24.04 (a fork-only workflow): [run 40718010092](https://github.com/simnJS/AnyPS5/actions/runs/40718010092), 2721 tests. Two fail, neither from this change: `conventions_ci_gate` rejects that fork-only workflow file, and `precise_wait` also fails on the fork's `main`. - `python tools/check_conventions.py --base origin/main` with this title and body: all checks pass. - `python tools/pr_overlap.py --branch feat/npcppwebapi-never-started-userprofile`: only #11644, in `docs/dev/debt/libSceNpCppWebApi.md`. It rewrites the line just above the UserProfile entry this PR cuts, so git reports an adjacent conflict; keeping both edits resolves it. This PR goes after #11644 and will merge `main` once it lands. None of the seven open libSceNpCppWebApi PRs touches these ten functions. ### Checklist - [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: #11644 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-28 13:58:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T13:58:27Z.

Review: CHANGES_REQUESTED


The implementation scope and focused regression coverage are clear. One repository-required overlap follow-up remains: the PR itself reports an adjacent conflict with open #11644 in docs/dev/debt/libSceNpCppWebApi.md, and an exact git merge-tree --write-tree of the current heads confirms that this is the only conflict. CONTRIBUTING.md requires the authors to agree which overlapping PR goes first and record that order with Depends on.

Please coordinate the order with #11644's author and update the checklist line to match (for example, Depends on: #11644 if #11644 is to land first). The body currently says Depends on: none, so the recorded prerequisite does not reflect the known conflict. I found no code correctness issue in the reviewed hunks. This request is for the required merge-order coordination only.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5683834677 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12447#pullrequestreview-5683834677). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T13:58:27Z. **Review:** CHANGES_REQUESTED --- The implementation scope and focused regression coverage are clear. One repository-required overlap follow-up remains: the PR itself reports an adjacent conflict with open #11644 in `docs/dev/debt/libSceNpCppWebApi.md`, and an exact `git merge-tree --write-tree` of the current heads confirms that this is the only conflict. `CONTRIBUTING.md` requires the authors to agree which overlapping PR goes first and record that order with `Depends on`. Please coordinate the order with #11644's author and update the checklist line to match (for example, `Depends on: #11644` if #11644 is to land first). The body currently says `Depends on: none`, so the recorded prerequisite does not reflect the known conflict. I found no code correctness issue in the reviewed hunks. This request is for the required merge-order coordination only.
MarcZX10 commented 2026-10-28 14:38:02 +00:00 (Migrated from github.com)

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

Review: APPROVED


Approved at exact head ae0d01f4be. My earlier changes-requested point is resolved: the checklist now names Depends on: #11644, and the authors have agreed that #12447 lands first in that stack. I reviewed the ten state-specific exports and sentinel-preserving response tests, independently syntax-compiled the exact test source and ran it against the PR Export.cpp (the temporary handler only covered unrelated no-patch exports); it passed. Hosted Windows, conventions, intake, eligibility, labels and report checks are green; platform build jobs are workflow-skipped. No console run is claimed, and the #11644 dependency remains open.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684445553 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12447#pullrequestreview-5684445553). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T14:38:02Z. **Review:** APPROVED --- Approved at exact head `ae0d01f4be`. My earlier changes-requested point is resolved: the checklist now names `Depends on: #11644`, and the authors have agreed that #12447 lands first in that stack. I reviewed the ten state-specific exports and sentinel-preserving response tests, independently syntax-compiled the exact test source and ran it against the PR `Export.cpp` (the temporary handler only covered unrelated no-patch exports); it passed. Hosted Windows, conventions, intake, eligibility, labels and report checks are green; platform build jobs are workflow-skipped. No console run is claimed, and the `#11644` dependency remains open.

Pull request closed

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!12447
No description provided.