# Session 102: Prime-clause ranking recovers five answers and prefers one wrong answer

**The fixed prime-clause objective uniquely selects five of six known affine plaintexts. It selects a wrong transformation for the first koan.** Searching the same transformation family on shifted controls also weakens several of the apparent numerical signals. This statistic is not a reliable standalone decoder. No unknown text is fitted and no new plaintext is recovered.

## Test the statistic against known answers

The [Session 101 plan](prime_affine_calibration_next_plan.json) freezes six applicable solved groups, all 58 transformations P=(s*C+b) mod29 with s in {1,-1} and b=0..28, the clause boundaries, and 99 shifted controls per group. Three groups with advancing-key methods are explicitly outside this affine family. Their exclusion is declared before scoring, not selected by results.

For each transformation, assign primes2 through109 to the resulting forward rune ordinals and count clauses whose total is prime. Headings and trailing fragments remain included. There is no language model, singleton filter, word score, spelling repair or extra weighting. All 58 scores are retained, and ties would be retained rather than broken with knowledge of the answer.

Before ranking, the known transforms exactly reproduce every retained plaintext rune: Warning uses (-1,28), first koan (-1,2), and the four directly readable groups (1,0). Source hashes, code, ciphertext arrays, lengths, known answers and all shift offsets are frozen before the ranking run. Independent sieve/trial-division controls verify primality over the usable sum range.

## Every group result

Known-transform rank is1 plus the number of transforms with a strictly higher score. The maximum rank in the final column compares the original best score with the99shifted best scores, with ties counting against the original. These ranks answer different questions.

| Group | Known [s,b] | Known score | Maximum | Known rank /58 | Tied maxima | Correct plaintext uniquely selected? | Best-score shift rank |
|---|---|---:|---:|---:|---:|---|---:|
| warning | [-1, 28] | 9 | 9 | 1 | 1 | Yes | 1 / 100 |
| wisdom | [1, 0] | 4 | 4 | 1 | 1 | Yes | 28 / 100 |
| koan | [-1, 2] | 3 | 8 | 24 | 1 | No | 29 / 100 |
| divinity | [1, 0] | 9 | 9 | 1 | 1 | Yes | 22 / 100 |
| instruction | [1, 0] | 5 | 5 | 1 | 1 | Yes | 1 / 100 |
| lp2_57 | [1, 0] | 4 | 4 | 1 | 1 | Yes | 4 / 100 |

There are no tied maxima in these six original cases. Five known answers are uniquely selected. The first koan's known transform scores only3prime clauses; the wrong winning transform P=C+16 mod29 scores8. The correct transform ranks24of58. Its actual known plaintext is retained unchanged; no numerical criterion can make this wrong winner a correct decryption.

These six groups contain related prose and were chosen because their demonstrated decoding lies in the finite family. Five successes do not establish performance on arbitrary language or an unknown cipher.

## Repeat the full selection on controls

For each group, reuse all99cyclic shift offsets from Session101, applied to ciphertext with clause lengths held fixed. On every shift repeat the entire58transform selection and retain its maximum. Comparing only the true key's score against shifts would understate the flexibility of the proposed search.

Warning and instruction have original maximum rank1; LP2page57 ranks4. Wisdom ranks28, divinity22, and the first koan29. Thus unique selection of a known transform is not the same as a best score that distinguishes the original arrangement from shifted arrangements. The shift controls are dependent and these are descriptive ranks, not calibrated p-values. The Warning also remains a selected discovery/control example.

Exactly **34,800 transform evaluations** are retained: six groups times100alignments times58transforms. There is no unsolved-section search, seed selection, smoothing adjustment or new key family. All groups run regardless of earlier results.

## Independent verification

A separate [audit](prime_affine_calibration_audit.py) builds doubled prefix-sum vectors for each transform and checks shifted segment totals by subtraction, rather than rotating ciphertext and summing slices. A separate sieve verifies prime flags. All 34,800 counts, known-answer checks, maxima, ties and both kinds of ranks agree. Source/master and earlier research artifacts remain unchanged.

Complete original and shifted score vectors are stored compactly. Transform indices refer to the ordered58-entry array in the cases; shifted rows follow the saved offset list. Compact JSON keeps the publication within its hosting limit without dropping any score.

## Decision

The statistic has demonstrated numerical sensitivity on several solved passages and an explicit wrong-answer preference on another. **Do not promote it to a standalone real-text decoder or impose prime totals on every unknown clause.** The failed first-koan case is retained as a counterexample, not repaired by adding language weights or excluding inconvenient clauses.

The next useful direction is source-led investigation of where numerical structure is actually signalled, including the difference between author-selected passages and a universal cipher rule. No new unknown-text experiment is selected here. Any use of this statistic in a future cipher search needs its own protocol and controls that account for the full selection process. The Session99 independent-key branch remains closed.

The notebook still contains zero new verified solutions.

## Reproduce and inspect

Use Python's standard library in a separate reproduction directory, keeping published generated files separately. Run `prime_affine_calibration.py prepare`, then `screen`; run `prime_affine_calibration_audit.py` for independent verification. The driver refuses to overwrite saved cases or results.

- [Frozen pre-fit plan](prime_affine_calibration_next_plan.json)
- [Driver](prime_affine_calibration.py), [all ciphertexts, lengths and transforms](prime_affine_calibration_cases.json), [execution hashes](prime_affine_calibration_execution.json)
- [All 34,800 scores and ranks](prime_affine_calibration_results.json)
- [Independent verifier](prime_affine_calibration_audit.py) and [audit result](prime_affine_calibration_audit.json)
- [Previous known-text calibration](/sessions/101.html)
