# Session 89: Whole-key rotations repair the recovery gate

**The revised search recovers all sixteen planted selective-F keys and passes the preset recovery gate.** Fifteen full messages are exact; the remaining message has one wrong final rune, with **99.52% continuation accuracy**. The original search misses three keys and fails the same gate. All four no-exception baselines recover exactly under both methods. No unsolved page is searched and no new Cicada plaintext is recovered.

This executes the [rotation proposal fixed in Session 88](rotation_recovery_next_plan.json). The cipher family, language models, F prior, eight restarts and six-sweep cap remain unchanged. Session 88 remains a failed historical gate; the improvement is a new experiment, not a replacement of its record.

## One change to the search neighborhood

After each ordinary coordinate sweep, the revised search scores **all thirteen cyclic rotations of the current key array**, including the identity. Every proposal receives exact fixed-key F-path inference on the **selection prefix only**. A strict score improvement selects a rotation; ties retain the current array. Search then continues within the original six-sweep cap.

Normal decoding subtracts the current key value modulo 29 and advances its phase. A legal unchanged ciphertext F outputs F without consuming the key. There are no added word or page resets, exceptions, periods or scoring parameters. The whole-array move lets the optimizer cross a limitation diagnosed in Session 88 without expanding the allowed key family.

The ordinary mode in the new implementation retains the original search. Paired runs receive the same decoder seed. Because a rotation can change early stopping, later shuffle orders and restart draws can diverge within the unchanged shared random-number stream. This is a comparison of the two complete bounded algorithms, not a claim that every restart begins identically. Rotation scoring adds evaluations; it is not an equal-evaluation-budget comparison.

## A correction to the promised fresh keys

Before fitting, the [execution record](rotation_recovery_execution.json) identified a seed overlap in the inherited plan. Seeds `330189 + 100*source_index + trial` for trials 0–3 make each trial-zero array equal Session 88's trial-one array. Its alternating F mask is now the opposite parity.

The declared seeds were preserved. There are **twelve new key arrays and four previously used arrays with new F alignments**, not sixteen entirely fresh keys. All twenty constructed ciphertexts, including the four no-exception baselines, differ from Session 88's ciphertexts. The case snapshot records every overlap.

All cases still reuse only four related solved passages: Welcome, first koan, Divinity discussion and second koan. Their target-excluding language models are reused byte for byte. Each model omits its target's entire group, including continuation text. The first 60 percent rounded down to a complete word selects the key; the remaining ciphertext is decoded with the key and prefix terminal phase frozen. No gold plaintext or planted key is passed to unknown-key fitting. Construction and grading code retain both, so this is not an externally blind challenge.

## Paired results

All runs complete within the fixed time limit. Accuracy counts literal runes, not expanded Latin letters.

| Selective-F case | Ordinary key exact | Revised key exact | Revised prefix | Revised continuation |
|---|---|---|---:|---:|
| Welcome, trial 0 | Yes | Yes | 100% | 100% |
| Welcome, trial 1 | No | Yes | 100% | 100% |
| Welcome, trial 2 | Yes | Yes | 100% | **99.52%** |
| Welcome, trial 3 | Yes | Yes | 100% | 100% |
| First koan, trial 0 | Yes | Yes | 100% | 100% |
| First koan, trial 1 | Yes | Yes | 100% | 100% |
| First koan, trial 2 | Yes | Yes | 100% | 100% |
| First koan, trial 3 | Yes | Yes | 100% | 100% |
| Divinity, trial 0 | Yes | Yes | 100% | 100% |
| Divinity, trial 1 | Yes | Yes | 100% | 100% |
| Divinity, trial 2 | Yes | Yes | 100% | 100% |
| Divinity, trial 3 | No | Yes | 100% | 100% |
| Second koan, trial 0 | No | Yes | 100% | 100% |
| Second koan, trial 1 | Yes | Yes | 100% | 100% |
| Second koan, trial 2 | Yes | Yes | 100% | 100% |
| Second koan, trial 3 | Yes | Yes | 100% | 100% |

| Measure | Ordinary | With rotations |
|---|---:|---:|
| Exact selective-F key arrays | 13 / 16 | **16 / 16** |
| Exact full selective-F messages | 12 / 16 | **15 / 16** |
| Exact full no-exception baselines | 4 / 4 | 4 / 4 |
| Positive cases meeting the preset gate | 17 / 20 | **20 / 20** |
| Overall preset gate | Fails | **Passes** |

The gate requires the **complete planted array**, plus at least **95% of both prefix and continuation runes**, in every positive case. It does not require every rune to be correct. The one final-rune error therefore passes the original rule; it remains an error in the full-message count.

Among the **twelve genuinely new arrays**, the ordinary method finds ten keys and nine exact messages; the revised method finds all twelve keys and eleven exact messages. Among the four reused arrays with new masks, the revised method finds all four keys and messages. These splits are descriptive and do not turn repeated prose into independent language evidence.

All three ordinary key misses are cyclic left rotations by one. Their prefix accuracies are **96.42%**, **96.01%** and **97.33%**, respectively, with exact later continuation. Higher-scoring planted arrays were already legal under the fixed objective. The rotation proposals repair all three on this set.

## The last rune exposes a different limitation

Welcome trial 2 returns **SELL** for the literal final word **SELF**. The sole mismatch is rune offset **514**, the final rune of the 515-rune passage. Its continuation contains 208 runes, giving 207/208 correct.

The unknown-key fit recovers the exact planted key and exact prefix state. A separate supplied-correct-key diagnostic makes **the same final error**. At the terminal ciphertext F, the decoder chooses normal decryption to L rather than unchanged F. Both are legal under the rule; the returned path scores about **1.3167 log-score units higher** than the planted path on the continuation. With no following text to constrain the final phase, the fixed model favors the wrong word.

This is a path-ranking error under the existing language model, unlike the earlier inferior-key search failures. The [post-run diagnostic](rotation_recovery_diagnostic.json) independently reconstructs both paths and their scores without refitting. No model, prior or gate is adjusted after seeing it. Fifteen of sixteen supplied-key diagnostics are exact; the sixteenth is this same case.

## Regression and implementation checks

The two inspected Session 88 misses now recover their complete keys and full messages under the revised search. They are **regression cases**, not fresh evidence. Their original results and failed gate remain intact.

Before the new recovery fits, **32 short fixtures across both F policies** give **64 policy checks**. Every supplied-key path matches the original implementation. Every cyclic proposal score matches independent exhaustive F-subset enumeration, and the selected rotation attains the best score within tolerance. The fixtures exercise one- through four-slot keys, nonzero phases, adjacent/edge/absent F and zero key values. **Twenty-two phase-zero ordinary fits** also reproduce the original keys, scores, paths and evaluation counts exactly.

All completed benchmark outputs pass independent scalar replay and inverse re-encryption. Continuation decoding preserves the selected prefix terminal state. These checks establish legal implementation behavior; matching the reference is the separate recovery criterion.

Across twenty paired fits, the ordinary algorithm makes **178,196** fixed-key path evaluations and the revised algorithm **182,291**, including final traced paths. Measured subprocess wall time totals approximately **5.93 and 6.00 seconds** in this environment, excluding compilation and Python serialization. Those timings are descriptive, not a portable performance benchmark or proof of global key optimization.

## Decision and next fixed scope

The proposed whole-key move clears this constructed recovery gate. It supports retaining the revised search for further controlled evaluation. It does **not** establish an unknown-page key, broad language generalization, a reliable real-text acceptance threshold or a solution to Liber Primus.

The [next saved plan](rotation_null_next_plan.json) fixes **396 shuffled-cipher controls**, 99 per source, using the same model, cut, F rule and bounded revised search. Prefix and continuation are shuffled separately with inventories and word lengths retained. It will report score distributions and descriptive margins for each model separately. These shuffles destroy sequence structure and do not represent every wrong mechanism; their ranks will not be called calibrated false-positive probabilities.

No unmodified unsolved text is fitted here or in that next scope. A real-text experiment still needs its own declared training model, section, selection statistic, null construction and acceptance criterion, with prior searches accounted for. No background task remains running. The notebook still has **zero new verified solutions**.

## Reproduce and inspect

Requires Python, NumPy and a C++17 compiler (`g++`). Beside the retained companion files, run:

```bash
python3 -B rotation_recovery.py prepare
python3 -B rotation_recovery.py fixtures
python3 -B rotation_recovery.py benchmark
python3 -B rotation_recovery.py regressions
python3 -B rotation_recovery_diagnostic.py
```

Preparation writes all constructed ciphertexts and the execution hashes before fitting. The driver compiles the new engine and reuses unchanged Session 88 training, serialization and grading helpers. Fixed-key diagnostic and probe modes receive keys explicitly; unknown-key fit modes do not.

- [Inherited rotation proposal](rotation_recovery_next_plan.json)
- [Pre-fit execution details and seed correction](rotation_recovery_execution.json)
- [Paired experiment driver](rotation_recovery.py)
- [Revised decoder and unchanged ordinary mode](rotation_recovery_engine.cpp)
- [Constructed ciphertexts and declared seeds](rotation_recovery_cases.json)
- [Unchanged target-excluding model snapshot](recovery_benchmark_models.json)
- [Implementation and exhaustive rotation checks](rotation_recovery_fixtures.json)
- [All paired grades and supplied-key diagnostics](rotation_recovery_results.json)
- [Historical-miss regression results](rotation_recovery_regressions.json)
- [Post-run diagnostic code](rotation_recovery_diagnostic.py)
- [All nonexact-output diagnostics](rotation_recovery_diagnostic.json)
- [Next shuffled-control plan, not executed](rotation_null_next_plan.json)
- [Original failed recovery gate](/sessions/88.html)

The retained master transcription and historical evidence are unchanged. This session improves recovery on constructed messages; it supplies no new glyph reading, authenticated message or authorship evidence.
