Research and evidence

Evidence Workbench

Keep the original, compare readings, and make every decipherment hypothesis inspectable.

First visit? Start with three questions

You do not need to run a solver to assess an argument. Before importing a manuscript, try this short exercise inspired by chapter 7.

  1. A proposed reading works only after the reader changes several letter shapes. What was observed, and what was changed to fit the answer?
  2. The same reader chooses both the key and the passage used to test it. Which new passage could provide a separate test?
  3. Another reader cannot reproduce the result. What information would let them repeat the method exactly?
Compare your approach

Keep the original image and disputed transcriptions side by side. Write down the rule before testing it on a new passage. Record exceptions instead of silently adjusting the rule. A convincing sentence is a candidate; a reproducible method needs to explain more of the material.

For a guided fictional case with hints, open the curator’s sealed letter. The tools below are available when you want to investigate your own evidence.

Read a manuscript, preserve competing interpretations, and test a cipher hypothesis. Everything runs in this browser. Export your record before closing; source images stay on your device. Start with the historical investigations or return to Cipher Detective.

Try four guided evidence exercises: match a key, separate cleartext from ciphertext, test transcription mistakes, and compare recurring symbols.

Start with a transcription or import a Cipher Detective JSON export.

Sounds right—but does it fit?

Two readable messages. One fixed cipher. Can both readings be right? In this invented exercise, each ciphertext symbol always stands for the same letter, different symbols stand for different letters, and there are no copying errors. Spaces in the candidates are supplied for readability.

Recorded ciphertext: A B B C A B D C E F F E

Proposed plaintext: SEND ME AT NOON

Pick a symbol to compare every position where it occurs. Count positions without spaces.

The exercise loads when JavaScript is available.

What this check can—and cannot—tell you

For SEND ME AT NOON, symbol B would mean E at positions 2 and 6 but N at position 3. MEET ME AT NOON fits all the mappings. Consistency is necessary under this model; it does not establish authenticity or a unique solution. A noisy transcription or a different cipher needs a different test, with every exception recorded.

Related research: Aldarrab and May, Can Sequence-to-Sequence Models Crack Substitution Ciphers? (2021). Their experiments study automatic decipherment, including noisy text. These two invented candidates are not outputs from that study; this exercise runs no neural model.

Next: what if the original encipherer used the wrong key?

1. Preserve the source

Keep case, diacritics, spaces and line breaks. A missing symbol is different from a null that deliberately contributes no plaintext. Revisions preserve the original transcription and its annotations.

Custody, origin, script, language and rights

Present custody is not evidence of origin. Keep each attribution and its uncertainty separate. Empty legacy fields import as unknown. Rights for an object do not automatically permit reuse of its image or transcription.

Image crops and rotations already retain original image identity, dimensions and coordinates in the Images section. Source: Building a Corpus and Database for Rare and Undeciphered Scripts, pp. 4–10. Planned benchmarks are not demonstrated decipherment performance.

Retained source revisions

2. Register the source images

A record can carry several images. Each one keeps its original pixel dimensions, so a region recorded today still means the same part of the page after you zoom, rotate the view or crop it. Region coordinates are always stored against the original image and are never rewritten by a change of presentation.

Opening a file computes its SHA-256 content hash. That detects different bytes arriving under the same filename — a genuinely useful check. It is not an authenticity check: byte identity says two files are the same file, never that either is the archival object it claims to be. Keep the archive identifier and URL above for that.

Cropping and rotation change only what you see. Recorded regions keep their original-image coordinates.

No image opened.

3. Record readings and uncertainty

Select text above, then use “Use selected text,” or enter positions. Positions count Unicode characters from 1 and include both endpoints. New interpretations are appended; earlier readings remain visible.

For example, 0.1 is 10% of the original image width or height.

Derived readings

Keep the symbol sequence, diplomatic reading (original spelling), normalized reading and translation separate. Record which earlier layer you transformed.

Compare passages across readings

An edition can split one sentence, join several passages, or add an explanation. Link the passages you believe correspond, and record why. Each side can contain several ranges. These are manual interpretations; a recorded link does not establish that a reading or translation is correct.

The complete texts below keep their original wording and order. Text without a recorded link remains visible in both the full reading and the unlinked-passage list. A gap in the links does not itself show that text was lost or omitted.

Save changes to the source or its catalogue fields before recording or withdrawing links. Unrecorded passage ranges and notes are cleared when you replace or restore a record, or change its source or the compared readings.

This original teaching example splits one instruction, combines two others, and leaves a margin note and an editorial addition unlinked. Its illustrative spelling is not assigned to a historical date or dialect. Loading it replaces the record in this tab; export your record first to keep it.

Select text in a complete reading and add it, or enter ranges separated by commas. Positions start at 1 and include both endpoints; a single position is allowed. They count Unicode code points, including spaces and line breaks. A combining mark counts separately. Up to 20 non-overlapping ranges can be recorded on each side of one link.

Append a reading layer above, or load the original example.

Unlinked source passages

Unlinked compared-reading passages

Correct a recorded link

Withdraw a mistaken link with a reason, then record a replacement if needed. Its earlier passages, note and withdrawal reason remain in the history and export.

Withdrawn link history for these readings

Links stay attached to their recorded source revision. Earlier-revision links can be inspected or withdrawn, but are never transferred to revised text. To add links for a revised source, append a reading derived from that revision and select the new pair.

Research credit: Janssen, Lendvai and Jouravel, Alignment of Historical Manuscript Transcriptions and Translations (2025), §§3–3.1. This is a manual adaptation of explicit passage links and full-text preservation. It runs no automatic aligner, OCR or translation model and reports no alignment-accuracy score.

4. Build a revisable symbol inventory

Deciding which marks are the same symbol is research, not a step before it. Two strokes that were transcribed alike may be a letter and the same letter with a diacritic; two that look different may be one hand varying. Build the inventory, look at every occurrence of a class, and split or merge with a recorded reason before you apply any key.

Splitting moves only the occurrences you select and leaves the rest where they were. Merging keeps every earlier label and reason in the decision history. The whole history travels with the exported record.

Each inventory belongs to its recorded source revision. Rebuilding retains the earlier inventory, occurrence assignments and split/merge reasons in the snapshots below and in your export.

Earlier inventory snapshots

No inventory built.

Every occurrence of this class

Each occurrence is a button. Use Tab to move through them and Space or Enter to select; selected occurrences are the ones a split will move. The list is the keyboard-accessible counterpart to picking a box on the image.

Inventory decision history

5. Apply a known key

Historical nomenclators mix letters, syllables, whole words, names and controls. This tool applies an entered key; it does not recover one. Multiple readings stay unresolved. The explicit teaching convention for repeat and erase acts on one preceding resolved Unicode character; check the manuscript’s actual convention.

Linguistic types: letter, syllable, word, name, number, content-word, function-word, ending, phrase, sentence, punctuation. Operational types: null, space, repeat, erase; unknown preserves an unresolved reading. This example is invented, not Mary Stuart’s historical key.

Example: 21 → “seal” (word), 22 → “ed” (ending), 23 → “.” (punctuation); 21 22 23 emits “sealed.” These are linguistic content, not alphabet letters or null/repeat/erase instructions. What Was Encoded in Historical Cipher Keys in the Early Modern Era?, pp. 2–8, motivates the taxonomy, not these invented entries. A code's century or frequency does not establish its meaning. The unknown-key search below remains letter-only.

Link sources, keys and readings

Use IDs such as revision-1, layer-1, key-1, or an external archive identifier. A relationship records a claim and its evidence; matching metadata alone does not establish a historical connection.

6. Compare numerical segmentations

A known key can leave the boundaries ambiguous: 2228 can be 2|2|2|8, 2|22|8 or 22|2|8. Compare readings without changing the original digits. This is bounded known-key path enumeration, not unknown-key cryptanalysis.

The search builds a lattice over the digit stream, discards positions that cannot reach the end, then either enumerates every complete path or — when there are more paths than the budget allows — keeps a bounded best-first set. The result says which happened, and whether the globally best path is still guaranteed.

A plain string is one reading. A typed entry is {"type":"null","values":[]}, {"type":"word","values":["AND","ALSO"]} or {"type":"name","values":["MARY"]}. Types: letter, syllable, word, name, null.

At most 32 complete paths are retained. Scores compare candidates; they are not probabilities. The English model is unsuitable for historical French, Italian, German or Latin, and assigns zero to readings shorter than three letters.

Where the boundaries are actually ambiguous

A position is forced when every complete path cuts there, impossible when none does, and genuinely ambiguous otherwise. This view is read from the lattice, so it is exact even when the retained paths are only a bounded sample.

7. Search a homophonic letter key (experimental)

Several symbol IDs may map to the same letter. Two bounded solvers are offered, and they are offered against each other rather than as a recommendation. Short texts can still produce persuasive errors; inspect alternatives and use independent evidence. Neither handles nulls, word codes, control signs, uncertain symbols or transposition. Resolve those hypotheses first.

Annealing had lower mean error in the published modern-English baseline sweep. Beam search offers a comparison of search strategies. A pre-registered tuning sweep — four beam widths crossed with three scoring weights, against annealing at two budgets — found that every annealing setting beat every beam setting. The best beam configuration reached 76.7% mean plaintext error against the shipped annealing row’s 71.9%, while taking about 126 times as long. These findings apply to that sweep’s fixtures and settings; they do not guarantee which solver will do better on another message or scoring model.

The full sweep table, the measured head-to-head comparison on identical inputs and language resources, and what the result means are in research-evaluation v2. Neither solver recovered any held-out text there, and that section explains what that does and does not imply.

Does matching the scoring language help recovery?

A separate 4 November experiment ran both solvers on the same independently keyed ciphertexts with four scoring models: the modern-English baseline and historical French, Italian and Latin. Six passages from three works, with five key/search-seed pairs per passage, produced 240 conditions. Every model saw the same input, empty locks and fixed budget within each solver.

Mean plaintext edit error; lower is better. Baseline and matched columns each contain 30 runs per solver; the two mismatched models contribute 60 runs, averaged equally within each case.
SolverModern EnglishLanguage matchedOther two languages
Annealing75.83%70.28%76.83%
Beam search81.27%73.79%80.48%

No condition recovered a complete message: 0 of 240. Matching the language reduced average edit error by 5.55 percentage points for annealing and 7.48 for beam search against the English baseline, but the output remained mostly wrong. The effect was not uniform: averaged across the ten Latin cases, matched annealing was worse (77.86% error versus 72.56% with English). Edit error is Levenshtein distance divided by message length; positional character error and key error are reported separately.

“Matched” uses the known source language; this does not test automatic language identification. It does not necessarily match period, genre or spelling. These are six public passages from three authors, not thirty independent documents or a blind benchmark. Three introductory/editorial excerpts were excluded before outcomes; edition modernization remains a limitation. With no matched modern French, Italian or Latin baseline, this comparison cannot isolate an advantage from historical spelling.

Read the protocol, per-language results and limits · Inspect every recorded condition. The earlier v1/v2 results remain available. Recognizing the language of an already readable passage and recovering an unknown key are separate tests.

Follow-up: separate key variation from search randomness

A separate version crosses each of the same thirty ciphertexts with all five annealing seeds, instead of pairing one seed with each key. The deterministic beam is run once per ciphertext and scoring model. All 720 conditions completed, but none recovered an exact plaintext.

Language-matched annealing reduced mean edit error from 76.66% with English scoring to 69.75%, a 6.91-percentage-point improvement. Beam results were unchanged: 81.27% versus 73.79%. The earlier Latin annealing disadvantage reversed on the full grid: 76.34% with English versus 71.47% matched, although matching was worse in 14 of its 50 pairs. All 240 conditions overlapping the original experiment reproduced exactly; this is a sampling change, not a repaired solver.

These are still only six public passages from three works. More seeds do not supply more independent historical sources, and there is still no modern same-language baseline that could isolate a benefit of historical spelling. The original results and caveats above remain valid for their original design. No live language model was called.

Read the separate factorial follow-up and limits · Inspect grouped comparisons · Download all 720 conditions (gzip JSONL).

The modern-English baseline is cached for offline use. The historical profiles are a 0.74 MB download fetched on demand and are deliberately not in the offline bundle, so selecting one needs a connection.

A crib becomes a declared lock. If every symbol is locked, the result is known-key application, not recovery.

Maximum 20 million token evaluations for annealing. Five distinct candidates are retained. Use Cancel to stop the background worker. Larger budgets do not guarantee recovery.

No search performed.

Compare language hypotheses

Paste or decode a candidate reading and compare it against the versioned historical-language profiles. The comparison ranks profiles by mean log-probability per letter and declines to choose when the input is too short, the margin too small or the profile’s coverage of this text too low. A profile names a language and a period. A language with no profile can never be chosen, only abstained on or mis-assigned.

What would count as evidence?

The receipt records the exact input, solver, locks, seed or beam width, budget, model, candidate keys and score trace. A high score alone does not establish a historical reading. Check the mapping against every occurrence, account for exceptions, and seek evidence that did not select the candidate. Short or damaged texts can yield convincing errors.

The public generated exercise reads THE SECRET LETTER IS IN THE CHEST… It is a practice fixture, not a blind benchmark. Read the v1 evaluation protocol and the v2 task matrix and measured results.

8. Keep a visible hypothesis register

A key that applies cleanly to every symbol is a mechanical result. It is not evidence of who wrote the letter, when, or what the words meant to its reader. The register keeps each claim beside the evidence for it, the evidence against it, and the alternatives nobody has ruled out.

Confidence is a word from a fixed list, not a number: unsupported, possible, probable, well-supported, contradicted. Calling a claim well-supported requires at least two separately recorded pieces of supporting evidence and no unanswered counterevidence — the record refuses it otherwise. Repeating the same reference does not count twice. Different reference identifiers are only a minimum check; assess whether the observations are actually independent.

9. Save and resume the whole investigation

Exporting the evidence record alone loses everything around it: which derived layer you were reading, which mappings you had locked, which solver and scoring model produced a candidate, and which candidate you chose. A versioned investigation bundle carries all of it in one file, and importing one in a fresh session restores the declared state.

Two honesty constraints are built in. Stale results are marked, never silently reused: the bundle fingerprints its inputs, and a changed transcription, key or solver input shows up as stale on import. And image bytes stay on your device — the bundle carries a manifest of filenames, dimensions and hashes so you can reopen the right files yourself. Nothing is fetched from a URL on your behalf.

Replay also needs the same solver and scoring-model build, not only the same seed. The bundle records the build it was made with and tells you when they differ.

A guided example loads a complete worked state, including the parts that stay unresolved. Loading one replaces the record in this tab; export first if you want to keep it.

No bundle imported in this tab.

Research behind the workbench