feat(libSceNpCommon): implement the sce::np::StreamReader and StreamWriter helpers #13345

Merged
hypermoist merged 2 commits from upstream-pr/13345 into main 2026-10-30 20:14:32 +00:00
hypermoist commented 2026-10-30 13:10:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-30T13:10:31Z.


What

Implements the sce::np::StreamReader and sce::np::StreamWriter helper methods (14 exports) from libSceNpCommon.sprx of firmware 13.60 (read from disassembly, not measured on a console).

  • Already stubs on main: 4 had placeholder int (void) declarations: Read (with a StreamCtx), ReadAll, SkipData and WriteData, each without a context unless stated.
  • Missing from AnyPS5: the other 10 are exported by the module but were not declared. They are the StreamCtx overloads of ReadAll, ReadData, SkipAll, SkipData, WriteData and WriteFilledData, plus ReadData, SkipAll and WriteFilledData without a context and Write with one.

Contract. Each helper calls the stream's own virtual Read or Write, which is slot +0x10 of its vtable: (self, handle, buffer, size, size_t* count). The context variants then pass every chunk to the context's slot +0x10: (ctx, data, count). The objects are declared in Api.hpp as NpStreamReader, NpStreamWriter and NpStreamCtx, each just a vtable pointer. The handle is passed through. A negative stream or context result is returned as is; positive results count as success and become 0.

  • Read / Write (with a context): one stream call, then the context sees the reported count.
  • ReadData: reads until the buffer is full or the stream reports 0 bytes. It returns 0x80559E10 if the buffer wasn't filled, and writes the total through the count pointer when that isn't null, including after a failure.
  • ReadAll: like ReadData, but a short stream succeeds and reports what it got. A full buffer is followed by a one-byte probe read: if the stream has more data, it returns 0x80559E0D and the count is not written. A stream that reports more bytes than it was asked for reaches the module's assertion, which calls sceNpPanic, as here.
  • SkipAll: reads 256-byte chunks into a local buffer until the stream reports 0. It adds each reported count to the counter, even when that read or its context call fails.
  • SkipData(size): skips in chunks of at most 256 bytes using the ReadData loop. It adds what each chunk's ReadData completed before any failing call, never the failing call's own count, and stops on a failure or a short chunk (0x80559E10). A size of 0 or less does nothing.
  • WriteData: writes until everything has been accepted, then writes the total through the count pointer when that isn't null.
  • WriteFilledData(fill, size): writes a 256-byte buffer of the fill byte until size bytes are accepted. A size of 0 or less does nothing.

The debt file records the module behaviour kept as is:

  • the ReadAll assertion;
  • WriteData and WriteFilledData looping for as long as the stream accepts 0 bytes;
  • SkipAll adding the count of a failed read, while SkipData adds only the bytes completed before the failure (for a first read returning -1 with count 7, SkipAll adds 7 and SkipData 0);
  • positive results being turned into 0.

Tested

The tests, the differential and the corruption check below ran on head b0853d70abd. The mutation check ran on the same helper code before the latest main merge. Linux (CachyOS, GCC 16.2, Release): ctest --test-dir build -R 'np_common|public_headers' --output-on-failure, 70/70 passed. guest_np_common_runtime passed 3 of 3 runs. The full suite (2,998 tests), run on this change before the latest main merge, also passed apart from guest_freetype, which fails here because my local 3rdparty/freetype checkout is not at the pinned commit; this PR does not touch FreeType.

Firmware differential: 20,426 cases, run from the module's code under unicorn and replayed through this implementation, with 0 mismatches.

  • Fakes: the stream and the context are fakes whose slot +0x10 follows a script of results and byte counts. The scripts include failures, positive results, short reads and writes, counts larger than requested, and a stream that ends early.
  • Compared:
    • the result;
    • the final count or counter;
    • the destination buffer, with a 16-byte 0xCC margin;
    • a log of every stream and context call: which buffer and offset (caller's or internal), the size requested, and the bytes the writer or context saw.
  • Coverage: every one of the 14 exports, with and without a context and a count pointer, for sizes from negative to 1,200.
  • Left out: 574 generated cases that reach the ReadAll assertion.
  • Corruption check: a copy with 2% of the expected outputs corrupted gives 375 mismatches.
  • Generator: np_stream_helpers_make_cases.py and np_stream_helpers_replay.cpp in this gist, together with emucall.py. emucall.py gained a callback() method that lets a guest vtable point at Python code. It needs a decrypted module, which is not attached.

Guest test: TestStreamHelpers in GuestNpCommonRuntime.cpp uses a chunked reader, a collecting writer and a summing context to check:

  • ReadData filling a buffer across short reads and reporting a stream that ends early;
  • ReadAll with a short stream, an exactly full buffer, and a stream longer than the buffer;
  • SkipData adding to the counter;
  • SkipAll stopping at the end and at a failed read;
  • a failing and a positive context result;
  • WriteData through short writes;
  • WriteFilledData in chunks, and with a negative size;
  • Write making a single stream call.

Mutation check: I changed 9 single lines, one at a time, and the differential catches all 9:

  • the ReadAll probe check dropped;
  • ReadAll treating an empty first read as more data (this one hangs, as the module would);
  • the SkipAll counter updated after the error check;
  • ReadData stopping on < instead of !=;
  • the SkipData loop bound changed from >= 1 to > 1;
  • the SkipData chunk not capped by the remaining size;
  • the fill byte replaced by 0;
  • the WriteData context call dropped;
  • Read returning positive results as they are.

Windows not built. Not run on a console.

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.
    • This PR lands before #13120. #13120 declares the 10 exports missing from main as NotImplemented stubs, so it drops them from InventoryExports.cpp after this lands. Agreed with its author (comment): #13120 has removed the ten declarations and declares Depends on: #13130, #13270, #13277, #13281, #13345.
    • Neighbouring lines only, no shared exports: #12839, #12852, #12859, #12919, #13130, #13270, #13277 and #13281 (all mine) touch nearby stub, declaration, test or debt lines. Either order works; whichever lands second needs a trivial merge, and I will do it.
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Assisted With AI: Yes. All tests were run locally on computer hardware (AMD Ryzen 5 5600G, 32 GB RAM, NVIDIA GeForce RTX 3060, CachyOS Linux 7.3, GCC 16.2), not on an actual console.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5084871671 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13345). Originally posted by [hypermoist](https://github.com/hypermoist) on 2026-10-30T13:10:31Z. --- ### What Implements the `sce::np::StreamReader` and `sce::np::StreamWriter` helper methods (14 exports) from `libSceNpCommon.sprx` of firmware 13.60 (read from disassembly, not measured on a console). - **Already stubs on `main`:** 4 had placeholder `int (void)` declarations: `Read` (with a `StreamCtx`), `ReadAll`, `SkipData` and `WriteData`, each without a context unless stated. - **Missing from AnyPS5:** the other 10 are exported by the module but were not declared. They are the `StreamCtx` overloads of `ReadAll`, `ReadData`, `SkipAll`, `SkipData`, `WriteData` and `WriteFilledData`, plus `ReadData`, `SkipAll` and `WriteFilledData` without a context and `Write` with one. **Contract.** Each helper calls the stream's own virtual `Read` or `Write`, which is slot `+0x10` of its vtable: `(self, handle, buffer, size, size_t* count)`. The context variants then pass every chunk to the context's slot `+0x10`: `(ctx, data, count)`. The objects are declared in `Api.hpp` as `NpStreamReader`, `NpStreamWriter` and `NpStreamCtx`, each just a vtable pointer. The handle is passed through. A negative stream or context result is returned as is; positive results count as success and become 0. - **`Read` / `Write` (with a context):** one stream call, then the context sees the reported count. - **`ReadData`:** reads until the buffer is full or the stream reports 0 bytes. It returns `0x80559E10` if the buffer wasn't filled, and writes the total through the count pointer when that isn't null, including after a failure. - **`ReadAll`:** like `ReadData`, but a short stream succeeds and reports what it got. A full buffer is followed by a one-byte probe read: if the stream has more data, it returns `0x80559E0D` and the count is not written. A stream that reports more bytes than it was asked for reaches the module's assertion, which calls `sceNpPanic`, as here. - **`SkipAll`:** reads 256-byte chunks into a local buffer until the stream reports 0. It adds each reported count to the counter, even when that read or its context call fails. - **`SkipData(size)`:** skips in chunks of at most 256 bytes using the `ReadData` loop. It adds what each chunk's `ReadData` completed before any failing call, never the failing call's own count, and stops on a failure or a short chunk (`0x80559E10`). A size of 0 or less does nothing. - **`WriteData`:** writes until everything has been accepted, then writes the total through the count pointer when that isn't null. - **`WriteFilledData(fill, size)`:** writes a 256-byte buffer of the fill byte until `size` bytes are accepted. A size of 0 or less does nothing. The debt file records the module behaviour kept as is: - the `ReadAll` assertion; - `WriteData` and `WriteFilledData` looping for as long as the stream accepts 0 bytes; - `SkipAll` adding the count of a failed read, while `SkipData` adds only the bytes completed before the failure (for a first read returning -1 with count 7, `SkipAll` adds 7 and `SkipData` 0); - positive results being turned into 0. ### Tested The tests, the differential and the corruption check below ran on head `b0853d70abd`. The mutation check ran on the same helper code before the latest `main` merge. Linux (CachyOS, GCC 16.2, Release): `ctest --test-dir build -R 'np_common|public_headers' --output-on-failure`, 70/70 passed. `guest_np_common_runtime` passed 3 of 3 runs. The full suite (2,998 tests), run on this change before the latest `main` merge, also passed apart from `guest_freetype`, which fails here because my local `3rdparty/freetype` checkout is not at the pinned commit; this PR does not touch FreeType. **Firmware differential:** 20,426 cases, run from the module's code under unicorn and replayed through this implementation, with 0 mismatches. - **Fakes:** the stream and the context are fakes whose slot `+0x10` follows a script of results and byte counts. The scripts include failures, positive results, short reads and writes, counts larger than requested, and a stream that ends early. - **Compared:** - the result; - the final count or counter; - the destination buffer, with a 16-byte `0xCC` margin; - a log of every stream and context call: which buffer and offset (caller's or internal), the size requested, and the bytes the writer or context saw. - **Coverage:** every one of the 14 exports, with and without a context and a count pointer, for sizes from negative to 1,200. - **Left out:** 574 generated cases that reach the `ReadAll` assertion. - **Corruption check:** a copy with 2% of the expected outputs corrupted gives 375 mismatches. - **Generator:** `np_stream_helpers_make_cases.py` and `np_stream_helpers_replay.cpp` in [this gist](https://gist.github.com/hypermoist/1834cf221fd737cdb4cca272cc1156d1), together with `emucall.py`. `emucall.py` gained a `callback()` method that lets a guest vtable point at Python code. It needs a decrypted module, which is not attached. **Guest test:** `TestStreamHelpers` in `GuestNpCommonRuntime.cpp` uses a chunked reader, a collecting writer and a summing context to check: - `ReadData` filling a buffer across short reads and reporting a stream that ends early; - `ReadAll` with a short stream, an exactly full buffer, and a stream longer than the buffer; - `SkipData` adding to the counter; - `SkipAll` stopping at the end and at a failed read; - a failing and a positive context result; - `WriteData` through short writes; - `WriteFilledData` in chunks, and with a negative size; - `Write` making a single stream call. **Mutation check:** I changed 9 single lines, one at a time, and the differential catches all 9: - the `ReadAll` probe check dropped; - `ReadAll` treating an empty first read as more data (this one hangs, as the module would); - the `SkipAll` counter updated after the error check; - `ReadData` stopping on `<` instead of `!=`; - the `SkipData` loop bound changed from `>= 1` to `> 1`; - the `SkipData` chunk not capped by the remaining size; - the fill byte replaced by 0; - the `WriteData` context call dropped; - `Read` returning positive results as they are. Windows not built. Not run on a console. ### 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. - **This PR lands before #13120.** #13120 declares the 10 exports missing from `main` as `NotImplemented` stubs, so it drops them from `InventoryExports.cpp` after this lands. Agreed with its author ([comment](https://github.com/boykopovar/AnyPS5/pull/13120#issuecomment-6523699240)): #13120 has removed the ten declarations and declares `Depends on: #13130, #13270, #13277, #13281, #13345`. - **Neighbouring lines only, no shared exports:** #12839, #12852, #12859, #12919, #13130, #13270, #13277 and #13281 (all mine) touch nearby stub, declaration, test or debt lines. Either order works; whichever lands second needs a trivial merge, and I will do it. - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes Assisted With AI: Yes. All tests were run locally on computer hardware (AMD Ryzen 5 5600G, 32 GB RAM, NVIDIA GeForce RTX 3060, CachyOS Linux 7.3, GCC 16.2), not on an actual console. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-30 13:14:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T13:14:02Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The implementation review found no confirmed code defect, but the landing order for 10 exports shared with open PR #13120 is not yet agreed or recorded.

What I ran

Reviewed head b0853d70abdca600c552e9d0437d14df7ceaeecd against base ee9a9a66cffb77ba42781b66d764e96d22843554; the merge preview against the current target was clean. Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5. I did not build or compile.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13345
python3 tools/check_conventions.py --base ee9a9a66cffb77ba42781b66d764e96d22843554 --head b0853d70abdca600c552e9d0437d14df7ceaeecd --title 'feat(libSceNpCommon): implement the sce::np::StreamReader and StreamWriter helpers' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13345-b0853d70abdc/pr-body.md
git diff --check ee9a9a66cffb77ba42781b66d764e96d22843554...b0853d70abdca600c552e9d0437d14df7ceaeecd
python3 tools/pr_stack_check.py 13345 --repo boykopovar/AnyPS5
gh pr diff 13120 --repo boykopovar/AnyPS5

Results

Check Result
Diff check and conventions/template Passed.
Source review Reviewed the 14 exported wrappers, vtable dispatch, chunk loops, context callbacks, error paths, declarations, tests, and debt entry; no independent correctness defect confirmed from the diff.
Merge preview Clean against the current target.
Export ABI audit Not available: the precheck's isolated head lacks the workspace-local audit helper; its direct invocation also could not resolve the expected nested repository path.
C++ test/build Not run locally; these require a build.
Hosted CI Eligibility, conventions, intake, labels, library-portability, and report were pending at final refresh.
Author-reported checks The PR description reports Linux CTest 70/70, three passing focused runs, 20,426 firmware differential cases with zero mismatches, and nine mutation detections. I did not independently run these, and the description does not identify the exact tested head SHA.
Unedited local check output

Conventions:

All conventions checks passed.

Precheck summary:

# PR precheck report — checks failed
Head: `b0853d70abdca600c552e9d0437d14df7ceaeecd`
Base: `ee9a9a66cffb77ba42781b66d764e96d22843554`
Head unchanged at completion: **True**
Base unchanged at completion: **True**

The precheck's reported failures were missing workspace-local helpers (pr_abi_audit.py and pr_test_quality.py) in its isolated PR worktree; they are not findings against the submitted source.

Findings

Blocking

  • Unresolved export overlap with #13120. The current open head of #13120 still declares 10 of the exports implemented here as NotImplemented stubs. The PR description proposes that #13345 land first, but the latest discussion on #13120 asks its author to confirm that order and has no reply yet. The repository asks contributors to agree on overlapping exports and record the order with Depends on; without coordination, landing #13120 after this change would reintroduce duplicate definitions. Please obtain and record the agreed landing order, and ensure the second PR removes the overlapping declarations before it lands.

Non-blocking

  • The differential and mutation evidence is useful, but is author-reported and not tied to an exact tested SHA in the PR description. I have kept it separate from locally run checks.

Sources

Not verified

I did not independently run the C++ tests, a build, the firmware differential, the mutation checks, or console behavior. Hosted CI was still queued.

To get this to a good state

Please record an agreed order for #13345 and #13120 and make sure the PR that lands second removes the shared exports. I will re-check the overlap and rerun the relevant checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5712754259 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13345#pullrequestreview-5712754259). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T13:14:02Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The implementation review found no confirmed code defect, but the landing order for 10 exports shared with open PR #13120 is not yet agreed or recorded. ## What I ran Reviewed head `b0853d70abdca600c552e9d0437d14df7ceaeecd` against base `ee9a9a66cffb77ba42781b66d764e96d22843554`; the merge preview against the current target was clean. Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5. I did not build or compile. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13345 python3 tools/check_conventions.py --base ee9a9a66cffb77ba42781b66d764e96d22843554 --head b0853d70abdca600c552e9d0437d14df7ceaeecd --title 'feat(libSceNpCommon): implement the sce::np::StreamReader and StreamWriter helpers' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13345-b0853d70abdc/pr-body.md git diff --check ee9a9a66cffb77ba42781b66d764e96d22843554...b0853d70abdca600c552e9d0437d14df7ceaeecd python3 tools/pr_stack_check.py 13345 --repo boykopovar/AnyPS5 gh pr diff 13120 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Diff check and conventions/template | Passed. | | Source review | Reviewed the 14 exported wrappers, vtable dispatch, chunk loops, context callbacks, error paths, declarations, tests, and debt entry; no independent correctness defect confirmed from the diff. | | Merge preview | Clean against the current target. | | Export ABI audit | Not available: the precheck's isolated head lacks the workspace-local audit helper; its direct invocation also could not resolve the expected nested repository path. | | C++ test/build | Not run locally; these require a build. | | Hosted CI | Eligibility, conventions, intake, labels, library-portability, and report were pending at final refresh. | | Author-reported checks | The PR description reports Linux CTest 70/70, three passing focused runs, 20,426 firmware differential cases with zero mismatches, and nine mutation detections. I did not independently run these, and the description does not identify the exact tested head SHA. | <details><summary>Unedited local check output</summary> Conventions: ```text All conventions checks passed. ``` Precheck summary: ```text # PR precheck report — checks failed Head: `b0853d70abdca600c552e9d0437d14df7ceaeecd` Base: `ee9a9a66cffb77ba42781b66d764e96d22843554` Head unchanged at completion: **True** Base unchanged at completion: **True** ``` The precheck's reported failures were missing workspace-local helpers (`pr_abi_audit.py` and `pr_test_quality.py`) in its isolated PR worktree; they are not findings against the submitted source. </details> ## Findings ### Blocking - **Unresolved export overlap with #13120.** The current open head of #13120 still declares 10 of the exports implemented here as `NotImplemented` stubs. The PR description proposes that #13345 land first, but the latest discussion on #13120 asks its author to confirm that order and has no reply yet. The repository asks contributors to agree on overlapping exports and record the order with `Depends on`; without coordination, landing #13120 after this change would reintroduce duplicate definitions. Please obtain and record the agreed landing order, and ensure the second PR removes the overlapping declarations before it lands. ### Non-blocking - The differential and mutation evidence is useful, but is author-reported and not tied to an exact tested SHA in the PR description. I have kept it separate from locally run checks. ## Sources - [Reviewed implementation and declarations at this head](https://github.com/boykopovar/AnyPS5/commit/b0853d70abdca600c552e9d0437d14df7ceaeecd). - [Overlapping stub inventory at the current #13120 head](https://github.com/boykopovar/AnyPS5/commit/1a22e32927072a8fc3f8081432ded95f024e63da). - [Repository overlap and `Depends on` rule](https://github.com/boykopovar/AnyPS5/blob/ee9a9a66cffb77ba42781b66d764e96d22843554/CONTRIBUTING.md#L58-L75). ## Not verified I did not independently run the C++ tests, a build, the firmware differential, the mutation checks, or console behavior. Hosted CI was still queued. ## To get this to a good state Please record an agreed order for #13345 and #13120 and make sure the PR that lands second removes the shared exports. I will re-check the overlap and rerun the relevant checks on the updated head.
MarcZX10 commented 2026-10-30 13:34:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T13:34:08Z.

Review: APPROVED


Re-checked — overlap resolved, looks good

The authors recorded the landing order and removed the shared exports from #13120; I found no remaining blocker in the reviewed head.

What I ran

Reviewed head b0853d70abdca600c552e9d0437d14df7ceaeecd against PR base ee9a9a66cffb77ba42781b66d764e96d22843554; the stack check also previewed that head against current main da026c70655a132031d45e2008c24f993870d801 and reported a clean merge. Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5. No build or compilation was run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13345
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base ee9a9a66cffb77ba42781b66d764e96d22843554 --head b0853d70abdca600c552e9d0437d14df7ceaeecd --json
python3 tools/pr_stack_check.py 13345 --repo boykopovar/AnyPS5
git diff --check ee9a9a66cffb77ba42781b66d764e96d22843554...b0853d70abdca600c552e9d0437d14df7ceaeecd

Results

Check Result
Diff check and conventions/template Passed.
Dependency and mergeability preview Passed; #13345 merges cleanly into current main. #13120 now depends on #13345 and no longer declares the ten overlapping exports.
Export audit Ran; passed_with_warnings. It reports seven Runtime.cpp helper definitions without public declarations. This lexical warning is not a full ABI validation.
Source review Reviewed the stream helper dispatch, chunk processing, callbacks, errors, declarations, tests, and debt entry at the stated head; no blocking defect found.
Author-reported tests A new author comment identifies this exact head and reports 70/70 focused tests, 3/3 runtime tests, 20,426 differential cases with zero mismatches, a corruption check, and nine mutation checks. These were not run locally.
Unedited local check output

Diff check produced no output and exited successfully.

Precheck summary:

# PR precheck report — checks failed
Head: `b0853d70abdca600c552e9d0437d14df7ceaeecd`
Base: `ee9a9a66cffb77ba42781b66d764e96d22843554`
Head unchanged at completion: **True**
Base unchanged at completion: **True**

The precheck could not find tools/pr_abi_audit.py or tools/pr_test_quality.py in its isolated checkout. I ran the ABI audit from the local workspace separately. Conventions output:

All conventions checks passed.

Findings

Blocking

None identified.

Non-blocking

The C++ tests, differential run, corruption check, and mutation checks are author-reported rather than independently reproduced here.

Sources

Not verified

I did not build or run C++ tests locally. At final refresh, the exact-head Windows job was queued, the library-portability job was in progress, and the new conventions and labels jobs were queued. Linux and specialized jobs were skipped by the hosted workflow.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5713001625 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13345#pullrequestreview-5713001625). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T13:34:08Z. **Review:** APPROVED --- # Re-checked — overlap resolved, looks good The authors recorded the landing order and removed the shared exports from #13120; I found no remaining blocker in the reviewed head. ## What I ran Reviewed head `b0853d70abdca600c552e9d0437d14df7ceaeecd` against PR base `ee9a9a66cffb77ba42781b66d764e96d22843554`; the stack check also previewed that head against current `main` `da026c70655a132031d45e2008c24f993870d801` and reported a clean merge. Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5. No build or compilation was run. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13345 python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base ee9a9a66cffb77ba42781b66d764e96d22843554 --head b0853d70abdca600c552e9d0437d14df7ceaeecd --json python3 tools/pr_stack_check.py 13345 --repo boykopovar/AnyPS5 git diff --check ee9a9a66cffb77ba42781b66d764e96d22843554...b0853d70abdca600c552e9d0437d14df7ceaeecd ``` ## Results | Check | Result | |---|---| | Diff check and conventions/template | Passed. | | Dependency and mergeability preview | Passed; #13345 merges cleanly into current `main`. #13120 now depends on #13345 and no longer declares the ten overlapping exports. | | Export audit | Ran; `passed_with_warnings`. It reports seven `Runtime.cpp` helper definitions without public declarations. This lexical warning is not a full ABI validation. | | Source review | Reviewed the stream helper dispatch, chunk processing, callbacks, errors, declarations, tests, and debt entry at the stated head; no blocking defect found. | | Author-reported tests | A new author comment identifies this exact head and reports 70/70 focused tests, 3/3 runtime tests, 20,426 differential cases with zero mismatches, a corruption check, and nine mutation checks. These were not run locally. | <details><summary>Unedited local check output</summary> Diff check produced no output and exited successfully. Precheck summary: ```text # PR precheck report — checks failed Head: `b0853d70abdca600c552e9d0437d14df7ceaeecd` Base: `ee9a9a66cffb77ba42781b66d764e96d22843554` Head unchanged at completion: **True** Base unchanged at completion: **True** ``` The precheck could not find `tools/pr_abi_audit.py` or `tools/pr_test_quality.py` in its isolated checkout. I ran the ABI audit from the local workspace separately. Conventions output: ```text All conventions checks passed. ``` </details> ## Findings ### Blocking None identified. ### Non-blocking The C++ tests, differential run, corruption check, and mutation checks are author-reported rather than independently reproduced here. ## Sources - [Reviewed implementation at head b0853d70](https://github.com/boykopovar/AnyPS5/commit/b0853d70abdca600c552e9d0437d14df7ceaeecd). - [#13120 update recording the dependency and removing overlapping exports](https://github.com/boykopovar/AnyPS5/pull/13120#issuecomment-6523699240). - [#13345 author test report for the exact head](https://github.com/boykopovar/AnyPS5/pull/13345#issuecomment-6524070681). ## Not verified I did not build or run C++ tests locally. At final refresh, the exact-head Windows job was queued, the library-portability job was in progress, and the new conventions and labels jobs were queued. Linux and specialized jobs were skipped by the hosted workflow.
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!13345
No description provided.