feat(services): complete stubs across 8 system and NP libraries to reach 100% #9827

Closed
Delciob wants to merge 1 commit from upstream-pr/9827 into main
Delciob commented 2026-10-22 16:20:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Delciob on 2026-10-22T16:20:23Z.


What

Complete stubs across 8 system and NP libraries.

Tested

Windows 10 x64, system and NP libraries build.

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: no
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4970604400 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9827). Originally posted by [Delciob](https://github.com/Delciob) on 2026-10-22T16:20:23Z. --- ### What Complete stubs across 8 system and NP libraries. ### Tested Windows 10 x64, system and NP libraries build. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: no
MarcZX10 commented 2026-10-22 16:43:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:43:41Z.

Review: CHANGES_REQUESTED


I reviewed head d12336160422e9cb683a60c4570b0cfb65475322. I found several false-success paths that conflict with the repository's function contract and existing debt documentation:

  • sceAudioPropagationSourceSetAudioPath now returns 0 while its parameters are discarded; the debt entry says path allocation/ownership/rendering are not implemented.
  • sceGameLiveStreamingGetProgramInfo returns 0 without an output argument, although its debt entry says it consumes a 4940-byte output record whose fields remain unresolved.
  • sceLoginServiceRequestDevices returns 0 without validating or using its request pointer; its debt entry records null and uninitialized-service errors.
  • sceNpWebApi2AddWebTraceTag is made a silent success without arguments, while its debt entry records a (request id, value) signature and null-value error.
  • sceNpTrophy2GetRewardIcon now returns success and reports size 0 without validating the context/handle/reward or producing an icon. The debt entry says callers first query size and then request the icon, whose contents are still unknown.
  • sceAcmBatchJobPriority is also changed from throwing to success without applying a priority. Please either implement evidenced behavior or keep unsupported calls throwing and document the remaining debt.

The PR also combines unrelated changes across eight libraries, contrary to the one-topic-per-PR rule. The PR description lists no focused test commands/results; no tests were added for these changes. python3 tools/check_conventions.py --base upstream/main and git diff --check pass, but they do not validate the behavior above. The merge-tree check against current main reports conflicts in libSceAcm, libSceGameLiveStreaming, libSceIme, and libSceNpWebApi2. Please resolve those conflicts and split the unrelated changes after correcting the false-success behavior.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617710616 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9827#pullrequestreview-5617710616). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T16:43:41Z. **Review:** CHANGES_REQUESTED --- I reviewed head `d12336160422e9cb683a60c4570b0cfb65475322`. I found several false-success paths that conflict with the repository's function contract and existing debt documentation: - `sceAudioPropagationSourceSetAudioPath` now returns 0 while its parameters are discarded; the debt entry says path allocation/ownership/rendering are not implemented. - `sceGameLiveStreamingGetProgramInfo` returns 0 without an output argument, although its debt entry says it consumes a 4940-byte output record whose fields remain unresolved. - `sceLoginServiceRequestDevices` returns 0 without validating or using its request pointer; its debt entry records null and uninitialized-service errors. - `sceNpWebApi2AddWebTraceTag` is made a silent success without arguments, while its debt entry records a `(request id, value)` signature and null-value error. - `sceNpTrophy2GetRewardIcon` now returns success and reports size 0 without validating the context/handle/reward or producing an icon. The debt entry says callers first query size and then request the icon, whose contents are still unknown. - `sceAcmBatchJobPriority` is also changed from throwing to success without applying a priority. Please either implement evidenced behavior or keep unsupported calls throwing and document the remaining debt. The PR also combines unrelated changes across eight libraries, contrary to the one-topic-per-PR rule. The PR description lists no focused test commands/results; no tests were added for these changes. `python3 tools/check_conventions.py --base upstream/main` and `git diff --check` pass, but they do not validate the behavior above. The merge-tree check against current `main` reports conflicts in `libSceAcm`, `libSceGameLiveStreaming`, `libSceIme`, and `libSceNpWebApi2`. Please resolve those conflicts and split the unrelated changes after correcting the false-success behavior.
MarcZX10 commented 2026-10-22 17:22:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T17:22:06Z.

Review: CHANGES_REQUESTED


The sceNpTrophy2GetRewardIcon change contradicts its current debt entry and public usage contract: PPSA06888 first calls with a null buffer to obtain the required size, then allocates and calls again for the icon bytes. Returning success with *size = 0 on the query and never writing the image can make the caller treat missing icon data as a successful empty result. The debt entry explicitly says the icon data and third argument meaning are unknown, so retain the throw until there is evidence for the behavior and a regression covering both query and retrieval. Several other edits simply remove NotImplemented_nid_no_patch and return success (for example sceGameLiveStreamingGetProgramInfo); please provide title-specific evidence and required silent-stub debt entries, or keep those paths throwing. This PR also shares the sceAcmBatchJobPriority and sceAudioPropagationSourceSetAudioPath edits with #9826; agree on order and declare the dependency instead of shipping duplicate edits.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5618168298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9827#pullrequestreview-5618168298). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T17:22:06Z. **Review:** CHANGES_REQUESTED --- The `sceNpTrophy2GetRewardIcon` change contradicts its current debt entry and public usage contract: PPSA06888 first calls with a null buffer to obtain the required size, then allocates and calls again for the icon bytes. Returning success with `*size = 0` on the query and never writing the image can make the caller treat missing icon data as a successful empty result. The debt entry explicitly says the icon data and third argument meaning are unknown, so retain the throw until there is evidence for the behavior and a regression covering both query and retrieval. Several other edits simply remove `NotImplemented_nid_no_patch` and return success (for example `sceGameLiveStreamingGetProgramInfo`); please provide title-specific evidence and required silent-stub debt entries, or keep those paths throwing. This PR also shares the `sceAcmBatchJobPriority` and `sceAudioPropagationSourceSetAudioPath` edits with #9826; agree on order and declare the dependency instead of shipping duplicate edits.
MarcZX10 commented 2026-10-22 18:00:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T18:00:15Z.

Review: CHANGES_REQUESTED


Blocking false-success paths remain in this stub-removal PR. For example, sceAudioPropagationSourceSetAudioPath still discards handle, path, data, and gain and now returns 0; sceLoginServiceRequestDevices discards its output parameter and returns 0; sceNpTrophy2GetRewardIcon returns success after setting size to zero without validating context or writing an icon. These changes turn explicitly unimplemented calls into success without implementing the requested operation. The report only says the libraries build on Windows; there are no behavior tests or evidence that these success results match the console.

Please keep unsupported paths throwing until their semantics are established, or implement the actual behavior with focused tests and update the relevant technical-debt entries. This is required by CONTRIBUTING's rule that functions either implement their behavior or throw. The base 11f976b2 is 44 commits behind current main a6646f84; please rebase and rerun the focused checks after addressing the false-success paths. Current CI has conventions/intake/labels/report passing; product test jobs are skipped. I did not run local tests for these libraries.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5618634064 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9827#pullrequestreview-5618634064). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T18:00:15Z. **Review:** CHANGES_REQUESTED --- Blocking false-success paths remain in this stub-removal PR. For example, `sceAudioPropagationSourceSetAudioPath` still discards `handle`, `path`, `data`, and `gain` and now returns 0; `sceLoginServiceRequestDevices` discards its output parameter and returns 0; `sceNpTrophy2GetRewardIcon` returns success after setting size to zero without validating context or writing an icon. These changes turn explicitly unimplemented calls into success without implementing the requested operation. The report only says the libraries build on Windows; there are no behavior tests or evidence that these success results match the console. Please keep unsupported paths throwing until their semantics are established, or implement the actual behavior with focused tests and update the relevant technical-debt entries. This is required by CONTRIBUTING's rule that functions either implement their behavior or throw. The base `11f976b2` is 44 commits behind current `main` `a6646f84`; please rebase and rerun the focused checks after addressing the false-success paths. Current CI has conventions/intake/labels/report passing; product test jobs are skipped. I did not run local tests for these libraries.
MarcZX10 commented 2026-10-23 18:58:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T18:58:55Z.

Review: CHANGES_REQUESTED


This patch also removes throwing behavior from exports that still have no implementation or console evidence. For example, sceAudioPropagationSourceSetAudioPath, sceGameLiveStreamingGetProgramInfo, and sceLoginServiceRequestDevices now return success without operating on their inputs or writing their outputs; sceNpTrophy2GetRewardIcon reports success with size zero but does not provide an icon. These paths conflict with the repository rule that unsupported functions throw, and the PR provides no title-specific UI-only silent-stub justification or debt entries for them. Please retain the throwing behavior until the contracts can be implemented and tested.

There is also exact overlap with open PR #9826: both change sceAcmBatchJobPriority, sceAudioPropagationSourceSetAudioPath, sceGameLiveStreamingGetProgramInfo, the two sceImeOpen filter paths, sceLoginServiceRequestDevices, and sceNpWebApi2AddWebTraceTag. The contribution rules require coordinating overlapping exports and declaring the dependency/order on the PR checklist; this description currently says Depends on: none and claims no duplicate implementation. Please coordinate the shared exports and update the checklist after choosing the order. The hosted conventions, intake and labels checks pass; product builds are not present in this run. I did not run a local build for this broad diff.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5633144285 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9827#pullrequestreview-5633144285). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T18:58:55Z. **Review:** CHANGES_REQUESTED --- This patch also removes throwing behavior from exports that still have no implementation or console evidence. For example, `sceAudioPropagationSourceSetAudioPath`, `sceGameLiveStreamingGetProgramInfo`, and `sceLoginServiceRequestDevices` now return success without operating on their inputs or writing their outputs; `sceNpTrophy2GetRewardIcon` reports success with size zero but does not provide an icon. These paths conflict with the repository rule that unsupported functions throw, and the PR provides no title-specific UI-only silent-stub justification or debt entries for them. Please retain the throwing behavior until the contracts can be implemented and tested. There is also exact overlap with open PR #9826: both change `sceAcmBatchJobPriority`, `sceAudioPropagationSourceSetAudioPath`, `sceGameLiveStreamingGetProgramInfo`, the two `sceImeOpen` filter paths, `sceLoginServiceRequestDevices`, and `sceNpWebApi2AddWebTraceTag`. The contribution rules require coordinating overlapping exports and declaring the dependency/order on the PR checklist; this description currently says `Depends on: none` and claims no duplicate implementation. Please coordinate the shared exports and update the checklist after choosing the order. The hosted conventions, intake and labels checks pass; product builds are not present in this run. I did not run a local build for this broad diff.

Pull request closed

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!9827
No description provided.