FACTUM

Worked examples · Legal

A production set, with every file hashed and the Bates range checked.

A discovery production is a set of files stamped with a running number. The legal gate hashes every file, builds one manifest of the set, and checks the number range for gaps, overlaps and files produced twice.

The problem

A production goes out with thousands of numbered pages. A run of numbers that no file carries is either a document withheld, a document lost, or a stamping error, and it is found only if somebody checks the whole range.

The same document produced twice under two numbers is hard to see by eye and easy to see by its hash.

Months later, the question is whether the set in hand is the set that was produced. That needs a record of every file's bytes, made at the time.

Recorded outputTwo calls to the legal gate: the set as first assembled, then the corrected set. Every party, matter and file is fictional. No AI engine was configured. Recorded 2026-11-11 and signed by a development key minted for the recording, published beside the files.

The hash manifest

POST /api/tenants/{tenant}/legal-intake

Belmere production volume 1: 4 files, 34 numbered pages, BEL-000001 to BEL-000038. Each file was sent with its bytes and hashed by the engine.

FileFirstLastPagessha256
2026-03-02 master services agreement.txtBEL-000001BEL-00001212967e6fe7ce544d96…
2026-03-14 rate schedule.txtBEL-000013BEL-00002084e9bd1965da84aeb…
2026-04-02 invoice 1041.txtBEL-000025BEL-0000317a3cb0407ca5dead6…
2026-04-02 invoice 1041 (second copy).txtBEL-000032BEL-0000387a3cb0407ca5dead6…
Manifest
sha256 313cabfae59b5babde21f049a48455d7a453cfe34a8e7baf57cb3565b64cac30
Rule
sha256 over one line per file, "<file sha256> <file name>", in file-name order

Two catches

A gap in the Bates range

gapBEL-000021 to BEL-000024

4 numbers that no file in the set declares, after 2026-03-14 rate schedule.txt and before 2026-04-02 invoice 1041.txt.

A gap is not attested to be a missing document. It is a run of numbers no file in this set declares.

A file produced twice

duplicate1

2026-04-02 invoice 1041.txt and 2026-04-02 invoice 1041 (second copy).txt have the same sha256, a3cb0407ca5dead6….

the declared Bates ranges are not continuous: 1 gap(s), 0 overlap(s), 0 file(s) outside the declared form

The corrected set

POST /api/tenants/{tenant}/legal-intake

The four missing pages are produced and the second copy withdrawn. The corrected set is a second record; the first is kept.

FileFirstLastPagessha256
2026-03-02 master services agreement.txtBEL-000001BEL-00001212967e6fe7ce544d96…
2026-03-14 rate schedule.txtBEL-000013BEL-00002084e9bd1965da84aeb…
2026-03-20 bill of lading 7731.txtBEL-000021BEL-0000244fc181255f4e09d64…
2026-04-02 invoice 1041.txtBEL-000025BEL-0000317a3cb0407ca5dead6…
continuousBEL-000001 to BEL-000031
the declared Bates ranges run from the first number to the last with no gap and no overlap

Boundary

CERTIFIED: this record states what the documents submitted state, at the positions they state it, and what the organization's declared rules compute from them.

NOT ATTESTED

This is not legal advice.

Whether an argument succeeds is not judged and is not attested.

That a clause is enforceable, that a filing is sufficient or that a document means what a party says it means is not attested.

NOT ATTESTED

That the Bates numbers printed on the pages are the ranges declared with the files is not attested: the ranges are read from the declaration.

That the production holds every responsive document is not attested, and neither is that a withheld document was properly withheld.

That a gap in the range is a missing document is not attested: it is a run of numbers no file in this set declares.

That a file sent as a hash alone has that hash is not attested: only a file sent with its bytes is hashed here.

Check it without Factum

The certificate is published as it was returned. Download it with the key and the Factum Verifier, and run the command. It needs Node 18 or later and nothing else.

Verifiedexit 0

The files: production-intake.json, public-key.txt.

The key is a development key minted for this recording, not the production issuer key. It is published beside these files.

Recorded outputThe verifier's output on this certificate (exit code 0).
node factum-verify.mjs production-intake.json public-key.txt
VERIFIED
  keyId            vd-074bb0de885e7704
  canonical bytes  3226
  surface          FULL - the body carries no surface block, so every claim the run captured is on it

  CERTIFIED BY THIS CHECK: this document was signed by the holder of the private half of the
  key you supplied, over the canonical form named in its signature block, and has not been
  altered by one byte since.
  NOT CERTIFIED BY THIS CHECK: that the key you supplied is the operator's. That comes from
  WHERE YOU OBTAINED THE KEY and from nothing in this file - a valid signature under the wrong
  key is exactly what a forgery looks like.

The certificate is published as it was returned. Download it with the key and the Factum Verifier, and run the command. It needs Node 18 or later and nothing else.

Verifiedexit 0

The files: production-intake.corrected.json, public-key.txt.

Recorded outputThe verifier's output on this certificate (exit code 0).
node factum-verify.mjs production-intake.corrected.json public-key.txt
VERIFIED
  keyId            vd-074bb0de885e7704
  canonical bytes  2923
  surface          FULL - the body carries no surface block, so every claim the run captured is on it

  CERTIFIED BY THIS CHECK: this document was signed by the holder of the private half of the
  key you supplied, over the canonical form named in its signature block, and has not been
  altered by one byte since.
  NOT CERTIFIED BY THIS CHECK: that the key you supplied is the operator's. That comes from
  WHERE YOU OBTAINED THE KEY and from nothing in this file - a valid signature under the wrong
  key is exactly what a forgery looks like.