Build against PAPER's include/PAPER/ headers; do not copy them or include PAPER's src/.
Run without PAPER when PAPER.dll is absent or discovery fails.
Query only the interfaces you use, at the major and minor your headers declare.
Check every granted capability; never request All for convenience.
Handle a refused version: PAPER names your mod in PAPER.log and serves it nothing, so request exactly the versions your headers declare and turn your PAPER features off when refused.
Connect only after game data and disconnect before load transition/teardown.
Make every call except discovery, getModVersion and isReady on the PAPER game thread.
Initialize all public inputs/outputs with {} and preserve reserved zeros.
Copy callback data; retain no event pointer after return.
Invalidate by provider/world/skeleton/weapon generation as applicable.
Compare capture and snapshot sequences before combining reads.
Re-read on StaleSnapshot; handle OutOfRange without guessing identifiers.
Bound allocations, copies and logs in FrameComplete.
Do not describe native-pose diagnostics as IK or pose-write authority.
Ship animation authority disabled unless it is the explicit purpose of the mod.
Renew a physical-reload lease every frame of physical control with the ROCK frame your hands acted on, and clear it when control ends.
Clear leases and authority, unregister callbacks, then close the owner.