counterparts 0.3.28 → 0.3.30
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 +114 -0
- package/CONSTITUTION.md +7 -5
- package/docs/module-map.md +13 -6
- package/package.json +1 -1
- package/src/adapters/claude-code/CONTRACT.md +9 -3
- package/src/adapters/claude-code/NOTES.md +27 -0
- package/src/adapters/claude-code/bin/runner.ts +0 -1
- package/src/adapters/claude-code/child.ts +3 -2
- package/src/adapters/claude-code/doctor-self-page.ts +72 -1
- package/src/adapters/claude-code/doctor-upgrades.ts +50 -1
- package/src/adapters/claude-code/doctor.ts +16 -18
- package/src/adapters/claude-code/index.ts +3 -2
- package/src/adapters/claude-code/night-catch-up.ts +18 -19
- package/src/adapters/claude-code/night-run.ts +202 -73
- package/src/adapters/cli/CONTRACT.md +12 -13
- package/src/adapters/cli/NOTES.md +12 -0
- package/src/adapters/cli/catch-up.ts +10 -17
- package/src/adapters/cli/commands-note.ts +10 -7
- package/src/adapters/cli/commands-remove.ts +9 -22
- package/src/adapters/cli/commands.ts +1 -1
- package/src/adapters/cli/dream-core.ts +14 -7
- package/src/adapters/cli/export.ts +49 -215
- package/src/adapters/cli/install.ts +0 -1
- package/src/adapters/cli/mechanisms.ts +4 -0
- package/src/adapters/config.ts +5 -5
- package/src/adapters/dashboard/CONTRACT.md +2 -0
- package/src/adapters/dashboard/NOTES.md +58 -3
- package/src/adapters/dashboard/registries.ts +1 -1
- package/src/adapters/dashboard/web/README.md +2 -3
- package/src/adapters/dashboard/web/actions.ts +3 -0
- package/src/adapters/dashboard/web/mechanisms/picture.js +2 -3
- package/src/adapters/dashboard/web/narrate.ts +10 -15
- package/src/adapters/dashboard/web/pages/home/sections/today.js +1 -1
- package/src/adapters/dashboard/web/pages/memories/row.js +4 -4
- package/src/adapters/dashboard/web/pages/memories/sections/search.js +1 -1
- package/src/adapters/dashboard/web/pages/self/index.js +3 -1
- package/src/adapters/dashboard/web/pages/self/sections/dreams.js +2 -2
- package/src/adapters/dashboard/web/pages/self/sections/journal.js +1 -1
- package/src/adapters/dashboard/web/pages/self/sections/layers.js +160 -0
- package/src/adapters/dashboard/web/pages/self/sections/map.js +3 -3
- package/src/adapters/dashboard/web/pages/self/sections/settling.js +3 -3
- package/src/adapters/dashboard/web/pages/self/sections/traits.js +2 -2
- package/src/adapters/dashboard/web/pages/self/sections/wake.js +1 -1
- package/src/adapters/dashboard/web/pages/self/self.css +11 -1
- package/src/adapters/dashboard/web/reveal.ts +24 -85
- package/src/adapters/dashboard/web/shared/format.js +2 -3
- package/src/adapters/dashboard/web/shared/memory-card-words.js +2 -2
- package/src/adapters/dashboard/web/shared/memory-modal.js +8 -8
- package/src/adapters/dashboard/web/shared/widgets/rows.css +0 -1
- package/src/adapters/dashboard/web/views/dreams.ts +2 -6
- package/src/adapters/dashboard/web/views/mechanism-panel.ts +4 -5
- package/src/adapters/dashboard/web/views/mechanisms.ts +4 -0
- package/src/adapters/dashboard/web/views/memories.ts +9 -12
- package/src/adapters/dashboard/web/views/memory-words.ts +6 -4
- package/src/adapters/dashboard/web/views/memory.ts +17 -30
- package/src/adapters/dashboard/web/views/mind.ts +23 -24
- package/src/adapters/dashboard/web/views/overview.ts +3 -5
- package/src/adapters/dashboard/web/views/search.ts +5 -8
- package/src/adapters/dashboard/web/views/self-map.ts +2 -4
- package/src/adapters/dashboard/web/views/shared.ts +0 -3
- package/src/adapters/dashboard/web/views/today.ts +8 -13
- package/src/adapters/dashboard/web/views/traits.ts +8 -17
- package/src/adapters/dashboard/web/views.ts +2 -4
- package/src/adapters/expansions.ts +15 -14
- package/src/adapters/fired.ts +2 -16
- package/src/adapters/lifecycle.ts +3 -5
- package/src/adapters/log/CONTRACT.md +2 -0
- package/src/adapters/mcp/CONTRACT.md +19 -18
- package/src/adapters/mcp/INTERFACE-GAPS.md +7 -1
- package/src/adapters/mcp/NOTES.md +26 -0
- package/src/adapters/mcp/bin/serve.ts +11 -72
- package/src/adapters/mcp/deliberate.ts +8 -25
- package/src/adapters/mcp/facts.ts +4 -19
- package/src/adapters/mcp/index.ts +0 -8
- package/src/adapters/mcp/meaning.ts +7 -16
- package/src/adapters/mcp/nights.ts +10 -54
- package/src/adapters/mcp/server-args.ts +0 -1
- package/src/adapters/mcp/server-options.ts +0 -19
- package/src/adapters/mcp/server-self-tools.ts +15 -2
- package/src/adapters/mcp/server-session-end.ts +0 -1
- package/src/adapters/mcp/server-words.ts +1 -8
- package/src/adapters/mcp/server.ts +51 -100
- package/src/adapters/mcp/tools.ts +19 -12
- package/src/adapters/mechanism-evidence.ts +51 -7
- package/src/adapters/sidebar-status.ts +6 -6
- package/src/adapters/stance-env.ts +5 -28
- package/src/core/associate/CONTRACT.md +2 -0
- package/src/core/counterpart-deposit.ts +13 -29
- package/src/core/counterpart-events.ts +3 -2
- package/src/core/counterpart-sweep.ts +8 -11
- package/src/core/counterpart-types.ts +7 -25
- package/src/core/counterpart.ts +53 -79
- package/src/core/coverage/CONTRACT.md +2 -0
- package/src/core/dream/CONTRACT.md +38 -18
- package/src/core/dream/NOTES.md +61 -0
- package/src/core/dream/feeling-weeks.ts +2 -2
- package/src/core/dream/index.ts +18 -65
- package/src/core/dream/mind.ts +1 -3
- package/src/core/dream/reflect.ts +186 -206
- package/src/core/dream/slices.ts +4 -18
- package/src/core/dream/tunables.ts +0 -11
- package/src/core/dream/unmarked.ts +135 -0
- package/src/core/embed/CONTRACT.md +2 -0
- package/src/core/encode/CONTRACT.md +2 -0
- package/src/core/fit/CONTRACT.md +2 -0
- package/src/core/handoff/CONTRACT.md +13 -9
- package/src/core/handoff/NOTES.md +14 -0
- package/src/core/handoff/index.ts +1 -10
- package/src/core/handoff/last-here.ts +6 -16
- package/src/core/physics/CONTRACT.md +7 -1
- package/src/core/prospective/CONTRACT.md +2 -0
- package/src/core/recall/CONTRACT.md +12 -10
- package/src/core/recall/NOTES.md +15 -0
- package/src/core/recall/activate.ts +5 -25
- package/src/core/recall/feeling-ask.ts +0 -3
- package/src/core/recall/gate.ts +5 -18
- package/src/core/recall/index.ts +3 -19
- package/src/core/reconsolidation.ts +8 -10
- package/src/core/remember/CONTRACT.md +7 -4
- package/src/core/remember/NOTES.md +18 -0
- package/src/core/remember/tunables.ts +1 -1
- package/src/core/schemas/CONTRACT.md +11 -5
- package/src/core/seat.ts +93 -0
- package/src/core/self/CONTRACT.md +16 -10
- package/src/core/self/NOTES.md +79 -0
- package/src/core/self/briefing.ts +1 -1
- package/src/core/self/identity.ts +2 -3
- package/src/core/self/index.ts +72 -17
- package/src/core/self/measures.ts +208 -0
- package/src/core/self/page.ts +211 -0
- package/src/core/self/summaries.ts +1 -1
- package/src/core/self/tunables.ts +4 -1
- package/src/core/self/work.ts +2 -2
- package/src/core/self/writer.ts +14 -21
- package/src/core/sleep/CONTRACT.md +2 -0
- package/src/core/store/CONTRACT.md +10 -9
- package/src/core/store/NOTES.md +22 -0
- package/src/core/store/index.ts +59 -46
- package/src/core/store/marks.ts +0 -18
- package/src/core/store/operational.ts +12 -6
- package/src/core/store/reads-marks.ts +12 -12
- package/src/core/store/reads-memories.ts +9 -13
- package/src/core/store/shapes.ts +0 -5
- package/src/core/store/traits.ts +1 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,119 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.30 — 2026-10-21
|
|
4
|
+
|
|
5
|
+
Nothing is held back from your sessions any more. Confidential memories are gone: nothing in Counterparts could set that mark, so on most stores nothing changes on screen; a memory marked that way through the store directly now reads like any other everywhere, and doctor shows one amber line with how many remain only if your store had any. The split between your sessions and guest ones is gone too: any session, a Claude Desktop chat and the nightly run included, can close a thread or a reminder by its id from any folder (a protected memory still never closes), and every session gets its folder's "Last said here"; observer stays read-only. The nightly run no longer leaves a Claude Code transcript under `~/.claude/projects/`; transcripts from earlier nights are left to Claude Code's own cleanup, or you can delete the folder named after your memory store. The `owner` line in your configuration is now ignored and doctor names it under "Old settings" (you may delete it); `export --include-confidential`, the memory server's `--owner` and `COUNTERPARTS_OWNER` are accepted and ignored for this release. Code that embeds Counterparts loses the confidential fields and options listed below. No store-format change (store v13, cache v7) and no wiring change: nothing to run after upgrading from 0.3.29, and `counterparts connect` is not needed.
|
|
6
|
+
|
|
7
|
+
- **Confidential memories are gone: nothing is held back as confidential any more.** No
|
|
8
|
+
part of Counterparts could mark a memory confidential; only code calling the store
|
|
9
|
+
directly with a `confidential` meta key could. A memory marked that way is now recalled,
|
|
10
|
+
named, dreamed on, reflected on and written up like any other, in every session: the
|
|
11
|
+
owner's, a Claude Desktop chat, the night run and an observer. If your store had any,
|
|
12
|
+
they are counted once, at the first open after the upgrade, and `counterparts doctor`
|
|
13
|
+
shows one amber line with how many are still there (the ids are in `doctor --json`)
|
|
14
|
+
for as long as any remain, so you can remove any you don't want with
|
|
15
|
+
`counterparts remove <id>`. A store with none shows nothing.
|
|
16
|
+
- **A night may count a few more memories as new** on a store that had confidential
|
|
17
|
+
memories, since the dream's queue no longer leaves them out. The recall tool's
|
|
18
|
+
description no longer mentions confidentiality.
|
|
19
|
+
- **The dashboard, the sidebar and the console show every memory's words.** A memory
|
|
20
|
+
that carried the old confidential key reads like any other on every page (the card,
|
|
21
|
+
the list, search, Today, traits, the journal and the dreams), in the sidebar, in the
|
|
22
|
+
`remove` list and in `dream`, `night` and `core --list`, where the `[confidential]`
|
|
23
|
+
marker is gone.
|
|
24
|
+
- **`export --markdown` carries everything.** Every live memory, earlier wording,
|
|
25
|
+
dream and reflection is in the tree, and the manifest no longer has an "omitted"
|
|
26
|
+
line. `--include-confidential` is still accepted for one release, does nothing, and
|
|
27
|
+
says so in one line; it goes in the release after. Without `--markdown` it is still
|
|
28
|
+
refused by name, as before.
|
|
29
|
+
- **Doctor's mechanism census has one row fewer**: the "confidentiality" row is gone,
|
|
30
|
+
with the gate it counted.
|
|
31
|
+
- **Every session can close what it finds, from any folder.** A thread or a reminder
|
|
32
|
+
is closed by its id from whichever folder you are in, from any session: Claude Code,
|
|
33
|
+
a Claude Desktop chat, the nightly run's write-ups, and the reflection's `close`. A
|
|
34
|
+
protected memory is still never closed. Until now a session that was not "yours"
|
|
35
|
+
(a Desktop chat, the night run) could not close something written in another folder.
|
|
36
|
+
- **"Last said here" in every session.** Any session that opens in a folder gets the
|
|
37
|
+
wake's "Last said here" line and can recall "last exchange", a Desktop chat and the
|
|
38
|
+
night run included. Under observer it is still not given.
|
|
39
|
+
- **No more "owner".** `status` no longer reports `owner`, `ownerFrom` or `ownerMeans`;
|
|
40
|
+
doctor's Mode line just says "remembering" (or the observer line). `install` no
|
|
41
|
+
longer writes `"owner": true`; an existing configuration's `owner` is ignored and
|
|
42
|
+
named under doctor's "Old settings" (you may delete it). `COUNTERPARTS_OWNER` does
|
|
43
|
+
nothing now, and the memory server's `--owner` flag is accepted and ignored for one
|
|
44
|
+
release.
|
|
45
|
+
- **For code that embeds Counterparts: the confidential leftovers are gone from the
|
|
46
|
+
API.** `confidentialByMeta`, `isConfidential`, `StoredMemory.confidential`,
|
|
47
|
+
`TraitRead.confidential` / `withheld`, the `includeConfidential` option on the trait
|
|
48
|
+
reads and `{ confidential }` on `memoryCountsByScopeSince` / `planCandidates`, the
|
|
49
|
+
`confidential` member of `copiesOf` and `coreList()`, `MemoryRow.confidential` and
|
|
50
|
+
`RecallRow.confidential`, `WriterJournal.omitted`, the `confidential` member of the
|
|
51
|
+
page writer's `omit` predicate, and the verdict and refusal
|
|
52
|
+
names `confidential-withheld`, `handle-confidential-withheld`, `confidential` and
|
|
53
|
+
`other-directory` no longer exist; the dashboard's JSON rows no longer carry a
|
|
54
|
+
`confidential` field (nor the traits view a `withheld` one). Nothing changes on screen. `export --include-confidential` is
|
|
55
|
+
still accepted, and ignored, this release. With the yours/guest split, `OWNER_FALSE_NOTE` is
|
|
56
|
+
gone from `counterparts/mcp` (written at release from #568's diff).
|
|
57
|
+
- **The nightly run no longer leaves a Claude Code transcript behind.** Each night child
|
|
58
|
+
(the dream, the reflection, a write-up owed) used to be saved by Claude Code under
|
|
59
|
+
`~/.claude/projects/`, with the memories it read and the conversation it wrote up,
|
|
60
|
+
kept there until Claude Code's own cleanup (30 days by default) and out of reach of
|
|
61
|
+
Counterparts' own retention. It now runs with `--no-session-persistence`, so nothing is
|
|
62
|
+
saved there. Transcripts from earlier nights are not touched; Claude Code's cleanup
|
|
63
|
+
removes them in time, or you can delete the folder named after your memory store.
|
|
64
|
+
|
|
65
|
+
## 0.3.29 — 2026-10-21
|
|
66
|
+
|
|
67
|
+
Personal news now travels between your folders: each night the reflection looks at up to 24 memories nobody marked (it was 5), the personal-looking ones first, and marks the ones about you or the two of you so every folder's wake can show them, while work notes stay in the folder they came from; the morning share names what it re-marked and how to have one marked back, and nothing written in a folder you set off or paused is offered or carried out. In the plugin's sidebar the fox goes to work while Claude's turn runs and sits back down when it ends. The self page now keeps which memories each sentence rests on, doctor gains two reading-only lines ("Self page claims" and "Core"), and the dashboard's Self page shows the page in layers across its kept versions. The mechanism counts now include a dream's folds and band rises, so Consolidation and Interference read higher and Reconsolidation lower than before. Most of these are experiments, to be checked in a few days. Update the plugin with this release for the working fox and for sidebar mechanism counts that match the dashboard's; a 0.3.28 plugin keeps working beside this core, with the older counts. No store-format change (store v13, cache v7) and no wiring change: nothing to run after upgrading from 0.3.28, and `counterparts connect` is not needed.
|
|
68
|
+
|
|
69
|
+
- **A dream's folds count as Consolidation and Interference.** A fold gathers memories that
|
|
70
|
+
belong together into what they add up to; it now counts under both, as a dream's merges do,
|
|
71
|
+
on the dashboard, in `counterparts mechanisms` and in the sidebar. The settles a fold writes
|
|
72
|
+
over its parts count once, as the fold, and no longer under Reconsolidation.
|
|
73
|
+
- **"Rose a band" counts.** A memory that moves up a band now counts under Consolidation,
|
|
74
|
+
whichever pass recorded it. Before, the count looked only for a pass that never records a
|
|
75
|
+
crossing, so it was always 0. The crossing into the core is still counted once, as "became
|
|
76
|
+
core".
|
|
77
|
+
- **The exact-copy merge is worded for what reaches it**: "exact copy merged into the one
|
|
78
|
+
already held". A repeat in the same folder is turned away when it is written, which leaves no
|
|
79
|
+
row to count. A copy written from a second folder is merged at sleep, and a new test proves
|
|
80
|
+
that happens. Near-copies are still merged only in a dream; merging them at sleep too is
|
|
81
|
+
open.
|
|
82
|
+
- **The self page keeps what each claim rests on.** The nightly reflection can now cite memories
|
|
83
|
+
per sentence (`page.claims`) as well as for the whole page. The cites are kept beside the page,
|
|
84
|
+
and the page's words are unchanged. A sentence with no memory behind it is a hypothesis: it
|
|
85
|
+
is shown as one, never removed. An experiment.
|
|
86
|
+
- **Two new doctor lines, both readings only.** "Self page claims": how many claims the page
|
|
87
|
+
makes, how many memories it cites and how many of those are live, archived or missing, and how
|
|
88
|
+
many claims have no memory behind them. "Core": how many core elements there are, how many
|
|
89
|
+
have only one episode behind them, and the range of days and contexts their support spans.
|
|
90
|
+
`counterparts core --list` shows each element's returns, derivations and links.
|
|
91
|
+
- **The dashboard's Self page shows the page in layers.** It shows how each section read across
|
|
92
|
+
the page's kept versions, and how far back those versions reach. Below that it lists the
|
|
93
|
+
page's hypotheses. It is a view only; nothing is kept longer.
|
|
94
|
+
- **Personal news reaches your other folders more often.** The nightly reflection now looks
|
|
95
|
+
at up to 24 unmarked memories a night (it was 5), the ones that look personal first: a
|
|
96
|
+
feeling, someone's name, a weekend or a visit. When it marks one as about you or the two
|
|
97
|
+
of you, every folder's wake can show it. Work notes stay in the folder they were written
|
|
98
|
+
in. The morning share says what it re-marked: up to three by name; past that, two by
|
|
99
|
+
name and the rest as a count, and how to have one marked back. A memory written in a
|
|
100
|
+
folder you set off or paused is never offered, and never carried out of it by a mark.
|
|
101
|
+
An experiment.
|
|
102
|
+
- **The `about` field says what the mark does.** On `remember` and `session_end`: mark
|
|
103
|
+
anything personal owner or us, and it reaches every folder. Work belongs to its folder,
|
|
104
|
+
though sessions elsewhere may see its title. Left unmarked, a fact counts as this
|
|
105
|
+
folder's work.
|
|
106
|
+
- **The nightly run asks a seat.** For anyone embedding Counterparts: the package entry now
|
|
107
|
+
exports `Seat`, one interface for the model work the memory asks for at night (writing up
|
|
108
|
+
missed sessions, the dream, the reflection), with Claude Code's own night as its first
|
|
109
|
+
implementation. Nothing changes in how the night runs on Claude Code.
|
|
110
|
+
- **The sidebar's fox is at work while Claude's turn runs, as an experiment.** Send a prompt
|
|
111
|
+
and he gets up and goes to work: an alert face, with a tail wag, an ear twitch or a glance
|
|
112
|
+
every few seconds. He never lies down or naps mid-turn, and a dream or a saved memory still
|
|
113
|
+
plays and hands back to work. When the turn ends, for any reason, he blinks back to sitting
|
|
114
|
+
and lies down at 45 seconds and naps at 2 minutes, as before. In terminals that draw the
|
|
115
|
+
finer sextant fox, and on the desktop, he redraws about three times as often during a turn.
|
|
116
|
+
|
|
3
117
|
## 0.3.28 — 2026-10-20
|
|
4
118
|
|
|
5
119
|
The morning share now closes the open threads that are plainly done, and says which and why; say one isn't done and it is reopened. The session-start wake repeats nothing: each session is named once, and "Today, elsewhere" and a new "Here, also open" say by title what the other open sessions are working on. Saying "done" to a weekly reminder closes just this week; it comes back on its next date. Last night's dream and reflection open by their ids, and `counterparts night` reads them without changing anything. The nightly run keeps the self page within its 4,600-byte room, the reflection answers core memories that have waited a week for keep or retire, and facts list the next twenty matches by title. Most of these are experiments, to be checked in a few days. If you use the plugin, update it with this release: the wake's head is now one tag, and a plugin of 0.3.27 or earlier reads the meeting and the store as unknown until it is updated, so its sidebar footer offers the 5-minute intro again and it skips its store check. No store-format change (store v13, cache v7) and no wiring change: nothing to run after upgrading from 0.3.27, and `counterparts connect` is not needed.
|
package/CONSTITUTION.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# The Counterparts Constitution
|
|
2
2
|
|
|
3
|
-
_Ratified by the owner 2026-08-25; last amended 2026-10-
|
|
3
|
+
_Ratified by the owner 2026-08-25; last amended 2026-10-20 (this file's git history is
|
|
4
4
|
the amendment log). This is the ONE page with standing authority — everything else,
|
|
5
|
-
including owner answers given during the build, is a working default,
|
|
6
|
-
|
|
5
|
+
including owner answers given during the build, is a working default, open to discussion
|
|
6
|
+
at any time and revisable without ceremony. Changing THIS page is deliberate and rare._
|
|
7
7
|
|
|
8
8
|
**Thesis — why this exists**
|
|
9
9
|
|
|
@@ -56,8 +56,10 @@ ceremony when it fights this page. Changing THIS page is deliberate and rare._
|
|
|
56
56
|
deliberate, named, and defended. (Reference shelf: the owner's memory field guide,
|
|
57
57
|
mikelapeter.com/lab/memory.)
|
|
58
58
|
13. **Decisions are defaults.** Only this page is scripture, including this line.
|
|
59
|
-
Everything else
|
|
60
|
-
|
|
59
|
+
Everything else (contracts, rulings, tunables, owner answers) guides the work
|
|
60
|
+
without limiting it. Any of it can be raised for discussion at any time, and it is
|
|
61
|
+
revised without ceremony when a better way shows up or it fights the thesis.
|
|
62
|
+
Changing this page is deliberate and rare.
|
|
61
63
|
14. **Port the scars, not the code.** Learnings travel as acceptance criteria, never as
|
|
62
64
|
copy-paste.
|
|
63
65
|
15. **Complexity is earned.** Start with the simplest brain-faithful rule that could
|
package/docs/module-map.md
CHANGED
|
@@ -19,7 +19,7 @@ code and the `NOTES.md` / `INTERFACE-GAPS.md` next to it.*
|
|
|
19
19
|
| `embed/` | — (a gist, not a reading) | Text in, vector out, on this machine, for nothing: the static embedding table (`static.ts`, potion-base-8M) that gives recall's semantic channel a source with no key. Zero code dependencies; its weights ship as the data-only package `counterparts-model-potion`, the one runtime dependency. The only embedder since 2026-09-24, when the paid Voyage seat was removed. **Added 2026-09-23 (roadmap C1).** |
|
|
20
20
|
| `associate/` | Hebbian linking | Co-activation strengthens links; spreading activation at recall. **RESOLVED (owner, 2026-08-25): stays a module** — edge-level arithmetic keeps `physics/` one page; Hebbian plasticity/contiguity is its own mechanism in the field guide. |
|
|
21
21
|
| `schemas/` | semantic memory | Entities and beliefs; birth by mention, death by decay; strength-weighted revision with row history. |
|
|
22
|
-
| `self/` | autobiographical self | Identity documents, episodes, the wake briefing (v0's briefing, grown up). Governed:
|
|
22
|
+
| `self/` | autobiographical self | Identity documents, episodes, the wake briefing (v0's briefing, grown up). Governed: for now, the freeze guards only the crash-fallback sweep; the night is guarded by spacing, citations and visibility (self/CONTRACT §2(d)). |
|
|
23
23
|
| `prospective/` | prospective memory | Future intentions, cued by time or context; fire / suppress / reference telemetry. |
|
|
24
24
|
| `handoff/` | working context for a place | The per-directory handoff: where the work here stands, written as a field on the end-of-session ask, shown as a two-line pointer at the next wake in that directory, expiring in lived days. **Never a memory** — out of recall, out of credit, out of consolidation, out of identity. **Added 2026-09-20 (E1, spec §6.4 / §15 item 6).** |
|
|
25
25
|
| `coverage/` | rehearsal debt | What is not written up yet, read in one place: per session, the unwritten stretch since its last claim in `coverage.jsonl`. The pacer's third ask (pieces and time), the one rule for what a session owes (retention, the next-session write-up), lapse after fourteen days of use (two until 2026-10-10), the handoff pointer's "how current", and one row per stretch per state. Changes nothing about how pieces are claimed. **Added 2026-09-30.** |
|
|
@@ -56,7 +56,7 @@ input — does `encode` shrink to gates-and-tagging inside `remember`'s pipeline
|
|
|
56
56
|
| `fired.ts` | Which mechanisms have fired and which have gone quiet, read only from the store's rows — `counterparts mechanisms`, the dashboard's panel. Each entry names the module that does the work. |
|
|
57
57
|
| `snapshots.ts` | The daily rotating snapshot and its rotation — the one place this package deletes a copy of the memory, and only what it can prove is a snapshot. |
|
|
58
58
|
| `sidebar-status.ts` | The Claude Code sidebar's status file (`sidebar.json` beside the configuration): what the sidebar shows, built by the dashboard's view functions over an observer handle and written whole, by the worker after each boundary and by the memory server off its tool calls' path, so the sidebar makes no network request. |
|
|
59
|
-
| `stance-env.ts` | `COUNTERPARTS_OBSERVER
|
|
59
|
+
| `stance-env.ts` | `COUNTERPARTS_OBSERVER`, read the way the explicit-dir guard is, failing toward observer. (`COUNTERPARTS_OWNER` and the yours/guest split were removed 2026-10-21.) |
|
|
60
60
|
| `log/` | A shared leaf with its own CONTRACT: the process log — one line per allowlisted event (failures, stand-downs, turn ends, write-ups, the night, the wake) from the hook, the worker, the nightly run and the MCP server, to `<dataDir>/sessions/log/<date>.log`, ids and codes only, kept 7 days. Read by `counterparts log` and one doctor line. **Added 2026-09-30**: none of the four processes wired its `onEvent`, so ~270 event names died with their process. |
|
|
61
61
|
|
|
62
62
|
**The five largest files, split by concern (2026-10-11)** — moves only, for the plugin
|
|
@@ -91,13 +91,15 @@ importers are pinned (`split-parts.test.ts`).
|
|
|
91
91
|
## Rulings — 2026-08-25 (check-in + adversarial review, all owner-ratified)
|
|
92
92
|
|
|
93
93
|
Contracts are read subject to these; where a contract still says PROPOSED on a listed
|
|
94
|
-
item, this section is the
|
|
94
|
+
item, this section is newer than the contracts, and like them open to discussion
|
|
95
|
+
(constitution line 13).
|
|
95
96
|
|
|
96
97
|
1. `associate/` stays a module; observer is a mode (`docs/observer-mode.md`); `encode/`
|
|
97
98
|
stays separate; `dashboard/` added as an adapter (constitution line 16, ratified).
|
|
98
99
|
2. Physics: pressure-accumulator revision (§5.6 rewritten — field on target, one credited
|
|
99
100
|
challenge/day, force = strength × sal, novelty at encoding only); nothing born into
|
|
100
|
-
identity,
|
|
101
|
+
identity, promotion through the core lanes (physics/CONTRACT.md §5.3, rewritten
|
|
102
|
+
2026-09-26); bands 4→3 and one strength
|
|
101
103
|
number both settled; decay is a three-way (flat/exponential/power-law) decided by
|
|
102
104
|
replay; H = 90 is a TUNABLE default, not an owner ruling.
|
|
103
105
|
3. Settled drops: identity-promotion surface, `protected.add` queue, model-seat pins,
|
|
@@ -112,7 +114,8 @@ item, this section is the newer law.
|
|
|
112
114
|
|
|
113
115
|
Owner-decided (2026-08-25, bansai `docs/DECISIONS.md`): experiencer authorship with
|
|
114
116
|
crash fallback; librarian-as-physics with zero standing model calls; strength-weighted
|
|
115
|
-
revision (no ledger subsystem); only physics forgets;
|
|
117
|
+
revision (no ledger subsystem); only physics forgets (no model deletes; for now, a model
|
|
118
|
+
may archive, with a record and an undo); the three storage boxes;
|
|
116
119
|
birth-by-mention entities; Amendment 15. Anything a CONTRACT drops beyond that list is
|
|
117
120
|
marked **PROPOSED** and waits for the owner's check-in.
|
|
118
121
|
|
|
@@ -120,4 +123,8 @@ marked **PROPOSED** and waits for the owner's check-in.
|
|
|
120
123
|
prose box is gone and the memory IS the row. That is the same owner, revising his own
|
|
121
124
|
default — "going forward by 'readable' we mean if someone can view them" (2026-09-16),
|
|
122
125
|
and `docs/storage-spec-2026-09-16.md` §15 item 9, "everything lives in the database for
|
|
123
|
-
now; markdown is an export". The other seven entries above
|
|
126
|
+
now; markdown is an export". The other seven entries above were untouched by that change.*
|
|
127
|
+
|
|
128
|
+
*Everything here guides the work; it doesn't limit it. Anything here, RESOLVED items
|
|
129
|
+
included, can be raised for discussion at any time and revised when there's a better way
|
|
130
|
+
(constitution line 13).*
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# `adapters/claude-code/` — CONTRACT
|
|
2
2
|
|
|
3
|
+
*This contract guides the work; it doesn't limit it. Anything here, RESOLVED items included, can be raised for discussion at any time and revised when there's a better way (constitution line 13).*
|
|
4
|
+
|
|
3
5
|
## 1. Purpose
|
|
4
6
|
|
|
5
7
|
The launch adapter: wake injection at session start, the end-of-session write, and crash
|
|
6
8
|
detection — everything host-specific, so the core stays host-agnostic. Session start is
|
|
7
9
|
where this adapter delivers a wake; it is no longer the only place one is read, because
|
|
8
10
|
since 2026-09-17 the core composes a read-only one into the crash fallback's prompt — the
|
|
9
|
-
same composer, minus the prospective lane and minus anything protected
|
|
11
|
+
same composer, minus the prospective lane and minus anything protected —
|
|
10
12
|
and this adapter's interpret client put that prompt on the wire until 2026-09-24 (see
|
|
11
13
|
§1a: the sweep no longer interprets here).
|
|
12
14
|
|
|
@@ -147,7 +149,7 @@ credential — belongs here, discovered at runtime, never assumed by the core.
|
|
|
147
149
|
2026-09-24 there are no keys at all (§1a), so there is nothing to rotate and no credential
|
|
148
150
|
source to configure. (Until then credentials came from one configured source the package
|
|
149
151
|
owned, never an inherited shell environment — scar §2.18.)
|
|
150
|
-
- **Model-seat pins are dropped.** **
|
|
152
|
+
- **Model-seat pins are dropped.** **Decided, for now** (owner, 2026-10-20; settled by module-map Rulings 3 of 2026-08-25). Constitution
|
|
151
153
|
line 2 says which seat runs which job is a design choice, never doctrine, and the model
|
|
152
154
|
lineup will have moved. What is **kept** is the bake-off *method* (earned-mechanism #20:
|
|
153
155
|
real archived inputs through the real path, blind-judged, including the losing tier as a
|
|
@@ -843,7 +845,11 @@ UUID the waiting process chose (2026-10-09), which keeps the children apart; and
|
|
|
843
845
|
`--output-format stream-json --verbose` (2026-10-12; `-p` refuses `stream-json` without
|
|
844
846
|
`--verbose`, measured on 2.1.296), its STDOUT kept in memory to 64 MiB
|
|
845
847
|
(`child.ts#OUTPUT_MAX_BYTES`) and read once for the host's cut. The catch-up child's
|
|
846
|
-
output is ignored.
|
|
848
|
+
output is ignored. Every child, the plain retry included, also passes
|
|
849
|
+
`--no-session-persistence` (2026-10-21; checked on 2.1.306 with `--session-id` and
|
|
850
|
+
`stream-json`), so the host keeps no transcript of it under `~/.claude/projects`: its
|
|
851
|
+
words — memories it read, the conversation it wrote up — do not outlive this package's own
|
|
852
|
+
retention there. On a host too old to know the flag the night does not run. It
|
|
847
853
|
starts in a NEUTRAL directory — the store's own — so no project's CLAUDE.md, hooks or MCP
|
|
848
854
|
servers load. The parent's stance, `CLAUDE_PROJECT_DIR` and `CLAUDECODE` variables are
|
|
849
855
|
removed; this package's values are written last.
|
|
@@ -2619,3 +2619,30 @@ running both, found confusing. The npm install now leaves `npm-live.json` beside
|
|
|
2619
2619
|
(`plugin.ts#keepOne`), the plugin's id read off its install path, phrased for the person and asking nothing
|
|
2620
2620
|
of the model. The folder-origin wording is unchanged.
|
|
2621
2621
|
|
|
2622
|
+
## 2026-10-21 — no owner in the configuration
|
|
2623
|
+
|
|
2624
|
+
- Mike, 2026-10-21 12:18: "for 1, i agree, lets remove it." `install` no longer writes `owner: true`; a configuration that carries it (every
|
|
2625
|
+
earlier install) reads it, ignores it, and names it under doctor's "Old settings" for
|
|
2626
|
+
one release. Doctor's Mode line says "remembering" or the observer line, nothing
|
|
2627
|
+
about an owner. The night run's MCP configuration no longer sets
|
|
2628
|
+
`COUNTERPARTS_OWNER=0`.
|
|
2629
|
+
|
|
2630
|
+
## 2026-10-21 — night children keep no Claude Code transcript
|
|
2631
|
+
|
|
2632
|
+
- `planNightChild` passes `--no-session-persistence` to every child (dream, reflection,
|
|
2633
|
+
catch-up, and the plain retry). Without it Claude Code saved each child's transcript under
|
|
2634
|
+
`~/.claude/projects/<the store's folder slug>/` — the memories it read and the
|
|
2635
|
+
conversation it wrote up — outside the 3-day/14-day span retention, reached only by the
|
|
2636
|
+
host's own `cleanupPeriodDays` (30 by default).
|
|
2637
|
+
- Nothing read those transcripts: the host cut comes from the child's `stream-json`
|
|
2638
|
+
(`readNightSpills`, since 10-12); `--session-id` only keeps the children apart; the
|
|
2639
|
+
child's hooks are QUIET (`nightRun`: `captureBoundary` takes no turns, no ask, no recall
|
|
2640
|
+
— `toHookInput` still tries `transcript_path`, finds nothing, and marks the turns
|
|
2641
|
+
unread, which only stands the echo skip and the pacer's rebase down, both moot for the
|
|
2642
|
+
night); the model a night's rows record comes from the launching session's record, not
|
|
2643
|
+
the child's.
|
|
2644
|
+
- Checked on the installed `claude` 2.1.306: `-p --no-session-persistence --session-id
|
|
2645
|
+
<uuid> --output-format stream-json --verbose` runs, echoes the session id and leaves no
|
|
2646
|
+
folder under `~/.claude/projects` for its directory.
|
|
2647
|
+
- `tools/harness/week.ts` drops the flag for its scripted person's turns, which
|
|
2648
|
+
`--resume` the session and whose hooks read its transcript.
|
|
@@ -355,7 +355,6 @@ export async function runOnce(input: {
|
|
|
355
355
|
...(config.injectionBudgetBytes === undefined
|
|
356
356
|
? {}
|
|
357
357
|
: { budgetBytes: config.injectionBudgetBytes }),
|
|
358
|
-
...(config.owner === undefined ? {} : { owner: config.owner }),
|
|
359
358
|
...(config.timeZone === undefined ? {} : { timeZone: config.timeZone }),
|
|
360
359
|
// The build stamps the wake it publishes, and a wake another build
|
|
361
360
|
// published is re-rendered at step 3a (`version`, 2026-10-02).
|
|
@@ -61,8 +61,9 @@ export interface ChildPlan {
|
|
|
61
61
|
/** The child's working directory; absent, this process's. */
|
|
62
62
|
readonly cwd?: string;
|
|
63
63
|
/** Keep what the child writes to STDOUT (2026-10-12): the nightly run reads
|
|
64
|
-
* its own child's `stream-json` output
|
|
65
|
-
*
|
|
64
|
+
* what the host cut from its own child's `stream-json` output, the only
|
|
65
|
+
* record of the child there is (it runs with `--no-session-persistence`).
|
|
66
|
+
* Absent, STDOUT is ignored. */
|
|
66
67
|
readonly captureOutput?: boolean;
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -16,6 +16,8 @@ import {
|
|
|
16
16
|
import type { DreamingSetting } from "../../core/dream/index.js";
|
|
17
17
|
// The page's own reader, so this line cannot drift from what the wake prints.
|
|
18
18
|
import { clearedMarker, findPageRow, readSelfPage } from "../../core/self/page.js";
|
|
19
|
+
import { coreSupport, pageTrace } from "../../core/self/measures.js";
|
|
20
|
+
import type { CoreSupportRow } from "../../core/self/measures.js";
|
|
19
21
|
import {
|
|
20
22
|
dayBefore,
|
|
21
23
|
hasDayBefore,
|
|
@@ -170,7 +172,7 @@ export function nightRunFindings(input: DoctorInput, store: Store): Finding[] {
|
|
|
170
172
|
run.reason === "no-claude"
|
|
171
173
|
? "The headless run starts claude -p: put the claude command on the PATH the hooks see, or set dreaming to ask (counterparts dream --setting ask)."
|
|
172
174
|
: run.reason === "quick-exit"
|
|
173
|
-
? "Run claude -p once by hand in a terminal to see why it stops (a login, an update prompt). Meanwhile the session asks instead."
|
|
175
|
+
? "Run claude -p once by hand in a terminal to see why it stops (a login, an update prompt, or a claude too old for the night's flags — update it). Meanwhile the session asks instead."
|
|
174
176
|
: run.reason === "nothing-ran"
|
|
175
177
|
? "The headless run needs the counterparts MCP server registered for claude at user scope (claude mcp list shows it); the server's own mcp.session rows say whether it refused the session."
|
|
176
178
|
: "A later session starts it again, or asks when it cannot. counterparts dream --setting ask stops the headless runs.";
|
|
@@ -266,6 +268,75 @@ export function selfPageFindings(store: Store): Finding[] {
|
|
|
266
268
|
];
|
|
267
269
|
}
|
|
268
270
|
|
|
271
|
+
/**
|
|
272
|
+
* WHAT THE PAGE'S CLAIMS REST ON (2026-10-20, an experiment; `self/measures.ts`).
|
|
273
|
+
* A reading, always green: its claims (sentences), the memories it cites and
|
|
274
|
+
* where they stand now, and the claims with no memory behind them — hypotheses,
|
|
275
|
+
* shown as such, never removed. A page from before cites were kept with it says
|
|
276
|
+
* so rather than reading as all hypotheses. Silent with no page: the Self page
|
|
277
|
+
* line already says why.
|
|
278
|
+
*/
|
|
279
|
+
export function selfPageTraceFindings(store: Store): Finding[] {
|
|
280
|
+
const page = readSelfPage(store);
|
|
281
|
+
if (page === null) return [];
|
|
282
|
+
const t = pageTrace(store, page);
|
|
283
|
+
const n = (k: number, one: string, many: string): string => `${String(k)} ${k === 1 ? one : many}`;
|
|
284
|
+
const cited =
|
|
285
|
+
t.source === "none"
|
|
286
|
+
? `no cites kept with it (written by ${page.by ?? "an unrecorded door"})`
|
|
287
|
+
: `${t.source === "reflection" ? "its reflection's record cites" : "cites"} ${n(t.cites, "memory", "memories")}, ${String(t.live)} live, ${String(t.archivedOrMissing)} archived or missing`;
|
|
288
|
+
const perClaim =
|
|
289
|
+
t.uncited === null
|
|
290
|
+
? t.source === "none"
|
|
291
|
+
? ""
|
|
292
|
+
: "; cites were not kept per claim for this version"
|
|
293
|
+
: `; ${n(t.uncited, "claim", "claims")} with no memory behind ${t.uncited === 1 ? "it" : "them"}`;
|
|
294
|
+
return [
|
|
295
|
+
finding(
|
|
296
|
+
"self-page-trace",
|
|
297
|
+
"green",
|
|
298
|
+
"Self page claims",
|
|
299
|
+
`${n(t.claims, "claim", "claims")}; ${cited}${perClaim}`,
|
|
300
|
+
"",
|
|
301
|
+
{ claims: t.claims, source: t.source, cites: t.cites, live: t.live, archivedOrMissing: t.archivedOrMissing, uncited: t.uncited },
|
|
302
|
+
),
|
|
303
|
+
];
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* WHAT STANDS BEHIND THE CORE (2026-10-20, an experiment; `self/measures.ts`).
|
|
308
|
+
* A reading, always green: nothing promotes or demotes on it. "One episode
|
|
309
|
+
* behind it" is an element whose returns and derivations all sit on one lived
|
|
310
|
+
* day; links are counted beside them and widen no span (review of #550). Reads every live row and every edge, so it stays out of the
|
|
311
|
+
* session-start reading.
|
|
312
|
+
*/
|
|
313
|
+
export function coreSupportFindings(store: Store): Finding[] {
|
|
314
|
+
const s = coreSupport(store);
|
|
315
|
+
const els = s.elements;
|
|
316
|
+
if (els.length === 0) return [finding("core-support", "green", "Core", "no elements yet", "", { elements: 0 })];
|
|
317
|
+
const range = (pick: (e: CoreSupportRow) => number): string => {
|
|
318
|
+
const v = els.map(pick);
|
|
319
|
+
const lo = Math.min(...v);
|
|
320
|
+
const hi = Math.max(...v);
|
|
321
|
+
return lo === hi ? String(lo) : `${String(lo)}–${String(hi)}`;
|
|
322
|
+
};
|
|
323
|
+
return [
|
|
324
|
+
finding(
|
|
325
|
+
"core-support",
|
|
326
|
+
"green",
|
|
327
|
+
"Core",
|
|
328
|
+
`${String(els.length)} ${els.length === 1 ? "element" : "elements"}; ${String(s.oneEpisode)} with one episode behind ${s.oneEpisode === 1 ? "it" : "them"}; ` +
|
|
329
|
+
`span ${range((e) => e.days)} ${range((e) => e.days) === "1" ? "day" : "days"}, ${range((e) => e.contexts)} ${range((e) => e.contexts) === "1" ? "context" : "contexts"}; returns ${range((e) => e.returns)}, derivations ${range((e) => e.derivations)}, links ${range((e) => e.links)}`,
|
|
330
|
+
"",
|
|
331
|
+
{
|
|
332
|
+
elements: els.length,
|
|
333
|
+
oneEpisode: s.oneEpisode,
|
|
334
|
+
rows: els.map((e) => `${e.id}:${String(e.returns)}/${String(e.derivations)}/${String(e.links)}/${String(e.days)}d/${String(e.contexts)}c`).join(" "),
|
|
335
|
+
},
|
|
336
|
+
),
|
|
337
|
+
];
|
|
338
|
+
}
|
|
339
|
+
|
|
269
340
|
/** How doctor names each rung the last wake printed the page on (`self/briefing.ts#PageRung`). */
|
|
270
341
|
const PAGE_RUNG_WORDS: Readonly<Record<string, string>> = {
|
|
271
342
|
whole: "it whole",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** `doctor`'s findings on the store upgrades v8 to v11, read from what each upgrade recorded (moved out of `doctor.ts`, 2026-10-11). */
|
|
2
|
-
import { Store } from "../../core/store/index.js";
|
|
2
|
+
import { CONFIDENTIAL_RETIRED_KEY, Store, rowTombstoned } from "../../core/store/index.js";
|
|
3
3
|
import { finding } from "./doctor-finding.js";
|
|
4
4
|
import type { Finding } from "./doctor-finding.js";
|
|
5
5
|
|
|
@@ -234,5 +234,54 @@ export function upgradeV11Findings(store: Store): Finding[] {
|
|
|
234
234
|
];
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
/**
|
|
238
|
+
* THE CONFIDENTIAL MARK, RETIRED (2026-10-21): the memories that carried it
|
|
239
|
+
* when this build first opened the store (`CONFIDENTIAL_RETIRED_KEY`, counted
|
|
240
|
+
* once). Nothing is withheld any more, so they surface like any other memory.
|
|
241
|
+
* The record is frozen; what is still there is read at report time — a
|
|
242
|
+
* recorded id the owner has since removed (denied or emptied) no longer
|
|
243
|
+
* counts. The record keeps the first 50 ids only; past those, the rest are
|
|
244
|
+
* counted as still there, and the line says so. Amber only while any remain,
|
|
245
|
+
* with the ids in `--json`; silent otherwise and on a store this build has
|
|
246
|
+
* not opened writable yet.
|
|
247
|
+
*/
|
|
248
|
+
export function confidentialRetiredFindings(store: Store): Finding[] {
|
|
249
|
+
const record = metaJson(store, CONFIDENTIAL_RETIRED_KEY);
|
|
250
|
+
if (record === null) return [];
|
|
251
|
+
const count = metaNum(record["count"]);
|
|
252
|
+
if (count <= 0) return [];
|
|
253
|
+
const ids = Array.isArray(record["ids"]) ? record["ids"].filter((x): x is string => typeof x === "string") : [];
|
|
254
|
+
let denied: ReadonlySet<string>;
|
|
255
|
+
try {
|
|
256
|
+
denied = new Set(store.deniedIds());
|
|
257
|
+
} catch {
|
|
258
|
+
denied = new Set();
|
|
259
|
+
}
|
|
260
|
+
const still = ids.filter((id) => {
|
|
261
|
+
if (denied.has(id)) return false;
|
|
262
|
+
try {
|
|
263
|
+
const row = store.row(id);
|
|
264
|
+
return row !== undefined && !rowTombstoned(row);
|
|
265
|
+
} catch {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
const unlisted = Math.max(0, count - ids.length);
|
|
270
|
+
const remaining = still.length + unlisted;
|
|
271
|
+
if (remaining <= 0) return [];
|
|
272
|
+
const day = typeof record["day"] === "string" && record["day"].length > 0 ? record["day"] : null;
|
|
273
|
+
const one = remaining === 1;
|
|
274
|
+
return [
|
|
275
|
+
finding(
|
|
276
|
+
"confidential-retired",
|
|
277
|
+
"amber",
|
|
278
|
+
"Confidential",
|
|
279
|
+
`${String(remaining)} ${one ? "memory" : "memories"} marked confidential through the store API ${one ? "is" : "are"} still here (${String(count)} when counted); ${day === null ? "since this version" : `since ${day}`} nothing is withheld, so ${one ? "it surfaces" : "they surface"} like any other memory${unlisted > 0 ? `; only the first ${String(ids.length)} were recorded by id, so the other ${String(unlisted)} are counted as still here` : ""}`,
|
|
280
|
+
`${still.length === 1 && unlisted === 0 ? "It is" : "They are"} listed in counterparts doctor --json. Remove any you don't want: counterparts remove <id>.`,
|
|
281
|
+
{ count, remaining, ids: still.join(", "), unlisted, day },
|
|
282
|
+
),
|
|
283
|
+
];
|
|
284
|
+
}
|
|
285
|
+
|
|
237
286
|
/** Mark changes the Reflection line reads, newest first; a read that comes back full is a floor. */
|
|
238
287
|
export const MARK_ROWS = 10_000;
|
|
@@ -131,9 +131,12 @@ import {
|
|
|
131
131
|
upgradeV9Findings,
|
|
132
132
|
upgradeV10Findings,
|
|
133
133
|
upgradeV11Findings,
|
|
134
|
+
confidentialRetiredFindings,
|
|
134
135
|
} from "./doctor-upgrades.js";
|
|
135
136
|
import {
|
|
136
137
|
selfPageFindings,
|
|
138
|
+
selfPageTraceFindings,
|
|
139
|
+
coreSupportFindings,
|
|
137
140
|
pageWriterFindings,
|
|
138
141
|
dreamingFindings,
|
|
139
142
|
nightRunFindings,
|
|
@@ -163,11 +166,14 @@ export {
|
|
|
163
166
|
upgradeV9Findings,
|
|
164
167
|
upgradeV10Findings,
|
|
165
168
|
upgradeV11Findings,
|
|
169
|
+
confidentialRetiredFindings,
|
|
166
170
|
} from "./doctor-upgrades.js";
|
|
167
171
|
export {
|
|
168
172
|
dreamingFindings,
|
|
169
173
|
nightRunFindings,
|
|
170
174
|
selfPageFindings,
|
|
175
|
+
selfPageTraceFindings,
|
|
176
|
+
coreSupportFindings,
|
|
171
177
|
pageWriterFindings,
|
|
172
178
|
PAGE_WRITER_STALE_DAYS,
|
|
173
179
|
} from "./doctor-self-page.js";
|
|
@@ -539,8 +545,8 @@ function configFindings(input: DoctorInput): Finding[] {
|
|
|
539
545
|
|
|
540
546
|
// THE STANCE IS CALLED `Mode` NOW, and it is said in the words a person can
|
|
541
547
|
// act on rather than in the configuration's (finding #20: "owner: this host
|
|
542
|
-
// encodes" was named as the line nobody could read).
|
|
543
|
-
//
|
|
548
|
+
// encodes" was named as the line nobody could read). Since 2026-10-21 there
|
|
549
|
+
// is no yours/guest split to report: the line says observer or not.
|
|
544
550
|
if (input.config.observer === true) {
|
|
545
551
|
out.push(
|
|
546
552
|
finding("stance", "amber", "Mode", "observer — reads memory, writes nothing", "Remove \"observer\" from the config to remember again.", {
|
|
@@ -548,22 +554,7 @@ function configFindings(input: DoctorInput): Finding[] {
|
|
|
548
554
|
}),
|
|
549
555
|
);
|
|
550
556
|
} else {
|
|
551
|
-
|
|
552
|
-
// install's `owner: true`, the hooks, the worker and — since that day —
|
|
553
|
-
// the memory server Claude Code starts (`mcp/bin/serve.ts#ownerStance`).
|
|
554
|
-
const owner = input.config.owner === true;
|
|
555
|
-
out.push(
|
|
556
|
-
finding(
|
|
557
|
-
"stance",
|
|
558
|
-
"green",
|
|
559
|
-
"Mode",
|
|
560
|
-
owner
|
|
561
|
-
? "remembering; your Claude Code sessions are the owner's (confidential memories are said in them, and an open question can be closed from any directory); a Claude Desktop chat is not; COUNTERPARTS_OWNER=0 on the memory server's launch turns it off for the memory server, and the hooks follow this configuration"
|
|
562
|
-
: "remembering; no session is the owner's (the configuration has no \"owner\": true), so confidential memories stay out of the tools' answers",
|
|
563
|
-
"",
|
|
564
|
-
{ observer: false, owner },
|
|
565
|
-
),
|
|
566
|
-
);
|
|
557
|
+
out.push(finding("stance", "green", "Mode", "remembering", "", { observer: false }));
|
|
567
558
|
}
|
|
568
559
|
return out;
|
|
569
560
|
}
|
|
@@ -3358,6 +3349,11 @@ export function doctorFindings(input: DoctorInput): Finding[] {
|
|
|
3358
3349
|
// line would grade a default nobody chose.
|
|
3359
3350
|
...(unread ? [] : [["snapshot", (): Finding[] => snapshotFindings(input, store)] as const]),
|
|
3360
3351
|
["self-page", () => selfPageFindings(store)],
|
|
3352
|
+
// 2026-10-20, two readings of the self (an experiment): the page's claims
|
|
3353
|
+
// and what they rest on, and what stands behind each core element. Never
|
|
3354
|
+
// amber. The second reads every live row and edge: not at session start.
|
|
3355
|
+
["self-page-trace", () => selfPageTraceFindings(store)],
|
|
3356
|
+
...(input.budgetMs !== undefined ? [] : [["core-support", (): Finding[] => coreSupportFindings(store)] as const]),
|
|
3361
3357
|
["page-writer", () => pageWriterFindings(store, input.config)],
|
|
3362
3358
|
// C2's one line, `Write-ups` since 2026-09-30. Not in the session-start
|
|
3363
3359
|
// reading: it is never red, which is all that notice prints, and it reads
|
|
@@ -3388,6 +3384,8 @@ export function doctorFindings(input: DoctorInput): Finding[] {
|
|
|
3388
3384
|
// v10 (2026-09-29): what the upgrade carried, and the week's contradictions.
|
|
3389
3385
|
["upgrade-v10", () => upgradeV10Findings(store)],
|
|
3390
3386
|
["upgrade-v11", () => upgradeV11Findings(store)],
|
|
3387
|
+
// 2026-10-21: memories that carried the retired confidential mark, counted once. Silent at 0.
|
|
3388
|
+
["confidential-retired", () => confidentialRetiredFindings(store)],
|
|
3391
3389
|
// v12 (2026-10-03): the writer's three fields, and the subject links. Two aggregates.
|
|
3392
3390
|
["write-fields", () => writeFieldFindings(store)],
|
|
3393
3391
|
// 2026-10-10: the old-claims era — on or off, and how many it reads at today's default (lower, higher).
|
|
@@ -89,6 +89,8 @@ export {
|
|
|
89
89
|
NIGHT_MCP_SERVER,
|
|
90
90
|
NIGHT_RUN_ENV,
|
|
91
91
|
NIGHT_TOOLS,
|
|
92
|
+
claudeCodeSeat,
|
|
93
|
+
hostToolName,
|
|
92
94
|
kindValue,
|
|
93
95
|
nightChildrenTimeoutMs,
|
|
94
96
|
nightMaxTurns,
|
|
@@ -102,7 +104,7 @@ export {
|
|
|
102
104
|
readNightSpills,
|
|
103
105
|
runNight,
|
|
104
106
|
} from "./night-run.js";
|
|
105
|
-
export type { NightChild, NightChildPlan, NightKind, NightRunInput, NightRunnerPlan, NightStarter } from "./night-run.js";
|
|
107
|
+
export type { ClaudeCodeAnswer, ClaudeCodeSeatInput, NightAnswer, NightChild, NightChildPlan, NightKind, NightRunInput, NightRunnerPlan, NightStarter } from "./night-run.js";
|
|
106
108
|
|
|
107
109
|
export { DATA_DIR_ENV, NIGHT_CHILD_ENV, SCOPE_ENV, SESSION_ENV, WATCHDOG_ENV, planSpawn, spawnDetached } from "../spawn.js";
|
|
108
110
|
export type { PlanInput, SpawnOutcome, SpawnPlan, SpawnRefusal, Spawner } from "../spawn.js";
|
|
@@ -180,7 +182,6 @@ export function openAdapter(
|
|
|
180
182
|
? {}
|
|
181
183
|
: { budgetBytes: config.injectionBudgetBytes }),
|
|
182
184
|
...(config.observer === undefined ? {} : { observer: config.observer }),
|
|
183
|
-
...(config.owner === undefined ? {} : { owner: config.owner }),
|
|
184
185
|
...(config.timeZone === undefined ? {} : { timeZone: config.timeZone }),
|
|
185
186
|
// Owner ruling D3 on #256: `pageWriter.mode: off` stops the reflection's page write too.
|
|
186
187
|
...(config.pageWriter?.mode === undefined ? {} : { pageWriterMode: config.pageWriter.mode }),
|