feat(libSceSystemService): answer queries for streaming, VR, shell and device features AnyPS5 does not have #9586

Merged
EagleBearerYS merged 13 commits from upstream-pr/9586 into main 2026-11-02 07:57:59 +00:00
EagleBearerYS commented 2026-10-22 03:26:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T03:26:47Z.


What

This answers 25 libSceSystemService queries about features AnyPS5 doesn't have, instead of throwing. Each answer comes from what the tree already reports.

  • Suspend: sceLncUtilBlockAppSuspend/UnblockAppSuspend, and sceLncUtil/sceSystemService Enable/DisableSuspendNotification. AnyPS5 never suspends the title (GetStatus never reports background execution, and ReceiveEvent has no event), so these succeed and change nothing. An unblock with no block left returns SCE_KERNEL_ERROR_EBUSY and changes nothing, before it reads the reason, as BunnyFl measured against firmware 13.42's library. A null reason still throws NotImplemented_nid_no_patch: in a block the library reads it only for a log line whose path isn't measured, and in an unblock while a block is held it faults. The blocks are counted only to find the unblock with none left.
  • Remote Play, Share Play and broadcasting: sceShellCoreUtilGetRemotePlayStatus (with sceSystemServiceGetRemoteplayStatus), GetSharePlayStatus, GetGameLiveStreamingStatus and both IsGameLiveStreamingOnAir report no session. That matches what libSceRemoteplay (DISCONNECT), libSceSharePlay (no host or visitor) and libSceGameLiveStreaming (isOnAir false) already report.
  • Shell UI and PS VR:
    • IsShellUiFgAndGameBgCpuMode (both), IsImposeScreenOverlaid, IsScreenSaverOn (both) and IsShellUIShutdownInProgress are false.
    • GetSocialScreenStatus reports no social screen.
    • IsEyeToEyeDistanceAdjusted (both) reports 0 for the logged-in user, since libSceHmd detects no headset. For another user ID it throws NotImplemented_nid_no_patch, as sceMoveOpen does: AnyPS5's user service reports only that user (sceUserServiceGetLoginUserIdList), and what the console answers for other IDs is not measured.
  • Devices: IsBdDriveReady, IsUsbMassStorageMounted and IsExternalStorageAppMoveInProgress are false, and sceLncUtilIsPs2Emu writes false. libSceDiscId, the app-move declarations and AddLocalProcessForPs2Emu all throw. libSceUsbStorage lists host volumes only when APS5_USB_STORAGE_PASSTHROUGH is set (#11046, #11051), and IsUsbMassStorageMounted stays false even then: a known gap with no sourced answer, recorded in the debt file.

Twins and null outputs:

  • Each sceSystemService twin forwards to its sceShellCoreUtil/sceLncUtil target.
  • The null outputs follow BunnyFl's measurements of firmware 13.42's library:
    • sceShellCoreUtilGetRemotePlayStatus, GetSharePlayStatus and GetGameLiveStreamingStatus return 0x80e30003 and write nothing.
    • sceSystemServiceGetRemoteplayStatus has no null check of its own: it forwards, so it returns the same 0x80e30003.
    • sceSystemServiceIsEyeToEyeDistanceAdjusted returns SYSTEM_SERVICE_ERROR_PARAMETER before forwarding.
    • sceLncUtilIsPs2Emu returns 0x80940005.
    • sceShellCoreUtilGetSocialScreenStatus writes through the pointer and faults, and sceShellCoreUtilIsEyeToEyeDistanceAdjusted hands it to a service whose answer isn't measured, so those two still throw NotImplemented_nid_no_patch for one.

The ShellCore setters that would change these answers still throw. The debt file records the fixed answers and the throwing cases.

2bc794c94f, after oneandonlydean's review, drops the test assertions that pinned the unmeasured cases to throw. The code still throws for them, as the debt file says.

Since then:

  1. 2e5b93fd5f merges main 4bc9e779aa and takes jotitadev's fix for #10706's one-declaration rule: the test drops its 25 local extern "C" declarations and includes the library's header (Co-authored-by: jotitadev).
  2. 2fd4c7024f corrects the debt entry for IsUsbMassStorageMounted under libSceUsbStorage passthrough.
  3. 2831b2367d uses #10801's SHELL_CORE_UTIL_ERROR_INVALID_ARGUMENT and LNC_UTIL_ERROR_INVALID_ARGUMENT for the null outputs, in place of this PR's duplicates with the same values.
  4. 20078240fb includes the umbrella header prx/libSceSystemService/libSceSystemService.hpp, as oneandonlydean and MarcZX10 asked.

Related: #9089 (merged; sceSystemServiceIsBgmPlaying/sceShellCoreUtilIsBgmPlaying) and #8354 (the running title's app ID) answer neighbouring libSceSystemService queries. They touch none of these 25 functions.

Overlap: checked with git merge-tree on 239de166eb against every open PR touching these files. The ones that merge cleanly with main merge cleanly with this PR too. Three conflict with main themselves, and I compared each with this PR and with main alone:

  • #8651 (nikowolf123) and #7201 (marion909) have as many conflicts in each shared file either way.
  • #6044 (TaymKal) moves the library tests to add_library_test. This PR adds one conflict there, in libSceSystemService/CMakeLists.txt, where its four guest_system_service_status_* registrations sit next to main's. Neither waits: whichever merges second registers them in its form, and this PR takes that rebase if it's second.

Tested

  • GitHub's Linux and Windows runners (run): the four guest_system_service_status_* tests fail 2 of 2 runs on both runners with main's stubs, while guest_system_service passes there; with this PR all five pass ×5 on both. The libkernel suites pass on both. libc's passes on Windows; on Linux it fails precise_wait, a timing test that fails in that run with main's code too.
  • The review commit, f51064dbee (run): with the previous head's code, the suspend and shell tests fail on both runners, as they now expect NotImplemented_nid_no_patch. With the commit the four guest_system_service_status_* tests pass 10 runs in a row on both, and the libc and libkernel suites pass on both (115 and 197 on Linux, 142 and 207 on Windows).
  • After the merge with main at d6eafa54d0 (239de166eb; run): PendingExports.cpp conflicted where #9089's merged stub deletions sit next to this PR's, and the merge keeps both, so each of the 25 functions is defined once, in Export.cpp. The PR's own diff is unchanged. With main's stubs the four guest_system_service_status_* tests fail on both runners; with the merge they and guest_system_service pass 10 runs in a row on both. The libkernel suites pass on both (197 on Linux, 207 on Windows), and libc's passes on Windows (143). On Linux libc fails only precise_wait, which fails in that run with main's code too.
  • Linux (Ubuntu 24.04, gcc, Release):
    • guest_system_service_status_{suspend,sessions,shell,devices} hold 32 cases. Each commit's cases fail against its parent's code, and the PR passes 10 repeats.
    • The six null-output cases also fail against a version that returned SYSTEM_SERVICE_ERROR_PARAMETER for them.
    • The full ctest run has only that machine's IPv6 baseline failures.
  • 7f26a225dd, main 8b3e39832a merged in (clean; the PR's own diff is unchanged), on GitHub's runners (run): guest_system_service_status_suspend, _sessions, _shell and _devices pass 10 of 10 on Linux and Windows, and fail with main's implementation on both. libkernel's suite passes on both and libc's on Windows. On Linux libc's one failure, precise_wait, failed with main's implementation too.
  • d64a74d8e9, BunnyFl's measured cases (comment): the null outputs above and the unblock with no block left answer as measured instead of throwing. Red, the commit's tests on 7f26a225dd's code (run): on both runners the suspend, sessions and devices tests fail on exactly the seven changed cases, while shell and guest_system_service pass. Green (run): all five pass 10 runs in a row on Linux and on Windows, none skipped, and the libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • check_conventions.py passes, with no comment lines added.
  • Not tested with a title.
  • 2bc794c94f, after oneandonlydean's review (run): GuestSystemServiceStatus.cpp no longer asserts that the unmeasured cases throw: sceLncUtilBlockAppSuspend(nullptr), sceLncUtilUnblockAppSuspend(nullptr) while a block is held, the null outputs of sceShellCoreUtilGetSocialScreenStatus and sceShellCoreUtilIsEyeToEyeDistanceAdjusted, and the other user IDs in ReportsNotAdjusted. The answered cases and the measured null-output error codes stay. guest_system_service and the four guest_system_service_status_* tests pass 10 runs in a row. Linux: 5 run, 5 pass, 0 skip, 0 fail. Windows: 5 run, 5 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (116 and 198) and on Windows (143 and 207). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 20078240fb: the merge of main 4bc9e779aa and the three follow-ups (run 41119590247).
    • Red for the merge's header fix: the merge without jotitadev's change fails public_headers with exactly 25 errors, the test's duplicate declarations, and nothing else. Every public_headers_compile_* batch passes.
    • The two follow-ups, each on its own, on Linux (lavapipe): public_headers and its compile batches pass (65 of 65), and the 12 guest_system_service* tests pass 10 of 10.
    • ×10 on GitHub's runners at the head: public_headers, every public_headers_compile_* batch and the guest_system_service* tests.
      • Linux: 77 run, 77 pass, 0 skip, 0 fail.
      • Windows: 78 run, 78 pass, 0 skip, 0 fail.
      • Suites: libc and libkernel pass on Linux (199 and 307) and on Windows (226 and 329). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • @jotitadev's re-check of this head (review): Ubuntu 26.04, i7-8700, GCC 15.2, Release, merged onto main 06f47c0e81.
      • The build is clean, and public_headers with its 64 compile batches passes 65 of 65 in 3 of 3 runs, with the audit at 0 errors.
      • The 13 guest_system_service* tests pass 3 of 3.
      • Control: the same merge with GuestSystemServiceStatus.cpp as at 2bc794c94f brings back exactly the 25 duplicate-declaration errors.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4961630829 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T03:26:47Z. --- ### What This answers 25 libSceSystemService queries about features AnyPS5 doesn't have, instead of throwing. Each answer comes from what the tree already reports. - **Suspend:** `sceLncUtilBlockAppSuspend`/`UnblockAppSuspend`, and `sceLncUtil`/`sceSystemService` `Enable`/`DisableSuspendNotification`. AnyPS5 never suspends the title (`GetStatus` never reports background execution, and `ReceiveEvent` has no event), so these succeed and change nothing. An unblock with no block left returns `SCE_KERNEL_ERROR_EBUSY` and changes nothing, before it reads the reason, as [BunnyFl measured](https://github.com/boykopovar/AnyPS5/pull/9586#issuecomment-6362292920) against firmware 13.42's library. A null reason still throws `NotImplemented_nid_no_patch`: in a block the library reads it only for a log line whose path isn't measured, and in an unblock while a block is held it faults. The blocks are counted only to find the unblock with none left. - **Remote Play, Share Play and broadcasting:** `sceShellCoreUtilGetRemotePlayStatus` (with `sceSystemServiceGetRemoteplayStatus`), `GetSharePlayStatus`, `GetGameLiveStreamingStatus` and both `IsGameLiveStreamingOnAir` report no session. That matches what libSceRemoteplay (`DISCONNECT`), libSceSharePlay (no host or visitor) and libSceGameLiveStreaming (`isOnAir` false) already report. - **Shell UI and PS VR:** - `IsShellUiFgAndGameBgCpuMode` (both), `IsImposeScreenOverlaid`, `IsScreenSaverOn` (both) and `IsShellUIShutdownInProgress` are false. - `GetSocialScreenStatus` reports no social screen. - `IsEyeToEyeDistanceAdjusted` (both) reports 0 for the logged-in user, since libSceHmd detects no headset. For another user ID it throws `NotImplemented_nid_no_patch`, as `sceMoveOpen` does: AnyPS5's user service reports only that user (`sceUserServiceGetLoginUserIdList`), and what the console answers for other IDs is not measured. - **Devices:** `IsBdDriveReady`, `IsUsbMassStorageMounted` and `IsExternalStorageAppMoveInProgress` are false, and `sceLncUtilIsPs2Emu` writes false. libSceDiscId, the app-move declarations and `AddLocalProcessForPs2Emu` all throw. libSceUsbStorage lists host volumes only when `APS5_USB_STORAGE_PASSTHROUGH` is set (#11046, #11051), and `IsUsbMassStorageMounted` stays false even then: a known gap with no sourced answer, recorded in the debt file. **Twins and null outputs:** - Each `sceSystemService` twin forwards to its `sceShellCoreUtil`/`sceLncUtil` target. - The null outputs follow [BunnyFl's measurements](https://github.com/boykopovar/AnyPS5/pull/9586#issuecomment-6362292920) of firmware 13.42's library: - `sceShellCoreUtilGetRemotePlayStatus`, `GetSharePlayStatus` and `GetGameLiveStreamingStatus` return 0x80e30003 and write nothing. - `sceSystemServiceGetRemoteplayStatus` has no null check of its own: it forwards, so it returns the same 0x80e30003. - `sceSystemServiceIsEyeToEyeDistanceAdjusted` returns `SYSTEM_SERVICE_ERROR_PARAMETER` before forwarding. - `sceLncUtilIsPs2Emu` returns 0x80940005. - `sceShellCoreUtilGetSocialScreenStatus` writes through the pointer and faults, and `sceShellCoreUtilIsEyeToEyeDistanceAdjusted` hands it to a service whose answer isn't measured, so those two still throw `NotImplemented_nid_no_patch` for one. The ShellCore setters that would change these answers still throw. The debt file records the fixed answers and the throwing cases. 2bc794c94f, after oneandonlydean's review, drops the test assertions that pinned the unmeasured cases to throw. The code still throws for them, as the debt file says. **Since then:** 1. `2e5b93fd5f` merges `main` 4bc9e779aa and takes [jotitadev's fix](https://github.com/boykopovar/AnyPS5/pull/9586#pullrequestreview-5714726386) for #10706's one-declaration rule: the test drops its 25 local `extern "C"` declarations and includes the library's header (`Co-authored-by: jotitadev`). 2. `2fd4c7024f` corrects the debt entry for `IsUsbMassStorageMounted` under libSceUsbStorage passthrough. 3. `2831b2367d` uses #10801's `SHELL_CORE_UTIL_ERROR_INVALID_ARGUMENT` and `LNC_UTIL_ERROR_INVALID_ARGUMENT` for the null outputs, in place of this PR's duplicates with the same values. 4. `20078240fb` includes the umbrella header `prx/libSceSystemService/libSceSystemService.hpp`, as oneandonlydean and MarcZX10 asked. Related: #9089 (merged; `sceSystemServiceIsBgmPlaying`/`sceShellCoreUtilIsBgmPlaying`) and #8354 (the running title's app ID) answer neighbouring libSceSystemService queries. They touch none of these 25 functions. **Overlap:** checked with `git merge-tree` on 239de166eb against every open PR touching these files. The ones that merge cleanly with `main` merge cleanly with this PR too. Three conflict with `main` themselves, and I compared each with this PR and with `main` alone: - #8651 (nikowolf123) and #7201 (marion909) have as many conflicts in each shared file either way. - #6044 (TaymKal) moves the library tests to `add_library_test`. This PR adds one conflict there, in `libSceSystemService/CMakeLists.txt`, where its four `guest_system_service_status_*` registrations sit next to `main`'s. Neither waits: whichever merges second registers them in its form, and this PR takes that rebase if it's second. ### Tested - **GitHub's Linux and Windows runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39714370885)): the four `guest_system_service_status_*` tests fail 2 of 2 runs on both runners with `main`'s stubs, while `guest_system_service` passes there; with this PR all five pass ×5 on both. The libkernel suites pass on both. libc's passes on Windows; on Linux it fails `precise_wait`, a timing test that fails in that run with `main`'s code too. - **The review commit, f51064dbee** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39719498940)): with the previous head's code, the `suspend` and `shell` tests fail on both runners, as they now expect `NotImplemented_nid_no_patch`. With the commit the four `guest_system_service_status_*` tests pass 10 runs in a row on both, and the libc and libkernel suites pass on both (115 and 197 on Linux, 142 and 207 on Windows). - **After the merge with `main` at d6eafa54d0** (239de166eb; [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39737728888)): `PendingExports.cpp` conflicted where #9089's merged stub deletions sit next to this PR's, and the merge keeps both, so each of the 25 functions is defined once, in `Export.cpp`. The PR's own diff is unchanged. With `main`'s stubs the four `guest_system_service_status_*` tests fail on both runners; with the merge they and `guest_system_service` pass 10 runs in a row on both. The libkernel suites pass on both (197 on Linux, 207 on Windows), and libc's passes on Windows (143). On Linux libc fails only `precise_wait`, which fails in that run with `main`'s code too. - **Linux (Ubuntu 24.04, gcc, Release):** - `guest_system_service_status_{suspend,sessions,shell,devices}` hold 32 cases. Each commit's cases fail against its parent's code, and the PR passes 10 repeats. - The six null-output cases also fail against a version that returned `SYSTEM_SERVICE_ERROR_PARAMETER` for them. - The full ctest run has only that machine's IPv6 baseline failures. - **7f26a225dd, `main` 8b3e39832a merged in** (clean; the PR's own diff is unchanged), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39788040462)): `guest_system_service_status_suspend`, `_sessions`, `_shell` and `_devices` pass 10 of 10 on Linux and Windows, and fail with `main`'s implementation on both. libkernel's suite passes on both and libc's on Windows. On Linux libc's one failure, `precise_wait`, failed with `main`'s implementation too. - **d64a74d8e9, BunnyFl's measured cases** ([comment](https://github.com/boykopovar/AnyPS5/pull/9586#issuecomment-6362292920)): the null outputs above and the unblock with no block left answer as measured instead of throwing. Red, the commit's tests on 7f26a225dd's code ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39941602432)): on both runners the `suspend`, `sessions` and `devices` tests fail on exactly the seven changed cases, while `shell` and `guest_system_service` pass. Green ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39941665624)): all five pass 10 runs in a row on Linux and on Windows, none skipped, and the libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - `check_conventions.py` passes, with no comment lines added. - Not tested with a title. - **2bc794c94f, after oneandonlydean's review** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40626987065)): `GuestSystemServiceStatus.cpp` no longer asserts that the unmeasured cases throw: `sceLncUtilBlockAppSuspend(nullptr)`, `sceLncUtilUnblockAppSuspend(nullptr)` while a block is held, the null outputs of `sceShellCoreUtilGetSocialScreenStatus` and `sceShellCoreUtilIsEyeToEyeDistanceAdjusted`, and the other user IDs in `ReportsNotAdjusted`. The answered cases and the measured null-output error codes stay. `guest_system_service` and the four `guest_system_service_status_*` tests pass 10 runs in a row. Linux: 5 run, 5 pass, 0 skip, 0 fail. Windows: 5 run, 5 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (116 and 198) and on Windows (143 and 207). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **20078240fb: the merge of `main` 4bc9e779aa and the three follow-ups** ([run 41119590247](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41119590247)). - **Red for the merge's header fix:** the merge without jotitadev's change fails `public_headers` with exactly 25 errors, the test's duplicate declarations, and nothing else. Every `public_headers_compile_*` batch passes. - **The two follow-ups,** each on its own, on Linux (lavapipe): `public_headers` and its compile batches pass (65 of 65), and the 12 `guest_system_service*` tests pass 10 of 10. - **×10 on GitHub's runners at the head:** `public_headers`, every `public_headers_compile_*` batch and the `guest_system_service*` tests. - Linux: 77 run, 77 pass, 0 skip, 0 fail. - Windows: 78 run, 78 pass, 0 skip, 0 fail. - Suites: libc and libkernel pass on Linux (199 and 307) and on Windows (226 and 329). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **@jotitadev's re-check of this head** ([review](https://github.com/boykopovar/AnyPS5/pull/9586#pullrequestreview-5719693755)): Ubuntu 26.04, i7-8700, GCC 15.2, Release, merged onto `main` 06f47c0e81. - The build is clean, and `public_headers` with its 64 compile batches passes 65 of 65 in 3 of 3 runs, with the audit at 0 errors. - The 13 `guest_system_service*` tests pass 3 of 3. - **Control:** the same merge with `GuestSystemServiceStatus.cpp` as at 2bc794c94f brings back exactly the 25 duplicate-declaration errors. ### 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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-22 03:44:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T03:44:26Z.

Review: CHANGES_REQUESTED


The query implementations mostly preserve the repo's existing NotImplemented_nid_no_patch behavior when a shell-side value cannot be answered. The reported baseline comparisons are useful, and the new status tests cover repeated suspend notifications, inactive-session results, twins, null outputs, and device cases.

I found two places where the new answers go beyond the available evidence:

  1. sceLncUtilBlockAppSuspend and sceLncUtilUnblockAppSuspend reject an unbalanced unblock and maintain a process-global count, but the PR reports no console measurement for those error cases or says what the count affects. The null reason also raises invalid_argument despite no console evidence. These are invented failure semantics for a newly implemented export. Keep unsupported/unknown input paths throwing through the repository's standard NotImplemented_nid_no_patch mechanism, or provide evidence for the specific error behavior. The no-suspend environment supports the no-op success path, but not these guessed validation rules.
  2. sceShellCoreUtilIsEyeToEyeDistanceAdjusted throws for every user except USER_SERVICE_INITIAL_USER_ID. The absence of a headset supports 0 for the logged-in user's adjustment state, but does not establish that other IDs are invalid. Please return the same known hardware state for valid user IDs, or keep unknown ID behavior unimplemented with evidence for the accepted range; the current test encodes the unsupported assumption.

The checklist is complete and the issue/PR links are not being misrepresented. Eligibility, conventions, intake, labels and report checks pass; product builds/tests are skipped. The Linux/Windows comparisons in the description are author-reported; I did not run tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609010066 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586#pullrequestreview-5609010066). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T03:44:26Z. **Review:** CHANGES_REQUESTED --- The query implementations mostly preserve the repo's existing `NotImplemented_nid_no_patch` behavior when a shell-side value cannot be answered. The reported baseline comparisons are useful, and the new status tests cover repeated suspend notifications, inactive-session results, twins, null outputs, and device cases. I found two places where the new answers go beyond the available evidence: 1. `sceLncUtilBlockAppSuspend` and `sceLncUtilUnblockAppSuspend` reject an unbalanced unblock and maintain a process-global count, but the PR reports no console measurement for those error cases or says what the count affects. The null reason also raises `invalid_argument` despite no console evidence. These are invented failure semantics for a newly implemented export. Keep unsupported/unknown input paths throwing through the repository's standard `NotImplemented_nid_no_patch` mechanism, or provide evidence for the specific error behavior. The no-suspend environment supports the no-op success path, but not these guessed validation rules. 2. `sceShellCoreUtilIsEyeToEyeDistanceAdjusted` throws for every user except `USER_SERVICE_INITIAL_USER_ID`. The absence of a headset supports `0` for the logged-in user's adjustment state, but does not establish that other IDs are invalid. Please return the same known hardware state for valid user IDs, or keep unknown ID behavior unimplemented with evidence for the accepted range; the current test encodes the unsupported assumption. The checklist is complete and the issue/PR links are not being misrepresented. Eligibility, conventions, intake, labels and report checks pass; product builds/tests are skipped. The Linux/Windows comparisons in the description are author-reported; I did not run tests locally.
EagleBearerYS commented 2026-10-22 04:23:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T04:23:25Z.


Thanks, @MarcZX10, agreed on both. In f51064dbee:

  1. sceLncUtilBlockAppSuspend and sceLncUtilUnblockAppSuspend keep only the no-op success. A null reason, and an unblock with no block left, now go through NotImplemented_nid_no_patch instead of throwing invalid_argument and logic_error. The count stays only to find that unblock; it changes nothing else.
  2. sceShellCoreUtilIsEyeToEyeDistanceAdjusted, and the sceSystemService form that forwards to it, answer 0 for USER_SERVICE_INITIAL_USER_ID, the one user AnyPS5's user service reports in sceUserServiceGetLoginUserIdList. Any other ID now throws NotImplemented_nid_no_patch, as sceMoveOpen does, instead of being treated as invalid.

The tests expect those throws, and the debt entries say the console's answers to these cases aren't measured. On GitHub's runners (run) the four guest_system_service_status_* tests pass 10 runs in a row on Linux and Windows; with the previous head's code, suspend and shell fail.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332647040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586#issuecomment-6332647040). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T04:23:25Z. --- Thanks, @MarcZX10, agreed on both. In f51064dbee: 1. `sceLncUtilBlockAppSuspend` and `sceLncUtilUnblockAppSuspend` keep only the no-op success. A null reason, and an unblock with no block left, now go through `NotImplemented_nid_no_patch` instead of throwing `invalid_argument` and `logic_error`. The count stays only to find that unblock; it changes nothing else. 2. `sceShellCoreUtilIsEyeToEyeDistanceAdjusted`, and the `sceSystemService` form that forwards to it, answer 0 for `USER_SERVICE_INITIAL_USER_ID`, the one user AnyPS5's user service reports in `sceUserServiceGetLoginUserIdList`. Any other ID now throws `NotImplemented_nid_no_patch`, as `sceMoveOpen` does, instead of being treated as invalid. The tests expect those throws, and the debt entries say the console's answers to these cases aren't measured. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39719498940)) the four `guest_system_service_status_*` tests pass 10 runs in a row on Linux and Windows; with the previous head's code, `suspend` and `shell` fail.
MarcZX10 commented 2026-10-22 10:18:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T10:18:12Z.

Review: DISMISSED


The two evidence issues from my earlier review are addressed in f51064dbee: null/unbalanced suspend calls now use NotImplemented_nid_no_patch, and the eye-distance query returns the known value only for the one user ID this tree reports while leaving other IDs unimplemented. The focused tests include these cases. I found no remaining implementation issue in the code reviewed. The PR's merge with main at d6eafa54d was followed by six more commits on current upstream/main. Checks on exact head 239de166eb74be850623aba3cb6432f0198bbf9b: - git diff --check upstream/main...HEAD: passed. - python tools/check_conventions.py --base upstream/main --head HEAD: passed. - Built guest_system_service_status_tests with GCC 12.2 on Linux: passed. - Ran guest_system_service_status_{suspend,sessions,shell,devices}: all four aborted before reaching their tests in the project's HostCpu static initialization because this Xeon E5-1620 v2 lacks required PS5 instruction-set features, including AVX2. These local runs are blocked by the host CPU, not assertion failures. - Hosted eligibility, conventions, labels and report checks pass; Linux/Windows product jobs are skipped. The author's CI red/green and repeat-run results are useful, but are not local runs by me. The previously raised behavior-evidence concerns are resolved.

I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5612653705 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586#pullrequestreview-5612653705). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T10:18:12Z. **Review:** DISMISSED --- The two evidence issues from my earlier review are addressed in `f51064dbee`: null/unbalanced suspend calls now use `NotImplemented_nid_no_patch`, and the eye-distance query returns the known value only for the one user ID this tree reports while leaving other IDs unimplemented. The focused tests include these cases. I found no remaining implementation issue in the code reviewed. The PR's merge with main at `d6eafa54d` was followed by six more commits on current `upstream/main`. Checks on exact head `239de166eb74be850623aba3cb6432f0198bbf9b`: - `git diff --check upstream/main...HEAD`: passed. - `python tools/check_conventions.py --base upstream/main --head HEAD`: passed. - Built `guest_system_service_status_tests` with GCC 12.2 on Linux: passed. - Ran `guest_system_service_status_{suspend,sessions,shell,devices}`: all four aborted before reaching their tests in the project's `HostCpu` static initialization because this Xeon E5-1620 v2 lacks required PS5 instruction-set features, including AVX2. These local runs are blocked by the host CPU, not assertion failures. - Hosted eligibility, conventions, labels and report checks pass; Linux/Windows product jobs are skipped. The author's CI red/green and repeat-run results are useful, but are not local runs by me. The previously raised behavior-evidence concerns are resolved. I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
EagleBearerYS commented 2026-10-22 14:02:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T14:02:55Z.


Thanks, @MarcZX10. The branch now has main at 8b3e39832a merged in (7f26a225dd), with the PR's own diff unchanged. On GitHub's runners (run), guest_system_service_status_{suspend,sessions,shell,devices} pass 10 of 10 on Linux and Windows, and fail with main's implementation on both. It's in Tested.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6342683386 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586#issuecomment-6342683386). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T14:02:55Z. --- Thanks, @MarcZX10. The branch now has `main` at 8b3e39832a merged in (7f26a225dd), with the PR's own diff unchanged. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39788040462)), `guest_system_service_status_{suspend,sessions,shell,devices}` pass 10 of 10 on Linux and Windows, and fail with `main`'s implementation on both. It's in Tested.
jotitadev commented 2026-10-30 15:38:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T15:38:36Z.

Review: COMMENTED


Merging this head into current main breaks public_headers.

Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. Head 2bc794c94f merged (--no-commit) onto main ed1e0ed08f; the merge is clean.

The branch's base 8b3e39832a predates #10706, which requires each export to be declared once, in its library's public header. GuestSystemServiceStatus.cpp declares 25 exports in its own extern "C" lines that prx/libSceSystemService/include/SystemService.hpp already declares, so the audit fails 25 times:

sceLncUtilBlockAppSuspend: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:271, core/libs/tests/GuestSystemServiceStatus.cpp:12

Including the header instead of the 25 lines fixes it:

 #include "prx/libSceSystemService/SystemService.hpp"
+#include "prx/libSceSystemService/include/SystemService.hpp"
 #include "prx/libkernel/KernelErrors.hpp"
...
-extern "C" int APS5_VABI sceLncUtilBlockAppSuspend(const char* reason);
-...
-extern "C" int APS5_VABI sceLncUtilIsPs2Emu(bool* emulated);

With that change, on the same merge:

  • The audit reports 0 errors; public_headers and the 64 public_headers_compile_* tests pass (65/65).
  • The test builds, and the 11 guest_system_service* tests (including the four guest_system_service_status_*) pass 3/3.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5714726386 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586#pullrequestreview-5714726386). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-30T15:38:36Z. **Review:** COMMENTED --- Merging this head into current `main` breaks `public_headers`. Ubuntu 26.04, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. Head `2bc794c94f` merged (`--no-commit`) onto `main` `ed1e0ed08f`; the merge is clean. The branch's base `8b3e39832a` predates #10706, which requires each export to be declared once, in its library's public header. `GuestSystemServiceStatus.cpp` declares 25 exports in its own `extern "C"` lines that `prx/libSceSystemService/include/SystemService.hpp` already declares, so the audit fails 25 times: ``` sceLncUtilBlockAppSuspend: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:271, core/libs/tests/GuestSystemServiceStatus.cpp:12 ``` Including the header instead of the 25 lines fixes it: ```diff #include "prx/libSceSystemService/SystemService.hpp" +#include "prx/libSceSystemService/include/SystemService.hpp" #include "prx/libkernel/KernelErrors.hpp" ... -extern "C" int APS5_VABI sceLncUtilBlockAppSuspend(const char* reason); -... -extern "C" int APS5_VABI sceLncUtilIsPs2Emu(bool* emulated); ``` With that change, on the same merge: - The audit reports 0 errors; `public_headers` and the 64 `public_headers_compile_*` tests pass (65/65). - The test builds, and the 11 `guest_system_service*` tests (including the four `guest_system_service_status_*`) pass 3/3. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-30 19:50:19 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-checked — changes requested

The exact PR head merges cleanly onto current main, but the merged-tree public-header audit fails on 25 duplicate declarations in the test source.

What I ran

Reviewed head 2bc794c94ff4e7f4c50b410ae0ea22892c6df30c against PR base 8b3e39832af85f404c6195418d11b3e1ebd1924d; merged it without committing onto current main 29bd76030463fb20b404f6c6e57db94c35042612. Environment: Linux x86-64, Python 3.11.2, GCC 12.2.0. No build or compile was run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9586
git fetch upstream main
worktree=$(mktemp -d /tmp/anyps5-9586-latest-main.XXXXXX)
git worktree add --detach "$worktree" 2bc794c94ff4e7f4c50b410ae0ea22892c6df30c
git -C "$worktree" merge --no-commit --no-ff 29bd76030463fb20b404f6c6e57db94c35042612
python3 "$worktree/core/libs/tests/test_public_headers.py" --audit-only
git -C "$worktree" merge --abort
git worktree remove --force "$worktree"

Results

Check Result
Patch whitespace and conventions Passed on the PR head/base.
Stack / mergeability preview Clean merge onto current main.
Public-header audit on merged preview Failed: 25 exports have duplicate declarations between SystemService.hpp and GuestSystemServiceStatus.cpp.
Hosted CI Windows, conventions, eligibility, labels, and report passed; Linux and specialized build jobs were skipped.
Build / CTest Not run locally.
Unedited output from the merged-tree public-header audit
Traceback (most recent call last):
  File "/tmp/anyps5-9586-latest-main.17z3Ou/core/libs/tests/test_public_headers.py", line 237, in <module>
    main()
  File "/tmp/anyps5-9586-latest-main.17z3Ou/core/libs/tests/test_public_headers.py", line 226, in main
    umbrellas, headers, count = audit()
                                ^^^^^^^
  File "/tmp/anyps5-9586-latest-main.17z3Ou/core/libs/tests/test_public_headers.py", line 152, in audit
    raise RuntimeError("\n".join(errors))
RuntimeError: sceShellCoreUtilGetGameLiveStreamingStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:415, core/libs/tests/GuestSystemServiceStatus.cpp:21
sceSystemServiceIsEyeToEyeDistanceAdjusted: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:641, core/libs/tests/GuestSystemServiceStatus.cpp:32
sceLncUtilDisableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:277, core/libs/tests/GuestSystemServiceStatus.cpp:15
sceSystemStateMgrIsBdDriveReady: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:712, core/libs/tests/GuestSystemServiceStatus.cpp:33
sceSystemServiceIsScreenSaverOn: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:643, core/libs/tests/GuestSystemServiceStatus.cpp:28
sceShellCoreUtilIsScreenSaverOn: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:475, core/libs/tests/GuestSystemServiceStatus.cpp:27
sceLncUtilIsPs2Emu: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:313, core/libs/tests/GuestSystemServiceStatus.cpp:36
sceShellCoreUtilGetRemotePlayStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:439, core/libs/tests/GuestSystemServiceStatus.cpp:18
sceSystemStateMgrIsShellUIShutdownInProgress: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:714, core/libs/tests/GuestSystemServiceStatus.cpp:29
sceSystemServiceIsGameLiveStreamingOnAir: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:642, core/libs/tests/GuestSystemServiceStatus.cpp:23
sceSystemServiceDisableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:603, core/libs/tests/GuestSystemServiceStatus.cpp:17
sceLncUtilIsShellUiFgAndGameBgCpuMode: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:314, core/libs/tests/GuestSystemServiceStatus.cpp:24
sceSystemServiceGetRemoteplayStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:630, core/libs/tests/GuestSystemServiceStatus.cpp:19
sceShellCoreUtilIsEyeToEyeDistanceAdjusted: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:465, core/libs/tests/GuestSystemServiceStatus.cpp:31
sceShellCoreUtilIsImposeScreenOverlaid: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:468, core/libs/tests/GuestSystemServiceStatus.cpp:26
sceLncUtilEnableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:278, core/libs/tests/GuestSystemServiceStatus.cpp:14
sceLncUtilBlockAppSuspend: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:271, core/libs/tests/GuestSystemServiceStatus.cpp:12
sceShellCoreUtilGetSharePlayStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:441, core/libs/tests/GuestSystemServiceStatus.cpp:20
sceLncUtilUnblockAppSuspend: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:344, core/libs/tests/GuestSystemServiceStatus.cpp:13
sceShellCoreUtilIsGameLiveStreamingOnAir: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:466, core/libs/tests/GuestSystemServiceStatus.cpp:22
sceSystemServiceIsShellUiFgAndGameBgCpuMode: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:644, core/libs/tests/GuestSystemServiceStatus.cpp:25
sceShellCoreUtilIsUsbMassStorageMounted: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:480, core/libs/tests/GuestSystemServiceStatus.cpp:34
sceSystemServiceEnableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:607, core/libs/tests/GuestSystemServiceStatus.cpp:16
sceShellCoreUtilIsExternalStorageAppMoveInProgress: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:464, core/libs/tests/GuestSystemServiceStatus.cpp:35
sceShellCoreUtilGetSocialScreenStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:442, core/libs/tests/GuestSystemServiceStatus.cpp:30

Findings

Blocking

  • Duplicate public declarations fail the current-base audit. GuestSystemServiceStatus.cpp includes SystemService.hpp and then declares the same exported functions locally. Those declarations already exist in current main's core/libs/prx/libSceSystemService/include/SystemService.hpp, so this branch passes on its older base but fails after a clean merge with main. Remove the 25 test-local declarations and include the public umbrella header prx/libSceSystemService/libSceSystemService.hpp so the test uses the library declarations.

Non-blocking

None identified in this re-check.

Sources

Not verified

No C++ build, CTest run, or runtime behavior was tested. The public-header audit was run on the clean merge preview, not on a rebuilt binary.

To get this to a good state

Remove the duplicated local declarations, use the public library umbrella header, then rerun the header audit on the updated head. I’ll repeat this merged-tree audit and the same relevant checks after the update.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5717897367 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586#pullrequestreview-5717897367). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T19:50:19Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested The exact PR head merges cleanly onto current `main`, but the merged-tree public-header audit fails on 25 duplicate declarations in the test source. ## What I ran Reviewed head `2bc794c94ff4e7f4c50b410ae0ea22892c6df30c` against PR base `8b3e39832af85f404c6195418d11b3e1ebd1924d`; merged it without committing onto current `main` `29bd76030463fb20b404f6c6e57db94c35042612`. Environment: Linux x86-64, Python 3.11.2, GCC 12.2.0. No build or compile was run. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9586 git fetch upstream main worktree=$(mktemp -d /tmp/anyps5-9586-latest-main.XXXXXX) git worktree add --detach "$worktree" 2bc794c94ff4e7f4c50b410ae0ea22892c6df30c git -C "$worktree" merge --no-commit --no-ff 29bd76030463fb20b404f6c6e57db94c35042612 python3 "$worktree/core/libs/tests/test_public_headers.py" --audit-only git -C "$worktree" merge --abort git worktree remove --force "$worktree" ``` ## Results | Check | Result | |---|---| | Patch whitespace and conventions | Passed on the PR head/base. | | Stack / mergeability preview | Clean merge onto current `main`. | | Public-header audit on merged preview | Failed: 25 exports have duplicate declarations between `SystemService.hpp` and `GuestSystemServiceStatus.cpp`. | | Hosted CI | Windows, conventions, eligibility, labels, and report passed; Linux and specialized build jobs were skipped. | | Build / CTest | Not run locally. | <details> <summary>Unedited output from the merged-tree public-header audit</summary> ```text Traceback (most recent call last): File "/tmp/anyps5-9586-latest-main.17z3Ou/core/libs/tests/test_public_headers.py", line 237, in <module> main() File "/tmp/anyps5-9586-latest-main.17z3Ou/core/libs/tests/test_public_headers.py", line 226, in main umbrellas, headers, count = audit() ^^^^^^^ File "/tmp/anyps5-9586-latest-main.17z3Ou/core/libs/tests/test_public_headers.py", line 152, in audit raise RuntimeError("\n".join(errors)) RuntimeError: sceShellCoreUtilGetGameLiveStreamingStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:415, core/libs/tests/GuestSystemServiceStatus.cpp:21 sceSystemServiceIsEyeToEyeDistanceAdjusted: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:641, core/libs/tests/GuestSystemServiceStatus.cpp:32 sceLncUtilDisableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:277, core/libs/tests/GuestSystemServiceStatus.cpp:15 sceSystemStateMgrIsBdDriveReady: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:712, core/libs/tests/GuestSystemServiceStatus.cpp:33 sceSystemServiceIsScreenSaverOn: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:643, core/libs/tests/GuestSystemServiceStatus.cpp:28 sceShellCoreUtilIsScreenSaverOn: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:475, core/libs/tests/GuestSystemServiceStatus.cpp:27 sceLncUtilIsPs2Emu: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:313, core/libs/tests/GuestSystemServiceStatus.cpp:36 sceShellCoreUtilGetRemotePlayStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:439, core/libs/tests/GuestSystemServiceStatus.cpp:18 sceSystemStateMgrIsShellUIShutdownInProgress: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:714, core/libs/tests/GuestSystemServiceStatus.cpp:29 sceSystemServiceIsGameLiveStreamingOnAir: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:642, core/libs/tests/GuestSystemServiceStatus.cpp:23 sceSystemServiceDisableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:603, core/libs/tests/GuestSystemServiceStatus.cpp:17 sceLncUtilIsShellUiFgAndGameBgCpuMode: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:314, core/libs/tests/GuestSystemServiceStatus.cpp:24 sceSystemServiceGetRemoteplayStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:630, core/libs/tests/GuestSystemServiceStatus.cpp:19 sceShellCoreUtilIsEyeToEyeDistanceAdjusted: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:465, core/libs/tests/GuestSystemServiceStatus.cpp:31 sceShellCoreUtilIsImposeScreenOverlaid: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:468, core/libs/tests/GuestSystemServiceStatus.cpp:26 sceLncUtilEnableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:278, core/libs/tests/GuestSystemServiceStatus.cpp:14 sceLncUtilBlockAppSuspend: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:271, core/libs/tests/GuestSystemServiceStatus.cpp:12 sceShellCoreUtilGetSharePlayStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:441, core/libs/tests/GuestSystemServiceStatus.cpp:20 sceLncUtilUnblockAppSuspend: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:344, core/libs/tests/GuestSystemServiceStatus.cpp:13 sceShellCoreUtilIsGameLiveStreamingOnAir: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:466, core/libs/tests/GuestSystemServiceStatus.cpp:22 sceSystemServiceIsShellUiFgAndGameBgCpuMode: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:644, core/libs/tests/GuestSystemServiceStatus.cpp:25 sceShellCoreUtilIsUsbMassStorageMounted: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:480, core/libs/tests/GuestSystemServiceStatus.cpp:34 sceSystemServiceEnableSuspendNotification: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:607, core/libs/tests/GuestSystemServiceStatus.cpp:16 sceShellCoreUtilIsExternalStorageAppMoveInProgress: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:464, core/libs/tests/GuestSystemServiceStatus.cpp:35 sceShellCoreUtilGetSocialScreenStatus: expected exactly one header declaration; found 2: core/libs/prx/libSceSystemService/include/SystemService.hpp:442, core/libs/tests/GuestSystemServiceStatus.cpp:30 ``` </details> ## Findings ### Blocking - **Duplicate public declarations fail the current-base audit.** `GuestSystemServiceStatus.cpp` includes `SystemService.hpp` and then declares the same exported functions locally. Those declarations already exist in current `main`'s `core/libs/prx/libSceSystemService/include/SystemService.hpp`, so this branch passes on its older base but fails after a clean merge with `main`. Remove the 25 test-local declarations and include the public umbrella header `prx/libSceSystemService/libSceSystemService.hpp` so the test uses the library declarations. ### Non-blocking None identified in this re-check. ## Sources - [The repository's one-public-declaration rule on current `main`](https://github.com/boykopovar/AnyPS5/blob/29bd76030463fb20b404f6c6e57db94c35042612/CONTRIBUTING.md#L6) - [The duplicate test-local declarations at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/2bc794c94ff4e7f4c50b410ae0ea22892c6df30c/core/libs/tests/GuestSystemServiceStatus.cpp#L12-L36) - [The corresponding public declarations on current `main`](https://github.com/boykopovar/AnyPS5/blob/29bd76030463fb20b404f6c6e57db94c35042612/core/libs/prx/libSceSystemService/include/SystemService.hpp) ## Not verified No C++ build, CTest run, or runtime behavior was tested. The public-header audit was run on the clean merge preview, not on a rebuilt binary. ## To get this to a good state Remove the duplicated local declarations, use the public library umbrella header, then rerun the header audit on the updated head. I’ll repeat this merged-tree audit and the same relevant checks after the update.
jotitadev commented 2026-10-30 23:17:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T23:17:23Z.

Review: COMMENTED


Re-checked 20078240fb on Linux: the public_headers break I reported is fixed.

Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. Head 20078240fb merged (--no-commit) onto main 06f47c0e81; clean merge, full build OK.

  • public_headers + the 64 public_headers_compile_* tests: 65/65, 3/3 runs. The audit reports 0 errors.
  • The 13 guest_system_service* tests (including the four guest_system_service_status_*): 3/3 runs.
  • Control: the same merge with GuestSystemServiceStatus.cpp as it was at 2bc794c94f brings back exactly 25 duplicate-declaration errors, and public_headers fails.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5719693755 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9586#pullrequestreview-5719693755). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-30T23:17:23Z. **Review:** COMMENTED --- Re-checked `20078240fb` on Linux: the `public_headers` break I reported is fixed. Ubuntu 26.04, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. Head `20078240fb` merged (`--no-commit`) onto `main` `06f47c0e81`; clean merge, full build OK. - `public_headers` + the 64 `public_headers_compile_*` tests: 65/65, 3/3 runs. The audit reports 0 errors. - The 13 `guest_system_service*` tests (including the four `guest_system_service_status_*`): 3/3 runs. - Control: the same merge with `GuestSystemServiceStatus.cpp` as it was at `2bc794c94f` brings back exactly 25 duplicate-declaration errors, and `public_headers` fails. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
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!9586
No description provided.