docs(debt): correct stale, contradictory and misplaced entries #14085

Merged
LeandroLP23 merged 12 commits from upstream-pr/14085 into main 2026-11-06 15:37:01 +00:00
LeandroLP23 commented 2026-10-31 18:32:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-31T18:32:06Z.


What

A pass over docs/dev/TechnicalDebt.md and docs/dev/debt/*.md against the current code. It corrects entries that are stale, contradict another entry, or state facts the code no longer matches. Each change below was checked against the source it describes. No behaviour changes; the only code edit removes one // unknown data comment, which the no-comments rule does not allow.

Stale (the code changed since the entry was written)

  • libSceSystemService.md: removed "libkernel's sceKernelConvertUtcToLocaltime, sceKernelConvertLocaltimeToUtc and sceKernelGettimezone still use UTC". They use the host zone now (libkernel/Time/Time.cpp, HostZoneAt).
  • libSceCesCs.md: removed "the KS X 1003 profile is not implemented". sceCesRefersUcsProfileKsX1003 and its Tilde0x7e form exist, and the next entry describes them.
  • libSceAgcDriver.md: the "Color export type against the target format" entry is removed. DecodeColorFormat now gives number format 4 the Uint packing, and exports other than 1/2/3/9 into a UINT target throw, as the "UINT color targets" entry says.
  • libSceAgcDriver.md, image storage tables: atomics no longer fault through a table. Only packed and BY2/BY4 tables are unsupported (ResourceTracker.cpp), as shader.md already says.
  • libSceAgcDriver.md, shader float mode: dropped the claim that FLOAT_MODE follows a single mode. f32 min/max/min3/max3/med3 read the denormal field.
  • shader.md, f32 denormals:
    • the module requests DenormPreserve for f32 where the device offers it (SpirvModuleSetup.cpp), so the entry no longer says it requests none;
    • ds_add_f32 follows the field;
    • modes 1 and 2 are covered by the per-instruction entries, not thrown everywhere.
  • shader.md, LDS float add: the same "does not request" clause is fixed.
  • shader.md, DS src2: the stated reason ("not modelled for LDS float atomics yet") is obsolete, since dsAtomic sets both flush flags. The f32 src2 forms still throw, so the reason is now that their mode behaviour is not measured.
  • relinker.md: libkernel_web.prx no longer "exports only two functions". It has 43 throwing inventory stubs.
  • libkernel.md: __progname is no longer an "unknown data export". It points to the constant eboot.bin, which getprogname and _getprogname return.

Inaccurate

  • libSceAudioOut.md, sceAudioOut2SetSystemDebugState: the entry now matches AudioOut2System.cpp.
    • Only debug state 1 with an 8-byte param returns 0.
    • Other ids or sizes return 0x80268001, a null param 0x8026800C, and a call before initialization 0x80268006.
    • Id 0x20 with size 4, and a null inner param, throw.
  • libSceRegMgr.md: the store is never filled, since the setters throw, so every valid query misses.
  • libSceSsl.md: only libSceHttp2 calls SslTrustSystemRoots_nid_no_patch.
  • libSceBluetoothHid.md: GetDeviceName/GetDeviceInfo throw; the ioctl forwarding describes the native module.
  • libSceFiber.md: the host-stack window applies only to contexts below 64 KiB. Fibers are never registered with ulobjmgr, whatever flag 0x1 says.
  • libSceAgcDriver.md, quad lists: only indirect quad-list draws throw. The restart bit is ignored and no recipe is recorded.
  • libSceAgcDriver.md, unused pixel programs: DecodeState applies the alpha-to-mask override to the dithered word but not to the undithered one.
  • libSceAgc.md, ACB workload calls: they no longer claim to write "the same packets the DCB calls write". sceAgcDcbSetWorkloadStreamInactive throws, as the next entry says.
  • libSceHmd2.md: the FBUEhH9tQ1A link points to InventoryExports.cpp, where the symbol is.
  • libSceAvPlayer.md: the sceAvPlayerSetTrickSpeed link points to Player.cpp, where the zero-speed ordering is.
  • libs.md: the struct is AvPlayerVideoEx, not SceAvPlayerVideoEx.

Duplicates, empty entries, misplaced entries

  • libSceNpCommon.md: removed a second StreamReader/StreamWriter entry that a merge brought back. It contradicted the current one on SkipData.
  • libSceAgc.md: the one-line sceAgcAcbAtomicGds_0900 NID entry is folded into its full entry.
  • libc.md: the three 128-bit division entries are folded into the compiler-rt entry that already covers them, with a link to RuntimeSupport.cpp.
  • libSceVoiceChat.md: the "Unknown function info" entry no longer repeats the 25 handler and event exports listed under "Silent stubs".
  • Removed the empty bullets in libSceCommonDialog.md (with its otherwise empty section) and libSceLibcInternal.md.
  • TechnicalDebt.md:
    • "Everywhere... except:" now points to the per-library Silent stubs sections;
    • the sceNetCtlGetIfStat entry moves to libSceNetCtl.md.
  • libkernel_sys.md:
    • the entry that sat above the first heading moves under "Unknown function info";
    • its second "Unknown function info" section (after "Functional") is merged into the first, with the inventory identity evidence that describes the first section's table;
    • the unverifiable "exports supplied by open pull requests are excluded" is dropped.
  • libSceFreeTypeOt.md, libSceNpManager.md and libSceNpUtility.md: the entries that sat above the first heading move under "Unknown function info", unchanged.
  • shader.md:
    • the bindless 8_SRGB entry, which said "read zeros", is removed, since the image table entry says image_load decodes them;
    • "(next entry)" now names the v_log_f32 entry.

Not changed here, for follow-ups:

  • The f32 DS src2 forms could now route through the modelled LDS float atomics (#14247).
  • libSceLibreSsl.md, libSceLibreSsl3.md and libSceNKWebKit.md each have two "Functional" sections; merging them would conflict with about 20 open pull requests that add entries there.
  • #10378 also removes the throwing pop_front placeholder, whose plain symbol name still resolves to the stub on main.

Overlap

tools/pr_overlap.py lists 37 open pull requests that edit some of the same lines, mostly by rewriting a whole entry for their own change, so this conflicts textually with whichever lands first. I left out three entries that open PRs are rewriting for their own work: the libSceLibreSsl3 exclusion list, which #10452, #10490, #10491, #10493, #12315, #12754, #12945 and #13897 each extend (it names 7 of the 13 implemented exports today); sceSystemServiceLaunchWebBrowser, which #12895 implements; and the Cp1254/Cp1258 "as in Cp1250" wording, which #13898 changes. The stale libSceHttp2 "default trust" entry, which #11145 made obsolete, is left to #11575, which deletes it.

Tested

  • tools/check_conventions.py --base origin/main: 0 errors. Its debt-length warnings are all on entries that were over 1000 characters before this change; none of them grew past the limit here.
  • Every relative link in the touched files resolves.

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:5100388003 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14085). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-31T18:32:06Z. --- ### What A pass over `docs/dev/TechnicalDebt.md` and `docs/dev/debt/*.md` against the current code. It corrects entries that are stale, contradict another entry, or state facts the code no longer matches. Each change below was checked against the source it describes. No behaviour changes; the only code edit removes one `// unknown data` comment, which the no-comments rule does not allow. **Stale (the code changed since the entry was written)** - `libSceSystemService.md`: removed "libkernel's `sceKernelConvertUtcToLocaltime`, `sceKernelConvertLocaltimeToUtc` and `sceKernelGettimezone` still use UTC". They use the host zone now (`libkernel/Time/Time.cpp`, `HostZoneAt`). - `libSceCesCs.md`: removed "the KS X 1003 profile is not implemented". `sceCesRefersUcsProfileKsX1003` and its `Tilde0x7e` form exist, and the next entry describes them. - `libSceAgcDriver.md`: the "Color export type against the target format" entry is removed. `DecodeColorFormat` now gives number format 4 the `Uint` packing, and exports other than 1/2/3/9 into a UINT target throw, as the "UINT color targets" entry says. - `libSceAgcDriver.md`, image storage tables: atomics no longer fault through a table. Only packed and BY2/BY4 tables are unsupported (`ResourceTracker.cpp`), as `shader.md` already says. - `libSceAgcDriver.md`, shader float mode: dropped the claim that `FLOAT_MODE` follows a single mode. f32 min/max/min3/max3/med3 read the denormal field. - `shader.md`, f32 denormals: - the module requests `DenormPreserve` for f32 where the device offers it (`SpirvModuleSetup.cpp`), so the entry no longer says it requests none; - `ds_add_f32` follows the field; - modes 1 and 2 are covered by the per-instruction entries, not thrown everywhere. - `shader.md`, LDS float add: the same "does not request" clause is fixed. - `shader.md`, DS src2: the stated reason ("not modelled for LDS float atomics yet") is obsolete, since `dsAtomic` sets both flush flags. The f32 src2 forms still throw, so the reason is now that their mode behaviour is not measured. - `relinker.md`: `libkernel_web.prx` no longer "exports only two functions". It has 43 throwing inventory stubs. - `libkernel.md`: `__progname` is no longer an "unknown data export". It points to the constant `eboot.bin`, which `getprogname` and `_getprogname` return. **Inaccurate** - `libSceAudioOut.md`, `sceAudioOut2SetSystemDebugState`: the entry now matches `AudioOut2System.cpp`. - Only debug state 1 with an 8-byte param returns 0. - Other ids or sizes return `0x80268001`, a null param `0x8026800C`, and a call before initialization `0x80268006`. - Id `0x20` with size 4, and a null inner param, throw. - `libSceRegMgr.md`: the store is never filled, since the setters throw, so every valid query misses. - `libSceSsl.md`: only libSceHttp2 calls `SslTrustSystemRoots_nid_no_patch`. - `libSceBluetoothHid.md`: `GetDeviceName`/`GetDeviceInfo` throw; the ioctl forwarding describes the native module. - `libSceFiber.md`: the host-stack window applies only to contexts below 64 KiB. Fibers are never registered with ulobjmgr, whatever flag `0x1` says. - `libSceAgcDriver.md`, quad lists: only indirect quad-list draws throw. The restart bit is ignored and no recipe is recorded. - `libSceAgcDriver.md`, unused pixel programs: DecodeState applies the alpha-to-mask override to the dithered word but not to the undithered one. - `libSceAgc.md`, ACB workload calls: they no longer claim to write "the same packets the DCB calls write". `sceAgcDcbSetWorkloadStreamInactive` throws, as the next entry says. - `libSceHmd2.md`: the `FBUEhH9tQ1A` link points to `InventoryExports.cpp`, where the symbol is. - `libSceAvPlayer.md`: the `sceAvPlayerSetTrickSpeed` link points to `Player.cpp`, where the zero-speed ordering is. - `libs.md`: the struct is `AvPlayerVideoEx`, not `SceAvPlayerVideoEx`. **Duplicates, empty entries, misplaced entries** - `libSceNpCommon.md`: removed a second StreamReader/StreamWriter entry that a merge brought back. It contradicted the current one on `SkipData`. - `libSceAgc.md`: the one-line `sceAgcAcbAtomicGds_0900` NID entry is folded into its full entry. - `libc.md`: the three 128-bit division entries are folded into the compiler-rt entry that already covers them, with a link to `RuntimeSupport.cpp`. - `libSceVoiceChat.md`: the "Unknown function info" entry no longer repeats the 25 handler and event exports listed under "Silent stubs". - Removed the empty bullets in `libSceCommonDialog.md` (with its otherwise empty section) and `libSceLibcInternal.md`. - `TechnicalDebt.md`: - "Everywhere... except:" now points to the per-library Silent stubs sections; - the `sceNetCtlGetIfStat` entry moves to `libSceNetCtl.md`. - `libkernel_sys.md`: - the entry that sat above the first heading moves under "Unknown function info"; - its second "Unknown function info" section (after "Functional") is merged into the first, with the inventory identity evidence that describes the first section's table; - the unverifiable "exports supplied by open pull requests are excluded" is dropped. - `libSceFreeTypeOt.md`, `libSceNpManager.md` and `libSceNpUtility.md`: the entries that sat above the first heading move under "Unknown function info", unchanged. - `shader.md`: - the bindless 8_SRGB entry, which said "read zeros", is removed, since the image table entry says `image_load` decodes them; - "(next entry)" now names the `v_log_f32` entry. Not changed here, for follow-ups: - The f32 DS src2 forms could now route through the modelled LDS float atomics (#14247). - `libSceLibreSsl.md`, `libSceLibreSsl3.md` and `libSceNKWebKit.md` each have two "Functional" sections; merging them would conflict with about 20 open pull requests that add entries there. - #10378 also removes the throwing `pop_front` placeholder, whose plain symbol name still resolves to the stub on `main`. ### Overlap `tools/pr_overlap.py` lists 37 open pull requests that edit some of the same lines, mostly by rewriting a whole entry for their own change, so this conflicts textually with whichever lands first. I left out three entries that open PRs are rewriting for their own work: the `libSceLibreSsl3` exclusion list, which #10452, #10490, #10491, #10493, #12315, #12754, #12945 and #13897 each extend (it names 7 of the 13 implemented exports today); `sceSystemServiceLaunchWebBrowser`, which #12895 implements; and the Cp1254/Cp1258 "as in Cp1250" wording, which #13898 changes. The stale `libSceHttp2` "default trust" entry, which #11145 made obsolete, is left to #11575, which deletes it. ### Tested - `tools/check_conventions.py --base origin/main`: 0 errors. Its `debt-length` warnings are all on entries that were over 1000 characters before this change; none of them grew past the limit here. - Every relative link in the touched files resolves. ### 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
MarcZX10 commented 2026-10-31 18:33:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T18:33:54Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

This cleanup and open PR #11575 both remove the same libSceHttp2 default trust debt entry, but the checklist says Depends on: none and no landing order is recorded.

What I ran

Reviewed head 2fe975165876fb5f295720a24976b4ba5001c6cc against PR base ca073ec3ad0d766ea9f4658e418a5c977001a353; the merge preview against that current main was clean. Environment: Linux x86-64, Python 3.11.2, GCC 12.2.0. This documentation change was not built.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14085 --output-dir /tmp/anyps5-14085-review
gh api repos/boykopovar/AnyPS5/pulls/11575 --jq '{state:.state,head:.head.sha,base:.base.sha}'
gh api repos/boykopovar/AnyPS5/pulls/11575/files --paginate --jq '.[] | select(.filename=="docs/dev/debt/libSceHttp2.md") | .patch'
gh api repos/boykopovar/AnyPS5/pulls/14085/files --paginate --jq '.[] | select(.filename=="docs/dev/debt/libSceHttp2.md") | .patch'

Results

Check Result
Diff check Passed.
Conventions and PR template Passed.
Merge preview against current main Clean.
Live overlap check Confirmed both open PRs delete the same debt bullet; #11575 is open at 6ae1f9381bc8feb9f91cd1af41bc07d8895ace81.
Build/tests Not applicable to the documentation edits; no build was run.
ABI and test-quality helpers Could not run because those workspace-only scripts are absent from the isolated PR snapshot.
Hosted CI Conventions, eligibility, intake and labels passed. Windows was still running; portability/report were in progress. Product and relinker jobs were skipped.
Unedited local check output
All conventions checks passed.

The diff check exited 0 with no output. The precheck mergeability report says the PR preview against current main was clean.

Findings

Blocking

The PR deletes the libSceHttp2 default trust bullet in docs/dev/debt/libSceHttp2.md; open #11575 deletes that same bullet in its current diff. The contribution rules say authors should agree which overlapping change lands first and declare that order with Depends on. Please coordinate with #11575's author, then either remove the duplicate deletion from one PR or record the agreed dependency/order in the checklist. This finding concerns only the duplicated documentation edit; I found no need to change the other cleanup items for this reason.

Non-blocking

None.

Sources

Not verified

I did not validate every behavior statement in the edited technical-debt entries against its implementation. The review finding is limited to the exact duplicate edit and repository overlap rule. I did not run a build or product tests.

To get this to a good state

Record an agreed landing order with the corresponding Depends on entry, or leave the shared debt bullet to the other PR. I will recheck the overlap and rerun the same no-build checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5724321473 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14085#pullrequestreview-5724321473). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T18:33:54Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This cleanup and open PR #11575 both remove the same `libSceHttp2 default trust` debt entry, but the checklist says `Depends on: none` and no landing order is recorded. ## What I ran Reviewed head `2fe975165876fb5f295720a24976b4ba5001c6cc` against PR base `ca073ec3ad0d766ea9f4658e418a5c977001a353`; the merge preview against that current `main` was clean. Environment: Linux x86-64, Python 3.11.2, GCC 12.2.0. This documentation change was not built. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14085 --output-dir /tmp/anyps5-14085-review gh api repos/boykopovar/AnyPS5/pulls/11575 --jq '{state:.state,head:.head.sha,base:.base.sha}' gh api repos/boykopovar/AnyPS5/pulls/11575/files --paginate --jq '.[] | select(.filename=="docs/dev/debt/libSceHttp2.md") | .patch' gh api repos/boykopovar/AnyPS5/pulls/14085/files --paginate --jq '.[] | select(.filename=="docs/dev/debt/libSceHttp2.md") | .patch' ``` ## Results | Check | Result | |---|---| | Diff check | Passed. | | Conventions and PR template | Passed. | | Merge preview against current `main` | Clean. | | Live overlap check | Confirmed both open PRs delete the same debt bullet; #11575 is open at `6ae1f9381bc8feb9f91cd1af41bc07d8895ace81`. | | Build/tests | Not applicable to the documentation edits; no build was run. | | ABI and test-quality helpers | Could not run because those workspace-only scripts are absent from the isolated PR snapshot. | | Hosted CI | Conventions, eligibility, intake and labels passed. Windows was still running; portability/report were in progress. Product and relinker jobs were skipped. | <details><summary>Unedited local check output</summary> ```text All conventions checks passed. ``` The diff check exited 0 with no output. The precheck mergeability report says the PR preview against current `main` was clean. </details> ## Findings ### Blocking The PR deletes the `libSceHttp2 default trust` bullet in `docs/dev/debt/libSceHttp2.md`; open #11575 deletes that same bullet in its current diff. The contribution rules say authors should agree which overlapping change lands first and declare that order with `Depends on`. Please coordinate with #11575's author, then either remove the duplicate deletion from one PR or record the agreed dependency/order in the checklist. This finding concerns only the duplicated documentation edit; I found no need to change the other cleanup items for this reason. ### Non-blocking None. ## Sources - [#14085 diff from current base `ca073ec3` to head `2fe97516`](https://github.com/boykopovar/AnyPS5/compare/ca073ec3ad0d766ea9f4658e418a5c977001a353...2fe975165876fb5f295720a24976b4ba5001c6cc) - [#11575 diff from base `d2863131` to head `6ae1f938`](https://github.com/boykopovar/AnyPS5/compare/d2863131efb0e41c116e4197841b6a3086ce087a...6ae1f9381bc8feb9f91cd1af41bc07d8895ace81) - [Branching and overlap requirements at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/ca073ec3ad0d766ea9f4658e418a5c977001a353/CONTRIBUTING.md#L58-L72) ## Not verified I did not validate every behavior statement in the edited technical-debt entries against its implementation. The review finding is limited to the exact duplicate edit and repository overlap rule. I did not run a build or product tests. ## To get this to a good state Record an agreed landing order with the corresponding `Depends on` entry, or leave the shared debt bullet to the other PR. I will recheck the overlap and rerun the same no-build checks on the updated head.
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!14085
No description provided.