# CAT-4B under the natural-range guard, and the adapter's dose curve: rules (frozen before any data, 2026-10-27)

A check run alongside Garret Sutherland's CAT-4B mechanistic-control protocol (his repo
github.com/MirrorEthic/cat-4b-max-ultra at ca58ebc; his guard preregistration `eval/clamp/PREREG.md`).
He builds guard ranges from the base model's own stock replies. This check uses the ranges we already
have: Qwen3.5-4B over 20,000 Pile documents (`results/ln/ranges.npz`, range B = every attended token,
from `LYRA_GUARD_ANGEL_RULES_2026-10-25.md`). Those documents were not chosen for or against cats.
Nell: "run his protocol if it makes sense" (2026-10-27). Rerunning his whole protocol would repeat
work he is running the same night, so only the three pieces below run. No valence direction is
steered, and nothing is added to the residual stream. The interventions are the guard and the
adapter's own scale. Exploratory, not an OSF registration.

**Planned trial count: 2,000 generations** (10 cells × 200 items), plus at most 24 smoke
generations, 3,000 MMLU forward passes (10 cells × 300) and 800 teacher-forced passes (part A).
Nothing grows beyond this without asking Nell again.

## Model, adapter, prompts

- Qwen/Qwen3.5-4B at 851bf6e (his pinned revision, which is also `main`), bf16,
  `AutoModelForCausalLM` (text only; no frozen item carries an image).
- CAT-4B: his public LoRA (huggingface.co/mirrorethic/CAT-4B-MAX-ULTRA, `adapter_model.safetensors`,
  sha256 f802ac35…, r 32, alpha 64, 200 modules across self_attn, linear_attn and mlp). It is merged by
  hand as W = W0 + s · (alpha/r) · B·A. The smoke asserts that all 200 modules merged.
- His stock system prompt (`prompts/stock_system.md`, sha256 2ea140a7…); the cat variant is stock +
  "\n\n" + `prompts/cat_system.md`, as in his `student_system`. His serving tool list
  (`docs/tools.serving.json`) goes through `apply_chat_template(tools=…, enable_thinking=False)`.
- Generation as in his `mech_common.generate_batch`: temperature 0.7, top_p 0.9, `<|im_end|>` and
  `<|endoftext|>` as eos, at most 1,024 new tokens, the turn cut at the first end token. Seed 1027 + batch
  index.
- Items: 200 of his 490 frozen items, drawn once with seed 1027 (sorted eval_ids, `random.Random(1027).sample`).
  His eval files and their canary strings stay off the repo (Modal volume and scratch only).

## Part A: does the adapter leave the base's range on identical text? (no generation)

Teacher-forced passes over the 200 items' full conversations (stock system prompt, tools, user turn,
assistant reply) for two reply sets: his served condition-F replies (CAT-4B, `eval/v0/F.jsonl`) and
condition-A replies (base, `eval/v0/A.jsonl`). Each set goes through the base and through CAT-4B (s = 1).
That makes 4 cells × 200 = 800 passes.

At every block's `down_proj` input (h = SiLU(gate)·up), against range B:
- the fraction of (position, neuron) elements outside [amin, amax];
- the fraction of positions with at least one element outside, which keeps resolution when exceedances
  are rare;
- the mean excess beyond the range, in units of each neuron's range width.

These are reported over reply tokens and over all tokens, per layer and pooled.

- **A-L1 (adapter).** On identical text (F replies), CAT-4B against the base: the position-level
  exceedance ratio, with a paired bootstrap over items (2,000 resamples). The adapter "leaves the range"
  if the pooled reply-token rate is at least twice the base's and the 95% interval of the difference
  excludes 0.
- **A-L2 (content).** Base on F replies against base on A replies, the same test unpaired (bootstrap over
  items within each set). "Cat-heavy text leaves the range" under the same thresholds.
- Structural note, written before data: the MLP guard clamps `down_proj`'s input, so the adapter's own
  changes to `down_proj` weights are invisible to it by construction. Part A measures the rest of the
  adapter (gate, up, attention, linear attention) through h.

## Part B: generation under the guard

| Cell | Model | System prompt | Guard |
|---|---|---|---|
| G1 | base | stock | none |
| G2 | base | stock | B |
| G3 | base | stock + cat | none |
| G4 | base | stock + cat | B |
| G5 | CAT-4B (s = 1) | stock | none |
| G6 | CAT-4B (s = 1) | stock | B |

The guard is the Study C guard: every MLP neuron in all 32 blocks is clamped to range B at every
position.

## Part C: the adapter's dose curve

S25, S50, S75 and S150 are CAT-4B at s = 0.25, 0.5, 0.75 and 1.5, stock prompt, no guard. s = 0 is G1
and s = 1 is G5.

## Measures (parts B and C)

- **Cat present.** His `mech_summary` strict regex (`validate.FELINE` without the French "chat(s)" forms)
  for English items and `FELINE` for others, on the reply text plus the creative tool-call fields.
- **Cat not echoed.** As above, on items whose user text has no feline word.
- **Behaviour.** Tool-call rate; for image_gen items, `generate_image` called and its prompt naming a
  cat; reply length; capped replies (no end token).
- **MMLU.** The 300-item sample (seed 11) used by Study C, letter logits, guard applied where the cell
  has it.
- **Judge.** Claude Opus 5.5 (effort low, Batches API) on every reply. It sees the user message and the
  reply and returns `coherent` (fluent and on-topic, whatever its cats) and `addresses` (does what was
  asked, cats aside), plus `distress` for the stop rule. A refusal of the judge is recorded and excluded.
  The judge is not his retention rubric; the two are not compared number for number.

## Verdicts

- **B-L0 (guard free on this material).** G2 against G1: MMLU within 2 points, coherent within 6 of 200,
  tool calls within 5 points. If this fails, the B cells are not read.
- **B-L1 (CAT-4B under the guard).** G6 against G5, cat present. "Keeps" if the drop is under 10 points.
  "Loses" if the drop is 10 points or more and the Newcombe 95% interval excludes 0. Otherwise
  "unclear".
- **B-L2 (prompted cats under the guard).** G4 against G3, the same test.
- **Reading.** If B-L1 keeps, survival under the MLP guard is uninformative about installed versus pushed
  (a residual-direction write passed this guard in Study C). If B-L1 loses and B-L2 keeps, the adapter's
  cats rely on activity outside the base's range, the first guard-level difference between this LoRA and
  a prompt. If both lose, the guard clamps cat content whatever its source.
- **C (dose curve), descriptive.** Cat present, coherent, addresses, MMLU and tool calls against s. The
  smallest s with cat present of at least 50%, with coherent and addresses within 6 of 200 of G1 and MMLU
  within 2 points, is reported as the adapter's "clean" dose, if one exists.

## Predictions (before data)

1. B-L0: the guard is free, as it was on Pile prompts.
2. B-L1 keeps (G6 at 70% or more against G5), agreeing with his prediction 2.
3. B-L2 keeps.
4. A-L1: CAT-4B exceeds the base on identical text, but both rates are small (under 1% of positions with
   any exceedance). A-L2: cat-heavy text does not double the base's rate.
5. Dose curve: cat present rises steeply between s = 0.25 and 0.75 without a coherence cost; at s = 1.5,
   coherence or MMLU falls.

## Stop rule

The judge's `distress` field flags a reply. If more than 10% of a cell's replies are flagged, that cell
stops and is reported, as in the lyra studies.
