docs(libSceAppContent): add-content calls answer PARAMETER for padded labels #13589

Merged
MarcZX10 merged 2 commits from upstream-pr/13589 into main 2026-11-24 12:43:28 +00:00
MarcZX10 commented 2026-10-30 18:52:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T18:52:35Z.


What

Corrects one statement in docs/dev/debt/libSceAppContent.md. The "Additional content" entry said sceAppContentAddcontMount answers NOT_FOUND and sceAppContentGetAddcontInfo answers DRM_NO_ENTITLEMENT for every label, and sceAppContentAddcontDelete answers PARAMETER only for a null label. validEntitlementLabel rejects a padded label with PARAMETER when the process SDK version is at least 0x01500000 (Mount, GetAddcontInfo) or 0x03500000 (Delete). The entry now names that case. Docs only; the commit body gives the old claim, the code behaviour and permalinks pinned to b1b5353cfcee098ed17e3ba8a6e616bee97c9215. This entry was already longer than 1000 characters before this change; splitting it is left for a separate PR.

Tested

Run on this branch (base upstream/main = 50843f45d9; the audited SHA b1b5353cfc is an ancestor, and no commit in between touches this file or core/libs/prx/libSceAppContent):

  • python3 tools/check_conventions.py --base upstream/main: exit 0

  • git diff --check upstream/main HEAD: exit 0

  • python3 tools/env_reference.py --check: exit 1 with the same single failure as on a clean upstream/main archive (APS5_PAD_SPEAKER_FALLBACK_DB has a row in docs/dev/ENVIRONMENT.md but the code no longer reads it); the two outputs are identical. This is the known baseline failure, not a documentation error.

  • Open-PR overlap: gh pr list searches on each touched debt file found no open PR that edits the changed entries (PR 12765 edits other AudioOut entries; PR 11620 and PR 11588 edit other AppContent entries). The full tools/pr_overlap.py --branch run did not finish in the time available and its result is not claimed here.

Permalink lines were read at the audited SHA.

NOT RUN: build and unit tests (docs only); Windows, macOS, real devices, hardware GPU, console (not applicable to a documentation change).

  • test_quality_heuristics (precheck), raw failure line: {line}. The harness points at tools/pr_test_quality.py and at a .md file; this tool is not part of upstream trees and does not apply to docs-only PRs.

  • pr_precheck.py (no-build, run from a scratch checkout whose tools/ is a copy of /marc/AnyPS5/tools, because the candidate commits are not in that repository): every item passes except test_quality_heuristics, see NOT RUN.

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:5089508607 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13589). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T18:52:35Z. --- ### What Corrects one statement in `docs/dev/debt/libSceAppContent.md`. The "Additional content" entry said `sceAppContentAddcontMount` answers `NOT_FOUND` and `sceAppContentGetAddcontInfo` answers `DRM_NO_ENTITLEMENT` for every label, and `sceAppContentAddcontDelete` answers `PARAMETER` only for a null label. `validEntitlementLabel` rejects a padded label with `PARAMETER` when the process SDK version is at least 0x01500000 (Mount, GetAddcontInfo) or 0x03500000 (Delete). The entry now names that case. Docs only; the commit body gives the old claim, the code behaviour and permalinks pinned to `b1b5353cfcee098ed17e3ba8a6e616bee97c9215`. This entry was already longer than 1000 characters before this change; splitting it is left for a separate PR. ### Tested Run on this branch (base `upstream/main` = `50843f45d9`; the audited SHA `b1b5353cfc` is an ancestor, and no commit in between touches this file or `core/libs/prx/libSceAppContent`): - `python3 tools/check_conventions.py --base upstream/main`: exit 0 - `git diff --check upstream/main HEAD`: exit 0 - `python3 tools/env_reference.py --check`: exit 1 with the same single failure as on a clean `upstream/main` archive (`APS5_PAD_SPEAKER_FALLBACK_DB has a row in docs/dev/ENVIRONMENT.md but the code no longer reads it`); the two outputs are identical. This is the known baseline failure, not a documentation error. - Open-PR overlap: `gh pr list` searches on each touched debt file found no open PR that edits the changed entries (PR 12765 edits other AudioOut entries; PR 11620 and PR 11588 edit other AppContent entries). The full `tools/pr_overlap.py --branch` run did not finish in the time available and its result is not claimed here. Permalink lines were read at the audited SHA. NOT RUN: build and unit tests (docs only); Windows, macOS, real devices, hardware GPU, console (not applicable to a documentation change). - `test_quality_heuristics` (precheck), raw failure line: `{line}`. The harness points at `tools/pr_test_quality.py` and at a `.md` file; this tool is not part of upstream trees and does not apply to docs-only PRs. - `pr_precheck.py` (no-build, run from a scratch checkout whose `tools/` is a copy of `/marc/AnyPS5/tools`, because the candidate commits are not in that repository): every item passes except `test_quality_heuristics`, see NOT RUN. ### 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
MarcZX10 commented 2026-11-02 04:58:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:58:21Z.

Review: COMMENTED


Reviewed — reply answered, two sentences need the padded-label note

oneandonlydean's 2026-10-30 reply confirms three corrected statements and asks for the same padded-label note on two more calls, which the code at this head supports.

What I ran

Live head 4f5b8b7d75bebb121aec2f41aa7430cf08967949 (matches the batch file). Read the comment with gh api repos/boykopovar/AnyPS5/issues/13589/comments, the check rollup with gh pr view 13589 --json statusCheckRollup, and the files with git -C /marc/AnyPS5 show 4f5b8b7…:<path>. Nothing was built or run.

Results

Check Result Note
eligibility SUCCESS hosted
conventions SUCCESS hosted
intake, labels SUCCESS hosted
linux, windows, relinker, relinker-asan, write-watch, register-context SKIPPED hosted, doc-only change

Findings

The reply (2026-10-30T19:31:28Z) asks to add the padded-label note to two sentences of docs/dev/debt/libSceAppContent.md line 23. The code supports this.

  • sceAppContentAddcontEnqueueDownload checks padding from SDK 0x01500000 (Export.cpp line 230) and returns NOT_FOUND at line 231. The doc sentence says only "PARAMETER for a null label and NOT_FOUND otherwise".
  • sceAppContentGetAddcontDownloadProgress checks padding from SDK 0x03500000 (Export.cpp line 246) and returns NOT_FOUND at line 247. The doc sentence says only "PARAMETER for a null label or progress and NOT_FOUND otherwise".
  • The three statements already corrected match the code: Mount (Export.cpp line 94) and GetAddcontInfo (line 108) use 0x01500000, and Delete (line 238) uses 0x03500000.

Suggested edit to line 23: add "and for a padded one from SDK 0x01500000" to the Enqueue sentence, and "and for a padded one from SDK 0x03500000" to the Progress sentence.

Sources

Not verified

  • validEntitlementLabel was not read, so the SDK-gate semantics are taken from its call sites.
  • The dlc_emu links in the entry were not opened.
  • Nothing was built or run.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5732254526 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13589#pullrequestreview-5732254526). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T04:58:21Z. **Review:** COMMENTED --- # Reviewed — reply answered, two sentences need the padded-label note oneandonlydean's 2026-10-30 reply confirms three corrected statements and asks for the same padded-label note on two more calls, which the code at this head supports. ## What I ran Live head `4f5b8b7d75bebb121aec2f41aa7430cf08967949` (matches the batch file). Read the comment with `gh api repos/boykopovar/AnyPS5/issues/13589/comments`, the check rollup with `gh pr view 13589 --json statusCheckRollup`, and the files with `git -C /marc/AnyPS5 show 4f5b8b7…:<path>`. Nothing was built or run. ## Results | Check | Result | Note | |---|---|---| | eligibility | SUCCESS | hosted | | conventions | SUCCESS | hosted | | intake, labels | SUCCESS | hosted | | linux, windows, relinker, relinker-asan, write-watch, register-context | SKIPPED | hosted, doc-only change | ## Findings The reply (2026-10-30T19:31:28Z) asks to add the padded-label note to two sentences of `docs/dev/debt/libSceAppContent.md` line 23. The code supports this. - `sceAppContentAddcontEnqueueDownload` checks padding from SDK 0x01500000 (`Export.cpp` line 230) and returns NOT_FOUND at line 231. The doc sentence says only "PARAMETER for a null label and NOT_FOUND otherwise". - `sceAppContentGetAddcontDownloadProgress` checks padding from SDK 0x03500000 (`Export.cpp` line 246) and returns NOT_FOUND at line 247. The doc sentence says only "PARAMETER for a null label or progress and NOT_FOUND otherwise". - The three statements already corrected match the code: Mount (`Export.cpp` line 94) and GetAddcontInfo (line 108) use 0x01500000, and Delete (line 238) uses 0x03500000. Suggested edit to line 23: add "and for a padded one from SDK 0x01500000" to the Enqueue sentence, and "and for a padded one from SDK 0x03500000" to the Progress sentence. ## Sources - https://github.com/boykopovar/AnyPS5/blob/4f5b8b7d75bebb121aec2f41aa7430cf08967949/docs/dev/debt/libSceAppContent.md#L23 - https://github.com/boykopovar/AnyPS5/blob/4f5b8b7d75bebb121aec2f41aa7430cf08967949/core/libs/prx/libSceAppContent/Export.cpp#L94-L108 - https://github.com/boykopovar/AnyPS5/blob/4f5b8b7d75bebb121aec2f41aa7430cf08967949/core/libs/prx/libSceAppContent/Export.cpp#L226-L247 ## Not verified - `validEntitlementLabel` was not read, so the SDK-gate semantics are taken from its call sites. - The dlc_emu links in the entry were not opened. - Nothing was built or run.
gabichuuuuu commented 2026-11-10 17:48:16 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Read 5b7409e4d3 against main.

Correctness. The new libSceAppContent.md:3 bullet says additional content is never installed or mounted: Mount answers NOT_FOUND for every unpadded label, Unmount for every mount point, GetAddcontInfo answers DRM_NO_ENTITLEMENT, and GetAddcontInfoList reports 0 entries. The code does not do that. Export.cpp:163-181 mounts any add-on found in AddonEntries() (host path alias, returns 0, or BUSY on a repeat), Export.cpp:183-196 unmounts a mounted one, Export.cpp:198-211 returns its info, and Export.cpp:213-228 lists all configured entries. Only AddcontEnqueueDownload, AddcontDelete and GetAddcontDownloadProgress (Export.cpp:346-368) always answer NOT_FOUND. The padded-label PARAMETER rules (SDK 0x01500000 and 0x03500000 through validEntitlementLabel, Export.cpp:47) are right.

Defect. The entry contradicts the existing "Additional content" entry on main (configured add-ons are mounted and listed) and duplicates it and "Additional content download and delete". The PR description says it corrects one statement; it should edit those two entries instead, adding the padded-label PARAMETER case (SDK 0x01500000 for Mount and GetAddcontInfo, 0x03500000 for Delete and progress), and the new bullet should be removed.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846639926 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13589#pullrequestreview-5846639926). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:48:16Z. **Review:** COMMENTED --- Read `5b7409e4d3` against `main`. **Correctness.** The new `libSceAppContent.md:3` bullet says additional content is never installed or mounted: Mount answers `NOT_FOUND` for every unpadded label, Unmount for every mount point, `GetAddcontInfo` answers `DRM_NO_ENTITLEMENT`, and `GetAddcontInfoList` reports 0 entries. The code does not do that. `Export.cpp:163-181` mounts any add-on found in `AddonEntries()` (host path alias, returns 0, or `BUSY` on a repeat), `Export.cpp:183-196` unmounts a mounted one, `Export.cpp:198-211` returns its info, and `Export.cpp:213-228` lists all configured entries. Only `AddcontEnqueueDownload`, `AddcontDelete` and `GetAddcontDownloadProgress` (`Export.cpp:346-368`) always answer `NOT_FOUND`. The padded-label `PARAMETER` rules (SDK 0x01500000 and 0x03500000 through `validEntitlementLabel`, `Export.cpp:47`) are right. **Defect.** The entry contradicts the existing "Additional content" entry on `main` (configured add-ons are mounted and listed) and duplicates it and "Additional content download and delete". The PR description says it corrects one statement; it should edit those two entries instead, adding the padded-label `PARAMETER` case (SDK 0x01500000 for Mount and `GetAddcontInfo`, 0x03500000 for Delete and progress), and the new bullet should be removed. 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!13589
No description provided.