Package engine is the "art as code" contract, version 2 (design §5.2, mainnet plan §2.3): what an engine implements, what core hands it, and the conformance rules both core and engine authors check against.
v2 adds media engines (uploaded raster/IPFS art that core itself can serve as TokenURI), per-collection trait types and a launch gate. Input, Trait, SampleInput and SampleSeed are byte-for-byte the v1 definitions, so an engine's sample fingerprint does not move when it is re-issued against v2.
An engine is registered from its own /r/ adapter realm. Because the adapter's methods are declared in that realm, core calling them runs the engine with the adapter's authority, never core's (interrealm v2 borrow rule #1). Methods receive and return plain values only: an engine never gets a reference into core state.