feat(np): implement offline service-entitlement requests #1299
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1299"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-07T22:43:18Z.
Status after review
Awaiting a title that needs request lifecycle handling.
Verified current main's request and poll exports: both return
SCE_NP_ERROR_SIGNED_OUTfrom530aa2088. The original Skyrim stop is already addressed. The current PR head also already removed the disputed SDK link and MinGW workaround; those do not need another fix.The new main-based Skyrim test, using the experimental NGS reverb integration, progresses into graphics without this entitlement branch. That is not a trace proving every entitlement call occurred, and I have no failing request-ID/abort/delete call to show. I cannot substantiate a title need for the extra lifecycle or its unverified error codes. Keeping this open for an actual counterexample; not presenting its existing unit test as evidence of a title fix.
What
Implement service-entitlement request and poll calls for offline use. Requests receive distinct 64-bit IDs and report the signed-out error when polled. Abort checks the ID; delete removes it.
Tested
Earlier branch-specific tests and measurements remain in the discussion. They have not been rerun on a redesigned current-main version of this PR. The review audit and shared NGS-assisted title exploration do not establish that this head is merge-ready. No full Linux/Windows platform CI was dispatched in this pass.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T03:26:09Z.
Which title reaches these service-entitlement calls on main? With the ID and the log line where it stops this can go in; otherwise it waits until one does. The same goes for #1320 and #1322: new library behaviour needs a title that reaches it on main.
Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T03:56:36Z.
The title is Skyrim, PPSA03747, content version 01.001.010. I reproduced this on upstream
a9ba39c927713cf294b8e1b7877ddb365d3a1d6f, using Linux and a GCC 16 Release build in Fedora 44.There are two earlier loader blockers, so the exact test sequence matters:
undefined symbol: bcolXMmp6qQ(sceAppContentTemporaryDataUnmount, #1320).undefined symbol: cRILAEvn+9M(sceNpUnregisterNpReachabilityStateCallback, #1322).This is an executed entitlement request, not only an import. Adding #1299 gets past it; the next abort is the separate
NGS2: rack id 0x2001 is not implementedfailure. No combined-fork graphics or audio changes were included, and all runs used the same freshly relinked executable.The four app-content, NP manager, reachability and service-entitlement tests pass on this upstream-based branch. This demonstrates the title blocker and progress past it; it does not establish console-equivalent entitlement behavior.
AI-assisted investigation and reply.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T05:12:47Z.
Two things before this can go in:
docs/dev/TechnicalDebt.md: please drop the link to the PS5 SDK reference (game.develop.playstation.net); the repo shouldn't point at licensed SDK documentation.libSceNpEntitlementAccess/CMakeLists.txt: the MinGW static-flag block isn't needed,core/libs/CMakeLists.txtalready strips those flags for every library (121d9332b).Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T05:22:02Z.
Removed the SDK documentation link and the redundant MinGW flag block. The error values and console behavior remain marked as unverified on hardware.
Rebased on
5850a6cd. The Fedora 44 Release service-entitlement test passes. Windows was not tested.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T06:53:28Z.
Progress report (
dad6e96→e66af07)📈 System libraries: 85.25% (+0.07%, +2 implemented functions)
✅ 2 implemented
sceNpEntitlementAccessPollServiceEntitlementInfoListsceNpEntitlementAccessRequestServiceEntitlementInfoListImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:14:31Z.
Main now returns
SCE_NP_ERROR_SIGNED_OUTfromsceNpEntitlementAccessRequestServiceEntitlementInfoListand the poll (530aa2088b), so PPSA03747 no longer stops there. Does it still need the request IDs from this PR on current main? If it does, please rebase (it conflicts inExport.cpp) and add the log line where it stops; if not, this can be closed.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T23:58:19Z.
Review: CHANGES_REQUESTED
Thanks for the update. Two things are needed before this can go in:
mainincore/libs/prx/libSceNpEntitlementAccess/Export.cpp:530aa2088now makessceNpEntitlementAccessRequestServiceEntitlementInfoListand the poll returnSCE_NP_ERROR_SIGNED_OUT. Please rebase on currentmain.main, PPSA03747 no longer stops at these calls. Please show, with a log line from the rebased PR, where the title stops without the request IDs / abort / delete handling and that it gets further with them. Without a title that reaches that behaviour,main's signed-out return is enough and this can be closed.If a title does need it, keep the unverified abort/delete error values listed in
TechnicalDebt.mdas you have.Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-12T04:51:53Z.
Review-pass update:
Verified current main's request and poll exports: both return
SCE_NP_ERROR_SIGNED_OUTfrom530aa2088. The original Skyrim stop is already addressed. The current PR head also already removed the disputed SDK link and MinGW workaround; those do not need another fix.The new main-based Skyrim test, using the experimental NGS reverb integration, progresses into graphics without this entitlement branch. That is not a trace proving every entitlement call occurred, and I have no failing request-ID/abort/delete call to show. I cannot substantiate a title need for the extra lifecycle or its unverified error codes. Keeping this open for an actual counterexample; not presenting its existing unit test as evidence of a title fix.
I have updated the PR description to match this status. The PR remains open; the outstanding review requirements are not being marked resolved. AI-assisted audit.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T05:08:58Z.
Closing for now: no title is known to reach these service-entitlement calls. With the queue this large we're closing stalled perf PRs that don't show a gain in a title; reopen it with before/after numbers from a title scene (the summary lines from the performance report form) if you pick it up again.
Pull request closed