Ingestion produces a single document that holds the episode's content
and, alongside it, the record of where that content came from. Both live
in the same structure, so a claim and the source that produced it cannot
drift apart in the way they do when provenance is kept in a separate
log.
That structure is TEI - the Text Encoding Initiative's P5 vocabulary, a
long-standing standard for marking up documents with scholarly apparatus.
Episodic uses its header for provenance and its body for the script.
Serialization is handled by
tei-rapporteur,
a TEI P5 library maintained alongside the platform.
Where a prompt needs JSON, that JSON is a projection of the same
TEI-backed content model. It is not a second canonical schema competing
with the first.