docs(debt): correct three debt entries in PlayerInvitation, PlayGo and NpUtility #13585

Merged
MarcZX10 merged 4 commits from upstream-pr/13585 into main 2026-11-24 00:01:53 +00:00
MarcZX10 commented 2026-10-30 18:49:47 +00:00 (Migrated from github.com)

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


What

Three documentation corrections, one commit per statement (base 82ddc5a9e0cb7590e579f3f4e1aec8388ed31c6d, head 3db7943aff):

  • 1/3 f38032465f docs/dev/debt/libScePlayerInvitationDialog.md: the silent-stub entry said scePlayerInvitationDialogTerminate and scePlayerInvitationDialogUpdateStatus return 0. Code: Terminate returns NOT_INITIALIZED (0x80B80003) before initialization; UpdateStatus moves a running dialog to finished and returns the current status (0 before initialization, 1 initialized, 3 finished).
  • 2/3 a75a3a4a01 docs/dev/debt/libScePlayGo.md: the chunk-table sentence said a playgo-chunk.dat without a plgx header throws. Code (ReadPackageChunks) accepts plgx and plgo; only other magics or a zero count throw.
  • 3/3 3db7943aff docs/dev/debt/libSceNpUtility.md: the unknown-signature list said sceNpBandwidthTestShutdownWithDetailedInfo is "not yet defined anywhere in the repo". It is defined and returns INVALID_ARGUMENT (Export.cpp L301-L303); its behaviour is already in the Functional entry, so the name is removed from the unknown list.

Sources (code at 82ddc5a9e0): permalinks are in each commit body.

Overlap: PR #11899 (feat(playgo): accept a chunk id list for dumps without metadata, another contributor) changes docs/dev/debt/libScePlayGo.md at the same entry (line 15 on main; one line added, nothing deleted) and core/libs/prx/libScePlayGo/Export.cpp. The plgx/plgo sentence this PR edits is not removed by #11899, but the rebase may conflict on that line. This PR does not depend on #11899 and does not stack on it. The pr_overlap run on this branch reported no other overlap.

Possible code defect, not fixed here (reported separately): Chunks() in libScePlayGo/Export.cpp inserts scenario ids from 1 (for (id = 1; ...)), while its own error text says "listed ids 0 to 999". The docs were left unchanged for this reason.

Tested

  • Base 82ddc5a9e0cb7590e579f3f4e1aec8388ed31c6d (upstream/main), head 3db7943aff (3 commits).
  • python3 tools/check_conventions.py --base upstream/main: one warning, zero errors. libScePlayGo.md debt entry is 2233 characters (limit 1000); the entry was already 2223 before this PR, the PR adds 10 characters, and splitting it is out of scope.
  • git diff --check 82ddc5a9e0cb7590e579f3f4e1aec8388ed31c6d: clean.
  • python3 tools/env_reference.py --check, same output on the branch and on the base:
    error: APS5_PAD_SPEAKER_FALLBACK_DB has a row in docs/dev/ENVIRONMENT.md but the code no longer reads it
    0 name(s) undocumented, 1 stale
    
    The failure is on the base too, so this PR adds none. The coordinator is fixing that row in a separate PR.
  • pr_overlap.py --branch docs/debt-D7-1 (against 1537 open PRs): PR #11899 listed as above; no other overlap.
  • pr_precheck.py (no-build, run from a copy of the script in the candidate tree): diff_check, conventions_and_pr_template passed; build and C++ checks not applicable (docs only).
  • Code checks by reading the sources at the base SHA (cited in the commit bodies). Not run against a console.

NOT RUN:

  • Build and ctest: docs only, no code change.
  • Windows, macOS, real devices, console.
  • test_quality_heuristics of pr_precheck, which cannot run because the script is absent from the candidate tree. Raw line from the report: can't open file '.../tools/pr_test_quality.py': [Errno 2] No such file or directory.

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:5089474656 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13585). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T18:49:47Z. --- ### What Three documentation corrections, one commit per statement (base `82ddc5a9e0cb7590e579f3f4e1aec8388ed31c6d`, head `3db7943aff`): - 1/3 `f38032465f` `docs/dev/debt/libScePlayerInvitationDialog.md`: the silent-stub entry said `scePlayerInvitationDialogTerminate` and `scePlayerInvitationDialogUpdateStatus` return 0. Code: Terminate returns `NOT_INITIALIZED` (0x80B80003) before initialization; UpdateStatus moves a running dialog to finished and returns the current status (0 before initialization, 1 initialized, 3 finished). - 2/3 `a75a3a4a01` `docs/dev/debt/libScePlayGo.md`: the chunk-table sentence said a `playgo-chunk.dat` without a `plgx` header throws. Code (`ReadPackageChunks`) accepts `plgx` and `plgo`; only other magics or a zero count throw. - 3/3 `3db7943aff` `docs/dev/debt/libSceNpUtility.md`: the unknown-signature list said `sceNpBandwidthTestShutdownWithDetailedInfo` is "not yet defined anywhere in the repo". It is defined and returns `INVALID_ARGUMENT` (Export.cpp L301-L303); its behaviour is already in the Functional entry, so the name is removed from the unknown list. Sources (code at 82ddc5a9e0cb7590e579f3f4e1aec8388ed31c6d): permalinks are in each commit body. Overlap: PR #11899 (`feat(playgo): accept a chunk id list for dumps without metadata`, another contributor) changes `docs/dev/debt/libScePlayGo.md` at the same entry (line 15 on main; one line added, nothing deleted) and `core/libs/prx/libScePlayGo/Export.cpp`. The `plgx`/`plgo` sentence this PR edits is not removed by #11899, but the rebase may conflict on that line. This PR does not depend on #11899 and does not stack on it. The `pr_overlap` run on this branch reported no other overlap. Possible code defect, not fixed here (reported separately): `Chunks()` in `libScePlayGo/Export.cpp` inserts scenario ids from 1 (`for (id = 1; ...)`), while its own error text says "listed ids 0 to 999". The docs were left unchanged for this reason. ### Tested - Base `82ddc5a9e0cb7590e579f3f4e1aec8388ed31c6d` (upstream/main), head `3db7943aff` (3 commits). - `python3 tools/check_conventions.py --base upstream/main`: one warning, zero errors. `libScePlayGo.md` debt entry is 2233 characters (limit 1000); the entry was already 2223 before this PR, the PR adds 10 characters, and splitting it is out of scope. - `git diff --check 82ddc5a9e0cb7590e579f3f4e1aec8388ed31c6d`: clean. - `python3 tools/env_reference.py --check`, same output on the branch and on the base: ``` error: APS5_PAD_SPEAKER_FALLBACK_DB has a row in docs/dev/ENVIRONMENT.md but the code no longer reads it 0 name(s) undocumented, 1 stale ``` The failure is on the base too, so this PR adds none. The coordinator is fixing that row in a separate PR. - `pr_overlap.py --branch docs/debt-D7-1` (against 1537 open PRs): PR #11899 listed as above; no other overlap. - `pr_precheck.py` (no-build, run from a copy of the script in the candidate tree): diff_check, conventions_and_pr_template passed; build and C++ checks not applicable (docs only). - Code checks by reading the sources at the base SHA (cited in the commit bodies). Not run against a console. NOT RUN: - Build and ctest: docs only, no code change. - Windows, macOS, real devices, console. - `test_quality_heuristics` of `pr_precheck`, which cannot run because the script is absent from the candidate tree. Raw line from the report: `can't open file '.../tools/pr_test_quality.py': [Errno 2] No such file or directory`. ### 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
gabichuuuuu commented 2026-11-10 17:48:14 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Read 187ca8ca8a against main.

Correctness. The plgx or plgo wording in libScePlayGo.md matches libScePlayGo/Export.cpp:59-60, which accepts both magics and throws otherwise. The new libSceNpUtility.md:3 entry does not match the code. It says sceNpAppLaunchLinkIntGetCompatibleTitleIdList, ...IdNum and sceNpAppLaunchLinkIntInitialize are declared without parameters with no credible prototype. libSceNpUtility/Export.cpp:420-428 defines all three with full signatures and behaviour: Initialize sets the family flag and returns ALREADY_INITIALIZED on a second call, and the getters go through AppLaunchLinkGetCompatibleTitleIdList and ...Num. main already documents them as modelled at libSceNpUtility.md:41 and :47, and the "intersection of the export table" wording the new bullet uses is no longer on main.

Defect. Remove the new NpUtility bullet; it describes a gap that does not exist and sits above the first ### heading. Non-blocking for the PlayGo part: it splits one entry into four bullets that repeat the libScePlayGo link, and two start with fragments ("A title that builds its set...", "These answers are unverified...") that lose their antecedent. Keep one entry and change only plgx to plgx or plgo.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846639375 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13585#pullrequestreview-5846639375). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:48:14Z. **Review:** COMMENTED --- Read `187ca8ca8a` against `main`. **Correctness.** The `plgx` or `plgo` wording in `libScePlayGo.md` matches `libScePlayGo/Export.cpp:59-60`, which accepts both magics and throws otherwise. The new `libSceNpUtility.md:3` entry does not match the code. It says `sceNpAppLaunchLinkIntGetCompatibleTitleIdList`, `...IdNum` and `sceNpAppLaunchLinkIntInitialize` are declared without parameters with no credible prototype. `libSceNpUtility/Export.cpp:420-428` defines all three with full signatures and behaviour: Initialize sets the family flag and returns `ALREADY_INITIALIZED` on a second call, and the getters go through `AppLaunchLinkGetCompatibleTitleIdList` and `...Num`. `main` already documents them as modelled at `libSceNpUtility.md:41` and `:47`, and the "intersection of the export table" wording the new bullet uses is no longer on `main`. **Defect.** Remove the new NpUtility bullet; it describes a gap that does not exist and sits above the first `###` heading. Non-blocking for the PlayGo part: it splits one entry into four bullets that repeat the `libScePlayGo` link, and two start with fragments ("A title that builds its set...", "These answers are unverified...") that lose their antecedent. Keep one entry and change only `plgx` to `plgx or plgo`. 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!13585
No description provided.