We may wish to leverage the PHP type system for additional safety when breaking the long-standing fundamental assumption that wikibase-entityid refers to things that have been registered with the Wikibase Entity registration mechanism.
This task is about creating a proof of concept for that direction and outline its major aspects.