@serene-pub/contracts 0.6.0-pr-8 → 0.6.0-pr-9

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/dist/queries.d.ts CHANGED
@@ -79,6 +79,69 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
79
79
  * The Dungeon Crawler's Planner reads its player's lane so.
80
80
  */
81
81
  channelLane: string;
82
+ /**
83
+ * 🚧 **Firsthand** (opt-in, 2026-11-15) — wired
84
+ * `$.input.characterId`, the character a reply is spoken by on
85
+ * its own turn, the rows this node returns leave out what that
86
+ * member was not there for. Unwired: no filter, the node reads
87
+ * as it always did. A card-less character seat's turn is read
88
+ * from the session scope's `currentCastMemberId`, so wire
89
+ * `scope` too. Wired to anything that is not one character id
90
+ * (a narrator's turn, an envoy's, several characters, null)
91
+ * on a turn whose scope names no such member: nothing is left
92
+ * out, and the run's receipt says so.
93
+ *
94
+ * The rule, for one cast member on its own turn:
95
+ * 1. By scene — a member was there for a scene if it spoke at
96
+ * least once in it (hidden, rewound and swiped-away lines do
97
+ * not count). Its own lines are always kept; messages in no
98
+ * scene are kept; the open scene is kept for its speaker.
99
+ * 2. By place, when `firsthandBy` names a cast-level state slot
100
+ * — a member was there for a message when its value of that
101
+ * slot in force at that message equals the message speaker's
102
+ * value in force at it (references compare by `entryId`;
103
+ * words trimmed and case-folded). Only values set in the
104
+ * session count; a value known only from the lorebook's
105
+ * timeline counts as missing. A message whose speaker has
106
+ * no value falls under rule 1. With a slot named, rule 2
107
+ * decides wherever both values exist.
108
+ * 3. The receipt says how many rows were left out and why.
109
+ *
110
+ * ⚠ Not Bench (a benched member is still in the scene), not a
111
+ * scene's cast. A port, not a parameter: a spec writes the slot name as
112
+ * a literal in the node's config (as `generating` on the reply
113
+ * outlets); a `params` field would put a structural fact of the
114
+ * document in the panel as a knob.
115
+ *
116
+ * ⏳ transitional: superseded for scenes and days by the
117
+ * `speakerInCast` param; kept because a pipeline of a user's own
118
+ * may wire it.
119
+ * @experimental
120
+ */
121
+ firsthandFor: string;
122
+ /**
123
+ * 🚧 **Firsthand, by place** (opt-in, 2026-11-15) — the
124
+ * cast-level stat, by full id or local name (as
125
+ * `stat-trail@1`'s `slotId`), that rule 2 of `firsthandFor`
126
+ * compares. Read only with `firsthandFor`; unwired, the rule is
127
+ * by scene alone. Same ⚠ as `firsthandFor`.
128
+ *
129
+ * ⏳ transitional: superseded for scenes and days by the
130
+ * `speakerInCast` param; kept because a pipeline of a user's own
131
+ * may wire it.
132
+ * @experimental
133
+ */
134
+ firsthandBy: string;
135
+ /**
136
+ * 🚧 **Outcome numbers** — wired, the genre's own Show outcomes
137
+ * field: `false` reads each outcome row as its result in words
138
+ * with no number (`metadata.diceWords`, stamped on every
139
+ * outcome row); anything else reads rows as written. Unwired:
140
+ * ⏳ the host reads the session's `showDice` field for that
141
+ * read (to retire with 0.7). Each read's own wiring decides.
142
+ * The rows themselves are never changed.
143
+ */
144
+ outcomeNumbers: string;
82
145
  }, "core:query/session-history@1"> & {
83
146
  kind: 'query';
84
147
  slots?: {
@@ -542,6 +605,47 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
542
605
  readonly en: "How much more a word in an entry's title counts than the same word among its keywords. 1 treats them alike.";
543
606
  };
544
607
  };
608
+ /**
609
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
610
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
611
+ * tie from its cast binding that reads on the reply's line at the reply's date and
612
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
613
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
614
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
615
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
616
+ * step writing for several characters) has no speaker and the read returns
617
+ * everything. `false` turns it off for this node.
618
+ */
619
+ readonly knownToSpeaker: {
620
+ readonly type: "boolean";
621
+ readonly default: true;
622
+ readonly label: {
623
+ readonly en: "Only what the speaker knows";
624
+ };
625
+ readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
626
+ };
627
+ /**
628
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
629
+ * host's lore read judges every history day against the stored cast of the scenes compiled
630
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
631
+ * read. `false` turns it off for this node.
632
+ */
633
+ readonly speakerInCast: {
634
+ type: 'boolean';
635
+ default: boolean;
636
+ label: {
637
+ en: string;
638
+ };
639
+ description: string;
640
+ };
641
+ readonly speakerMemory: {
642
+ type: 'boolean';
643
+ default: boolean;
644
+ label: {
645
+ en: string;
646
+ };
647
+ description: string;
648
+ };
545
649
  readonly characterLoreMaxEntries: {
546
650
  type: 'integer';
547
651
  min: number;
@@ -874,6 +978,47 @@ export declare const worldLore: import("@serene-pub/sdk").Pinned<import("@serene
874
978
  };
875
979
  shared: boolean;
876
980
  };
981
+ /**
982
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
983
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
984
+ * tie from its cast binding that reads on the reply's line at the reply's date and
985
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
986
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
987
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
988
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
989
+ * step writing for several characters) has no speaker and the read returns
990
+ * everything. `false` turns it off for this node.
991
+ */
992
+ knownToSpeaker: {
993
+ type: 'boolean';
994
+ default: boolean;
995
+ label: {
996
+ en: string;
997
+ };
998
+ description: string;
999
+ };
1000
+ /**
1001
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
1002
+ * host's lore read judges every history day against the stored cast of the scenes compiled
1003
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
1004
+ * read. `false` turns it off for this node.
1005
+ */
1006
+ speakerInCast: {
1007
+ type: 'boolean';
1008
+ default: boolean;
1009
+ label: {
1010
+ en: string;
1011
+ };
1012
+ description: string;
1013
+ };
1014
+ speakerMemory: {
1015
+ type: 'boolean';
1016
+ default: boolean;
1017
+ label: {
1018
+ en: string;
1019
+ };
1020
+ description: string;
1021
+ };
877
1022
  };
878
1023
  };
879
1024
  } | undefined;
@@ -1099,6 +1244,47 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
1099
1244
  };
1100
1245
  shared: boolean;
1101
1246
  };
1247
+ /**
1248
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
1249
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
1250
+ * tie from its cast binding that reads on the reply's line at the reply's date and
1251
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
1252
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
1253
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
1254
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
1255
+ * step writing for several characters) has no speaker and the read returns
1256
+ * everything. `false` turns it off for this node.
1257
+ */
1258
+ knownToSpeaker: {
1259
+ type: 'boolean';
1260
+ default: boolean;
1261
+ label: {
1262
+ en: string;
1263
+ };
1264
+ description: string;
1265
+ };
1266
+ /**
1267
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
1268
+ * host's lore read judges every history day against the stored cast of the scenes compiled
1269
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
1270
+ * read. `false` turns it off for this node.
1271
+ */
1272
+ speakerInCast: {
1273
+ type: 'boolean';
1274
+ default: boolean;
1275
+ label: {
1276
+ en: string;
1277
+ };
1278
+ description: string;
1279
+ };
1280
+ speakerMemory: {
1281
+ type: 'boolean';
1282
+ default: boolean;
1283
+ label: {
1284
+ en: string;
1285
+ };
1286
+ description: string;
1287
+ };
1102
1288
  };
1103
1289
  };
1104
1290
  } | undefined;
@@ -1121,6 +1307,20 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
1121
1307
  * a comment in that file warns about. The corpus mirrors the three lanes now.
1122
1308
  *
1123
1309
  * Same retrieval as its two siblings: one scan, one filter.
1310
+ *
1311
+ * 🚧 Opting in to the firsthand option is wiring `firsthandFor` (⏳ transitional,
1312
+ * see `speakerInCast`).
1313
+ *
1314
+ * 🚧 `speakerInCast` (param, on by default; name provisional): for a compiled
1315
+ * day, if the speaker is in the stored cast (`scene_characters`, role
1316
+ * participant) of every scene of this session compiled into it, the day's own
1317
+ * text; if it misses any, the summaries of the scenes whose cast lists it, in
1318
+ * story order, under the day's date, every one of them. A day it is in none of, or
1319
+ * whose kept scenes have no summary, is left out of the read itself. The host's
1320
+ * lore read judges it, so it holds however the day is found. A day with none
1321
+ * of this session's scenes is untouched. The speaker is the character the
1322
+ * run speaks as; a run that speaks as nobody, or a card in no seat, reads
1323
+ * everything. `false` turns it off for this node.
1124
1324
  * @experimental
1125
1325
  */
1126
1326
  export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
@@ -1138,6 +1338,38 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1138
1338
  exclusions: string;
1139
1339
  }, {
1140
1340
  scope: string;
1341
+ /**
1342
+ * 🚧 **Firsthand** (opt-in, 2026-11-15) — wired
1343
+ * `$.input.characterId`, an entry is left out when a scene of
1344
+ * this session compiled into it is one that member was not
1345
+ * there for. The rule, the unwired and not-one-character cases,
1346
+ * and the ⚠ are those of `core:query/session-history@1`'s
1347
+ * `firsthandFor`, plus: a scene counts as "was there for" by
1348
+ * `core:query/earlier-scenes@1`'s rule, and an entry with none
1349
+ * of this session's scenes is kept. A left-out entry is
1350
+ * published on `exclusions` with the reason, so
1351
+ * `core:task/eligibility@1` marks it ineligible whichever
1352
+ * mechanism found it; `main` and `hits` are unchanged. Unwired,
1353
+ * nothing changes.
1354
+ *
1355
+ * ⏳ transitional: superseded for scenes and days by the
1356
+ * `speakerInCast` param; kept because a pipeline of a user's own
1357
+ * may wire it.
1358
+ * @experimental
1359
+ */
1360
+ firsthandFor: string;
1361
+ /**
1362
+ * 🚧 **Firsthand, by place** (opt-in, 2026-11-15) — as
1363
+ * `core:query/session-history@1`'s `firsthandBy`: the
1364
+ * cast-level stat rule 2 compares, read only with
1365
+ * `firsthandFor`.
1366
+ *
1367
+ * ⏳ transitional: superseded for scenes and days by the
1368
+ * `speakerInCast` param; kept because a pipeline of a user's own
1369
+ * may wire it.
1370
+ * @experimental
1371
+ */
1372
+ firsthandBy: string;
1141
1373
  }, "core:query/history-entries@1"> & {
1142
1374
  kind: 'query';
1143
1375
  slots?: {
@@ -1321,6 +1553,47 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1321
1553
  };
1322
1554
  shared: boolean;
1323
1555
  };
1556
+ /**
1557
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
1558
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
1559
+ * tie from its cast binding that reads on the reply's line at the reply's date and
1560
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
1561
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
1562
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
1563
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
1564
+ * step writing for several characters) has no speaker and the read returns
1565
+ * everything. `false` turns it off for this node.
1566
+ */
1567
+ knownToSpeaker: {
1568
+ type: 'boolean';
1569
+ default: boolean;
1570
+ label: {
1571
+ en: string;
1572
+ };
1573
+ description: string;
1574
+ };
1575
+ /**
1576
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
1577
+ * host's lore read judges every history day against the stored cast of the scenes compiled
1578
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
1579
+ * read. `false` turns it off for this node.
1580
+ */
1581
+ speakerInCast: {
1582
+ type: 'boolean';
1583
+ default: boolean;
1584
+ label: {
1585
+ en: string;
1586
+ };
1587
+ description: string;
1588
+ };
1589
+ speakerMemory: {
1590
+ type: 'boolean';
1591
+ default: boolean;
1592
+ label: {
1593
+ en: string;
1594
+ };
1595
+ description: string;
1596
+ };
1324
1597
  };
1325
1598
  };
1326
1599
  } | undefined;
@@ -1410,15 +1683,20 @@ export interface SceneBoundary {
1410
1683
  trigger: string;
1411
1684
  /** What the boundary trigger says, as the chip and the divider say it ("the day changed"). */
1412
1685
  reason: string;
1686
+ /** 🚧 The story lane the line is on (`main`, or a story channel's slug). */
1687
+ channel: string;
1413
1688
  }
1414
1689
  /**
1415
1690
  * 🚧 **Where scenes begin** — the scenes routine's code-only look back over
1416
- * the session's `main` channel (every name here is provisional).
1691
+ * each of the session's story lanes (every name here is provisional): `main`,
1692
+ * and each channel the genre declares with `lore: 'story'`, each with its own
1693
+ * rounds, anchor, open scene and boundary triggers.
1417
1694
  *
1418
- * It walks the channel's standing lines up to the newest line that is at least
1695
+ * It walks a lane's standing lines up to the newest line that is at least
1419
1696
  * `depth` rounds old (a round as the turn order counts it), evaluates the
1420
1697
  * session's enabled boundary triggers line by line, and returns
1421
- * `SceneBoundary[]` in line order on `main`. **A query writes nothing.**
1698
+ * `SceneBoundary[]` with `main`'s first, then each other lane's, each in line
1699
+ * order. **A query writes nothing.**
1422
1700
  *
1423
1701
  * Where the walk starts is derived, never stored: after the latest of the
1424
1702
  * channel's latest scene boundary, its latest decided or offered scene cue, and
@@ -1514,9 +1792,27 @@ export declare const sceneSummaryDue: import("@serene-pub/sdk").Pinned<import("@
1514
1792
  * entry, in story order (oldest first, by where each scene starts: its opening
1515
1793
  * line, else its smallest selected line), at most the newest 200. `name` is
1516
1794
  * the scene's name as shown; `firstLineId` is its first line's message id.
1795
+ * Each scene also carries `openedStoryClock: { year, month, day, hour, minute } | null`:
1796
+ * the session's story clock when the scene opened (columns `opened_story_clock_*`),
1797
+ * `null` when it opened with no clock, and `null` when the lorebook keeps no
1798
+ * timeline, whatever is stored.
1517
1799
  * `maxTokens` is `floor(share × budget.total)`, or `null` when `budget` is
1518
1800
  * unwired (then the block is not capped).
1519
1801
  *
1802
+ * Opt-in: wire `firsthandFor` (and `firsthandBy`) and the scenes the speaking
1803
+ * cast member was not there for are left out of `scenes` (⏳ transitional,
1804
+ * see `speakerInCast`).
1805
+ *
1806
+ * 🚧 `speakerInCast` (param, on by default; name provisional): only the scenes
1807
+ * whose stored cast (`scene_characters`, role participant) lists the speaker
1808
+ * are returned. An open scene is kept; a scene whose cast was never worked out
1809
+ * (no stored cast at all) is kept; so is one whose worked-out cast lists
1810
+ * nobody. The speaker is the character the run speaks
1811
+ * as (`scope`); a run that speaks as nobody, or a card in no seat, reads
1812
+ * everything. `false` turns it off for this node.
1813
+ *
1814
+ * It reads the story channel named by `channel` (`main` when absent).
1815
+ *
1520
1816
  * It returns data, never rendered text: `core:task/assemble@2` decides which
1521
1817
  * scenes show (only those whose first line is older than the first line the
1522
1818
  * prompt keeps) and fits them to `maxTokens`.
@@ -1531,6 +1827,40 @@ export declare const earlierScenes: import("@serene-pub/sdk").Pinned<import("@se
1531
1827
  }, {
1532
1828
  scope: string;
1533
1829
  budget: string;
1830
+ /**
1831
+ * 🚧 **Firsthand** (opt-in, 2026-11-15) — wired
1832
+ * `$.input.characterId`, the summaries this node returns leave
1833
+ * out the scenes that member was not there for. The rule, the
1834
+ * unwired and not-one-character cases, and the ⚠ are those of
1835
+ * `core:query/session-history@1`'s `firsthandFor`, plus: a
1836
+ * summary is kept for a member that was there for the scene's last
1837
+ * message or more than half of its messages, else left out. The
1838
+ * receipt says how many summaries were left out and why.
1839
+ *
1840
+ * ⏳ transitional: superseded for scenes and days by the
1841
+ * `speakerInCast` param; kept because a pipeline of a user's own
1842
+ * may wire it.
1843
+ * @experimental
1844
+ */
1845
+ firsthandFor: string;
1846
+ /**
1847
+ * 🚧 **Firsthand, by place** (opt-in, 2026-11-15) — as
1848
+ * `core:query/session-history@1`'s `firsthandBy`: the
1849
+ * cast-level stat rule 2 compares, read only with
1850
+ * `firsthandFor`.
1851
+ *
1852
+ * ⏳ transitional: superseded for scenes and days by the
1853
+ * `speakerInCast` param; kept because a pipeline of a user's own
1854
+ * may wire it.
1855
+ * @experimental
1856
+ */
1857
+ firsthandBy: string;
1858
+ /**
1859
+ * 🚧 The story channel whose earlier scenes are read; absent: `main`.
1860
+ * A summary of one story channel never enters another channel's block (CP8).
1861
+ * @experimental
1862
+ */
1863
+ channel: string;
1534
1864
  }, "core:query/earlier-scenes@1"> & {
1535
1865
  kind: 'query';
1536
1866
  slots?: {
@@ -1550,6 +1880,138 @@ export declare const earlierScenes: import("@serene-pub/sdk").Pinned<import("@se
1550
1880
  readonly en: "How much of the context window the summaries of earlier scenes may take. When they do not fit, the oldest are left out first.";
1551
1881
  };
1552
1882
  };
1883
+ readonly speakerInCast: {
1884
+ readonly type: "boolean";
1885
+ readonly default: true;
1886
+ readonly label: {
1887
+ readonly en: "Only scenes the speaker was in";
1888
+ };
1889
+ readonly description: "Leaves out the earlier scenes whose cast does not list the speaking character (an open scene, and one whose cast was never worked out, are kept), and does nothing on a turn no single character speaks, such as the narrator’s.";
1890
+ };
1891
+ readonly speakerMemory: {
1892
+ type: 'boolean';
1893
+ default: boolean;
1894
+ label: {
1895
+ en: string;
1896
+ };
1897
+ description: string;
1898
+ };
1899
+ };
1900
+ };
1901
+ } | undefined;
1902
+ }>;
1903
+ /**
1904
+ * 🚧 **Entries the lines name** — the entries the session already has whose
1905
+ * name or key appears in the lines a step read (every name here is
1906
+ * provisional).
1907
+ *
1908
+ * `main` is `Array<{ entryId: number, entryType: string, name: string,
1909
+ * content: string, byPerson: boolean }>`: the entries of `entryTypes` the
1910
+ * session reads (its own book first, then the attached lorebook, each as the
1911
+ * session reads it, held changes included; switched-off, archived and unseen
1912
+ * entries left out), whose name or one of whose keys appears as whole words
1913
+ * in one of `messages` (the SDK's `namesName`), in that order, at most
1914
+ * `maxEntries`, and within `floor(share × budget.total)` tokens when `budget`
1915
+ * is wired (an entry too long for what is left is left out, the next one
1916
+ * still tried). `content` is the whole text as the session reads it.
1917
+ * `byPerson` is true for an entry a person wrote (`provenance: "human"`).
1918
+ * `ids` is the `entryId` of each row of `main`, in order: what a write passes
1919
+ * as `create-lore-entry@1`'s `shown`. Deterministic, no model.
1920
+ *
1921
+ * ⚠ Not `core:query/entity-search@1` (ranked retrieval by annotated entities
1922
+ * over its own window), not `core:query/lorebook-entries@1` (the listing).
1923
+ * **A query writes nothing.**
1924
+ * @experimental
1925
+ */
1926
+ export declare const entriesNamed: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1927
+ main: string;
1928
+ ids: string;
1929
+ }, {
1930
+ scope: string;
1931
+ messages: string;
1932
+ budget: string;
1933
+ }, "core:query/entries-named@1"> & {
1934
+ kind: 'query';
1935
+ slots?: {
1936
+ readonly params: {
1937
+ readonly kind: "parameters";
1938
+ readonly schema: {
1939
+ readonly entryTypes: {
1940
+ readonly type: "list";
1941
+ readonly item: {
1942
+ readonly type: "text";
1943
+ };
1944
+ readonly label: {
1945
+ readonly en: "Entry types looked for";
1946
+ };
1947
+ readonly description: {
1948
+ readonly en: "Which kinds of entry to look for, by type id. Leave it empty for world lore.";
1949
+ };
1950
+ };
1951
+ readonly maxEntries: {
1952
+ readonly type: "integer";
1953
+ readonly min: 0;
1954
+ readonly default: 12;
1955
+ readonly label: {
1956
+ readonly en: "Entries shown at most";
1957
+ };
1958
+ readonly description: {
1959
+ readonly en: "How many existing entries the model is shown before it writes. 0 shows none.";
1960
+ };
1961
+ };
1962
+ readonly share: {
1963
+ readonly type: "number";
1964
+ readonly min: 0;
1965
+ readonly max: 1;
1966
+ readonly default: 0.2;
1967
+ readonly label: {
1968
+ readonly en: "Share — entries shown";
1969
+ };
1970
+ readonly description: {
1971
+ readonly en: "How much of the context window the entries shown may take. An entry too long to show whole is left out.";
1972
+ };
1973
+ };
1974
+ /**
1975
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
1976
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
1977
+ * tie from its cast binding that reads on the reply's line at the reply's date and
1978
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
1979
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
1980
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
1981
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
1982
+ * step writing for several characters) has no speaker and the read returns
1983
+ * everything. `false` turns it off for this node.
1984
+ */
1985
+ readonly knownToSpeaker: {
1986
+ readonly type: "boolean";
1987
+ readonly default: true;
1988
+ readonly label: {
1989
+ readonly en: "Only what the speaker knows";
1990
+ };
1991
+ readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
1992
+ };
1993
+ /**
1994
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
1995
+ * host's lore read judges every history day against the stored cast of the scenes compiled
1996
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
1997
+ * read. `false` turns it off for this node.
1998
+ */
1999
+ readonly speakerInCast: {
2000
+ type: 'boolean';
2001
+ default: boolean;
2002
+ label: {
2003
+ en: string;
2004
+ };
2005
+ description: string;
2006
+ };
2007
+ readonly speakerMemory: {
2008
+ type: 'boolean';
2009
+ default: boolean;
2010
+ label: {
2011
+ en: string;
2012
+ };
2013
+ description: string;
2014
+ };
1553
2015
  };
1554
2016
  };
1555
2017
  } | undefined;
@@ -1725,6 +2187,47 @@ export declare const vectorSearch: import("@serene-pub/sdk").Pinned<import("@ser
1725
2187
  };
1726
2188
  readonly description: "How sharply a loose resemblance counts for less than a close one. 1 takes the similarity as it comes; higher pushes vague matches down without ever removing them, so they can still be found by a keyword or a name.";
1727
2189
  };
2190
+ /**
2191
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
2192
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
2193
+ * tie from its cast binding that reads on the reply's line at the reply's date and
2194
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
2195
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
2196
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
2197
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
2198
+ * step writing for several characters) has no speaker and the read returns
2199
+ * everything. `false` turns it off for this node.
2200
+ */
2201
+ readonly knownToSpeaker: {
2202
+ readonly type: "boolean";
2203
+ readonly default: true;
2204
+ readonly label: {
2205
+ readonly en: "Only what the speaker knows";
2206
+ };
2207
+ readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
2208
+ };
2209
+ /**
2210
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
2211
+ * host's lore read judges every history day against the stored cast of the scenes compiled
2212
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
2213
+ * read. `false` turns it off for this node.
2214
+ */
2215
+ readonly speakerInCast: {
2216
+ type: 'boolean';
2217
+ default: boolean;
2218
+ label: {
2219
+ en: string;
2220
+ };
2221
+ description: string;
2222
+ };
2223
+ readonly speakerMemory: {
2224
+ type: 'boolean';
2225
+ default: boolean;
2226
+ label: {
2227
+ en: string;
2228
+ };
2229
+ description: string;
2230
+ };
1728
2231
  };
1729
2232
  };
1730
2233
  } | undefined;
@@ -1877,6 +2380,47 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1877
2380
  };
1878
2381
  readonly description: "How much weight a shared name carries against the other ways an entry can be found. 0 leaves the arm finding things and ranking them last.";
1879
2382
  };
2383
+ /**
2384
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
2385
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
2386
+ * tie from its cast binding that reads on the reply's line at the reply's date and
2387
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
2388
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
2389
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
2390
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
2391
+ * step writing for several characters) has no speaker and the read returns
2392
+ * everything. `false` turns it off for this node.
2393
+ */
2394
+ readonly knownToSpeaker: {
2395
+ readonly type: "boolean";
2396
+ readonly default: true;
2397
+ readonly label: {
2398
+ readonly en: "Only what the speaker knows";
2399
+ };
2400
+ readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
2401
+ };
2402
+ /**
2403
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
2404
+ * host's lore read judges every history day against the stored cast of the scenes compiled
2405
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
2406
+ * read. `false` turns it off for this node.
2407
+ */
2408
+ readonly speakerInCast: {
2409
+ type: 'boolean';
2410
+ default: boolean;
2411
+ label: {
2412
+ en: string;
2413
+ };
2414
+ description: string;
2415
+ };
2416
+ readonly speakerMemory: {
2417
+ type: 'boolean';
2418
+ default: boolean;
2419
+ label: {
2420
+ en: string;
2421
+ };
2422
+ description: string;
2423
+ };
1880
2424
  };
1881
2425
  };
1882
2426
  } | undefined;
@@ -2139,6 +2683,47 @@ export declare const entityLink: import("@serene-pub/sdk").Pinned<import("@seren
2139
2683
  };
2140
2684
  readonly description: "A ceiling on how many entries one turn may have matched to a description. The best matches are kept; this never brings in an entry nothing else found, it only changes where one comes in the order.";
2141
2685
  };
2686
+ /**
2687
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
2688
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
2689
+ * tie from its cast binding that reads on the reply's line at the reply's date and
2690
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
2691
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
2692
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
2693
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
2694
+ * step writing for several characters) has no speaker and the read returns
2695
+ * everything. `false` turns it off for this node.
2696
+ */
2697
+ readonly knownToSpeaker: {
2698
+ readonly type: "boolean";
2699
+ readonly default: true;
2700
+ readonly label: {
2701
+ readonly en: "Only what the speaker knows";
2702
+ };
2703
+ readonly description: "Leaves out the entries the speaking character does not know (marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
2704
+ };
2705
+ /**
2706
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
2707
+ * host's lore read judges every history day against the stored cast of the scenes compiled
2708
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
2709
+ * read. `false` turns it off for this node.
2710
+ */
2711
+ readonly speakerInCast: {
2712
+ type: 'boolean';
2713
+ default: boolean;
2714
+ label: {
2715
+ en: string;
2716
+ };
2717
+ description: string;
2718
+ };
2719
+ readonly speakerMemory: {
2720
+ type: 'boolean';
2721
+ default: boolean;
2722
+ label: {
2723
+ en: string;
2724
+ };
2725
+ description: string;
2726
+ };
2142
2727
  };
2143
2728
  };
2144
2729
  } | undefined;
@@ -2259,6 +2844,14 @@ export declare const relationshipsPerspectives: import("@serene-pub/sdk").Pinned
2259
2844
  en: string;
2260
2845
  };
2261
2846
  };
2847
+ speakerMemory?: {
2848
+ type: 'boolean';
2849
+ default: boolean;
2850
+ label: {
2851
+ en: string;
2852
+ };
2853
+ description: string;
2854
+ } | undefined;
2262
2855
  };
2263
2856
  };
2264
2857
  } | undefined;
@@ -2331,6 +2924,14 @@ export declare const relationshipsKnown: import("@serene-pub/sdk").Pinned<import
2331
2924
  en: string;
2332
2925
  };
2333
2926
  };
2927
+ speakerMemory?: {
2928
+ type: 'boolean';
2929
+ default: boolean;
2930
+ label: {
2931
+ en: string;
2932
+ };
2933
+ description: string;
2934
+ } | undefined;
2334
2935
  };
2335
2936
  };
2336
2937
  } | undefined;
@@ -2522,6 +3123,47 @@ export declare const relationshipSearch: import("@serene-pub/sdk").Pinned<import
2522
3123
  readonly en: "Also offer the links one step from the lore this turn found — a room’s ways out, what an item belongs to. Off keeps the band to relationships between characters.";
2523
3124
  };
2524
3125
  };
3126
+ /**
3127
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
3128
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
3129
+ * tie from its cast binding that reads on the reply's line at the reply's date and
3130
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
3131
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
3132
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
3133
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
3134
+ * step writing for several characters) has no speaker and the read returns
3135
+ * everything. `false` turns it off for this node.
3136
+ */
3137
+ readonly knownToSpeaker: {
3138
+ readonly type: "boolean";
3139
+ readonly default: true;
3140
+ readonly label: {
3141
+ readonly en: "Only what the speaker knows";
3142
+ };
3143
+ readonly description: "Leaves out the entries the speaking character does not know, and the links that lead to them (an entry marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
3144
+ };
3145
+ /**
3146
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
3147
+ * host's lore read judges every history day against the stored cast of the scenes compiled
3148
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
3149
+ * read. `false` turns it off for this node.
3150
+ */
3151
+ readonly speakerInCast: {
3152
+ type: 'boolean';
3153
+ default: boolean;
3154
+ label: {
3155
+ en: string;
3156
+ };
3157
+ description: string;
3158
+ };
3159
+ readonly speakerMemory: {
3160
+ type: 'boolean';
3161
+ default: boolean;
3162
+ label: {
3163
+ en: string;
3164
+ };
3165
+ description: string;
3166
+ };
2525
3167
  };
2526
3168
  };
2527
3169
  } | undefined;
@@ -3343,7 +3985,8 @@ export declare const channelLane: import("@serene-pub/sdk").Pinned<import("@sere
3343
3985
  * recorded is dropped here, since it is already one of its points.
3344
3986
  *
3345
3987
  * Each point: `{ value, layer: 'session' | 'timeline', anchor, provenance }` —
3346
- * `anchor` is `{ messageId }` or `{ historyEntryId, date }`; `provenance` is
3988
+ * `anchor` is `{ messageId }` or `{ historyEntryId, date }` (`date` is `null` when
3989
+ * the lorebook keeps no timeline, whatever is stored); `provenance` is
3347
3990
  * `{ updatedBy, sessionId, messageId, sceneId, note, createdAt }` (who wrote
3348
3991
  * it: `user`, `run:<id>`, or `session:<id>` for write-back). The document is
3349
3992
  * `{ lorebookId, sessionId, branchId, owner, slotId, mode, tracked, points }`;
@@ -3823,6 +4466,47 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
3823
4466
  };
3824
4467
  readonly description: "Also list, on each entry, the links that lead from it to other entries — a room’s ways out, what it is inside — each said from that entry.";
3825
4468
  };
4469
+ /**
4470
+ * 🚧 (kn-2a, 2026-11-16; name provisional) An entry marked *not common
4471
+ * knowledge* is left out unless the speaker has a knowledge tie to it (any active
4472
+ * tie from its cast binding that reads on the reply's line at the reply's date and
4473
+ * is not *kept from*) or it is the place the speaker stands in; an entry a *kept
4474
+ * from* tie wins for is left out, marked or not. The speaker is this read's own
4475
+ * `speaker` in-port when wired, else the character the run speaks as (`scope`); a
4476
+ * run that speaks as nobody (a narrator's turn, a routine, an action, an envoy, a
4477
+ * step writing for several characters) has no speaker and the read returns
4478
+ * everything. `false` turns it off for this node.
4479
+ */
4480
+ readonly knownToSpeaker: {
4481
+ readonly type: "boolean";
4482
+ readonly default: true;
4483
+ readonly label: {
4484
+ readonly en: "Only what the speaker knows";
4485
+ };
4486
+ readonly description: "Leaves out the entries the speaking character does not know, and the links that name them (an entry marked not common knowledge with no knowledge tie to it, or kept from it; the place it stands in always counts as known), and does nothing on a turn no single character speaks, such as the narrator’s.";
4487
+ };
4488
+ /**
4489
+ * 🚧 (wt-1b-fix2, 2026-11-17; name provisional) The same switch as on `history-entries@1`: the
4490
+ * host's lore read judges every history day against the stored cast of the scenes compiled
4491
+ * into it, for the read that asked, so a pipeline that turns it off must turn it off on every
4492
+ * read. `false` turns it off for this node.
4493
+ */
4494
+ readonly speakerInCast: {
4495
+ type: 'boolean';
4496
+ default: boolean;
4497
+ label: {
4498
+ en: string;
4499
+ };
4500
+ description: string;
4501
+ };
4502
+ readonly speakerMemory: {
4503
+ type: 'boolean';
4504
+ default: boolean;
4505
+ label: {
4506
+ en: string;
4507
+ };
4508
+ description: string;
4509
+ };
3826
4510
  };
3827
4511
  };
3828
4512
  } | undefined;