feat(libkernel_sys): implement __sys_is_development_mode export #14304

Merged
bipinkrish merged 2 commits from upstream-pr/14304 into main 2026-11-11 23:33:11 +00:00
bipinkrish commented 2026-11-01 09:01:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by bipinkrish on 2026-11-01T09:01:46Z.


What

Report development mode as disabled (0) for the runtime's fixed retail profile. The export takes no arguments and now uses the uint64_t return declared by PS5SDK, replacing the inventory's unverified int placeholder.

Console return values and nonzero development-mode bits are unmeasured. The debt entry now says so directly. The cited ps5-hen hook manufactures 0xc001; it does not measure a retail result. libkernel_web remains a separate unimplemented export.

The five PRs listed in the overlap review (#11031, #11034, #14085, #14257, and #14299) have merged into main. The rebase includes their changes and reconciles the shared debt inventory. This PR has no remaining dependencies.

Tested

  • Ubuntu 24.04.4 x86-64, GCC 13.3, Release. Built and ran guest_kernel_sys_development_mode on 3e09be642b3, rebased onto 1b485ff7457. The test checks repeated queries and guest errno preservation.
  • Public-header audit, whitespace, and upstream convention checks passed. The debt table now lists 303 pending exports, with 152 named and 151 unresolved.
  • Hosted Windows at 9e72210ea08f3af254c901c14c0094742f0e0272: job 124839617956 selected, compiled and linked guest_kernel_sys_development_mode_tests. CTest test 526 passed in 0.04 seconds at 2026-11-01T12:31:36Z. The complete job passed 2586/2586 tests. Verified from the raw job log.
  • No console measurement or local Windows run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5105551671 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14304). Originally posted by [bipinkrish](https://github.com/bipinkrish) on 2026-11-01T09:01:46Z. --- ### What Report development mode as disabled (`0`) for the runtime's fixed retail profile. The export takes no arguments and now uses the `uint64_t` return declared by [PS5SDK](https://github.com/PS5Dev/PS5SDK/blob/a2e03a2a0231a3a3397fa6cd087a01ca6d04f273/ps5/libkernel.h#L68), replacing the inventory's unverified `int` placeholder. Console return values and nonzero development-mode bits are unmeasured. The debt entry now says so directly. The cited [ps5-hen hook](https://github.com/cragson/ps5-hen/blob/1d7787b45fa9121d1e0877a5c0bf436b439d988b/hen/src/hook.cpp#L249-L252) manufactures `0xc001`; it does not measure a retail result. `libkernel_web` remains a separate unimplemented export. The five PRs listed in the overlap review (#11031, #11034, #14085, #14257, and #14299) have merged into `main`. The rebase includes their changes and reconciles the shared debt inventory. This PR has no remaining dependencies. ### Tested - Ubuntu 24.04.4 x86-64, GCC 13.3, Release. Built and ran `guest_kernel_sys_development_mode` on `3e09be642b3`, rebased onto `1b485ff7457`. The test checks repeated queries and guest errno preservation. - Public-header audit, whitespace, and upstream convention checks passed. The debt table now lists 303 pending exports, with 152 named and 151 unresolved. - Hosted Windows at `9e72210ea08f3af254c901c14c0094742f0e0272`: [job 124839617956](https://github.com/boykopovar/AnyPS5/actions/runs/41302350560/job/124839617956) selected, compiled and linked `guest_kernel_sys_development_mode_tests`. CTest test 526 passed in 0.04 seconds at `2026-11-01T12:31:36Z`. The complete job passed 2586/2586 tests. Verified from the raw job log. - No console measurement or local Windows run. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-01 09:23:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T09:23:19Z.

Review: DISMISSED


Reviewed — changes requested

The implementation and hosted checks look sound, but the required landing order for the overlapping debt-file changes is not recorded or agreed in the PR checklist.

What I ran

Reviewed head d62f2407866cd9c7bcb84252e5a4138bd4fd5249 against PR base c674f8c14da93df7a6b37657117ca3f58357477f. The exact head previews cleanly on current main at 26fa1212b82f76dd49cf12d65e445d6ff3e0844c. Pairwise previews against the current heads of #11031, #11034, #14085, #14257 and #14299 conflict in docs/dev/debt/libkernel_sys.md. Environment: Debian GNU/Linux 12, Python 3.11.2, Git 2.39.5, GCC 12.2.0. No local C++ build or CTest was run; the hosted Windows workflow built and ran the new test.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14304
python3 tools/pr_stack_check.py 14304 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14304-d62f2407866c/stack
git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 0d61e5b7a2107b41dbcf51ef38a0e16b1f3a06c6
git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 bde8a2f9087f1a59fe6c82df56ac2e2da852a5ce
git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 2c8c6370513e77b22fdd405f2e0dc3d1182e4ed9
git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 342117a322fdf8bbfa672050cde378e25965149d
git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 a37dcc1320fb22da78e9afe2744334cb0dac66aa
gh pr checks 14304 --repo boykopovar/AnyPS5
gh run view 41287117427 --job 124791878714 --repo boykopovar/AnyPS5 --log | grep -Ei 'development_mode|guest_kernel_sys|ctest|testing:' | tail -35

Results

Check Result
Diff and conventions Passed.
PR title and template Passed.
Current-main merge preview Passed: clean.
Test registration Passed: guest_kernel_sys_development_mode is registered.
Hosted Windows build/test Passed: the new test was built and passed.
Hosted conventions, intake, labels, report, eligibility, library-portability Passed.
Hosted Linux and specialized jobs Skipped.
Local build or CTest Not run.
Optional precheck helpers Not executable in the temporary PR snapshot; the ABI audit and test-quality helper scripts are workspace-local.
Overlap previews Conflicted in docs/dev/debt/libkernel_sys.md for all five open PR heads listed above.
Raw selected output
All conventions checks passed.
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14304-d62f2407866c/head-d62f2407866c-40016bc1/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14304-d62f2407866c/head-d62f2407866c-40016bc1/tools/pr_test_quality.py': [Errno 2] No such file or directory

660-    endif()
661-    add_test(NAME crash_text COMMAND crash_text_tests)
662:    add_test_executable(guest_kernel_sys_development_mode_tests tests/GuestKernelSysDevelopmentMode.cpp)
663-    target_include_directories(guest_kernel_sys_development_mode_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
664-    target_link_libraries(guest_kernel_sys_development_mode_tests PRIVATE libkernel_sys libkernel libc)

101/2582 Test  #525: guest_kernel_sys_development_mode ...........................................   Passed    0.02 sec

#11031 Gruzzberry open head=0d61e5b7a2107b41dbcf51ef38a0e16b1f3a06c6 pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md']
#11034 Gruzzberry open head=bde8a2f9087f1a59fe6c82df56ac2e2da852a5ce pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md']
#14085 LeandroLP23 open head=2c8c6370513e77b22fdd405f2e0dc3d1182e4ed9 pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md']
#14257 bipinkrish open head=342117a322fdf8bbfa672050cde378e25965149d pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md']
#14299 bipinkrish open head=a37dcc1320fb22da78e9afe2744334cb0dac66aa pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md']

conventions	pass	15s	https://github.com/boykopovar/AnyPS5/actions/runs/41287117406/job/124790551227
intake	pass	17s	https://github.com/boykopovar/AnyPS5/actions/runs/41287117418/job/124790551069
labels	pass	7s	https://github.com/boykopovar/AnyPS5/actions/runs/41287117407/job/124790550834
library-portability	pass	1m43s	https://github.com/boykopovar/AnyPS5/actions/runs/41287117342/job/124790549870
windows	pass	17m48s	https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791878714
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791880094
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791879486
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791879908
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791880041
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791879953
eligibility	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124790550407
report	pass	1m7s	https://github.com/boykopovar/AnyPS5/actions/runs/41287117570/job/124790550868

Negative control

Assertion Change to code under test Result
Whether the new assertion fails if the stub is restored or the implementation changed No negative-control variant was run by me. Could not be exercised.

Findings

Blocking

  • Resolve the documented overlap order. The checklist says Depends on: none, but the PR description says #14257 and #14299 touch the same three files and that the later branch will need rebasing. The repository's live overlap comment also lists #11031, #11034 and #14085 as overlapping the debt entry; all five PRs remain open, and pairwise previews with their current heads conflict in docs/dev/debt/libkernel_sys.md. The contribution rule asks authors to agree which overlapping PR lands first and declare the dependency. Please coordinate the order with the affected authors and update the checklist to name any preceding PRs (or record the agreed order and explain why none remains correct if no branch depends on another).

Non-blocking

  • Console behavior remains unverified, as the PR description states. The test confirms the selected constant result in the emulator; it does not independently establish the retail console's response.

Sources

Not verified

I did not run a local build, CTest, console test, or a negative control. Linux and specialized hosted jobs were skipped. The PR's claim about the retail console response is not independently measured here.

To get this to a good state

Record an agreed landing order and the corresponding dependency declaration for the overlapping PRs. I will rerun the same overlap and no-build checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5727363305 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14304#pullrequestreview-5727363305). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T09:23:19Z. **Review:** DISMISSED --- # Reviewed — changes requested The implementation and hosted checks look sound, but the required landing order for the overlapping debt-file changes is not recorded or agreed in the PR checklist. ## What I ran Reviewed head `d62f2407866cd9c7bcb84252e5a4138bd4fd5249` against PR base `c674f8c14da93df7a6b37657117ca3f58357477f`. The exact head previews cleanly on current `main` at `26fa1212b82f76dd49cf12d65e445d6ff3e0844c`. Pairwise previews against the current heads of #11031, #11034, #14085, #14257 and #14299 conflict in `docs/dev/debt/libkernel_sys.md`. Environment: Debian GNU/Linux 12, Python 3.11.2, Git 2.39.5, GCC 12.2.0. No local C++ build or CTest was run; the hosted Windows workflow built and ran the new test. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14304 python3 tools/pr_stack_check.py 14304 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14304-d62f2407866c/stack git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 0d61e5b7a2107b41dbcf51ef38a0e16b1f3a06c6 git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 bde8a2f9087f1a59fe6c82df56ac2e2da852a5ce git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 2c8c6370513e77b22fdd405f2e0dc3d1182e4ed9 git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 342117a322fdf8bbfa672050cde378e25965149d git merge-tree --write-tree --name-only --no-messages d62f2407866cd9c7bcb84252e5a4138bd4fd5249 a37dcc1320fb22da78e9afe2744334cb0dac66aa gh pr checks 14304 --repo boykopovar/AnyPS5 gh run view 41287117427 --job 124791878714 --repo boykopovar/AnyPS5 --log | grep -Ei 'development_mode|guest_kernel_sys|ctest|testing:' | tail -35 ``` ## Results | Check | Result | |---|---| | Diff and conventions | Passed. | | PR title and template | Passed. | | Current-main merge preview | Passed: clean. | | Test registration | Passed: `guest_kernel_sys_development_mode` is registered. | | Hosted Windows build/test | Passed: the new test was built and passed. | | Hosted conventions, intake, labels, report, eligibility, library-portability | Passed. | | Hosted Linux and specialized jobs | Skipped. | | Local build or CTest | Not run. | | Optional precheck helpers | Not executable in the temporary PR snapshot; the ABI audit and test-quality helper scripts are workspace-local. | | Overlap previews | Conflicted in `docs/dev/debt/libkernel_sys.md` for all five open PR heads listed above. | <details> <summary>Raw selected output</summary> ```text All conventions checks passed. /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14304-d62f2407866c/head-d62f2407866c-40016bc1/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14304-d62f2407866c/head-d62f2407866c-40016bc1/tools/pr_test_quality.py': [Errno 2] No such file or directory 660- endif() 661- add_test(NAME crash_text COMMAND crash_text_tests) 662: add_test_executable(guest_kernel_sys_development_mode_tests tests/GuestKernelSysDevelopmentMode.cpp) 663- target_include_directories(guest_kernel_sys_development_mode_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) 664- target_link_libraries(guest_kernel_sys_development_mode_tests PRIVATE libkernel_sys libkernel libc) 101/2582 Test #525: guest_kernel_sys_development_mode ........................................... Passed 0.02 sec #11031 Gruzzberry open head=0d61e5b7a2107b41dbcf51ef38a0e16b1f3a06c6 pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md'] #11034 Gruzzberry open head=bde8a2f9087f1a59fe6c82df56ac2e2da852a5ce pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md'] #14085 LeandroLP23 open head=2c8c6370513e77b22fdd405f2e0dc3d1182e4ed9 pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md'] #14257 bipinkrish open head=342117a322fdf8bbfa672050cde378e25965149d pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md'] #14299 bipinkrish open head=a37dcc1320fb22da78e9afe2744334cb0dac66aa pairwise rc=1 paths=['docs/dev/debt/libkernel_sys.md'] conventions pass 15s https://github.com/boykopovar/AnyPS5/actions/runs/41287117406/job/124790551227 intake pass 17s https://github.com/boykopovar/AnyPS5/actions/runs/41287117418/job/124790551069 labels pass 7s https://github.com/boykopovar/AnyPS5/actions/runs/41287117407/job/124790550834 library-portability pass 1m43s https://github.com/boykopovar/AnyPS5/actions/runs/41287117342/job/124790549870 windows pass 17m48s https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791878714 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791880094 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791879486 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791879908 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791880041 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124791879953 eligibility pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41287117427/job/124790550407 report pass 1m7s https://github.com/boykopovar/AnyPS5/actions/runs/41287117570/job/124790550868 ``` </details> ## Negative control | Assertion | Change to code under test | Result | |---|---|---| | Whether the new assertion fails if the stub is restored or the implementation changed | No negative-control variant was run by me. | Could not be exercised. | ## Findings ### Blocking - **Resolve the documented overlap order.** The checklist says `Depends on: none`, but the PR description says #14257 and #14299 touch the same three files and that the later branch will need rebasing. The repository's live overlap comment also lists #11031, #11034 and #14085 as overlapping the debt entry; all five PRs remain open, and pairwise previews with their current heads conflict in `docs/dev/debt/libkernel_sys.md`. The contribution rule asks authors to agree which overlapping PR lands first and declare the dependency. Please coordinate the order with the affected authors and update the checklist to name any preceding PRs (or record the agreed order and explain why `none` remains correct if no branch depends on another). ### Non-blocking - Console behavior remains unverified, as the PR description states. The test confirms the selected constant result in the emulator; it does not independently establish the retail console's response. ## Sources - [Overlap-order requirement at pinned current main](https://github.com/boykopovar/AnyPS5/blob/26fa1212b82f76dd49cf12d65e445d6ff3e0844c/CONTRIBUTING.md#L70) - [Live overlap report on #14304](https://github.com/boykopovar/AnyPS5/pull/14304#issuecomment-6555475252) - [#14304 implementation and test at reviewed head](https://github.com/boykopovar/AnyPS5/tree/d62f2407866cd9c7bcb84252e5a4138bd4fd5249/core/libs) - [#11031 debt-file head](https://github.com/boykopovar/AnyPS5/blob/0d61e5b7a2107b41dbcf51ef38a0e16b1f3a06c6/docs/dev/debt/libkernel_sys.md) - [#11034 debt-file head](https://github.com/boykopovar/AnyPS5/blob/bde8a2f9087f1a59fe6c82df56ac2e2da852a5ce/docs/dev/debt/libkernel_sys.md) - [#14085 debt-file head](https://github.com/boykopovar/AnyPS5/blob/2c8c6370513e77b22fdd405f2e0dc3d1182e4ed9/docs/dev/debt/libkernel_sys.md) - [#14257 implementation and debt-file head](https://github.com/boykopovar/AnyPS5/tree/342117a322fdf8bbfa672050cde378e25965149d/core/libs/prx/libkernel_sys) - [#14299 implementation and debt-file head](https://github.com/boykopovar/AnyPS5/tree/a37dcc1320fb22da78e9afe2744334cb0dac66aa/core/libs/prx/libkernel_sys) ## Not verified I did not run a local build, CTest, console test, or a negative control. Linux and specialized hosted jobs were skipped. The PR's claim about the retail console response is not independently measured here. ## To get this to a good state Record an agreed landing order and the corresponding dependency declaration for the overlapping PRs. I will rerun the same overlap and no-build checks on the updated head.
MarcZX10 commented 2026-11-02 07:51:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T07:51:09Z.

Review: COMMENTED


Reviewed — no blocking findings; __sys_is_development_mode returns 0, but its new guest test is absent from the Windows run

This PR replaces the NotImplemented stub for __sys_is_development_mode with an export that returns 0, changes its return type to std::uint64_t, and adds a guest test with a CTest case. I read the export change in full. The Windows run passed 2586 of 2586, but the new test guest_kernel_sys_development_mode does not appear in the Windows log at all, and I did not establish why.

What I ran

  • Head 9e72210ea08f3af254c901c14c0094742f0e0272; base e67cc818696fd6e6c58ac80adc6550c54aed68e8. 5 files, +42/-6: core/libs/CMakeLists.txt (+11, the new test target and CTest case), libkernel_sys/AdditionalExports.cpp (+4/-2), libkernel_sys/include/AdditionalExports.hpp (+1/-1), tests/GuestKernelSysDevelopmentMode.cpp (+25, new), and docs/dev/debt/libkernel_sys.md (3 lines; not read).
  • Read the export change in full. __sys_is_development_mode_nid_postfix returns 0 and its declaration is std::uint64_t. The CMake block registers guest_kernel_sys_development_mode_tests next to guest_kernel_sys_swapcontext.
  • Test file: read the names only.
  • Hosted, Windows CTest: 2586 of 2586 passed. guest_kernel_sys_swapcontext was built, linked and started in that run. No line for guest_kernel_sys_development_mode, its target, or its binary appears in the log.
  • Hosted, other jobs: conventions passed on the later run (an earlier run was cancelled); library-portability and report succeeded. Linux, relinkers and write-watch skipped.
  • Read-only checks from the trusted main checkout: diff check and conventions passed. ABI audit passed: 325 symbols. Stack check: clean, no declared dependencies, no errors.
  • No MarcZX10 review at this head.

Results

Check Result Note
Diff check passed
Conventions and PR template passed the later run succeeded; an earlier run was cancelled
Mergeability and dependencies passed stack check: clean; no declared dependencies
ABI audit (main-checkout tool) passed 325 symbols
Windows CTest (hosted) passed 2586 of 2586
guest_kernel_sys_development_mode (the new test) not in the log no build or run line in the Windows log; the cause was not established
__sys_is_development_mode returns 0 (read) passed by reading the export matches its description; no blocking defect found
The value 0 against PS5 retail behaviour not verified the debt entry was not read
Negative controls not run no local build
Read-only check output

Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: passed (325 symbols). Stack check: clean, no declared dependencies, no errors. Hosted: gh api repos/boykopovar/AnyPS5/commits/9e72210ea08f3af254c901c14c0094742f0e0272/check-runs, and the Windows job log (2586 of 2586).

Negative control

Not run here. A negative control needs a local build and run of the development-mode test, and code from this head is not run here.

Findings

Blocking

None from the code read.

Non-blocking

  • The new guest test is not in the Windows log: it was neither built nor run there, while the neighbouring guest_kernel_sys_swapcontext was built and run. The cause was not established here. Check whether the registration applies on Windows, and whether the CI selection includes it.
  • The export returns 0 for every caller. Whether that matches retail PS5 behaviour is not checked in this review; the debt entry is the place for it.

Sources

Not verified

  • Why the development-mode test does not appear in the Windows log.
  • The return value of 0 against PS5 retail behaviour.
  • The debt entry (not read).

To get this to a good state

  • Nothing blocking. Explain why the new test is absent from the Windows run, and run it in hosted CI.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5733432897 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14304#pullrequestreview-5733432897). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T07:51:09Z. **Review:** COMMENTED --- # Reviewed — no blocking findings; `__sys_is_development_mode` returns 0, but its new guest test is absent from the Windows run This PR replaces the `NotImplemented` stub for `__sys_is_development_mode` with an export that returns 0, changes its return type to `std::uint64_t`, and adds a guest test with a CTest case. I read the export change in full. The Windows run passed 2586 of 2586, but the new test `guest_kernel_sys_development_mode` does not appear in the Windows log at all, and I did not establish why. ## What I ran - Head `9e72210ea08f3af254c901c14c0094742f0e0272`; base `e67cc818696fd6e6c58ac80adc6550c54aed68e8`. 5 files, +42/-6: `core/libs/CMakeLists.txt` (+11, the new test target and CTest case), `libkernel_sys/AdditionalExports.cpp` (+4/-2), `libkernel_sys/include/AdditionalExports.hpp` (+1/-1), `tests/GuestKernelSysDevelopmentMode.cpp` (+25, new), and `docs/dev/debt/libkernel_sys.md` (3 lines; not read). - Read the export change in full. `__sys_is_development_mode_nid_postfix` returns `0` and its declaration is `std::uint64_t`. The CMake block registers `guest_kernel_sys_development_mode_tests` next to `guest_kernel_sys_swapcontext`. - Test file: read the names only. - Hosted, Windows CTest: 2586 of 2586 passed. `guest_kernel_sys_swapcontext` was built, linked and started in that run. No line for `guest_kernel_sys_development_mode`, its target, or its binary appears in the log. - Hosted, other jobs: conventions passed on the later run (an earlier run was cancelled); library-portability and report succeeded. Linux, relinkers and write-watch skipped. - Read-only checks from the trusted main checkout: diff check and conventions passed. ABI audit passed: 325 symbols. Stack check: clean, no declared dependencies, no errors. - No MarcZX10 review at this head. ## Results | Check | Result | Note | | --- | --- | --- | | Diff check | passed | | | Conventions and PR template | passed | the later run succeeded; an earlier run was cancelled | | Mergeability and dependencies | passed | stack check: clean; no declared dependencies | | ABI audit (main-checkout tool) | passed | 325 symbols | | Windows CTest (hosted) | passed | 2586 of 2586 | | `guest_kernel_sys_development_mode` (the new test) | not in the log | no build or run line in the Windows log; the cause was not established | | `__sys_is_development_mode` returns 0 (read) | passed by reading | the export matches its description; no blocking defect found | | The value 0 against PS5 retail behaviour | not verified | the debt entry was not read | | Negative controls | not run | no local build | <details><summary>Read-only check output</summary> Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: passed (325 symbols). Stack check: clean, no declared dependencies, no errors. Hosted: `gh api repos/boykopovar/AnyPS5/commits/9e72210ea08f3af254c901c14c0094742f0e0272/check-runs`, and the Windows job log (2586 of 2586). </details> ## Negative control Not run here. A negative control needs a local build and run of the development-mode test, and code from this head is not run here. ## Findings **Blocking** None from the code read. **Non-blocking** - The new guest test is not in the Windows log: it was neither built nor run there, while the neighbouring `guest_kernel_sys_swapcontext` was built and run. The cause was not established here. Check whether the registration applies on Windows, and whether the CI selection includes it. - The export returns 0 for every caller. Whether that matches retail PS5 behaviour is not checked in this review; the debt entry is the place for it. ## Sources - Export: https://github.com/boykopovar/AnyPS5/blob/9e72210ea08f3af254c901c14c0094742f0e0272/core/libs/prx/libkernel_sys/AdditionalExports.cpp - CMake registration: https://github.com/boykopovar/AnyPS5/blob/9e72210ea08f3af254c901c14c0094742f0e0272/core/libs/CMakeLists.txt (around line 1200) - Test: https://github.com/boykopovar/AnyPS5/blob/9e72210ea08f3af254c901c14c0094742f0e0272/core/libs/tests/GuestKernelSysDevelopmentMode.cpp - Windows job log: check-run `windows` on 9e72210ea08f3af254c901c14c0094742f0e0272 ## Not verified - Why the development-mode test does not appear in the Windows log. - The return value of 0 against PS5 retail behaviour. - The debt entry (not read). ## To get this to a good state - Nothing blocking. Explain why the new test is absent from the Windows run, and run it in hosted CI.
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!14304
No description provided.