2026-11-03 · Source descriptions in each result’s provenance
Context
#55’s first increments kept the researcher’s
description of each document’s source in the project and wrote it out from the project
(decision, profiles).
The files a job writes beside its sources said nothing of it: a transcription’s
provenance.json named the file and its hash, not the shelfmark or the repository, so a result
moved out of Kalamu lost what it was a reading of.
zmo-ai-pipelines’ provenance.json, which Kalamu’s follows, describes a source by its file
alone; iwac-ai-pipelines writes its results into the Omeka S item that holds the description.
Kalamu does neither: the description stays in the project, and each result’s record names it.
Decisions
documentsinprovenance.json. Each project document the source is: the project’s id and name, the document’s id and title, and each part of its description as{value, from},frombeingdocumentorproject, the shape of the descriptions export. A list, since one job’s source can be a document of several projects; absent for a job tied to none. Optional and new, so the schema stays at version 1. The.jsonresult, which holds the provenance, carries it too.- Only the files that record the method. The text, Markdown, Word, subtitle and CSV files
are unchanged: a
.txtor.mdis read again by later jobs and must stay the text alone, and a CSV’s columns are the next increment of export profiles, results’ columns beside the description’s. - Read through a narrow trait.
SourceDocuments(incore) answers, for a job’s source, the documents it is;Projectsimplements it, and the app gives it to the engine at startup (set_source_documents). The engine reads, never organises: the job store and the project store stay apart, and the engine still depends on no project code. Without it (the engine’s tests, a lookup that fails) the files are written withoutdocuments, never left unwritten. - As it stands, written again when it changes. The description is read each time a result’s
files are written. Changing a document’s title or description, the project’s defaults or
name, attaching or detaching a job, merging or deleting documents, or deleting the project
writes
provenance.jsonand the.jsonresult again (rewrite_provenance), in the background, for the results already on disk: nothing is read again, no other file is touched, and a running job is left to write its own when it finishes.
Consequences
coregainsDescribedBy(moved fromprojects),ProvenanceDocument,ProvenanceDescribedandSourceDocuments;Provenanceitsdocuments; the engineset_source_documentsandrewrite_provenance;projectssources_of.docs/formats.mddocumentsdocuments; the privacy policy saysprovenance.jsonholds the project’s name, the document’s title and its description, under the effective date of 3 November 2026, not yet released.- Left for later in #55: normalised and inferred values beside the literal ones (with #54 and #48); results’ columns (review status, a preferred result’s text or fields) in a profile.