counterparts 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +153 -0
  2. package/docs/module-map.md +3 -2
  3. package/package.json +1 -1
  4. package/src/adapters/claude-code/NOTES.md +28 -0
  5. package/src/adapters/claude-code/bin/hook.ts +85 -22
  6. package/src/adapters/claude-code/config.ts +7 -0
  7. package/src/adapters/claude-code/doctor.ts +166 -4
  8. package/src/adapters/claude-code/hooks.ts +185 -6
  9. package/src/adapters/claude-code/index.ts +3 -0
  10. package/src/adapters/claude-code/transcript.ts +7 -0
  11. package/src/adapters/cli/CONTRACT.md +11 -0
  12. package/src/adapters/cli/INTERFACE-GAPS.md +16 -0
  13. package/src/adapters/cli/NOTES.md +25 -0
  14. package/src/adapters/cli/commands.ts +184 -4
  15. package/src/adapters/cli/dream-core.ts +126 -0
  16. package/src/adapters/cli/help.ts +17 -0
  17. package/src/adapters/cli/mechanisms.ts +199 -106
  18. package/src/adapters/dashboard/CONTRACT.md +5 -0
  19. package/src/adapters/dashboard/INTERFACE-GAPS.md +12 -0
  20. package/src/adapters/dashboard/NOTES.md +38 -0
  21. package/src/adapters/dashboard/registries.ts +35 -1
  22. package/src/adapters/dashboard/web/README.md +63 -26
  23. package/src/adapters/dashboard/web/app.html +2 -0
  24. package/src/adapters/dashboard/web/flow.ts +14 -0
  25. package/src/adapters/dashboard/web/lanes.ts +141 -0
  26. package/src/adapters/dashboard/web/mechanisms/association/index.js +1 -2
  27. package/src/adapters/dashboard/web/mechanisms/consolidation/index.js +8 -5
  28. package/src/adapters/dashboard/web/mechanisms/consolidation/panel.js +7 -7
  29. package/src/adapters/dashboard/web/mechanisms/decay/index.js +1 -2
  30. package/src/adapters/dashboard/web/mechanisms/dreaming/index.js +19 -0
  31. package/src/adapters/dashboard/web/mechanisms/emotional/index.js +9 -6
  32. package/src/adapters/dashboard/web/mechanisms/episodic-semantic/index.js +4 -5
  33. package/src/adapters/dashboard/web/mechanisms/index.js +5 -3
  34. package/src/adapters/dashboard/web/mechanisms/interference/index.js +1 -2
  35. package/src/adapters/dashboard/web/mechanisms/prospective/index.js +7 -5
  36. package/src/adapters/dashboard/web/mechanisms/reconsolidation/index.js +1 -2
  37. package/src/adapters/dashboard/web/mechanisms/regions.js +1 -1
  38. package/src/adapters/dashboard/web/mechanisms/retrieval/index.js +1 -2
  39. package/src/adapters/dashboard/web/mechanisms/salience/index.js +1 -2
  40. package/src/adapters/dashboard/web/mechanisms/schema/index.js +1 -2
  41. package/src/adapters/dashboard/web/narrate.ts +76 -13
  42. package/src/adapters/dashboard/web/pages/health/sections/checks.js +17 -1
  43. package/src/adapters/dashboard/web/pages/home/home.css +29 -13
  44. package/src/adapters/dashboard/web/pages/home/index.js +2 -0
  45. package/src/adapters/dashboard/web/pages/home/sections/explorer.js +22 -7
  46. package/src/adapters/dashboard/web/pages/home/sections/hero.js +15 -3
  47. package/src/adapters/dashboard/web/pages/home/sections/live-activity.js +15 -9
  48. package/src/adapters/dashboard/web/pages/home/sections/recent-chapters.js +6 -2
  49. package/src/adapters/dashboard/web/pages/home/sections/tiles.js +35 -18
  50. package/src/adapters/dashboard/web/pages/memories/index.js +30 -36
  51. package/src/adapters/dashboard/web/pages/memories/memories.css +97 -72
  52. package/src/adapters/dashboard/web/pages/memories/row.js +51 -0
  53. package/src/adapters/dashboard/web/pages/memories/sections/feel.js +176 -0
  54. package/src/adapters/dashboard/web/pages/memories/sections/hold.js +67 -0
  55. package/src/adapters/dashboard/web/pages/memories/sections/list.js +65 -43
  56. package/src/adapters/dashboard/web/pages/memories/sections/search.js +26 -23
  57. package/src/adapters/dashboard/web/pages/memories/state.js +12 -5
  58. package/src/adapters/dashboard/web/pages/self/index.js +57 -16
  59. package/src/adapters/dashboard/web/pages/self/sections/dreams.js +76 -0
  60. package/src/adapters/dashboard/web/pages/self/sections/journal.js +75 -19
  61. package/src/adapters/dashboard/web/pages/self/sections/page.js +108 -65
  62. package/src/adapters/dashboard/web/pages/self/sections/settling.js +129 -104
  63. package/src/adapters/dashboard/web/pages/self/sections/wake.js +31 -15
  64. package/src/adapters/dashboard/web/pages/self/self.css +122 -59
  65. package/src/adapters/dashboard/web/pages/self/state.js +21 -0
  66. package/src/adapters/dashboard/web/server.ts +9 -0
  67. package/src/adapters/dashboard/web/shared/memory-marks.css +17 -0
  68. package/src/adapters/dashboard/web/shared/memory-marks.js +81 -0
  69. package/src/adapters/dashboard/web/shared/memory-modal.js +240 -53
  70. package/src/adapters/dashboard/web/shared/modal.css +67 -0
  71. package/src/adapters/dashboard/web/shared/tip.js +1 -1
  72. package/src/adapters/dashboard/web/shared/widgets/feed.css +4 -0
  73. package/src/adapters/dashboard/web/shared/widgets/feed.js +56 -14
  74. package/src/adapters/dashboard/web/shared/widgets/light.css +1 -0
  75. package/src/adapters/dashboard/web/shared/widgets/light.js +7 -5
  76. package/src/adapters/dashboard/web/shared/widgets/tips.css +19 -0
  77. package/src/adapters/dashboard/web/shared/widgets/tips.js +56 -0
  78. package/src/adapters/dashboard/web/views/activity.ts +18 -2
  79. package/src/adapters/dashboard/web/views/archive-words.ts +27 -10
  80. package/src/adapters/dashboard/web/views/dreams.ts +199 -0
  81. package/src/adapters/dashboard/web/views/mechanism-panel.ts +116 -35
  82. package/src/adapters/dashboard/web/views/mechanisms.ts +81 -255
  83. package/src/adapters/dashboard/web/views/memories.ts +245 -43
  84. package/src/adapters/dashboard/web/views/memory-words.ts +133 -0
  85. package/src/adapters/dashboard/web/views/memory.ts +226 -4
  86. package/src/adapters/dashboard/web/views/mind.ts +261 -61
  87. package/src/adapters/dashboard/web/views/overview.ts +80 -42
  88. package/src/adapters/dashboard/web/views/search.ts +35 -1
  89. package/src/adapters/dashboard/web/views/shared.ts +14 -0
  90. package/src/adapters/dashboard/web/views.ts +2 -0
  91. package/src/adapters/feelings-line.ts +74 -0
  92. package/src/adapters/fired.ts +163 -23
  93. package/src/adapters/mcp/CONTRACT.md +8 -0
  94. package/src/adapters/mcp/NOTES.md +56 -0
  95. package/src/adapters/mcp/server.ts +254 -6
  96. package/src/adapters/mcp/tools.ts +180 -5
  97. package/src/adapters/mechanism-evidence.ts +465 -0
  98. package/src/core/bridge.ts +21 -16
  99. package/src/core/counterpart.ts +422 -10
  100. package/src/core/dream/CONTRACT.md +143 -0
  101. package/src/core/dream/INTERFACE-GAPS.md +24 -0
  102. package/src/core/dream/NOTES.md +84 -0
  103. package/src/core/dream/index.ts +1067 -0
  104. package/src/core/dream/mark.ts +14 -0
  105. package/src/core/dream/tunables.ts +56 -0
  106. package/src/core/encode/CONTRACT.md +7 -1
  107. package/src/core/feelings-wheel.ts +171 -13
  108. package/src/core/mint.ts +9 -0
  109. package/src/core/physics/CONTRACT.md +132 -21
  110. package/src/core/physics/NOTES.md +233 -0
  111. package/src/core/physics/index.ts +419 -50
  112. package/src/core/prospective/CONTRACT.md +35 -6
  113. package/src/core/prospective/INTERFACE-GAPS.md +10 -5
  114. package/src/core/prospective/NOTES.md +175 -4
  115. package/src/core/prospective/derive.ts +32 -3
  116. package/src/core/prospective/index.ts +362 -39
  117. package/src/core/prospective/tunables.ts +18 -1
  118. package/src/core/prospective/windows.ts +104 -46
  119. package/src/core/recall/CONTRACT.md +28 -0
  120. package/src/core/recall/NOTES.md +55 -0
  121. package/src/core/recall/activate.ts +32 -5
  122. package/src/core/recall/gate.ts +7 -1
  123. package/src/core/recall/index.ts +28 -2
  124. package/src/core/recall/mood.ts +106 -0
  125. package/src/core/recall/tunables.ts +26 -0
  126. package/src/core/remember/CONTRACT.md +5 -0
  127. package/src/core/remember/index.ts +1 -0
  128. package/src/core/remember/proposals.ts +86 -3
  129. package/src/core/remember/spans.ts +11 -1
  130. package/src/core/self/CONTRACT.md +3 -0
  131. package/src/core/self/INTERFACE-GAPS.md +7 -0
  132. package/src/core/self/NOTES.md +30 -0
  133. package/src/core/self/identity.ts +115 -6
  134. package/src/core/self/index.ts +17 -0
  135. package/src/core/self/tunables.ts +17 -0
  136. package/src/core/sleep/CONTRACT.md +17 -1
  137. package/src/core/sleep/INTERFACE-GAPS.md +19 -0
  138. package/src/core/sleep/NOTES.md +36 -0
  139. package/src/core/sleep/consolidate.ts +149 -96
  140. package/src/core/sleep/decay.ts +11 -0
  141. package/src/core/sleep/index.ts +4 -1
  142. package/src/core/sleep/tunables.ts +9 -0
  143. package/src/core/sleep/types.ts +17 -0
  144. package/src/core/sleep/upgrade.ts +168 -0
  145. package/src/core/store/CONTRACT.md +21 -2
  146. package/src/core/store/NOTES.md +68 -0
  147. package/src/core/store/feelings.ts +23 -6
  148. package/src/core/store/index.ts +716 -17
  149. package/src/core/store/operational.ts +329 -4
  150. package/src/core/store/owner-op-seam.ts +79 -1
  151. package/src/core/types.ts +37 -0
  152. package/src/adapters/dashboard/web/pages/memories/sections/constellation.js +0 -178
  153. package/src/adapters/dashboard/web/pages/memories/sections/kinds.js +0 -42
@@ -134,6 +134,201 @@ decided twice.)*
134
134
  The FALLBACK channel is untouched: its ceiling and its interpreter-supplied
135
135
  dimensions are exactly what they were. CAL, and a working default.
136
136
 
137
+ 17. **Emotion, part A (2026-09-26) — feelings start to matter (CONTRACT §5.10).**
138
+ Owner decisions of 2026-09-25/26, built as working defaults. Three constants,
139
+ all CAL and unmeasured, chosen by the arithmetic below and kept modest because
140
+ this changes decay on an existing store.
141
+
142
+ **Where the lift lives.** In `base()`'s salience ARM (`salArm`), not in `sal()`.
143
+ `sal()` is also what recall's turn gate reads (§9 G10: the emotional dimension
144
+ counts only when the turn itself carries first-person feeling) and what
145
+ `challengeForce` multiplies by (the author's own how-much-this-mattered). Folding
146
+ the lift into `sal()` would have broken G10 silently and changed revision force.
147
+ The repetition arm gets nothing, so "repetition never reaches identity" is still
148
+ the cap arithmetic alone.
149
+
150
+ **Intensity** `I = max(emotional, strongest recorded feeling)`. `feelingPeak` is
151
+ read beside the row by `Store.row()` (one indexed subquery), which every physics
152
+ read goes through — sleep, recall, the dashboard, `physicsOf`, `read`. A bare
153
+ `SELECT * FROM memories` carries none and reads as the numeric score alone.
154
+
155
+ **The simulation.** A silent authored fact (claimed default 0.25, no dimensions,
156
+ never used, κ = 1), strength over lived days, at three intensities:
157
+
158
+ | I | height | S (lived days) | d0 | d7 | d30 | d60 | d90 | below φ = 0.02 on |
159
+ |---|---|---|---|---|---|---|---|---|
160
+ | 0 | 0.250 | 60 | 0.250 | 0.222 | 0.152 | 0.092 | 0.056 | day 152 |
161
+ | 0.5 | 0.325 | 75 | 0.325 | 0.296 | 0.218 | 0.146 | 0.098 | day 210 |
162
+ | 0.9 | 0.385 | 87 | 0.385 | 0.355 | 0.273 | 0.193 | 0.137 | day 258 |
163
+
164
+ (`test/emotion.test.ts` pins this table.) A `person` memory (κ = 0.75) at I = 0.9:
165
+ S = 116, below the floor on day 344 instead of 203. A note that said only
166
+ `emotional: 0.9`: before, height 0.300 and S = 60 (floor on day 163); now height
167
+ 0.435 and S = 87 (floor on day 268).
168
+
169
+ **Why these numbers.**
170
+ - `EMO_LIFT = 0.15`. The lift is felt (a strongly felt silent note starts 54%
171
+ higher than an unfelt one) and bounded where it matters:
172
+ `AUTHORED_DEFAULT_CLAIM + EMO_LIFT = 0.40 < THETA_SEM`, so a feeling alone does
173
+ not make a silent note semantic at birth — consolidation (+0.2) or use still has
174
+ to, and a consolidated one at I = 0.9 holds semantic for ~14 lived days, then
175
+ fades back. Consolidated, it is 0.60, far under `THETA_ID = 0.85`. Larger lifts
176
+ (0.25+) would carry a felt silent note to semantic on birth; smaller ones (0.05)
177
+ are rounding error against a 0.25 floor.
178
+ - `EMO_SLOPE = 0.5`. ×1.25 stability at I = 0.5, ×1.45 at 0.9 — the strongly felt
179
+ memory lasts ~1.7× as long before it reaches the prune floor. It stays a slope,
180
+ not an exemption: nothing becomes immortal by being felt (identity is still the
181
+ only decay exemption, and still by promotion only).
182
+ - `S_FEELING = 20`. A 0.9 feeling reads 0.63 after a week, 0.45 after two, 0.20
183
+ after a month — while the fact it sits on is still at 0.79 of its height after
184
+ two weeks. "The feeling softens faster than the fact" as arithmetic.
185
+
186
+ **What moves on an existing store.** Every row with an `emotional` score or a
187
+ recorded feeling is now taller and slower. The first sleep pass after an upgrade
188
+ will re-read those bands; some episodic rows will read semantic (counted as
189
+ up-moves by guarantee 12's counter — expected, and a one-time step). A felt row
190
+ that reads semantic on a day after its birth is then CONSOLIDATED by the same
191
+ pass, and `consolidated` is permanent (+0.2 to `base` for life).
192
+
193
+ **Identity would have been reachable, in a window (adversarial review of #244) — closed below.**
194
+ Promotion eligibility is on `base`, and the lift is in `base`. The "stays under
195
+ identity" bound above is for a SILENT note only. For a memory whose `sal` was
196
+ claimed or computed, the consolidated bar `THETA_ID − CONS_BONUS = 0.65` is now
197
+ met at `sal ≥ 0.65 − 0.15 × I`: at I = 0.9 a consolidated memory with
198
+ `sal ∈ [0.515, 0.65)` and ≥ 3 distinct reinforced days is newly eligible, where
199
+ before it was not. Identity is decay-exempt, so this is one-way. It includes the
200
+ retelling channel: a sweep memory at `SWEEP_CLAIM_CEILING = 0.6` with an
201
+ `emotional` dimension ≥ 0.34 reaches 0.6 + 0.15 × I + 0.2 ≥ 0.85 (0.80 before).
202
+ On an existing store the first sleep after the upgrade could have promoted such rows.
203
+ **Settled 2026-09-26 (coordinator, holding the status quo until the owner's
204
+ consolidation/dreaming redesign lands): emotion does NOT count toward identity.**
205
+ Promotion reads `promotionBase` — `base` without the lift — so its reach is exactly
206
+ what it was before #244, and the settling view (which reads the verdict's `base`)
207
+ follows. The lift still makes a memory taller and slower to fade.
208
+ **Superseded the same day by the redesign** ("Returns, core lanes and the v8
209
+ upgrade", below): `promotionBase` is retired, promotion reads no `base` at all, and
210
+ emotion counts toward the core on purpose — through the fast lane, and only for
211
+ memories about me or about us.
212
+
213
+ Anything that ranks by strength (the self page's ordering, the dashboard's
214
+ lists) shifts toward felt memories. Felt, consolidated, high-salience memories
215
+ also reach the strength CEILING of 1.0 more often (`strength` clamps `base × D`,
216
+ and base can exceed 1 with the consolidation bonus), so anything that ranks by
217
+ strength sees more ties. The self lanes break a tie on born day, then on a hash
218
+ of the memory's words (`self/identity.ts#tieKey`, added in review), then id —
219
+ so two stores built alike (the demo seed's two runs) render the same wake, and
220
+ `demo-seed.test.ts` compares the wake's bytes exactly again. On a live store,
221
+ lines tied on everything else move from id order to hash order — both
222
+ arbitrary, so nothing is lost; identity additionally rotates by last-rendered
223
+ day, which dominates after one render.
224
+
225
+ **Softening's clock, an approximation named.** A feeling softens over the lived
226
+ days since its MEMORY's birth day: the lived-day clock is a counter and cannot map
227
+ a feeling's wall-clock `created_at` back to a lived day. Every feeling written
228
+ today is written in the same call that minted its memory, so they agree; a later
229
+ `addFeelings` on an old memory would read as already softened.
230
+
231
+ **Not carried across a revision.** Feelings belong to a memory id. A supersede
232
+ mints a new id, so the successor starts without them (and without their lift).
233
+ Named, not solved — revisit with the self/schemas work.
234
+
235
+ ## Returns, core lanes and the v8 upgrade (2026-09-26)
236
+
237
+ *Owner decisions of 2026-09-26 (dreaming + consolidation), held lightly: "try it, see
238
+ how it goes, adjust". CONTRACT §5.2, §5.3, §5.4, §5.11; `sleep/consolidate.ts`;
239
+ `self/identity.ts#hintReading`. Every number below is a working default and CAL.*
240
+
241
+ **What changed, in one paragraph.** The one-time `+CONS_BONUS` for a memory that
242
+ survived a day at the semantic floor was the only road to staying strong. Now a memory
243
+ stays strong by COMING BACK: each spaced return lengthens its stability (diminishing),
244
+ close-together returns count less but never against it, and a dream's replay counts as
245
+ half a return. The bonus is kept, exactly, for rows born before the upgrade (`legacy`),
246
+ so no memory moves down. The core (identity band) is for memories about me or about us
247
+ only, by a fast lane (strongly felt, and back after a gap) or a slow lane (back on five
248
+ distinct days over three weeks), at most three a night.
249
+
250
+ **The tunables, and why each number.**
251
+
252
+ | name | value | reason |
253
+ |---|---|---|
254
+ | `RETURN_SPACING_DAYS` | 7 | `1 − exp(−gap/7)`: 0.13 next day, 0.63 after a week, 0.95 after three. Full weight once forgetting has visibly started (a fact with S = 60 has lost ~11% by day 7). #238's curve, with its penalty on `uses` dropped. |
255
+ | `RETURN_GAIN` | 1.0 | stability × (1 + ln(1 + returns)): one full return ×1.69, three ×2.39, ten ×3.40. In the 60-day run a fact that came back on 5–6 days ends with S ≈ 330 lived days against ≈ 130 without its returns — retrieval practice at its usual strength. The number most worth watching: generous if the store stops forgetting what it uses a few times. |
256
+ | `DREAM_RETURN_WEIGHT` | 0.5 | the owner's "start ~0.5": a replay strengthens, less than living it again. Counts toward no core lane. |
257
+ | `DREAMED_CLAIM_CEILING` | 0.3 | a dream's gist starts below `THETA_SEM` and just above a silent note's 0.25 default, so it is neither semantic at birth nor prunable from birth; it rises only by being used awake (rep arm, returns). |
258
+ | `CORE_FAST_FEELING` | 0.6 | "strongly felt" — the top of the ordinary range: the sweep's claim ceiling is 0.6 too, and feelings recorded at 0.7–0.9 are the ones a person names. Either person's feeling (`emotionalIntensity`). |
259
+ | `CORE_FAST_GAP_DAYS` | 2 | "came back at least once after a gap": not the very next day, which is usually the same thread continuing. |
260
+ | `CORE_SLOW_DAYS` / `CORE_SLOW_SPAN_DAYS` | 5 / 21 | "kept coming back over several weeks": five separate days spread over three weeks is a habit, not a burst. The owner's example numbers. |
261
+ | `CORE_MAX_PER_SLEEP` (sleep) | 3 | the owner's rail: a store that grew a lane of eligible memories does not rewrite who it is overnight; strongest first, the rest wait three lived days. |
262
+ | `HINT_STEP` / `HINT_RECOVERY_DAYS` / `HINT_HABITUATION` (self) | 1 / 3 / 1 | #238's habituation with its half step for "used while shown" removed (its review: that barely habituated). |
263
+
264
+ **Judgement calls, recorded because the brief was silent.**
265
+
266
+ 1. **A return needs a REFERENCED use.** A memory surfaced and left unused (tier 0.25)
267
+ did not come back; it was offered. Simpler too: every awake return is also a lane day.
268
+ 2. **"Shown in the hints lane" is decided by the store**, from `wake_display`: from the
269
+ first day of the current showing through the day a publish dropped it (the drop day
270
+ is ambiguous, #238's reading kept). **A use recall surfaced on the turn's own cue
271
+ (a quoted loud candidate) is organic even while shown** — found building the lifecycle
272
+ test: on a store small enough that the lane holds every warm memory, the plain rule
273
+ would have let nothing ever return. An id EXPANDED off the wake is the loop, and is
274
+ not a return.
275
+ 3. **The hints lane scores ORGANIC strength** — the uses the memory had when it was first
276
+ ever shown plus its awake returns, decayed from its last organic use — times
277
+ habituation. #238's review found the loop back every day by ~day 20 because
278
+ display-prompted uses kept `lastUsedDay` and `uses` up; both are set aside here.
279
+ 4. **Legacy is a flag the migration sets on every row it finds**, not a date: exact, and
280
+ a dream's merge of legacy rows carries it (the merged memory stands where its
281
+ strongest original stood). Rows born on the upgrade's own lived day before it are
282
+ legacy; rows born after are not.
283
+ 5. **Existing identity rows stay identity**, whatever their kind — the old rule promoted
284
+ facts and entities; the new one never will, and nothing takes back what was earned.
285
+ 6. **"About me"** is `self` kind, or a `person` memory naming the owner (the identity
286
+ core's name and aliases, whole-word). With no name configured, only `self` qualifies.
287
+ 7. **A demotion restarts fading from the demotion day** and is sticky against the lanes.
288
+
289
+ **A. The upgrade, on a real v7 store** (`tools/sim/consolidation.ts --v7-src <a v7
290
+ checkout>`: the demo store seeded by the v7 build, then opened by this one).
291
+
292
+ | kind | rows | consolidated (kept) | episodic / semantic / identity | band moved at upgrade | prune day sooner | later |
293
+ |---|---|---|---|---|---|---|
294
+ | entity | 24 | 16 | 6 / 16 / 2 | 0 | 0 | 0 |
295
+ | fact | 39 | 36 | 0 / 34 / 5 | 0 | 0 | 0 |
296
+ | person | 29 | 21 | 5 / 21 / 3 | 0 | 0 | 0 |
297
+ | place | 7 | 0 | 7 / 0 / 0 | 0 | 0 | 0 |
298
+ | self | 33 | 13 | 17 / 11 / 5 | 0 | 0 | 0 |
299
+ | skill | 13 | 0 | 13 / 0 / 0 | 0 | 0 | 0 |
300
+
301
+ The census the first sleep recorded: `{"checked":145,"bandDown":0,"bandUp":0,"weaker":0,
302
+ "pruneSooner":0,"pruneLater":0,"legacy":145,"consolidated":86}`. Zero by construction
303
+ (the returns factor is 1 at zero returns and a legacy row keeps its path) — and measured.
304
+ `doctor` prints it as the Upgrade line. What the upgrade DOES change is the future of a
305
+ memory made after it: it will never get the one-time bonus, and stays strong only by
306
+ returning.
307
+
308
+ **B. Sixty lived days** on a synthetic store: 20 ordinary facts (a cued return 6% of
309
+ days), a strong memory used every time the hints lane shows it (the loop), two strongly
310
+ felt `self` memories (12%), two steady ones (30%), two rare ones (3%), one felt memory
311
+ naming the owner (10%), three steady ones about him (25%), three about Ada (40%), two
312
+ new facts a day, and on day 10 a burst of five felt `self` memories that all come back on
313
+ day 12.
314
+
315
+ - **Hints lane** (8 slots): the loop memory was shown on 34 of 60 days, longest run 8
316
+ days; 99 distinct memories were shown. Every one of its 34 uses was on display, so it
317
+ gathered 0 returns and never came near the core.
318
+ - **The core**: Mike-felt on day 10 (fast); three of the burst on day 13 and the other two
319
+ on day 16 (fast; the cap held two back once); both felt `self` memories by day 19
320
+ (fast); both steady `self` memories on day 25 and the three steady Mike memories on
321
+ days 34–40 (slow). The rare `self` memories, every fact, and all three Ada memories
322
+ (26–30 return days each — not about me) stayed out.
323
+ - **Durability**: facts that came back on 5–6 days end with S ≈ 320–340 lived days
324
+ (≈130 without their returns) and sit around the semantic floor at day 60; facts that
325
+ never came back fade as before.
326
+
327
+ **Hazards named.** `RETURN_GAIN` is the lever most likely to need turning (see above). The
328
+ fast lane opens on ONE return after a gap, so a strongly felt memory about me is core
329
+ within days — the owner's intent, and the cap is the rail. A dream's feeling-now cannot
330
+ raise intensity (capped at the peak), so a dream cannot open the fast lane.
331
+
137
332
  ## Observations for the owner (arithmetic vs prose)
138
333
 
139
334
  - **§5.6's "a slow kind cannot cross from rest in fewer than ~3 lived days" is
@@ -153,3 +348,41 @@ decided twice.)*
153
348
  the `TUNABLES` table. Per scar §2.8 and guarantee 11 they ship with a recorded
154
349
  measurement or they ship disabled; `PHI_PRUNE` and `D_FLOOR_DAYS` are the two
155
350
  with no ancestry at all (open question 5 — v1 never pruned).
351
+
352
+
353
+ ## After the review of #251 (2026-09-26) — working defaults, held lightly
354
+
355
+ - **Legacy history counts as returns (Q1).** The review found the upgrade closed v7's
356
+ road to the core for legacy rows: `promotionBase ≥ 0.85` with 3 reinforced days, any
357
+ kind. The decision is to let those rows go under the new rule (only memories about me
358
+ or about us become core), but not weaker than the design intends.
359
+ - At the upgrade, each legacy row's `reinforced_days` become `returns` rows of source
360
+ `legacy`. They are placed evenly from birth to the last use, the last one on it,
361
+ because the days themselves were never kept, and weighed by `spacingWeight`.
362
+ - They lengthen stability and nothing else. The lanes read awake returns only, and
363
+ invented day positions are not a lane's evidence.
364
+ - `creditReturn`'s `since` lets spacing measure a post-upgrade return from the last
365
+ legacy day.
366
+ - **The slow lane needs the semantic floor (Q2).** `CORE_SLOW_FLOOR` = `THETA_SEM` =
367
+ 0.5, decayed strength on the promoting day (`CoreContext.day`; `promote` always passes
368
+ it).
369
+ - The independent upgrade run had six `self` rows with salience `[0,0,0,0]` cross on
370
+ repetition alone.
371
+ - The fast lane is unchanged.
372
+ - **A dream follows spacing (Q5).** A replay counts at most once per
373
+ `RETURN_SPACING_DAYS` per memory (refusal reason `dream-spaced`).
374
+ - `DREAM_RETURN_WEIGHT` 0.5 and `RETURN_GAIN` 1.0 are unchanged, to be tuned on the
375
+ real store.
376
+ - The return factor R after each period (the returns total in brackets), from
377
+ `creditReturn` itself:
378
+
379
+ | Days | Dream replay every night | Awake every day | Awake every week |
380
+ |---|---|---|---|
381
+ | 30 | 1.85 (1.3) | 2.61 (4.0) | 2.26 (2.5) |
382
+ | 90 | 2.58 (3.9) | 3.56 (12.0) | 3.15 (7.6) |
383
+ | 365 | **3.86** (16.5) | 4.90 (48.6) | **4.52** (32.9) |
384
+
385
+ - Before the spacing rule, nightly replay reached R ≈ 4.23 at a year, nearly weekly
386
+ awake use. It now stays below.
387
+ - **Awake after a dream the same day (review S1).** The awake return keeps its lane day,
388
+ at the weight its zero gap gives it (0).