feat(libSceNpCppWebApi): answer the singular public profile request offline #11631

Merged
nicolasabosch merged 6 commits from upstream-pr/11631 into main 2026-11-02 12:26:16 +00:00
nicolasabosch commented 2026-10-27 00:06:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by nicolasabosch on 2026-10-27T00:06:35Z.


What

Adds the singular public profile request of UserProfile2V1 next to the plural one already in main, plus the Common instantiations around it:

  • BasicProfileApi::getPublicProfile, TransactionBase<IntrusivePtr<GetPublicProfileResponse>>::start and Transaction<...>::getResponse fail SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN, like every other offline request entry point.
  • BasicProfileApi::ParameterToGetPublicProfile {ctor,dtor,initialize,terminate}, the constructor and destructor of Transaction<IntrusivePtr<GetPublicProfileResponse>> and TransactionBase<IntrusivePtr<GetPublicProfilesResponse>>::setResponseInformationOption succeed without keeping state, as their siblings do; they are listed under Silent stubs.
  • IntrusivePtr helpers: GetPublicProfileResponse ctor, dtor and operator->; PersonalDetail ctor; Avatar operator->; Vector<IntrusivePtr<Avatar>> dtor (reference count at 0x30) and operator*; Vector<IntrusivePtr<BasicProfile>> operator*; operator bool of IntrusivePtr<BasicProfile> and IntrusivePtr<BasicPresence>.
  • Vector<IntrusivePtr<BasicProfile>>::size and Vector<IntrusivePtr<BasicPresence>>::size (the latter threw before) read host-created bodies and throw on title-provided ones, like the other Vector::size instantiations. The debt entry that listed the BasicPresence vector members as throwing is cut accordingly.

Tested

Windows 11, WinLibs GCC 15.2.0 r7, Release with BUILD_TESTING=ON: guest_np_cpp_web_api_intrusive_ptr (extended with the new constructors, accessors, destructors, the singular request flow, operator bool and size on empty and host-created vectors), guest_np_cpp_web_api_offline, guest_np_cpp_web_api_signed_out, guest_np_cpp_web_api_string and the 65 public_headers tests pass. tools/check_conventions.py --base origin/main passes. Not tested with a title.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5026524439 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631). Originally posted by [nicolasabosch](https://github.com/nicolasabosch) on 2026-10-27T00:06:35Z. --- ### What Adds the singular public profile request of `UserProfile2V1` next to the plural one already in `main`, plus the `Common` instantiations around it: - `BasicProfileApi::getPublicProfile`, `TransactionBase<IntrusivePtr<GetPublicProfileResponse>>::start` and `Transaction<...>::getResponse` fail `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`, like every other offline request entry point. - `BasicProfileApi::ParameterToGetPublicProfile` `{ctor,dtor,initialize,terminate}`, the constructor and destructor of `Transaction<IntrusivePtr<GetPublicProfileResponse>>` and `TransactionBase<IntrusivePtr<GetPublicProfilesResponse>>::setResponseInformationOption` succeed without keeping state, as their siblings do; they are listed under Silent stubs. - `IntrusivePtr` helpers: `GetPublicProfileResponse` ctor, dtor and `operator->`; `PersonalDetail` ctor; `Avatar` `operator->`; `Vector<IntrusivePtr<Avatar>>` dtor (reference count at 0x30) and `operator*`; `Vector<IntrusivePtr<BasicProfile>>` `operator*`; `operator bool` of `IntrusivePtr<BasicProfile>` and `IntrusivePtr<BasicPresence>`. - `Vector<IntrusivePtr<BasicProfile>>::size` and `Vector<IntrusivePtr<BasicPresence>>::size` (the latter threw before) read host-created bodies and throw on title-provided ones, like the other `Vector::size` instantiations. The debt entry that listed the `BasicPresence` vector members as throwing is cut accordingly. ### Tested Windows 11, WinLibs GCC 15.2.0 r7, Release with `BUILD_TESTING=ON`: `guest_np_cpp_web_api_intrusive_ptr` (extended with the new constructors, accessors, destructors, the singular request flow, `operator bool` and `size` on empty and host-created vectors), `guest_np_cpp_web_api_offline`, `guest_np_cpp_web_api_signed_out`, `guest_np_cpp_web_api_string` and the 65 `public_headers` tests pass. `tools/check_conventions.py --base origin/main` passes. Not tested with a title. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-27 00:12:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T00:12:57Z.

Review: APPROVED


Reviewed exact head ecb225f179913f03aa18177d06ea192418ff2216. The singular request follows the existing offline NOT_SIGNED_IN behavior; the response transaction, intrusive-pointer lifetime helpers, and host-created vector size paths are consistent with neighboring implementations. The vector size declarations use std::size_t, and the focused test covers empty, host-created and title-provided vector bodies plus request lifecycle. The documented limitation that title-provided vector layouts remain unsupported is accurately retained. Hosted eligibility, conventions, intake, labels and report checks pass; product/relinker suites were skipped by path policy. The PR reports its Windows Release focused suites and public-header tests; I did not rerun them locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5660761855 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631#pullrequestreview-5660761855). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T00:12:57Z. **Review:** APPROVED --- Reviewed exact head `ecb225f179913f03aa18177d06ea192418ff2216`. The singular request follows the existing offline `NOT_SIGNED_IN` behavior; the response transaction, intrusive-pointer lifetime helpers, and host-created vector size paths are consistent with neighboring implementations. The vector size declarations use `std::size_t`, and the focused test covers empty, host-created and title-provided vector bodies plus request lifecycle. The documented limitation that title-provided vector layouts remain unsupported is accurately retained. Hosted eligibility, conventions, intake, labels and report checks pass; product/relinker suites were skipped by path policy. The PR reports its Windows Release focused suites and public-header tests; I did not rerun them locally.
MarcZX10 commented 2026-10-27 00:24:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T00:24:19Z.

Review: CHANGES_REQUESTED


The new BasicPresence vector test asserts that size() throws for a title-provided body with an unknown layout. That exception currently represents an unsupported layout, not an invalid input; pinning it will make the regression test fail once that layout is implemented. Please remove this assertion and retain the empty-vector and host-created-vector checks. The production refusal and debt entry can remain until the layout is supported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5660832584 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631#pullrequestreview-5660832584). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T00:24:19Z. **Review:** CHANGES_REQUESTED --- The new `BasicPresence` vector test asserts that `size()` throws for a title-provided body with an unknown layout. That exception currently represents an unsupported layout, not an invalid input; pinning it will make the regression test fail once that layout is implemented. Please remove this assertion and retain the empty-vector and host-created-vector checks. The production refusal and debt entry can remain until the layout is supported.
MarcZX10 commented 2026-10-28 22:04:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T22:04:41Z.

Review: CHANGES_REQUESTED


Reviewing exact head 531ba12fef0b77eca827f80f043ec17a4588389c.

What I ran

  • Inspected both commits, the production exports and declarations, regression tests, debt changes, review discussion, and hosted checks.
  • Hosted conventions, labels, Windows, report, and eligibility checks pass. Linux, register-context, relinker, ASan, and write-watch jobs are skipped.
  • I did not run a local build or tests. The Windows test results in the PR are author-reported.

Results

Check Result Evidence
Patch and neighboring API implementations Reviewed Exact two-commit diff
Hosted Windows Pass GitHub Actions
Hosted conventions, labels, report, eligibility Pass GitHub Actions
Linux/product and specialized jobs Skipped GitHub Actions
Local build and tests Not run This review

Findings

Blocking

  • The first commit adds a section comment in Export.cpp (// UserProfile2V1 singular public profile request... and its divider). The repository's AGENTS.md and conventions prohibit code comments except namespace endings and #endif. Please remove the comment; the exported symbol names already make the section clear.

Non-blocking

  • The test change appropriately stops asserting that BasicPresence::Vector::size() must throw on a title-provided body; that behavior is an unsupported layout, not a stable contract. The singular request path returns the same not-signed-in error used by the neighboring offline request, and the new intrusive-pointer/vector coverage follows existing host-created-body helpers.
  • The overlap workflow reports shared test-file edits with #9612. Check that PR's current state before merging and retain both sets of tests if rebasing is needed.

Sources

Not verified

  • I did not run the local C++ build, CTest, or title behavior.
  • The Windows build/test results are author-reported; hosted Windows passed, but the full Linux and specialized jobs were skipped.

To get this to a good state

Remove the added section comment, then request a re-review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690302960 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631#pullrequestreview-5690302960). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T22:04:41Z. **Review:** CHANGES_REQUESTED --- Reviewing exact head `531ba12fef0b77eca827f80f043ec17a4588389c`. ## What I ran - Inspected both commits, the production exports and declarations, regression tests, debt changes, review discussion, and hosted checks. - Hosted conventions, labels, Windows, report, and eligibility checks pass. Linux, register-context, relinker, ASan, and write-watch jobs are skipped. - I did not run a local build or tests. The Windows test results in the PR are author-reported. ## Results | Check | Result | Evidence | |---|---|---| | Patch and neighboring API implementations | Reviewed | Exact two-commit diff | | Hosted Windows | Pass | GitHub Actions | | Hosted conventions, labels, report, eligibility | Pass | GitHub Actions | | Linux/product and specialized jobs | Skipped | GitHub Actions | | Local build and tests | Not run | This review | ## Findings ### Blocking - The first commit adds a section comment in `Export.cpp` (`// UserProfile2V1 singular public profile request...` and its divider). The repository's AGENTS.md and conventions prohibit code comments except namespace endings and `#endif`. Please remove the comment; the exported symbol names already make the section clear. ### Non-blocking - The test change appropriately stops asserting that `BasicPresence::Vector::size()` must throw on a title-provided body; that behavior is an unsupported layout, not a stable contract. The singular request path returns the same not-signed-in error used by the neighboring offline request, and the new intrusive-pointer/vector coverage follows existing host-created-body helpers. - The overlap workflow reports shared test-file edits with #9612. Check that PR's current state before merging and retain both sets of tests if rebasing is needed. ## Sources - [Repository contribution and code-comment rules](https://github.com/boykopovar/AnyPS5/blob/main/AGENTS.md) - [Current pull request and test report](https://github.com/boykopovar/AnyPS5/pull/11631) ## Not verified - I did not run the local C++ build, CTest, or title behavior. - The Windows build/test results are author-reported; hosted Windows passed, but the full Linux and specialized jobs were skipped. ## To get this to a good state Remove the added section comment, then request a re-review.
MarcZX10 commented 2026-10-28 22:25:27 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


I re-reviewed exact head 51f9bdb214d5a491572582a598972c3598aa01ca. The new commit removes the prohibited section comment, and the earlier unstable test assertion that BasicPresence::Vector::size() must throw on title-provided storage is gone. The singular offline request, response transaction helpers, pointer lifetimes, and host-created vector-size paths remain consistent with neighboring implementations. The author reports the Windows Release focused suites and public-header tests passing on the preceding tree; hosted eligibility, conventions, labels, and report pass on this head, while Windows is still running and Linux/product jobs are skipped. I did not run a local build.

One repository integration item remains: the current overlap report identifies #9612 in the same GuestNpCppWebApiIntrusivePtr.cpp test insertion area, and #9612 is still open. This PR says Depends on: none; I found no agreed landing order in either thread. Please coordinate which test change lands first, record the agreed order in the relevant checklists, and retain both test blocks after rebasing. I cannot approve until that overlap rule is resolved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690494976 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631#pullrequestreview-5690494976). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T22:25:27Z. **Review:** CHANGES_REQUESTED --- I re-reviewed exact head `51f9bdb214d5a491572582a598972c3598aa01ca`. The new commit removes the prohibited section comment, and the earlier unstable test assertion that `BasicPresence::Vector::size()` must throw on title-provided storage is gone. The singular offline request, response transaction helpers, pointer lifetimes, and host-created vector-size paths remain consistent with neighboring implementations. The author reports the Windows Release focused suites and public-header tests passing on the preceding tree; hosted eligibility, conventions, labels, and report pass on this head, while Windows is still running and Linux/product jobs are skipped. I did not run a local build. One repository integration item remains: the current overlap report identifies #9612 in the same `GuestNpCppWebApiIntrusivePtr.cpp` test insertion area, and #9612 is still open. This PR says `Depends on: none`; I found no agreed landing order in either thread. Please coordinate which test change lands first, record the agreed order in the relevant checklists, and retain both test blocks after rebasing. I cannot approve until that overlap rule is resolved.
MarcZX10 commented 2026-10-28 23:56:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T23:56:37Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested for current-main integration

The earlier test assertion and code-comment concerns are addressed, and the proposed order before #9612 is reasonable; the remaining issue is that this head has not been tested against current main.

What I ran

  • Reviewed head 51f9bdb214d5a491572582a598972c3598aa01ca; current main is 3a2b91981651569163768854a1fcdc7193b6667b.
  • git merge-tree --write-tree upstream/main upstream/pr-11631 — clean preview, tree 184e0ef84c3d7a1f33b1b7affdfc7c64cfccf36c.
  • git diff --check upstream/main...upstream/pr-11631 — passed.
  • python3 tools/check_conventions.py --base upstream/main --head upstream/pr-11631 — passed.
  • I did not rerun the build or tests locally. The author reports that the build, four np_cpp_web_api tests, and conventions pass on this head.

Results

Check Result
Current-main merge preview Clean
Convention and whitespace checks Passed
Author-reported focused build/tests Pass on the reported tree
Current-main integration of touched API files Not verified by a test run

Findings

The unsupported BasicPresence size assertion is removed, and the code-comment issue is resolved. The proposed sequence for the test insertion overlap is acceptable: #11631 can land first, then #9612 can rebase while retaining both test blocks. Since this PR does not depend on #9612's implementation, Depends on: none is appropriate unless #9612's author requests the reverse order.

The branch's merge base is 74acfad65b3f0fd4eab653f3a3989d298fba1157, and current main has since changed the same Export.cpp, Api.hpp, and technical-debt files touched here. CONTRIBUTING.md requires branches to stay current. Please rebase onto 3a2b91981651569163768854a1fcdc7193b6667b, preserve the current upstream changes and this PR's tests, then rerun the four np_cpp_web_api tests and conventions on the updated tree.

Sources

Not verified

I did not run a local C++ build, the four focused tests, Windows/macOS tests, or console behavior. The focused test result above is attributed to the author.

To get this to a good state

Rebase onto current main, keep the overlap order documented, rerun the focused tests and conventions, and attach the exact updated head and output.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691218049 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631#pullrequestreview-5691218049). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T23:56:37Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested for current-main integration The earlier test assertion and code-comment concerns are addressed, and the proposed order before #9612 is reasonable; the remaining issue is that this head has not been tested against current `main`. ## What I ran - Reviewed head `51f9bdb214d5a491572582a598972c3598aa01ca`; current `main` is `3a2b91981651569163768854a1fcdc7193b6667b`. - `git merge-tree --write-tree upstream/main upstream/pr-11631` — clean preview, tree `184e0ef84c3d7a1f33b1b7affdfc7c64cfccf36c`. - `git diff --check upstream/main...upstream/pr-11631` — passed. - `python3 tools/check_conventions.py --base upstream/main --head upstream/pr-11631` — passed. - I did not rerun the build or tests locally. The author reports that the build, four `np_cpp_web_api` tests, and conventions pass on this head. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | Convention and whitespace checks | Passed | | Author-reported focused build/tests | Pass on the reported tree | | Current-main integration of touched API files | Not verified by a test run | ## Findings The unsupported `BasicPresence` size assertion is removed, and the code-comment issue is resolved. The proposed sequence for the test insertion overlap is acceptable: #11631 can land first, then #9612 can rebase while retaining both test blocks. Since this PR does not depend on #9612's implementation, `Depends on: none` is appropriate unless #9612's author requests the reverse order. The branch's merge base is `74acfad65b3f0fd4eab653f3a3989d298fba1157`, and current `main` has since changed the same `Export.cpp`, `Api.hpp`, and technical-debt files touched here. `CONTRIBUTING.md` requires branches to stay current. Please rebase onto `3a2b91981651569163768854a1fcdc7193b6667b`, preserve the current upstream changes and this PR's tests, then rerun the four `np_cpp_web_api` tests and conventions on the updated tree. ## Sources - [Current PR head](https://github.com/boykopovar/AnyPS5/commit/51f9bdb214d5a491572582a598972c3598aa01ca) - [Author's test update](https://github.com/boykopovar/AnyPS5/pull/11631#issuecomment-6482130537) - [Author's proposed #11631 → #9612 order](https://github.com/boykopovar/AnyPS5/pull/11631#issuecomment-6482448608) - [Contribution rule on keeping branches current](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/CONTRIBUTING.md#L60) ## Not verified I did not run a local C++ build, the four focused tests, Windows/macOS tests, or console behavior. The focused test result above is attributed to the author. ## To get this to a good state Rebase onto current `main`, keep the overlap order documented, rerun the focused tests and conventions, and attach the exact updated head and output.
MarcZX10 commented 2026-10-29 03:04:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T03:04:04Z.

Review: APPROVED


Re-checked — approved

The current head resolves the remaining review items. The branch incorporates current main, the unstable title-provided-vector assertion and prohibited section comment are gone, and the author reports the focused API suite passing on the merged tree. I approve commit 6cd336ce1644206ef17d44b2c94d45a08f0f34e5.

What I ran

  • Reviewed the complete diff from current main to the exact PR head.
  • Ran python3 tools/check_conventions.py --base upstream/main --head HEAD.
  • Ran git diff --check upstream/main...HEAD.
  • Ran git merge-tree --write-tree upstream/main HEAD.
  • Refreshed hosted checks and reviewed the current author test report and the #9612 ordering agreement.

Results

Check Result
Conventions Passed
Diff whitespace Passed
Merge preview Clean; tree 184e0ef84c3d7a1f33b1b7affdfc7c64cfccf36c
Author-reported merged-tree build and focused tests Build, intrusive_ptr, string, signed_out, offline, and conventions pass
Hosted checks Conventions, eligibility, labels, and report pass; Windows pending; Linux/product and specialized jobs skipped

The new offline request returns SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN, matching neighboring request paths. Pointer destruction and accessors follow the established intrusive-pointer helpers. The two vector size() exports use the existing host-created-body validation path. The unstable expectation that an unsupported title-provided vector layout must throw has been removed.

Negative control

Not applicable to these offline API and lifecycle additions. The focused tests exercise signed-out errors, lifecycle return codes, empty and host-created vectors, and pointer lifetime behavior.

Findings

Blocking

None found on this head.

Non-blocking

  • #9612 changes the same test insertion point. Its author agreed that #11631 lands first, recorded Depends on: #11631, and committed to retaining both test blocks after rebasing. This satisfies the repository’s overlap-order rule.
  • #11644 also touches the technical-debt file through its existing stack. Its checklist depends on #11639, and the current change does not depend on #11644.
  • The Windows hosted job remains pending. The focused test results are author-reported; I did not reproduce the build or CTest locally.

Sources

All code links point to the reviewed commit 6cd336ce1644206ef17d44b2c94d45a08f0f34e5.

Not verified

  • I did not rerun the C++ build, focused CTest suite, public-header checks, or console behavior locally.
  • Windows hosted checks were still pending when refreshed; Linux/product and specialized jobs were skipped.

To get to a good state

No further changes are required for the findings in this review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692362659 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631#pullrequestreview-5692362659). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T03:04:04Z. **Review:** APPROVED --- # Re-checked — approved The current head resolves the remaining review items. The branch incorporates current `main`, the unstable title-provided-vector assertion and prohibited section comment are gone, and the author reports the focused API suite passing on the merged tree. I approve commit `6cd336ce1644206ef17d44b2c94d45a08f0f34e5`. ## What I ran - Reviewed the complete diff from current `main` to the exact PR head. - Ran `python3 tools/check_conventions.py --base upstream/main --head HEAD`. - Ran `git diff --check upstream/main...HEAD`. - Ran `git merge-tree --write-tree upstream/main HEAD`. - Refreshed hosted checks and reviewed the current author test report and the #9612 ordering agreement. ## Results | Check | Result | |---|---| | Conventions | Passed | | Diff whitespace | Passed | | Merge preview | Clean; tree `184e0ef84c3d7a1f33b1b7affdfc7c64cfccf36c` | | Author-reported merged-tree build and focused tests | Build, `intrusive_ptr`, `string`, `signed_out`, `offline`, and conventions pass | | Hosted checks | Conventions, eligibility, labels, and report pass; Windows pending; Linux/product and specialized jobs skipped | The new offline request returns `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`, matching neighboring request paths. Pointer destruction and accessors follow the established intrusive-pointer helpers. The two vector `size()` exports use the existing host-created-body validation path. The unstable expectation that an unsupported title-provided vector layout must throw has been removed. ## Negative control Not applicable to these offline API and lifecycle additions. The focused tests exercise signed-out errors, lifecycle return codes, empty and host-created vectors, and pointer lifetime behavior. ## Findings ### Blocking None found on this head. ### Non-blocking - #9612 changes the same test insertion point. Its author agreed that #11631 lands first, recorded `Depends on: #11631`, and committed to retaining both test blocks after rebasing. This satisfies the repository’s overlap-order rule. - #11644 also touches the technical-debt file through its existing stack. Its checklist depends on #11639, and the current change does not depend on #11644. - The Windows hosted job remains pending. The focused test results are author-reported; I did not reproduce the build or CTest locally. ## Sources All code links point to the reviewed commit `6cd336ce1644206ef17d44b2c94d45a08f0f34e5`. - [New offline request, pointer helpers, and vector size exports](https://github.com/boykopovar/AnyPS5/blob/6cd336ce1644206ef17d44b2c94d45a08f0f34e5/core/libs/prx/libSceNpCppWebApi/Export.cpp#L2699-L2704) - [New public profile exports](https://github.com/boykopovar/AnyPS5/blob/6cd336ce1644206ef17d44b2c94d45a08f0f34e5/core/libs/prx/libSceNpCppWebApi/Export.cpp#L3667-L3750) - [Focused regression coverage](https://github.com/boykopovar/AnyPS5/blob/6cd336ce1644206ef17d44b2c94d45a08f0f34e5/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp#L307-L365) - [Technical-debt updates](https://github.com/boykopovar/AnyPS5/blob/6cd336ce1644206ef17d44b2c94d45a08f0f34e5/docs/dev/debt/libSceNpCppWebApi.md#L6-L20) - [Contribution requirements for current branches and overlap ordering](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/CONTRIBUTING.md#L57-L70) - [Author’s current-main build and test report](https://github.com/boykopovar/AnyPS5/pull/11631#issuecomment-6486457977) - [Agreed #11631 before #9612 order](https://github.com/boykopovar/AnyPS5/pull/9612#issuecomment-6482829908) ## Not verified - I did not rerun the C++ build, focused CTest suite, public-header checks, or console behavior locally. - Windows hosted checks were still pending when refreshed; Linux/product and specialized jobs were skipped. ## To get to a good state No further changes are required for the findings in this review.
MarcZX10 commented 2026-10-31 17:20:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T17:20:43Z.

Review: APPROVED


Re-checked — new head, looks good

The merge-updated head preserves the reviewed implementation, and the exact-head no-build checks plus applicable hosted build and tests show no blocking issue.

What I ran

Reviewed head 024912b6c16617bec1e52b471340b170e8378f61 against base 474030e58424fefdb65e5df9f3820810fbb4553c; its merge preview was clean. Local environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build or compile locally. GitHub's Windows job built the changed test targets and ran CTest on the exact head.

git diff --check 474030e58424fefdb65e5df9f3820810fbb4553c...024912b6c16617bec1e52b471340b170e8378f61
python3 tools/check_conventions.py --base 474030e58424fefdb65e5df9f3820810fbb4553c --head 024912b6c16617bec1e52b471340b170e8378f61 --title 'feat(libSceNpCppWebApi): answer the singular public profile request offline' --body /tmp/anyps5-11631-review/pr-body.md
python3 tools/pr_abi_audit.py --base 474030e58424fefdb65e5df9f3820810fbb4553c --head 024912b6c16617bec1e52b471340b170e8378f61 --json
python3 tools/pr_stack_check.py 11631 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-11631-review/stack

Results

Check Result
Diff whitespace and conventions Passed
Export/header ABI audit Passed with one unrelated warning for the pre-existing private DestroyVectorBody helper; no changed export mismatch was reported
Current-base merge preview Clean
Hosted Windows build and CTest Passed: 2,523/2,523 tests; the intrusive-pointer, signed-out, offline, and string suites passed
Hosted eligibility, conventions, labels, report, and library-portability Passed
Hosted Linux, relinker, register-context, and write-watch jobs Skipped
Unedited local check output
# git diff --check

# check_conventions.py
All conventions checks passed.

# ABI audit summary
ABI audit: passed_with_warnings
DestroyVectorBody: public-declaration-not-found: No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface.

# pr_stack_check.py
/tmp/anyps5-11631-review/stack/stack-report.md
/tmp/anyps5-11631-review/stack/stack-report.json
Unedited relevant hosted CTest output
windows Build and run changed guest core/libs tests 2026-10-31T17:01:37.4393143Z   86/2523 Test  #502: guest_np_cpp_web_api_intrusive_ptr .......................................   Passed    0.02 sec
windows Build and run changed guest core/libs tests 2026-10-31T17:01:37.4572371Z   87/2523 Test  #503: guest_np_cpp_web_api_signed_out ..........................................   Passed    0.02 sec
windows Build and run changed guest core/libs tests 2026-10-31T17:01:37.4754570Z   88/2523 Test  #504: guest_np_cpp_web_api_offline .............................................   Passed    0.02 sec
windows Build and run changed guest core/libs tests 2026-10-31T17:02:37.2298510Z 1972/2523 Test #2422: guest_np_cpp_web_api_string ..............................................   Passed    0.02 sec
windows Build and run changed guest core/libs tests 2026-10-31T17:04:26.5003080Z 100% tests passed, 0 tests failed out of 2523

Findings

Blocking

None found on this head.

Non-blocking

None.

Sources

Not verified

  • No local C++ build, CTest, console/title run, or public-header suite was performed on this head.
  • Linux and specialized hosted jobs were skipped. The author-reported title and console behavior remains unverified.
  • The precheck's optional test-quality helper was unavailable in its temporary head checkout; it does not analyze these C++ tests.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5724032328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11631#pullrequestreview-5724032328). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T17:20:43Z. **Review:** APPROVED --- # Re-checked — new head, looks good The merge-updated head preserves the reviewed implementation, and the exact-head no-build checks plus applicable hosted build and tests show no blocking issue. ## What I ran Reviewed head `024912b6c16617bec1e52b471340b170e8378f61` against base `474030e58424fefdb65e5df9f3820810fbb4553c`; its merge preview was clean. Local environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build or compile locally. GitHub's Windows job built the changed test targets and ran CTest on the exact head. ```sh git diff --check 474030e58424fefdb65e5df9f3820810fbb4553c...024912b6c16617bec1e52b471340b170e8378f61 python3 tools/check_conventions.py --base 474030e58424fefdb65e5df9f3820810fbb4553c --head 024912b6c16617bec1e52b471340b170e8378f61 --title 'feat(libSceNpCppWebApi): answer the singular public profile request offline' --body /tmp/anyps5-11631-review/pr-body.md python3 tools/pr_abi_audit.py --base 474030e58424fefdb65e5df9f3820810fbb4553c --head 024912b6c16617bec1e52b471340b170e8378f61 --json python3 tools/pr_stack_check.py 11631 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-11631-review/stack ``` ## Results | Check | Result | |---|---| | Diff whitespace and conventions | Passed | | Export/header ABI audit | Passed with one unrelated warning for the pre-existing private `DestroyVectorBody` helper; no changed export mismatch was reported | | Current-base merge preview | Clean | | Hosted Windows build and CTest | Passed: 2,523/2,523 tests; the intrusive-pointer, signed-out, offline, and string suites passed | | Hosted eligibility, conventions, labels, report, and library-portability | Passed | | Hosted Linux, relinker, register-context, and write-watch jobs | Skipped | <details><summary>Unedited local check output</summary> ```text # git diff --check # check_conventions.py All conventions checks passed. # ABI audit summary ABI audit: passed_with_warnings DestroyVectorBody: public-declaration-not-found: No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface. # pr_stack_check.py /tmp/anyps5-11631-review/stack/stack-report.md /tmp/anyps5-11631-review/stack/stack-report.json ``` </details> <details><summary>Unedited relevant hosted CTest output</summary> ```text windows Build and run changed guest core/libs tests 2026-10-31T17:01:37.4393143Z 86/2523 Test #502: guest_np_cpp_web_api_intrusive_ptr ....................................... Passed 0.02 sec windows Build and run changed guest core/libs tests 2026-10-31T17:01:37.4572371Z 87/2523 Test #503: guest_np_cpp_web_api_signed_out .......................................... Passed 0.02 sec windows Build and run changed guest core/libs tests 2026-10-31T17:01:37.4754570Z 88/2523 Test #504: guest_np_cpp_web_api_offline ............................................. Passed 0.02 sec windows Build and run changed guest core/libs tests 2026-10-31T17:02:37.2298510Z 1972/2523 Test #2422: guest_np_cpp_web_api_string .............................................. Passed 0.02 sec windows Build and run changed guest core/libs tests 2026-10-31T17:04:26.5003080Z 100% tests passed, 0 tests failed out of 2523 ``` </details> ## Findings ### Blocking None found on this head. ### Non-blocking None. ## Sources - [Current implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/024912b6c16617bec1e52b471340b170e8378f61/core/libs/prx/libSceNpCppWebApi/Export.cpp) - [Regression tests at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/024912b6c16617bec1e52b471340b170e8378f61/core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp) - [Windows build and test job](https://github.com/boykopovar/AnyPS5/actions/runs/41221849494/job/124598084810) ## Not verified - No local C++ build, CTest, console/title run, or public-header suite was performed on this head. - Linux and specialized hosted jobs were skipped. The author-reported title and console behavior remains unverified. - The precheck's optional test-quality helper was unavailable in its temporary head checkout; it does not analyze these C++ tests.
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!11631
No description provided.