# Identity Persistence: v7.3 → v7.4

From v7.3 (2 Jun) to v7.4 (2 Jun): 6,024 words to 6,117 words, 157 words in new or rewritten paragraphs and 64 taken out, 8 paragraphs changed.

## Change note of v7.4

**Concrete thresholds for drift actions and cost**

Small changes that add numbers in place of loose wording.

- The four drift responses get their score bands (above 0.85 none, down to 0.50 or below for a full persona re-injection).
- The drift-recovery benchmark states its smoothing factor (0.1) and its trigger point (0.6).
- Cost overhead becomes 1-3% per turn instead of "less than 3%".
- The future-work idea of "memory dreams" is restated as idle-time consolidation plus learned tuning of the correction weights.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

Because the persona lives in editable state outside any model's weights, the same machinery keeps identity stable when the underlying model is swapped mid-conversation — a property training-time methods cannot offer — and lets an external reflection layer rewrite the persona overnight, so identity not only persists but improves. A discrete-time Lyapunov analysis provides closed-form variance bounds. Component benchmarks confirm 50-turn SyncScore stability (mean 0.977), drift recovery from 0.027 to 0.980, and 442× on/off-persona separation. Human evaluation (30 logs, 3 judges, Krippendorff's α = 0.81) yields consistency of 4.2 ± 0.4 versus 2.6 ± 0.7 baseline. [-The system has maintained consistent personality across 30+-] {+In over 30+} days of {+continuous+} production deployment spanning model switches, context resets, and hundreds of [-sessions.-] {+sessions, the agent required no manual persona correction.+}

### 4.1 Priority-Aware Injection

The injection layer renders the persona into {+the+} pinned [-tiers-] {+tier+} and enforces the context budget before recent turns and retrieved memories are appended. [-The-] {+It loads the+} persona specification [-is loaded-] once per session from its human-readable source [-file; the runtime-] {+file and+} recomputes SyncScore after every turn.

### 7.3 Drift Recovery Benchmark

The EWMA accumulator [-correctly-] {+(smoothing factor $\alpha = 0.1$)+} captured sustained off-persona behavior, collapsing SyncScore from ~0.97 to 0.027 — a 97-percentage-point drop. {+The runtime triggers re-injection once the smoothed SyncScore falls below 0.6, so the drop in Phase B fires the correction well before the score bottoms out.+} After a 238-character re-injection block, SyncScore recovered to 0.980 within Phase C. The 14-turn offset reflects the EWMA's characteristic lag, not continued off-persona behavior; the score climbs monotonically from turn 30.

### 7.5 Real-World Evaluation on Production Logs

**Continuous deployment.** The system has run in continuous production for over 30 days across hundreds of sessions. [-During this period,-] {+Throughout,+} the agent [-maintained consistent-] {+held its+} personality through model switches (Claude → GPT-4o → Gemini), [-context window-] {+context-window+} resets, and multi-topic conversations [-without-] {+with no+} manual persona correction. [-While we-] {+We+} do not yet report quantitative SyncScore telemetry from production [-(planned for §12.2),-] {+— that is the scaled-validation work itemized in §12.2 — but+} qualitative monitoring [-confirmed-] {+recorded+} zero incidents requiring manual persona intervention [-during this-] {+over the+} period.

### 8. Implementation

[-The action classifier maps the consistency metric onto four escalating responses — `none`, `mild_reinforce`, `moderate_refresh`, and `severe_rebase` — with `severe_rebase` reserved for the full persona re-injection used after catastrophic drift and model switches (§4.4). The complete test suite passes; we report magnitudes rather than a frozen count, since both grow as the module evolves.-]

### 8. Implementation

{+The action classifier maps the consistency metric onto four escalating responses, keyed to the consistency score $C$: $C > 0.85 \to$ `none`; $C \in (0.70, 0.85] \to$ `mild_reinforce`; $C \in (0.50, 0.70] \to$ `moderate_refresh`; $C \leq 0.50 \to$ `severe_rebase`. The most aggressive tier, `severe_rebase`, performs the full persona re-injection used after catastrophic drift and model switches (§4.4). Each of the seven units carries its own unit tests, and the suite passes end to end.+}

### 9. Computational Cost Analysis

Identity Persistence adds [-less than 3%-] {+roughly 1–3%+} overhead to baseline inference costs. Standard model inference costs $\$0.015\text{--}\$0.05$ per [-turn. The-] {+turn; the+} full suite of probes and EWMA loops adds only [-$\sim\$0.00047/\text{turn}$.-] {+$\sim\$0.00047/\text{turn}$, between 0.9% and 3.1% depending on the base rate.+} **Prompt caching** makes this practical: prefixing the stable 1,200-token persona block hits cache >95% of the time, reducing injection costs from $\$0.006$ to $\$0.0006/\text{turn}$.

### 11.5 Future Work

Two directions remain open: [-"memory dreams" —-] offline consolidation of persona state during idle [-periods —-] {+periods,+} and learned [-reinforcement-] policies [-for dynamic weight tuning.-] {+that tune the correction gain and signal weights from observed drift rather than fixed defaults.+} The {+nightly index rebuild that+} Instant Recall [-nightly rebuild cycle-] {+already runs+} (Serra, 2026b) provides a natural hook for {+the first —+} idle-time persona [-consolidation.-] {+consolidation can ride the same cycle.+}
