feat(libSceNpWebApi): presence, VSH and internal initialize, internal requests and notification callbacks #13671

Merged
zaryabzip merged 4 commits from upstream-pr/13671 into main 2026-10-31 18:00:58 +00:00
zaryabzip commented 2026-10-30 22:57:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by zaryabzip on 2026-10-30T22:57:54Z.


What

Implements six more libSceNpWebApi exports. Each follows shadPS4 (0614ce32) and fits the library's existing context model:

  • sceNpWebApiInitializeForPresence(libHttpCtxId, poolSize) and sceNpWebApiVshInitialize(libHttpCtxId, poolSize): create a library context the same way sceNpWebApiInitialize does. shadPS4 records a context type for each, 3 and 4, and never reads it (source, VSH).
  • sceNpWebApiIntInitialize(args): takes the 32-byte NpWebApiIntInitializeArgs from shadPS4's declaration. A null pointer or a structSize other than 0x20 returns INVALID_ARGUMENT. Otherwise it creates a context from libHttpCtxId and poolSize (source). The name isn't kept, because nothing reads it.
  • sceNpWebApiIntCreateRequest(titleUserCtxId, apiGroup, path, method, contentParameter, internalArgs, requestId): creates a request like sceNpWebApiCreateRequest (second commit). A null group or path, or a method past PATCH, returns INVALID_ARGUMENT whatever the SDK version. Then a content length without a type returns INVALID_CONTENT_PARAMETER, as shadPS4 checks. Its internal arguments are three pointers (shadPS4's struct). shadPS4 accepts them only when all three are null, so with a field set the call throws after the user context check (third commit).
  • sceNpWebApiRegisterNotificationCallback(titleUserCtxId, callback, userArg) and sceNpWebApiUnregisterNotificationCallback(titleUserCtxId): INVALID_ARGUMENT for a null callback, checked first. Then LIB_CONTEXT_NOT_FOUND or USER_CONTEXT_NOT_FOUND from the library's existing lookup, then 0, as shadPS4's internal functions do. shadPS4 stores the callback but never calls it. No NP notification can arrive offline, so it isn't kept here.

This is the same pattern merged #8485 used for libSceNpWebApi2's InitializeForPresence and IntInitialize. The six names leave the inventory table. Three debt entries, placed among the existing ones after the table, record what isn't kept. Nothing is measured on a console. libSceNpWebApi goes from 26 to 32 of 88.

The new GuestNpWebApiInitialize.cpp looks the six up at runtime and calls them through their declared types and the public argument structs. It's a separate test file because open #9920 and #11371 edit GuestNpWebApi.cpp. Its CMake block sits at the end of CMakeLists.txt.

Tested

Windows 11 (WinLibs MinGW-w64 GCC 15.2.0 UCRT r7, CMake 4.3.1, Ninja 1.13.2) and Ubuntu 24.04 on WSL2 (GCC 13.3.0, CMake 3.28.3, Ninja 1.11.1), both at 6ca3d01f3e merged into main 6b48aee5d2. The head, 8b44d36b83, changes only the test, to call the exports through their declared types; it passes the same way on both hosts merged into main 5857e2e98f.

  • No warnings. Every file that includes libSceNpWebApi/include/Api.hpp rebuilds with no warnings, and the static_asserts hold.
  • ctest -R "^guest_np_web_api": 3 of 3 pass on both hosts, including the new guest_np_web_api_initialize (NpWebApi initialize and notification tests passed). Each passes 3 of 3 on --repeat until-fail:3. The throw for internal arguments with a field set reaches the test as std::runtime_error on both hosts (across the DLL boundary on Windows), and the calls after it on the same mutex succeed.
  • Baseline, with the test as of 6ca3d01f3e: on that main with only the new test file and its CMakeLists.txt block, the test builds and then aborts with sceNpWebApiInitializeForPresence not implemented on both hosts (Windows exit 0xc0000409, Linux SIGABRT). At the head the test uses the structs this PR adds to Api.hpp, so it no longer builds on main.
  • tools/check_conventions.py passes. The branch merges cleanly with main and with open #9920 and #11371, which also edit libSceNpWebApi.

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 (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5092120686 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13671). Originally posted by [zaryabzip](https://github.com/zaryabzip) on 2026-10-30T22:57:54Z. --- ### What Implements six more libSceNpWebApi exports. Each follows shadPS4 (0614ce32) and fits the library's existing context model: - **`sceNpWebApiInitializeForPresence(libHttpCtxId, poolSize)` and `sceNpWebApiVshInitialize(libHttpCtxId, poolSize)`:** create a library context the same way `sceNpWebApiInitialize` does. shadPS4 records a context type for each, 3 and 4, and never reads it ([source](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api.cpp#L380-L395), [VSH](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api.cpp#L632-L647)). - **`sceNpWebApiIntInitialize(args)`:** takes the 32-byte `NpWebApiIntInitializeArgs` from shadPS4's [declaration](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api.h#L100-L106). A null pointer or a `structSize` other than 0x20 returns `INVALID_ARGUMENT`. Otherwise it creates a context from `libHttpCtxId` and `poolSize` ([source](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api.cpp#L448-L467)). The `name` isn't kept, because nothing reads it. - **`sceNpWebApiIntCreateRequest(titleUserCtxId, apiGroup, path, method, contentParameter, internalArgs, requestId)`:** creates a request like `sceNpWebApiCreateRequest` (second commit). A null group or path, or a method past PATCH, returns `INVALID_ARGUMENT` whatever the SDK version. Then a content length without a type returns `INVALID_CONTENT_PARAMETER`, as [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api.cpp#L411-L432) checks. Its internal arguments are three pointers ([shadPS4's struct](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api.h#L108-L112)). shadPS4 [accepts them](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api_internal.cpp#L499-L503) only when all three are null, so with a field set the call throws after the user context check (third commit). - **`sceNpWebApiRegisterNotificationCallback(titleUserCtxId, callback, userArg)` and `sceNpWebApiUnregisterNotificationCallback(titleUserCtxId)`:** `INVALID_ARGUMENT` for a null callback, checked first. Then `LIB_CONTEXT_NOT_FOUND` or `USER_CONTEXT_NOT_FOUND` from the library's existing lookup, then 0, as shadPS4's [internal functions](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api_internal.cpp#L305-L346) do. shadPS4 stores the callback but never calls it. No NP notification can arrive offline, so it isn't kept here. This is the same pattern merged #8485 used for libSceNpWebApi2's `InitializeForPresence` and `IntInitialize`. The six names leave the inventory table. Three debt entries, placed among the existing ones after the table, record what isn't kept. Nothing is measured on a console. libSceNpWebApi goes from 26 to 32 of 88. The new `GuestNpWebApiInitialize.cpp` looks the six up at runtime and calls them through their declared types and the public argument structs. It's a separate test file because open #9920 and #11371 edit `GuestNpWebApi.cpp`. Its CMake block sits at the end of `CMakeLists.txt`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 (WinLibs MinGW-w64 GCC 15.2.0 UCRT r7, CMake 4.3.1, Ninja 1.13.2) and Ubuntu 24.04 on WSL2 (GCC 13.3.0, CMake 3.28.3, Ninja 1.11.1), both at 6ca3d01f3e merged into `main` 6b48aee5d2. The head, 8b44d36b83, changes only the test, to call the exports through their declared types; it passes the same way on both hosts merged into `main` 5857e2e98f. - No warnings. Every file that includes `libSceNpWebApi/include/Api.hpp` rebuilds with no warnings, and the `static_assert`s hold. - `ctest -R "^guest_np_web_api"`: 3 of 3 pass on both hosts, including the new `guest_np_web_api_initialize` (`NpWebApi initialize and notification tests passed`). Each passes 3 of 3 on `--repeat until-fail:3`. The throw for internal arguments with a field set reaches the test as `std::runtime_error` on both hosts (across the DLL boundary on Windows), and the calls after it on the same mutex succeed. - Baseline, with the test as of 6ca3d01f3e: on that `main` with only the new test file and its `CMakeLists.txt` block, the test builds and then aborts with `sceNpWebApiInitializeForPresence not implemented` on both hosts (Windows exit 0xc0000409, Linux SIGABRT). At the head the test uses the structs this PR adds to `Api.hpp`, so it no longer builds on `main`. - `tools/check_conventions.py` passes. The branch merges cleanly with `main` and with open #9920 and #11371, which also edit `libSceNpWebApi`. ### 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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes (Claude Code)
MarcZX10 commented 2026-10-30 23:02:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T23:02:46Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

IntCreateRequest currently reports success while ignoring non-null internal arguments that the cited reference requires to contain only null fields.

What I ran

Reviewed head 41fd24dcca0e46d858bf5cde102106036a8d0d44 against PR base c8a871aa5a1a0ab1afec823b81aa11265251d177. The current target main was 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827; the stack helper previewed the exact PR head cleanly against it. Environment: Debian GNU/Linux 12, x86_64, Python 3.11.2; no compiler or build was run.

python3 tools/pr_precheck.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 41fd24dcca0e46d858bf5cde102106036a8d0d44 --title 'feat(libSceNpWebApi): presence, VSH and internal initialize, internal requests and notification callbacks' --body-file /tmp/pr-13671-body.md --output-dir /tmp/anyps5-pr-precheck/13671-local --no-negative-controls
python3 tools/check_conventions.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 41fd24dcca0e46d858bf5cde102106036a8d0d44 --title 'feat(libSceNpWebApi): presence, VSH and internal initialize, internal requests and notification callbacks' --body /tmp/pr-13671-body.md
git diff --check c8a871aa5a1a0ab1afec823b81aa11265251d177...41fd24dcca0e46d858bf5cde102106036a8d0d44
python3 tools/pr_abi_audit.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 41fd24dcca0e46d858bf5cde102106036a8d0d44
python3 tools/pr_test_quality.py --root /tmp/pr-13671-exact --json core/libs/tests/GuestNpWebApiInitialize.cpp
python3 tools/pr_stack_check.py 13671 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/13671-stack
gh pr checks 13671 --repo boykopovar/AnyPS5

Results

Check Result
Precheck orchestration Its aggregate exit was 2 because the isolated checkout lacks the workspace-only ABI/test-quality helpers and local mode has no live GitHub metadata; I ran the applicable checks directly below.
Diff check Passed; no whitespace errors.
Conventions and PR template Passed on the exact PR base/head.
Export/declaration audit Passed; each checked export has one declaration and definition and the expected computed NID. This does not certify binary ABI or runtime behavior.
Test-quality heuristic Flagged possible test registration because it does not recognize the ${LIBS_INCLUDE_DIR} path form. Manual inspection confirms the CMake file adds the test executable and registers guest_np_web_api_initialize. No weak-assertion signal was reported.
Merge preview/dependencies Exact PR head merges cleanly against current main 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827; no declared dependency found.
Hosted CI All six checks were pending at refresh.
Focused C++ tests Not run locally. The author reports 3/3 focused tests on the older ceaba04c52 tree based on main 3b0523ab91, not the current PR head/base.
Unedited output from local checks
Precheck:
/tmp/anyps5-pr-precheck/13671-local/report.md
/tmp/anyps5-pr-precheck/13671-local/report.json
Conclusion: checks failed

Conventions:
All conventions checks passed.

ABI audit:
ABI audit: passed

Test-quality heuristic:
{
  "findings": [
    {
      "path": "core/libs/tests/GuestNpWebApiInitialize.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."
  ]
}

Stack report:
# PR stack check — fresh

Target: https://github.com/boykopovar/AnyPS5/pull/13671
Target branch tip: `6b48aee5d2ea9fce6155163d78f8ce8dc84f7827`
All heads unchanged: **True**
Dependency order: #13671

## Individual merge previews

- PR #13671: **clean** against current base; head `41fd24dcca0e46d858bf5cde102106036a8d0d44`; changed paths: none reported

## Dependency relationships

No declared PR dependencies were found in the target PR chain.

Hosted checks:
conventions	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41141505718/job/124356617460
eligibility	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41141505910/job/124356616738
intake	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41141505720/job/124356617074
labels	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41141505951/job/124356618075
library-portability	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41141506225/job/124356617492
report	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41141505972/job/124356616458

Findings

Blocking

sceNpWebApiIntCreateRequest discards internalArgs and creates a request for any value. The cited shadPS4 implementation checks a non-null structure's three fields and asserts that all are null; this PR's description says those arguments are not read. Under the repository rule for unknown behavior, silently accepting unsupported non-null fields as success is not established. Please validate the supported null-field case and reject or explicitly fail/record unsupported values; add a test for a non-null argument structure with at least one non-null field. The shadPS4 assertion is a reference, not console evidence, so do not assume an undocumented error code.

Non-blocking

The author-reported focused test run is on an earlier tree, not the exact reviewed head. A current-head run would make the test evidence conclusive.

Sources

Not verified

No C++ build, local test run, Windows/macOS execution, or console behavior was tested. Hosted CI was pending. The author-reported tests were not run by me and do not identify the current PR head as the tested SHA.

To get this to a good state

Please handle non-null internal arguments explicitly and add coverage for the unsupported-field case. When the code is updated, I will rerun the same checks on the new head; the focused test command should also be reported for that exact head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5719600432 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13671#pullrequestreview-5719600432). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T23:02:46Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested `IntCreateRequest` currently reports success while ignoring non-null internal arguments that the cited reference requires to contain only null fields. ## What I ran Reviewed head `41fd24dcca0e46d858bf5cde102106036a8d0d44` against PR base `c8a871aa5a1a0ab1afec823b81aa11265251d177`. The current target `main` was `6b48aee5d2ea9fce6155163d78f8ce8dc84f7827`; the stack helper previewed the exact PR head cleanly against it. Environment: Debian GNU/Linux 12, x86_64, Python 3.11.2; no compiler or build was run. ```sh python3 tools/pr_precheck.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 41fd24dcca0e46d858bf5cde102106036a8d0d44 --title 'feat(libSceNpWebApi): presence, VSH and internal initialize, internal requests and notification callbacks' --body-file /tmp/pr-13671-body.md --output-dir /tmp/anyps5-pr-precheck/13671-local --no-negative-controls python3 tools/check_conventions.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 41fd24dcca0e46d858bf5cde102106036a8d0d44 --title 'feat(libSceNpWebApi): presence, VSH and internal initialize, internal requests and notification callbacks' --body /tmp/pr-13671-body.md git diff --check c8a871aa5a1a0ab1afec823b81aa11265251d177...41fd24dcca0e46d858bf5cde102106036a8d0d44 python3 tools/pr_abi_audit.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 41fd24dcca0e46d858bf5cde102106036a8d0d44 python3 tools/pr_test_quality.py --root /tmp/pr-13671-exact --json core/libs/tests/GuestNpWebApiInitialize.cpp python3 tools/pr_stack_check.py 13671 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/13671-stack gh pr checks 13671 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Precheck orchestration | Its aggregate exit was 2 because the isolated checkout lacks the workspace-only ABI/test-quality helpers and local mode has no live GitHub metadata; I ran the applicable checks directly below. | | Diff check | Passed; no whitespace errors. | | Conventions and PR template | Passed on the exact PR base/head. | | Export/declaration audit | Passed; each checked export has one declaration and definition and the expected computed NID. This does not certify binary ABI or runtime behavior. | | Test-quality heuristic | Flagged possible test registration because it does not recognize the `${LIBS_INCLUDE_DIR}` path form. Manual inspection confirms the CMake file adds the test executable and registers `guest_np_web_api_initialize`. No weak-assertion signal was reported. | | Merge preview/dependencies | Exact PR head merges cleanly against current `main` `6b48aee5d2ea9fce6155163d78f8ce8dc84f7827`; no declared dependency found. | | Hosted CI | All six checks were pending at refresh. | | Focused C++ tests | Not run locally. The author reports 3/3 focused tests on the older `ceaba04c52` tree based on `main` `3b0523ab91`, not the current PR head/base. | <details> <summary>Unedited output from local checks</summary> ```text Precheck: /tmp/anyps5-pr-precheck/13671-local/report.md /tmp/anyps5-pr-precheck/13671-local/report.json Conclusion: checks failed Conventions: All conventions checks passed. ABI audit: ABI audit: passed Test-quality heuristic: { "findings": [ { "path": "core/libs/tests/GuestNpWebApiInitialize.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." ] } Stack report: # PR stack check — fresh Target: https://github.com/boykopovar/AnyPS5/pull/13671 Target branch tip: `6b48aee5d2ea9fce6155163d78f8ce8dc84f7827` All heads unchanged: **True** Dependency order: #13671 ## Individual merge previews - PR #13671: **clean** against current base; head `41fd24dcca0e46d858bf5cde102106036a8d0d44`; changed paths: none reported ## Dependency relationships No declared PR dependencies were found in the target PR chain. Hosted checks: conventions pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41141505718/job/124356617460 eligibility pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41141505910/job/124356616738 intake pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41141505720/job/124356617074 labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41141505951/job/124356618075 library-portability pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41141506225/job/124356617492 report pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41141505972/job/124356616458 ``` </details> ## Findings ### Blocking `sceNpWebApiIntCreateRequest` discards `internalArgs` and creates a request for any value. The cited shadPS4 implementation checks a non-null structure's three fields and asserts that all are null; this PR's description says those arguments are not read. Under the repository rule for unknown behavior, silently accepting unsupported non-null fields as success is not established. Please validate the supported null-field case and reject or explicitly fail/record unsupported values; add a test for a non-null argument structure with at least one non-null field. The shadPS4 assertion is a reference, not console evidence, so do not assume an undocumented error code. ### Non-blocking The author-reported focused test run is on an earlier tree, not the exact reviewed head. A current-head run would make the test evidence conclusive. ## Sources - [Argument handling in this PR at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/41fd24dcca0e46d858bf5cde102106036a8d0d44/core/libs/prx/libSceNpWebApi/Export.cpp#L394-L400) - [The cited reference checks its three internal fields](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api_internal.cpp#L499-L503) - [Repository rule for unknown behavior at the PR base](https://github.com/boykopovar/AnyPS5/blob/c8a871aa5a1a0ab1afec823b81aa11265251d177/AGENTS.md) ## Not verified No C++ build, local test run, Windows/macOS execution, or console behavior was tested. Hosted CI was pending. The author-reported tests were not run by me and do not identify the current PR head as the tested SHA. ## To get this to a good state Please handle non-null internal arguments explicitly and add coverage for the unsupported-field case. When the code is updated, I will rerun the same checks on the new head; the focused test command should also be reported for that exact head.
MarcZX10 commented 2026-10-30 23:19:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T23:19:09Z.

Review: APPROVED


Re-checked — new head, looks good

The updated head now rejects non-null internal request fields instead of silently accepting them and adds regression coverage for that path.

What I ran

Reviewed head 6ca3d01f3ec087e20911c8f3ff01dd9a2d8510c2 against PR base c8a871aa5a1a0ab1afec823b81aa11265251d177. Its individual merge preview was clean against current main 2a1ae91175ccae40a8b8e084573e488f5119682f. Environment: Linux x86_64, Python 3.11.2; no compiler was invoked locally.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13671
python3 tools/pr_abi_audit.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 6ca3d01f3ec087e20911c8f3ff01dd9a2d8510c2 --json
python3 tools/pr_stack_check.py 13671 --repo boykopovar/AnyPS5

Results

The exact-head diff and conventions/template checks passed; the direct ABI audit passed with no findings. The precheck aggregate could not run workspace-only helper scripts from its isolated checkout. Its test-quality heuristic flagged the C++ test as possibly unregistered because CMake names the source through ${LIBS_INCLUDE_DIR}; I verified that the executable and CTest target are registered. The individual merge preview was clean.

Hosted Windows and completed policy checks passed; Linux and specialized jobs were skipped, and a labels check was still queued at the last refresh. The author reports the focused ^guest_np_web_api suite passed 3/3 on Windows and Ubuntu WSL2, then 3/3 again on repeat, at this exact head. I did not independently run those tests.

Sources

Not verified

I did not build locally or run CTest. I did not test a PS5/title; Linux and specialized hosted jobs were skipped. The test results above are author-reported, not independently reproduced.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5719706823 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13671#pullrequestreview-5719706823). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T23:19:09Z. **Review:** APPROVED --- # Re-checked — new head, looks good The updated head now rejects non-null internal request fields instead of silently accepting them and adds regression coverage for that path. ### What I ran Reviewed head `6ca3d01f3ec087e20911c8f3ff01dd9a2d8510c2` against PR base `c8a871aa5a1a0ab1afec823b81aa11265251d177`. Its individual merge preview was clean against current `main` `2a1ae91175ccae40a8b8e084573e488f5119682f`. Environment: Linux x86_64, Python 3.11.2; no compiler was invoked locally. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13671 python3 tools/pr_abi_audit.py --base c8a871aa5a1a0ab1afec823b81aa11265251d177 --head 6ca3d01f3ec087e20911c8f3ff01dd9a2d8510c2 --json python3 tools/pr_stack_check.py 13671 --repo boykopovar/AnyPS5 ``` ### Results The exact-head diff and conventions/template checks passed; the direct ABI audit passed with no findings. The precheck aggregate could not run workspace-only helper scripts from its isolated checkout. Its test-quality heuristic flagged the C++ test as possibly unregistered because CMake names the source through `${LIBS_INCLUDE_DIR}`; I verified that the executable and CTest target are registered. The individual merge preview was clean. Hosted Windows and completed policy checks passed; Linux and specialized jobs were skipped, and a labels check was still queued at the last refresh. The author reports the focused `^guest_np_web_api` suite passed 3/3 on Windows and Ubuntu WSL2, then 3/3 again on repeat, at this exact head. I did not independently run those tests. ### Sources - [Updated request handling at this head](https://github.com/boykopovar/AnyPS5/blob/6ca3d01f3ec087e20911c8f3ff01dd9a2d8510c2/core/libs/prx/libSceNpWebApi/Export.cpp#L394-L403). - [Regression assertions at this head](https://github.com/boykopovar/AnyPS5/blob/6ca3d01f3ec087e20911c8f3ff01dd9a2d8510c2/core/libs/tests/GuestNpWebApiInitialize.cpp#L125-L132). - [Pinned shadPS4 internal-argument checks](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/np/np_web_api/np_web_api_internal.cpp#L499-L503). ### Not verified I did not build locally or run CTest. I did not test a PS5/title; Linux and specialized hosted jobs were skipped. The test results above are author-reported, not independently reproduced.
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!13671
No description provided.