Repository navigation
feat(libSceAjmi): implement sceAjmiInstanceCodecType - #24067
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 4eb9922155:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_ajmi_lifecycle_aliases_testsbuilt cleanly. - CTest (
guest_ajmi_lifecycle_contexts_unpatched,guest_ajmi_lifecycle_instances_unpatched,guest_ajmi_lifecycle_batches_unpatched,guest_ajmi_lifecycle_contexts_nid,guest_ajmi_lifecycle_instances_nid,guest_ajmi_lifecycle_batches_nid):1/6 Test #3512: guest_ajmi_lifecycle_contexts_unpatched .... Passed 0.01 sec 2/6 Test #3513: guest_ajmi_lifecycle_instances_unpatched ... Passed 0.01 sec 3/6 Test #3514: guest_ajmi_lifecycle_batches_unpatched ..... Passed 0.01 sec 4/6 Test #3515: guest_ajmi_lifecycle_contexts_nid .......... Passed 0.01 sec 5/6 Test #3516: guest_ajmi_lifecycle_instances_nid ......... Passed 0.01 sec 6/6 Test #3517: guest_ajmi_lifecycle_batches_nid ........... Passed 0.01 sec 100% tests passed, 0 tests failed out of 6 - Negative control: with
core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/InventoryExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass. - Code reading:
- Export signature in InventoryExports.hpp and Export.cpp correctly matches std::uint32_t APS5_VABI sceAjmiInstanceCodecType(std::uint32_t instanceId), forwarding cleanly to sceAjmInstanceCodecType(instanceId) in libSceAjm.native.
- Technical debt tracking properly registers a removal fragment at docs/dev/debt/changes/feat-ajmi-instance-codec-type.md to remove sceAjmiInstanceCodecType from libSceAjmi debt.
- Memory, pointer, and concurrency safety: sceAjmiInstanceCodecType takes a 32-bit scalar value by value and delegates to sceAjmInstanceCodecType, involving no raw pointer dereferences or local allocations.
- AGENTS.md conventions: no comments added to code, conventional commit title, valid debt fragment syntax, and clean convention checks.
- Test coverage in GuestAjmiLifecycleAliases.cpp exercises boundary conditions (0, 0x3fff, 0x4000, 0xffffffff) as well as an active allocated codec instance both via unpatched symbol name and NID 'Uqtj4RSP-JQ'.
Looks Good To Me
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the inspected implementation forwards the 32-bit instance ID to the existing codec-type decoder and adds boundary and created-instance checks.
What I ran
Reviewed head 4eb99221557144e8dd0e69f27fd02671db13e203 using repo_read.py to inspect the prepared diff and source context. No build or test commands were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed source review | passed | Four changed files inspected |
| Build and tests | not run | Test results in the PR description are author-reported |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported 28 AJM and AJMI guest tests were not run independently. No files were excluded according to the prepared manifest; all four files marked reviewed were read. The separate files.json document was unavailable through the reader, so exclusions outside the manifest were not verified.
To get this to a good state
Nothing is required.
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
What
Implement
sceAjmiInstanceCodecTypeinlibSceAjmiby forwarding the 32-bit instance ID to the existingsceAjmInstanceCodecTypeimplementation inlibSceAjm.native. Remove the export from the list of unimplemented AJMI functions.Tested
All 28 AJM and AJMI guest tests passed on Linux x86-64 (Release). The instance tests call the export by name and by NID (
Uqtj4RSP-JQ). They check the codec boundary at0x3fffand0x4000, the full 32-bit value0xffffffff, and an instance created with codec type 24.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)