Validate a reference and build its URL without making a request.
Opaque document id.
Source name.
The full reference string.
Callback URL built from sources.<name>.url.
Retrieve a document. Rejects with SourceReferenceError (and sends nothing) for an invalid reference; otherwise never rejects.
Retrieves source documents by callback. Injected into later pipeline stages (resolver, notify queue, reindex) so tests can substitute it.