feat(libSceNpCppWebApi): implement audited response accessors, iterators and String-vector copyFrom #14136

Merged
akkadbakkad89 merged 5 commits from upstream-pr/14136 into main 2026-11-06 00:22:15 +00:00
akkadbakkad89 commented 2026-10-31 20:25:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-31T20:25:56Z.


What

Ports 26 further libSceNpCppWebApi exports verified against the copy of the module bundled with PPSA13197 (sce_module), resolving each symbol through the SCE export table and disassembling its body before porting:

  • Model accessors: BasicProfile::getOnlineId (0x14-byte copy at +0x10/+0x20), getPersonalDetail (pointer member at +0x28), getIsOfficiallyVerified (byte at +0xa9); BasicPresence::accountIdIsSet (byte at +0x18); PersonalDetail::getDisplayName (member at +0x88).
  • SessionManager2 accessors: PlayerSession::getMember (pointer member at +0x30), PlayerSessionForRead getLeader (0xf8) / getCustomData1/getCustomData2 (strings at 0x1c8/0x1e8) / customData2IsSet (byte at 0x200) / getExclusiveLeaderPrivileges (pointer member at 0x188), ResponsePlayerSessionPlayer getPlatform (member at 0x18) / getAccountId (word at 0x10).
  • Response getters: GetFriendsResponse::getFriends, GetBlockingUsersResponse::getBlocks (member pointers at +0x30), GetBasicPresencesResponse::getBasicPresences (pointer member at +0x30), GetPlayerSessionsResponseBody::getPlayerSessions (0x30), ResponsePlayerSessionMemberPlayer::getPlayers (0x10), FilterProfanityResponse::getMessage (member at +0x38). Pointer-member getters copy the {object, deleter, LibContext} triple and bump the audited reference-count offset (0x00 for IntrusivePtr, 0x30 for Vector, 0x38 for Vector<String>).
  • Common machinery: Vector<IntrusivePtr<BasicProfile>>::begin, Iterator<IntrusivePtr<BasicProfile>>::operator!=, Iterator<IntrusivePtr<Sku>>::operator++, Vector<String>::copyFrom (releases old elements, adopts the source context when unset, deep-copies each String, returns 0x80553504 on allocation failure — matching the bundled body's assign helper), and the TransactionBase operator= for the CommunicationRestrictionStatus response (a plain 16-byte copy).
  • Gated paths: ResponseHeaderBase::getHeaderValue returns 0x80553512 when the header-store pointer at +0x08 is null (matching the bundled module) and throws past that gate — the real lookup needs response internals no offline call produces. DataApi::getMultiDataStatusesByUser returns SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN, the code signed-out consoles return from request entry points.

Tested

ctest -R np_cpp_web_api — 9/9 pass on Windows 11 (MinGW). GuestNpCppWebApiIntrusivePtr now round-trips BasicProfile/BasicPresence objects through the new getters, exercises the IntrusivePtr member-copy offsets (0x10/0x28/0x30/0xf8/0x188) with refcount and deleter bookkeeping, iterates a populated Vector<IntrusivePtr<…>> through begin/end/!=/++, checks the getHeaderValue 0x80553512 gate and the getMultiDataStatusesByUser offline code. GuestNpCppWebApiString adds Vector<String>::copyFrom coverage: deep-copied buffers, zeroed element reference counts, repeated-copy cleanup. tools/check_conventions.py --base origin/main passes.

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: #14122, #11221, #12447
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5101245192 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-31T20:25:56Z. --- ### What Ports 26 further `libSceNpCppWebApi` exports verified against the copy of the module bundled with PPSA13197 (`sce_module`), resolving each symbol through the SCE export table and disassembling its body before porting: - **Model accessors**: `BasicProfile::getOnlineId` (0x14-byte copy at +0x10/+0x20), `getPersonalDetail` (pointer member at +0x28), `getIsOfficiallyVerified` (byte at +0xa9); `BasicPresence::accountIdIsSet` (byte at +0x18); `PersonalDetail::getDisplayName` (member at +0x88). - **SessionManager2 accessors**: `PlayerSession::getMember` (pointer member at +0x30), `PlayerSessionForRead` `getLeader` (0xf8) / `getCustomData1`/`getCustomData2` (strings at 0x1c8/0x1e8) / `customData2IsSet` (byte at 0x200) / `getExclusiveLeaderPrivileges` (pointer member at 0x188), `ResponsePlayerSessionPlayer` `getPlatform` (member at 0x18) / `getAccountId` (word at 0x10). - **Response getters**: `GetFriendsResponse::getFriends`, `GetBlockingUsersResponse::getBlocks` (member pointers at +0x30), `GetBasicPresencesResponse::getBasicPresences` (pointer member at +0x30), `GetPlayerSessionsResponseBody::getPlayerSessions` (0x30), `ResponsePlayerSessionMemberPlayer::getPlayers` (0x10), `FilterProfanityResponse::getMessage` (member at +0x38). Pointer-member getters copy the {object, deleter, LibContext} triple and bump the audited reference-count offset (0x00 for `IntrusivePtr`, 0x30 for `Vector`, 0x38 for `Vector<String>`). - **Common machinery**: `Vector<IntrusivePtr<BasicProfile>>::begin`, `Iterator<IntrusivePtr<BasicProfile>>::operator!=`, `Iterator<IntrusivePtr<Sku>>::operator++`, `Vector<String>::copyFrom` (releases old elements, adopts the source context when unset, deep-copies each `String`, returns 0x80553504 on allocation failure — matching the bundled body's assign helper), and the `TransactionBase` `operator=` for the `CommunicationRestrictionStatus` response (a plain 16-byte copy). - **Gated paths**: `ResponseHeaderBase::getHeaderValue` returns 0x80553512 when the header-store pointer at +0x08 is null (matching the bundled module) and throws past that gate — the real lookup needs response internals no offline call produces. `DataApi::getMultiDataStatusesByUser` returns `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`, the code signed-out consoles return from request entry points. ### Tested `ctest -R np_cpp_web_api` — 9/9 pass on Windows 11 (MinGW). `GuestNpCppWebApiIntrusivePtr` now round-trips `BasicProfile`/`BasicPresence` objects through the new getters, exercises the `IntrusivePtr` member-copy offsets (0x10/0x28/0x30/0xf8/0x188) with refcount and deleter bookkeeping, iterates a populated `Vector<IntrusivePtr<…>>` through `begin`/`end`/`!=`/`++`, checks the `getHeaderValue` 0x80553512 gate and the `getMultiDataStatusesByUser` offline code. `GuestNpCppWebApiString` adds `Vector<String>::copyFrom` coverage: deep-copied buffers, zeroed element reference counts, repeated-copy cleanup. `tools/check_conventions.py --base origin/main` passes. ### 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: #14122, #11221, #12447 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-31 20:39:57 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Reviewed — changes requested

The new copyFrom helpers erase their contents on self-copy, and the required PR checklist still fails conventions.

What I ran

Reviewed head 5922865c7a6a4b65e1c9a798b51579e2001ed940 against base 0836dfdf4fecb1e0326100c490476e15d3a74da5; the dependency and current-base merge preview was clean. Environment: Debian Linux, GCC 12.2.0.

git diff --check upstream/main...refs/remotes/review/pr-14136
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 0836dfdf4fecb1e0326100c490476e15d3a74da5 --head 5922865c7a6a4b65e1c9a798b51579e2001ed940 --json
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiString.cpp
git grep -n 'guest_np_cpp_web_api_\(intrusive_ptr\|string\)_tests' refs/remotes/review/pr-14136 -- core/libs/CMakeLists.txt core/libs/prx/libSceNpCppWebApi/CMakeLists.txt

Results

Check Result
Diff check Passed; exit 0.
Conventions and PR template Failed: unchecked Fixes: none and GPUs tested: n/a boxes.
Dependency and mergeability Passed; clean against current base, with #14122 included as declared.
ABI lexical audit Scanned 1,225 symbols; no export declaration/definition mismatch was reported. One warning is the private DestroyVectorBody helper, which is intentionally static.
Test-quality heuristic and registration The heuristic flagged both new test sources as possibly unregistered; manual CMake inspection confirms both are registered.
Hosted Windows CI Both changed tests passed: guest_np_cpp_web_api_intrusive_ptr and guest_np_cpp_web_api_string; the workflow reports 2,533 passed, 0 failed. Linux and specialized jobs were skipped.
Conventions check output
(pull request): error: [pr-template] Fill in the pull request template: unchecked: Fixes: none
(pull request): error: [pr-template] Fill in the pull request template: unchecked: GPUs tested: n/a
5 findings, 2 errors; GitHub shows at most 10 error annotations, the job summary lists all
ABI audit summary output
status: passed_with_warnings
symbols: 1225
findings: [{"symbol":"DestroyVectorBody","kind":"public-declaration-not-found","message":"No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."}]
Test-quality output
{
  "findings": [
    {
      "path": "core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    },
    {
      "path": "core/libs/tests/GuestNpCppWebApiString.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}
Hosted Windows test output
windows Build and run changed guest core/libs tests 2026-10-31T20:34:30.4223839Z   86/2533 Test  #504: guest_np_cpp_web_api_intrusive_ptr .............................................   Passed    0.02 sec
windows Build and run changed guest core/libs tests 2026-10-31T20:35:27.2403771Z 1979/2533 Test #2431: guest_np_cpp_web_api_string ....................................................   Passed    0.02 sec
windows Build and run changed guest core/libs tests 2026-10-31T20:36:44.2078733Z 100% tests passed, 0 tests failed out of 2533

Findings

Blocking

  • Both HostVectorCopyFrom and HostVectorCopyFromStrings destroy or release the destination elements and set body->size = 0 before reading sourceBody->size. If source is the same vector, or a second intrusive-pointer wrapper to the same body, the source size becomes zero too; the function returns success after silently emptying the vector. Please handle body == sourceBody before mutating it and add a self-copy regression test for each helper.
  • HostVectorCopyFromStrings returns ParameterAllocationFailed if a string-buffer allocation fails, but it sets body->size only after the whole loop. If a later allocation fails after earlier elements were copied, those buffers are not counted and DestroyVectorBody will not free them. Track the number of successfully initialized elements or clean them up on this error path; add allocation-failure coverage if the test harness can inject it safely.
  • The required PR template remains incomplete: check the Fixes: none and GPUs tested: n/a boxes. The hosted conventions check fails on those two fields.

Non-blocking

  • The local test-quality heuristic's registration warnings are false positives; both new executables and their CTest entries are present in the respective CMake files.

Sources

Not verified

I did not build or run the tests locally. Windows CI passed the exact-head tests; Linux, console behavior, and an allocation-failure control were not verified.

To get this to a good state

Handle same-body copies before clearing elements, make partial string-copy failure cleanup leak-free, add regression coverage, and check the two required template boxes. I’ll rerun the same no-build checks and inspect the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5724824827 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5724824827). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T20:39:57Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The new `copyFrom` helpers erase their contents on self-copy, and the required PR checklist still fails conventions. ## What I ran Reviewed head `5922865c7a6a4b65e1c9a798b51579e2001ed940` against base `0836dfdf4fecb1e0326100c490476e15d3a74da5`; the dependency and current-base merge preview was clean. Environment: Debian Linux, GCC 12.2.0. ```sh git diff --check upstream/main...refs/remotes/review/pr-14136 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136 python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 0836dfdf4fecb1e0326100c490476e15d3a74da5 --head 5922865c7a6a4b65e1c9a798b51579e2001ed940 --json python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiString.cpp git grep -n 'guest_np_cpp_web_api_\(intrusive_ptr\|string\)_tests' refs/remotes/review/pr-14136 -- core/libs/CMakeLists.txt core/libs/prx/libSceNpCppWebApi/CMakeLists.txt ``` ## Results | Check | Result | |---|---| | Diff check | Passed; exit 0. | | Conventions and PR template | Failed: unchecked `Fixes: none` and `GPUs tested: n/a` boxes. | | Dependency and mergeability | Passed; clean against current base, with #14122 included as declared. | | ABI lexical audit | Scanned 1,225 symbols; no export declaration/definition mismatch was reported. One warning is the private `DestroyVectorBody` helper, which is intentionally `static`. | | Test-quality heuristic and registration | The heuristic flagged both new test sources as possibly unregistered; manual CMake inspection confirms both are registered. | | Hosted Windows CI | Both changed tests passed: `guest_np_cpp_web_api_intrusive_ptr` and `guest_np_cpp_web_api_string`; the workflow reports 2,533 passed, 0 failed. Linux and specialized jobs were skipped. | <details><summary>Conventions check output</summary> ```text (pull request): error: [pr-template] Fill in the pull request template: unchecked: Fixes: none (pull request): error: [pr-template] Fill in the pull request template: unchecked: GPUs tested: n/a 5 findings, 2 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` </details> <details><summary>ABI audit summary output</summary> ```text status: passed_with_warnings symbols: 1225 findings: [{"symbol":"DestroyVectorBody","kind":"public-declaration-not-found","message":"No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."}] ``` </details> <details><summary>Test-quality output</summary> ```text { "findings": [ { "path": "core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." }, { "path": "core/libs/tests/GuestNpCppWebApiString.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` </details> <details><summary>Hosted Windows test output</summary> ```text windows Build and run changed guest core/libs tests 2026-10-31T20:34:30.4223839Z 86/2533 Test #504: guest_np_cpp_web_api_intrusive_ptr ............................................. Passed 0.02 sec windows Build and run changed guest core/libs tests 2026-10-31T20:35:27.2403771Z 1979/2533 Test #2431: guest_np_cpp_web_api_string .................................................... Passed 0.02 sec windows Build and run changed guest core/libs tests 2026-10-31T20:36:44.2078733Z 100% tests passed, 0 tests failed out of 2533 ``` </details> ## Findings ### Blocking - Both `HostVectorCopyFrom` and `HostVectorCopyFromStrings` destroy or release the destination elements and set `body->size = 0` before reading `sourceBody->size`. If `source` is the same vector, or a second intrusive-pointer wrapper to the same body, the source size becomes zero too; the function returns success after silently emptying the vector. Please handle `body == sourceBody` before mutating it and add a self-copy regression test for each helper. - `HostVectorCopyFromStrings` returns `ParameterAllocationFailed` if a string-buffer allocation fails, but it sets `body->size` only after the whole loop. If a later allocation fails after earlier elements were copied, those buffers are not counted and `DestroyVectorBody` will not free them. Track the number of successfully initialized elements or clean them up on this error path; add allocation-failure coverage if the test harness can inject it safely. - The required PR template remains incomplete: check the `Fixes: none` and `GPUs tested: n/a` boxes. The hosted conventions check fails on those two fields. ### Non-blocking - The local test-quality heuristic's registration warnings are false positives; both new executables and their CTest entries are present in the respective CMake files. ## Sources - [`HostVectorCopyFrom` and `HostVectorCopyFromStrings`](https://github.com/boykopovar/AnyPS5/blob/5922865c7a6a4b65e1c9a798b51579e2001ed940/core/libs/prx/libSceNpCppWebApi/Export.cpp#L1682-L1763) - [String-vector copy tests](https://github.com/boykopovar/AnyPS5/blob/5922865c7a6a4b65e1c9a798b51579e2001ed940/core/libs/tests/GuestNpCppWebApiString.cpp#L322-L365) - [Both test registrations](https://github.com/boykopovar/AnyPS5/blob/5922865c7a6a4b65e1c9a798b51579e2001ed940/core/libs/prx/libSceNpCppWebApi/CMakeLists.txt#L20-L40) ## Not verified I did not build or run the tests locally. Windows CI passed the exact-head tests; Linux, console behavior, and an allocation-failure control were not verified. ## To get this to a good state Handle same-body copies before clearing elements, make partial string-copy failure cleanup leak-free, add regression coverage, and check the two required template boxes. I’ll rerun the same no-build checks and inspect the new head.
MarcZX10 commented 2026-10-31 22:35:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T22:35:32Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The new head fixes the self-copy mutation and string-allocation cleanup, but the generic intrusive-pointer copyFrom path still lacks the requested self-copy regression test.

What I ran

Reviewed head 0d4888bb7684075667dfbfdfad3f1acf33667b4f against PR base 0836dfdf4fecb1e0326100c490476e15d3a74da5; the exact head has a clean merge preview against current main 1bc97b9527eaf6b56681cd3465bca67b75329161. Environment: Debian Linux, GCC 12.2.0. The hosted Windows workflow built this exact head.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136
gh pr checks 14136 -R boykopovar/AnyPS5
gh run view 41246118340 -R boykopovar/AnyPS5 --job 124671176270 --log
gh api repos/boykopovar/AnyPS5/compare/5922865c7a6a4b65e1c9a798b51579e2001ed940...0d4888bb7684 --jq '.files[] | [.filename, .patch] | @tsv'

Results

Check Result
Diff and conventions/template Passed; precheck reports git diff --check passed and conventions/template exited successfully (three debt-length warnings only).
Windows build and CTest Passed on the exact head: both changed test targets built; full workflow CTest passed, 2,539 tests, 0 failures.
Current-base merge preview Passed for the exact PR head against current main. The stack helper also reports a dependency-cycle error because it parses stale prose in #11644; that PR's actual checklist says Depends on: none, while #12447 depends on #11644 and this PR depends on #14122/#12447.
ABI and test-quality helpers Could not run from the isolated PR snapshot; the workspace-only helper scripts are absent there.
Generic-vector self-copy test Not present: the new self-copy assertion exercises only Vector<String>; the intrusive-pointer test file contains no copyFrom call.
Raw check output
windows Build and run changed guest core/libs tests 2026-10-31T22:11:00.5006149Z guest_np_cpp_web_api_intrusive_ptr_tests
windows Build and run changed guest core/libs tests 2026-10-31T22:11:00.5006449Z guest_np_cpp_web_api_string_tests
windows Build and run changed guest core/libs tests 2026-10-31T22:13:17.7222346Z   87/2539 Test  #505: guest_np_cpp_web_api_intrusive_ptr .......................................   Passed    0.01 sec
windows Build and run changed guest core/libs tests 2026-10-31T22:14:07.8448072Z 1981/2539 Test #2434: guest_np_cpp_web_api_string ..............................................   Passed    0.01 sec
windows Build and run changed guest core/libs tests 2026-10-31T22:15:27.6046905Z 100% tests passed, 0 tests failed out of 2539
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-0d4888bb7684/head-0d4888bb7684-de7b899b/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-0d4888bb7684/head-0d4888bb7684-de7b899b/tools/pr_test_quality.py': [Errno 2] No such file or directory

Negative control

Assertion Change to code under test Did the new test fail?
Self-copy preserves a populated Vector<IntrusivePtr<T>> body None; no test currently invokes the generic helper's self-copy path. Could not exercise. The current regression covers only Vector<String>.

Findings

Blocking

  • HostVectorCopyFrom now returns early when the source and destination share a body, but no test invokes this generic helper's copyFrom export. The prior bug released every element before reading the source count, so this path needs regression coverage as well as the string-specialized path. Please add a populated intrusive-pointer vector self-copy case, preferably also covering two handles sharing one body, and assert the size, element pointers, and reference counts remain intact.

Non-blocking

  • The stack precheck's cycle report is a parser false positive from stale prose in #11644; its actual dependency checklist is none. Individual exact-head merge previews are clean.

Sources

Not verified

No local build or CTest was run. Linux CI and console behavior were not tested. Allocation-failure injection was not run. The no-build precheck's ABI and test-quality helpers were unavailable in its isolated checkout.

To get this to a good state

Add the generic intrusive-pointer self-copy regression and verify it preserves contents and reference counts. I will rerun the same no-build checks and inspect the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5725290255 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5725290255). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T22:35:32Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The new head fixes the self-copy mutation and string-allocation cleanup, but the generic intrusive-pointer `copyFrom` path still lacks the requested self-copy regression test. ## What I ran Reviewed head `0d4888bb7684075667dfbfdfad3f1acf33667b4f` against PR base `0836dfdf4fecb1e0326100c490476e15d3a74da5`; the exact head has a clean merge preview against current `main` `1bc97b9527eaf6b56681cd3465bca67b75329161`. Environment: Debian Linux, GCC 12.2.0. The hosted Windows workflow built this exact head. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136 gh pr checks 14136 -R boykopovar/AnyPS5 gh run view 41246118340 -R boykopovar/AnyPS5 --job 124671176270 --log gh api repos/boykopovar/AnyPS5/compare/5922865c7a6a4b65e1c9a798b51579e2001ed940...0d4888bb7684 --jq '.files[] | [.filename, .patch] | @tsv' ``` ## Results | Check | Result | |---|---| | Diff and conventions/template | Passed; precheck reports `git diff --check` passed and conventions/template exited successfully (three debt-length warnings only). | | Windows build and CTest | Passed on the exact head: both changed test targets built; full workflow CTest passed, 2,539 tests, 0 failures. | | Current-base merge preview | Passed for the exact PR head against current `main`. The stack helper also reports a dependency-cycle error because it parses stale prose in #11644; that PR's actual checklist says `Depends on: none`, while #12447 depends on #11644 and this PR depends on #14122/#12447. | | ABI and test-quality helpers | Could not run from the isolated PR snapshot; the workspace-only helper scripts are absent there. | | Generic-vector self-copy test | Not present: the new self-copy assertion exercises only `Vector<String>`; the intrusive-pointer test file contains no `copyFrom` call. | <details><summary>Raw check output</summary> ```text windows Build and run changed guest core/libs tests 2026-10-31T22:11:00.5006149Z guest_np_cpp_web_api_intrusive_ptr_tests windows Build and run changed guest core/libs tests 2026-10-31T22:11:00.5006449Z guest_np_cpp_web_api_string_tests windows Build and run changed guest core/libs tests 2026-10-31T22:13:17.7222346Z 87/2539 Test #505: guest_np_cpp_web_api_intrusive_ptr ....................................... Passed 0.01 sec windows Build and run changed guest core/libs tests 2026-10-31T22:14:07.8448072Z 1981/2539 Test #2434: guest_np_cpp_web_api_string .............................................. Passed 0.01 sec windows Build and run changed guest core/libs tests 2026-10-31T22:15:27.6046905Z 100% tests passed, 0 tests failed out of 2539 /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-0d4888bb7684/head-0d4888bb7684-de7b899b/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-0d4888bb7684/head-0d4888bb7684-de7b899b/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | Self-copy preserves a populated `Vector<IntrusivePtr<T>>` body | None; no test currently invokes the generic helper's self-copy path. | Could not exercise. The current regression covers only `Vector<String>`. | ## Findings ### Blocking - `HostVectorCopyFrom` now returns early when the source and destination share a body, but no test invokes this generic helper's `copyFrom` export. The prior bug released every element before reading the source count, so this path needs regression coverage as well as the string-specialized path. Please add a populated intrusive-pointer vector self-copy case, preferably also covering two handles sharing one body, and assert the size, element pointers, and reference counts remain intact. ### Non-blocking - The stack precheck's cycle report is a parser false positive from stale prose in #11644; its actual dependency checklist is `none`. Individual exact-head merge previews are clean. ## Sources - [`HostVectorCopyFrom`](https://github.com/boykopovar/AnyPS5/blob/0d4888bb7684075667dfbfdfad3f1acf33667b4f/core/libs/prx/libSceNpCppWebApi/Export.cpp#L1682-L1708) - [String-vector self-copy regression](https://github.com/boykopovar/AnyPS5/blob/0d4888bb7684075667dfbfdfad3f1acf33667b4f/core/libs/tests/GuestNpCppWebApiString.cpp#L362-L366) - [Intrusive-pointer tests](https://github.com/boykopovar/AnyPS5/blob/0d4888bb7684075667dfbfdfad3f1acf33667b4f/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp) ## Not verified No local build or CTest was run. Linux CI and console behavior were not tested. Allocation-failure injection was not run. The no-build precheck's ABI and test-quality helpers were unavailable in its isolated checkout. ## To get this to a good state Add the generic intrusive-pointer self-copy regression and verify it preserves contents and reference counts. I will rerun the same no-build checks and inspect the new head.
MarcZX10 commented 2026-11-01 07:49:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T07:49:28Z.

Review: COMMENTED


Re-checked — new head, no blocking findings

The only change since my CHANGES_REQUESTED review at 0d4888bb is a new populated intrusive-pointer self-copy test for the generic copyFrom path, which covers the case I asked for, and I found no blocking defect in it; no local build or CTest was run.

What I ran

  • Reviewed head: 5b95f25e3d6da79df5c37738a57c399551d2e1f8, the PR head at the start and end of this review. Base: PR base 0836dfdf4fecb1e0326100c490476e15d3a74da5. Current main used for the merge preview: eb5b2c13df0dd0ffed8f89643507f7a769c79a24; the exact head merges cleanly.
  • Delta since my last review: 0d4888bb7684075667dfbfdfad3f1acf33667b4f...5b95f25e3d6da79df5c37738a57c399551d2e1f8 changes only core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp (+65/-0).
  • Environment: Debian 12, Linux 6.1.0-54-amd64, Python 3.11.2, git 2.39.5, GCC 12.2.0 (not used for a build).
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136 --output-dir /dev/shm/reviewer-14136
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 0836dfdf4fecb1e0326100c490476e15d3a74da5 --head 5b95f25e3d6da79df5c37738a57c399551d2e1f8 --json
git archive 5b95f25e3d6da79df5c37738a57c399551d2e1f8 core/libs/CMakeLists.txt core/libs/prx/libSceNpCppWebApi core/libs/tests docs/dev/debt | tar -x -C <scratch-dir>
python3 tools/pr_test_quality.py --root <scratch-dir> --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiString.cpp
gh api repos/boykopovar/AnyPS5/actions/jobs/124757859215/logs

The precheck's ABI and test-quality steps could not run in its isolated checkout because the helper scripts are absent there, so I ran both helpers by hand from /marc/AnyPS5/tools.

Results

Check Result
git diff --check (precheck) Passed.
Conventions and PR template (precheck) Passed with three debt-length warnings and no errors.
Current-base mergeability (precheck stack check) Each PR head previews clean against current main. The stack helper's "dependency cycle" error comes from a misparse of #11644's prose; its checklist says Depends on: none.
ABI lexical audit (manual) passed_with_warnings: 1225 symbols. One lexical note for the static helper DestroyVectorBody, which is intentionally private.
Test-quality heuristic (manual) Both test sources are flagged as possibly unregistered. Both are registered: the intrusive-pointer target at core/libs/CMakeLists.txt:1020, and the String test has its own add_test_executable in core/libs/prx/libSceNpCppWebApi/CMakeLists.txt:24. Both flags are false positives.
Hosted Windows, this head (CI, not local) success. The log shows both changed test binaries passing and 100% tests passed, 0 tests failed out of 2568.
Linux, relinker, ASan, register-context, write-watch Skipped by CI for this head.
Local build and CTest Not run (no-build rule).
Precheck conventions output (unedited)
docs/dev/debt/libSceNpCppWebApi.md:23: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 1183 characters
docs/dev/debt/libSceNpCppWebApi.md:24: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 1798 characters
docs/dev/debt/libSceNpCppWebApi.md:25: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 1106 characters
3 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all
ABI audit output (JSON summary fields; the symbol list of 1225 entries is omitted)
{
  "status": "passed_with_warnings",
  "findings": [
    {
      "symbol": "DestroyVectorBody",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    }
  ],
  "limitations": [
    "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.",
    "An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects."
  ],
  "symbols": "<1225 entries; list omitted>"
}
Test-quality output (unedited JSON)
{
  "findings": [
    {
      "path": "core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    },
    {
      "path": "core/libs/tests/GuestNpCppWebApiString.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": []
}
Hosted Windows log lines for this head (unedited)
2026-11-01T05:21:14.6905620Z   89/2568 Test  #510: guest_np_cpp_web_api_intrusive_ptr ..........................................   Passed    0.01 sec
2026-11-01T05:22:00.2085575Z 2002/2568 Test #2461: guest_np_cpp_web_api_string .................................................   Passed    0.01 sec
2026-11-01T05:23:04.1574229Z 100% tests passed, 0 tests failed out of 2568

Negative control

Assertion Change to code under test Did the new test fail?
A populated Vector<IntrusivePtr<ResponsePlayerSessionPlayer>> keeps size 2, the same element array, and element refcounts of 2 after a self-copy and after an aliased-handle copy. Not run (no build). By source reading: removing the early return at Export.cpp line 1691 would release both elements (2 to 1), set size to 0, and read the source count as 0, so Require(size == 2) would abort. Not exercised.

Findings

Blocking

None.

Non-blocking

  • Three debt entries in docs/dev/debt/libSceNpCppWebApi.md (lines 23 to 25, 1183, 1798 and 1106 characters) trigger the debt-length warning. The base file had one entry over 1000 characters (line 9, 1167). Conventions reports warnings only, so this does not block. Trimming them to the gap and the behaviour it needs would clear the warnings.

Sources

Not verified

  • No local build or CTest was run. The new test's pass is taken from the hosted Windows log for this head, not from a local run.
  • The negative control was not run; the failure prediction above comes from reading the code.
  • Linux and the other skipped CI jobs did not run for this head.
  • Console behaviour of these exports is not verified.
  • Allocation-failure paths in HostVectorCopyFrom were not exercised.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5727022004 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5727022004). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T07:49:28Z. **Review:** COMMENTED --- # Re-checked — new head, no blocking findings The only change since my CHANGES_REQUESTED review at `0d4888bb` is a new populated intrusive-pointer self-copy test for the generic `copyFrom` path, which covers the case I asked for, and I found no blocking defect in it; no local build or CTest was run. ## What I ran - Reviewed head: `5b95f25e3d6da79df5c37738a57c399551d2e1f8`, the PR head at the start and end of this review. Base: PR base `0836dfdf4fecb1e0326100c490476e15d3a74da5`. Current `main` used for the merge preview: `eb5b2c13df0dd0ffed8f89643507f7a769c79a24`; the exact head merges cleanly. - Delta since my last review: `0d4888bb7684075667dfbfdfad3f1acf33667b4f...5b95f25e3d6da79df5c37738a57c399551d2e1f8` changes only `core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp` (+65/-0). - Environment: Debian 12, Linux 6.1.0-54-amd64, Python 3.11.2, git 2.39.5, GCC 12.2.0 (not used for a build). ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136 --output-dir /dev/shm/reviewer-14136 python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 0836dfdf4fecb1e0326100c490476e15d3a74da5 --head 5b95f25e3d6da79df5c37738a57c399551d2e1f8 --json git archive 5b95f25e3d6da79df5c37738a57c399551d2e1f8 core/libs/CMakeLists.txt core/libs/prx/libSceNpCppWebApi core/libs/tests docs/dev/debt | tar -x -C <scratch-dir> python3 tools/pr_test_quality.py --root <scratch-dir> --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiString.cpp gh api repos/boykopovar/AnyPS5/actions/jobs/124757859215/logs ``` The precheck's ABI and test-quality steps could not run in its isolated checkout because the helper scripts are absent there, so I ran both helpers by hand from `/marc/AnyPS5/tools`. ## Results | Check | Result | |---|---| | `git diff --check` (precheck) | Passed. | | Conventions and PR template (precheck) | Passed with three `debt-length` warnings and no errors. | | Current-base mergeability (precheck stack check) | Each PR head previews clean against current `main`. The stack helper's "dependency cycle" error comes from a misparse of #11644's prose; its checklist says `Depends on: none`. | | ABI lexical audit (manual) | `passed_with_warnings`: 1225 symbols. One lexical note for the static helper `DestroyVectorBody`, which is intentionally private. | | Test-quality heuristic (manual) | Both test sources are flagged as possibly unregistered. Both are registered: the intrusive-pointer target at `core/libs/CMakeLists.txt:1020`, and the String test has its own `add_test_executable` in `core/libs/prx/libSceNpCppWebApi/CMakeLists.txt:24`. Both flags are false positives. | | Hosted Windows, this head (CI, not local) | `success`. The log shows both changed test binaries passing and `100% tests passed, 0 tests failed out of 2568`. | | Linux, relinker, ASan, register-context, write-watch | Skipped by CI for this head. | | Local build and CTest | Not run (no-build rule). | <details><summary>Precheck conventions output (unedited)</summary> ```text docs/dev/debt/libSceNpCppWebApi.md:23: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 1183 characters docs/dev/debt/libSceNpCppWebApi.md:24: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 1798 characters docs/dev/debt/libSceNpCppWebApi.md:25: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 1106 characters 3 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` </details> <details><summary>ABI audit output (JSON summary fields; the symbol list of 1225 entries is omitted)</summary> ```json { "status": "passed_with_warnings", "findings": [ { "symbol": "DestroyVectorBody", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." } ], "limitations": [ "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.", "An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects." ], "symbols": "<1225 entries; list omitted>" } ``` </details> <details><summary>Test-quality output (unedited JSON)</summary> ```json { "findings": [ { "path": "core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." }, { "path": "core/libs/tests/GuestNpCppWebApiString.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [] } ``` </details> <details><summary>Hosted Windows log lines for this head (unedited)</summary> ```text 2026-11-01T05:21:14.6905620Z 89/2568 Test #510: guest_np_cpp_web_api_intrusive_ptr .......................................... Passed 0.01 sec 2026-11-01T05:22:00.2085575Z 2002/2568 Test #2461: guest_np_cpp_web_api_string ................................................. Passed 0.01 sec 2026-11-01T05:23:04.1574229Z 100% tests passed, 0 tests failed out of 2568 ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | A populated `Vector<IntrusivePtr<ResponsePlayerSessionPlayer>>` keeps size 2, the same element array, and element refcounts of 2 after a self-copy and after an aliased-handle copy. | Not run (no build). By source reading: removing the early return at `Export.cpp` line 1691 would release both elements (2 to 1), set `size` to 0, and read the source count as 0, so `Require(size == 2)` would abort. | Not exercised. | ## Findings ### Blocking None. ### Non-blocking - Three debt entries in `docs/dev/debt/libSceNpCppWebApi.md` (lines 23 to 25, 1183, 1798 and 1106 characters) trigger the `debt-length` warning. The base file had one entry over 1000 characters (line 9, 1167). Conventions reports warnings only, so this does not block. Trimming them to the gap and the behaviour it needs would clear the warnings. ## Sources - [`HostVectorCopyFrom`, early return on a shared body](https://github.com/boykopovar/AnyPS5/blob/5b95f25e3d6da79df5c37738a57c399551d2e1f8/core/libs/prx/libSceNpCppWebApi/Export.cpp#L1682-L1708) - [New intrusive-pointer self-copy test](https://github.com/boykopovar/AnyPS5/blob/5b95f25e3d6da79df5c37738a57c399551d2e1f8/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp#L305-L367) - [Test invoked from `main`](https://github.com/boykopovar/AnyPS5/blob/5b95f25e3d6da79df5c37738a57c399551d2e1f8/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp#L724) - [Intrusive-pointer test target registration](https://github.com/boykopovar/AnyPS5/blob/5b95f25e3d6da79df5c37738a57c399551d2e1f8/core/libs/CMakeLists.txt#L1020) ## Not verified - No local build or CTest was run. The new test's pass is taken from the hosted Windows log for this head, not from a local run. - The negative control was not run; the failure prediction above comes from reading the code. - Linux and the other skipped CI jobs did not run for this head. - Console behaviour of these exports is not verified. - Allocation-failure paths in `HostVectorCopyFrom` were not exercised.
MarcZX10 commented 2026-11-02 11:00:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T11:00:18Z.

Review: APPROVED


Re-checked — same head, approved

The review request remains active; the previously reviewed head has now completed its hosted checks successfully, and the full review found no blocking issues.

What I ran

Confirmed open PR #14136 is still at head 5b95f25e3d6da79df5c37738a57c399551d2e1f8, based on 0836dfdf4fecb1e0326100c490476e15d3a74da5. The full source and test review is in my same-head review. This follow-up checked current hosted status; no local build or test was run.

gh pr checks 14136 --repo boykopovar/AnyPS5

Results

Check Result Note
Hosted Windows tests passed Exact head; workflow succeeded.
Conventions, labels, portability, report passed Exact head.
Linux and specialized jobs not applicable Skipped by workflow.
Hosted check output (unedited)
conventions	pass	18s	https://github.com/boykopovar/AnyPS5/actions/runs/41392244127/job/125105956967
labels	pass	10s	https://github.com/boykopovar/AnyPS5/actions/runs/41392244091/job/125105956921
windows	pass	7m36s	https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757859215
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860157
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860073
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860104
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860062
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860579
eligibility	pass	6s	https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757229949
library-portability	pass	1m41s	https://github.com/boykopovar/AnyPS5/actions/runs/41275667144/job/124757230130
report	pass	38s	https://github.com/boykopovar/AnyPS5/actions/runs/41275667072/job/124757229712

Findings

No blocking findings in the full review of this exact head.

Not verified

I did not run a local build or CTest. Linux, relinker, ASan, register-context, and write-watch jobs were skipped by CI; console behavior was not verified.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5735534914 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5735534914). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T11:00:18Z. **Review:** APPROVED --- # Re-checked — same head, approved The review request remains active; the previously reviewed head has now completed its hosted checks successfully, and the full review found no blocking issues. ## What I ran Confirmed open PR #14136 is still at head `5b95f25e3d6da79df5c37738a57c399551d2e1f8`, based on `0836dfdf4fecb1e0326100c490476e15d3a74da5`. The full source and test review is in my [same-head review](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5727022004). This follow-up checked current hosted status; no local build or test was run. ```sh gh pr checks 14136 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Hosted Windows tests | passed | Exact head; workflow succeeded. | | Conventions, labels, portability, report | passed | Exact head. | | Linux and specialized jobs | not applicable | Skipped by workflow. | <details><summary>Hosted check output (unedited)</summary> ```text conventions pass 18s https://github.com/boykopovar/AnyPS5/actions/runs/41392244127/job/125105956967 labels pass 10s https://github.com/boykopovar/AnyPS5/actions/runs/41392244091/job/125105956921 windows pass 7m36s https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757859215 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860157 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860073 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860104 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860062 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757860579 eligibility pass 6s https://github.com/boykopovar/AnyPS5/actions/runs/41275667075/job/124757229949 library-portability pass 1m41s https://github.com/boykopovar/AnyPS5/actions/runs/41275667144/job/124757230130 report pass 38s https://github.com/boykopovar/AnyPS5/actions/runs/41275667072/job/124757229712 ``` </details> ## Findings No blocking findings in the full review of this exact head. ## Not verified I did not run a local build or CTest. Linux, relinker, ASan, register-context, and write-watch jobs were skipped by CI; console behavior was not verified.
MarcZX10 commented 2026-11-02 18:21:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T18:21:56Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The new head fixes the earlier copyFrom issues, but the BasicPresence constructor still performs a misaligned uint32_t store.

What I ran

Reviewed all six changed files at head 94aa48ed2439a2d1d207b326955e2ca49be157ea, against PR base b28bb772177768f99874ca38f6252cd0139acf2a. The stack report also previewed this head against current main a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8; that merge preview was clean. The PR declares dependencies on #11221, #12447 and #14122; the live heads of #12447 and #14122 are not included, so keep the declared landing order in view.

Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not configure or build AnyPS5.

git diff --check b28bb772177768f99874ca38f6252cd0139acf2a...94aa48ed2439a2d1d207b326955e2ca49be157ea
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base b28bb772177768f99874ca38f6252cd0139acf2a --head 94aa48ed2439a2d1d207b326955e2ca49be157ea --json
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiSignedOut.cpp core/libs/tests/GuestNpCppWebApiString.cpp
gh api repos/boykopovar/AnyPS5/commits/94aa48ed2439a2d1d207b326955e2ca49be157ea/check-runs --jq '[.check_runs[] | {name,status,conclusion}]'

Results

Check Result Note
Diff and conventions passed No whitespace errors; repository conventions and PR template pass.
Export audit passed 1,275 symbols scanned; one expected private-helper warning.
Dependency preview passed Clean with current main; dependencies remain outstanding.
Hosted Windows CI passed Exact head; Windows job completed successfully.
Other hosted jobs not run Linux and specialized jobs were skipped.
Local C++ tests and negative controls not run They require a build.
Test-quality heuristic not run The recursive scan was interrupted before it returned a result.
Full precheck failed Optional scripts absent; stack found newer dependency heads.
Command output excerpts
All conventions checks passed.
{
  "status": "passed_with_warnings",
  "findings": [
    {
      "symbol": "DestroyVectorBody",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    }
  ],
  "limitations": [
    "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation."
  ]
}
[{"conclusion":"skipped","name":"write-watch","status":"completed"},{"conclusion":"skipped","name":"relinker","status":"completed"},{"conclusion":"skipped","name":"edge-watch","status":"completed"},{"conclusion":"skipped","name":"relinker-asan","status":"completed"},{"conclusion":"skipped","name":"register-context","status":"completed"},{"conclusion":"skipped","name":"linux","status":"completed"},{"conclusion":"success","name":"windows","status":"completed"},{"conclusion":"success","name":"labels","status":"completed"},{"conclusion":"success","name":"eligibility","status":"completed"},{"conclusion":"success","name":"conventions","status":"completed"},{"conclusion":"success","name":"library-portability","status":"completed"},{"conclusion":"success","name":"report","status":"completed"},{"conclusion":"cancelled","name":"conventions","status":"completed"}]
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-94aa48ed2439/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-94aa48ed2439/report.json
Conclusion: checks failed

Negative control

Assertion Change to code under test Did the new test fail?
BasicPresence construction uses only aligned typed accesses and initializes the required fields. No mutation run. The constructor stores a uint32_t through object + 0x1f; the test does not include an alignment-sanitizer run. Not exercised.

Findings

Blocking

  • The BasicPresence constructor dereferences a uint32_t* at object + 0x1f, which cannot meet uint32_t alignment when the object itself has its required alignment. This is undefined behavior in C++20 and can be miscompiled or flagged by an alignment sanitizer. Clear the intended bytes with std::memset or byte stores instead. The new test should also declare its byte-array object with alignas(8) so the other typed accesses use valid object alignment.

    std::memset(object + 0x1f, 0, 4);
    

Non-blocking

  • The new tests cover the copied data and self-copy fixes. An alignment-sanitizer run would provide direct runtime evidence for the constructor path.

Sources

Not verified

  • No local build, CTest, Linux runtime test or PS5 console test was run. The hosted Windows job passed, but does not establish console ABI behavior.
  • The negative controls were not run. The manual test-quality heuristic did not complete because its recursive scan traversed the full checkout and submodules.

To get this to a good state

Replace the misaligned store and align the test backing storage. On the new head, rerun python3 tools/check_conventions.py --base origin/main and ctest --test-dir build -R np_cpp_web_api -V; I will re-check the updated diff and the same focused tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5741301017 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5741301017). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T18:21:56Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The new head fixes the earlier `copyFrom` issues, but the BasicPresence constructor still performs a misaligned `uint32_t` store. ## What I ran Reviewed all six changed files at head `94aa48ed2439a2d1d207b326955e2ca49be157ea`, against PR base `b28bb772177768f99874ca38f6252cd0139acf2a`. The stack report also previewed this head against current `main` `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`; that merge preview was clean. The PR declares dependencies on #11221, #12447 and #14122; the live heads of #12447 and #14122 are not included, so keep the declared landing order in view. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not configure or build AnyPS5. ```sh git diff --check b28bb772177768f99874ca38f6252cd0139acf2a...94aa48ed2439a2d1d207b326955e2ca49be157ea python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136 python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base b28bb772177768f99874ca38f6252cd0139acf2a --head 94aa48ed2439a2d1d207b326955e2ca49be157ea --json python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiSignedOut.cpp core/libs/tests/GuestNpCppWebApiString.cpp gh api repos/boykopovar/AnyPS5/commits/94aa48ed2439a2d1d207b326955e2ca49be157ea/check-runs --jq '[.check_runs[] | {name,status,conclusion}]' ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace errors; repository conventions and PR template pass. | | Export audit | passed | 1,275 symbols scanned; one expected private-helper warning. | | Dependency preview | passed | Clean with current `main`; dependencies remain outstanding. | | Hosted Windows CI | passed | Exact head; Windows job completed successfully. | | Other hosted jobs | not run | Linux and specialized jobs were skipped. | | Local C++ tests and negative controls | not run | They require a build. | | Test-quality heuristic | not run | The recursive scan was interrupted before it returned a result. | | Full precheck | failed | Optional scripts absent; stack found newer dependency heads. | <details> <summary>Command output excerpts</summary> ```text All conventions checks passed. ``` ```json { "status": "passed_with_warnings", "findings": [ { "symbol": "DestroyVectorBody", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." } ], "limitations": [ "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation." ] } ``` ```text [{"conclusion":"skipped","name":"write-watch","status":"completed"},{"conclusion":"skipped","name":"relinker","status":"completed"},{"conclusion":"skipped","name":"edge-watch","status":"completed"},{"conclusion":"skipped","name":"relinker-asan","status":"completed"},{"conclusion":"skipped","name":"register-context","status":"completed"},{"conclusion":"skipped","name":"linux","status":"completed"},{"conclusion":"success","name":"windows","status":"completed"},{"conclusion":"success","name":"labels","status":"completed"},{"conclusion":"success","name":"eligibility","status":"completed"},{"conclusion":"success","name":"conventions","status":"completed"},{"conclusion":"success","name":"library-portability","status":"completed"},{"conclusion":"success","name":"report","status":"completed"},{"conclusion":"cancelled","name":"conventions","status":"completed"}] ``` ```text /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-94aa48ed2439/report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-94aa48ed2439/report.json Conclusion: checks failed ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | BasicPresence construction uses only aligned typed accesses and initializes the required fields. | No mutation run. The constructor stores a `uint32_t` through `object + 0x1f`; the test does not include an alignment-sanitizer run. | Not exercised. | ## Findings ### Blocking - The BasicPresence constructor dereferences a `uint32_t*` at `object + 0x1f`, which cannot meet `uint32_t` alignment when the object itself has its required alignment. This is undefined behavior in C++20 and can be miscompiled or flagged by an alignment sanitizer. Clear the intended bytes with `std::memset` or byte stores instead. The new test should also declare its byte-array object with `alignas(8)` so the other typed accesses use valid object alignment. ```suggestion std::memset(object + 0x1f, 0, 4); ``` ### Non-blocking - The new tests cover the copied data and self-copy fixes. An alignment-sanitizer run would provide direct runtime evidence for the constructor path. ## Sources - [BasicPresence constructor and misaligned store](https://github.com/boykopovar/AnyPS5/blob/94aa48ed2439a2d1d207b326955e2ca49be157ea/core/libs/prx/libSceNpCppWebApi/Export.cpp#L4150-L4158) - [Repository selects C++20](https://github.com/boykopovar/AnyPS5/blob/b28bb772177768f99874ca38f6252cd0139acf2a/CMakeLists.txt#L74-L75) - [C++ object alignment requirements](https://github.com/cplusplus/draft/blob/d4d6f38143c1b495aa33b2e5de0e0ec2daa173ca/source/basic.tex#L3834-L3846) - [BasicPresence model test](https://github.com/boykopovar/AnyPS5/blob/94aa48ed2439a2d1d207b326955e2ca49be157ea/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp#L520-L544) ## Not verified - No local build, CTest, Linux runtime test or PS5 console test was run. The hosted Windows job passed, but does not establish console ABI behavior. - The negative controls were not run. The manual test-quality heuristic did not complete because its recursive scan traversed the full checkout and submodules. ## To get this to a good state Replace the misaligned store and align the test backing storage. On the new head, rerun `python3 tools/check_conventions.py --base origin/main` and `ctest --test-dir build -R np_cpp_web_api -V`; I will re-check the updated diff and the same focused tests.
MarcZX10 commented 2026-11-02 19:27:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T19:27:40Z.

Review: COMMENTED


Re-checked — new head, no blocking findings

The new head removes the misaligned store identified in my previous review; I found no blocking issue in the update, but I am withholding approval while the hosted labels check is pending.

What I ran

Reviewed the previous full diff and the two-file update at head c6a7245b94593c20c372365ad6217c98119a1056, against base a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8. The PR head merges cleanly into the current base. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build locally.

git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...c6a7245b94593c20c372365ad6217c98119a1056
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp
git grep -n -E 'guest_np_cpp_web_api_(intrusive_ptr|string|signed_out|offline)' refs/review/14136/20261102-c6a724 -- core/libs/CMakeLists.txt core/libs/prx/libSceNpCppWebApi/CMakeLists.txt
gh pr checks 14136 --repo boykopovar/AnyPS5
gh run view 41508058430 --repo boykopovar/AnyPS5 --job 125493958327 --log | python3 -c 'import sys; terms=("guest_np_cpp_web_api_intrusive_ptr", "guest_np_cpp_web_api_string", "guest_np_cpp_web_api_signed_out", "guest_np_cpp_web_api_offline", "100% tests passed", "Total Test time"); [print(line, end="") for line in sys.stdin if any(term in line for term in terms)]'

Results

Check Result Note
Diff and conventions passed Exact-head diff check and repository conventions passed.
Current-base merge preview passed PR head merges cleanly; declared dependency order remains relevant.
Windows build and CTest passed Exact-head workflow passed all 2,966 tests, including all four changed WebApi suites.
Test registration heuristic failed Heuristic warned; direct CMake entries confirm the test executable and CTest registration exist.
Precheck helper coverage failed Isolated PR snapshot lacks two optional audit scripts; diff and conventions passed.
Labels check not run Still queued at final status refresh; approval is withheld until it completes.
Linux and specialized CI not run Workflow skipped these jobs.
Check output
All conventions checks passed.
100% tests passed, 0 tests failed out of 2966
Total Test time (real) = 138.11 sec
labels	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41508050698/job/125492321302
Conclusion: checks failed
/usr/bin/python3: can't open file '.../tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '.../tools/pr_test_quality.py': [Errno 2] No such file or directory

The helper failure is due to those reviewer scripts being absent from the isolated PR snapshot; it is not a source or convention failure.

Negative control

I did not run a local negative control because the C++ tests require a build. The author reports that all four WebApi suites passed on this head; the Windows workflow independently built them and passed the full test run.

Findings

Blocking

None in the reviewed update.

Non-blocking

The PR retains its declared dependency order (#11221, #12447, and #14122). The live stack report shows #12447 conflicts with current main and some dependency heads are not yet included; preserve the declared landing order and recheck integration as those dependencies advance.

Sources

Not verified

I did not run a local build, CTest, Linux tests, console behavior, or a negative control. The labels workflow check is still queued. The reported local tests are author-reported; the Windows workflow result is independently visible on the exact head.

To get this to a good state

No code change is requested for this update. Let the queued labels check finish and keep the declared dependency order; I will recheck the exact head and hosted status before considering approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5742146178 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5742146178). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T19:27:40Z. **Review:** COMMENTED --- # Re-checked — new head, no blocking findings The new head removes the misaligned store identified in my previous review; I found no blocking issue in the update, but I am withholding approval while the hosted labels check is pending. ## What I ran Reviewed the previous full diff and the two-file update at head `c6a7245b94593c20c372365ad6217c98119a1056`, against base `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`. The PR head merges cleanly into the current base. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build locally. ```sh git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...c6a7245b94593c20c372365ad6217c98119a1056 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136 python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp git grep -n -E 'guest_np_cpp_web_api_(intrusive_ptr|string|signed_out|offline)' refs/review/14136/20261102-c6a724 -- core/libs/CMakeLists.txt core/libs/prx/libSceNpCppWebApi/CMakeLists.txt gh pr checks 14136 --repo boykopovar/AnyPS5 gh run view 41508058430 --repo boykopovar/AnyPS5 --job 125493958327 --log | python3 -c 'import sys; terms=("guest_np_cpp_web_api_intrusive_ptr", "guest_np_cpp_web_api_string", "guest_np_cpp_web_api_signed_out", "guest_np_cpp_web_api_offline", "100% tests passed", "Total Test time"); [print(line, end="") for line in sys.stdin if any(term in line for term in terms)]' ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Exact-head diff check and repository conventions passed. | | Current-base merge preview | passed | PR head merges cleanly; declared dependency order remains relevant. | | Windows build and CTest | passed | Exact-head workflow passed all 2,966 tests, including all four changed WebApi suites. | | Test registration heuristic | failed | Heuristic warned; direct CMake entries confirm the test executable and CTest registration exist. | | Precheck helper coverage | failed | Isolated PR snapshot lacks two optional audit scripts; diff and conventions passed. | | Labels check | not run | Still queued at final status refresh; approval is withheld until it completes. | | Linux and specialized CI | not run | Workflow skipped these jobs. | <details><summary>Check output</summary> ```text All conventions checks passed. ``` ```text 100% tests passed, 0 tests failed out of 2966 Total Test time (real) = 138.11 sec ``` ```text labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41508050698/job/125492321302 ``` ```text Conclusion: checks failed /usr/bin/python3: can't open file '.../tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '.../tools/pr_test_quality.py': [Errno 2] No such file or directory ``` The helper failure is due to those reviewer scripts being absent from the isolated PR snapshot; it is not a source or convention failure. </details> ## Negative control I did not run a local negative control because the C++ tests require a build. The author reports that all four WebApi suites passed on this head; the Windows workflow independently built them and passed the full test run. ## Findings ### Blocking None in the reviewed update. ### Non-blocking The PR retains its declared dependency order (`#11221`, `#12447`, and `#14122`). The live stack report shows #12447 conflicts with current `main` and some dependency heads are not yet included; preserve the declared landing order and recheck integration as those dependencies advance. ## Sources - [BasicPresence constructor at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c6a7245b94593c20c372365ad6217c98119a1056/core/libs/prx/libSceNpCppWebApi/Export.cpp#L4152-L4160) - [Constructor test storage and assertions at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c6a7245b94593c20c372365ad6217c98119a1056/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp#L521-L535) - [Contribution rules at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8/CONTRIBUTING.md#L59-L73) ## Not verified I did not run a local build, CTest, Linux tests, console behavior, or a negative control. The labels workflow check is still queued. The reported local tests are author-reported; the Windows workflow result is independently visible on the exact head. ## To get this to a good state No code change is requested for this update. Let the queued labels check finish and keep the declared dependency order; I will recheck the exact head and hosted status before considering approval.
MarcZX10 commented 2026-11-02 19:32:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T19:32:38Z.

Review: APPROVED


Re-checked — same head, approved

The reviewed head replaces the misaligned 32-bit store with byte-wise clearing, and all applicable hosted checks have now completed successfully.

What I ran

Confirmed open PR #14136 at head c6a7245b94593c20c372365ad6217c98119a1056, based on a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8. My earlier full review covers the six-file change; this follow-up checked the constructor fix, its test storage, and current hosted results. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No local build or CTest was run.

git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...c6a7245b94593c20c372365ad6217c98119a1056
gh pr checks 14136 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed Exact-head diff and conventions checks passed.
Windows build and CTest passed Exact head; 2,966 tests passed, including all four WebApi suites.
Labels, portability, report and eligibility passed Applicable hosted checks completed successfully.
Linux and specialized jobs not run Skipped by the workflow.
Local build and tests not run No local compilation or CTest.
Hosted check output
conventions	pass	46s	https://github.com/boykopovar/AnyPS5/actions/runs/41508050839/job/125492321701
labels	pass	11s	https://github.com/boykopovar/AnyPS5/actions/runs/41508050698/job/125492321302
library-portability	pass	1m44s	https://github.com/boykopovar/AnyPS5/actions/runs/41508058692/job/125492344466
windows	pass	7m55s	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493958327
edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493961216
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960288
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960851
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960341
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960624
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493961243
eligibility	pass	7s	https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125492344568
report	pass	1m39s	https://github.com/boykopovar/AnyPS5/actions/runs/41508058463/job/125492343973

Negative control

No code mutation or negative control was run in this follow-up. The changed line is covered by the exact-head Windows build and test workflow.

Findings

Blocking

None found in the full review of head c6a7245b94593c20c372365ad6217c98119a1056.

Non-blocking

The PR retains its declared dependencies on #14122, #11221 and #12447. Preserve that landing order when integrating the overlapping changes.

Sources

Not verified

I did not run a local build, Linux tests, console behavior or a negative control. The Linux and specialized hosted jobs were skipped.

To get this to a good state

No code change is requested for this head. Keep the declared dependency order; I will recheck if the head or dependency state changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5742208928 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5742208928). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T19:32:38Z. **Review:** APPROVED --- # Re-checked — same head, approved The reviewed head replaces the misaligned 32-bit store with byte-wise clearing, and all applicable hosted checks have now completed successfully. ## What I ran Confirmed open PR #14136 at head `c6a7245b94593c20c372365ad6217c98119a1056`, based on `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`. My earlier full review covers the six-file change; this follow-up checked the constructor fix, its test storage, and current hosted results. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No local build or CTest was run. ```sh git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...c6a7245b94593c20c372365ad6217c98119a1056 gh pr checks 14136 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Exact-head diff and conventions checks passed. | | Windows build and CTest | passed | Exact head; 2,966 tests passed, including all four WebApi suites. | | Labels, portability, report and eligibility | passed | Applicable hosted checks completed successfully. | | Linux and specialized jobs | not run | Skipped by the workflow. | | Local build and tests | not run | No local compilation or CTest. | <details><summary>Hosted check output</summary> ```text conventions pass 46s https://github.com/boykopovar/AnyPS5/actions/runs/41508050839/job/125492321701 labels pass 11s https://github.com/boykopovar/AnyPS5/actions/runs/41508050698/job/125492321302 library-portability pass 1m44s https://github.com/boykopovar/AnyPS5/actions/runs/41508058692/job/125492344466 windows pass 7m55s https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493958327 edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493961216 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960288 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960851 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960341 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493960624 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125493961243 eligibility pass 7s https://github.com/boykopovar/AnyPS5/actions/runs/41508058430/job/125492344568 report pass 1m39s https://github.com/boykopovar/AnyPS5/actions/runs/41508058463/job/125492343973 ``` </details> ## Negative control No code mutation or negative control was run in this follow-up. The changed line is covered by the exact-head Windows build and test workflow. ## Findings ### Blocking None found in the full review of head `c6a7245b94593c20c372365ad6217c98119a1056`. ### Non-blocking The PR retains its declared dependencies on #14122, #11221 and #12447. Preserve that landing order when integrating the overlapping changes. ## Sources - [BasicPresence constructor at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c6a7245b94593c20c372365ad6217c98119a1056/core/libs/prx/libSceNpCppWebApi/Export.cpp#L4152-L4160) - [Constructor test at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c6a7245b94593c20c372365ad6217c98119a1056/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp#L521-L535) ## Not verified I did not run a local build, Linux tests, console behavior or a negative control. The Linux and specialized hosted jobs were skipped. ## To get this to a good state No code change is requested for this head. Keep the declared dependency order; I will recheck if the head or dependency state changes.
MarcZX10 commented 2026-11-03 05:54:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T05:54:57Z.

Review: COMMENTED


Re-checked — new head, no blocking findings

I reviewed the current six-file change at head 606cb246ebeb568152002c526edbbffb441db563 and found no blocking issue in the inspected source; required hosted checks are still queued, so this is a comment rather than an approval.

What I ran

Confirmed the PR is open on base d1ae628bc2f62459cce1e9872ba5632c938c71f2. The stack checker reports that this head merges cleanly into the current base. The PR declares dependencies on #14122, #11221 and #12447; #14122 is included, while #12447's current head is not included and conflicts with current main, so preserve the declared landing order and revisit integration when that dependency advances. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. No local build or CTest was run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136
git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...606cb246ebeb568152002c526edbbffb441db563
python3 tools/pr_stack_check.py 14136 --repo boykopovar/AnyPS5
gh pr checks 14136 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions/template passed Exact-head diff and repository convention checks passed.
Stack preview passed This head merges cleanly; #12447 remains an outstanding dependency.
Hosted checks not run All four jobs are queued on this head.
Local build and CTest not run Not run under the no-build review pass.
Optional ABI and test-quality helpers failed The isolated head does not contain these reviewer helper scripts.
Raw check output
All conventions checks passed.
conventions	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41586145266/job/125751986908
eligibility	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41586147801/job/125751995876
library-portability	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41586147673/job/125751991074
report	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41586147716/job/125751991364

The precheck's optional helper commands reported these exact errors:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-606cb246ebeb/head-606cb246ebeb-fcc8ee71/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-606cb246ebeb/head-606cb246ebeb-fcc8ee71/tools/pr_test_quality.py': [Errno 2] No such file or directory

Negative control

No negative control was run; the changed C++ tests require a build to execute.

Findings

Blocking

None found in the reviewed diff.

Non-blocking

The declared dependency order includes #12447, whose current head is not contained in this PR and whose own merge preview conflicts with current main. This is not a request to rebase the dependent PR early; keep the stack order and reassess after the dependency advances.

Sources

Not verified

The hosted checks have not completed. I did not run a local build, CTest, Linux runtime tests, console behavior or a negative control. The ABI and test-quality heuristics were unavailable in the isolated head snapshot.

To get this to a good state

No code change is requested from this review. Let the four hosted checks finish; I will re-check this exact head and update the review if any check fails or when all required checks pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747792845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5747792845). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T05:54:57Z. **Review:** COMMENTED --- # Re-checked — new head, no blocking findings I reviewed the current six-file change at head `606cb246ebeb568152002c526edbbffb441db563` and found no blocking issue in the inspected source; required hosted checks are still queued, so this is a comment rather than an approval. ## What I ran Confirmed the PR is open on base `d1ae628bc2f62459cce1e9872ba5632c938c71f2`. The stack checker reports that this head merges cleanly into the current base. The PR declares dependencies on #14122, #11221 and #12447; #14122 is included, while #12447's current head is not included and conflicts with current `main`, so preserve the declared landing order and revisit integration when that dependency advances. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. No local build or CTest was run. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14136 git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...606cb246ebeb568152002c526edbbffb441db563 python3 tools/pr_stack_check.py 14136 --repo boykopovar/AnyPS5 gh pr checks 14136 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions/template | passed | Exact-head diff and repository convention checks passed. | | Stack preview | passed | This head merges cleanly; #12447 remains an outstanding dependency. | | Hosted checks | not run | All four jobs are queued on this head. | | Local build and CTest | not run | Not run under the no-build review pass. | | Optional ABI and test-quality helpers | failed | The isolated head does not contain these reviewer helper scripts. | <details> <summary>Raw check output</summary> ```text All conventions checks passed. ``` ```text conventions pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41586145266/job/125751986908 eligibility pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41586147801/job/125751995876 library-portability pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41586147673/job/125751991074 report pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41586147716/job/125751991364 ``` The precheck's optional helper commands reported these exact errors: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-606cb246ebeb/head-606cb246ebeb-fcc8ee71/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14136-606cb246ebeb/head-606cb246ebeb-fcc8ee71/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` </details> ## Negative control No negative control was run; the changed C++ tests require a build to execute. ## Findings ### Blocking None found in the reviewed diff. ### Non-blocking The declared dependency order includes #12447, whose current head is not contained in this PR and whose own merge preview conflicts with current `main`. This is not a request to rebase the dependent PR early; keep the stack order and reassess after the dependency advances. ## Sources - [Current implementation and helper routines](https://github.com/boykopovar/AnyPS5/blob/606cb246ebeb568152002c526edbbffb441db563/core/libs/prx/libSceNpCppWebApi/Export.cpp) - [Current vector and String tests](https://github.com/boykopovar/AnyPS5/blob/606cb246ebeb568152002c526edbbffb441db563/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp) - [Current String tests](https://github.com/boykopovar/AnyPS5/blob/606cb246ebeb568152002c526edbbffb441db563/core/libs/tests/GuestNpCppWebApiString.cpp) - [Contribution rules at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/d1ae628bc2f62459cce1e9872ba5632c938c71f2/CONTRIBUTING.md) ## Not verified The hosted checks have not completed. I did not run a local build, CTest, Linux runtime tests, console behavior or a negative control. The ABI and test-quality heuristics were unavailable in the isolated head snapshot. ## To get this to a good state No code change is requested from this review. Let the four hosted checks finish; I will re-check this exact head and update the review if any check fails or when all required checks pass.
MarcZX10 commented 2026-11-03 06:48:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T06:48:29Z.

Review: APPROVED


Re-checked — same head, approved

The previously reviewed head 606cb246ebeb568152002c526edbbffb441db563 now has all applicable hosted checks complete and successful, and the earlier source review found no blocking issue.

What I ran

Re-checked head 606cb246ebeb568152002c526edbbffb441db563 against base d1ae628bc2f62459cce1e9872ba5632c938c71f2; no new source diff since my review on this head. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. No local build or CTest was run.

gh api repos/boykopovar/AnyPS5/pulls/14136
gh api repos/boykopovar/AnyPS5/commits/606cb246ebeb568152002c526edbbffb441db563/check-runs --jq '[.check_runs[] | {name,status,conclusion}]'

Results

Check Result Note
Previous exact-head source review Passed No blocking finding.
Hosted applicable checks Passed Windows, conventions, eligibility, labels, report and library portability.
Hosted specialized jobs Not applicable Linux and relinker-related jobs were skipped.
Local build and CTest Not run No local compilation was performed.
Hosted check API output
[{"conclusion":"success","name":"labels","status":"completed"},{"conclusion":"skipped","name":"relinker","status":"completed"},{"conclusion":"skipped","name":"linux","status":"completed"},{"conclusion":"skipped","name":"register-context","status":"completed"},{"conclusion":"skipped","name":"relinker-asan","status":"completed"},{"conclusion":"skipped","name":"write-watch","status":"completed"},{"conclusion":"skipped","name":"edge-watch","status":"completed"},{"conclusion":"success","name":"windows","status":"completed"},{"conclusion":"success","name":"eligibility","status":"completed"},{"conclusion":"success","name":"report","status":"completed"},{"conclusion":"success","name":"library-portability","status":"completed"},{"conclusion":"success","name":"conventions","status":"completed"}]

Negative control

Not applicable to this checks-only re-check; the PR's test code was reviewed previously, and no local build was run.

Findings

Blocking

None found in the previously reviewed source change.

Non-blocking

The PR lists #14122 and #12447 as dependencies, and both remain open. This approval covers the reviewed head; final integration remains subject to that dependency order.

Sources

Not verified

No local C++ build or CTest, Linux run, or console behavior was verified. Linux and specialized hosted jobs were skipped.

To get this to a good state

No change is required for this reviewed head. If the head changes, I will review the new diff and rerun the applicable checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5748187003 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14136#pullrequestreview-5748187003). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T06:48:29Z. **Review:** APPROVED --- # Re-checked — same head, approved The previously reviewed head `606cb246ebeb568152002c526edbbffb441db563` now has all applicable hosted checks complete and successful, and the earlier source review found no blocking issue. ## What I ran Re-checked head `606cb246ebeb568152002c526edbbffb441db563` against base `d1ae628bc2f62459cce1e9872ba5632c938c71f2`; no new source diff since my review on this head. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. No local build or CTest was run. ```sh gh api repos/boykopovar/AnyPS5/pulls/14136 gh api repos/boykopovar/AnyPS5/commits/606cb246ebeb568152002c526edbbffb441db563/check-runs --jq '[.check_runs[] | {name,status,conclusion}]' ``` ## Results | Check | Result | Note | |---|---|---| | Previous exact-head source review | Passed | No blocking finding. | | Hosted applicable checks | Passed | Windows, conventions, eligibility, labels, report and library portability. | | Hosted specialized jobs | Not applicable | Linux and relinker-related jobs were skipped. | | Local build and CTest | Not run | No local compilation was performed. | <details><summary>Hosted check API output</summary> ```text [{"conclusion":"success","name":"labels","status":"completed"},{"conclusion":"skipped","name":"relinker","status":"completed"},{"conclusion":"skipped","name":"linux","status":"completed"},{"conclusion":"skipped","name":"register-context","status":"completed"},{"conclusion":"skipped","name":"relinker-asan","status":"completed"},{"conclusion":"skipped","name":"write-watch","status":"completed"},{"conclusion":"skipped","name":"edge-watch","status":"completed"},{"conclusion":"success","name":"windows","status":"completed"},{"conclusion":"success","name":"eligibility","status":"completed"},{"conclusion":"success","name":"report","status":"completed"},{"conclusion":"success","name":"library-portability","status":"completed"},{"conclusion":"success","name":"conventions","status":"completed"}] ``` </details> ## Negative control Not applicable to this checks-only re-check; the PR's test code was reviewed previously, and no local build was run. ## Findings ### Blocking None found in the previously reviewed source change. ### Non-blocking The PR lists #14122 and #12447 as dependencies, and both remain open. This approval covers the reviewed head; final integration remains subject to that dependency order. ## Sources - [Current PR head and changed implementation](https://github.com/boykopovar/AnyPS5/blob/606cb246ebeb568152002c526edbbffb441db563/core/libs/prx/libSceNpCppWebApi/Export.cpp) - [Current test changes](https://github.com/boykopovar/AnyPS5/blob/606cb246ebeb568152002c526edbbffb441db563/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp) ## Not verified No local C++ build or CTest, Linux run, or console behavior was verified. Linux and specialized hosted jobs were skipped. ## To get this to a good state No change is required for this reviewed head. If the head changes, I will review the new diff and rerun the applicable checks.
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!14136
No description provided.