Unsolved Catalogue · no. 166 · class C · priority 4.4 · in progress

Principe di Castelcicala to Naples, two undated letters in a second code (R9586, R9588)

A letter of the Neapolitan ambassador in a code not otherwise used in the series; the pencil glosses may give a crib.

Date
undated (1816–23?)
Correspondents
Fabrizio Ruffo, principe di Castelcicala → Naples (recipient not named on the leaf)
Place
Paris, France
Language
Italian
Held at
ASNa, Ministero degli affari esteri 2337 (DECODE R9586, R9588)
Images
DECODE R9588

In progress here. targets/castelcicala1816 is working on this cipher (status: in progress). targets/r9586 is working on this cipher (status: in progress (transcribed 21 Sept 2026, not attacked; the pencil glosses are an untried crib). Written up in docs/r9586.html as attempted, not solved.). Read its NOTES.md before you start, and hand it to your agent with this page: it records what was transcribed, tried and ruled out, and the next step.

Hand this page to your AI agent

Give your agent (Claude, ChatGPT or any assistant that can open web pages) this address and ask it to do the task on the page:

https://dbourdeau.github.io/cyphersolver/solve/166.html

Or copy the block below into the chat. It is the whole task: what the cipher is, where the images are, what has been tried, the steps, and how to report back.

TASK: help read Unsolved Catalogue no. 166 of the cyphersolver project
This page: https://dbourdeau.github.io/cyphersolver/solve/166.html

You are helping a public research project read historical cipher letters that nobody has read yet.

START HERE: the project is already working on this cipher. Read these notes before anything else and
build on them; they record what was transcribed, tried and ruled out, and the next step:
  https://github.com/dbourdeau/cyphersolver/blob/main/targets/castelcicala1816/NOTES.md  (status: in progress)
  https://github.com/dbourdeau/cyphersolver/blob/main/targets/r9586/NOTES.md  (status: in progress (transcribed 21 Sept 2026, not attacked; the pencil glosses are an untried crib). Written up in docs/r9586.html as attempted, not solved.)

THE CIPHER
  Title:          Principe di Castelcicala to Naples, two undated letters in a second code (R9586, R9588)
  Date:           undated (1816–23?)
  Correspondents: Fabrizio Ruffo, principe di Castelcicala → Naples (recipient not named on the leaf)
  Place:          Paris, France
  Language:       Italian (expected)
  Held at:        ASNa, Ministero degli affari esteri 2337 (DECODE R9586, R9588)
  Images/records:
    - DECODE R9588: https://de-crypt.org/decrypt-web/RecordsView/9588

WHAT IS KNOWN
  Known so far (checked 21 Oct 2026): R9588: 432 groups transcribed, sparse pencil syllabic glosses noted (r9586.html). Former siblings in the Segreteria di Stato code: key rebuilt from four interlinear decipherments, 46.7% of groups valued, no letter reads through (castelcicala1816.html).
  Still open: All 969 groups (R9586 537, R9588 432); not attacked. The few pencil syllable glosses (about 20-30 groups on each letter) are an untried crib.
  History and prior art: Narrowed 14 Oct 2026 (one key per entry) to R9588; the other 14 records of the item are in the Segreteria di Stato code and read in part in targets/castelcicala1816/. R9588 is in a second code (groups mostly 100–1100), shared only with R9586 (item 167); 432 groups transcribed (targets/r9586/), sparse pencil syllabic glosses; not attacked yet. Narrowed to the unread part and restored 2 Nov 2026.
  Outcome so far: In progress here, in targets/castelcicala1816/ and targets/r9586/ (earlier: attempted, open).
  Check first: Align the pencil glosses with their groups (targets/r9586/transcripts/R9588.txt), then extend through repeats with R9586.
  Class C: no key and no deciphered sibling is known, so expect a ciphertext-only attack.
  Project notes (read these before anything else; they record what was tried and ruled out): https://github.com/dbourdeau/cyphersolver/blob/main/targets/castelcicala1816/NOTES.md
  Project notes (read these before anything else; they record what was tried and ruled out): https://github.com/dbourdeau/cyphersolver/blob/main/targets/r9586/NOTES.md

STEPS
0. Set up. If you can run a shell, fork and clone the repository and work inside it:
     git clone https://github.com/dbourdeau/cyphersolver.git
   Then read, in this order: CONTRIBUTING.md (how a contribution is sent and credited); README.md, sections
   "Repository layout" and "Conventions" (how readings are measured and named); targets/castelcicala1816/NOTES.md (everything
   already tried on this cipher, with the files it used); and lang/README.md (shared language models).
   Put all your work in targets/castelcicala1816/: transcription, key, decipherment, scripts. Add your findings to its NOTES.md
   under a dated heading, without rewriting what is there. Keep WORKLOG.md there too:
   one dated line per step (transcription, hypothesis, solver run, crib, key found, control), failures included.
   Do not edit docs/ (the site is generated and rebuilt on merge) and do not commit large images: link them.
   If you cannot run a shell, do the same work in files you keep and send them with the issue below.
1. Make sure it is still unread. Search the web and the literature for the shelfmark, the correspondents and the date:
   printed editions and calendars of the correspondence, Satoshi Tomokiyo's cryptiana pages
   (https://cryptiana.web.fc2.com/), the DECODE record and the files attached to it, and the project notes above.
   If a decipherment already exists, stop and report where it is. That is a useful result.
2. Get the images. For Gallica items, a page image is
   https://gallica.bnf.fr/iiif/ark:/12148/<ark>/f<page>/full/full/0/native.jpg (page numbers from the manifest).
   DECODE records (de-crypt.org) need a free account: if you cannot log in, ask your human to download the images for you.
3. Look for key material before attacking the ciphertext, in this order: a decipherment written between the lines or
   in the margin; a clear copy or a deciphered sibling letter in the same volume or DECODE series; a key sheet from the
   same office and years (DECODE key records, Tomokiyo's articles, printed editions); clear passages in the letter
   itself that can serve as a crib.
4. Transcribe exactly what is on the page: one token per sign or number group, line by line, with folio and line
   numbers, unclear signs marked with ?. Keep the transcription as a file. It is worth sending even if nothing else works.
5. If no key exists, identify the system (count the distinct symbols, tokens and repeats: simple or homophonic
   substitution, nomenclator with code words, syllabary, two-digit figures) and recover the key from the ciphertext
   with a solver scored on a language model of the period (Italian). In the clone, use the shared models in lang/
   (from lang import lm; lm.load('<model>'), lm.best_language(text)) rather than building your own; add a corpus there
   if none fits. Before trusting a result, run the same solver on a control text you encipher yourself in the same
   system and at the same length. If it cannot solve the control, its output on the real letter means nothing.
6. Measure the result against the project's bar (README.md, Conventions). A text is "complete" only when (1) at least
   95% of its cipher tokens give sense, counted from a reading file, not estimated; (2) no gap is left untried;
   (3) every letter in the item is covered; (4) what stays open is scattered code groups or names, or pieces blocked
   from outside (no key material, too short, illegible, needs the archive). Otherwise it is "partial": say which
   pieces are open and why. Mark every uncertain word with [?] and leave unread groups as their numbers or signs.
   Never fill gaps with plausible guesses. A failed attempt that records what was ruled out is still a contribution.
7. Name how the text was obtained with one of the project's methods (do not write just "solved" or "read"):
     - ciphertext-only break: The key was rebuilt from the ciphertext alone: frequencies, solvers, pattern words, the order of the key. No plaintext and no existing key was used. If someone had solved the same text earlier and it was found only afterwards, the write-up says so: an independent re-solution.
     - key from external plaintext: The key was rebuilt by matching the ciphertext against a plaintext found elsewhere: a printed edition, a calendar of state papers, a copy of the same letter in another archive.
     - key from adjacent plaintext: The key was rebuilt from plaintext next to the ciphertext: a partial decipherment written between the lines or in the margin, clear passages in the same letter, a deciphered copy in the same file.
     - external key matched: An existing key that had not been connected with this document (a key for another correspondent or series, a key sheet filed elsewhere) was found to fit, and applied.
     - known key applied: The key was already identified for this document or its correspondence (on its archive or DECODE record, published for it, filed with it) and was applied. The work is transcription and decipherment, which is not mechanical when the key is polyphonic or variable-length.
     - existing decipherment: A complete decipherment already existed (between the lines, on a separate copy, or in print). The work was transcribing the cipher and checking the decipherment against it.
     - not solved: Attempted; neither the key nor the text was obtained. What was learned is recorded. A target whose key was obtained but whose text does not read keeps the method that obtained the key, with extent "none (text not read)".
     - not applicable: Not a cipher (clear text, shorthand, a key sheet, instructions), or the item could not be reached.

REPORT BACK
With a clone: open a pull request with your targets/castelcicala1816/ folder. Say in the description how you want to be
  credited (name, initials or handle, and a link) and include the same points as the issue below.
Without one: open an issue: https://github.com/dbourdeau/cyphersolver/issues/new?template=solution.yml&title=Solution%3A+catalogue+166&target=catalogue+166
(other kinds of contribution: https://github.com/dbourdeau/cyphersolver/issues/new/choose). Include:
  - Target: catalogue 166
  - the documents and the images you worked from;
  - the key: sign-to-value table, code groups with values, nulls;
  - the decipherment line by line against the ciphertext, with uncertain passages marked;
  - the method (step 7), the share of tokens that give sense, complete or partial (step 6), and whether the
    reading was already published anywhere;
  - your step log (WORKLOG.md), and the tools and the AI model you used.
If you cannot open issues or pull requests, write this report for your human to send. Credit goes to the person who sends it.

Where the cipher is

Cipher located and confirmed. Plain numeric code (dot-separated groups 101-1858, a few 6000+), no clear text. A contemporary hand glossed a handful of groups with Italian syllables; no running decipherment is written on or with either letter. (DECODE R9586 pp.1-3 and R9588 pp.1-2, fetched and viewed 2 Nov 2026 (batch L08); ASNa, Ministero degli affari esteri, busta 2337.; checked 2026-11-02 by claude vetting batch L08; narrowed 2 Nov 2026)

What is known

known checked 21 Oct 2026 R9588: 432 groups transcribed, sparse pencil syllabic glosses noted (r9586.html). Former siblings in the Segreteria di Stato code: key rebuilt from four interlinear decipherments, 46.7% of groups valued, no letter reads through (castelcicala1816.html).

open All 969 groups (R9586 537, R9588 432); not attacked. The few pencil syllable glosses (about 20-30 groups on each letter) are an untried crib.

written up castelcicala1816

History and prior art. Narrowed 14 Oct 2026 (one key per entry) to R9588; the other 14 records of the item are in the Segreteria di Stato code and read in part in targets/castelcicala1816/. R9588 is in a second code (groups mostly 100–1100), shared only with R9586 (item 167); 432 groups transcribed (targets/r9586/), sparse pencil syllabic glosses; not attacked yet. Narrowed to the unread part and restored 2 Nov 2026.

Outcome so far. In progress here, in targets/castelcicala1816/ and targets/r9586/ (earlier: attempted, open).

Check first. Align the pencil glosses with their groups (targets/r9586/transcripts/R9588.txt), then extend through repeats with R9586.

Scores

Importance
3 of 5
Solvability
3 of 5
Difficulty
4 of 5
Class C
no key and no deciphered sibling is known, so expect a ciphertext-only attack
Note
Scores of entry 166 carried over unchanged when it was narrowed to R9588 (14 Oct 2026).

Send a result

A reading, a partial reading, a transcription, or a source that shows it was read long ago: all of it counts and is credited to you on the site.

Open a solution issueOther kinds of reportHow credit works← All unsolved ciphers