{
 "paper": "identity-persistence",
 "a": "7.3",
 "b": "7.4",
 "summary": "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.",
 "note": {
  "title": "Concrete thresholds for drift actions and cost",
  "kind": "revision",
  "body": "## Summary\n\nSmall changes that add numbers in place of loose wording.\n\n- The four drift responses get their score bands (above 0.85 none, down to 0.50 or below for a full persona re-injection).\n- The drift-recovery benchmark states its smoothing factor (0.1) and its trigger point (0.6).\n- Cost overhead becomes 1-3% per turn instead of \"less than 3%\".\n- The future-work idea of \"memory dreams\" is restated as idle-time consolidation plus learned tuning of the correction weights.",
  "source": "change note"
 },
 "paragraphs_changed": 8,
 "changes": [
  {
   "section": "Abstract",
   "old": "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+ days of production deployment spanning model switches, context resets, and hundreds of sessions.",
   "new": "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. In over 30 days of continuous production deployment spanning model switches, context resets, and hundreds of sessions, the agent required no manual persona correction.",
   "marked": "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.+}"
  },
  {
   "section": "4.1 Priority-Aware Injection",
   "old": "The injection layer renders the persona into pinned tiers and enforces the context budget before recent turns and retrieved memories are appended. The persona specification is loaded once per session from its human-readable source file; the runtime recomputes SyncScore after every turn.",
   "new": "The injection layer renders the persona into the pinned tier and enforces the context budget before recent turns and retrieved memories are appended. It loads the persona specification once per session from its human-readable source file and recomputes SyncScore after every turn.",
   "marked": "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."
  },
  {
   "section": "7.3 Drift Recovery Benchmark",
   "old": "The EWMA accumulator correctly captured sustained off-persona behavior, collapsing SyncScore from ~0.97 to 0.027 — a 97-percentage-point drop. 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.",
   "new": "The EWMA accumulator (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.",
   "marked": "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."
  },
  {
   "section": "7.5 Real-World Evaluation on Production Logs",
   "old": "**Continuous deployment.** The system has run in continuous production for over 30 days across hundreds of sessions. During this period, the agent maintained consistent personality through model switches (Claude → GPT-4o → Gemini), context window resets, and multi-topic conversations without manual persona correction. While we do not yet report quantitative SyncScore telemetry from production (planned for §12.2), qualitative monitoring confirmed zero incidents requiring manual persona intervention during this period.",
   "new": "**Continuous deployment.** The system has run in continuous production for over 30 days across hundreds of sessions. Throughout, the agent held its personality through model switches (Claude → GPT-4o → Gemini), context-window resets, and multi-topic conversations with no manual persona correction. We do not yet report quantitative SyncScore telemetry from production — that is the scaled-validation work itemized in §12.2 — but qualitative monitoring recorded zero incidents requiring manual persona intervention over the period.",
   "marked": "**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."
  },
  {
   "section": "8. Implementation",
   "old": "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.",
   "new": null,
   "marked": "[-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.-]"
  },
  {
   "section": "8. Implementation",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "9. Computational Cost Analysis",
   "old": "Identity Persistence adds less than 3% overhead to baseline inference costs. Standard model inference costs $\\$0.015\\text{--}\\$0.05$ per turn. The full suite of probes and EWMA loops adds only $\\sim\\$0.00047/\\text{turn}$. **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}$.",
   "new": "Identity Persistence adds roughly 1–3% overhead to baseline inference costs. Standard model inference costs $\\$0.015\\text{--}\\$0.05$ per turn; the full suite of probes and EWMA loops adds only $\\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}$.",
   "marked": "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}$."
  },
  {
   "section": "11.5 Future Work",
   "old": "Two directions remain open: \"memory dreams\" — offline consolidation of persona state during idle periods — and learned reinforcement policies for dynamic weight tuning. The Instant Recall nightly rebuild cycle (Serra, 2026b) provides a natural hook for idle-time persona consolidation.",
   "new": "Two directions remain open: offline consolidation of persona state during idle periods, and learned policies that tune the correction gain and signal weights from observed drift rather than fixed defaults. The nightly index rebuild that Instant Recall already runs (Serra, 2026b) provides a natural hook for the first — idle-time persona consolidation can ride the same cycle.",
   "marked": "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.+}"
  }
 ]
}
