docs(debt): update TechnicalDebt.md to reflect recent implementations #1677

Closed
klosixgaming-arch wants to merge 1 commit from upstream-pr/1677 into main
klosixgaming-arch commented 2026-10-08 16:13:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T16:13:49Z.


This PR updates TechnicalDebt.md to remove items that have been completed in recent PRs:

Removed (completed):

  • sce::Json::Value::clear - implemented in #1204
  • libSceNpPartner001 functions (sceNpEAAccessInitialize, sceNpEAAccessTerminate) - implemented in #1517
  • swprintf formatting issues - fixed in #1512/#1511 (now routes through 16-bit guest formatter)
  • wcsrtombs implementation - completed in #1507 (uses guest's single-byte C locale through wcrtomb)
  • sceNetResolverAbort - implemented in #1502

Updated:

  • libSceNpPartner001 entry now reflects the actual implementation status
  • Wide-character conversions entry updated to reflect wcsrtombs completion
  • PPSA23566 unknown signatures list updated to remove completed items

This keeps the technical debt documentation accurate and up-to-date with recent development.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4789653800 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1677). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-08T16:13:49Z. --- This PR updates TechnicalDebt.md to remove items that have been completed in recent PRs: **Removed (completed):** - `sce::Json::Value::clear` - implemented in #1204 - libSceNpPartner001 functions (`sceNpEAAccessInitialize`, `sceNpEAAccessTerminate`) - implemented in #1517 - swprintf formatting issues - fixed in #1512/#1511 (now routes through 16-bit guest formatter) - wcsrtombs implementation - completed in #1507 (uses guest's single-byte C locale through wcrtomb) - sceNetResolverAbort - implemented in #1502 **Updated:** - libSceNpPartner001 entry now reflects the actual implementation status - Wide-character conversions entry updated to reflect wcsrtombs completion - PPSA23566 unknown signatures list updated to remove completed items This keeps the technical debt documentation accurate and up-to-date with recent development.
Dextroid17 commented 2026-10-08 16:53:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-08T16:53:20Z.


Measured review, because the description and the diff disagree about scale: the body names 8 items, the diff removes 247 debt entries plus the document title and all four section headers.

What the diff does

  removed   247 debt entries
            + the title and all four section headers
              (# Project technical debt, ### Build, ### Silent stubs,
               ### Unknown function info, ### Functional)
            270 of the removed lines are byte-identical to #1539's removals
  added     11 lines: a new title, an introduction, and two sections
            (## Silent Stubs, ## Unknown function info) holding about five entries

Claim audit — four of the five "completed" citations point at unmerged work

  sce::Json::Value::clear      #1204        MERGED today                -> legitimate
  libSceNpPartner001           #1517        OPEN                        -> not complete
  swprintf formatting          #1512/#1511  CLOSED (duplicate) / OPEN   -> not complete
  wcsrtombs                    #1507        OPEN                        -> not complete
  sceNetResolverAbort          #1502        OPEN                        -> not complete

Two of those are checkable in one line each on main:

  • core/libs/prx/libc/src/Strings.cpp:441 is return std::wcsrtombs(destination, source, count, state); — so the deleted entry ("wcsrtombs and swprintf still pass guest strings to the host's wchar_t functions") is still true of the code, and #1507 is the PR that changes it.
  • sceNetResolverAbort still calls NotImplemented_nid_no_patch (libSceNet: 44 implemented, 3 stubs, that being one), and #1502 is open.

The libSceNpPartner001 edit points the ledger at the wrong functions. It deletes the entry for [7CxI50-xlCk, pMxXhNozUX8] — still accurate: those are that library's only two exports and both are still stubs (0 implemented / 2 stubs) — and replaces it with one naming sceNpEAAccessInitialize, sceNpEAAccessTerminate, which do not appear in libSceNpPartner001/Export.cpp at all (grep finds no such symbol) and whose PR #1517 is open. So the two real unknowns lose their record, and the replacement describes functions the file does not have.

Why the count matters. docs/dev/PROGRESS.md states the debt file is where "silent behaviour and unverified assumptions" are recorded, and most of the 247 deleted entries are exactly that — behavioural deviations with console cross-references, for example:

  - [sceVideoOutOpen] ... the open param's first word is unknown (PPSA21564 passes 16;
    it is not the byte size, since the affinity mask is at offset 16); only 16 is accepted
  - [sceAgcGetRegisterDefaultsInternal] ... returns the version 0 table ... OpenAGC returns
    the table of the version passed to sceAgcInit instead, and null before it

Deleting those removes the only record that the behaviour is an assumption rather than a verified match. The replacement file keeps about five of them.

What I would do instead. Keep the structure and remove only the entries whose fix is actually merged — on today's main that is the sce::Json::Value::clear entry (#1204, merged today, and the body there is real: Clear(NodeOf(*self))). The other four become removable once #1517, #1511, #1507 and #1502 land, and each should be re-checked at that point rather than assumed complete now. Since #1677 supersedes #1539 with the same 270 lines, only one of the two should survive.

It is also CONFLICTING / DIRTY against main as it stands, so it cannot merge in this state regardless.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6064822886 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1677#issuecomment-6064822886). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-08T16:53:20Z. --- Measured review, because the description and the diff disagree about scale: the body names **8 items**, the diff removes **247 debt entries** plus the document title and all four section headers. **What the diff does** ``` removed 247 debt entries + the title and all four section headers (# Project technical debt, ### Build, ### Silent stubs, ### Unknown function info, ### Functional) 270 of the removed lines are byte-identical to #1539's removals added 11 lines: a new title, an introduction, and two sections (## Silent Stubs, ## Unknown function info) holding about five entries ``` **Claim audit — four of the five "completed" citations point at unmerged work** ``` sce::Json::Value::clear #1204 MERGED today -> legitimate libSceNpPartner001 #1517 OPEN -> not complete swprintf formatting #1512/#1511 CLOSED (duplicate) / OPEN -> not complete wcsrtombs #1507 OPEN -> not complete sceNetResolverAbort #1502 OPEN -> not complete ``` Two of those are checkable in one line each on `main`: - `core/libs/prx/libc/src/Strings.cpp:441` is `return std::wcsrtombs(destination, source, count, state);` — so the deleted entry ("`wcsrtombs` and `swprintf` still pass guest strings to the host's `wchar_t` functions") is still true of the code, and #1507 is the PR that changes it. - `sceNetResolverAbort` still calls `NotImplemented_nid_no_patch` (libSceNet: 44 implemented, 3 stubs, that being one), and #1502 is open. **The libSceNpPartner001 edit points the ledger at the wrong functions.** It deletes the entry for `[7CxI50-xlCk, pMxXhNozUX8]` — still accurate: those are that library's only two exports and both are still stubs (0 implemented / 2 stubs) — and replaces it with one naming `sceNpEAAccessInitialize, sceNpEAAccessTerminate`, which **do not appear in `libSceNpPartner001/Export.cpp` at all** (`grep` finds no such symbol) and whose PR #1517 is open. So the two real unknowns lose their record, and the replacement describes functions the file does not have. **Why the count matters.** `docs/dev/PROGRESS.md` states the debt file is where "silent behaviour and unverified assumptions" are recorded, and most of the 247 deleted entries are exactly that — behavioural deviations with console cross-references, for example: ``` - [sceVideoOutOpen] ... the open param's first word is unknown (PPSA21564 passes 16; it is not the byte size, since the affinity mask is at offset 16); only 16 is accepted - [sceAgcGetRegisterDefaultsInternal] ... returns the version 0 table ... OpenAGC returns the table of the version passed to sceAgcInit instead, and null before it ``` Deleting those removes the only record that the behaviour is an assumption rather than a verified match. The replacement file keeps about five of them. **What I would do instead.** Keep the structure and remove only the entries whose fix is actually merged — on today's `main` that is the `sce::Json::Value::clear` entry (#1204, merged today, and the body there is real: `Clear(NodeOf(*self))`). The other four become removable once #1517, #1511, #1507 and #1502 land, and each should be re-checked at that point rather than assumed complete now. Since #1677 supersedes #1539 with the same 270 lines, only one of the two should survive. It is also `CONFLICTING / DIRTY` against `main` as it stands, so it cannot merge in this state regardless. Written with AI assistance.
klosixgaming-arch commented 2026-10-08 20:54:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T20:54:43Z.


This PR has been replaced by #1833, which is rebased onto the current main branch. The original had merge conflicts that required manual resolution.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068871766 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1677#issuecomment-6068871766). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-08T20:54:43Z. --- This PR has been replaced by #1833, which is rebased onto the current main branch. The original had merge conflicts that required manual resolution.

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