counterparts 0.3.13 → 0.3.14

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 (84) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/package.json +1 -1
  3. package/src/adapters/claude-code/bin/hook.mjs +4 -2
  4. package/src/adapters/claude-code/bin/hook.ts +11 -4
  5. package/src/adapters/claude-code/bin/nightly.ts +5 -1
  6. package/src/adapters/claude-code/bin/runner.ts +11 -3
  7. package/src/adapters/claude-code/doctor.ts +69 -5
  8. package/src/adapters/claude-code/embed-client.ts +3 -0
  9. package/src/adapters/cli/bin/counterparts.mjs +4 -2
  10. package/src/adapters/cli/bin/counterparts.ts +11 -3
  11. package/src/adapters/cli/commands.ts +65 -23
  12. package/src/adapters/cli/index.ts +1 -0
  13. package/src/adapters/cli/install.ts +22 -9
  14. package/src/adapters/cli/settle.ts +39 -2
  15. package/src/adapters/cli/wire.ts +4 -0
  16. package/src/adapters/config.ts +29 -1
  17. package/src/adapters/dashboard/NOTES.md +33 -0
  18. package/src/adapters/dashboard/bin/dashboard.mjs +4 -2
  19. package/src/adapters/dashboard/bin/dashboard.ts +11 -3
  20. package/src/adapters/dashboard/index.ts +14 -0
  21. package/src/adapters/dashboard/source.ts +0 -8
  22. package/src/adapters/dashboard/web/fired.ts +8 -0
  23. package/src/adapters/dashboard/web/pages/flow/sections/fired.js +1 -1
  24. package/src/adapters/dashboard/web/pages/health/sections/cycle.js +7 -10
  25. package/src/adapters/dashboard/web/pages/memories/memories.css +3 -0
  26. package/src/adapters/dashboard/web/pages/memories/row.js +5 -2
  27. package/src/adapters/dashboard/web/pages/memories/sections/hold.js +2 -1
  28. package/src/adapters/dashboard/web/pages/memories/sections/search.js +19 -3
  29. package/src/adapters/dashboard/web/server.ts +16 -4
  30. package/src/adapters/dashboard/web/shared/dates.js +6 -16
  31. package/src/adapters/dashboard/web/shared/memory-modal.js +21 -8
  32. package/src/adapters/dashboard/web/views/health.ts +11 -0
  33. package/src/adapters/dashboard/web/views/mechanism-panel.ts +8 -5
  34. package/src/adapters/dashboard/web/views/memories.ts +26 -7
  35. package/src/adapters/dashboard/web/views/memory-words.ts +16 -0
  36. package/src/adapters/dashboard/web/views/memory.ts +51 -2
  37. package/src/adapters/dashboard/web/views/mind.ts +31 -6
  38. package/src/adapters/empty-bunfig.toml +5 -0
  39. package/src/adapters/fired.ts +6 -2
  40. package/src/adapters/host-wiring.ts +4 -3
  41. package/src/adapters/log/index.ts +2 -2
  42. package/src/adapters/mcp/CONTRACT.md +16 -2
  43. package/src/adapters/mcp/INTERFACE-GAPS.md +15 -1
  44. package/src/adapters/mcp/NOTES.md +243 -0
  45. package/src/adapters/mcp/bin/serve.mjs +4 -2
  46. package/src/adapters/mcp/bin/serve.ts +11 -4
  47. package/src/adapters/mcp/facts.ts +72 -4
  48. package/src/adapters/mcp/meaning.ts +218 -15
  49. package/src/adapters/mcp/server.ts +1 -1
  50. package/src/adapters/mcp/tools.ts +81 -57
  51. package/src/adapters/plugin-run.sh +405 -33
  52. package/src/adapters/plugin.ts +14 -2
  53. package/src/adapters/runtime.ts +192 -17
  54. package/src/adapters/sessions.ts +2 -2
  55. package/src/core/associate/NOTES.md +10 -0
  56. package/src/core/bridge.ts +1 -1
  57. package/src/core/briefing.ts +20 -3
  58. package/src/core/contradictions.ts +56 -20
  59. package/src/core/counterpart.ts +39 -17
  60. package/src/core/dream/CONTRACT.md +4 -12
  61. package/src/core/dream/INTERFACE-GAPS.md +3 -2
  62. package/src/core/dream/NOTES.md +10 -0
  63. package/src/core/dream/index.ts +10 -52
  64. package/src/core/embed/static.ts +5 -1
  65. package/src/core/encode/INTERFACE-GAPS.md +2 -1
  66. package/src/core/encode/NOTES.md +12 -0
  67. package/src/core/encode/chunk.ts +6 -30
  68. package/src/core/encode/index.ts +0 -1
  69. package/src/core/encode/types.ts +1 -13
  70. package/src/core/handoff/last-here.ts +18 -2
  71. package/src/core/physics/CONTRACT.md +6 -0
  72. package/src/core/physics/NOTES.md +33 -2
  73. package/src/core/physics/index.ts +22 -7
  74. package/src/core/prospective/CONTRACT.md +3 -1
  75. package/src/core/prospective/NOTES.md +15 -0
  76. package/src/core/recall/time-ask.ts +154 -19
  77. package/src/core/self/CONTRACT.md +23 -3
  78. package/src/core/self/NOTES.md +64 -0
  79. package/src/core/self/behind.ts +6 -3
  80. package/src/core/self/briefing.ts +272 -11
  81. package/src/core/self/index.ts +50 -4
  82. package/src/core/sleep/NOTES.md +32 -0
  83. package/src/core/store/NOTES.md +16 -0
  84. package/src/core/time.ts +15 -0
@@ -59,8 +59,9 @@ What this module still owes, or asks of others (2026-09-26).
59
59
  (confidential memories counted), or leaves it off for a guest's — its call.
60
60
  *(CLOSED 2026-09-27, then moot; noted 2026-10-09: `DashboardSource` gained `dreams`
61
61
  and the Tonight line read the gate's preview (#263, `8032668`), and the next day Home
62
- round 4 took the Tonight box out (#273, `2cc96b0`). `DashboardSource.dreams` is still
63
- wired, but nothing in the dashboard calls `previewAsk` today.)*
62
+ round 4 took the Tonight box out (#273, `2cc96b0`). With no caller left outside its
63
+ own tests, `previewAsk` and `DashboardSource.dreams` were removed on 2026-10-09
64
+ (NOTES). A dashboard that wants the gate again asks for it anew.)*
64
65
 
65
66
  9. **Trait nudges have no reader in the core (2026-09-27), on purpose.** The dashboard's
66
67
  Self tab is to draw each axis as a firmness-weighted balance from `Store#traitsAll()`
@@ -546,3 +546,13 @@ anything" stands alone there.
546
546
  the final message, and the finish call is writing.
547
547
 
548
548
  Untested against a model: whether this is enough. Doctor's line is the measure.
549
+
550
+ ## 2026-10-09 — `previewAsk` removed
551
+
552
+ `Dreams.previewAsk` (and its `DreamPreview` type) was made for the dashboard's Tonight box
553
+ (2026-09-27, #262/#263); Home round 4 took the box out the next day (#273), and since then
554
+ only its own tests called it. It is gone, with `DashboardSource.dreams`, the one wire that
555
+ carried it to the dashboard, and `test/dream-preview.test.ts`. The gate is unchanged:
556
+ `status`, `askLine` and `offer` ask it as before, and the private `gate` keeps its stance
557
+ arguments. The entries above that name `previewAsk` (2026-09-27, and the guest-bundle notes
558
+ of 2026-10-02) are history.
@@ -570,24 +570,6 @@ export interface DreamStatus {
570
570
  readonly reflectOnly: DreamRow | null;
571
571
  }
572
572
 
573
- /**
574
- * THE ASK, PREVIEWED (`Dreams.previewAsk`): what the day's gate would answer a
575
- * live session right now, read without claiming the day. Never "observer".
576
- */
577
- export interface DreamPreview {
578
- /** The gate would raise the ask now (`askLine` would claim the day and return a line). */
579
- readonly wouldAsk: boolean;
580
- /** The gate's own reason (`DreamStatus.reason`), never "observer". */
581
- readonly reason: Exclude<DreamStatus["reason"], "observer">;
582
- /**
583
- * THE QUEUE's length: showable memories shown to no dream that stands, born
584
- * within `QUEUE_DAYS` — the count the gate compares with `MIN_NEW`. Not
585
- * capped at what one night takes (2026-09-28): what does not fit tonight
586
- * waits. Counted for every reason, also when the gate stops before counting.
587
- */
588
- readonly newSince: number;
589
- }
590
-
591
573
  /**
592
574
  * HOW THE SESSION SAYS THE DAY'S LINE (2026-10-01, lane 8 — the 09-30 plan's
593
575
  * build 4): once, in its first reply, as one plain sentence. The terminal line
@@ -928,33 +910,9 @@ export class Dreams {
928
910
  }
929
911
 
930
912
  /**
931
- * THE LINE, PREVIEWED (2026-09-27, for the dashboard's Tonight box): would the
932
- * gate raise the line now, why, and how many memories are new since the last
933
- * dream. The SAME gate `status` and `askLine` run, asked as a live session
934
- * would ask it — so it answers under observer, where `status` says
935
- * "observer". It claims nothing, records no event, writes nothing.
936
- *
937
- * WHOSE GATE. Confidential memories count toward "new" only in the owner's
938
- * own session. A live session previews its own gate, whatever it asks for.
939
- * An observer is never the owner's session (the facade forces `owner` off),
940
- * so by default it previews a guest's gate; `owner: true` previews the
941
- * owner's — his hooks run `owner: true` (the install writes it). Only a
942
- * count comes back, never an id or a word.
943
- */
944
- previewAsk(opts: { at?: string; owner?: boolean } = {}): DreamPreview {
945
- const at = opts.at ?? this.ctx.today();
946
- const owner = this.ctx.observer ? (opts.owner ?? this.ctx.owner) : this.ctx.owner;
947
- const s = this.gate(at, false, owner);
948
- if (s.reason === "observer") throw new Error("unreachable: the preview asks as a live session");
949
- // The gate stops before counting when it already knows the answer; the
950
- // preview counts anyway (it is not on the per-prompt path).
951
- const counted = s.reason === "due" || s.reason === "too-little-new";
952
- return { wouldAsk: s.due, reason: s.reason, newSince: counted ? s.newSince : this.queue({ owner, skip: (d) => this.passedOver(d, at) }).ids.length };
953
- }
954
-
955
- /**
956
- * THE GATE ITSELF — `status` asks it in this module's stance, `previewAsk` as
957
- * a live session. Reads only.
913
+ * THE GATE ITSELF — `status` asks it in this module's stance. Reads only.
914
+ * (`previewAsk`, which asked it as a live session for the dashboard's
915
+ * Tonight box, was removed 2026-10-09 with no caller left: NOTES.)
958
916
  */
959
917
  private gate(at: string, observer: boolean, owner: boolean, enough?: number): DreamStatus {
960
918
  const setting = this.setting();
@@ -996,8 +954,8 @@ export class Dreams {
996
954
  // what arrived since the last dream began — what a night could not take
997
955
  // waits, and counts here.
998
956
  // THE PER-PROMPT PATH COUNTS ONLY AS FAR AS IT NEEDS (review of build B):
999
- // `status` stops at `MIN_NEW` (and says the count is a floor); the
1000
- // preview and the line count the whole queue.
957
+ // `status` stops at `MIN_NEW` (and says the count is a floor); the line
958
+ // counts the whole queue.
1001
959
  const q = this.queue({ owner, skip: (d) => this.passedOver(d, at), ...(enough === undefined ? {} : { enough }) });
1002
960
  const newSince = q.ids.length;
1003
961
  // A RUN LEFT BEHIND is due whatever the count: its dream is half-done, and
@@ -1111,8 +1069,8 @@ export class Dreams {
1111
1069
  /**
1112
1070
  * A dream the gate passes over: begun, left behind, and about to be resumed
1113
1071
  * or closed by the next `begin` — what it was shown is its own again, so it
1114
- * does not take memories out of the queue. The gate, the preview and
1115
- * `begin` count the same queue.
1072
+ * does not take memories out of the queue. The gate and `begin` count the
1073
+ * same queue.
1116
1074
  */
1117
1075
  private passedOver(d: DreamRow, at: string): boolean {
1118
1076
  return d.state === "begun" && this.abandoned(d) && (this.resumable(d, at) || this.store.dreamChanges(d.id).length === 0);
@@ -2117,7 +2075,7 @@ export class Dreams {
2117
2075
  return this.showableAs(row, this.bundleOwner);
2118
2076
  }
2119
2077
 
2120
- /** `showable`, for a session whose owner stance is `owner` (the preview's). */
2078
+ /** `showable`, for a session whose owner stance is `owner` (the gate's). */
2121
2079
  private showableAs(row: MemoryRow, owner: boolean): boolean {
2122
2080
  if (row.archived === 1 || row.superseded_by !== null) return false;
2123
2081
  if (row.type !== "memory") return false;
@@ -2133,8 +2091,8 @@ export class Dreams {
2133
2091
  * dreams' own `shown`, no state of its own. `skip` passes over a dream (the
2134
2092
  * one being resumed; one the next `begin` will resume or close). One bounded
2135
2093
  * read (`store.newMemoryIds`, which applies the column gates), then the
2136
- * deny-list and confidentiality (`owner`: this session's stance unless the
2137
- * preview names another). Newest first; the caller ranks.
2094
+ * deny-list and confidentiality (`owner`: the stance the caller reads in).
2095
+ * Newest first; the caller ranks.
2138
2096
  */
2139
2097
  private queue(opts: { owner: boolean; skip?: (d: DreamRow) => boolean; enough?: number; madeBy?: number }): QueueRead {
2140
2098
  const T = DREAM_TUNABLES;
@@ -419,11 +419,15 @@ export function decodeF16(halves: Uint16Array): Float32Array {
419
419
  * the caller names it.
420
420
  */
421
421
  export function resolveStaticWeights(
422
- opts: { dir?: string; env?: Record<string, string | undefined> } = {},
422
+ opts: { dir?: string; env?: Record<string, string | undefined>; packageDir?: string } = {},
423
423
  ): { dir: string; source: "option" | "env" | "package" } | null {
424
424
  if (opts.dir !== undefined && opts.dir.length > 0) return { dir: opts.dir, source: "option" };
425
425
  const fromEnv = (opts.env ?? process.env)[STATIC_WEIGHTS_ENV];
426
426
  if (fromEnv !== undefined && fromEnv.trim().length > 0) return { dir: fromEnv.trim(), source: "env" };
427
+ // The package's directory when the caller already knows it — the single
428
+ // compiled binary, which carries the package's files but no `node_modules`
429
+ // for `require.resolve` to search (adapters/runtime.ts#bundledModelDir).
430
+ if (opts.packageDir !== undefined && opts.packageDir.length > 0) return { dir: opts.packageDir, source: "package" };
427
431
  try {
428
432
  const require = createRequire(import.meta.url);
429
433
  return { dir: dirname(require.resolve(`${STATIC_WEIGHTS_PACKAGE}/package.json`)), source: "package" };
@@ -33,7 +33,8 @@ mentions, and warmth updates from a chunk whose proposals were all refused.
33
33
  A per-proposal gate cannot express it. Either:
34
34
 
35
35
  - **preferred** — `remember/` calls `encodeChunk()` once per chunk and honors
36
- `result.effects` / `result.predictionChecks` (both empty when `fullyGated`); or
36
+ `result.effects` / `result.predictionChecks` (both empty when `fullyGated`;
37
+ `predictionChecks` was removed 2026-10-09, never fed — NOTES); or
37
38
  - `remember/` keeps `GateFn` for the per-proposal battery **and** takes on the
38
39
  all-rejected rule itself, in which case that rule needs its own test on
39
40
  `remember/`'s side and the scar is now guarded in two places.
@@ -229,3 +229,15 @@ window naming what breaks on each side. Two carry a **standing warning**:
229
229
  `WORD_CHAR` class the whole-word matcher uses. It is a prefilter's index and never a match:
230
230
  `schemas/aliases.ts#AliasIndex.scanner` tries only the terms whose first word is among
231
231
  them and confirms each with the one rule, so a second definition of a word cannot drift in.
232
+
233
+ ## 2026-10-09 — `PredictionCheck` removed
234
+
235
+ `ChunkInput.predictionChecks`, `EncodeResult.predictionChecks`, the `prediction.check`
236
+ `DurableEffect` and the `droppedPredictionChecks` count on `encode.fullyGated` are gone. No
237
+ caller ever fed the field: `encodeChunk` is reached only from the fallback sweep
238
+ (`bridge.ts#gateSweepChunk`), whose intake has no `checks` (replay INTERFACE-GAPS §1a), and
239
+ nothing applied the effect. A channel nobody writes is not a guarantee, only code to keep in step. Scar §7b
240
+ stands by construction now: a fully gated chunk returns no effects, and there is no second
241
+ list to leak through. The surprise-in-time idea (a memory checking what a schema predicted)
242
+ can revive it from git history (`git log -S predictionChecks`) once something produces the
243
+ checks.
@@ -7,13 +7,14 @@
7
7
  * and a rejected input moves zero durable state, ASSERTED PER STATE KIND.
8
8
  *
9
9
  * **A fully-gated chunk moves NO durable state — not strength, not `uses`, not a
10
- * revision, not an entity mention, and not a prediction check.** That last one is
11
- * the rider, and it is the whole reason the rule is stated at the chunk level
12
- * rather than the proposal level: in v1, once gradient reinforcement went live,
10
+ * revision, not an entity mention.** The rule is stated at the chunk level rather
11
+ * than the proposal level because of v1: once gradient reinforcement went live,
13
12
  * prediction checks were found to bypass the gate, so *a chunk the gates had
14
13
  * rejected could still reinforce schema elements* as an element-level side effect
15
14
  * (scar §7b). Ruled strict: "the lost reinforcement signal is affordable; the leak
16
- * in the non-ablatable wall is not."
15
+ * in the non-ablatable wall is not." (This module carried a `predictionChecks`
16
+ * channel, dropped when fully gated, until 2026-10-09; nothing ever fed it, so it
17
+ * was removed — encode NOTES.)
17
18
  *
18
19
  * Deliberately scoped to ALL-REJECTED. A chunk with one survivor was gated in
19
20
  * part, not refused (§3 G2) — and then only the survivor's effects exist.
@@ -36,7 +37,6 @@ import type {
36
37
  DurableEffect,
37
38
  EncodeEvent,
38
39
  GatedProposal,
39
- PredictionCheck,
40
40
  Proposal,
41
41
  RefusedProposal,
42
42
  } from "./types.js";
@@ -53,8 +53,6 @@ export interface ChunkInput {
53
53
  chunkVector?: readonly number[] | null;
54
54
  /** The lived day (active-day clock, scar E8). Recorded, never derived here. */
55
55
  day: number;
56
- /** Checks the author made against shown schemas. Dropped when fully gated. */
57
- predictionChecks?: readonly PredictionCheck[];
58
56
  /**
59
57
  * Observer stance (docs/observer-mode.md, scar E7). An instrument leaves the
60
58
  * store as it found it: encode still computes — a read-only instrument may
@@ -79,8 +77,6 @@ export interface EncodeResult {
79
77
  /** EMPTY when `fullyGated` (or under observer). The complete list of ways this
80
78
  * chunk may move durable state — there is no second channel. */
81
79
  effects: DurableEffect[];
82
- /** EMPTY when `fullyGated`: the element-level side channel, closed (scar §7b). */
83
- predictionChecks: PredictionCheck[];
84
80
  preselection: Preselection;
85
81
  novelty: NoveltyResult;
86
82
  channels: ChannelRecord[];
@@ -134,7 +130,6 @@ export function encodeChunk(input: ChunkInput, opts: EncodeOptions = {}): Encode
134
130
 
135
131
  // ── the effects — and the two ways there are none ─────────────────────────
136
132
  let effects: DurableEffect[] = [];
137
- let predictionChecks: PredictionCheck[] = [];
138
133
 
139
134
  if (fullyGated) {
140
135
  events.push({
@@ -143,7 +138,6 @@ export function encodeChunk(input: ChunkInput, opts: EncodeOptions = {}): Encode
143
138
  data: {
144
139
  proposals: input.proposals.length,
145
140
  refused: refused.length,
146
- droppedPredictionChecks: input.predictionChecks?.length ?? 0,
147
141
  },
148
142
  });
149
143
  } else if (observer) {
@@ -153,10 +147,7 @@ export function encodeChunk(input: ChunkInput, opts: EncodeOptions = {}): Encode
153
147
  data: { accepted: accepted.length, suppressedEffects: true },
154
148
  });
155
149
  } else {
156
- effects = buildEffects(accepted, preselection, schemas, input.predictionChecks ?? []);
157
- // A prediction check survives only when it names a schema the author was
158
- // actually SHOWN — the author cannot check a prediction it never saw.
159
- predictionChecks = (input.predictionChecks ?? []).filter((c) => shownIds.has(c.schemaId));
150
+ effects = buildEffects(accepted, preselection, schemas);
160
151
  }
161
152
 
162
153
  events.push({
@@ -182,7 +173,6 @@ export function encodeChunk(input: ChunkInput, opts: EncodeOptions = {}): Encode
182
173
  refused,
183
174
  fullyGated,
184
175
  effects,
185
- predictionChecks,
186
176
  preselection,
187
177
  novelty,
188
178
  channels,
@@ -200,11 +190,8 @@ function buildEffects(
200
190
  accepted: readonly AcceptedProposal[],
201
191
  preselection: Preselection,
202
192
  schemas: readonly SchemaSlice[],
203
- checks: readonly PredictionCheck[],
204
193
  ): DurableEffect[] {
205
194
  const effects: DurableEffect[] = [];
206
- const shown = new Set(preselection.shown.map((s) => s.id));
207
- const acceptedRefs = new Set(accepted.map((a) => a.ref));
208
195
  const byId = new Map(schemas.map((s) => [s.id, s]));
209
196
 
210
197
  for (const a of accepted) {
@@ -245,17 +232,6 @@ function buildEffects(
245
232
  effects.push({ effect: "revision.challenge", targetId: a.updates, ref: a.ref });
246
233
  }
247
234
  }
248
-
249
- for (const c of checks) {
250
- if (!shown.has(c.schemaId)) continue;
251
- if (c.ref !== null && !acceptedRefs.has(c.ref)) continue;
252
- effects.push({
253
- effect: "prediction.check",
254
- schemaId: c.schemaId,
255
- ref: c.ref ?? "",
256
- outcome: c.outcome,
257
- });
258
- }
259
235
  return effects;
260
236
  }
261
237
 
@@ -55,7 +55,6 @@ export type {
55
55
  GateStatus,
56
56
  GatedProposal,
57
57
  PrecisionGateRecord,
58
- PredictionCheck,
59
58
  Proposal,
60
59
  RefusalReason,
61
60
  RefusedProposal,
@@ -250,19 +250,7 @@ export type DurableEffect =
250
250
  | { effect: "entity.mention"; schemaId: string; ref: string }
251
251
  /** `targetId` is the DECLARATION as written — encode resolves nothing. Its
252
252
  * applier is `core/revision.ts`, one apply per effect (see `chunk.ts`). */
253
- | { effect: "revision.challenge"; targetId: string; ref: string }
254
- | { effect: "prediction.check"; schemaId: string; ref: string; outcome: string };
255
-
256
- /**
257
- * A prediction check the author made against a shown schema. Carried through only
258
- * when the chunk was not fully gated — the exact leak scar §7(b) records.
259
- */
260
- export interface PredictionCheck {
261
- schemaId: string;
262
- /** The proposal that made the check; null for a chunk-level check. */
263
- ref: string | null;
264
- outcome: "confirmed" | "contradicted" | "unmentioned";
265
- }
253
+ | { effect: "revision.challenge"; targetId: string; ref: string };
266
254
 
267
255
  // ---------------------------------------------------------------------------
268
256
  // Events — content-by-reference, always (§5 G10)
@@ -397,9 +397,9 @@ export function chaptersOn(store: Store, date: string, opts: { fromDay?: number
397
397
  * would not. No model run: titles and ids only. Null when that day has no
398
398
  * chapter.
399
399
  */
400
- export function yesterdayLine(day: readonly ChaptersOnDate[], date: string): string | null {
400
+ export function yesterdayLine(day: readonly ChaptersOnDate[], date: string, titles = YESTERDAY_SHOWN): string | null {
401
401
  if (day.length === 0) return null;
402
- const shown = day.slice(0, YESTERDAY_SHOWN).map((c) => {
402
+ const shown = day.slice(0, Math.max(1, titles)).map((c) => {
403
403
  const n = c.chapters > 1 ? `, ${String(c.chapters)} chapters` : "";
404
404
  return c.title === null ? `${c.id}${n === "" ? "" : ` (${n.slice(2)})`}` : `"${excerpt(c.title, YESTERDAY_TITLE_BYTES)}" (${c.id}${n})`;
405
405
  });
@@ -407,6 +407,22 @@ export function yesterdayLine(day: readonly ChaptersOnDate[], date: string): str
407
407
  return flatten(`Yesterday, ${date.slice(5)}: ${shown.join("; ")}${rest > 0 ? `; and ${String(rest)} more` : ""}.`);
408
408
  }
409
409
 
410
+ /**
411
+ * THE SAME LINE, SHORTER (review of #350, 2026-10-09): one title fewer at a
412
+ * time, down to one, the rest by count — widest first, and none when the line
413
+ * already names one. The wake steps down these only to make room for "Still
414
+ * open"'s first item beside a long self page (`self/briefing.ts#keepFirstOpen`);
415
+ * the count is honest because it is counted here, where the chapters are.
416
+ */
417
+ export function yesterdayShorter(day: readonly ChaptersOnDate[], date: string): string[] {
418
+ const out: string[] = [];
419
+ for (let n = Math.min(YESTERDAY_SHOWN, day.length) - 1; n >= 1; n--) {
420
+ const line = yesterdayLine(day, date, n);
421
+ if (line !== null) out.push(line);
422
+ }
423
+ return out;
424
+ }
425
+
410
426
  /**
411
427
  * A DIRECTORY AS THE LINE SAYS IT: the home directory as `~`, read off the
412
428
  * path's shape (`/Users/<name>`, `/home/<name>`) so this module needs no
@@ -335,6 +335,12 @@ weekly or monthly repeat; a yearly one is used once a year, and no single use ou
335
335
  strength read as before. The caller supplies it (`sleep/prune.ts`, from the row's meta).
336
336
  It is an exemption from the floor, so the verdict names it only where the first three
337
337
  conditions hold (review of #341); a repeat above the floor is refused `above-floor` alone.
338
+ `protected` is named on the same terms (2026-10-09): it is the owner's exemption from the
339
+ floor, so a protected memory the arithmetic is still keeping is refused by the arithmetic
340
+ alone. So is `in-live-revision-chain` (review of #343): the chain holds back a row the floor
341
+ would otherwise have let go, and a row it holds above the floor is refused by the arithmetic
342
+ alone. None of the three changes an outcome — where the floor holds, the verdict is already
343
+ a refusal.
338
344
 
339
345
  A prune is recorded — counts, kind, dates, never a body and never a content hash (scar
340
346
  §2.20) — and is the only physics-driven removal. Everything else merely fades: a
@@ -488,8 +488,9 @@ the predicate `recurringMemories` uses). Nothing else moves here: decay, band an
488
488
  are unchanged, so the memories view still shows a repeat as fading between its dates.
489
489
  (Prospective, in the review of #341, stopped refusing a live repeat `faded`, so a QUIET
490
490
  yearly that faded by its next date is still cued on it — prospective NOTES §16.) The
491
- entity-card fade (`schemas/`) and the memories view's `letGoDay` never pass it, so the
492
- view's "fading" and let-go day for a repeat are what the floor alone would do.
491
+ entity-card fade (`schemas/`) never passes it. The memories view's `letGoDay` did not
492
+ either, so the view called a faded repeat "fading" and gave it a let-go day the prune
493
+ would refuse; it passes it now (2026-10-09, below), and the view shows the repeat instead.
493
494
  `fired.ts` counts it with `protected` and `in-live-revision-chain` as a real refusal —
494
495
  and so `pruneVerdict` names it only where the floor would otherwise have let the memory
495
496
  go (review of #341). It is an exemption from the floor, not a standing rule: named on
@@ -501,3 +502,33 @@ says the reply used it; and `creditReturn` refuses `not-referenced`, so a schedu
501
502
  no return and a daily `self` reminder cannot walk the slow core lane on the calendar
502
503
  alone. The rep arm still climbs where the kind has one (`uses` +0.25 a day: a daily
503
504
  `fact` sits at the 0.5 cap after about 17 days) — rehearsal working, not a side effect.
505
+
506
+ ## 2026-10-09 — `protected` is named on the same terms (follow-up to the review of #341)
507
+
508
+ The review of #341 made `recurring` an exemption FROM THE FLOOR: named only where the
509
+ three floor conditions would have let the memory go. `protected` is the same kind of
510
+ gate — the owner's "never forget this", not a reason the memory is still strong — and
511
+ was still named on every protected row every night. The self page is born protected
512
+ (`self/page.ts`), so every store with a page carried a `protected` refusal per cycle,
513
+ and `fired.ts` counts `protected` as a real refusal: the owner's store, under three
514
+ weeks old, read "memory.pruned BLOCKED: 10 refusals, protected ×8" when nothing there
515
+ could have sat out the 90-day dwell. Now `pruneVerdict` names `protected` only where
516
+ `floorLetsGo`. Outcomes are unchanged — where the floor holds, `blockedBy` already has an
517
+ arithmetic reason — and so is the entity-card fade's verdict (`schemas/` filters the same
518
+ list; a card above the floor is held by `above-floor`). Measured through the hooks
519
+ (`test/recurring-reinforce.test.ts`): a protected memory and the self page over seven
520
+ nights count no `protected`, and the fired view's prune row is not BLOCKED.
521
+
522
+ `in-live-revision-chain` followed in the review of #343, on the same terms. A superseded
523
+ row is archived by `supersede`, so the prune never reaches it; what the gate holds on a
524
+ live row is challenge pressure standing against it (`pressureAt > 0`) or a version that
525
+ still points at a successor within H lived days — and either one was counted on every
526
+ night it lasted, however strong the row. Now all three named rules count only where they
527
+ are what kept the memory. Measured through the hooks (`test/recurring-reinforce.test.ts`):
528
+ a row under pressure, still in its live chain each night, counts no
529
+ `in-live-revision-chain` over seven nights, and the fired view's prune row is not BLOCKED.
530
+
531
+ The memories view's `letGoDay` passes the row's recurrence (`store#recurrenceOfRow`) as
532
+ `ctx.recurring`, so the dashboard asks physics the exact question the prune asks: a
533
+ faded repeat is not "fading", has no let-go day, and its row and card say how often it
534
+ comes round instead.
@@ -1575,8 +1575,9 @@ export interface PruneRecord {
1575
1575
  export interface PruneVerdict {
1576
1576
  prune: boolean;
1577
1577
  reason: PruneReason;
1578
- /** Every failing gate, not just the first — all six are named; `recurring`
1579
- * only where the floor alone would have let the memory go. */
1578
+ /** Every failing gate, not just the first — all six are named; the three
1579
+ * named rules (`protected`, `in-live-revision-chain`, `recurring`) only
1580
+ * where the floor alone would have let the memory go. */
1580
1581
  blockedBy: PruneReason[];
1581
1582
  strength: number;
1582
1583
  band: Band;
@@ -1595,9 +1596,12 @@ export interface PruneVerdict {
1595
1596
  * as a use (`Counterpart#creditOccurrence`), which carries a daily, weekly or
1596
1597
  * monthly repeat; a yearly one is used once a year, and no single use outlasts
1597
1598
  * 365 lived days at an ordinary salience. So a live repeat is refused here by
1598
- * name, as `protected` is — but only where the floor would otherwise have let
1599
- * it go, since it is an exemption from the floor and not a standing rule (review
1600
- * of #341). Only the prune: it still fades, its band and strength read as
1599
+ * name, as `protected` is — and, like `protected`, only where the floor would
1600
+ * otherwise have let it go, since both are exemptions from the floor and not
1601
+ * standing rules (review of #341; `protected` on the same terms, 2026-10-09,
1602
+ * and `in-live-revision-chain` too, review of #343). No outcome turns on it:
1603
+ * where the floor holds, the verdict is already a refusal.
1604
+ * Only the prune: it still fades, its band and strength read as
1601
1605
  * before. Prospective does not refuse a live repeat `faded` (review of #341,
1602
1606
  * `prospective/derive.ts`), so each occurrence is still delivered.
1603
1607
  */
@@ -1617,8 +1621,19 @@ export function pruneVerdict(
1617
1621
  // The three floor conditions above are arithmetic ("not yet"); the rest are
1618
1622
  // named rules.
1619
1623
  const floorLetsGo = blockedBy.length === 0;
1620
- if (m.protected) blockedBy.push("protected");
1621
- if (ctx.inLiveRevisionChain) blockedBy.push("in-live-revision-chain");
1624
+ // The owner's "never forget this" is an exemption FROM THE FLOOR too, named
1625
+ // on the same terms as `recurring` below (2026-10-09): a protected memory
1626
+ // above the floor is held by arithmetic alone. Named on every protected row
1627
+ // every night — the self page is born protected — it read as a refusal in
1628
+ // the fired view's prune row on a store too young for anything to reach the
1629
+ // floor. Outcomes are unchanged: where the floor holds, `blockedBy` is
1630
+ // already non-empty.
1631
+ if (m.protected && floorLetsGo) blockedBy.push("protected");
1632
+ // A live revision chain holds back a row the floor would otherwise have let
1633
+ // go — and is named on the same terms (review of #343): a row under
1634
+ // challenge pressure, or one whose version still names a successor within H
1635
+ // lived days, was counted on every night it stayed so, however strong it was.
1636
+ if (ctx.inLiveRevisionChain && floorLetsGo) blockedBy.push("in-live-revision-chain");
1622
1637
  // An exemption FROM THE FLOOR, so named only where the floor would have let
1623
1638
  // the memory go (review of #341): a repeat well above it is held by
1624
1639
  // `above-floor` and nothing else, and naming `recurring` on every live repeat
@@ -35,7 +35,9 @@ clothes. **Hold debts, lose deadlines.**
35
35
  is everything above, unchanged. A plain item told today is not also offered as a quiet
36
36
  cue that day (`told-plainly-today`), and once its LAST beat is told (the day; a month's
37
37
  or range's last day) it leaves the wake's horizon lane for the rest of its grace
38
- (2026-09-29): it was said, and "Arriving:" would say it again as still to come. It
38
+ (2026-09-29): it was said, and "Arriving:" would say it again as still to come. The
39
+ telling marks the wake behind (`told`, 2026-10-09), so a wake composed before it is
40
+ re-rendered at the next turn-end rather than the next day. It
39
41
  still arrives as a cue, so recall still finds it.
40
42
  - **A date can repeat, by the owner's design (2026-10-09, a working default, held
41
43
  lightly).** A dated memory may carry `recurring: daily | weekly | monthly | yearly`,
@@ -482,3 +482,18 @@ credit for it is refused `already-credited-today` (physics' one credit a lived d
482
482
  day counts at 0.25 instead of 1, with no return. Only a repeat, only on the day its
483
483
  occurrence is first delivered, and only when it was loud; a temporal cue alone is
484
484
  footnoted and earns no boundary credit anyway.
485
+
486
+ ## 17. The grace days, said in the past tense; a told reminder leaves the wake at once (2026-10-09)
487
+
488
+ The owner read an Arriving line due 10-08 on 10-09. By design: a one-off stays in the
489
+ horizon lane through `GRACE_DAYS`, and the wake composed at the 10-08 evening boundary is
490
+ read the next morning. What was wrong was the tense — `(due 2026-10-08)` under
491
+ "Arriving:" reads as still to come. `self/` now says `(was due …)` for a date behind the
492
+ day the wake was composed for, and the delivery says `(was due yesterday, …)` the morning
493
+ after (self NOTES, 2026-10-09). Nothing about which arrivals the lane selects changed:
494
+ whether the grace beat is warm or creepy is still open question 1.
495
+
496
+ One real bug beside it: a PLAIN reminder told on its day (2026-09-29, §14) left the lane
497
+ only at the next render, and a day's first render can come before the day's first
498
+ telling. `Counterpart#claimPlainReminder` now marks the wake behind (`told`) on a day's or
499
+ a last day's beat, so the next turn-end worker re-renders without it.