@serene-pub/contracts 0.6.0-pr-4 → 0.6.0-pr-6

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
@@ -8,10 +8,10 @@
8
8
  export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
9
9
  /**
10
10
  * Transcript rows, on both — `messages@1` (was
11
- * `context-candidates@1` until 2026-09-17, U5d review W9: the
11
+ * `context-candidates@1` until 2026-09-17: the
12
12
  * value had always been rows, for `process-messages` and
13
13
  * `prose-transcript`, and the intent rides `band` alone).
14
- * Neither is a candidates list (R-a, the same day): a spec that
14
+ * Neither is a candidates list (ruled the same day): a spec that
15
15
  * wires either into a merge, a concat or `assemble`'s
16
16
  * `candidates` gets a `validate()` warning naming `band` — the
17
17
  * host drops rows handed as candidates rather than ranking them.
@@ -48,12 +48,12 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
48
48
  *
49
49
  * Not read with `unplayedOnly` (the talk keeps its `limit`)
50
50
  * or a wired `messageId` (one row). There was a `budget`
51
- * in-port once (culled 2026-09-16, R-12): declared and read by
51
+ * in-port once (culled 2026-09-16): declared and read by
52
52
  * nothing. This one has a reader.
53
53
  */
54
54
  budget: string;
55
55
  /**
56
- * **One row, by id** (lair re-plan R11, 2026-09-28): wired —
56
+ * **One row, by id** (2026-09-28): wired —
57
57
  * `$.input.messageId`, the message a press on a message's ⋮
58
58
  * was made on — the read is exactly that row, whatever its
59
59
  * channel, as a one-row transcript; `limit`, `budget`,
@@ -65,6 +65,20 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
65
65
  * carries the id, never the text, so the row is read here.
66
66
  */
67
67
  messageId: string;
68
+ /**
69
+ * 🚧 **One channel lane, chosen at run time** (2026-10-15):
70
+ * wired — `$.input.channel`, the channel lane the turn was
71
+ * fired on — the read is exactly that channel lane, in place
72
+ * of the `channel` parameter. A bare slug here is its lane 1,
73
+ * never the whole channel: the run names the channel lane a
74
+ * row is on, and a channel lane is one conversation (`parley` is the owner's lane with the
75
+ * Planner, `parley:2` another player's — reading the slug
76
+ * would hand one player's private talk to another's reply).
77
+ * `limit`, `budget`, `unplayedOnly` and `talkOnly` apply as
78
+ * they would to the parameter. Unwired, the parameter is read.
79
+ * The Dungeon Crawler's Planner reads its player's lane so.
80
+ */
81
+ channelLane: string;
68
82
  }, "core:query/session-history@1"> & {
69
83
  kind: 'query';
70
84
  slots?: {
@@ -105,7 +119,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
105
119
  *
106
120
  * ⚠ **Not read when `budget` is wired** (history window,
107
121
  * 2026-10-03): that read is sized by the context window,
108
- * which belongs to the sampling config (17 §1a) — a count
122
+ * which belongs to the sampling config — a count
109
123
  * of rows beside it is the same number entered twice, and
110
124
  * the count is what moved the prompt's first line on every
111
125
  * turn once a session passed it. Every shipped reply wires
@@ -119,7 +133,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
119
133
  readonly description: "How many recent messages are read. Not used where the read is sized by the context window — every shipped reply — which reads as much as the window could hold twice over and lets the prompt decide where the conversation starts.";
120
134
  };
121
135
  /**
122
- * The channel this history reads (20 §7). A session's
136
+ * The channel this history reads. A session's
123
137
  * lanes are the mode's declaration; a pipeline chooses
124
138
  * which one builds its context — the map narrator reads
125
139
  * `map`, the chat pipeline reads `main`, and a custom
@@ -131,7 +145,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
131
145
  readonly description: "Which of the session's channels this history reads. The chat log is 'main'.";
132
146
  };
133
147
  /**
134
- * **Only the unplayed talk** (lair re-plan R13, 2026-09-28):
148
+ * **Only the unplayed talk** (2026-09-28):
135
149
  * the rows of a side channel written since the story's
136
150
  * newest generated line — the newest visible `main` row
137
151
  * whose role is not `user`. Of those it keeps a person's own
@@ -155,8 +169,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
155
169
  };
156
170
  };
157
171
  /**
158
- * **Side channels as talk** (lair re-plan R10's fold-in of
159
- * the R9 follow-up, 2026-09-28): on every channel but
172
+ * **Side channels as talk** (2026-09-28): on every channel but
160
173
  * `main`, keep only the talk — a person's own lines and the
161
174
  * replies a run fired ON that channel wrote there — by the
162
175
  * rule `unplayedOnly` uses, without its bound. A row a
@@ -180,16 +193,33 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
180
193
  readonly en: "On every channel but 'main', read only what was said there: people's lines and the replies to them — never a greeting or a turn's notes.";
181
194
  };
182
195
  };
196
+ /**
197
+ * 🚧 **Table lines** (2026-10-15): the rows written as the
198
+ * table's own (`create-message@1`'s `tableLine` — a Dungeon
199
+ * Crawler roll line). On by default, so every spec reads
200
+ * what it always read; a spec whose brief already carries
201
+ * what those lines say turns them off, and says so here.
202
+ */
203
+ readonly tableLines: {
204
+ readonly type: "boolean";
205
+ readonly default: true;
206
+ readonly label: {
207
+ readonly en: "Read the table lines";
208
+ };
209
+ readonly description: {
210
+ readonly en: "Include the table's own lines — roll lines and the like — in what this history reads. Off: only what was said.";
211
+ };
212
+ };
183
213
  /**
184
214
  * The transcript's intent, on the node that produces the
185
- * transcript (R-7 P5, built 2026-09-16 — see
215
+ * transcript (built 2026-09-16 — see
186
216
  * `bandIntentFields`). `weight: 0.4` and `minInclude: 6`
187
217
  * were here once, moved to the ranker's per-source map as
188
218
  * `share.messages` and `minEntries.messages`, and are back
189
- * where 16 §5a always said they belonged, at the numbers
219
+ * on the source, where a source's intent belongs, at the numbers
190
220
  * the map held: half the window is `MESSAGE_FILL_FRACTION`,
191
221
  * and six is the minimum the map carried for the one band
192
- * R6 allows one.
222
+ * allowed a minimum (recent conversation; lore has none).
193
223
  *
194
224
  * ⚠ **No shipped spec ranks a message candidate** —
195
225
  * `main` carries the transcript rows for
@@ -198,7 +228,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
198
228
  * keep it so: `entity-search`'s past lines publish on
199
229
  * their own `recalledLines` band, and `vector-search`
200
230
  * asks the index for lorebook entries only (the app's
201
- * binding names them; plan A1). Its intent
231
+ * binding names them). Its intent
202
232
  * still reaches the ranker, on the `band` out-port a spec
203
233
  * concatenates in with the lore, and its `share` is what
204
234
  * halves the pool the lore sources divide: the
@@ -247,7 +277,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
247
277
  };
248
278
  };
249
279
  /**
250
- * Read, at last (R-7 P5; it was declared and read by nothing
280
+ * Read, at last (it was declared and read by nothing
251
281
  * from the day it was written, allow-listed in the
252
282
  * declared-reads guard until this landed). `normal` is no
253
283
  * ordering at all; see `BAND_PRIORITIES` in the SDK for
@@ -284,7 +314,7 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
284
314
  /**
285
315
  * The entries this scan **found and then excluded** — an
286
316
  * entry's own selective logic said *not here* — as verdicts
287
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
317
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
288
318
  * another mechanism brings in (by meaning, by name) is the
289
319
  * same entry the author ruled out, and
290
320
  * `core:task/eligibility@1` marks it ineligible with this
@@ -295,7 +325,7 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
295
325
  scope: string;
296
326
  /**
297
327
  * **Whose private lore this read is for** — a participant
298
- * reference (`character:<id>`), additive, 2026-09-17 (W1).
328
+ * reference (`character:<id>`), additive, 2026-09-17.
299
329
  *
300
330
  * Character-lore visibility is decided at the host read against
301
331
  * ONE subject, and until this port existed that subject was the
@@ -325,7 +355,7 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
325
355
  * Nothing read it and nothing seeded a row for it, so it rendered as
326
356
  * an empty picker. A source template belongs on the node whose job
327
357
  * is the rendering — a `render-entries` task, when one is bound
328
- * (culled unbound, plans/29 R-2); two declarations of one idea, one
358
+ * (culled: declared, never bound); two declarations of one idea, one
329
359
  * of them inert, is how they drift.
330
360
  */
331
361
  readonly params: {
@@ -652,7 +682,7 @@ export declare const worldLore: import("@serene-pub/sdk").Pinned<import("@serene
652
682
  /**
653
683
  * The entries this scan **found and then excluded** — an
654
684
  * entry's own selective logic said *not here* — as verdicts
655
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
685
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
656
686
  * another mechanism brings in (by meaning, by name) is the
657
687
  * same entry the author ruled out, and
658
688
  * `core:task/eligibility@1` marks it ineligible with this
@@ -760,7 +790,7 @@ export declare const worldLore: import("@serene-pub/sdk").Pinned<import("@serene
760
790
  description: string;
761
791
  };
762
792
  /**
763
- * Declared on all three lanes, held by one: since R-7 P2 a spec
793
+ * Declared on all three lanes, held by one: since 2026-09-15 a spec
764
794
  * names ONE owner for the seven knobs and the other lanes read the
765
795
  * owner's slot, so this is one row governing world lore, character
766
796
  * lore and history alike — not one row per lane. World lore
@@ -855,7 +885,7 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
855
885
  /**
856
886
  * The entries this scan **found and then excluded** — an
857
887
  * entry's own selective logic said *not here* — as verdicts
858
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
888
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
859
889
  * another mechanism brings in (by meaning, by name) is the
860
890
  * same entry the author ruled out, and
861
891
  * `core:task/eligibility@1` marks it ineligible with this
@@ -866,7 +896,7 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
866
896
  scope: string;
867
897
  /**
868
898
  * **Whose private lore this read is for** — a participant
869
- * reference (`character:<id>`), additive, 2026-09-17 (W1).
899
+ * reference (`character:<id>`), additive, 2026-09-17.
870
900
  *
871
901
  * Character-lore visibility is decided at the host read against
872
902
  * ONE subject, and until this port existed that subject was the
@@ -985,7 +1015,7 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
985
1015
  description: string;
986
1016
  };
987
1017
  /**
988
- * Declared on all three lanes, held by one: since R-7 P2 a spec
1018
+ * Declared on all three lanes, held by one: since 2026-09-15 a spec
989
1019
  * names ONE owner for the seven knobs and the other lanes read the
990
1020
  * owner's slot, so this is one row governing world lore, character
991
1021
  * lore and history alike — not one row per lane. World lore
@@ -1099,7 +1129,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1099
1129
  /**
1100
1130
  * The entries this scan **found and then excluded** — an
1101
1131
  * entry's own selective logic said *not here* — as verdicts
1102
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
1132
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
1103
1133
  * another mechanism brings in (by meaning, by name) is the
1104
1134
  * same entry the author ruled out, and
1105
1135
  * `core:task/eligibility@1` marks it ineligible with this
@@ -1207,7 +1237,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1207
1237
  description: string;
1208
1238
  };
1209
1239
  /**
1210
- * Declared on all three lanes, held by one: since R-7 P2 a spec
1240
+ * Declared on all three lanes, held by one: since 2026-09-15 a spec
1211
1241
  * names ONE owner for the seven knobs and the other lanes read the
1212
1242
  * owner's slot, so this is one row governing world lore, character
1213
1243
  * lore and history alike — not one row per lane. World lore
@@ -1297,7 +1327,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1297
1327
  }>;
1298
1328
  /**
1299
1329
  * **Who is in the world, and when** — the cast's presences, as the session's
1300
- * reading sees them (E-2, R4; built 2026-10-02).
1330
+ * reading sees them (built 2026-10-02).
1301
1331
  *
1302
1332
  * A presence says *this member, at this point of their own life, is here from
1303
1333
  * this date until that one* (`cast_presences`). The host reads the scope
@@ -1314,7 +1344,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1314
1344
  *
1315
1345
  * What it is for: `core:task/eligibility@1`'s presence rule, which gates the
1316
1346
  * lore of a member who is not in the world at `at`. A custom retrieval reads it
1317
- * the same way (plan E-11).
1347
+ * the same way.
1318
1348
  * @experimental
1319
1349
  */
1320
1350
  export declare const castPresences: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
@@ -1342,7 +1372,7 @@ export declare const vectorSearch: import("@serene-pub/sdk").Pinned<import("@ser
1342
1372
  }, {
1343
1373
  /**
1344
1374
  * Several query vectors, one ranked list each — a list, so
1345
- * `json@1` (was `vector@1` until 2026-09-17, U5d review W9):
1375
+ * `json@1` (was `vector@1` until 2026-09-17):
1346
1376
  * what `embed-text@1`'s `vectors` publishes and what the
1347
1377
  * host's search reads.
1348
1378
  */
@@ -1351,7 +1381,7 @@ export declare const vectorSearch: import("@serene-pub/sdk").Pinned<import("@ser
1351
1381
  /**
1352
1382
  * **Whose private lore this search may return** — a participant
1353
1383
  * reference, with `core:query/character-lore@1`'s exact
1354
- * semantics (C3, 2026-10-02): unwired, `null` or empty, the
1384
+ * semantics (2026-10-02): unwired, `null` or empty, the
1355
1385
  * scope decides as it always did; a `character:<id>` reads
1356
1386
  * that character's own private lore and nobody else's; any
1357
1387
  * other reference reads none. The leak guard for a search
@@ -1528,7 +1558,7 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1528
1558
  /**
1529
1559
  * **Whose private lore this search may return** — a participant
1530
1560
  * reference, with `core:query/character-lore@1`'s exact
1531
- * semantics (C3, 2026-10-02): unwired, `null` or empty, the
1561
+ * semantics (2026-10-02): unwired, `null` or empty, the
1532
1562
  * scope decides as it always did; a `character:<id>` reads
1533
1563
  * that character's own private lore and nobody else's; any
1534
1564
  * other reference reads none. The leak guard for a search
@@ -1544,7 +1574,7 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1544
1574
  readonly facet: "weights";
1545
1575
  readonly schema: {
1546
1576
  /**
1547
- * **On by default — 5** (R5, ruled 2026-09-30: all supported
1577
+ * **On by default — 5** (ruled 2026-09-30: all supported
1548
1578
  * retrieval is on by default; built 2026-10-02). It was 0,
1549
1579
  * the `maxRecursionDepth` / `admitThreshold` convention of
1550
1580
  * "turned on rather than arrived at"; the ruling replaced
@@ -1576,8 +1606,8 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1576
1606
  readonly description: "How many earlier messages this may return, as recalled lines, for naming what the scene is naming. They reach the prompt only where a pipeline ranks them and its context template places {{{recalledLines}}}. 0 turns this half off.";
1577
1607
  };
1578
1608
  /**
1579
- * The recalled lines' **share** — a band-namespaced field
1580
- * (§7), because this definition publishes lore on `main`
1609
+ * The recalled lines' **share** — a band-namespaced field,
1610
+ * because this definition publishes lore on `main`
1581
1611
  * and its own band on `messages`. Published as the band's
1582
1612
  * intent at the head of `messages` whenever `maxMessages`
1583
1613
  * turns the half on; the cap is `maxMessages`, which
@@ -1631,8 +1661,8 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1631
1661
  } | undefined;
1632
1662
  }>;
1633
1663
  /**
1634
- * Documentation search — the guide genre's one retrieval mechanism (plans/29
1635
- * R-18; built 2026-09-16 as U5g).
1664
+ * Documentation search — the guide genre's one retrieval mechanism (built
1665
+ * 2026-09-16).
1636
1666
  *
1637
1667
  * The app compiles its docs — its own guides and the SDK's — into a section
1638
1668
  * index at build time (title, anchor, body text per heading). This reads the
@@ -1754,7 +1784,7 @@ export declare const mentionSpans: import("@serene-pub/sdk").Pinned<import("@ser
1754
1784
  readonly facet: "weights";
1755
1785
  readonly schema: {
1756
1786
  /**
1757
- * **On by default — 8** (R5, ruled 2026-09-30: all supported
1787
+ * **On by default — 8** (ruled 2026-09-30: all supported
1758
1788
  * retrieval is on by default; built 2026-10-02). It was 0.
1759
1789
  * Still the mechanism's one switch: 0 turns it off.
1760
1790
  *
@@ -1859,7 +1889,7 @@ export declare const entityLink: import("@serene-pub/sdk").Pinned<import("@seren
1859
1889
  /**
1860
1890
  * **Whose private lore this search may return** — a participant
1861
1891
  * reference, with `core:query/character-lore@1`'s exact
1862
- * semantics (C3, 2026-10-02): unwired, `null` or empty, the
1892
+ * semantics (2026-10-02): unwired, `null` or empty, the
1863
1893
  * scope decides as it always did; a `character:<id>` reads
1864
1894
  * that character's own private lore and nobody else's; any
1865
1895
  * other reference reads none. The leak guard for a search
@@ -1905,7 +1935,7 @@ export declare const network: import("@serene-pub/sdk").Pinned<import("@serene-p
1905
1935
  * A Task, not a Query, even though it reads the cast: what it *is* is the
1906
1936
  * resolution — which characters appear, which get named, which scenario wins —
1907
1937
  * and that is a decision anyone should be able to replace. The read reaches the
1908
- * host like any other (F11 keeps the services out of the Task itself).
1938
+ * host like any other (a Task never holds host services itself).
1909
1939
  *
1910
1940
  * Separate from Assemble on purpose. Assemble allocates a budget and renders;
1911
1941
  * this decides what there is to render. A plugin that wants different character
@@ -1916,8 +1946,8 @@ export declare const sessionCast: import("@serene-pub/sdk").Pinned<import("@sere
1916
1946
  main: string;
1917
1947
  cast: string;
1918
1948
  /**
1919
- * The seated envoys on their own (PLAN-turn-order §4.4,
1920
- * additive 2026-09-21): `{ slug, key, origin, name, speaks,
1949
+ * The seated envoys on their own (additive
1950
+ * 2026-09-21): `{ slug, key, origin, name, speaks,
1921
1951
  * default, position, removedAt }` per seat, live and departed,
1922
1952
  * in seat order — the rows `main` already carries under
1923
1953
  * `envoys`, offered as a port so a pool or a strategy can be
@@ -1932,7 +1962,7 @@ export declare const sessionCast: import("@serene-pub/sdk").Pinned<import("@sere
1932
1962
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
1933
1963
  }>;
1934
1964
  /**
1935
- * The session's settings document, re-read (PLAN-turn-order §4.12, R13).
1965
+ * The session's settings document, re-read.
1936
1966
  *
1937
1967
  * Every core inlet that takes a session already publishes the document on
1938
1968
  * its `session` port, resolved once by the host at run start. This node is
@@ -2085,14 +2115,14 @@ export declare const relationshipsKnown: import("@serene-pub/sdk").Pinned<import
2085
2115
  } | undefined;
2086
2116
  }>;
2087
2117
  /**
2088
- * The narrative graph as a retrieval **mechanism** (ruling 2026-09-10, Q1).
2118
+ * The narrative graph as a retrieval **mechanism** (ruling 2026-09-10).
2089
2119
  *
2090
2120
  * ⚠ The ruling calls this an *arm*, and the id deliberately does not. Two
2091
- * reasons, and the second is the stronger: NOMENCLATURE §22 retires *arm* in
2121
+ * reasons, and the second is the stronger: the project's vocabulary retires *arm* in
2092
2122
  * favour of **mechanism**, and every sibling in this package is named for what
2093
2123
  * it retrieves rather than for the machinery — `entity-search`,
2094
2124
  * `vector-search`, `world-lore`. The word survives in the *descriptions* on
2095
- * those siblings, which is prose a user reads (§23.6); an id is a frozen
2125
+ * those siblings, which is prose a user reads; an id is a frozen
2096
2126
  * contract, which is the one place a retired word should not land.
2097
2127
  *
2098
2128
  * The two nodes above are a *dump*: they hand the whole graph section to the
@@ -2130,7 +2160,7 @@ export declare const relationshipsKnown: import("@serene-pub/sdk").Pinned<import
2130
2160
  * means exactly what it means on the two nodes above: on/off plus a ceiling,
2131
2161
  * with an absent value uncapped and 0 leaving it out altogether.
2132
2162
  *
2133
- * ## Nobody speaking: the cast-wide read (genre plan F6(a), 2026-09-29)
2163
+ * ## Nobody speaking: the cast-wide read (2026-09-29)
2134
2164
  *
2135
2165
  * The three sections are claims about a SPEAKER, and a scope whose
2136
2166
  * `currentCharacterId` is null has none — an Adventure turn is the narrator's
@@ -2252,12 +2282,12 @@ export declare const relationshipSearch: import("@serene-pub/sdk").Pinned<import
2252
2282
  /**
2253
2283
  * The lore-link hop: relationships one edge from an entry
2254
2284
  * this turn's keyword scan chose, with an entry at an end
2255
- * (NOMENCLATURE §17 *lore link*).
2285
+ * (a *lore link*).
2256
2286
  *
2257
2287
  * `true` is what every run before it did, so the default
2258
2288
  * moves nothing. Off, the hop is not walked at all — no
2259
2289
  * link read, no second scan — and the band holds cast ties
2260
- * only. Adventure's preset turns it off (F6(a)): a place
2290
+ * only. Adventure's preset turns it off: a place
2261
2291
  * link belongs to the place ("From here:"), and a hop would
2262
2292
  * spend the band on a door no section renders.
2263
2293
  */
@@ -2276,7 +2306,7 @@ export declare const relationshipSearch: import("@serene-pub/sdk").Pinned<import
2276
2306
  } | undefined;
2277
2307
  }>;
2278
2308
  /**
2279
- * 🚧 **A transcript's attachments** (PLAN-composer-attachments §3.5, 2026-10-02).
2309
+ * 🚧 **A transcript's attachments** (2026-10-02).
2280
2310
  *
2281
2311
  * Takes the history read's rows and publishes, per message id, the files its
2282
2312
  * active revision shows — `core:image` and `core:file` parts, in part order —
@@ -2336,6 +2366,15 @@ export declare const availableTools: import("@serene-pub/sdk").Pinned<import("@s
2336
2366
  tools: string;
2337
2367
  }, {
2338
2368
  scope: string;
2369
+ /**
2370
+ * 🚧 Which **kinds** of tool to offer (2026-10-19, the Chat
2371
+ * genre's `tools` field): `web`, `lore`, `lorebook-write`,
2372
+ * `image`, `clock`, `calculator`, `history` — the host maps
2373
+ * each kind onto the tools that serve it. Unwired, every tool
2374
+ * the session has (as before); an empty list, none. Added in
2375
+ * place (`@1` evolves until 0.7).
2376
+ */
2377
+ kinds: string;
2339
2378
  }, "core:query/available-tools@1"> & {
2340
2379
  kind: 'query';
2341
2380
  slots?: {
@@ -2359,15 +2398,15 @@ export declare const availableTools: import("@serene-pub/sdk").Pinned<import("@s
2359
2398
  * Create a message.
2360
2399
  *
2361
2400
  * Split from the old `commitMessage`, which decided new-vs-update from whether an id
2362
- * happened to be present (13 §10b). That was an implicit branch, and F25 exists because
2401
+ * happened to be present. That was an implicit branch, and specs may not branch because
2363
2402
  * implicit branches are unreadable: two specs that did different things looked identical,
2364
2403
  * and the receipt could not tell you which had happened. Two ids, two names, no inference.
2365
2404
  *
2366
- * Gate-eligible, so it publishes the discriminated write result rather than raw ids
2367
- * (13 §7j-b). Under async review this is a proposal a reviewer may still reject.
2405
+ * Gate-eligible, so it publishes the discriminated write result rather than raw ids.
2406
+ * Under async review this is a proposal a reviewer may still reject.
2368
2407
  */
2369
2408
  /**
2370
- * The create pipeline's read (24 §12, T8): what the session's cast wants to
2409
+ * The create pipeline's read: what the session's cast wants to
2371
2410
  * say first — one entry per character in position order, each carrying the
2372
2411
  * full greeting history (the first text seeds the message, the rest become
2373
2412
  * swipes), interpolated against the session's first persona.
@@ -2387,8 +2426,8 @@ export declare const sessionGreetings: import("@serene-pub/sdk").Pinned<import("
2387
2426
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2388
2427
  }>;
2389
2428
  /**
2390
- * A seated envoy's **declared greeting**, interpolated (lair re-plan R6,
2391
- * 2026-09-28) — the line an envoy opens a new session with
2429
+ * A seated envoy's **declared greeting**, interpolated
2430
+ * (2026-09-28) — the line an envoy opens a new session with
2392
2431
  * (`EnvoyDecl.greeting`): the Lair's Castellan introduces the game.
2393
2432
  *
2394
2433
  * The create pipeline's read, beside `session-greetings@1`, which stays the
@@ -2462,7 +2501,7 @@ export declare const turnPlan: import("@serene-pub/sdk").Pinned<import("@serene-
2462
2501
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2463
2502
  }>;
2464
2503
  /**
2465
- * The session's **annex** (PLAN-turn-order §4.3, R6): read one owner's
2504
+ * The session's **annex**: read one owner's
2466
2505
  * document out of `sessions.annex`.
2467
2506
  *
2468
2507
  * The annex is the pipeline layer's free field, namespaced by owner key — a
@@ -2480,12 +2519,12 @@ export declare const sessionAnnex: import("@serene-pub/sdk").Pinned<import("@ser
2480
2519
  }, {
2481
2520
  scope: string;
2482
2521
  /**
2483
- * `'ai'` for the prompt-safe view (R57): only the values the
2522
+ * `'ai'` for the prompt-safe view: only the values the
2484
2523
  * model's context may carry — those whose audience holds `ai`,
2485
2524
  * `participant`, or the `speaker` below. Absent is everything,
2486
2525
  * as a pipeline reads it. A literal.
2487
2526
  *
2488
- * `'template'` (typed templates P6) reads what a template may
2527
+ * `'template'` reads what a template may
2489
2528
  * reference: every DECLARED key of every owner in scope — core
2490
2529
  * and the enabled plugins, for the session's genre — as
2491
2530
  * `{ <owner>: { <key>: value } }`. `owner` and `sharedAnnex`
@@ -2526,17 +2565,136 @@ export declare const sessionAnnex: import("@serene-pub/sdk").Pinned<import("@ser
2526
2565
  };
2527
2566
  } | undefined;
2528
2567
  }>;
2529
- /** The messages a summary is drawn from, already scoped and ordered. @internal */
2530
- export declare const summarizeSource: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
2531
- main: string;
2532
- messages: string;
2533
- }, {
2534
- scope: string;
2535
- request: string;
2536
- }, "core:query/summarize-source@1"> & {
2537
- kind: 'query';
2538
- slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2539
- }>;
2568
+ /**
2569
+ * The messages a summary is drawn from — both pins on one export, the way a
2570
+ * pinned constructor carries its version at the call site (04 §4b):
2571
+ * `C.summarizeSource.v1(…)` for the shared summarize specs,
2572
+ * `C.summarizeSource.v2(…)` for a genre's summarize-scene. `id` and
2573
+ * `descriptor` stay `@1`'s, so nothing that held this export changes
2574
+ * meaning; `@2`'s descriptor rides its constructor
2575
+ * (`typeof C.summarizeSource.v2` types a binding).
2576
+ * @internal
2577
+ */
2578
+ export declare const summarizeSource: {
2579
+ id: "core:query/summarize-source@1";
2580
+ descriptor: import("@serene-pub/sdk").Descriptor<{
2581
+ main: string;
2582
+ messages: string;
2583
+ }, {
2584
+ scope: string;
2585
+ request: string;
2586
+ }, "core:query/summarize-source@1"> & {
2587
+ kind: 'query';
2588
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2589
+ };
2590
+ v2: import("@serene-pub/sdk").NodeCtor<import("@serene-pub/sdk").Descriptor<{
2591
+ main: string;
2592
+ /** The story's rows on the story channel, oldest first. */
2593
+ messages: string;
2594
+ /** The aside rows inside the range, oldest first, each carrying its channel. */
2595
+ asides: string;
2596
+ }, {
2597
+ scope: string;
2598
+ request: string;
2599
+ }, "core:query/summarize-source@2"> & {
2600
+ kind: 'query';
2601
+ slots?: {
2602
+ readonly params: {
2603
+ readonly kind: "parameters";
2604
+ readonly facet: "behavior";
2605
+ readonly schema: {
2606
+ /** The story's lane — `main` for every core genre. */
2607
+ readonly channel: {
2608
+ readonly type: "string";
2609
+ readonly default: "main";
2610
+ readonly label: {
2611
+ readonly en: "Story channel";
2612
+ };
2613
+ readonly description: {
2614
+ readonly en: "Which of the session's channels holds the story. The chat log is 'main'.";
2615
+ };
2616
+ };
2617
+ /**
2618
+ * Channels read as asides: rows matched by prefix
2619
+ * (`sanctum` matches `sanctum:2`), each attached to the
2620
+ * story line before it. Empty reads the story alone.
2621
+ */
2622
+ readonly asides: {
2623
+ readonly type: "list";
2624
+ readonly item: {
2625
+ readonly type: "text";
2626
+ };
2627
+ readonly label: {
2628
+ readonly en: "Aside channels";
2629
+ };
2630
+ readonly description: {
2631
+ readonly en: "Side channels whose lines the summary reads as context, not as events — the Lair's 'sanctum'. Leave it empty to read the story alone.";
2632
+ };
2633
+ };
2634
+ };
2635
+ };
2636
+ } | undefined;
2637
+ }> & {
2638
+ descriptor: import("@serene-pub/sdk").Descriptor<{
2639
+ main: string;
2640
+ /** The story's rows on the story channel, oldest first. */
2641
+ messages: string;
2642
+ /** The aside rows inside the range, oldest first, each carrying its channel. */
2643
+ asides: string;
2644
+ }, {
2645
+ scope: string;
2646
+ request: string;
2647
+ }, "core:query/summarize-source@2"> & {
2648
+ kind: 'query';
2649
+ slots?: {
2650
+ readonly params: {
2651
+ readonly kind: "parameters";
2652
+ readonly facet: "behavior";
2653
+ readonly schema: {
2654
+ /** The story's lane — `main` for every core genre. */
2655
+ readonly channel: {
2656
+ readonly type: "string";
2657
+ readonly default: "main";
2658
+ readonly label: {
2659
+ readonly en: "Story channel";
2660
+ };
2661
+ readonly description: {
2662
+ readonly en: "Which of the session's channels holds the story. The chat log is 'main'.";
2663
+ };
2664
+ };
2665
+ /**
2666
+ * Channels read as asides: rows matched by prefix
2667
+ * (`sanctum` matches `sanctum:2`), each attached to the
2668
+ * story line before it. Empty reads the story alone.
2669
+ */
2670
+ readonly asides: {
2671
+ readonly type: "list";
2672
+ readonly item: {
2673
+ readonly type: "text";
2674
+ };
2675
+ readonly label: {
2676
+ readonly en: "Aside channels";
2677
+ };
2678
+ readonly description: {
2679
+ readonly en: "Side channels whose lines the summary reads as context, not as events — the Lair's 'sanctum'. Leave it empty to read the story alone.";
2680
+ };
2681
+ };
2682
+ };
2683
+ };
2684
+ } | undefined;
2685
+ };
2686
+ };
2687
+ v1: import("@serene-pub/sdk").NodeCtor<import("@serene-pub/sdk").Descriptor<{
2688
+ main: string;
2689
+ messages: string;
2690
+ }, {
2691
+ scope: string;
2692
+ request: string;
2693
+ }, "core:query/summarize-source@1"> & {
2694
+ kind: 'query';
2695
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2696
+ }>;
2697
+ };
2540
2698
  /**
2541
2699
  * The keywords an entry is proposed to be found by — **without a model**.
2542
2700
  *
@@ -2687,8 +2845,12 @@ export declare const graphScenes: import("@serene-pub/sdk").Pinned<import("@sere
2687
2845
  * The session's stats and states, resolved — an inventory is one, the
2688
2846
  * `inventory` list stat (phase 3b retired possessions as edges).
2689
2847
  *
2690
- * `{ world, cast, slots, who, version }` — the same object `stateFor(sessionId)`
2848
+ * `{ world, cast, slots, configs, who, version }` — the same object `stateFor(sessionId)`
2691
2849
  * returns and the shape `state` on `core:task/build-template-context@1` takes.
2850
+ * 🚧 `configs` is each owner's **stat configuration** in force — `world`
2851
+ * and every `cast.byId` key, then the slot id: `configs['player_seat:4']
2852
+ * ['core:slot/hp@1'].max` is that seat's full health, the bar's own number
2853
+ * (`core:outlet/set-stat-config@1` writes it).
2692
2854
  * Every value is already resolved down session → lorebook → card →
2693
2855
  * declaration default, with absence meaning **inherit** rather than zero, and
2694
2856
  * derived slots computed rather than read.
@@ -2697,8 +2859,7 @@ export declare const graphScenes: import("@serene-pub/sdk").Pinned<import("@sere
2697
2859
  * — this is the `current` view, and the temporal registry that would give the
2698
2860
  * other one is not built (see docs/stats-and-states.md).
2699
2861
  *
2700
- * `version` is the session's **state version** (plans/29 R-15 *Staleness and
2701
- * order*; 30 §U5f): a counter every applied change moves, in turn order,
2862
+ * `version` is the session's **state version**: a counter every applied change moves, in turn order,
2702
2863
  * under a lock. A run that reads state here and later asks to change it
2703
2864
  * hands the version back as `base` on `resolve-state-changes@1` /
2704
2865
  * `set-state@1`, so a change proposed against a state that has since moved
@@ -2847,6 +3008,31 @@ export declare const lorebookState: import("@serene-pub/sdk").Pinned<import("@se
2847
3008
  };
2848
3009
  } | undefined;
2849
3010
  }>;
3011
+ /**
3012
+ * 🚧 **A person's channel lane** (owner ruling 2026-10-17): on a channel the
3013
+ * genre declares `lanes: 'personal'`, the lane that is this person's —
3014
+ * allocated by core on first ask, filed in the session's lane register,
3015
+ * and sent by the host to that person and the session's owner alone. The
3016
+ * same ask twice is the same lane; a shared channel is refused (its lanes
3017
+ * are the genre's to allocate). Replaces a genre's own user→lane map and
3018
+ * client-side hiding.
3019
+ * @experimental
3020
+ */
3021
+ export declare const channelLane: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
3022
+ /** The canonical channel string of the lane: `parley` for lane 1, `parley:2` after. */
3023
+ lane: string;
3024
+ /** Whether this ask opened the lane. */
3025
+ opened: string;
3026
+ }, {
3027
+ scope: string;
3028
+ /** The channel's slug, declared with personal lanes. */
3029
+ channel: string;
3030
+ /** Whose lane: `user:<id>` — a participant reference as text (wired from a script's words; the host parses it). */
3031
+ person: string;
3032
+ }, "core:query/channel-lane@1"> & {
3033
+ kind: 'query';
3034
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
3035
+ }>;
2850
3036
  /**
2851
3037
  * 🚧 The **stat trail**: one stat's values over time, for one owner — the
2852
3038
  * world, a cast member or a place (owner-confirmed 2026-09-27: "stats over
@@ -2979,7 +3165,7 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
2979
3165
  *
2980
3166
  * ## Why `propose` is the default
2981
3167
  *
2982
- * The three writers do not have equal authority (`DESIGN-stats-and-states.md`).
3168
+ * The three writers do not have equal authority.
2983
3169
  * A person editing a bar is authoritative; a genre's own script rolling damage
2984
3170
  * is authoritative because the genre author wrote the arithmetic; a **model**
2985
3171
  * is neither, and a model that could set a number silently is a model that can
@@ -2991,7 +3177,7 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
2991
3177
  * ## Why it is a Task
2992
3178
  *
2993
3179
  * It writes, which a Task is not otherwise supposed to do, and the alternative
2994
- * is worse: F7 allows a spec **one** write-class Consumer and that one is the
3180
+ * is worse: the one-live-row rule allows a spec **one** write-class Consumer and that one is the
2995
3181
  * message. A damage roll that also saves a reply would be unspecifiable. What
2996
3182
  * makes it defensible rather than a hole is that these rows are not the run's
2997
3183
  * primary artifact — every one of them is anchored to a message and retracted
@@ -3004,6 +3190,14 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
3004
3190
  * item line survives on `resolve-state-changes@1`, which turns it into this). One
3005
3191
  * port because one turn's changes are one ordered list, and splitting them
3006
3192
  * would let a spec apply half of them.
3193
+ *
3194
+ * 🚧 A **clock line** `{ kind: 'clock', by, unit }` (live scenes §6, ★3) is
3195
+ * the state-keeper asking to move the session's story clock forward. `propose`
3196
+ * holds it as a **clock proposal** (`state_proposals.kind` `clock`), whose
3197
+ * Accept advances the clock; `apply` passes it over — neither applied nor
3198
+ * refused — because a moved clock is announced through a host seam a task does
3199
+ * not have: a spec that applies the keeper's clock wires *Advance story clock*
3200
+ * from `resolve-state-changes@1`'s `clock` out-port (Adventure's trusted arm).
3007
3201
  */
3008
3202
  /**
3009
3203
  * Changes a model NAMED, turned into changes `set-state` can write.
@@ -3012,7 +3206,7 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
3012
3206
  *
3013
3207
  * "Verity" becomes a cast row by looking her up in this session's cast, which
3014
3208
  * is a read of the host and therefore a Query's job — a Task is handed no
3015
- * services (F11). That also buys the scoping refusal for free: the cast it
3209
+ * services. That also buys the scoping refusal for free: the cast it
3016
3210
  * matches against is the cast of the session on the `scope` port and no other.
3017
3211
  *
3018
3212
  * ## Why this is a node and not a leniency inside `set-state`
@@ -3051,6 +3245,14 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3051
3245
  changes: string;
3052
3246
  /** One sentence per change that named something not here. */
3053
3247
  refused: string;
3248
+ /**
3249
+ * 🚧 The clock move the `clock` port resolved, `{ by, unit }` —
3250
+ * absent when there is none. What `core:task/clock-step@1`'s
3251
+ * `step` takes, so a spec that applies the keeper's clock
3252
+ * (Trust the narrator) moves it through *Advance story
3253
+ * clock*; the same move rides `changes` for `propose`.
3254
+ */
3255
+ clock: string;
3054
3256
  }, {
3055
3257
  /**
3056
3258
  * `[{ owner, slot, value } | { owner, entryId, delta }]` as a
@@ -3062,7 +3264,7 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3062
3264
  changes: string;
3063
3265
  /**
3064
3266
  * Who a change that names no `owner` is for, as participant
3065
- * references (lair re-plan R10, 2026-09-28): each such change
3267
+ * references (2026-09-28): each such change
3066
3268
  * is made once per reference, the same slot and value on each —
3067
3269
  * the Lair's Whisper writes its one line on every recipient the
3068
3270
  * press collected (`core:inlet/user-message@1.recipients`). A
@@ -3106,7 +3308,27 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3106
3308
  */
3107
3309
  plan: string;
3108
3310
  /**
3109
- * The **state version** this turn read (U5f): the session-state
3311
+ * 🚧 **A clock proposal** (live scenes §6, ★3, 2026-10-13): the
3312
+ * keeper's answer, whose `clock` list (`[{ by, unit }]`, empty
3313
+ * on the ordinary turn) is how much story time the scene took.
3314
+ * The whole answer for `plan`'s reason — a reference has no
3315
+ * sub-path — and a bare `{ by, unit }` reads the same. The
3316
+ * first entry resolves onto `changes` as `{ kind: 'clock', by,
3317
+ * unit }` (what `set-state` proposes) and onto the `clock`
3318
+ * out-port; forward only — a whole `by` above zero, within
3319
+ * `CLOCK_STEP_MAX`, in one of `STORY_TIME_UNITS` — and only
3320
+ * when the session's clock could move by it. Anything else is
3321
+ * a sentence on `refused`. 🚧 A well-formed ask the story
3322
+ * cannot take (no clock yet, a date the calendar cannot place)
3323
+ * also rides `changes` as `{ kind: 'clock', by, unit, skipped
3324
+ * }`, `skipped` saying why, for `set-state` to write to the
3325
+ * ledger (live scenes §15 G16) — never onto `clock`.
3326
+ * Optional: unwired, no clock move.
3327
+ * ⚠ Not the planner's `timeOfDay` hint, which is a world stat.
3328
+ */
3329
+ clock: string;
3330
+ /**
3331
+ * The **state version** this turn read: the session-state
3110
3332
  * query's `version`. Passed through onto every resolved change
3111
3333
  * as `base`, so `set-state` can tell a delta against the state
3112
3334
  * the model saw from one against a state that has since moved.
@@ -3142,8 +3364,7 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3142
3364
  * all to a genre that needs to see the book: on a **create** run there is no
3143
3365
  * conversation to scan, so the window is empty and only always-on entries are
3144
3366
  * admitted — and a genre asking *is there a room called the Cellar?*, *pick one
3145
- * of these as the secret*, or *who are the suspects?* had no door at all
3146
- * (plans/genres §10 G13/G14, §11 L4).
3367
+ * of these as the secret*, or *who are the suspects?* had no door at all.
3147
3368
  *
3148
3369
  * This is that door, and it is deliberately dull: **no mechanism runs, nothing
3149
3370
  * is scored, nothing is ranked.** `main` and `entries` carry one bare list of
@@ -3161,7 +3382,7 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3161
3382
  * `fingerprint`, and history's `year` / `month` / `day`. That is the contract
3162
3383
  * worth having: a task written against a retrieved entry reads a listed one
3163
3384
  * without a second shape to learn, and there is no second projection to keep in
3164
- * step (R5 — the vocabularies are reconciled at the host's read, not merged).
3385
+ * step (the vocabularies are reconciled at the host's read, not merged).
3165
3386
  * The one addition is asked for: `withLinks` puts each row's lore links on it
3166
3387
  * as `links` (`LoreLinkRow[]`), said from that row.
3167
3388
  *
@@ -3220,7 +3441,7 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
3220
3441
  *
3221
3442
  * Empty or absent lists every entry type.
3222
3443
  *
3223
- * Named `entryTypes` rather than `types` (R3): *type* alone
3444
+ * Named `entryTypes` rather than `types`: *type* alone
3224
3445
  * is the word four other vocabularies use — a node type, a
3225
3446
  * session type, a part type — and a parameter may not take
3226
3447
  * the bare noun.
@@ -3283,7 +3504,7 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
3283
3504
  };
3284
3505
  /**
3285
3506
  * Each row's **lore links**, on the row as `links`
3286
- * (`LoreLinkRow[]`) — places plan B2, 2026-09-29. Drizzle's
3507
+ * (`LoreLinkRow[]`) — 2026-09-29. Drizzle's
3287
3508
  * `with: { … }` in spirit: the listing stays a listing, and a
3288
3509
  * reader that wants a room's ways out says so.
3289
3510
  *
@@ -3315,4 +3536,26 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
3315
3536
  };
3316
3537
  } | undefined;
3317
3538
  }>;
3539
+ /**
3540
+ * 🚧 The **likeness images** of everyone on stage, as one media list — the
3541
+ * Scene action's references.
3542
+ *
3543
+ * Stage order: the switched-on cast in seat order, then the personas in
3544
+ * theirs — the order `core:var/likenesses@1` lays the tag lines out in, so
3545
+ * the n-th picture and the n-th tag line are the same person. Each one's
3546
+ * likeness image, else their avatar (`likenessOf`); someone with neither,
3547
+ * or whose file is gone or is not an image, is skipped. Not capped here:
3548
+ * the picture step's host caps references at the drawing sheet's maximum
3549
+ * and says so.
3550
+ * @experimental
3551
+ */
3552
+ export declare const likenessImages: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
3553
+ main: string;
3554
+ references: string;
3555
+ }, {
3556
+ scope: string;
3557
+ }, "core:query/likeness-images@1"> & {
3558
+ kind: 'query';
3559
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
3560
+ }>;
3318
3561
  //# sourceMappingURL=queries.d.ts.map