Repository navigation
feat(libSceNpCppWebApi): answer the singular public profile request offline - #11631
Conversation
…ffline Add BasicProfileApi::getPublicProfile with its parameter and Transaction<GetPublicProfileResponse>, which fail NOT_SIGNED_IN like the plural request, plus the IntrusivePtr helpers for GetPublicProfileResponse, PersonalDetail and Avatar, the bool conversions of BasicProfile and BasicPresence pointers, and size of the BasicProfile and BasicPresence vectors over host-created bodies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Progress report (474030e → 024912b)📈 System libraries: 26.22% (+0.04%, +18 implemented, +3 declared functions) ✅ 18 implemented
⚪ 10 behaviourally empty (constant return or throw)
🆕 3 declared as stubs
Changed libraries (implemented exports)
|
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
@nicolasabosch Thanks, this looks good. One small test change: please drop the new check in |
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
@nicolasabosch Two of my PRs overlap this one textually: #10925 adds destructor rows at the same spot in |
…tor bodies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MarcZX10
left a comment
There was a problem hiding this comment.
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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@MarcZX10 Removed the section comment from 🤖 Generated with Claude Code |
MarcZX10
left a comment
There was a problem hiding this comment.
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 On the #9612 overlap: only 🤖 Generated with Claude Code |
MarcZX10
left a comment
There was a problem hiding this comment.
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; currentmainis3a2b91981651569163768854a1fcdc7193b6667b. git merge-tree --write-tree upstream/main upstream/pr-11631— clean preview, tree184e0ef84c3d7a1f33b1b7affdfc7c64cfccf36c.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_apitests, 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
- Author's test update
- Author's proposed #11631 → #9612 order
- Contribution rule on keeping branches current
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.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@MarcZX10 Merged current 🤖 Generated with Claude Code |
MarcZX10
left a comment
There was a problem hiding this comment.
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
mainto 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
- New public profile exports
- Focused regression coverage
- Technical-debt updates
- Contribution requirements for current branches and overlap ordering
- Author’s current-main build and test report
- Agreed #11631 before #9612 order
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.
|
Windows run of this head (
AI-assisted: yes (Claude Code). |
|
@nicolasabosch Please rebase onto current main. The trial merge conflicts in core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp around main(): retain main's argc/argv alias-vector dispatch and TestVectorAliasedGrowth, together with the new singular-profile helper and its call. Keep the previously removed assertion that valid title-provided vector bodies throw removed. Please rerun guest_np_cpp_web_api_intrusive_ptr (including alias-vector), the offline/signed-out/string neighbors and public-header checks on the refreshed head. |
Keep main's argc/argv alias-vector dispatch and TestVectorAliasedGrowth together with the singular public-profile helper and its call in GuestNpCppWebApiIntrusivePtr.cpp.
|
@nicolasabosch we merged current main into your branch ourselves (maintainer edits), so you can ignore our earlier rebase request. Nothing in your change was touched; it's a plain merge commit on top. We'll run full CI on the new head and take it from there. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> # Conflicts: # core/libs/prx/libSceNpCppWebApi/Export.cpp # core/libs/prx/libSceNpCppWebApi/include/Api.hpp # docs/dev/debt/libSceNpCppWebApi.md
MarcZX10
left a comment
There was a problem hiding this comment.
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/stackResults
| 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
- Current implementation at the reviewed head
- Regression tests at the reviewed head
- Windows build and test job
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.
What
Adds the singular public profile request of
UserProfile2V1next to the plural one already inmain, plus theCommoninstantiations around it:BasicProfileApi::getPublicProfile,TransactionBase<IntrusivePtr<GetPublicProfileResponse>>::startandTransaction<...>::getResponsefailSCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN, like every other offline request entry point.BasicProfileApi::ParameterToGetPublicProfile{ctor,dtor,initialize,terminate}, the constructor and destructor ofTransaction<IntrusivePtr<GetPublicProfileResponse>>andTransactionBase<IntrusivePtr<GetPublicProfilesResponse>>::setResponseInformationOptionsucceed without keeping state, as their siblings do; they are listed under Silent stubs.IntrusivePtrhelpers:GetPublicProfileResponsector, dtor andoperator->;PersonalDetailctor;Avataroperator->;Vector<IntrusivePtr<Avatar>>dtor (reference count at 0x30) andoperator*;Vector<IntrusivePtr<BasicProfile>>operator*;operator boolofIntrusivePtr<BasicProfile>andIntrusivePtr<BasicPresence>.Vector<IntrusivePtr<BasicProfile>>::sizeandVector<IntrusivePtr<BasicPresence>>::size(the latter threw before) read host-created bodies and throw on title-provided ones, like the otherVector::sizeinstantiations. The debt entry that listed theBasicPresencevector 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 boolandsizeon empty and host-created vectors),guest_np_cpp_web_api_offline,guest_np_cpp_web_api_signed_out,guest_np_cpp_web_api_stringand the 65public_headerstests pass.tools/check_conventions.py --base origin/mainpasses. Not tested with a title.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code