docs(libSceSystemService): clarify activation technical debt #9977

Merged
StoneDC merged 1 commit from upstream-pr/9977 into main 2026-10-26 14:26:11 +00:00
StoneDC commented 2026-10-23 01:52:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by StoneDC on 2026-10-23T01:52:07Z.


What

Document the remaining activation gaps in libSceSystemService: register the existing parameterless sceShellCoreUtilActivateRecordActivation() silent stub and record the unresolved contract of sceShellCoreUtilActivateInit, sceShellCoreUtilActivateIsActivated and sceShellCoreUtilActivateGetStatus under Unknown function info.

All three calls retain main's unconditional NotImplemented_nid_no_patch behavior, including null outputs. This PR changes only docs/dev/debt/libSceSystemService.md; it introduces no activation implementation or error-code mapping.

Tested

Windows, Python 3.14.3; reviewed head 2bab8f29da4365477d5232f17a82a2cc9cd11b5e based on main fa77c2b4e5c39e5f60c12183d583199470430e95 (2026-10-26).

  • python tools/check_conventions.py --base origin/main: passed on the committed head.
  • git diff --check origin/main HEAD: passed.
  • Verified that the complete PR diff contains only the debt document and that its implementation link resolves to the existing source file.
  • PendingExports.cpp and GuestSystemService.cpp are byte-identical to the base main; the documented throwing paths and parameterless silent stub were checked against that source.

Runtime tests, full builds and console validation were not run for this documentation-only change.

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 (OpenAI Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4976628355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9977). Originally posted by [StoneDC](https://github.com/StoneDC) on 2026-10-23T01:52:07Z. --- ### What Document the remaining activation gaps in `libSceSystemService`: register the existing parameterless `sceShellCoreUtilActivateRecordActivation()` silent stub and record the unresolved contract of `sceShellCoreUtilActivateInit`, `sceShellCoreUtilActivateIsActivated` and `sceShellCoreUtilActivateGetStatus` under Unknown function info. All three calls retain main's unconditional `NotImplemented_nid_no_patch` behavior, including null outputs. This PR changes only `docs/dev/debt/libSceSystemService.md`; it introduces no activation implementation or error-code mapping. ### Tested Windows, Python 3.14.3; reviewed head `2bab8f29da4365477d5232f17a82a2cc9cd11b5e` based on main `fa77c2b4e5c39e5f60c12183d583199470430e95` (2026-10-26). - `python tools/check_conventions.py --base origin/main`: passed on the committed head. - `git diff --check origin/main HEAD`: passed. - Verified that the complete PR diff contains only the debt document and that its implementation link resolves to the existing source file. - `PendingExports.cpp` and `GuestSystemService.cpp` are byte-identical to the base main; the documented throwing paths and parameterless silent stub were checked against that source. Runtime tests, full builds and console validation were not run for this documentation-only change. <!-- 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. --> ### 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 (OpenAI Codex)
MarcZX10 commented 2026-10-23 04:14:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T04:14:26Z.

Review: DISMISSED


I reviewed exact head 936de799abab49abba0f5e13fe88a556db16092e. The overlap question is resolved by the author: #8651 changes different exports/tests, and this PR is currently mergeable. Current-main convention check, the exact-head 171-script registration check, and git diff --check pass; the latest hosted conventions/intake/labels checks pass. I could not run guest_system_service_tests locally because this workspace has no configured AnyPS5 build/test executable; the author reports the Linux test passing.

Blocking behavior gap: the new tests assert their own assumed successful values, but the PR supplies no source or reproduction evidence for them. sceShellCoreUtilActivateIsActivated now reports true for every handle, Init returns the same handle value 1 for every type/call, and GetStatus writes zero status/result while ignoring the handle. The debt entry says activation service state is not modeled. In particular, always reporting an activation as complete can make a caller proceed as though the activation service confirmed it.

Please provide console/SDK evidence for the return values, output fields, handle validation/lifecycle, and repeated initialization behavior, with tests derived from that evidence. If that contract is still unknown, keep the newly implemented paths explicit (throwing) rather than turning the current assumptions into silent success. This request concerns the unsupported behavior, not the PR count or the earlier overlap report.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5623808892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9977#pullrequestreview-5623808892). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T04:14:26Z. **Review:** DISMISSED --- I reviewed exact head 936de799abab49abba0f5e13fe88a556db16092e. The overlap question is resolved by the author: #8651 changes different exports/tests, and this PR is currently mergeable. Current-main convention check, the exact-head 171-script registration check, and `git diff --check` pass; the latest hosted conventions/intake/labels checks pass. I could not run `guest_system_service_tests` locally because this workspace has no configured AnyPS5 build/test executable; the author reports the Linux test passing. Blocking behavior gap: the new tests assert their own assumed successful values, but the PR supplies no source or reproduction evidence for them. `sceShellCoreUtilActivateIsActivated` now reports `true` for every handle, `Init` returns the same handle value `1` for every type/call, and `GetStatus` writes zero status/result while ignoring the handle. The debt entry says activation service state is not modeled. In particular, always reporting an activation as complete can make a caller proceed as though the activation service confirmed it. Please provide console/SDK evidence for the return values, output fields, handle validation/lifecycle, and repeated initialization behavior, with tests derived from that evidence. If that contract is still unknown, keep the newly implemented paths explicit (throwing) rather than turning the current assumptions into silent success. This request concerns the unsupported behavior, not the PR count or the earlier overlap report.
adriadam10 commented 2026-10-26 13:51:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-26T13:51:56Z.

Review: CHANGES_REQUESTED


Thanks for dropping the assumed successes. Two points remain:

  • core/libs/prx/libSceSystemService/PendingExports.cpp:578-593: returning 0x80A10003 for a null output has no source. shadPS4 only has a parameterless stub for sceShellCoreUtilActivateInit, and KytyPS5, fpPS4 and prosper do not cover these exports. Without evidence this is the same kind of guess as the removed successes, and on main the calls throw. Please cite where the null-output check and its code come from (a console measurement or a title's call site), or drop the check so the three exports keep throwing and the PR reduces to the debt wording.
  • PendingExports.cpp:7: SystemServiceParameterInvalid duplicates SYSTEM_SERVICE_ERROR_PARAMETER from SystemService.hpp, which this file already includes. Use the header constant if the check stays.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5653023607 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9977#pullrequestreview-5653023607). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-26T13:51:56Z. **Review:** CHANGES_REQUESTED --- Thanks for dropping the assumed successes. Two points remain: - `core/libs/prx/libSceSystemService/PendingExports.cpp:578-593`: returning `0x80A10003` for a null output has no source. shadPS4 only has a parameterless stub for `sceShellCoreUtilActivateInit`, and KytyPS5, fpPS4 and prosper do not cover these exports. Without evidence this is the same kind of guess as the removed successes, and on `main` the calls throw. Please cite where the null-output check and its code come from (a console measurement or a title's call site), or drop the check so the three exports keep throwing and the PR reduces to the debt wording. - `PendingExports.cpp:7`: `SystemServiceParameterInvalid` duplicates `SYSTEM_SERVICE_ERROR_PARAMETER` from `SystemService.hpp`, which this file already includes. Use the header constant if the check stays.
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!9977
No description provided.