docs(debt): correct eight entries that no longer match the code #12104

Merged
MarcZX10 merged 8 commits from upstream-pr/12104 into main 2026-11-11 06:41:19 +00:00
MarcZX10 commented 2026-10-27 20:38:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T20:38:37Z.


What

Seven technical debt entries described behaviour that the linked code does not have. One commit per entry:

  • libkernel.md: sceKernelGetSocPowerConsumption returns EFAULT for a null buffer before it returns EINVAL.
  • libSceAudiodec.md: createAac returns 0x807F0305 and 0x807F0306 for out-of-range extension and output modes; only in-range nonzero modes throw.
  • libSceVoiceQoS.md: sceVoiceQoSReadPacket and sceVoiceQoSWritePacket check the buffer, the size pointer and the connection id before they return 0.
  • libSceNet.md: sceNetShowNetstatEx takes a (flags) argument, unlike the other three sceNetShow* exports; sceNetInitParam tests the already-set flag before the null check, so a null parameter after a successful call returns 0x80410110.
  • libSceCustomMusicSysCallWrapper.md: the library exports one function, and the entry started with a stray bracket and used the plural.
  • libSceHmd2.md: sceHmd2Open throws for another user only for a title built before SDK 7.00; later titles get 0x8a720009.

The AvPlayerVideoEx entry is omitted because open PR #7412 edits the same docs/dev/debt/libs.md entry. This PR does not touch that file.

Tested

Documentation only. Each entry was checked against the code it links on current main. tools/check_conventions.py --base upstream/main and git diff --check pass.

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:5040772418 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12104). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T20:38:37Z. --- ### What Seven technical debt entries described behaviour that the linked code does not have. One commit per entry: - `libkernel.md`: `sceKernelGetSocPowerConsumption` returns `EFAULT` for a null buffer before it returns `EINVAL`. - `libSceAudiodec.md`: `createAac` returns `0x807F0305` and `0x807F0306` for out-of-range extension and output modes; only in-range nonzero modes throw. - `libSceVoiceQoS.md`: `sceVoiceQoSReadPacket` and `sceVoiceQoSWritePacket` check the buffer, the size pointer and the connection id before they return 0. - `libSceNet.md`: `sceNetShowNetstatEx` takes a (`flags`) argument, unlike the other three `sceNetShow*` exports; `sceNetInitParam` tests the already-set flag before the null check, so a null parameter after a successful call returns `0x80410110`. - `libSceCustomMusicSysCallWrapper.md`: the library exports one function, and the entry started with a stray bracket and used the plural. - `libSceHmd2.md`: `sceHmd2Open` throws for another user only for a title built before SDK 7.00; later titles get `0x8a720009`. The `AvPlayerVideoEx` entry is omitted because open PR #7412 edits the same `docs/dev/debt/libs.md` entry. This PR does not touch that file. ### Tested Documentation only. Each entry was checked against the code it links on current `main`. `tools/check_conventions.py --base upstream/main` and `git diff --check` pass. ### 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: yes
THEMANnt commented 2026-10-28 10:58:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:58:09Z.

Review: COMMENTED


Reviewed 7ce205d79a9b47ef692e130fc5b9c1a345c52653 against author merge base 46fe6f24374ad38712a82733f82d907fcb88316f — comment; final validation remains pending.

The eight debt corrections agree with the checked export bodies, notably no invented CustomMusic prototype, unchanged VoiceQoS write size, and the power-consumption EINVAL/EFAULT paths without output writes. Console firmware measurements and title disassembly remain attributed evidence; I did not independently reproduce them.

Validation: checked the submitted Markdown diff, pinned implementation references and relative links; git diff --check passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.

Publication-time checks: merge conflict with main. Please complete these checks before final approval; this status alone is not a demonstrated implementation defect.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681528859 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12104#pullrequestreview-5681528859). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T10:58:09Z. **Review:** COMMENTED --- Reviewed `7ce205d79a9b47ef692e130fc5b9c1a345c52653` against author merge base `46fe6f24374ad38712a82733f82d907fcb88316f` — comment; final validation remains pending. The eight debt corrections agree with the checked export bodies, notably no invented CustomMusic prototype, unchanged VoiceQoS write size, and the power-consumption EINVAL/EFAULT paths without output writes. Console firmware measurements and title disassembly remain attributed evidence; I did not independently reproduce them. Validation: checked the submitted Markdown diff, pinned implementation references and relative links; `git diff --check` passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed. Publication-time checks: merge conflict with main. Please complete these checks before final approval; this status alone is not a demonstrated implementation defect.
THEMANnt commented 2026-10-28 16:43:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T16:43:35Z.

Review: APPROVED


Re-reviewed 42e90bbcac589ee791c7cac8c40ec66f73e171ee — approve the documentation change. The corrected debt entries agree with the pinned implementation, including the SDK-7.00 Hmd2 user-id branch, 32-byte NetInitParam copy, untouched VoiceQoS write size, and the power-query EINVAL/EFAULT paths without output writes. The CustomMusic declaration is correctly distinguished from a verified prototype.

Validation: checked all eight implementation references, the changed Markdown and relative links; git diff --check passes. The current source explicitly uses Hmd2's 0x07000000 threshold and preserves the unknown pre-7.00-user path as unsupported. This is a documentation-only review; cited firmware/title observations were not independently reproduced. No remaining documentation defect was found in this scope.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5686337976 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12104#pullrequestreview-5686337976). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T16:43:35Z. **Review:** APPROVED --- Re-reviewed `42e90bbcac589ee791c7cac8c40ec66f73e171ee` — approve the documentation change. The corrected debt entries agree with the pinned implementation, including the SDK-7.00 Hmd2 user-id branch, 32-byte NetInitParam copy, untouched VoiceQoS write size, and the power-query EINVAL/EFAULT paths without output writes. The CustomMusic declaration is correctly distinguished from a verified prototype. Validation: checked all eight implementation references, the changed Markdown and relative links; `git diff --check` passes. The current source explicitly uses Hmd2's `0x07000000` threshold and preserves the unknown pre-7.00-user path as unsupported. This is a documentation-only review; cited firmware/title observations were not independently reproduced. No remaining documentation defect was found in this scope.
gabichuuuuu commented 2026-11-10 17:48:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:48:11Z.

Review: COMMENTED


Read 17789e7a94 against main.

Correctness. Four of the six changes match the code. sceHmd2Open (Export.cpp:222-233) throws for a non-initial user only when CompiledSdkVersion() < Hmd2::UserIdSdkVersion (Hmd2.hpp:29, 0x07000000) and returns ParameterInvalid (0x8a720009) otherwise. sceNetShowNetstatEx(std::uint32_t flags) ignores flags (Export.cpp:3406) while the other three take (void). sceVoiceQoSReadPacket and sceVoiceQoSWritePacket (Export.cpp:244-257) return SCE_VOICE_ERROR_LIBVOICEQOS_ARGUMENT_INVALID for a null buffer, null size or unknown connection. sceKernelGetSocPowerConsumption (ThermalSensors.cpp:289-292) returns EFAULT for null and EINVAL otherwise.

Defect. Three of the added entries duplicate entries already on main, so each file now has the entry twice. libSceAudiodec.md:3 repeats "M4AAC extended parameters" (existing at line 6), libSceCustomMusicSysCallWrapper.md:3 repeats sceCustomMusicSelect (existing at line 116), and libSceNet.md:42 repeats sceNetInitParam (existing at line 43, which also has the checked-read sentence). The new Audiodec entry is also wrong: it says surround interleave orders 1 and 2 throw, but libSceAudiodec/Export.cpp:260 throws only when decoded.channels > 2, and the existing entry says mono and stereo are unchanged. Merge the useful parts (the ranges and error codes at Export.cpp:163-166; "on the first call" for sceNetInitParam, consistent with Export.cpp:3225-3238) into the existing entries and drop the new bullets, which also sit above the first ### heading.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846638752 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12104#pullrequestreview-5846638752). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:48:11Z. **Review:** COMMENTED --- Read `17789e7a94` against `main`. **Correctness.** Four of the six changes match the code. `sceHmd2Open` (`Export.cpp:222-233`) throws for a non-initial user only when `CompiledSdkVersion() < Hmd2::UserIdSdkVersion` (`Hmd2.hpp:29`, 0x07000000) and returns `ParameterInvalid` (0x8a720009) otherwise. `sceNetShowNetstatEx(std::uint32_t flags)` ignores `flags` (`Export.cpp:3406`) while the other three take `(void)`. `sceVoiceQoSReadPacket` and `sceVoiceQoSWritePacket` (`Export.cpp:244-257`) return `SCE_VOICE_ERROR_LIBVOICEQOS_ARGUMENT_INVALID` for a null buffer, null size or unknown connection. `sceKernelGetSocPowerConsumption` (`ThermalSensors.cpp:289-292`) returns EFAULT for null and EINVAL otherwise. **Defect.** Three of the added entries duplicate entries already on `main`, so each file now has the entry twice. `libSceAudiodec.md:3` repeats "M4AAC extended parameters" (existing at line 6), `libSceCustomMusicSysCallWrapper.md:3` repeats `sceCustomMusicSelect` (existing at line 116), and `libSceNet.md:42` repeats `sceNetInitParam` (existing at line 43, which also has the checked-read sentence). The new Audiodec entry is also wrong: it says surround interleave orders 1 and 2 throw, but `libSceAudiodec/Export.cpp:260` throws only when `decoded.channels > 2`, and the existing entry says mono and stereo are unchanged. Merge the useful parts (the ranges and error codes at `Export.cpp:163-166`; "on the first call" for `sceNetInitParam`, consistent with `Export.cpp:3225-3238`) into the existing entries and drop the new bullets, which also sit above the first `###` heading. Not run here; this is from reading the code. AI-assisted: yes.
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!12104
No description provided.