1. Objective
Recover the original text of each biblical book as originally written, in its original language, by its original author.
- Both the target books to reconstruct and the exact primary witnesses permitted for each book are defined in one place under
sources. - Each entry in
sourcesis either an immutable ULID set insrc/sets/<ULID>.json(for example a pinned book snapshot or institution snapshot) or a direct item identifier (<institution>:<id>).
2. Permitted Evidence
A compilation under this specification operates on a strict allowlist. It may read only the entries listed under sources, the immutable set files (src/sets/<ULID>.json) and institutional catalogs (src/<institution>/index.json) they resolve to, and the XML files explicitly named by those catalog entries. A compiler must not roam src/ or ingest any unreferenced file.
Documented Metadata Fields
- Dating: Date range, margin of error, and dating method (e.g., radiocarbon dating, paleography, colophon).
- Provenance: Place of origin or writing.
- Scientific analysis: Any physical or scientific dating results.
- Physical and scribal evidence: Manuscript condition, scribal corrections, and transcription/copying errors.
- Textual agreement: Patterns of agreement and disagreement across the listed manuscripts.
Handling Unknowns
If a metadata field is not documented for a source in its src/<institution>/index.json entry, it must remain unknown. Unknown facts must never be invented, guessed, or backfilled.
Exclusion Rule
Everything not explicitly included in this specification is excluded and must be ignored.
Everything not explicitly included in this specification is excluded and must be ignored. This total exclusion covers all outside material—including, without limitation, printed or critical editions, translations into other languages, modern textual reconstructions, manuscript images (facsimiles), external scholarly commentary, and any unreferenced files.
3. Source Corpus Layout
All manuscript transcriptions reside under src/<institution>/ with an index.json catalog per institution. Immutable source snapshots compiled from those catalogs reside in src/sets/<ULID>.json, so referencing a ULID pins the exact set of sources included at that point in time even as new material is added to src/ later.
File Layout
- Immutable source sets:
src/sets/<ULID>.json - Institutional catalog:
src/<institution>/index.json - Single-file sources:
src/<institution>/{source}.xml - Multi-file sources:
src/<institution>/{source}.{part}.xml
File Formats
- Source TEI XML: Stored verbatim, unchanged from the source publication.
- Source non-TEI XML: Stored verbatim, unchanged, with its format documented in
src/<institution>/index.json. - Non-XML sources: When a source institution does not publish XML, the transcription is encoded as TEI P5 XML and documented as such in
src/<institution>/index.json.
4. Statistical Modeling of Variant Readings
The sole mission of this work is to recover the original text as originally written, in its original language, by its original author. Modeling decisions should be judged by a single standard: anything that furthers recovery of the original text is good, and anything that detracts from it is bad.
Surviving manuscripts frequently disagree and vary widely in age, provenance, preservation, and scribal accuracy. Simple majority voting should not be used. Instead, a compilation should apply an explicit statistical model to the permitted evidence to estimate, for each reading (the text attested by a manuscript at a given point, including an omission), both its probability of originality and an uncertainty interval.
Guidance on Uncertainty
- Sparse, conflicting, or poorly documented evidence—including unknown metadata—should widen the uncertainty interval.
- Consistent agreement among early, independent witnesses should narrow it.
- Unknown metadata should remain unknown and widen uncertainty rather than being imputed.
Assessing Source Credibility & Modeling Guidance
- Factors that may lower credibility: Frequent misspellings, copying errors, cross-throughs, heavy edits or later corrections, self-contradictions, internal inconsistencies, and other indicators of careless or unstable transmission should be weighed as potentially weakening a source's reliability.
- Factors that may strengthen credibility: Conversely, clean and disciplined copying, low error rates, internal consistency, early dating, and independent agreement with other strong witnesses should be weighed as strengthening a source's reliability.
- Physical deterioration and antiquity: Physical damage—such as tattered parchment, lacunae, or missing words in ancient sources like the Dead Sea Scrolls—should not count against a manuscript's credibility. Genuine deterioration consistent with antiquity can instead reinforce a witness's authenticity and early provenance, even though missing words themselves leave local uncertainty where text is absent.
- Independence of edit category, substantive severity, and statistical weight: Models should treat three properties of every variant reading as independent axes rather than hard-wiring one to another: (1) the mechanical/structural edit category (what changed in the text: spelling slip, phonetic confusion, particle/article omission or addition, grammatical inflection, word order, lexical substitution, or phrase omission/addition); (2) substantive severity (how materially the variant alters meaning, narrative, grammar, or authorial intent on the model's chosen scale); and (3) statistical weight (the posterior probability that the reading is original). Illustrative examples: omitting a routine conjunction such as Greek
δεin a genealogy is a structural omission yet carries minimal substantive impact; a single-letter vowel shift such asεχομεν("we have") vs.εχωμεν("let us have") is mechanically tiny yet changes mood and meaning; and visually or phonetically similar ordinal words such as Hebrewהשביעי("the seventh") vs.הששי("the sixth") in Genesis 2:2 share surface form yet represent a substantive factual difference with real statistical weight. - Granular word-level alignment: Where feasible, align witnesses so individual word-level variants and inter-word insertions or omissions are represented as localized apparatus units rather than merging an entire verse or sentence into a single
<app>when a minority witness drops or adds a word alongside unrelated minor spelling differences elsewhere in the line.
This specification does not prescribe a specific statistical model, severity rubric, or taxonomy; any defensible model that advances recovery of the original text may be used, provided its choices are clearly documented in the output and conform to the output contract in AGENTS.md.
5. Required Output Contents
- Compiled text: The selected original-language text for every book represented by
sources, organized by book and numbered reference (chapter:line). - Word-level witness coverage: For every word in the compiled text, which manuscripts attest it, which attest a different reading (and what that reading is), and which are lacunose or unreadable at that point.
- Variant apparatus with decoupled severity and edit category: For every point of disagreement (any span within a line where surviving witnesses do not all agree), every attested reading, its supporting manuscripts, how the readings mechanically differ (
<note type="difference">), and an independent substantive-severity annotation (<note type="severity" n="<level>" subtype="<subcategory-id>">) referencing a subcategory declared inREPORT.md. Models must evaluate substantive impact on meaning/authorial intent independently of the mechanical edit category and independently of the reading's statistical weight. The specification does not prescribe which subcategories, numeric scale, or statistical weighting a model must use; it requires only the conforming data structure so downstream tools can parse and display the model's choices. - Probabilities and uncertainty: For every reading, the model's estimated probability of originality and its uncertainty interval.
- Manuscript evidence record: The documented metadata used for each manuscript (date range, dating method, and all other fields under
evidence), explicitly noting which fields were unknown. - Method description and structured compilation report: A clear, plain-language Markdown report (
REPORT.md) with structured YAML frontmatter conforming to the parseable schema documented inAGENTS.mdandREADME.md:specification_id,compilation_id,created_at,model_attribution,method_summary,disagreement_scale(min,max,description),disagreement_categories(id,label,description,count),disagreement_subcategories(id,label,level,level_label,description,local_confidence_effect,corpus_authenticity_effect,count),authenticity_signal,evidence_usage, andtotals. - Model attribution: Complete, maximally detailed identification of the system or model that made the non-deterministic judgments (selecting readings and estimating probabilities)—including lab or provider, model family and exact name, exact version or release snapshot, variant or tier, reasoning or effort level, and any other relevant runtime or inference settings (such as temperature, thinking budget, or harness). Purely deterministic utilities that only copy, parse, or format data are not required to identify themselves.
- Specification reference: An explicit statement that the compilation was produced under this specification, citing its ID (
01M89WMZPKWMDPCWWDTAA9VN7D).
6. Output Format & Packaging
Outputs must be encoded in TEI P5 XML, following the TEI Critical Apparatus (Ch. 13) ↗ and TEI Certainty (Ch. 22) ↗ guidelines:
- Represent each point of disagreement as an
<app>element (TEI Guidelines, Chapter 13). - Record the selected compiled reading as
<lem>. - Record every attested reading—including the selected one—as
<rdg>with awitattribute listing its supporting manuscripts. - Declare all manuscripts in
<listWit>. - Record each reading's estimated probability using
<certainty>withdegreein[0, 1](TEI Guidelines, Chapter 22), and record the uncertainty interval in a<note>attached to the same reading. - Place the method description, full model attribution (lab, model, version, variant, effort level, and configuration), specification ID, and compilation ID in
<teiHeader>.
Directory Layout
outputs/<specification-id>/<compilation-id>/ - One TEI P5 XML file per compiled book.
- A single manifest (record) file (
manifest.json) conforming to the schema inAGENTS.md, listing all book files, full model attribution, the compilation ID, and a statement citing this specification's ID (01M89WMZPKWMDPCWWDTAA9VN7D). - A structured Markdown compilation report (
REPORT.md) with YAML frontmatter conforming toAGENTS.md, followed by a plain-language Markdown narrative of what was performed.
7. Pinned Books & Sources
specifications/01M89WMZPKWMDPCWWDTAA9VN7D.yaml defines its entire scope in a single sources list of immutable ULID snapshots (archives/sets/<ULID>.json), eliminating any split between books and sources. If new manuscripts are added to archives/ later, bun run sets mints a new ULID while older specifications remain pinned to their exact historical set. Use bun run sources to resolve metadata and XML paths programmatically.