counterparts 0.3.43 → 0.3.44
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 +12 -0
- package/README.md +3 -4
- package/package.json +1 -1
- package/src/adapters/cli/commands-self.ts +36 -1
- package/src/adapters/cli/commands.ts +10 -1
- package/src/adapters/cli/help.ts +2 -0
- package/src/adapters/mcp/server-words.ts +1 -1
- package/src/core/dream/NOTES.md +2 -1
- package/src/core/dream/reflect.ts +8 -3
- package/src/core/physics/CONTRACT.md +4 -0
- package/src/core/physics/index.ts +11 -1
- package/src/core/self/CONTRACT.md +7 -0
- package/src/core/self/NOTES.md +14 -0
- package/src/core/self/index.ts +3 -0
- package/src/core/self/writer.ts +33 -2
- package/src/core/sleep/CONTRACT.md +2 -1
- package/src/core/sleep/consolidate.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.44 — 2026-11-01
|
|
4
|
+
|
|
5
|
+
Nothing you'd notice changes by default. `counterparts page-form own` is new: one store's nightly writers amend its self page in the page's own form, and it's off until you set it (`counterparts page-form default` puts it back). The core door's shadow has stopped recording; what becomes core is decided exactly as before and nothing in it moves. No store-format change (store v15, cache v7); the switch is one setting kept in the store, with no migration. Nothing to run after upgrading beyond the usual restart of the dashboard and every Claude Code session. Going back to 0.3.43 needs no store restore: `counterparts disconnect`, 0.3.43's install, then `counterparts connect`; 0.3.43 ignores the switch.
|
|
6
|
+
|
|
7
|
+
- **A store can keep its self page in its own form.** `counterparts page-form own` tells the nightly writers to amend
|
|
8
|
+
the page keeping its sections and headings, dated stories where it tells stories, instead of keeping "## How I
|
|
9
|
+
work" as a few short lessons. Off unless set, one store at a time; `counterparts page-form default` puts it back.
|
|
10
|
+
- **The new way of deciding the core no longer runs in shadow.** 0.3.36 started it beside the old one, recording each
|
|
11
|
+
night what it would have let in or kept out. Those records have stopped. The core is still decided exactly as it was,
|
|
12
|
+
and nothing already in it changes. The code stays in place, and `physics.CORE_DOOR_SUPPORT` set to `"shadow"` turns
|
|
13
|
+
the records back on.
|
|
14
|
+
|
|
3
15
|
## 0.3.43 — 2026-11-01
|
|
4
16
|
|
|
5
17
|
Nearly nothing changes by default. A folder you set off, observer or paused no longer puts its plain work reminders in the line above the wake: one is said if the folder is turned back on within a week of its day, and doctor counts the ones waiting. `recall "elsewhere"` lists the other folders the way the wake's Elsewhere reads them. The wake's new shape is in, switched off: with it off, every wake is byte-for-byte what 0.3.42 writes, and `counterparts wake-shape on` turns it on for one store (`off` or `default` turns it back). No store-format change (store v15, cache v7); the switch is one setting kept in the store, with no migration. Nothing to run after upgrading beyond the usual restart of the dashboard and every Claude Code session. Going back to 0.3.42 needs no store restore: `counterparts disconnect`, 0.3.42's install, then `counterparts connect`; 0.3.42 ignores the switch.
|
package/README.md
CHANGED
|
@@ -61,10 +61,9 @@ People interested in giving an AI its own sense of self and building a relations
|
|
|
61
61
|
with it over time. Tinkerers, researchers, writers, and anyone who talks to an assistant
|
|
62
62
|
every day and wishes it remembered.
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Plenty of tools do that, including the memory built into ChatGPT and Claude.
|
|
64
|
+
This is the AI's own memory of you and your work together, in its own words, keeping what
|
|
65
|
+
matters across every project. A committed CLAUDE.md stays the place for team-wide rules
|
|
66
|
+
shared through git.
|
|
68
67
|
|
|
69
68
|
## Where it's going
|
|
70
69
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { homedir } from "node:os";
|
|
|
5
5
|
import { dirname, join, resolve } from "node:path";
|
|
6
6
|
import { Counterpart } from "../../core/counterpart.js";
|
|
7
7
|
import { WAKE_SHAPE_KEY } from "../../core/counterpart-wake-shape.js";
|
|
8
|
-
import { NO_PAGE_VERSION } from "../../core/self/index.js";
|
|
8
|
+
import { NO_PAGE_VERSION, PAGE_FORM_KEY, pageFormOf } from "../../core/self/index.js";
|
|
9
9
|
import { REFLECTED_FEELING_KEY } from "../../core/sleep/index.js";
|
|
10
10
|
import { CLAIMS_ERA_CUTOFF_KEY, storeExists } from "../../core/store/index.js";
|
|
11
11
|
// The twin cards' undo is an owner op (2026-10-22): the store has no general un-archive.
|
|
@@ -393,6 +393,41 @@ export function wakeShapeCommand(dir: string, io: Io, parsed: Parsed, observer:
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
+
/**
|
|
397
|
+
* THE PAGE'S OWN FORM FOR ONE STORE (PF1, 2026-11-01): one meta row, so one
|
|
398
|
+
* store's nightly writers keep the page's sections and form instead of "## How
|
|
399
|
+
* I work" as short lessons (`self/writer.ts#PAGE_FORM_KEY`). `default` empties
|
|
400
|
+
* the row, which reads as absent, as WK2's does. Nothing else is written; the
|
|
401
|
+
* next night reads it.
|
|
402
|
+
*/
|
|
403
|
+
export function pageFormCommand(dir: string, io: Io, parsed: Parsed, observer: boolean, namedDir: boolean): number {
|
|
404
|
+
if (!storeExists(dir)) {
|
|
405
|
+
io.err(`No store at ${dir}. Run 'counterparts init${namedDir ? ` --dir ${dir}` : ""}' to create one.`);
|
|
406
|
+
return EXIT.usage;
|
|
407
|
+
}
|
|
408
|
+
const [word, ...rest] = parsed.positional;
|
|
409
|
+
if (rest.length > 0 || (word !== undefined && word !== "own" && word !== "default")) {
|
|
410
|
+
io.err("refused: counterparts page-form [own|default].");
|
|
411
|
+
return EXIT.usage;
|
|
412
|
+
}
|
|
413
|
+
if (word !== undefined && observer) {
|
|
414
|
+
io.err("refused: this console has stood down (observer), so the page's form stays as it is.");
|
|
415
|
+
return EXIT.usage;
|
|
416
|
+
}
|
|
417
|
+
const counterpart = openCounterpart(dir, word === undefined || observer);
|
|
418
|
+
try {
|
|
419
|
+
if (word !== undefined) counterpart.store.setMeta(PAGE_FORM_KEY, word === "own" ? "own" : "");
|
|
420
|
+
io.out(
|
|
421
|
+
pageFormOf(counterpart.store) === "own"
|
|
422
|
+
? "The page's form here: its own. The nightly writers keep its sections and form."
|
|
423
|
+
: "The page's form here: the default. The nightly writers keep \"## How I work\" as a few short lessons.",
|
|
424
|
+
);
|
|
425
|
+
return EXIT.ok;
|
|
426
|
+
} finally {
|
|
427
|
+
counterpart.close();
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
396
431
|
export function aboutCommand(dir: string, io: Io, parsed: Parsed, observer: boolean, namedDir: boolean): number {
|
|
397
432
|
if (!storeExists(dir)) {
|
|
398
433
|
io.err(`No store at ${dir}. Run 'counterparts init${namedDir ? ` --dir ${dir}` : ""}' to create one.`);
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
coreCommand,
|
|
120
120
|
claimsEraCommand,
|
|
121
121
|
settleCommand,
|
|
122
|
-
aboutCommand, wakeShapeCommand,
|
|
122
|
+
aboutCommand, pageFormCommand, wakeShapeCommand,
|
|
123
123
|
} from "./commands-self.js";
|
|
124
124
|
import { projectCommand } from "./commands-project.js";
|
|
125
125
|
import {
|
|
@@ -242,6 +242,9 @@ export const COMMANDS = [
|
|
|
242
242
|
// The wake's shape, one store at a time (WK2, 2026-10-30): read it, or set it.
|
|
243
243
|
// Reads and writes, like `about`; the write refuses under observer.
|
|
244
244
|
"wake-shape",
|
|
245
|
+
// The page's own form, one store at a time (PF1, 2026-11-01): read it, or set it.
|
|
246
|
+
// Reads and writes, like `wake-shape`; the write refuses under observer.
|
|
247
|
+
"page-form",
|
|
245
248
|
// Contradictions (2026-09-29): what is unsettled and what was settled, and
|
|
246
249
|
// the owner's settle and undo. Reads and writes, like `dream`; the write
|
|
247
250
|
// refuses at the core's own seam under observer.
|
|
@@ -602,6 +605,7 @@ export const COMMAND_FLAGS: Record<Command, readonly string[]> = {
|
|
|
602
605
|
settle: ["list", "pair", "holds", "against", "how", "why", "undo"],
|
|
603
606
|
about: ["why"],
|
|
604
607
|
"wake-shape": [],
|
|
608
|
+
"page-form": [],
|
|
605
609
|
project: [],
|
|
606
610
|
coverage: ["date"],
|
|
607
611
|
// `--config` because the store it opens is the one the configuration names,
|
|
@@ -683,6 +687,8 @@ export const COMMAND_BLURB: Record<Command, string> = {
|
|
|
683
687
|
"Last night, read-only: what a dream did and what the waking self made of it. It changes nothing — it opens the store as an observer, so it runs the same under --observer. With nothing after it (or list), the recent dreams and reflections, newest first (--all for every dream); last prints the newest dream — its journal, every change it made, and the reflection after it (last-reflection: the newest reflection); an id (drm_… or rfl_…) prints that one, and show <id|last> means the same. Undoing a dream stays on `counterparts dream`, the owner's door.",
|
|
684
688
|
"wake-shape":
|
|
685
689
|
"The wake's shape for this store: on, off, or the build's default. With nothing after it, says which this store has. On: a session start reads the wake top-down, one question per section and no item twice; off: as it has been. Takes effect at the next session start; it writes one setting in the store and nothing else. Reading works under observer; setting refuses there.",
|
|
690
|
+
"page-form":
|
|
691
|
+
"How this store's nightly writers treat the self page: own, or the build's default. With nothing after it, says which this store has. Own: day's end and the reflection are told to amend the page in its own form, keeping its sections and headings, dated stories where it tells stories, instead of keeping \"## How I work\" as a few short lessons. Default: as it has been. Takes effect at the next night; it writes one setting in the store and nothing else. Reading works under observer; setting refuses there.",
|
|
686
692
|
core:
|
|
687
693
|
"The core — the memories about me and about us that do not fade. With no flags (or --list), what it holds and which lane carried each one there, what dreams have nominated, what is being reconsidered, and what was sent back; --demote <id> --reason \"...\" sends one back to ordinary fading from today, records why, and keeps the lanes from promoting it again; --reaffirm <id> --reason \"...\" keeps one that is being reconsidered (it is not flagged again for what it is); --reflected-feeling on|off opens or closes the core to reflection alone. On (the default): a feeling a reflection records later and a reflection citing a memory both count toward the fast lane, and a reflection may re-label what a memory is about either way — each re-label is recorded with its reason, and one into me, us or the owner is told in the next morning share. Off: nothing reaches the core on a reflection alone — the fast lane needs a feeling felt at the time (not one a reflection recorded later) and an ordinary use after a gap (not a reflection citing it), and a reflection may only move what a memory is about toward work or world. Reading works under observer; the changes refuse there.",
|
|
688
694
|
settle:
|
|
@@ -725,6 +731,7 @@ const COMMAND_ARGS: Partial<Record<Command, string>> = {
|
|
|
725
731
|
settle: " [--list | --pair <id> --holds <id> --how changed|corrected|open --why \"...\" | --undo <pair>]",
|
|
726
732
|
about: " <id> [me|us|owner|work|world] [--why \"...\"]",
|
|
727
733
|
"wake-shape": " [on|off|default]",
|
|
734
|
+
"page-form": " [own|default]",
|
|
728
735
|
project: " [list | join <folder> <project name or folder> | leave <folder>]",
|
|
729
736
|
coverage: " [--date YYYY-MM-DD]",
|
|
730
737
|
};
|
|
@@ -1749,6 +1756,8 @@ export async function run(argv: readonly string[], opts: RunOptions): Promise<nu
|
|
|
1749
1756
|
return nightCommand(dir, io, parsed, typeof parsed.flags["dir"] === "string");
|
|
1750
1757
|
case "wake-shape":
|
|
1751
1758
|
return wakeShapeCommand(dir, io, parsed, observer, typeof parsed.flags["dir"] === "string");
|
|
1759
|
+
case "page-form":
|
|
1760
|
+
return pageFormCommand(dir, io, parsed, observer, typeof parsed.flags["dir"] === "string");
|
|
1752
1761
|
case "core":
|
|
1753
1762
|
return coreCommand(dir, io, parsed, observer, typeof parsed.flags["dir"] === "string");
|
|
1754
1763
|
case "claims-era":
|
package/src/adapters/cli/help.ts
CHANGED
|
@@ -135,6 +135,7 @@ export const SHORT: Record<string, string | readonly string[]> = {
|
|
|
135
135
|
settle: "Two memories that disagree: which holds — and undo one",
|
|
136
136
|
about: "What a memory is about — and change it",
|
|
137
137
|
"wake-shape": "The wake's shape for this store: on, off or the default",
|
|
138
|
+
"page-form": "The page's form for this store's nightly writers: its own or the default",
|
|
138
139
|
project: "Which folders are one piece of work — join or leave",
|
|
139
140
|
coverage: "What is written up, and what is not yet, for a date",
|
|
140
141
|
"catch-up": "Write up, now, sessions that ended unwritten (the night does it too)",
|
|
@@ -190,6 +191,7 @@ export const ADVANCED: readonly string[] = [
|
|
|
190
191
|
"dream",
|
|
191
192
|
"night",
|
|
192
193
|
"wake-shape",
|
|
194
|
+
"page-form",
|
|
193
195
|
"core",
|
|
194
196
|
"settle",
|
|
195
197
|
"about",
|
|
@@ -21,7 +21,7 @@ export const SERVER_NAME = "counterparts";
|
|
|
21
21
|
* host decides whether to trust what follows. Read from a constant rather than
|
|
22
22
|
* from disk so the server opens no file to answer its first message.
|
|
23
23
|
*/
|
|
24
|
-
export const SERVER_VERSION = "0.3.
|
|
24
|
+
export const SERVER_VERSION = "0.3.44";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* THE ONE LINE EVERY TOOL ANSWERS WITH when the store on disk is a schema AHEAD
|
package/src/core/dream/NOTES.md
CHANGED
|
@@ -114,7 +114,8 @@ brief left open, and why.
|
|
|
114
114
|
carries a six-word run of the dream's gist is refused (`dreamed-words-on-the-page`).
|
|
115
115
|
*(2026-09-28: the gist-words check is removed and the core rule is a note — see that
|
|
116
116
|
day's entry below.)*
|
|
117
|
-
The prompt asks for craft under "## How I work"; nothing enforces headings.
|
|
117
|
+
The prompt asks for craft under "## How I work"; nothing enforces headings. *(2026-11-01, PF1: not on a
|
|
118
|
+
store whose meta `self.page_form` is `own`; there the clause is dropped and the page is amended in its own form.)*
|
|
118
119
|
6. **The page write claims the night.** `writePage` records a `self.page.writer.ran` row
|
|
119
120
|
(mode `session`, outcome `revised`) for `pageWriterNight`'s date. That is why the old
|
|
120
121
|
SessionStart writer is LEFT IN PLACE: on a night the reflection wrote the page it
|
|
@@ -88,7 +88,7 @@ import { CLAIM_PREFIX_MIN_CHARS, PAGE_CORE_HEADING, claimKey, pageClaims, pageSe
|
|
|
88
88
|
import { coreFromBeliefs } from "../self/measures.js";
|
|
89
89
|
import { SELF_TUNABLES } from "../self/tunables.js";
|
|
90
90
|
import { openCarry } from "../self/identity.js";
|
|
91
|
-
import {
|
|
91
|
+
import { daySummaries, pageFormOf, pageWritingRule } from "../self/writer.js";
|
|
92
92
|
import type { DaySummary } from "../self/writer.js";
|
|
93
93
|
import { addDays, isDay, localDate, readableDate } from "../time.js";
|
|
94
94
|
import { DREAM_MARK, carriesDreamMark } from "./mark.js";
|
|
@@ -1200,13 +1200,18 @@ export class Reflections {
|
|
|
1200
1200
|
: spine.length > 0
|
|
1201
1201
|
? `Its spine is the beliefs in spine: what life has backed about me and us, each with how many memories and lived days stand behind it. Under "## ${PAGE_CORE_HEADING}", state as settled only what a spine belief says — in your own words, connected as you like — each sentence citing its belief's id in page.claims (and page.cites). A spine belief's id may be cited on the page only: it is not a memory to feel, mark or cite in the entry, and citing it does not strengthen it.`
|
|
1202
1202
|
: `No belief about me or us has earned the core yet (spine is empty): keep "## ${PAGE_CORE_HEADING}" to a line saying it is still forming, and state nothing there as settled.`;
|
|
1203
|
-
|
|
1203
|
+
// THE PAGE IN ITS OWN FORM (PF1, `self/writer.ts#PAGE_FORM_KEY`): one
|
|
1204
|
+
// store's writers keep its sections and form, not "How I work" by name.
|
|
1205
|
+
const form = pageFormOf(this.store);
|
|
1206
|
+
const own = form === "own";
|
|
1207
|
+
const rule = pageWritingRule(form);
|
|
1208
|
+
const splitLine = `- page (optional, and lean toward writing it): ${earlier}${size}Every version of the page is kept, so rewriting it loses nothing. ${who} would like a page written by a reflection every day, and tonight yours is "## ${PAGE_CORE_HEADING}" alone: day's end amends the other sections (${own ? "every section but Core" : "Lately, How I work"}) from the day, and they stay exactly as they stand. Send page.text as the "## ${PAGE_CORE_HEADING}" section only — its heading and its words. Rewrite it unless, after reflecting, there is really nothing to change; on a "nothing much" night, leave it as it stands. ${coreDrawn} In page.claims, give each sentence the ids it rests on ({ text: the sentence as written, or its first several words — ${String(CLAIM_PREFIX_MIN_CHARS)} characters or more — cites }); a sentence with none stands as a hypothesis, and one you keep word for word keeps what it rested on. Mention a dream only as a dream ("I dreamed…"); a dreamed gist is a suggestion, not a source: cite the lived memories it came from. ${rule} Sent back as past its room, send finish again with page.text cut (and page.cites and page.claims), not page.short.`;
|
|
1204
1209
|
const pageLine =
|
|
1205
1210
|
this.ctx.pageWrites === false
|
|
1206
1211
|
? `- page: not tonight — the owner has day's end off, so the self page is not rewritten. Your entry and share still count.`
|
|
1207
1212
|
: SELF_TUNABLES.PAGE_SPLIT
|
|
1208
1213
|
? splitLine
|
|
1209
|
-
: `- page (optional, and lean toward writing it): ${earlier}${size}Every version of the page is kept, so rewriting it loses nothing. ${who} would like a page written by a reflection every day — rewrite it unless, after reflecting, there is really nothing new to add; on a "nothing much" night, leave it as it stands. ${drawn} In page.claims, give each sentence the ids it rests on ({ text: the sentence as written, or its first several words — ${String(CLAIM_PREFIX_MIN_CHARS)} characters or more — cites }); a sentence with none stands as a hypothesis. The old page is context, not a source: write from the memories, not by rewording it. ${spine === undefined ? `Keep "## Core" for who you are and put craft` : `Put craft`} — how a job is done — under "## How I work". Mention a dream only as a dream ("I dreamed…"); a dreamed gist is a suggestion, not a source: cite the lived memories it came from. ${
|
|
1214
|
+
: `- page (optional, and lean toward writing it): ${earlier}${size}Every version of the page is kept, so rewriting it loses nothing. ${who} would like a page written by a reflection every day — rewrite it unless, after reflecting, there is really nothing new to add; on a "nothing much" night, leave it as it stands. ${drawn} In page.claims, give each sentence the ids it rests on ({ text: the sentence as written, or its first several words — ${String(CLAIM_PREFIX_MIN_CHARS)} characters or more — cites }); a sentence with none stands as a hypothesis. The old page is context, not a source: write from the memories, not by rewording it. ${own ? (spine === undefined ? `Keep "## Core" for who you are. ` : "") : `${spine === undefined ? `Keep "## Core" for who you are and put craft` : `Put craft`} — how a job is done — under "## How I work". `}Mention a dream only as a dream ("I dreamed…"); a dreamed gist is a suggestion, not a source: cite the lived memories it came from. ${rule} Sent back as past its room, send finish again with page.text cut (and page.cites and page.claims), not page.short.`;
|
|
1210
1215
|
const aboutLine = open
|
|
1211
1216
|
? `- about (optional, at most ${String(L.about)}): what a memory is about, by meaning — me, us, owner, work (one project's own: it stays with that project; an unmarked skill is craft and reaches every folder) or world — with why. Only me and us can become core, and never a plan. You may change a mark you think is wrong, either way; each change is recorded with your why, and one into me, us or owner is told in the morning share.`
|
|
1212
1217
|
: `- about (optional, at most ${String(L.about)}): tonight a mark may only move a memory toward work (the craft) or world, with why — the owner has closed the core to reflection alone.`;
|
|
@@ -236,6 +236,10 @@ band(m, d) = identity if promoted(m) # explicit cr
|
|
|
236
236
|
harness the arc grew the core about half as fast as the lanes (days 7/14/21/28/end
|
|
237
237
|
0/0/3/4/6 against 0/6/10/11/12), against Mike's 10-20/10-21 rulings that the core was
|
|
238
238
|
starving; a week of shadow rows on his store decides on, off or tune — one value.
|
|
239
|
+
*(Amended 2026-11-01 — Mike, lightly held: the shadow RETIRED.)* The default is `"off"`:
|
|
240
|
+
the lanes decide as before and no shadow row is written; the shadow and the arc stay in
|
|
241
|
+
the code, inert. A reflection's citation alone still admits to core (the 09-27 ruling).
|
|
242
|
+
Undo: the one value back to `"shadow"`.
|
|
239
243
|
|
|
240
244
|
*(Amended 2026-10-24, E2 — Mike's go 14:36, lightly held, an experiment behind
|
|
241
245
|
`CORE_DOOR_SUPPORT`; elegance check §2. Old contracts don't hold us back: the lanes'
|
|
@@ -266,8 +266,18 @@ export const TUNABLES = {
|
|
|
266
266
|
* fast as the lanes (days 7/14/21/28/end 0/0/3/4/6 against 0/6/10/11/12),
|
|
267
267
|
* against Mike's 10-20/10-21 rulings that the core was starving; a week of
|
|
268
268
|
* rows on his store decides on, off or tune.
|
|
269
|
+
*
|
|
270
|
+
* THE SHADOW RETIRED (2026-11-01, Mike, lightly held): the DEFAULT is
|
|
271
|
+
* `"off"` — the two lanes decide exactly as under shadow, and no
|
|
272
|
+
* `promotion.shadow` / `promotion.shadow.sleep` row or `sleep.shadow.*`
|
|
273
|
+
* mark is written. The shadow and the door are left in place, inert. Its
|
|
274
|
+
* week on his store (days 35–41: lanes 1, door 5, `docs/CHECK-AFTER.md`
|
|
275
|
+
* "Checked 2026-11-01") was read first. Admitting a memory to core on
|
|
276
|
+
* a reflection's citation alone stays (Mike's 09-27 ruling). No memory was
|
|
277
|
+
* promoted or demoted by the change. Undo: this one value back to
|
|
278
|
+
* `"shadow"` (or `"on"`).
|
|
269
279
|
*/
|
|
270
|
-
CORE_DOOR_SUPPORT: "
|
|
280
|
+
CORE_DOOR_SUPPORT: "off" as CoreDoorMode | boolean,
|
|
271
281
|
/**
|
|
272
282
|
* THE MAKING IS THE FIRST MOMENT (E2 review, 2026-10-24): the core door's
|
|
273
283
|
* days factor counts the slot's first encoding's lived day as one of its
|
|
@@ -701,6 +701,13 @@ proposals and their archive; render and delivery telemetry.
|
|
|
701
701
|
one calendar day `learned_on` is a date, `birth_day` is the lived day and ids are
|
|
702
702
|
random, so there is no recency to sort by. What is guaranteed is that the cut is
|
|
703
703
|
deterministic (§1 G3), not that it is the end of the day.
|
|
704
|
+
**The page's form, one store at a time** (PF1, 2026-11-01, an experiment, review
|
|
705
|
+
2026-11-08): both nightly writers are told "## How I work" is a few short lessons
|
|
706
|
+
(`HOW_I_WORK_RULE`, in `PAGE_WRITING_RULE`), unless the store's meta `self.page_form` is
|
|
707
|
+
`own` (`counterparts page-form own|default`, `writer.ts#pageFormOf`): then they are told
|
|
708
|
+
to amend the page in its own form (`OWN_FORM_RULE`) and no instruction names "## How I
|
|
709
|
+
work". Words only; nothing checks a heading. With no row (every store but one), or a
|
|
710
|
+
store that won't answer, every writer's prompt is byte for byte what it was.
|
|
704
711
|
20. **[M]** **THE WRITER CAN WRITE THE PAGE AND ONE ROW, AND NOTHING ELSE.** The page goes
|
|
705
712
|
through `revisePage` — the one seam, with its caps, its gate battery and its version
|
|
706
713
|
chain — and `writer.ts` never touches it; what this module writes is the run's own
|
package/src/core/self/NOTES.md
CHANGED
|
@@ -2992,3 +2992,17 @@ for what reads it (doctor, the dashboard, the dream's input, a delivery the comp
|
|
|
2992
2992
|
page-less store's lanes count as `page`.
|
|
2993
2993
|
- **`arrivingTense` still runs, on nothing**: it looks under the last `Coming up:` for the old dated forms, and the shaped
|
|
2994
2994
|
lines don't have them. `Coming up:` always prints as a heading, so a page's own "Coming up:" line is never taken for the lane.
|
|
2995
|
+
|
|
2996
|
+
## PF1, 2026-11-01: the page in its own form, one store at a time
|
|
2997
|
+
|
|
2998
|
+
- **Read at the store, in two places, by one reader.** `writer.ts#pageFormOf` reads meta `self.page_form`; `Self#pageWriterInput`
|
|
2999
|
+
puts `pageForm: "own"` on the `WriterInput` (so `writerInstructionOverhead` measures the same block), and `reflect.ts` reads it
|
|
3000
|
+
for its own page line. Absent is the default because there's no tunable: nobody else gets it.
|
|
3001
|
+
- **Off is the same strings, not a rebuild of them.** `pageWritingRule(null)` returns the `PAGE_WRITING_RULE` constant itself, and
|
|
3002
|
+
each of the four sites keeps master's literal on its off branch. Checked against master by dumping day's end's block and the
|
|
3003
|
+
reflection's begin, on a store with no row, for every combination of `PAGE_SPLIT`, `CORE_FROM_BELIEFS` and `DAYS_END_INPUT`:
|
|
3004
|
+
byte for byte the same (`test/page-form.test.ts` pins the phrases; the dump is in the PR).
|
|
3005
|
+
- **`default` empties the row** instead of deleting it, as WK2's switch does; the store has no meta delete, and empty reads absent.
|
|
3006
|
+
- **Not touched:** the room, the cadence, the door (`splicePageLane` splits by any heading), `CRAFT_IN_WAKE`, the self_page tool's
|
|
3007
|
+
text and the wake. The sharp edge is room, switch or not: a page at its room sends any added line back to be cut, and stories
|
|
3008
|
+
are the longest lines (CHECK-AFTER, PF1).
|
package/src/core/self/index.ts
CHANGED
|
@@ -148,6 +148,7 @@ import {
|
|
|
148
148
|
SELF_PAGE_WRITER_EVENT,
|
|
149
149
|
dayMemories,
|
|
150
150
|
nightClaimFor,
|
|
151
|
+
pageFormOf,
|
|
151
152
|
pageWriterClaimOpen,
|
|
152
153
|
pageWriterDue,
|
|
153
154
|
pageWriterNight,
|
|
@@ -2578,6 +2579,8 @@ export class Self {
|
|
|
2578
2579
|
bytes: picked.bytes,
|
|
2579
2580
|
...(opts.journal === undefined ? {} : { journal: opts.journal }),
|
|
2580
2581
|
...(opts.daysEnd === true ? { daysEnd: true } : {}),
|
|
2582
|
+
// PF1: the store keeps its page's own form (`PAGE_FORM_KEY`); absent on every other store.
|
|
2583
|
+
...(pageFormOf(this.store) === "own" ? { pageForm: "own" as const } : {}),
|
|
2581
2584
|
};
|
|
2582
2585
|
}
|
|
2583
2586
|
|
package/src/core/self/writer.ts
CHANGED
|
@@ -282,6 +282,35 @@ export const NO_RECORD_RULE =
|
|
|
282
282
|
export const PAGE_WRITING_RULE =
|
|
283
283
|
`${HOW_I_WORK_RULE} The page is read on later days and by sessions on other models. Name the model when a claim is about one model ("the Opus 5.5 system card says…", not "my system card says…"); write a date, never "tonight" or "today"; and add no revised-on line of your own — the wake dates the page. ${NO_RECORD_RULE} ${PAGE_ROOM_RULE}`;
|
|
284
284
|
|
|
285
|
+
/**
|
|
286
|
+
* THE PAGE IN ITS OWN FORM, ONE STORE AT A TIME (PF1, 2026-11-01; asked by the
|
|
287
|
+
* owner's counterpart, Mike's yes, an experiment, review 2026-11-08). A store
|
|
288
|
+
* whose meta says `self.page_form` = `own` (`counterparts page-form own`) tells
|
|
289
|
+
* its two nightly page writers to keep the page's sections and form instead of
|
|
290
|
+
* `HOW_I_WORK_RULE`: dated stories where it tells stories, plain lines where it
|
|
291
|
+
* doesn't. Words only; nothing checks a heading. Absent (every store but one),
|
|
292
|
+
* or a store that won't answer: every writer is told exactly what it was, the
|
|
293
|
+
* constants above unchanged. Undo: `counterparts page-form default`.
|
|
294
|
+
*/
|
|
295
|
+
export const PAGE_FORM_KEY = "self.page_form";
|
|
296
|
+
|
|
297
|
+
export const OWN_FORM_RULE =
|
|
298
|
+
`Amend the page in its own form: keep its sections and headings as they stand, dated stories where it tells stories and plain lines where it doesn't.`;
|
|
299
|
+
|
|
300
|
+
/** This store's page form: `own` when its meta says so, else null. Never throws. */
|
|
301
|
+
export function pageFormOf(store: Pick<Store, "getMeta">): "own" | null {
|
|
302
|
+
try {
|
|
303
|
+
return (store.getMeta(PAGE_FORM_KEY) ?? "").trim() === "own" ? "own" : null;
|
|
304
|
+
} catch {
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/** What the nightly writers are told about the page: `PAGE_WRITING_RULE` itself unless the store keeps its own form. */
|
|
310
|
+
export function pageWritingRule(form: "own" | null | undefined): string {
|
|
311
|
+
return form === "own" ? PAGE_WRITING_RULE.replace(HOW_I_WORK_RULE, OWN_FORM_RULE) : PAGE_WRITING_RULE;
|
|
312
|
+
}
|
|
313
|
+
|
|
285
314
|
/**
|
|
286
315
|
* THE DATE A RUN ON `today` IS ABOUT — yesterday, always.
|
|
287
316
|
*
|
|
@@ -794,6 +823,8 @@ export interface WriterInput {
|
|
|
794
823
|
* Absent: the block as it was.
|
|
795
824
|
*/
|
|
796
825
|
readonly daysEnd?: boolean;
|
|
826
|
+
/** PF1 (`PAGE_FORM_KEY`): `own` when the store keeps its page's own form. Absent: the block as it was. */
|
|
827
|
+
readonly pageForm?: "own";
|
|
797
828
|
}
|
|
798
829
|
|
|
799
830
|
/**
|
|
@@ -1053,7 +1084,7 @@ export function writerInstruction(
|
|
|
1053
1084
|
// the same — "## Core" is the reflection's — with the day's own sections
|
|
1054
1085
|
// named, and held at the door (`Self#revisePage`).
|
|
1055
1086
|
SELF_TUNABLES.PAGE_SPLIT
|
|
1056
|
-
? `If something did move, call the \`${opts.tool}\` tool with the WHOLE page: leave \`## ${PAGE_CORE_HEADING}\` exactly as it stands — tonight's reflection writes it${SELF_TUNABLES.CORE_FROM_BELIEFS ? ", from the beliefs life has backed" : ""} — and amend \`## ${PAGE_LATELY_HEADING}\` (what the last while has been like) and
|
|
1087
|
+
? `If something did move, call the \`${opts.tool}\` tool with the WHOLE page: leave \`## ${PAGE_CORE_HEADING}\` exactly as it stands — tonight's reflection writes it${SELF_TUNABLES.CORE_FROM_BELIEFS ? ", from the beliefs life has backed" : ""} — and amend \`## ${PAGE_LATELY_HEADING}\` (what the last while has been like) and ${input.pageForm === "own" ? "the page's other sections from the day, in their own form" : "`## How I work` (how you work now) from the day"}. Amend it; do not start over. You are the same person continuing, so keep every sentence that still holds, word for word, and change the part that moved.${session}`
|
|
1057
1088
|
: SELF_TUNABLES.CORE_FROM_BELIEFS
|
|
1058
1089
|
? `If something did move, call the \`${opts.tool}\` tool with the WHOLE page: leave \`## ${PAGE_CORE_HEADING}\` exactly as it stands — tonight's reflection writes it, from the beliefs life has backed (on a first page, one line saying it is still forming) — and amend \`## ${PAGE_LATELY_HEADING}\` for what the last while has actually been like. Amend it; do not start over. You are the same person continuing, so keep every sentence that still holds and change the part that moved.${session}`
|
|
1059
1090
|
: `If something did move, call the \`${opts.tool}\` tool with the WHOLE page: \`## ${PAGE_CORE_HEADING}\` for what holds steady — it may honestly say it is still forming — and \`## ${PAGE_LATELY_HEADING}\` for what the last while has actually been like. Amend it; do not start over. You are the same person continuing, so keep every sentence that still holds and change the part that moved.${session}`,
|
|
@@ -1062,7 +1093,7 @@ export function writerInstruction(
|
|
|
1062
1093
|
// review): a page said "tonight is its first real one" every morning after,
|
|
1063
1094
|
// told a Fable session "My own system card says…" of Opus 5.5's, and
|
|
1064
1095
|
// carried its own revision line under the wake's "(Last revised …)".
|
|
1065
|
-
|
|
1096
|
+
pageWritingRule(input.pageForm),
|
|
1066
1097
|
"",
|
|
1067
1098
|
);
|
|
1068
1099
|
// WHAT A SENTENCE RESTS ON (day's end, 2026-10-23): the memories below come
|
|
@@ -200,7 +200,8 @@ each memory each kind once, `ref` the memory, the level, line, lived days, sum a
|
|
|
200
200
|
ids and numbers only) and one `promotion.shadow.sleep` row per sleep (N lanes, M support, K
|
|
201
201
|
overlap, the disagreements, `caughtUp`). What the arc has decided per memory sits in `meta`
|
|
202
202
|
`sleep.shadow.<id>` (read by the shadow only). Nothing the core, the page or the wake reads
|
|
203
|
-
changes.
|
|
203
|
+
changes. Since 2026-11-01 (Mike, lightly held) the default is `"off"`: no shadow row or mark
|
|
204
|
+
is written, and this code stays in place, inert, until the switch is set back.
|
|
204
205
|
The legacy
|
|
205
206
|
consolidation marking runs first, for legacy rows only; a post-upgrade row is counted
|
|
206
207
|
`not-legacy`. The first decay pass after the v8 upgrade runs a one-time census
|
|
@@ -94,7 +94,8 @@ export function promotionRecordKey(id: string): string {
|
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* THE SUPPORT DOOR IN SHADOW (2026-10-24 21:00, E2 addendum, Mike's yes
|
|
97
|
-
* 20:59; `physics.CORE_DOOR_SUPPORT` "shadow"
|
|
97
|
+
* 20:59; `physics.CORE_DOOR_SUPPORT` "shadow" — the default until 2026-11-01,
|
|
98
|
+
* when Mike retired it: off by default since, this code inert): the two lanes
|
|
98
99
|
* promote exactly as off, and beside them the support door is asked the same
|
|
99
100
|
* question for every candidate the lanes consider. One row per
|
|
100
101
|
* DISAGREEMENT — `ref` the memory; payload `memory`, `kind` (`wouldPromote`:
|