What Medieval Manuscripts Teach Us About Missing Data: A Technical Guide to Handling Knowledge Gaps
A medieval manuscript illustration offers a striking analogy for a common problem in modern data systems: when information is scarce or hard to verify, systems fill the gaps with defaults, guesses, or assumptions—and those guesses eventually become indistinguishable from real data. This article applies lessons from 15th-century manuscript illuminations to data engineering, covering how to classify missing-data causes, attach provenance and confidence metadata, layer missing-value strategies, expose data quality at runtime, and build an auditable data pipeline where every record can be traced to measured, imported, or inferred origins. You will learn concrete methods and code examples for marking gaps explicitly, tiering data sources by trust, capping inference boundaries, and monitoring fill rates and freshness to avoid "manuscript-style" data errors.
1. A Universal Problem: From Illustrated Manuscripts to Data Pipelines
In late 15th-century Western Europe, an artist painted more than fifty miniatures for a moralized natural history manuscript: elephant trainers from India, headless people from Ethiopia, monsters spouting boiling water, and islanders living inside giant snail shells near India—all displayed alongside real customs of marriage and burial. Strikingly, when this manuscript depicted China, it barely mentioned its silk, porcelain, or technology, leaving only insurmountable natural barriers and rumors of cannibalism.
This selection was not the artist’s oversight, but a reproducible pattern of cognition: when the marginal cost of acquiring information is extremely high and verification channels are absent, the cognitive system does not preserve gaps—it fills them with available, internally consistent narratives. More interestingly, the manuscript treated literary tales like the Alexander Romance as equally credible sources as firsthand travel accounts from contemporary explorers—it established no mechanism for ranking sources by reliability.
This pattern is not far from technical systems. Missing fields in data collection pipelines, broken tracking instrumentation, discontinued third-party data sources, and log sampling losses all create de facto “knowledge gaps.” Engineering systems similarly do not preserve gaps: defaults, interpolation, model inference, and rule-based fallbacks automatically fill voids into seemingly complete results. The danger lies not in filling itself, but in the fact that fill values and measured data become indistinguishable downstream.
2. Classifying “Knowledge Gaps”: Three Causes, Three Treatments
The first step in imitation is abstraction. The manuscript phenomenon can be decomposed into three distinct causes requiring completely different handling—one-size-fits-all treatment is inappropriate.
| Cause Type | Manuscript Manifestation | Data System Equivalent | Correct Handling |
|---|---|---|---|
| Structural non-collection | China reduced to a “distant” label | Tracking not instrumented, fields never reported | Explicitly mark missing, prohibit inference |
| Post-collection corruption/loss | Rumors distorted through repeated copying | Pipeline packet loss, format errors, timestamp misalignment | Observable interpolation or deletion, with confidence scores |
| Sampling limitations | Only wonders recorded, daily life omitted | Sampled logs, aggregated metrics with reduced precision | Declare precision boundaries, avoid drill-down misinterpretation |
The first type is most easily mishandled. Manuscript authors did not know what they “didn’t know,” so they treated rumors as facts; similarly, un-instrumented fields in reports often appear as blank space rather than an explicit “not collected” marker, so downstream defaults treat them as zero or fill them with averages. The correct engineering approach is to make gaps visible, not let them be quietly smoothed over.
3. Source Credibility: The Manuscript’s Most Critical Gap
The manuscript’s fundamental flaw was placing literary heroic tales and firsthand travel accounts into the same evidence pool. The modern information processing counterpart is attaching computable metadata to every data record, at minimum including:
# Sample data record metadata (illustrative)record:id: evt_20260826_0001source_type: measured | inferred | imported | declaredprovenance: device_sdk | manual_report | third_party_feedconfidence: 0.0-1.0freshness: 2026-08-26T08:00:00Zverification: none | single_source | cross_validatedfill_method: none | default | interpolation | model_inference
The key design principle is that fills must leave traces. The presence of fill_method and source_type fields ensures that inferred records—like those “snail-shell dwellers”—can be individually filtered, rolled back, or recomputed during any aggregation, modeling, or audit. Without these two fields, the system reverts to the manuscript’s state: rumors and measurements priced equally.
-- Tier by credibility during aggregation, rather than mixingSELECTdate_trunc('hour', ts) AS bucket,source_type,count(*) FILTER (WHERE fill_method = 'none') AS measured_cnt,count(*) FILTER (WHERE fill_method <> 'none') AS inferred_cnt,avg(value) FILTER (WHERE confidence >= 0.8) AS high_conf_avgFROM metricsGROUP BY 1, 2ORDER BY 1, 2;
The value of this query is that it separately presents “how much we know for certain” and “how much we infer.” Most difficulties in post-incident reviews stem from the inability to distinguish these two parts after the fact.
4. Layered Strategies for Missing-Value Handling
Don’t entrust all gaps to the same algorithm. A robust tiered order is:
- Explicitization: First mark gaps as missing, assess missing rates and distribution. If a field’s missing rate exceeds a business-acceptable threshold, prioritize fixing collection over optimizing fill algorithms.
- Explainable fallbacks: Default values only for strongly constrained scenarios where lower bounds, units, or enumerations are known (e.g., status fields defaulting to “unknown” rather than “normal”).
- In-series interpolation: Applicable to metrics where sampling is lost but the physical process is continuous (e.g., periodically reported temperatures, counts), using linear or forward-fill while simultaneously writing confidence decay.
- Cross-validation from same-source: When multiple independent sources exist for the same fact, use consistency voting instead of single-point trust—precisely the mechanism the manuscript lacked.
- Model inference: Enable only when the first four layers are unavailable, and outputs must be labeled as inferred, prohibited from entering strong-consistency chains like reconciliation, billing, or compliance.
def fill_missing(series, max_gap=3):"""Layered fill illustration:- When gap exceeds max_gap sampling points, do not interpolate; preserve missing and alert- Interpolation results carry confidence decay for downstream threshold filtering"""out, conf = [], []gap = 0for i, v in enumerate(series):if v is not None:out.append(v)conf.append(1.0)gap = 0continuegap += 1if gap > max_gap:out.append(None)conf.append(0.0)else:left = next((x for x in reversed(series[:i]) if x is not None), None)right = next((x for x in series[i:] if x is not None), None)out.append(None if left is None or right is None else (left + right) / 2)conf.append(round(1.0 - gap / (max_gap + 1), 3))return out, conf
Note the max_gap constraint: the manuscript had no concept of a “gap ceiling,” so rumors could spread infinitely. Engineering must set boundaries for inference; beyond those boundaries, leaving blanks is preferable.
5. Observability: Exposing “Rumors” at Runtime
If fill strategies are not observable, they effectively don’t exist. A minimum viable metrics system includes four items:
- Missing rate (by field, by source, by time window): Pinpoints whether the issue is collection-side or transmission-side;
- Fill ratio and fill method distribution: A sudden spike in
inferred / totaltypically precedes fault detection; - Source freshness: A source long unupdated but still trusted is the technical replica of manuscript-style errors;
- Cross-source consistency deviation: Alert when two independent sources differ beyond a threshold for the same metric.
For alert design, avoid noise drowning signals: separate “high missing rate but no business impact” from “fill ratio rising with core metric drift” into different severity levels. The former enters daily trend reports; the latter triggers immediate notifications. Corresponding log service and monitoring/alerting capabilities can be hosted on cloud general-purpose categories, paired with object storage for long-term archival of raw data to ensure post-event traceability and recomputation.
6. Implementation Checklist
- Establish field-level missing markers for all data tables; prohibit implicit defaults from entering the analytics layer
- Metadata includes four mandatory fields: source type, collection method, confidence, fill method
- Establish source tiers; literary/self-reported sources must not participate in aggregation at equal weight with measured data
- Set gap ceilings and applicability boundaries for each fill algorithm, documented in the data dictionary
- Prohibit model inference data in core chains (reconciliation, billing, compliance)
- Monitor both missing rate and fill ratio; set tiered alerts
- Raw data retention strategy satisfies traceability and recomputation needs; decouple compute from storage
7. Conclusion
The value of that 15th-century manuscript lies not in its depiction of a spinning woman inside a snail shell, but in unintentionally leaving a complete sample of “how knowledge deforms in gaps”: sources unmarked, measurements and rumors undifferentiated, inference unbounded—ultimately degrading geographic knowledge into projections of imagination.
Technical systems face no fundamentally different situation, only faster consequences. Making gaps explicit, tiering sources, tracing fills, and isolating inference from strong-consistency chains—these four constitute the minimum path from “manuscript-style cognition” to “auditable data.” One practical criterion for judging whether a data system is mature: pick a random record—can you explain, without asking anyone, whether it was measured, uploaded, or filled in?
