Most data-modelling advice assumes you can make the field required. For a corpus of historical documents, you can't. The birth hour was never written down, two editions disagree about the year, the pattern name appears in three different spellings, and one entry is a single line copied by a later compiler who may have misread a character.
The instinct is to normalise all of that away — infer the missing hour, pick the "best" date, canonicalise the pattern name, drop the odd record. Every one of those moves makes the dataset look cleaner and makes it less true. Once you invent a value, nothing downstream can tell your inference apart from a source that actually said it.
The corpus
The archive I work on holds 235 case records from classical Chinese fortune-telling literature and historical figures — 154 from the texts, 81 historical people. 168 of them get a computed chart page; the rest stay as grouped original records because there isn't enough to chart.
Everything here follows one rule: the app displays what the source says and refuses to close the gap.
Four places the gap shows up
1. Missing hour. A chart normally has four pillars — year, month, day, hour. Without a recorded hour there are three. The archive shows three pillars and marks the hour as absent. It does not default to noon, and it does not pick the most common hour for that era.
2. Conflicting dates. Sometimes the stated birthday and the pillars in the text don't agree — the compiler converted a lunar date to Gregorian by hand a century ago, or the source is just wrong. Both are shown side by side, labelled. There is no "resolved" field, because resolving them would mean choosing, and choosing would hide the disagreement that is itself the interesting part.
3. Pattern names. The pattern (格局) label comes from the source and is kept verbatim. Different spellings of what is clearly the same pattern merge into one browse page, but the merge happens at the view layer, not by rewriting the stored string. You can always see which spelling a given record used.
4. No inference. Records that don't state a pattern are not grouped under one. Records with a partial pillar set are not completed. If the archive only knows three of four pillars, the browse filters treat it as three.
The schema consequence
The practical cost is that almost every field is nullable, and nullable fields need a reason code, not just a null. "Hour missing" and "hour illegible" and "hour deliberately omitted by the source" are three different states, and a UI that renders them all as blank is throwing away information the reader cares about.
So the record carries a small provenance envelope: for each nullable field, whether it's absent, contradictory, or derived. Rendering is then a function of that envelope — the chart view can grey out a pillar, the browse view can filter on completeness, and the export can be honest about what it contains.
What you lose, and why it's worth it
You lose tidy counts. "How many cases have a full four-pillar chart" becomes a query you have to actually run rather than a number you assume. You also can't hand the data to a downstream consumer that expects a rectangular table.
What you gain is that the archive stays auditable. A reader who disagrees with a chart can trace it back to the exact line of the source, and a reader who notices that a famous case is missing its hour will find the archive agrees with them instead of quietly supplying one.
Two of the more useful views came out of this constraint rather than in spite of it: browsing by day master and browsing by pattern both work better when completeness is a first-class property, because you can filter to records that actually support the comparison you're making.
If you want to see how it renders, the historical case archive lists all 235 records with the incomplete ones marked rather than hidden — the missing pillars are visible on the page, which is the whole point.
