Make each extracted field traceable to the evidence behind that specific value.
Build the example
For a synthetic packing label, store height as a normalized number alongside source ID, source version, character range and the literal excerpt. Preserve enough information to reproduce unit conversion. Keep provenance separate for each field because height and material may come from different documents.
Keep a fixture containing a newline and an accented character before the measurement. Check that the source excerpt still opens at the correct location using the chosen offset convention. Test replacement of the source file under the same filename too. Version identity should catch that change when a filename alone cannot.
Watch the failure boundary
Choose whether an excerpt uses character offsets or byte offsets and specify the convention. Accented characters can make those numbers differ. Keep a checksum of the source version and show an unavailable state if it no longer resolves. A citation should make a field easier to verify without requiring access to unrelated supplier records.
Verify the behavior
Add an example where a supplier sheet says 20 cm and a packaging sheet says 24 cm. The system should preserve both candidates and tell a reviewer which measurement each source describes. Reject invalid offsets and flag document changes instead of serving an excerpt that no longer matches.
Sources
Technical references checked .



