feat(libSceNKWebKit): implement WTF FileSystemImpl hardLink, createSymbolicLink and appendFileContentsToFileHandle #19823

Closed
B-Howell wants to merge 19 commits from upstream-pr/19823 into main
B-Howell commented 2026-11-14 00:35:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-14T00:35:22Z.


What

Implements three existing throwing libSceNKWebKit stubs from the pinned PS5 11.x WebKit source (80f77e94c6), reusing the module's own openFile/closeFile and String::utf8 exports:

  • WTF::FileSystemImpl::hardLink (PduV0fym+xE) and createSymbolicLink (dbycEreQEcg) follow the std::filesystem branch of FileSystem.cpp:716-728 (create_hard_link / create_symlink with an error_code, return !ec). They convert both paths to UTF-8 and call the guest link_nid_postfix and symlink_nid_postfix in libkernel_sys — the same calls libScePosixForWebKit forwards __wrap_link and __wrap_symlink to. A null or empty path fails with ENOENT there, so it returns false, as libc++ link/symlink would.
  • appendFileContentsToFileHandle (bFLwUoQqNHM) follows FileSystem.cpp:249-277: open read-only, 512 KiB chunks, fail on a read error or a short write, stop after a short read. The read and write retry on EINTR as FileSystemPOSIX.cpp:137-155 does.

libSceNKWebKit now links libkernel_sys. The typed prototypes move from InventoryExports.hpp to WtfExports.hpp, the three inventory rows go, and a debt entry records what is unverified (console libc++ assumed to make single link/symlink calls; host buffer instead of fastMalloc; symbolic links tested on Linux only).

Tested

Ubuntu 22.04 on WSL2, GCC 11.4, Release, base 6fd2999417 (current main is 4 commits ahead, all libc math; merges cleanly). Built and run at 36b267b0dc; the head differs from it only in the debt-file wording.

  • New TestFileLinks in tests/Wtf.cpp, under a guest path alias: hard link shares the file and reads back the content; linking onto an existing name, from a missing source, or with a null path returns false; a relative symbolic link is created (checked with symlink_status and read_symlink) and opens through to the file; an existing link path and null paths return false; appending into a ReadWrite handle after head gives head + the file, then a 536,633-byte file (loop path) and an exactly 524,288-byte file (full-buffer then zero-length read); a missing source and a read-only target return false.

  • Red control (same test, the three bodies restored to NotImplemented_nid_no_patch): ctest -R '^nkwebkit_wtf$' → Subprocess aborted, _ZN3WTF14FileSystemImpl8hardLinkERKNS_6StringES3_ not implemented.

  • This change: ctest -R '^nkwebkit_wtf$' → Passed 3/3 runs.

  • ctest -R '^public_headers' → 65/65 passed.

  • tools/progress.py: libraries done 15784 → 15787 (+3).

  • 2026-11-14: comment-only commit 69c1de3682e adds the verbatim upstream notices of FileSystem.cpp and FileSystemPOSIX.cpp under the existing Derived from lines in src/WtfSystem.cpp (maintainer ruling, #19819 comment). No code changed, so no rebuild; tools/check_conventions.py --base origin/main passes and git diff --check is clean.

  • @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 69c1de3682 merged onto main 04631f5042 (report): nkwebkit_wtf passed 3/3, none skipped.

  • Debt fragment c7124c5b49: merged main 3ae84d01bd3 (the tests/Wtf.cpp conflict with #19103 kept both test groups) and moved this PR's debt edits into docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md; the debt files match main. WSL2 Ubuntu: nkwebkit_wtf_tests built and ctest -R ^nkwebkit_wtf$ passed 1/1. debt_fold.py --check and check_conventions.py --base origin/main pass.

  • Main merge afc34922b28: ordinary merge of main cf058cf14bc. A libSceNKWebKit/CMakeLists.txt conflict with the libpsl link from #20516, resolved by keeping both (libkernel_sys plus psl). WSL2 Ubuntu, Release: nkwebkit_wtf_tests built, ctest -R ^nkwebkit_wtf$ passed 1/1. The debt files match main; debt_fold.py --check and check_conventions.py --base origin/main pass.

  • Main merge b63f96f77fc onto main 1d3c669c843: conflict only in tests/Wtf.cpp, where #19380 added its StackBounds and TimingScope tests next to this PR's TestFileLinks; both test groups are kept. WSL2 Ubuntu, GCC, Release: nkwebkit_wtf_tests built and ctest -R ^nkwebkit_wtf$ --repeat until-fail:3 passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • Main merge e153728d304 onto main 33b699882b5: conflict only in the libSceNKWebKit/CMakeLists.txt link line, where #19680 added icu_common next to this PR's libkernel_sys; both are kept. WSL2 Ubuntu, GCC, Release: nkwebkit_wtf_tests built and ctest -R ^nkwebkit_wtf$ --repeat until-fail:3 passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • Main merge 8b2caf00508 onto main b65eed22e13: conflicts in Export.cpp, InventoryExports.hpp, WtfExports.hpp and tests/Wtf.cpp, all next to #19822, which implemented the neighbouring fileExists, deleteFile, deleteEmptyDirectory, moveFile, realPath and filesHaveSameVolume. Both sides' stub removals are kept (none of the nine stubs remain), both sets of WtfExports.hpp declarations are kept, and TestFileLinks and TestFileSystemHelpers both run. WSL2 Ubuntu, GCC, Release: nkwebkit_wtf_tests built and ctest -R ^nkwebkit_wtf$ passed 1/1. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • Main merge b33a3575785 onto main c8f72e905cc (after #22977): conflict only in the libSceNKWebKit/CMakeLists.txt link line, where #22977 added libcairo next to this PR's libkernel_sys; both are kept, and no function was dropped or duplicated. Windows 11, WinLibs GCC 15.2.0 r7, Release: nkwebkit_wtf_tests and nkwebkit_dragimage_tests built and ctest -R "^nkwebkit_(wtf|dragimage)$" --repeat until-fail:3 passed. (WSL Ubuntu 22.04 GCC 11.4 cannot build main's src/DragImage.cpp from #22977 at all, so this round was tested on Windows.) debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • Main merge 2821f223139 onto main d3acf88f753 (after #20327): conflict only in the libSceNKWebKit/CMakeLists.txt link line, where #20327 added libSceNKWebKitRequirements next to this PR's libkernel_sys; both are kept, and no function was dropped or duplicated. Windows 11, WinLibs GCC 15.2.0 r7, Release: nkwebkit_wtf_tests and nkwebkit_dragimage_tests built and ctest -R "^nkwebkit_(wtf|dragimage)$" --repeat until-fail:3 passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • Main merge dcc4be45e55 onto main 609ae290c90 (after #25541): conflict only in the stub lists of Export.cpp and InventoryExports.hpp, where #25541 implemented hardLinkOrCopyFile in src/WtfFileSystem.cpp and removed its stub, next to the three stubs this PR removes. Both removals are kept, so each of the four functions has exactly one implementation. Windows 11, WinLibs GCC 15.2.0 r7, Release: nkwebkit_wtf_tests, nkwebkit_dragimage_tests and nkwebkit_wtffilesystemlinks_tests (from #25541) built and ctest -R "^nkwebkit_(wtf|dragimage|wtffilesystemlinks)$" --repeat until-fail:3 passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

  • @ycbuzi, full ctest on Windows Server 2022 and 2025 (GitHub-hosted, WinLibs GCC 15.2.0), dcc4be45e5 merged into main (report): no failures beyond those on main on the same machine (6834 tests; 2025 had none).

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:5305145100 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-14T00:35:22Z. --- ### What Implements three existing throwing `libSceNKWebKit` stubs from the pinned PS5 11.x WebKit source (`80f77e94c6`), reusing the module's own `openFile`/`closeFile` and `String::utf8` exports: - `WTF::FileSystemImpl::hardLink` (`PduV0fym+xE`) and `createSymbolicLink` (`dbycEreQEcg`) follow the `std::filesystem` branch of [FileSystem.cpp:716-728](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/FileSystem.cpp#L716-L728) (`create_hard_link` / `create_symlink` with an `error_code`, `return !ec`). They convert both paths to UTF-8 and call the guest `link_nid_postfix` and `symlink_nid_postfix` in `libkernel_sys` — the same calls `libScePosixForWebKit` forwards `__wrap_link` and `__wrap_symlink` to. A null or empty path fails with `ENOENT` there, so it returns false, as libc++ `link`/`symlink` would. - `appendFileContentsToFileHandle` (`bFLwUoQqNHM`) follows [FileSystem.cpp:249-277](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/FileSystem.cpp#L249-L277): open read-only, 512 KiB chunks, fail on a read error or a short write, stop after a short read. The read and write retry on `EINTR` as [FileSystemPOSIX.cpp:137-155](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/posix/FileSystemPOSIX.cpp#L137-L155) does. `libSceNKWebKit` now links `libkernel_sys`. The typed prototypes move from `InventoryExports.hpp` to `WtfExports.hpp`, the three inventory rows go, and a debt entry records what is unverified (console libc++ assumed to make single `link`/`symlink` calls; host buffer instead of `fastMalloc`; symbolic links tested on Linux only). ### Tested Ubuntu 22.04 on WSL2, GCC 11.4, Release, base `6fd2999417` (current `main` is 4 commits ahead, all libc math; merges cleanly). Built and run at `36b267b0dc`; the head differs from it only in the debt-file wording. - New `TestFileLinks` in `tests/Wtf.cpp`, under a guest path alias: hard link shares the file and reads back the content; linking onto an existing name, from a missing source, or with a null path returns false; a relative symbolic link is created (checked with `symlink_status` and `read_symlink`) and opens through to the file; an existing link path and null paths return false; appending into a `ReadWrite` handle after `head` gives `head` + the file, then a 536,633-byte file (loop path) and an exactly 524,288-byte file (full-buffer then zero-length read); a missing source and a read-only target return false. - Red control (same test, the three bodies restored to `NotImplemented_nid_no_patch`): `ctest -R '^nkwebkit_wtf$'` → `Subprocess aborted`, `_ZN3WTF14FileSystemImpl8hardLinkERKNS_6StringES3_ not implemented`. - This change: `ctest -R '^nkwebkit_wtf$'` → `Passed` 3/3 runs. - `ctest -R '^public_headers'` → 65/65 passed. - `tools/progress.py`: libraries done 15784 → 15787 (+3). - 2026-11-14: comment-only commit `69c1de3682e` adds the verbatim upstream notices of FileSystem.cpp and FileSystemPOSIX.cpp under the existing `Derived from` lines in `src/WtfSystem.cpp` (maintainer ruling, [#19819 comment](https://github.com/boykopovar/AnyPS5/pull/19819#issuecomment-6868889186)). No code changed, so no rebuild; `tools/check_conventions.py --base origin/main` passes and `git diff --check` is clean. - @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 69c1de3682 merged onto main 04631f5042 ([report](https://github.com/boykopovar/AnyPS5/pull/19823#issuecomment-6870078204)): `nkwebkit_wtf` passed 3/3, none skipped. - Debt fragment `c7124c5b49`: merged main `3ae84d01bd3` (the `tests/Wtf.cpp` conflict with #19103 kept both test groups) and moved this PR's debt edits into `docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md`; the debt files match main. WSL2 Ubuntu: `nkwebkit_wtf_tests` built and `ctest -R ^nkwebkit_wtf$` passed 1/1. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass. - Main merge `afc34922b28`: ordinary merge of `main` `cf058cf14bc`. A `libSceNKWebKit/CMakeLists.txt` conflict with the libpsl link from #20516, resolved by keeping both (`libkernel_sys` plus `psl`). WSL2 Ubuntu, Release: `nkwebkit_wtf_tests` built, `ctest -R ^nkwebkit_wtf$` passed 1/1. The debt files match `main`; `debt_fold.py --check` and `check_conventions.py --base origin/main` pass. - Main merge `b63f96f77fc` onto main `1d3c669c843`: conflict only in `tests/Wtf.cpp`, where #19380 added its StackBounds and TimingScope tests next to this PR's `TestFileLinks`; both test groups are kept. WSL2 Ubuntu, GCC, Release: `nkwebkit_wtf_tests` built and `ctest -R ^nkwebkit_wtf$ --repeat until-fail:3` passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - Main merge `e153728d304` onto main `33b699882b5`: conflict only in the `libSceNKWebKit/CMakeLists.txt` link line, where #19680 added `icu_common` next to this PR's `libkernel_sys`; both are kept. WSL2 Ubuntu, GCC, Release: `nkwebkit_wtf_tests` built and `ctest -R ^nkwebkit_wtf$ --repeat until-fail:3` passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - Main merge `8b2caf00508` onto main `b65eed22e13`: conflicts in `Export.cpp`, `InventoryExports.hpp`, `WtfExports.hpp` and `tests/Wtf.cpp`, all next to #19822, which implemented the neighbouring `fileExists`, `deleteFile`, `deleteEmptyDirectory`, `moveFile`, `realPath` and `filesHaveSameVolume`. Both sides' stub removals are kept (none of the nine stubs remain), both sets of `WtfExports.hpp` declarations are kept, and `TestFileLinks` and `TestFileSystemHelpers` both run. WSL2 Ubuntu, GCC, Release: `nkwebkit_wtf_tests` built and `ctest -R ^nkwebkit_wtf$` passed 1/1. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - Main merge `b33a3575785` onto main `c8f72e905cc` (after #22977): conflict only in the `libSceNKWebKit/CMakeLists.txt` link line, where #22977 added `libcairo` next to this PR's `libkernel_sys`; both are kept, and no function was dropped or duplicated. Windows 11, WinLibs GCC 15.2.0 r7, Release: `nkwebkit_wtf_tests` and `nkwebkit_dragimage_tests` built and `ctest -R "^nkwebkit_(wtf|dragimage)$" --repeat until-fail:3` passed. (WSL Ubuntu 22.04 GCC 11.4 cannot build `main`'s `src/DragImage.cpp` from #22977 at all, so this round was tested on Windows.) `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - Main merge `2821f223139` onto main `d3acf88f753` (after #20327): conflict only in the `libSceNKWebKit/CMakeLists.txt` link line, where #20327 added `libSceNKWebKitRequirements` next to this PR's `libkernel_sys`; both are kept, and no function was dropped or duplicated. Windows 11, WinLibs GCC 15.2.0 r7, Release: `nkwebkit_wtf_tests` and `nkwebkit_dragimage_tests` built and `ctest -R "^nkwebkit_(wtf|dragimage)$" --repeat until-fail:3` passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - Main merge `dcc4be45e55` onto main `609ae290c90` (after #25541): conflict only in the stub lists of `Export.cpp` and `InventoryExports.hpp`, where #25541 implemented `hardLinkOrCopyFile` in `src/WtfFileSystem.cpp` and removed its stub, next to the three stubs this PR removes. Both removals are kept, so each of the four functions has exactly one implementation. Windows 11, WinLibs GCC 15.2.0 r7, Release: `nkwebkit_wtf_tests`, `nkwebkit_dragimage_tests` and `nkwebkit_wtffilesystemlinks_tests` (from #25541) built and `ctest -R "^nkwebkit_(wtf|dragimage|wtffilesystemlinks)$" --repeat until-fail:3` passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - @ycbuzi, full ctest on Windows Server 2022 and 2025 (GitHub-hosted, WinLibs GCC 15.2.0), dcc4be45e5 merged into main ([report](https://github.com/boykopovar/AnyPS5/pull/19823#issuecomment-7249610682)): no failures beyond those on main on the same machine (6834 tests; 2025 had none). ### 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
PrivacyOnion commented 2026-11-14 01:05:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T01:05:49Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 34fdaf0191:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #3933: nkwebkit_wtf .....................   Passed    0.03 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: Verified appendFileContentsToFileHandle safely manages source.handle via FileCloser RAII, correctly handling openFile failures (-1), read errors (< 0), short write mismatches, and buffer boundaries.
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: Verified ReadFromFile and WriteToFile properly retry on GuestEintr (4) via *__error_nid_postfix() and return -1 on non-EINTR POSIX errors.
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: Verified hardLink and createSymbolicLink convert String inputs to UTF-8 via LinkPaths and correctly pass arguments to guest link_nid_postfix and symlink_nid_postfix.
    • core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: Verified TestFileLinks exercises hard links, symlinks, error paths (null paths, missing files, pre-existing destinations), and multi-chunk appends with complete alias and temporary directory teardown.
    • core/libs/prx/libSceNKWebKit/CMakeLists.txt & docs/dev/debt/libSceNKWebKit.md: Verified libkernel_sys private link dependency addition, stub removal from Export.cpp and InventoryExports.hpp, and proper tracking in libSceNKWebKit.md debt documentation.
  • Concerns:
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:163: Lines 163-164 add code comments ('// Derived from Source/WTF/wtf/FileSystem.cpp@80f77e94c63ee7202eec3d4b5b1a021dd89011ba' and '// Derived from Source/WTF/wtf/posix/FileSystemPOSIX.cpp@80f77e94c63ee7202eec3d4b5b1a021dd89011ba'), violating the AGENTS.md rule: 'No comments in code, except #endif and namespace ends'.
  • Note: the AI-assisted checkbox can stay.

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5900264631 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5900264631). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T01:05:49Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `34fdaf0191`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #3933: nkwebkit_wtf ..................... Passed 0.03 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: Verified appendFileContentsToFileHandle safely manages source.handle via FileCloser RAII, correctly handling openFile failures (-1), read errors (< 0), short write mismatches, and buffer boundaries. - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: Verified ReadFromFile and WriteToFile properly retry on GuestEintr (4) via *__error_nid_postfix() and return -1 on non-EINTR POSIX errors. - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: Verified hardLink and createSymbolicLink convert String inputs to UTF-8 via LinkPaths and correctly pass arguments to guest link_nid_postfix and symlink_nid_postfix. - core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: Verified TestFileLinks exercises hard links, symlinks, error paths (null paths, missing files, pre-existing destinations), and multi-chunk appends with complete alias and temporary directory teardown. - core/libs/prx/libSceNKWebKit/CMakeLists.txt & docs/dev/debt/libSceNKWebKit.md: Verified libkernel_sys private link dependency addition, stub removal from Export.cpp and InventoryExports.hpp, and proper tracking in libSceNKWebKit.md debt documentation. - **Concerns**: - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:163: Lines 163-164 add code comments ('// Derived from Source/WTF/wtf/FileSystem.cpp@80f77e94c63ee7202eec3d4b5b1a021dd89011ba' and '// Derived from Source/WTF/wtf/posix/FileSystemPOSIX.cpp@80f77e94c63ee7202eec3d4b5b1a021dd89011ba'), violating the AGENTS.md rule: 'No comments in code, except #endif and namespace ends'. - Note: the AI-assisted checkbox can stay. Requesting changes for the points above.
PrivacyOnion commented 2026-11-15 00:02:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T00:02:08Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 684eacffff:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4088: nkwebkit_wtf .....................   Passed    0.06 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:253: Verified that FileCloser RAII wrapper guarantees closure of source.handle via _ZN3WTF14FileSystemImpl9closeFileERi across all return paths in appendFileContentsToFileHandle, including early read/write errors and EOF.
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:218,226: Verified ReadFromFile and WriteToFile retry loops properly handle interrupted system calls by checking bytesRead/bytesWritten >= 0 prior to verifying *__error_nid_postfix() == GuestEintr (EINTR = 4).
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:212,246,250: Verified LinkPaths correctly maps arguments to guest syscalls link_nid_postfix and symlink_nid_postfix with existing targets and destination paths, safely retaining UTF-8 representation buffer lifetimes through call completion.
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:261: Verified chunk loop termination in appendFileContentsToFileHandle correctly processes empty files, multi-chunk streams exceeding 512 KiB, and files matching exact 512 KiB buffer boundaries via trailing zero-byte read detection.
    • core/libs/prx/libSceNKWebKit/tests/Wtf.cpp:711: Verified TestFileLinks exercises success paths, equivalent hard links, symlink resolution, null String handling, non-existent sources, read-only target handles, and thoroughly cleans up path aliases and temporary directories.
    • docs/dev/debt/libSceNKWebKit.md:169,195: Verified debt documentation accurately records unverified console assumptions (console libc++ single syscall assumption, host buffer vs fastMalloc) and correctly adjusts throwing inventory count from 5939 to 5936.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5908023971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5908023971). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T00:02:08Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `684eacffff`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4088: nkwebkit_wtf ..................... Passed 0.06 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:253: Verified that FileCloser RAII wrapper guarantees closure of source.handle via _ZN3WTF14FileSystemImpl9closeFileERi across all return paths in appendFileContentsToFileHandle, including early read/write errors and EOF. - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:218,226: Verified ReadFromFile and WriteToFile retry loops properly handle interrupted system calls by checking bytesRead/bytesWritten >= 0 prior to verifying *__error_nid_postfix() == GuestEintr (EINTR = 4). - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:212,246,250: Verified LinkPaths correctly maps arguments to guest syscalls link_nid_postfix and symlink_nid_postfix with existing targets and destination paths, safely retaining UTF-8 representation buffer lifetimes through call completion. - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp:261: Verified chunk loop termination in appendFileContentsToFileHandle correctly processes empty files, multi-chunk streams exceeding 512 KiB, and files matching exact 512 KiB buffer boundaries via trailing zero-byte read detection. - core/libs/prx/libSceNKWebKit/tests/Wtf.cpp:711: Verified TestFileLinks exercises success paths, equivalent hard links, symlink resolution, null String handling, non-existent sources, read-only target handles, and thoroughly cleans up path aliases and temporary directories. - docs/dev/debt/libSceNKWebKit.md:169,195: Verified debt documentation accurately records unverified console assumptions (console libc++ single syscall assumption, host buffer vs fastMalloc) and correctly adjusts throwing inventory count from 5939 to 5936. - Note: the AI-assisted checkbox can stay. Looks Good To Me
PrivacyOnion commented 2026-11-15 04:43:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T04:43:40Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 24dd2ed869:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4114: nkwebkit_wtf .....................   Passed    0.22 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly handle guest read_nid_postfix and write_nid_postfix return values, retrying exclusively on GuestEintr (4) from *__error_nid_postfix() and propagating error terminations correctly.
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII wrapper ensures source file descriptors from openFile are reliably closed on every exit path of appendFileContentsToFileHandle (read failure, write mismatch, EOF, or open failure).
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles chunk boundary conditions properly, including 0-byte reads, exact buffer-size files (524,288 bytes), and multi-chunk appends, safely failing when write lengths do not match read bytes.
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths preserves correct POSIX argument ordering for link_nid_postfix and symlink_nid_postfix (target/oldpath first, followed by link/newpath) and converts String inputs via utf8 conversion without memory corruption.
    • Checked core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: TestFileLinks comprehensively exercises positive and negative flows for hardLink, createSymbolicLink, and appendFileContentsToFileHandle (including null paths, existing destination collision, read-only target handles, and large buffers), cleaning up paths and aliases cleanly.
    • Checked AGENTS.md conventions and repository rules: no prohibited comments introduced (upstream attribution headers retained per maintainer directive), and replaced stubs were correctly removed from Export.cpp and InventoryExports.hpp while adding typed declarations to WtfExports.hpp.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5909133810 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5909133810). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T04:43:40Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `24dd2ed869`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4114: nkwebkit_wtf ..................... Passed 0.22 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly handle guest read_nid_postfix and write_nid_postfix return values, retrying exclusively on GuestEintr (4) from *__error_nid_postfix() and propagating error terminations correctly. - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII wrapper ensures source file descriptors from openFile are reliably closed on every exit path of appendFileContentsToFileHandle (read failure, write mismatch, EOF, or open failure). - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles chunk boundary conditions properly, including 0-byte reads, exact buffer-size files (524,288 bytes), and multi-chunk appends, safely failing when write lengths do not match read bytes. - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths preserves correct POSIX argument ordering for link_nid_postfix and symlink_nid_postfix (target/oldpath first, followed by link/newpath) and converts String inputs via utf8 conversion without memory corruption. - Checked core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: TestFileLinks comprehensively exercises positive and negative flows for hardLink, createSymbolicLink, and appendFileContentsToFileHandle (including null paths, existing destination collision, read-only target handles, and large buffers), cleaning up paths and aliases cleanly. - Checked AGENTS.md conventions and repository rules: no prohibited comments introduced (upstream attribution headers retained per maintainer directive), and replaced stubs were correctly removed from Export.cpp and InventoryExports.hpp while adding typed declarations to WtfExports.hpp. - Note: the AI-assisted checkbox can stay. Looks Good To Me
PrivacyOnion commented 2026-11-15 23:57:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T23:57:26Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against c7124c5b49:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4271: nkwebkit_wtf .....................   Passed    0.09 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly handle guest read_nid_postfix and write_nid_postfix return values, retrying exclusively on GuestEintr (4) from *__error_nid_postfix() and propagating error terminations (-1) accurately.
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII wrapper guarantees source file descriptors opened by _ZN3WTF14FileSystemImpl8openFileERKNS_6StringENS0_12FileOpenModeENS0_20FileAccessPermissionEb are closed via _ZN3WTF14FileSystemImpl9closeFileERi on every exit path of appendFileContentsToFileHandle (open failure, read failure, write mismatch, or EOF).
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles chunk boundary conditions properly with a 512 KiB buffer (1 << 19), failing when write lengths do not match readBytes and terminating cleanly when readBytes < bufferSize.
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths converts targetPath and linkPath via _ZNK3WTF6String4utf8ENS_14ConversionModeE, verifies CString buffer non-nullness in PathData, and forwards in the exact POSIX argument order to link_nid_postfix and symlink_nid_postfix.
    • Checked Export.cpp, InventoryExports.hpp, WtfExports.hpp, CMakeLists.txt, and docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md: stub removals, typed VABI declarations, libkernel_sys linkage, and technical debt fragment entries are complete and consistent.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5913619880 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5913619880). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T23:57:26Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `c7124c5b49`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4271: nkwebkit_wtf ..................... Passed 0.09 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly handle guest read_nid_postfix and write_nid_postfix return values, retrying exclusively on GuestEintr (4) from *__error_nid_postfix() and propagating error terminations (-1) accurately. - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII wrapper guarantees source file descriptors opened by _ZN3WTF14FileSystemImpl8openFileERKNS_6StringENS0_12FileOpenModeENS0_20FileAccessPermissionEb are closed via _ZN3WTF14FileSystemImpl9closeFileERi on every exit path of appendFileContentsToFileHandle (open failure, read failure, write mismatch, or EOF). - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles chunk boundary conditions properly with a 512 KiB buffer (1 << 19), failing when write lengths do not match readBytes and terminating cleanly when readBytes < bufferSize. - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths converts targetPath and linkPath via _ZNK3WTF6String4utf8ENS_14ConversionModeE, verifies CString buffer non-nullness in PathData, and forwards in the exact POSIX argument order to link_nid_postfix and symlink_nid_postfix. - Checked Export.cpp, InventoryExports.hpp, WtfExports.hpp, CMakeLists.txt, and docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md: stub removals, typed VABI declarations, libkernel_sys linkage, and technical debt fragment entries are complete and consistent. Looks Good To Me
PrivacyOnion commented 2026-11-16 02:02:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T02:02:57Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against afc34922b2:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4278: nkwebkit_wtf .....................   Passed    0.29 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly handle guest read_nid_postfix and write_nid_postfix return values, retrying exclusively on GuestEintr (4) from *__error_nid_postfix() and propagating error terminations (-1) accurately.
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII wrapper guarantees source file descriptors opened by _ZN3WTF14FileSystemImpl8openFileERKNS_6StringENS0_12FileOpenModeENS0_20FileAccessPermissionEb are closed via _ZN3WTF14FileSystemImpl9closeFileERi on every exit path of appendFileContentsToFileHandle (open failure, read failure, write mismatch, or EOF).
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles chunk boundary conditions properly with a 512 KiB buffer (1 << 19), failing when write lengths do not match readBytes and terminating cleanly when readBytes < bufferSize.
    • Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths converts targetPath and linkPath via _ZNK3WTF6String4utf8ENS_14ConversionModeE, verifies CString buffer non-nullness in PathData, and forwards in the exact POSIX argument order to link_nid_postfix and symlink_nid_postfix.
    • Checked Export.cpp, InventoryExports.hpp, WtfExports.hpp, CMakeLists.txt, and docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md: stub removals, typed VABI declarations, libkernel_sys linkage, and technical debt fragment entries are complete and consistent.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5914242647 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5914242647). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T02:02:57Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `afc34922b2`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4278: nkwebkit_wtf ..................... Passed 0.29 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly handle guest read_nid_postfix and write_nid_postfix return values, retrying exclusively on GuestEintr (4) from *__error_nid_postfix() and propagating error terminations (-1) accurately. - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII wrapper guarantees source file descriptors opened by _ZN3WTF14FileSystemImpl8openFileERKNS_6StringENS0_12FileOpenModeENS0_20FileAccessPermissionEb are closed via _ZN3WTF14FileSystemImpl9closeFileERi on every exit path of appendFileContentsToFileHandle (open failure, read failure, write mismatch, or EOF). - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles chunk boundary conditions properly with a 512 KiB buffer (1 << 19), failing when write lengths do not match readBytes and terminating cleanly when readBytes < bufferSize. - Checked core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths converts targetPath and linkPath via _ZNK3WTF6String4utf8ENS_14ConversionModeE, verifies CString buffer non-nullness in PathData, and forwards in the exact POSIX argument order to link_nid_postfix and symlink_nid_postfix. - Checked Export.cpp, InventoryExports.hpp, WtfExports.hpp, CMakeLists.txt, and docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md: stub removals, typed VABI declarations, libkernel_sys linkage, and technical debt fragment entries are complete and consistent. Looks Good To Me
PrivacyOnion commented 2026-11-16 22:22:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T22:22:19Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against b63f96f77f:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4404: nkwebkit_wtf .....................   Passed    0.09 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile loop on GuestEintr (4) and correctly propagate read/write sizes or -1 errors using guest read_nid_postfix and write_nid_postfix
    • Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII ensures file descriptors opened via openFile are closed on all exit branches in appendFileContentsToFileHandle
    • Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths properly converts WTF::String to UTF-8 via _ZNK3WTF6String4utf8ENS_14ConversionModeE, validates buffer non-nullness in PathData, and passes paths to guest link_nid_postfix / symlink_nid_postfix
    • Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles 512 KiB buffer chunks, verifies exact write matching (WriteToFile == readBytes), and stops at EOF when readBytes < bufferSize
    • Verified build configuration, debt documentation fragment, and tests in core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: libkernel_sys linkage added, symbols removed from InventoryExports.hpp and Export.cpp, debt recorded in docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5928859434 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5928859434). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T22:22:19Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `b63f96f77f`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4404: nkwebkit_wtf ..................... Passed 0.09 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile loop on GuestEintr (4) and correctly propagate read/write sizes or -1 errors using guest read_nid_postfix and write_nid_postfix - Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: FileCloser RAII ensures file descriptors opened via openFile are closed on all exit branches in appendFileContentsToFileHandle - Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths properly converts WTF::String to UTF-8 via _ZNK3WTF6String4utf8ENS_14ConversionModeE, validates buffer non-nullness in PathData, and passes paths to guest link_nid_postfix / symlink_nid_postfix - Verified core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle handles 512 KiB buffer chunks, verifies exact write matching (WriteToFile == readBytes), and stops at EOF when readBytes < bufferSize - Verified build configuration, debt documentation fragment, and tests in core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: libkernel_sys linkage added, symbols removed from InventoryExports.hpp and Export.cpp, debt recorded in docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md Looks Good To Me
PrivacyOnion commented 2026-11-17 01:44:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T01:44:00Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 9400a2f457:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4414: nkwebkit_wtf .....................   Passed    0.08 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified WtfSystem.cpp: ReadFromFile and WriteToFile properly loop on GuestEintr (4) using read_nid_postfix and write_nid_postfix with appropriate 64-bit length conversions.
    • Verified WtfSystem.cpp: LinkPaths handles WTF::String to UTF-8 conversion, checks buffer presence via PathData, and returns bool based on link_nid_postfix and symlink_nid_postfix return values.
    • Verified WtfSystem.cpp: FileCloser RAII ensures file descriptor cleanup on all exit paths in appendFileContentsToFileHandle.
    • Verified WtfSystem.cpp: appendFileContentsToFileHandle correctly reads in 512 KiB chunks, verifies full writes matching read counts, and returns true upon reaching EOF.
    • Verified CMakeLists.txt and Export.cpp/InventoryExports.hpp: libkernel_sys added to dependencies, unimplemented stub declarations removed, and debt recorded in docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5931266363 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5931266363). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-17T01:44:00Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `9400a2f457`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4414: nkwebkit_wtf ..................... Passed 0.08 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified WtfSystem.cpp: ReadFromFile and WriteToFile properly loop on GuestEintr (4) using read_nid_postfix and write_nid_postfix with appropriate 64-bit length conversions. - Verified WtfSystem.cpp: LinkPaths handles WTF::String to UTF-8 conversion, checks buffer presence via PathData, and returns bool based on link_nid_postfix and symlink_nid_postfix return values. - Verified WtfSystem.cpp: FileCloser RAII ensures file descriptor cleanup on all exit paths in appendFileContentsToFileHandle. - Verified WtfSystem.cpp: appendFileContentsToFileHandle correctly reads in 512 KiB chunks, verifies full writes matching read counts, and returns true upon reaching EOF. - Verified CMakeLists.txt and Export.cpp/InventoryExports.hpp: libkernel_sys added to dependencies, unimplemented stub declarations removed, and debt recorded in docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md. Looks Good To Me
PrivacyOnion commented 2026-11-18 07:13:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-18T07:13:15Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e153728d30:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4574: nkwebkit_wtf .....................   Passed    0.15 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified WtfSystem.cpp: LinkPaths converts WTF::String to UTF-8 using _ZNK3WTF6String4utf8ENS_14ConversionModeE and safely guards buffer nullness via PathData, returning false on link_nid_postfix / symlink_nid_postfix failure
    • Verified WtfSystem.cpp: ReadFromFile and WriteToFile properly retry on guest EINTR (GuestEintr = 4) and handle return values and types correctly
    • Verified WtfSystem.cpp: appendFileContentsToFileHandle uses FileCloser RAII to guarantee descriptor cleanup, reads in 512 KiB chunks, checks write length matches read length, and stops cleanly on EOF
    • Verified WtfExports.hpp & Export.cpp & InventoryExports.hpp: function signatures match WTF mangled symbols, implemented stubs removed cleanly from Export.cpp and InventoryExports.hpp
    • Verified CMakeLists.txt and debt tracking: libkernel_sys properly linked in libSceNKWebKit, technical debt and inventory removals properly recorded in docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md
    • Verified tests/Wtf.cpp: TestFileLinks exercises hardLink, createSymbolicLink, and appendFileContentsToFileHandle across multiple sizes (including chunk boundary conditions), null strings, non-existent files, and clean teardown of aliases and directories

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5952182797 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5952182797). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-18T07:13:15Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `e153728d30`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4574: nkwebkit_wtf ..................... Passed 0.15 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified WtfSystem.cpp: LinkPaths converts WTF::String to UTF-8 using _ZNK3WTF6String4utf8ENS_14ConversionModeE and safely guards buffer nullness via PathData, returning false on link_nid_postfix / symlink_nid_postfix failure - Verified WtfSystem.cpp: ReadFromFile and WriteToFile properly retry on guest EINTR (GuestEintr = 4) and handle return values and types correctly - Verified WtfSystem.cpp: appendFileContentsToFileHandle uses FileCloser RAII to guarantee descriptor cleanup, reads in 512 KiB chunks, checks write length matches read length, and stops cleanly on EOF - Verified WtfExports.hpp & Export.cpp & InventoryExports.hpp: function signatures match WTF mangled symbols, implemented stubs removed cleanly from Export.cpp and InventoryExports.hpp - Verified CMakeLists.txt and debt tracking: libkernel_sys properly linked in libSceNKWebKit, technical debt and inventory removals properly recorded in docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md - Verified tests/Wtf.cpp: TestFileLinks exercises hardLink, createSymbolicLink, and appendFileContentsToFileHandle across multiple sizes (including chunk boundary conditions), null strings, non-existent files, and clean teardown of aliases and directories Looks Good To Me
PrivacyOnion commented 2026-11-19 21:24:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T21:24:38Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 8b2caf0050:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4771: nkwebkit_wtf .....................   Passed    0.18 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified WtfSystem.cpp: LinkPaths properly converts WTF::String via String::utf8, guards null buffers in PathData, and delegates to link_nid_postfix / symlink_nid_postfix returning true on 0 and false on error (matching std::filesystem !ec behavior).
    • Verified WtfSystem.cpp: ReadFromFile and WriteToFile retry loops correctly inspect *__error_nid_postfix() == GuestEintr (4) and propagate errors (-1) on non-transient failures.
    • Verified WtfSystem.cpp: appendFileContentsToFileHandle uses FileCloser RAII to guarantee source descriptor cleanup, handles chunked 512 KiB streaming, checks exact write sizes, and terminates properly on partial reads or EOF.
    • Verified WtfExports.hpp, Export.cpp, InventoryExports.hpp, and CMakeLists.txt: mangled symbol signatures match WTF ABI conventions, implemented stubs were cleanly removed from inventory and Export.cpp, and libkernel_sys was linked.
    • Verified docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md and tests/Wtf.cpp: technical debt and removals follow AGENTS.md fragment requirements, and unit tests cover hardLink, createSymbolicLink, and appendFileContentsToFileHandle across edge cases, boundary conditions, and error paths.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983644026 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5983644026). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T21:24:38Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `8b2caf0050`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4771: nkwebkit_wtf ..................... Passed 0.18 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified WtfSystem.cpp: LinkPaths properly converts WTF::String via String::utf8, guards null buffers in PathData, and delegates to link_nid_postfix / symlink_nid_postfix returning true on 0 and false on error (matching std::filesystem !ec behavior). - Verified WtfSystem.cpp: ReadFromFile and WriteToFile retry loops correctly inspect *__error_nid_postfix() == GuestEintr (4) and propagate errors (-1) on non-transient failures. - Verified WtfSystem.cpp: appendFileContentsToFileHandle uses FileCloser RAII to guarantee source descriptor cleanup, handles chunked 512 KiB streaming, checks exact write sizes, and terminates properly on partial reads or EOF. - Verified WtfExports.hpp, Export.cpp, InventoryExports.hpp, and CMakeLists.txt: mangled symbol signatures match WTF ABI conventions, implemented stubs were cleanly removed from inventory and Export.cpp, and libkernel_sys was linked. - Verified docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md and tests/Wtf.cpp: technical debt and removals follow AGENTS.md fragment requirements, and unit tests cover hardLink, createSymbolicLink, and appendFileContentsToFileHandle across edge cases, boundary conditions, and error paths. Looks Good To Me
MarcZX10 commented 2026-11-19 21:41:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T21:41:13Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the implementation and its reported tests support merging, with console behavior still unverified.

What I ran

Reviewed head 8b2caf0050878283864f5893bc76e2f5994cec44 using the prepared diff and repo_read.py. No commands or tests were run by me; build and test results below are author-reported.

Results

Check Result Note
Code review passed Changed implementation and tests inspected
Build and tests not run Results supplied in the PR description
Console behavior not run Debt entry records this limitation

Findings

Blocking

None.

Non-blocking

None.

Not verified

No changed source files were excluded from review. Read: CMakeLists.txt, WtfExports.hpp, WtfSystem.cpp, tests/Wtf.cpp, and the debt fragment. Export.cpp and InventoryExports.hpp were excluded from the prepared bundle and not read; their diff hunks only remove three stubs and declarations. files.json was unavailable. The reported Linux and Windows test runs were not independently reproduced; behavior on console firmware was not verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983856644 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5983856644). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T21:41:13Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the implementation and its reported tests support merging, with console behavior still unverified. ## What I ran Reviewed head `8b2caf0050878283864f5893bc76e2f5994cec44` using the prepared diff and `repo_read.py`. No commands or tests were run by me; build and test results below are author-reported. ## Results | Check | Result | Note | |---|---|---| | Code review | passed | Changed implementation and tests inspected | | Build and tests | not run | Results supplied in the PR description | | Console behavior | not run | Debt entry records this limitation | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No changed source files were excluded from review. Read: `CMakeLists.txt`, `WtfExports.hpp`, `WtfSystem.cpp`, `tests/Wtf.cpp`, and the debt fragment. `Export.cpp` and `InventoryExports.hpp` were excluded from the prepared bundle and not read; their diff hunks only remove three stubs and declarations. `files.json` was unavailable. The reported Linux and Windows test runs were not independently reproduced; behavior on console firmware was not verified. ## To get this to a good state Nothing is required.
PrivacyOnion commented 2026-11-20 17:11:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T17:11:38Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against b33a357578:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4830: nkwebkit_wtf .....................   Passed    0.49 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified WtfSystem.cpp:264-273 PathData and LinkPaths implementation: null buffer check throws runtime_error as path has no UTF-8 representation, and UTF-8 strings are passed cleanly to link_nid_postfix and symlink_nid_postfix.
    • Verified WtfSystem.cpp:275-289 ReadFromFile and WriteToFile: EINTR loops against GuestEintr (4) correctly handle interruptions, and negative return values propagate errors.
    • Verified WtfSystem.cpp:291-294 FileCloser RAII guard: ensures source file descriptor is reliably closed via _ZN3WTF14FileSystemImpl9closeFileERi on all exit branches of appendFileContentsToFileHandle.
    • Verified WtfSystem.cpp:308-320 appendFileContentsToFileHandle: 512 KiB buffer chunking matches WebKit upstream FileSystem.cpp:249-277, checking exact write length and terminating when readBytes < bufferSize.
    • Verified WtfExports.hpp, Export.cpp, and InventoryExports.hpp: signatures match WTF ABI conventions, and implemented stubs are cleanly transitioned without inventory discrepancies.
    • Verified tests/Wtf.cpp: TestFileLinks comprehensively exercises hardLink, createSymbolicLink, and appendFileContentsToFileHandle across success, failure, short read, large buffers, null paths, and cleanup.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5996546065 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5996546065). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T17:11:38Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `b33a357578`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4830: nkwebkit_wtf ..................... Passed 0.49 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified WtfSystem.cpp:264-273 PathData and LinkPaths implementation: null buffer check throws runtime_error as path has no UTF-8 representation, and UTF-8 strings are passed cleanly to link_nid_postfix and symlink_nid_postfix. - Verified WtfSystem.cpp:275-289 ReadFromFile and WriteToFile: EINTR loops against GuestEintr (4) correctly handle interruptions, and negative return values propagate errors. - Verified WtfSystem.cpp:291-294 FileCloser RAII guard: ensures source file descriptor is reliably closed via _ZN3WTF14FileSystemImpl9closeFileERi on all exit branches of appendFileContentsToFileHandle. - Verified WtfSystem.cpp:308-320 appendFileContentsToFileHandle: 512 KiB buffer chunking matches WebKit upstream FileSystem.cpp:249-277, checking exact write length and terminating when readBytes < bufferSize. - Verified WtfExports.hpp, Export.cpp, and InventoryExports.hpp: signatures match WTF ABI conventions, and implemented stubs are cleanly transitioned without inventory discrepancies. - Verified tests/Wtf.cpp: TestFileLinks comprehensively exercises hardLink, createSymbolicLink, and appendFileContentsToFileHandle across success, failure, short read, large buffers, null paths, and cleanup. Looks Good To Me
MarcZX10 commented 2026-11-20 17:34:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T17:34:08Z.

Review: COMMENTED


Reviewed — no blocking findings

A review could not be completed because the required review-folder contents and repository reader were not accessible through the available tools.

What I ran

No commands were run. The pinned head, b33a3575785f0aa658a8bd20e5408312cf34cc06, was not inspected.

Results

Check Result Note
Review-folder inspection not run Inputs were inaccessible
Code audit not run Changed files were not read

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The description, commits, diff, manifest, changed-file contents, and repository behavior were not read. No files can be confirmed as read against the reviewed list.

To get this to a good state

Provide access to the review inputs and pinned repository reader so the change can be reviewed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5996856870 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-5996856870). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T17:34:08Z. **Review:** COMMENTED --- # Reviewed — no blocking findings A review could not be completed because the required review-folder contents and repository reader were not accessible through the available tools. ## What I ran No commands were run. The pinned head, `b33a3575785f0aa658a8bd20e5408312cf34cc06`, was not inspected. ## Results | Check | Result | Note | |---|---|---| | Review-folder inspection | not run | Inputs were inaccessible | | Code audit | not run | Changed files were not read | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified The description, commits, diff, manifest, changed-file contents, and repository behavior were not read. No files can be confirmed as read against the reviewed list. ## To get this to a good state Provide access to the review inputs and pinned repository reader so the change can be reviewed.
MarcZX10 commented 2026-11-22 05:38:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T05:38:17Z.

Review: APPROVED


Reviewed — looks good

The changed implementations and their callers appear sound at the pinned head; the reported test runs were supplied by the author and were not run in this review.

What I ran

Reviewed head 2821f223139fb0e5e985a5de7e6904cd374c2eb2; no build or test commands were run. Read description.md, commits.md, manifest.json, diff.patch, and the included full text for CMakeLists.txt, WtfExports.hpp, WtfSystem.cpp, Wtf.cpp, and the debt fragment. Targeted source context was read for the guest string ABI, link wrappers, and call sites. Export.cpp and InventoryExports.hpp were excluded from the review bundle because they were too large; targeted ranges of Export.cpp were read through the pinned reader. files.json was not available through the reader.

Results

Check Result Note
Diff and targeted code review passed No concrete defect found
Build and tests in this review not run Author reports passing runs
Excluded changed file coverage not applicable Targeted Export.cpp ranges inspected

Findings

Blocking

None.

Non-blocking

None.

Not verified

No commands, build, or tests were run in this review. Console behavior remains unverified as the debt entry states. The full contents of Export.cpp and InventoryExports.hpp were not read; only relevant export-stub lines from Export.cpp were inspected. The author-reported Linux, Windows, and WSL2 test results were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6010572124 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-6010572124). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T05:38:17Z. **Review:** APPROVED --- # Reviewed — looks good The changed implementations and their callers appear sound at the pinned head; the reported test runs were supplied by the author and were not run in this review. ## What I ran Reviewed head `2821f223139fb0e5e985a5de7e6904cd374c2eb2`; no build or test commands were run. Read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, and the included full text for `CMakeLists.txt`, `WtfExports.hpp`, `WtfSystem.cpp`, `Wtf.cpp`, and the debt fragment. Targeted source context was read for the guest string ABI, link wrappers, and call sites. `Export.cpp` and `InventoryExports.hpp` were excluded from the review bundle because they were too large; targeted ranges of `Export.cpp` were read through the pinned reader. `files.json` was not available through the reader. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | No concrete defect found | | Build and tests in this review | not run | Author reports passing runs | | Excluded changed file coverage | not applicable | Targeted `Export.cpp` ranges inspected | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No commands, build, or tests were run in this review. Console behavior remains unverified as the debt entry states. The full contents of `Export.cpp` and `InventoryExports.hpp` were not read; only relevant export-stub lines from `Export.cpp` were inspected. The author-reported Linux, Windows, and WSL2 test results were not independently verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-25 10:57:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T10:57:21Z.

Review: APPROVED


Reviewed — looks good

The reviewed code matches the stated implementation, and the reported checks provide supporting evidence; console behavior remains unverified.

What I ran

Reviewed head dcc4be45e55a0a5a705df6c1e8a7335b5ff9f32d using the prepared diff and pinned reader. No build or tests were run in this review; test results below are author-reported.

Results

Check Result Note
Diff and implementation review passed Core changed logic and tests inspected
Reported test runs passed Author reports Linux and Windows checks
Console behavior not run Debt entry records this limitation

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full texts of core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp were excluded by the review-folder size rule; their changed regions were read through the pinned reader. Full text was read for core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp, core/libs/prx/libSceNKWebKit/tests/Wtf.cpp, and docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md. No programmatic checks were run by this review. Console libc++ behavior and symbolic link behavior on Windows remain unverified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6056298540 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-6056298540). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T10:57:21Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed code matches the stated implementation, and the reported checks provide supporting evidence; console behavior remains unverified. ## What I ran Reviewed head `dcc4be45e55a0a5a705df6c1e8a7335b5ff9f32d` using the prepared diff and pinned reader. No build or tests were run in this review; test results below are author-reported. ## Results | Check | Result | Note | |---|---|---| | Diff and implementation review | passed | Core changed logic and tests inspected | | Reported test runs | passed | Author reports Linux and Windows checks | | Console behavior | not run | Debt entry records this limitation | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full texts of `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` were excluded by the review-folder size rule; their changed regions were read through the pinned reader. Full text was read for `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp`, `core/libs/prx/libSceNKWebKit/tests/Wtf.cpp`, and `docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md`. No programmatic checks were run by this review. Console libc++ behavior and symbolic link behavior on Windows remain unverified. ## To get this to a good state Nothing is required.
PrivacyOnion commented 2026-11-27 14:17:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-27T14:17:22Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against dcc4be45e5:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #5467: nkwebkit_wtf .....................   Passed    0.20 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: PathData handles representation.buffer null check and indexes representation.buffer + 1 (WtfAbi CString layout: buffer[0] is length, buffer+1 is data)
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths converts String to utf8 via _ZNK3WTF6String4utf8ENS_14ConversionModeE and returns operation() == 0, delegating directly to link_nid_postfix and symlink_nid_postfix
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly loop on GuestEintr (*__error_nid_postfix() == 4) and handle non-negative return values correctly
    • core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle correctly uses RAII FileCloser to invoke _ZN3WTF14FileSystemImpl9closeFileERi on scope exit, returns false on open failure or read/write error, and terminates on short read
    • core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: TestFileLinks exercises hardLink, createSymbolicLink, and appendFileContentsToFileHandle with valid paths, non-existent paths, null paths, and large/exact buffer boundaries
    • docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md: Debt fragment adheres to AGENTS.md rules, recording console divergence and stub removals cleanly

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6089495150 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-6089495150). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-27T14:17:22Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `dcc4be45e5`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #5467: nkwebkit_wtf ..................... Passed 0.20 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: PathData handles representation.buffer null check and indexes representation.buffer + 1 (WtfAbi CString layout: buffer[0] is length, buffer+1 is data) - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: LinkPaths converts String to utf8 via _ZNK3WTF6String4utf8ENS_14ConversionModeE and returns operation() == 0, delegating directly to link_nid_postfix and symlink_nid_postfix - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: ReadFromFile and WriteToFile properly loop on GuestEintr (*__error_nid_postfix() == 4) and handle non-negative return values correctly - core/libs/prx/libSceNKWebKit/src/WtfSystem.cpp: appendFileContentsToFileHandle correctly uses RAII FileCloser to invoke _ZN3WTF14FileSystemImpl9closeFileERi on scope exit, returns false on open failure or read/write error, and terminates on short read - core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: TestFileLinks exercises hardLink, createSymbolicLink, and appendFileContentsToFileHandle with valid paths, non-existent paths, null paths, and large/exact buffer boundaries - docs/dev/debt/changes/claude-nkwebkit-wtf-fs-links.md: Debt fragment adheres to AGENTS.md rules, recording console divergence and stub removals cleanly Looks Good To Me
ligmaSec commented 2026-12-03 15:48:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T15:48:07Z.

Review: COMMENTED


I ran nkwebkit_wtf with the patch applied on Linux. It passed the hard-link, symlink, and append cases, including the guest path resolution checks and the readback of the linked file.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6173208235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19823#pullrequestreview-6173208235). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T15:48:07Z. **Review:** COMMENTED --- I ran `nkwebkit_wtf` with the patch applied on Linux. It passed the hard-link, symlink, and append cases, including the guest path resolution checks and the readback of the linked file. AI-assisted: yes.

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