counterparts 0.3.35 → 0.3.37
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.
- package/CHANGELOG.md +105 -0
- package/package.json +1 -1
- package/src/adapters/claude-code/hooks.ts +2 -0
- package/src/adapters/claude-code/vectors.ts +4 -1
- package/src/adapters/cli/dream-core.ts +22 -6
- package/src/adapters/cli/removal.ts +20 -2
- package/src/adapters/dashboard/web/narrate.ts +11 -1
- package/src/adapters/dashboard/web/pages/self/sections/settling.js +1 -1
- package/src/adapters/dashboard/web/shared/memory-card-words.js +13 -0
- package/src/adapters/dashboard/web/views/memory.ts +7 -3
- package/src/adapters/dashboard/web/views/mind.ts +3 -3
- package/src/adapters/lifecycle.ts +31 -2
- package/src/adapters/mcp/server-words.ts +1 -1
- package/src/adapters/mcp/server.ts +115 -5
- package/src/adapters/mcp/tools.ts +3 -3
- package/src/adapters/mechanism-evidence.ts +3 -3
- package/src/core/associate/CONTRACT.md +24 -3
- package/src/core/associate/NOTES.md +21 -1
- package/src/core/associate/buffer.ts +41 -1
- package/src/core/associate/edges.ts +103 -0
- package/src/core/associate/index.ts +198 -4
- package/src/core/associate/pending.ts +60 -4
- package/src/core/associate/tunables.ts +40 -4
- package/src/core/counterpart-events.ts +36 -0
- package/src/core/counterpart-sweep.ts +8 -1
- package/src/core/counterpart-types.ts +2 -0
- package/src/core/counterpart.ts +580 -21
- package/src/core/dream/CONTRACT.md +9 -2
- package/src/core/dream/NOTES.md +21 -0
- package/src/core/dream/index.ts +4 -1
- package/src/core/dream/night-line.ts +279 -0
- package/src/core/dream/reflect.ts +38 -4
- package/src/core/handoff/CONTRACT.md +28 -2
- package/src/core/handoff/index.ts +16 -8
- package/src/core/handoff/last-here.ts +205 -20
- package/src/core/physics/CONTRACT.md +112 -16
- package/src/core/physics/NOTES.md +86 -0
- package/src/core/physics/index.ts +284 -11
- package/src/core/recall/CONTRACT.md +39 -4
- package/src/core/recall/NOTES.md +149 -0
- package/src/core/recall/activate.ts +87 -0
- package/src/core/recall/gate.ts +43 -3
- package/src/core/recall/index.ts +327 -12
- package/src/core/recall/session.ts +156 -7
- package/src/core/recall/standing.ts +82 -1
- package/src/core/recall/tunables.ts +155 -1
- package/src/core/retrieval.ts +9 -0
- package/src/core/schemas/CONTRACT.md +7 -2
- package/src/core/schemas/NOTES.md +21 -0
- package/src/core/schemas/index.ts +6 -1
- package/src/core/schemas/tunables.ts +11 -0
- package/src/core/schemas/types.ts +6 -0
- package/src/core/self/CONTRACT.md +14 -3
- package/src/core/self/INTERFACE-GAPS.md +29 -0
- package/src/core/self/NOTES.md +80 -0
- package/src/core/self/briefing-delivery.ts +253 -2
- package/src/core/self/briefing-room.ts +46 -4
- package/src/core/self/briefing.ts +232 -26
- package/src/core/self/identity.ts +0 -17
- package/src/core/self/index.ts +157 -20
- package/src/core/self/tunables.ts +40 -3
- package/src/core/self/writer.ts +1 -1
- package/src/core/sleep/CONTRACT.md +34 -4
- package/src/core/sleep/NOTES.md +37 -0
- package/src/core/sleep/consolidate.ts +334 -47
- package/src/core/sleep/index.ts +5 -0
- package/src/core/sleep/tunables.ts +6 -5
- package/src/core/store/NOTES.md +10 -0
- package/src/core/store/index.ts +65 -1
- package/src/core/store/operational.ts +39 -3
- package/src/core/store/owner-op-seam.ts +12 -0
- package/src/core/store/reads-memories.ts +4 -0
- package/src/core/store/wave2.ts +104 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,110 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.37 — 2026-10-25
|
|
4
|
+
|
|
5
|
+
The wake says what the night did: a "Last night:" line under Yesterday, or, before the day's own nightly run, "The night of Oct 24: …" naming the latest night that finished. "Still open" counts what it leaves out calmly and points at `recall "still open"`, which lists every open item, and a terminal left open for hours reads "quiet since …" instead of "(live)". The Yesterday line can now open with day's end's own summary of yesterday, which in 0.3.36 never showed (a chapter's summary recorded no folder), also when yesterday's work spanned several folders. Ambient recall looks up memories by the meaning of what you just typed, not the exchange before it. **Privacy fixes:** a folder you have turned off no longer shows its chapter summaries ("Might be relevant") or its chapter titles (the Yesterday line) in another folder's session start, whichever way the wake arrives: built at session start, handed over as the last turn-end left it, or read back for a lost session. No store-format change (store v15, cache v7), no wiring change: `counterparts connect` is not needed after upgrading. Going back to 0.3.36 needs no store restore: `counterparts disconnect`, 0.3.36's install, then `counterparts connect`. Restart the dashboard and every Claude Code session afterwards so the long-running memory server and dashboard load the new version.
|
|
6
|
+
|
|
7
|
+
- **Recall's meaning lookup is about what you just asked.** Each turn now looks up memories by the meaning of
|
|
8
|
+
its own prompt, not the exchange before it, so a change of subject is followed at once rather than a turn
|
|
9
|
+
later. A store too large to look up in line on every turn still uses the previous exchange, as before.
|
|
10
|
+
Asking `recall` directly is unchanged. To go back: `recall.SEMANTIC_THIS_TURN` false.
|
|
11
|
+
- **Yesterday's line can open with day's end's summary again.** A chapter's summary memory was written with no
|
|
12
|
+
folder, so the privacy check behind "Yesterday, in day's end's words" refused every day with a chapter in it and
|
|
13
|
+
the summary never showed. A chapter's summary now records the folder its chapter was written in, and summaries
|
|
14
|
+
written before are read as written in their chapter's folder. Nothing in the store changes; the privacy check is
|
|
15
|
+
as strict as before.
|
|
16
|
+
- **The wake says what last night did.** A session start's wake has a "Last night:" line
|
|
17
|
+
under the Yesterday line: what the dream and the reflection did, by id and in a few
|
|
18
|
+
words ("dream drm_… made 11 links, 1 fold and 1 feeling; reflection rfl_… rewrote the
|
|
19
|
+
page"), or "a quiet night", or that the nightly run is under way; before the day's run it
|
|
20
|
+
names the latest night that finished (below). A store that has never had a night shows no line.
|
|
21
|
+
- **"Still open" counts the rest calmly.** The line under the open items reads "(96 more
|
|
22
|
+
open, kept quietly; recall "still open" lists them)" instead of a count of how many
|
|
23
|
+
were untouched for two weeks and five bare ids.
|
|
24
|
+
- **A terminal left open is quiet, not live.** "Today, elsewhere" (and "Here, also open")
|
|
25
|
+
says "open since 10-24 16:49, quiet since 07:12" for a session with no turn for two
|
|
26
|
+
hours, instead of "(live)".
|
|
27
|
+
- **A handoff's staleness reads in two parts.** "(1 day old, with a newer chapter here
|
|
28
|
+
since; release 0.3.34 then, 0.3.35 now)" where it said "1 day old; since then: a newer
|
|
29
|
+
chapter here; written on 0.3.34, 0.3.35 now".
|
|
30
|
+
- **Each turn's recall record says what kept memories from showing** (internal): near misses of the bar, habituation, full tiers, the byte budget and duplicates are counted beside the echo and project skips, along with whether a person started the turn. What shows is unchanged.
|
|
31
|
+
- **Yesterday's line can tell the whole day when you work in several folders.** Day's end's summary of
|
|
32
|
+
yesterday may now mention work from your other folders, the way "Today, elsewhere" already names their work.
|
|
33
|
+
Until now one cited piece of work from another folder kept the summary out, so for anyone who works in more
|
|
34
|
+
than one folder it almost never showed. A folder you have turned off or paused still keeps it out: if
|
|
35
|
+
yesterday touched one, the wake lists yesterday's chapters instead, as before.
|
|
36
|
+
- **A folder you have turned off no longer shows its chapter summaries under "Might be relevant"** in another
|
|
37
|
+
folder's session start. They were listed there before, whatever the folder's setting.
|
|
38
|
+
- **Recall can list what's still open.** `recall` with the handle "still open" lists every
|
|
39
|
+
open item the wake's "Still open" carries, in the wake's order, with ids, titles and how
|
|
40
|
+
long since each was touched, twenty to a page. Asking "what's still open?" or "open
|
|
41
|
+
threads" in facts mode gets the same list. The wake's count under "Still open" now points
|
|
42
|
+
at it: "(94 more open, kept quietly; recall "still open" lists them)".
|
|
43
|
+
- **The first wake of the day says what the last night did.** Before the day's nightly run,
|
|
44
|
+
the night line describes the latest night that finished, dated by the day it read ("The
|
|
45
|
+
night of Oct 24: dream drm_… made 11 links, 1 feeling and 1 fold; reflection rfl_…
|
|
46
|
+
rewrote the page."), instead of "Last night: none yet today". A night more than three
|
|
47
|
+
days back says so: "The night of Oct 19 was the last to run: …".
|
|
48
|
+
- **A folder you have turned off keeps its chapter summaries out of "Might be relevant" in other folders, also
|
|
49
|
+
when a session start hands over the wake as the last turn-end wrote it** (for example, in a second app with a
|
|
50
|
+
different size limit).
|
|
51
|
+
- **That wake's "Yesterday" line is the one this folder's own wake would carry**, so a turned-off folder's chapter
|
|
52
|
+
titles are no longer in it. The wake the crash fallback reads a lost session with leaves chapter summaries out
|
|
53
|
+
too.
|
|
54
|
+
|
|
55
|
+
## 0.3.36 — 2026-10-25
|
|
56
|
+
|
|
57
|
+
A session opened mid-day now sees what this folder did earlier today (a "Today so far here" line), and the Yesterday line opens with day's end's own summary of yesterday when everything it rests on may be shown in this folder; on a tight day, "Still open" keeps its items before "Today so far" keeps its summaries. When you write the newer state of a recent memory without linking it, a turn that brings back both shows the newer one first and labels the older one "may be out of date". A word that brought a memory back, which the session then used, is wired to it, so next time the word alone can bring it back. The core is decided every night instead of every third (still at most three a night), and a belief you repeat awake counts as support for the one that already says it. A new way of deciding the core, by how much real use has backed a memory, runs **in shadow only**: it records each night what it would have let in or kept out, and nothing changes yet. **This release changes the store's format (v14 to v15, one new table), so after installing, quit the dashboard and every open Claude Code session, then start them again**: one left running from before the update keeps the old code against the upgraded store and stops working on it until it is restarted. The first open saves a copy of your store before upgrading it. **0.3.35 and older refuse the upgraded store**, so going back to 0.3.35 is `counterparts rollback` first, while 0.3.36 is still installed (it puts that pre-upgrade copy back; anything remembered since is set aside, not deleted), then 0.3.35's install and `counterparts connect` as it prints. Cache v7 unchanged; no wiring change, so `counterparts connect` is not needed after upgrading.
|
|
58
|
+
|
|
59
|
+
- **The core is decided every night, not every third night.** A memory that has earned its
|
|
60
|
+
place in who I am joins at the next sleep instead of waiting up to two more days. Still at
|
|
61
|
+
most three a night.
|
|
62
|
+
- **Practising a cue makes its answer come back faster.** When a word in what you typed brings a
|
|
63
|
+
memory back and the session then uses it (opens it, quotes it, draws on it, or rates it 2–3),
|
|
64
|
+
that word is wired to the memory, and next time the word alone can bring it back. A memory
|
|
65
|
+
rated 0 for a word drops for that word only. Only words some memory already holds are ever
|
|
66
|
+
kept, and a turn's words leave with the conversation after 14 days. Store format 15 (one new
|
|
67
|
+
table); the upgrade copies the store first, and an older build refuses the upgraded store.
|
|
68
|
+
Switch: `physics.CUE_LEARNING`.
|
|
69
|
+
- **A session opened mid-day sees what this folder did earlier today.** A "Today so far here"
|
|
70
|
+
line under the Yesterday line names today's earlier chapters in this folder, each with its
|
|
71
|
+
time, title, id and the first sentence of its summary. It gives up room before anything
|
|
72
|
+
else under the framing.
|
|
73
|
+
- **Yesterday reads as day's end told it.** When day's end left a summary of yesterday, the
|
|
74
|
+
Yesterday line opens with it, word for word, and lists the chapters after it. It does this
|
|
75
|
+
only when everything the summary rests on may be shown in this folder, and otherwise lists
|
|
76
|
+
the chapters as before.
|
|
77
|
+
- **A belief you repeat awake now counts for the one that already says it.** When a session
|
|
78
|
+
writes a belief that an existing belief already says, it is still turned away with that
|
|
79
|
+
belief's id, and the memory now counts as support for it, once per session, instead of
|
|
80
|
+
waiting for the night's reflection.
|
|
81
|
+
- **A change you didn't link wins a close race right away.** When you write something that reads
|
|
82
|
+
as the newer state of a recent memory without saying so ("the car is a Rivian now"), the two
|
|
83
|
+
are marked as a pair for the night to confirm. Until then, a turn that brings back both now
|
|
84
|
+
shows the newer one first; the older one still shows, labelled "may be out of date", whenever
|
|
85
|
+
there is room, and on its own it shows as before. Nothing is changed in the store. Switch:
|
|
86
|
+
`recall.UNSETTLED_COMPETES`.
|
|
87
|
+
- **The nightly reflection is offered its unmarked memories again, and says so.** On a busy night
|
|
88
|
+
the room was full before the offer of memories nobody had marked was fitted, so from 10-10 the
|
|
89
|
+
reflection was offered none and its record said nothing. Now it is offered up to 24 a night
|
|
90
|
+
whatever the room, and every reflection records how many it was offered and how many it marked,
|
|
91
|
+
0 included.
|
|
92
|
+
- **On a tight day, "Still open" keeps its items before "Today so far" keeps its summaries.**
|
|
93
|
+
The chapter summaries in the "Today so far here" line step down to titles before any "Still
|
|
94
|
+
open" item is dropped, since a summary can still be opened by its chapter's id. The titles
|
|
95
|
+
keep their place.
|
|
96
|
+
- **A memory joins the core when life has backed it enough, by one measure instead of two
|
|
97
|
+
lanes.** Real uses of a memory about me or us (opened, quoted, drawn on, rated useful)
|
|
98
|
+
from separate moments and lived days add up, the way a belief's support does; feeling
|
|
99
|
+
makes each count more, so a strongly felt memory that comes back once, a couple of days
|
|
100
|
+
or more after it was made, is in, and an ordinary one needs to come back on another day.
|
|
101
|
+
The day after a memory is made counts as the same occasion as its making. Being shown counts nothing, and a
|
|
102
|
+
reflection citing a memory counts only once a later use echoes it, never on its own.
|
|
103
|
+
Each new core memory's record lists what backed it. **For now it runs in shadow:** the two
|
|
104
|
+
lanes still decide what becomes core, and each night this measure records, beside them, which
|
|
105
|
+
memories it would have let in or kept out, so a week of real nights can decide.
|
|
106
|
+
Switch: `physics.CORE_DOOR_SUPPORT` (`"shadow"` by default, `"on"`, `"off"`).
|
|
107
|
+
|
|
3
108
|
## 0.3.35 — 2026-10-24
|
|
4
109
|
|
|
5
110
|
The morning reflection reads a shorter list of the memories that may become core: at most 30 a night, the 20 strongest and 10 taking turns through the rest, with the others counted in one line (on a copy of the author's store, 132 candidates → 30 shown and "+102 more", the reflection's reading 85k characters in 4 parts → 74k in 3; a tail of about 100 comes round in about 10 nights). Day's end's known misread from 0.3.34 is fixed: a night that tells the day and then writes the page reads as a page revised. A memory written in one session now counts as used the first time another session draws on it, the same day. No store-format change (store v14, cache v7), no wiring change: `counterparts connect` is not needed after upgrading. Restart the dashboard and every Claude Code session afterwards so the long-running memory server and dashboard load the new version.
|
package/package.json
CHANGED
|
@@ -1058,6 +1058,8 @@ export class ClaudeCodeAdapter extends Lifecycle {
|
|
|
1058
1058
|
// Said outright this turn, so not ALSO handed over as a quiet cue.
|
|
1059
1059
|
...(waiting.length === 0 ? {} : { withhold: new Set(waiting.map((r) => r.memoryId)) }),
|
|
1060
1060
|
...(byHost ? { noCues: true } : {}),
|
|
1061
|
+
// Who started the turn, for the row only (N1): the reading above.
|
|
1062
|
+
startedBy: !isInteractive(input) ? "unattended" : byHost ? "host" : "person",
|
|
1061
1063
|
});
|
|
1062
1064
|
const decision = result.decision;
|
|
1063
1065
|
// "SINCE YOU STARTED" (2026-10-11): what changed in other directories
|
|
@@ -75,7 +75,10 @@ export type Emit = (name: string, data: Record<string, string | number | boolean
|
|
|
75
75
|
* prompt keeps at least ~70% of the joined text at typical lengths and the whole
|
|
76
76
|
* cue stays inside one embedding call. Not measured against surfacing quality
|
|
77
77
|
* yet — the day-1 watch is whether `semantic: "lagged"` turns into surfaced
|
|
78
|
-
* items that were not already lexically cued.
|
|
78
|
+
* items that were not already lexically cued. Since 2026-10-25
|
|
79
|
+
* (`recall.SEMANTIC_THIS_TURN`, on) the next turn ranks its own text instead
|
|
80
|
+
* and reads this row only past the in-line count guard; the row is still
|
|
81
|
+
* written every turn, beside the embed backfill this worker also runs.
|
|
79
82
|
*/
|
|
80
83
|
export const LAG_PROMPT_BYTES = 2000;
|
|
81
84
|
export const LAG_REPLY_BYTES = 800;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type { Counterpart } from "../../core/counterpart.js";
|
|
12
12
|
import { dreamSkippedOf, nightPartsWords, nightRunWords, nightTokensWords } from "../../core/dream/index.js";
|
|
13
13
|
import type { DreamingSetting, NightRun } from "../../core/dream/index.js";
|
|
14
|
+
import { coreDoorMode } from "../../core/physics/index.js";
|
|
14
15
|
import { acceptsReflectedFeeling, reconsiderWords } from "../../core/sleep/index.js";
|
|
15
16
|
import { coreSupport } from "../../core/self/measures.js";
|
|
16
17
|
import { daySummaries } from "../../core/self/writer.js";
|
|
@@ -254,6 +255,8 @@ export function dreamShowLines(counterpart: Counterpart, id: string): string[] |
|
|
|
254
255
|
/** `counterparts core --list`: the core with lanes, then nominations and demotions. */
|
|
255
256
|
export function coreListLines(counterpart: Counterpart): string[] {
|
|
256
257
|
const { core, nominated, demoted, reconsidering } = counterpart.coreList();
|
|
258
|
+
// The support door decides only at "on" (2026-10-24, E2); "shadow" and "off" are the two lanes.
|
|
259
|
+
const supportDoor = coreDoorMode() === "on";
|
|
257
260
|
const out = [
|
|
258
261
|
core.length === 0
|
|
259
262
|
? "The core is empty: nothing has become part of who I am yet."
|
|
@@ -279,12 +282,25 @@ export function coreListLines(counterpart: Counterpart): string[] {
|
|
|
279
282
|
"",
|
|
280
283
|
"Only a memory about me or about us becomes core — what it is about is marked by meaning, by the",
|
|
281
284
|
"writer or by a reflection (owner, work and world are not candidates, nor a fact, a skill or a plan).",
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
...(supportDoor
|
|
286
|
+
? [
|
|
287
|
+
// The support door (2026-10-24, E2).
|
|
288
|
+
"Then: life has to back it enough — real uses of it (or its earlier and later states) from separate",
|
|
289
|
+
"moments and lived days, feeling making each count more; a glimpse counts nothing, and a reflection",
|
|
290
|
+
"that cites it counts a little until a later use echoes it, never alone. At most a few a night.",
|
|
291
|
+
]
|
|
292
|
+
: [
|
|
293
|
+
"Then: strongly felt and back after a gap (fast lane), or it and its earlier and later states kept",
|
|
294
|
+
"coming back — on several days, in several sessions, over a week or more inside a month (slow lane).",
|
|
295
|
+
"A reflection that cites a memory counts as it coming back. At most a few a night.",
|
|
296
|
+
]),
|
|
297
|
+
supportDoor
|
|
298
|
+
? acceptsReflectedFeeling(counterpart.store)
|
|
299
|
+
? "Open to later feelings: a feeling a reflection records later makes its memory's uses count more, and a reflection may re-label either way (counterparts core --reflected-feeling off to close it)."
|
|
300
|
+
: "Closed to later feelings: only a feeling felt at the time makes a memory's uses count more, and a reflection may only move a memory toward work or world (counterparts core --reflected-feeling on to open it)."
|
|
301
|
+
: acceptsReflectedFeeling(counterpart.store)
|
|
302
|
+
? "Open to reflection alone: a feeling a reflection records later and a reflection citing a memory count toward the fast lane, and a reflection may re-label either way (counterparts core --reflected-feeling off to close it)."
|
|
303
|
+
: "Closed to reflection alone: the fast lane needs a feeling felt at the time and an ordinary use after a gap, and a reflection may only move a memory toward work or world (counterparts core --reflected-feeling on to open it).",
|
|
288
304
|
);
|
|
289
305
|
if (nominated.length > 0) {
|
|
290
306
|
out.push("", "Nominated by a dream (a lane still has to promote it):");
|
|
@@ -66,7 +66,7 @@ import { strikeSpans } from "../../core/remember/owner-strike-seam.js";
|
|
|
66
66
|
// directory belongs to `self/`, and the invariant it keeps ("a file exists
|
|
67
67
|
// exactly when a live episode row does") is what makes the chase provable.
|
|
68
68
|
import { journalFilesFor, syncJournalCopy } from "../../core/self/journal-file.js";
|
|
69
|
-
import { paths, rowTombstoned } from "../../core/store/index.js";
|
|
69
|
+
import { indexTerms, paths, rowTombstoned } from "../../core/store/index.js";
|
|
70
70
|
import { isLocked, openDb } from "../../core/store/db.js";
|
|
71
71
|
import type {
|
|
72
72
|
OwnerRemovalOutcome,
|
|
@@ -905,8 +905,12 @@ export function ownerRemoval(
|
|
|
905
905
|
// there is nothing left to match on. It never enters the plan, the report or
|
|
906
906
|
// any record — the seam receives a FUNCTION, not a string (§16 G15).
|
|
907
907
|
let doomedBody = "";
|
|
908
|
+
/** Its title, for the cue words' chase after the cache rebuild (R3). Never recorded. */
|
|
909
|
+
let doomedTitle = "";
|
|
908
910
|
try {
|
|
909
|
-
|
|
911
|
+
const doomed = store.readProse(request.targetId);
|
|
912
|
+
doomedBody = doomed.body.trim();
|
|
913
|
+
doomedTitle = doomed.title ?? "";
|
|
910
914
|
} catch {
|
|
911
915
|
/* already gone; the hashes are the chase then, or nothing is */
|
|
912
916
|
}
|
|
@@ -1039,6 +1043,20 @@ export function ownerRemoval(
|
|
|
1039
1043
|
try {
|
|
1040
1044
|
store.rebuildCache();
|
|
1041
1045
|
chased.push("cache");
|
|
1046
|
+
// ITS WORDS AS LEARNED CUES (review of #613, R3 cue learning): a word of
|
|
1047
|
+
// this memory's that no memory holds any more must not live on as a cue
|
|
1048
|
+
// to another memory (`cue_edges` keeps index terms, and only ones the
|
|
1049
|
+
// index held: kept true after the removal). Asked after the rebuild,
|
|
1050
|
+
// which is what says the index no longer holds them.
|
|
1051
|
+
const terms = indexTerms(`${doomedTitle}\n${doomedBody}`);
|
|
1052
|
+
if (terms.length > 0) {
|
|
1053
|
+
try {
|
|
1054
|
+
const gone = store.sweepCueEdges({ staleOnOrBefore: -1, terms }, () => false);
|
|
1055
|
+
if (gone > 0) chased.push(`operational.cue_edges(${gone} more: words no memory holds now)`);
|
|
1056
|
+
} catch {
|
|
1057
|
+
unchased.push("operational.cue_edges (words no memory holds now may still be wired to other memories)");
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1042
1060
|
} catch {
|
|
1043
1061
|
unchased.push("cache");
|
|
1044
1062
|
}
|
|
@@ -115,6 +115,13 @@ function n(t: Told, key: string): number | null {
|
|
|
115
115
|
return typeof v === "number" && Number.isFinite(v) ? v : null;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
/** A support crossing's lived days (`payload.support.days`, 2026-10-24), else `fallback`. */
|
|
119
|
+
function supportDays(t: Told, fallback: number): number {
|
|
120
|
+
const sup = t.p["support"];
|
|
121
|
+
const v = typeof sup === "object" && sup !== null ? (sup as Record<string, unknown>)["days"] : undefined;
|
|
122
|
+
return typeof v === "number" && Number.isFinite(v) ? v : fallback;
|
|
123
|
+
}
|
|
124
|
+
|
|
118
125
|
function s(t: Told, key: string): string | null {
|
|
119
126
|
const v = t.p[key];
|
|
120
127
|
return typeof v === "string" && v.length > 0 ? v : null;
|
|
@@ -187,7 +194,10 @@ export const NARRATORS = {
|
|
|
187
194
|
? `${subject(t)} became core — it was strongly felt, and it came back after a gap.`
|
|
188
195
|
: lane === "slow"
|
|
189
196
|
? `${subject(t)} became core — it kept coming back, on ${days} separate days over weeks.`
|
|
190
|
-
:
|
|
197
|
+
: lane === "support"
|
|
198
|
+
? // The support door (2026-10-24, E2): one arc, its lived days on the record.
|
|
199
|
+
`${subject(t)} became core — it kept coming back, from separate moments, on ${supportDays(t, days)} lived ${supportDays(t, days) === 1 ? "day" : "days"}.`
|
|
200
|
+
: `${subject(t)} crossed into identity — it had been in real use on ${days} separate days.`,
|
|
191
201
|
);
|
|
192
202
|
},
|
|
193
203
|
"band.demoted": (t) =>
|
|
@@ -150,7 +150,7 @@ export function ruleWords(s) {
|
|
|
150
150
|
const r = s.rule;
|
|
151
151
|
const foot = ["Only a memory about me or about us joins the core, by one of two lanes: strongly felt (" + n2(r.needFeeling) +
|
|
152
152
|
" or more) and come back at least once, " + r.needGap + " or more days after it was made; or keep coming back — it, or the memories that are its earlier and later states — on " + r.days +
|
|
153
|
-
" different days" + (r.sessions ? ", in " + r.sessions + " sessions," : "") + " over " + r.span + (r.window ? ", within the last " + r.window : "") + ", once it has been used itself. That is checked every " + r.everyDays + " days of use, at most " + r.cap + " a night. " +
|
|
153
|
+
" different days" + (r.sessions ? ", in " + r.sessions + " sessions," : "") + " over " + r.span + (r.window ? ", within the last " + r.window : "") + ", once it has been used itself. That is checked " + (r.everyDays === 1 ? "every day of use" : "every " + r.everyDays + " days of use") + ", at most " + r.cap + " a night. " +
|
|
154
154
|
(r.quietDays ? "A core memory that stops coming back for " + r.quietDays + " days is reconsidered, never dropped without a decision. " : "") +
|
|
155
155
|
// The map's own words (round 4 of the map, 2026-09-28: three named rings,
|
|
156
156
|
// no legend) — this sentence described the legend before it.
|
|
@@ -18,6 +18,19 @@ export function coreRoadLine(p, promoted) {
|
|
|
18
18
|
if (promoted || !p) return "";
|
|
19
19
|
if (p.eligible && p.lane === "fast") return "Felt strongly and come back to — it has met the core's bar, and a sleep can make it core.";
|
|
20
20
|
if (p.eligible && p.lane === "slow") return "It has come back on enough separate days — it has met the core's bar, and a sleep can make it core.";
|
|
21
|
+
// The support door (2026-10-24, E2): one arc, so one sentence.
|
|
22
|
+
if (p.eligible && p.lane === "support") return "Life has backed it enough, from separate moments — it has met the core's bar, and a sleep can make it core.";
|
|
23
|
+
// With the support door on, the lanes' day counts are not its road: how far along the one arc it is.
|
|
24
|
+
if (p.support) {
|
|
25
|
+
if (p.blocked === "demoted-by-owner") return "You took it out of the core, so it stays out.";
|
|
26
|
+
if (!p.byUse) return "";
|
|
27
|
+
if (p.oneReturn) {
|
|
28
|
+
return "Felt strongly, so one real use " + p.needGap + (p.needGap === 1 ? " day of use" : " days of use") +
|
|
29
|
+
" or more after it was made makes it core.";
|
|
30
|
+
}
|
|
31
|
+
const pct = Math.max(0, Math.min(99, Math.round((100 * p.support.level) / p.support.need)));
|
|
32
|
+
return "Real uses from separate moments, on separate days, make it core — it is " + pct + "% of the way.";
|
|
33
|
+
}
|
|
21
34
|
if (p.oneReturn) {
|
|
22
35
|
return "Felt strongly, so one real return makes it core — coming back to it " + p.needGap +
|
|
23
36
|
(p.needGap === 1 ? " day of use" : " days of use") + " or more after it was made.";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* the four rules in that file's header apply to every line below.
|
|
6
6
|
*/
|
|
7
7
|
import { TUNABLES, band, emotionalIntensity, promotionEligibility, rep, sal, strength } from "../../../../core/physics/index.js";
|
|
8
|
-
import type { PromotionVerdict } from "../../../../core/physics/index.js";
|
|
8
|
+
import type { CoreLane, PromotionVerdict } from "../../../../core/physics/index.js";
|
|
9
9
|
import { DREAM_MERGE_REASON } from "../../../../core/dream/index.js";
|
|
10
10
|
import { feelingsLine } from "../../../feelings-line.js";
|
|
11
11
|
import { coreContextFor, curveSinceDay, isJournal } from "../../../../core/sleep/index.js";
|
|
@@ -56,9 +56,11 @@ export interface CoreRoad {
|
|
|
56
56
|
readonly holdShort: boolean;
|
|
57
57
|
readonly oneReturn: boolean;
|
|
58
58
|
readonly needGap: number;
|
|
59
|
-
readonly lane:
|
|
59
|
+
readonly lane: CoreLane | null;
|
|
60
60
|
readonly eligible: boolean;
|
|
61
61
|
readonly blocked: "not-about-me" | "demoted-by-owner" | null;
|
|
62
|
+
/** The support door's level and line (2026-10-24, E2), only while `physics.CORE_DOOR_SUPPORT` is on. */
|
|
63
|
+
readonly support?: { readonly level: number; readonly need: number };
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
/**
|
|
@@ -82,10 +84,12 @@ export function coreRoad(verdict: PromotionVerdict): CoreRoad {
|
|
|
82
84
|
needSpan: verdict.slow.needSpan,
|
|
83
85
|
holdShort: verdict.slow.strength !== null && verdict.slow.strength < verdict.slow.needStrength,
|
|
84
86
|
oneReturn: onlyNoLane && !verdict.fast.met && verdict.fast.intensity >= verdict.fast.needIntensity,
|
|
85
|
-
|
|
87
|
+
// The support door's spacing from the making when it is on (E2 review), else the fast lane's gap.
|
|
88
|
+
needGap: verdict.support?.needGap ?? verdict.fast.needGap,
|
|
86
89
|
lane: verdict.lane,
|
|
87
90
|
eligible: verdict.eligible,
|
|
88
91
|
blocked,
|
|
92
|
+
...(verdict.support === undefined ? {} : { support: { level: verdict.support.level, need: verdict.support.needLevel } }),
|
|
89
93
|
};
|
|
90
94
|
}
|
|
91
95
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* the four rules in that file's header apply to every line below.
|
|
6
6
|
*/
|
|
7
7
|
import { TUNABLES as PHYSICS, promotionEligibility, sal } from "../../../../core/physics/index.js";
|
|
8
|
-
import type { PromotionVerdict } from "../../../../core/physics/index.js";
|
|
8
|
+
import type { CoreLane, PromotionVerdict } from "../../../../core/physics/index.js";
|
|
9
9
|
import {
|
|
10
10
|
FRAMING,
|
|
11
11
|
LEGACY_CONTEXT,
|
|
@@ -255,7 +255,7 @@ export interface Candidate {
|
|
|
255
255
|
readonly span: number;
|
|
256
256
|
readonly needSpan: number;
|
|
257
257
|
/** The lane that is met, when one is: the next consolidation crosses it (the nightly cap permitting). */
|
|
258
|
-
readonly lane:
|
|
258
|
+
readonly lane: CoreLane | null;
|
|
259
259
|
readonly eligible: boolean;
|
|
260
260
|
/**
|
|
261
261
|
* THE FAST LANE'S ROAD (round 3, S3): felt strongly enough, and nothing but
|
|
@@ -961,7 +961,7 @@ export interface CoreCandidate {
|
|
|
961
961
|
readonly days: number;
|
|
962
962
|
readonly span: number;
|
|
963
963
|
/** The lane that is met, when one is. */
|
|
964
|
-
readonly lane:
|
|
964
|
+
readonly lane: CoreLane | null;
|
|
965
965
|
readonly eligible: boolean;
|
|
966
966
|
/** The better of the two lanes' progress, 0..2. */
|
|
967
967
|
readonly closeness: number;
|
|
@@ -1170,7 +1170,16 @@ export class Lifecycle implements HostLifecycle {
|
|
|
1170
1170
|
recallTurn(
|
|
1171
1171
|
input: SessionInput,
|
|
1172
1172
|
text: string,
|
|
1173
|
-
opts: {
|
|
1173
|
+
opts: {
|
|
1174
|
+
budgetBytes?: number;
|
|
1175
|
+
withhold?: ReadonlySet<string>;
|
|
1176
|
+
noCues?: boolean;
|
|
1177
|
+
/** Who started this turn, as the host reads it (N1, 2026-10-25): `person`
|
|
1178
|
+
* (an attended session, a prompt no host frame opens), `host` (attended,
|
|
1179
|
+
* but a hand-back, a task notice or a peer's message started it) or
|
|
1180
|
+
* `unattended`. Recorded on the row only; absent where the host cannot say. */
|
|
1181
|
+
startedBy?: "person" | "host" | "unattended";
|
|
1182
|
+
} = {},
|
|
1174
1183
|
): ReturnType<Counterpart["recallForTurn"]> {
|
|
1175
1184
|
const result = this.counterpart.recallForTurn(
|
|
1176
1185
|
{
|
|
@@ -1220,7 +1229,11 @@ export class Lifecycle implements HostLifecycle {
|
|
|
1220
1229
|
// watch can read out of the store tomorrow. `semantic: "none"` on every
|
|
1221
1230
|
// real turn is exactly the finding this PR closes. Since 2026-10-19 a
|
|
1222
1231
|
// turn the lag never reached (first prompt, stale row) reads `in-line`
|
|
1223
|
-
// (or `in-line-skipped` past the vector-count guard)
|
|
1232
|
+
// (or `in-line-skipped` past the vector-count guard). Since 2026-10-25,
|
|
1233
|
+
// with `recall.SEMANTIC_THIS_TURN` on, every turn that can reads
|
|
1234
|
+
// `in-line`, and `lagged` means it could not (past the guard, with the
|
|
1235
|
+
// worker's fresh row as the fallback). The worker's own health is its
|
|
1236
|
+
// `adapter.semantic.lag` rows. With the switch off, `in-line` on a
|
|
1224
1237
|
// session's later turns is the lag falling behind, by name.
|
|
1225
1238
|
semantic: decision.semanticSource,
|
|
1226
1239
|
semanticFrom: decision.semanticFromTurn,
|
|
@@ -1232,6 +1245,22 @@ export class Lifecycle implements HostLifecycle {
|
|
|
1232
1245
|
echoSkipped: decision.echoSkipped,
|
|
1233
1246
|
projectSkipped: decision.projectSkipped,
|
|
1234
1247
|
crossProjectLifted: decision.crossProjectLifted,
|
|
1248
|
+
// WHAT STOPPED A MEMORY (N1, 2026-10-25, observation only): the decision
|
|
1249
|
+
// row's counts, flat, beside the skips above, so a week's read of the
|
|
1250
|
+
// turns a person started is one table (`startedBy`). The near miss's
|
|
1251
|
+
// margin is on the decision row (`nearMiss.margin`); `turn` joins the two.
|
|
1252
|
+
// Absent with `recall.STOP_COUNTS` off, as on the decision row.
|
|
1253
|
+
turn: decision.turn,
|
|
1254
|
+
...(decision.nearMiss === undefined
|
|
1255
|
+
? {}
|
|
1256
|
+
: {
|
|
1257
|
+
habituationCut: decision.habituationCut ?? 0,
|
|
1258
|
+
nearMissCount: decision.nearMiss.count,
|
|
1259
|
+
capped: decision.capped ?? 0,
|
|
1260
|
+
budgetTrimmed: decision.budgetTrimmed ?? 0,
|
|
1261
|
+
inhibited: decision.inhibited ?? 0,
|
|
1262
|
+
}),
|
|
1263
|
+
...(opts.startedBy === undefined ? {} : { startedBy: opts.startedBy }),
|
|
1235
1264
|
});
|
|
1236
1265
|
return result;
|
|
1237
1266
|
}
|
|
@@ -19,7 +19,7 @@ export const SERVER_NAME = "counterparts";
|
|
|
19
19
|
* host decides whether to trust what follows. Read from a constant rather than
|
|
20
20
|
* from disk so the server opens no file to answer its first message.
|
|
21
21
|
*/
|
|
22
|
-
export const SERVER_VERSION = "0.3.
|
|
22
|
+
export const SERVER_VERSION = "0.3.37";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* THE ONE LINE EVERY TOOL ANSWERS WITH when the store on disk is a schema AHEAD
|
|
@@ -169,7 +169,44 @@ import type { FitIndex, FitMechanism } from "../../core/fit/index.js";
|
|
|
169
169
|
|
|
170
170
|
/** Recall's keys a night run's short ids may stand in (2026-10-23). */
|
|
171
171
|
const RECALL_ID_KEYS: ReadonlySet<string> = new Set(["ids", "handle"]);
|
|
172
|
-
|
|
172
|
+
|
|
173
|
+
/** How many items the `still open` handle gives a page (2026-10-25). CAL. */
|
|
174
|
+
export const STILL_OPEN_PAGE = 20;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The facts questions that ask for the list itself (2026-10-25, the O1
|
|
178
|
+
* builder): on the owner's 10-25 snapshot these matched none of 156 open
|
|
179
|
+
* threads by content, so they are answered by the `still open` handle. Exact
|
|
180
|
+
* after case, punctuation and spacing are folded: a question about a thing
|
|
181
|
+
* ("is the seed order still open?") is a question, not this.
|
|
182
|
+
*/
|
|
183
|
+
const STILL_OPEN_QUESTIONS: ReadonlySet<string> = new Set([
|
|
184
|
+
"still open",
|
|
185
|
+
"whats still open",
|
|
186
|
+
"what is still open",
|
|
187
|
+
"what remains open",
|
|
188
|
+
"whats open",
|
|
189
|
+
"what is open",
|
|
190
|
+
"open threads",
|
|
191
|
+
"my open threads",
|
|
192
|
+
"the open threads",
|
|
193
|
+
"what are the open threads",
|
|
194
|
+
"what are my open threads",
|
|
195
|
+
"list open threads",
|
|
196
|
+
"list the open threads",
|
|
197
|
+
"which threads are open",
|
|
198
|
+
"which threads are still open",
|
|
199
|
+
"what threads are still open",
|
|
200
|
+
"what is still unresolved",
|
|
201
|
+
"whats still unresolved",
|
|
202
|
+
]);
|
|
203
|
+
|
|
204
|
+
/** True when a facts question asks for exactly the list of what is still open. */
|
|
205
|
+
export function asksStillOpen(question: string): boolean {
|
|
206
|
+
const folded = question.toLowerCase().replace(/[’']/g, "").replace(/[^a-z ]+/g, " ").replace(/\s+/g, " ").trim();
|
|
207
|
+
return STILL_OPEN_QUESTIONS.has(folded);
|
|
208
|
+
}
|
|
209
|
+
import { STILL_OPEN_HANDLE, WAKE_BUILD_KEY } from "../../core/self/index.js";
|
|
173
210
|
import type { PageWriterMode } from "../../core/self/index.js";
|
|
174
211
|
import { canonicalToolName, toolDefinitions, toolSpec } from "./tools.js";
|
|
175
212
|
import { writeUpDoor } from "./write-up.js";
|
|
@@ -2167,6 +2204,18 @@ export class McpServer {
|
|
|
2167
2204
|
if (typeof handle === "string" && handle.trim().toLowerCase() === LAST_EXCHANGE_HANDLE && args["question"] === undefined && args["ids"] === undefined) {
|
|
2168
2205
|
return this.lastExchangeTool();
|
|
2169
2206
|
}
|
|
2207
|
+
// WHAT'S STILL OPEN (2026-10-25): the list "Still open" carries, by the
|
|
2208
|
+
// handle, or by a facts question that asks for exactly that.
|
|
2209
|
+
const stillOpenAsked =
|
|
2210
|
+
(typeof handle === "string" && handle.trim().toLowerCase() === STILL_OPEN_HANDLE && args["question"] === undefined && args["ids"] === undefined) ||
|
|
2211
|
+
(handle === undefined && args["ids"] === undefined && args["mode"] === "facts" && typeof args["question"] === "string" && asksStillOpen(args["question"]));
|
|
2212
|
+
if (stillOpenAsked) {
|
|
2213
|
+
const page = args["page"];
|
|
2214
|
+
if (page !== undefined && (typeof page !== "number" || !Number.isInteger(page) || page < 1)) {
|
|
2215
|
+
return this.refuse("recall", "page-not-a-positive-integer", {});
|
|
2216
|
+
}
|
|
2217
|
+
return this.stillOpenTool(typeof page === "number" ? page : 1, handle === undefined);
|
|
2218
|
+
}
|
|
2170
2219
|
const question = args["question"];
|
|
2171
2220
|
const ids = args["ids"];
|
|
2172
2221
|
if (handle !== undefined && typeof handle !== "string") {
|
|
@@ -2323,6 +2372,58 @@ export class McpServer {
|
|
|
2323
2372
|
);
|
|
2324
2373
|
}
|
|
2325
2374
|
|
|
2375
|
+
/**
|
|
2376
|
+
* `recall` with the handle `still open` (2026-10-25, the O1 builder;
|
|
2377
|
+
* roadmap 10-25, lightly held): everything the wake's "Still open" carries
|
|
2378
|
+
* — the open threads the carry rule keeps and the core memories being
|
|
2379
|
+
* reconsidered, in the lane's order (`Counterpart#stillOpen`) — with ids,
|
|
2380
|
+
* titles and how long since each was touched, `STILL_OPEN_PAGE` to a page.
|
|
2381
|
+
* What the lane's tail counts, listed. Also reached by a facts question
|
|
2382
|
+
* that asks exactly that ("what's still open", `asksStillOpen`): measured
|
|
2383
|
+
* on the owner's 10-25 snapshot, those matched none of 156 open threads.
|
|
2384
|
+
*
|
|
2385
|
+
* Reads only, like `last exchange`: no recall row, no credit, no seen set,
|
|
2386
|
+
* no quotable record — a ring event alone. Being listed is not a touch
|
|
2387
|
+
* (`self/identity.ts#openCarry`), so asking cannot keep a thread carried.
|
|
2388
|
+
* Never reached under observer (G5): recall stands down first.
|
|
2389
|
+
*/
|
|
2390
|
+
private stillOpenTool(page: number, routed: boolean): ToolResult {
|
|
2391
|
+
const { items, notCarried } = this.counterpart.stillOpen();
|
|
2392
|
+
const pages = Math.max(1, Math.ceil(items.length / STILL_OPEN_PAGE));
|
|
2393
|
+
const at = Math.min(page, pages);
|
|
2394
|
+
const shown = items.slice((at - 1) * STILL_OPEN_PAGE, at * STILL_OPEN_PAGE);
|
|
2395
|
+
this.emit("mcp.recall.stillopen", undefined, { total: items.length, page: at, shown: shown.length, notCarried, routed });
|
|
2396
|
+
const touched = (n: number): string => (n === 0 ? "this lived day" : n === 1 ? "1 lived day ago" : `${String(n)} lived days ago`);
|
|
2397
|
+
const faded =
|
|
2398
|
+
notCarried === 0
|
|
2399
|
+
? ""
|
|
2400
|
+
: ` Not listed: ${String(notCarried)} open ${notCarried === 1 ? "thread" : "threads"} untouched for ${String(this.counterpart.self.tunables.OPEN_CARRY_DAYS)}+ lived days, no longer carried — not closed; a question about the thing itself finds one, and a touch carries it again.`;
|
|
2401
|
+
return this.result(
|
|
2402
|
+
{
|
|
2403
|
+
path: "handle",
|
|
2404
|
+
reason: "still-open",
|
|
2405
|
+
handle: STILL_OPEN_HANDLE,
|
|
2406
|
+
...(routed ? { routed: "a facts question asking what is still open is answered by this handle" } : {}),
|
|
2407
|
+
total: items.length,
|
|
2408
|
+
page: at,
|
|
2409
|
+
pages,
|
|
2410
|
+
...(notCarried === 0 ? {} : { notCarried }),
|
|
2411
|
+
items: shown.map((i) => ({
|
|
2412
|
+
id: i.id,
|
|
2413
|
+
title: i.title,
|
|
2414
|
+
touched: touched(i.livedDaysSinceTouched),
|
|
2415
|
+
...(i.reconsidering === true ? { reconsidering: "a core memory being reconsidered: keep or retire it" } : {}),
|
|
2416
|
+
...(i.date === undefined ? {} : { date: i.date }),
|
|
2417
|
+
})),
|
|
2418
|
+
note:
|
|
2419
|
+
(items.length === 0
|
|
2420
|
+
? "Nothing is still open."
|
|
2421
|
+
: `What "Still open" carries, in the wake's order: what is live first, newest touched first.${at < pages ? ` More on page ${String(at + 1)} (page: ${String(at + 1)}).` : ""} Recall an id to read it whole. A lived day is a day the memory was in use.`) + faded,
|
|
2422
|
+
},
|
|
2423
|
+
false,
|
|
2424
|
+
);
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2326
2427
|
/**
|
|
2327
2428
|
* A QUESTION, answered by its mode (Release B, 2026-10-03). Embedded in
|
|
2328
2429
|
* line first — the one deliberate path allowed to (the ruling of
|
|
@@ -2425,7 +2526,7 @@ export class McpServer {
|
|
|
2425
2526
|
});
|
|
2426
2527
|
this.noteRecall(row, 0, question, false, payload, ids, key);
|
|
2427
2528
|
this.markSeen(ids, key);
|
|
2428
|
-
this.noteAsked(ids, key);
|
|
2529
|
+
this.noteAsked(ids, key, question);
|
|
2429
2530
|
return this.result(payload, false);
|
|
2430
2531
|
}
|
|
2431
2532
|
|
|
@@ -2439,12 +2540,12 @@ export class McpServer {
|
|
|
2439
2540
|
* like the seen set (`seenKey`); nothing for a session nobody identified.
|
|
2440
2541
|
* Never throws.
|
|
2441
2542
|
*/
|
|
2442
|
-
private noteAsked(ids: readonly string[], key?: string): void {
|
|
2543
|
+
private noteAsked(ids: readonly string[], key?: string, question?: string): void {
|
|
2443
2544
|
if (ids.length === 0) return;
|
|
2444
2545
|
const session = key ?? this.seenKey();
|
|
2445
2546
|
if (session === UNBOUND_SESSION) return;
|
|
2446
2547
|
this.telemetry(() => {
|
|
2447
|
-
this.counterpart.noteAsked(session, ids);
|
|
2548
|
+
this.counterpart.noteAsked(session, ids, question === undefined ? {} : { question });
|
|
2448
2549
|
});
|
|
2449
2550
|
}
|
|
2450
2551
|
|
|
@@ -3368,7 +3469,16 @@ export class McpServer {
|
|
|
3368
3469
|
statement: a["statement"] as string,
|
|
3369
3470
|
...(a["about"] === "us" || a["about"] === "me" ? { about: a["about"] } : {}),
|
|
3370
3471
|
});
|
|
3371
|
-
return {
|
|
3472
|
+
return {
|
|
3473
|
+
belief: {
|
|
3474
|
+
stored: out.ok && out.reason === "born",
|
|
3475
|
+
reason: out.reason,
|
|
3476
|
+
...(out.id === null ? {} : { id: out.id }),
|
|
3477
|
+
...(out.note === undefined ? {} : { note: out.note }),
|
|
3478
|
+
// B1: a near-duplicate's filing outcome, beside the refusal.
|
|
3479
|
+
...(out.support === undefined ? {} : { support: out.support }),
|
|
3480
|
+
},
|
|
3481
|
+
};
|
|
3372
3482
|
}
|
|
3373
3483
|
|
|
3374
3484
|
/**
|
|
@@ -65,7 +65,7 @@ import { LAST_EXCHANGE_HANDLE } from "../../core/handoff/last-exchange.js";
|
|
|
65
65
|
import { RECALL_MAX_IDS } from "./deliberate.js";
|
|
66
66
|
import { FACTS_MEANING_CAP, FACTS_PAGE_SIZE, FACTS_TAIL_SIZE } from "./facts.js";
|
|
67
67
|
import { RECURRENCES } from "../../core/time.js";
|
|
68
|
-
import { PAGE_ROOM_BYTES } from "../../core/self/briefing.js";
|
|
68
|
+
import { PAGE_ROOM_BYTES, STILL_OPEN_HANDLE } from "../../core/self/briefing.js";
|
|
69
69
|
import { CLAIM_PREFIX_MIN_CHARS } from "../../core/self/page.js";
|
|
70
70
|
import { MEET_STEPS } from "../../core/onboarding.js";
|
|
71
71
|
|
|
@@ -905,11 +905,11 @@ const RECALL: ToolSpec = {
|
|
|
905
905
|
page: {
|
|
906
906
|
type: "integer",
|
|
907
907
|
minimum: 1,
|
|
908
|
-
description:
|
|
908
|
+
description: `With a question, or the handle "${STILL_OPEN_HANDLE}": which page of the answer (1 is the first). The answer says how many pages there are.`,
|
|
909
909
|
},
|
|
910
910
|
handle: {
|
|
911
911
|
type: "string",
|
|
912
|
-
description: `A memory id or exact title to read whole. Exact: never treated as a search term. Takes no mode. A dream's id (drm_…) or a reflection's (rfl_…) reads a short summary of that night, read-only. Or "${LAST_EXCHANGE_HANDLE}": the last thing said to another session in this folder (about the last day) and its last reply, read from what was captured, never stored.`,
|
|
912
|
+
description: `A memory id or exact title to read whole. Exact: never treated as a search term. Takes no mode. A dream's id (drm_…) or a reflection's (rfl_…) reads a short summary of that night, read-only. Or "${LAST_EXCHANGE_HANDLE}": the last thing said to another session in this folder (about the last day) and its last reply, read from what was captured, never stored. Or "${STILL_OPEN_HANDLE}": everything the wake's Still open carries, in its order, with ids and how long since each was touched — paged (see page).`,
|
|
913
913
|
},
|
|
914
914
|
ids: {
|
|
915
915
|
type: "array",
|