Package pafta is the adapter that registers the Pafta engine (p/…/sinopia/art/pafta/v1) with core. Core knows the engine only as this realm's package path plus an interface value.
Pafta is a collection-level engine: 256 tokens are the 256 sheets of one map. Which map and which sheet a token is must stay unknown until the sale is over (otherwise buyers could target the summit or the lone island), so both come from the collection's final salt (art.Placement):
- core's own TokenURI / TokenCard / TokenTraits call for a Final Pafta collection is "placed": core passes the collection's final salt in engine.Input.Salt (core-final round), Render and Traits check that the seed is exactly core's (seed == safe.Seed(cid, tid, salt)) and draw sheet tile(tid) of map mapSeed(cid, salt) — no read-back of core;
- everything else is "standalone" (art.Render / art.Traits of the seed): core.RenderWith / RenderWithInput / EngineTraits (CollectionID "0", Salt ""), the registration sample and any forged input;
- before Final core never calls Render or Traits (placeholder / "Unrevealed"), core.Salt is "" and so are Sheet and Sheets here;
- CheckLaunch refuses any supply but 256 (one token per sheet) and GateLaunch (engine.LaunchGate) refuses open mode: an open collection's salt is public from Launch, so a shared map would be targetable. Every Pafta collection is therefore a 256-sheet commit-reveal collection, which is what lets Render trust Input.Salt.
The adapter keeps no state of its own (selfPath is set once by init) and has no admin: what it renders is fixed by the p/ package it imports. Never mark this realm private (design §5.4: a re-deployable adapter could swap the art). Per-chain values (author key, fee) live in config.gno.