docs(debt): name the HTTP/2 init arguments that titles pass #14236

Merged
xXPBSXx merged 1 commit from upstream-pr/14236 into main 2026-11-01 06:26:29 +00:00
xXPBSXx commented 2026-11-01 02:33:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-11-01T02:33:38Z.


What

The sceHttp2Init debt entry gives two console measurements (a count of 0 returns 0x817B11FE, a count of 1 with a 64 KiB pool returns 0x817B121D) and says that the smallest accepted pool is not measured; AnyPS5 rejects a count of 0, throws for a negative one and does not check the pool. This adds one sentence with the arguments the titles pass:

Every call with a constant count in the titles checked passes 1 to 32, and every call with a constant pool size passes 256 KiB to 2.75 MiB, the range above the measured 64 KiB pool; the value of the other calls is not known.

Changed: docs/dev/debt/libSceHttp2.md, one existing entry; the existing text is unchanged. No code change.

So none of the calls with a constant count reaches the count-0 error or the throw for a negative count, and none of the calls with a constant pool size uses the 64 KiB pool that was measured; whether the console accepts their pools is what the entry leaves open. Two of those calls (PPSA01285 at 0xf3a957 and PPSA01325 at 0x18b5a28) pass a 1 MiB pool, the size for which the entry's console run with a count of 1 produced no result before the runner's timeout.

Count (script and output, one line per call site with title, address and value):

Argument Constant values (call sites) Not shown constant
maximum concurrent requests (4th) 1 (21), 8 (11), 3 (4), 32 (2), 2, 4, 5, 6, 16 (1 each) 2 (computed)
pool size (3rd) 256 KiB (2), 352 KiB (2), 512 KiB (3), 1 MiB (2), 1.5 MiB (1), 2 MiB (1), 2.75 MiB (2) 32 (31 computed, 1 ambiguous)

38 titles import sceHttp2Init and all 38 call it directly: 45 direct calls, no tail jumps, no non-stub call sites. The two calls with a computed count are PPSA26223 at 0x137434d and PPSA27752 at 0x132176d.

Method: for every direct call to the import stub the bytes before the call are decoded and the last write to the argument register (ecx for the count, edx for the pool size) decides: xor of the register with itself or a mov of an immediate is a constant, any other write is "computed", no write in the window is "unreadable", and decodings that disagree are "ambiguous". All three mean "not shown to be a constant", which is why the sentence says so for the other calls; that includes the one ambiguous pool size (PPSA02225 at 0x8c6819, 512 KiB from 15 of 17 start offsets and "computed" from the other 2). Only the titles' own executables are read.

Overlap

All 1692 open PRs were checked on 2026-11-01 at 00:37 UTC against main cc26ab4438. Twenty-four others change docs/dev/debt/libSceHttp2.md or Export.cpp; none changes this entry or sceHttp2Init. Only #11470 conflicts with this change: it rewrites the WebSocket entry on the line before this one. It goes first (see the comment there). #14212, #12456, #11611 and #11586 conflict with main with or without this change. Checked once more on 2026-11-01 at 02:32 UTC against main cf79276fee: none of the 12 pull requests opened since 00:30 UTC changes libSceHttp2 files, and #11470 still conflicts with this change.

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes; based on main cc26ab4438, and it merges with main cf79276fee without a conflict (checked 2026-11-01 02:32 UTC). Not built, 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: #11470 (landing order only; adjacent lines; order proposed on #11470: https://github.com/boykopovar/AnyPS5/pull/11470#issuecomment-6552387534)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5103698866 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14236). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-11-01T02:33:38Z. --- ### What The `sceHttp2Init` debt entry gives two console measurements (a count of 0 returns `0x817B11FE`, a count of 1 with a 64 KiB pool returns `0x817B121D`) and says that the smallest accepted pool is not measured; AnyPS5 rejects a count of 0, throws for a negative one and does not check the pool. This adds one sentence with the arguments the titles pass: > Every call with a constant count in the titles checked passes 1 to 32, and every call with a constant pool size passes 256 KiB to 2.75 MiB, the range above the measured 64 KiB pool; the value of the other calls is not known. Changed: `docs/dev/debt/libSceHttp2.md`, one existing entry; the existing text is unchanged. No code change. So none of the calls with a constant count reaches the count-0 error or the throw for a negative count, and none of the calls with a constant pool size uses the 64 KiB pool that was measured; whether the console accepts their pools is what the entry leaves open. Two of those calls (PPSA01285 at `0xf3a957` and PPSA01325 at `0x18b5a28`) pass a 1 MiB pool, the size for which the entry's console run with a count of 1 produced no result before the runner's timeout. Count ([script and output](https://github.com/boykopovar/AnyPS5/pull/14236#issuecomment-6552388041), one line per call site with title, address and value): | Argument | Constant values (call sites) | Not shown constant | |---|---|---| | maximum concurrent requests (4th) | 1 (21), 8 (11), 3 (4), 32 (2), 2, 4, 5, 6, 16 (1 each) | 2 (computed) | | pool size (3rd) | 256 KiB (2), 352 KiB (2), 512 KiB (3), 1 MiB (2), 1.5 MiB (1), 2 MiB (1), 2.75 MiB (2) | 32 (31 computed, 1 ambiguous) | 38 titles import `sceHttp2Init` and all 38 call it directly: 45 direct calls, no tail jumps, no non-stub call sites. The two calls with a computed count are PPSA26223 at `0x137434d` and PPSA27752 at `0x132176d`. Method: for every direct call to the import stub the bytes before the call are decoded and the last write to the argument register (`ecx` for the count, `edx` for the pool size) decides: `xor` of the register with itself or a `mov` of an immediate is a constant, any other write is "computed", no write in the window is "unreadable", and decodings that disagree are "ambiguous". All three mean "not shown to be a constant", which is why the sentence says so for the other calls; that includes the one ambiguous pool size (PPSA02225 at `0x8c6819`, 512 KiB from 15 of 17 start offsets and "computed" from the other 2). Only the titles' own executables are read. ### Overlap All 1692 open PRs were checked on 2026-11-01 at 00:37 UTC against `main` `cc26ab4438`. Twenty-four others change `docs/dev/debt/libSceHttp2.md` or `Export.cpp`; none changes this entry or `sceHttp2Init`. Only #11470 conflicts with this change: it rewrites the WebSocket entry on the line before this one. It goes first (see the comment there). #14212, #12456, #11611 and #11586 conflict with `main` with or without this change. Checked once more on 2026-11-01 at 02:32 UTC against `main` `cf79276fee`: none of the 12 pull requests opened since 00:30 UTC changes libSceHttp2 files, and #11470 still conflicts with this change. ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes; based on `main` `cc26ab4438`, and it merges with `main` `cf79276fee` without a conflict (checked 2026-11-01 02:32 UTC). Not built, 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: #11470 (landing order only; adjacent lines; order proposed on #11470: https://github.com/boykopovar/AnyPS5/pull/11470#issuecomment-6552387534) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-01 02:37:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T02:37:53Z.

Review: APPROVED


Reviewed — looks good

The new sentence accurately limits its claim to statically verified constant arguments, and the linked inventory provides the per-title call-site evidence.

What I ran

Reviewed head 5281b2c01c1c37f0ac066991bc87b5acd231e879 against current main cf79276fee2f042feb6a7c71d0d6a27e9cfe2592; the merge preview is clean. This is a one-file documentation-only change. Environment: Debian Linux x86-64, Python 3.11.2.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14236
git diff --check cf79276fee2f042feb6a7c71d0d6a27e9cfe2592...5281b2c01c1c37f0ac066991bc87b5acd231e879

Results

Check Result
Diff, conventions and merge preview Passed.
Call-site evidence The attached output lists 45 direct calls across 38 importing titles, separates constants from computed/ambiguous values, and supports the stated ranges. I read the posted output; I did not independently rerun the binary scan.
Build and runtime tests Not applicable to this documentation-only change.
Optional test-quality heuristic Unavailable in the isolated PR snapshot.

Findings

Blocking

None found.

Non-blocking

The declared #11470 ordering remains in effect because both PRs edit adjacent lines in the same debt file. The exact dependency head is not included here; update this branch after #11470 lands.

Sources

Not verified

I did not independently rerun the call-site inventory or run a build. The repository convention check and merge preview passed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5726101031 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14236#pullrequestreview-5726101031). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T02:37:53Z. **Review:** APPROVED --- # Reviewed — looks good The new sentence accurately limits its claim to statically verified constant arguments, and the linked inventory provides the per-title call-site evidence. ## What I ran Reviewed head `5281b2c01c1c37f0ac066991bc87b5acd231e879` against current `main` `cf79276fee2f042feb6a7c71d0d6a27e9cfe2592`; the merge preview is clean. This is a one-file documentation-only change. Environment: Debian Linux x86-64, Python 3.11.2. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14236 git diff --check cf79276fee2f042feb6a7c71d0d6a27e9cfe2592...5281b2c01c1c37f0ac066991bc87b5acd231e879 ``` ## Results | Check | Result | |---|---| | Diff, conventions and merge preview | Passed. | | Call-site evidence | The attached output lists 45 direct calls across 38 importing titles, separates constants from computed/ambiguous values, and supports the stated ranges. I read the posted output; I did not independently rerun the binary scan. | | Build and runtime tests | Not applicable to this documentation-only change. | | Optional test-quality heuristic | Unavailable in the isolated PR snapshot. | ## Findings ### Blocking None found. ### Non-blocking The declared #11470 ordering remains in effect because both PRs edit adjacent lines in the same debt file. The exact dependency head is not included here; update this branch after #11470 lands. ## Sources - [Debt entry at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/5281b2c01c1c37f0ac066991bc87b5acd231e879/docs/dev/debt/libSceHttp2.md) - [Call-site inventory and script output](https://github.com/boykopovar/AnyPS5/pull/14236#issuecomment-6552388041) ## Not verified I did not independently rerun the call-site inventory or run a build. The repository convention check and merge preview passed.
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!14236
No description provided.