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

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`,
@@ -105,7 +105,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
105
105
  *
106
106
  * ⚠ **Not read when `budget` is wired** (history window,
107
107
  * 2026-10-03): that read is sized by the context window,
108
- * which belongs to the sampling config (17 §1a) — a count
108
+ * which belongs to the sampling config — a count
109
109
  * of rows beside it is the same number entered twice, and
110
110
  * the count is what moved the prompt's first line on every
111
111
  * turn once a session passed it. Every shipped reply wires
@@ -119,7 +119,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
119
119
  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
120
  };
121
121
  /**
122
- * The channel this history reads (20 §7). A session's
122
+ * The channel this history reads. A session's
123
123
  * lanes are the mode's declaration; a pipeline chooses
124
124
  * which one builds its context — the map narrator reads
125
125
  * `map`, the chat pipeline reads `main`, and a custom
@@ -131,7 +131,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
131
131
  readonly description: "Which of the session's channels this history reads. The chat log is 'main'.";
132
132
  };
133
133
  /**
134
- * **Only the unplayed talk** (lair re-plan R13, 2026-09-28):
134
+ * **Only the unplayed talk** (2026-09-28):
135
135
  * the rows of a side channel written since the story's
136
136
  * newest generated line — the newest visible `main` row
137
137
  * whose role is not `user`. Of those it keeps a person's own
@@ -155,8 +155,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
155
155
  };
156
156
  };
157
157
  /**
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
158
+ * **Side channels as talk** (2026-09-28): on every channel but
160
159
  * `main`, keep only the talk — a person's own lines and the
161
160
  * replies a run fired ON that channel wrote there — by the
162
161
  * rule `unplayedOnly` uses, without its bound. A row a
@@ -182,14 +181,14 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
182
181
  };
183
182
  /**
184
183
  * The transcript's intent, on the node that produces the
185
- * transcript (R-7 P5, built 2026-09-16 — see
184
+ * transcript (built 2026-09-16 — see
186
185
  * `bandIntentFields`). `weight: 0.4` and `minInclude: 6`
187
186
  * were here once, moved to the ranker's per-source map as
188
187
  * `share.messages` and `minEntries.messages`, and are back
189
- * where 16 §5a always said they belonged, at the numbers
188
+ * on the source, where a source's intent belongs, at the numbers
190
189
  * the map held: half the window is `MESSAGE_FILL_FRACTION`,
191
190
  * and six is the minimum the map carried for the one band
192
- * R6 allows one.
191
+ * allowed a minimum (recent conversation; lore has none).
193
192
  *
194
193
  * ⚠ **No shipped spec ranks a message candidate** —
195
194
  * `main` carries the transcript rows for
@@ -198,7 +197,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
198
197
  * keep it so: `entity-search`'s past lines publish on
199
198
  * their own `recalledLines` band, and `vector-search`
200
199
  * asks the index for lorebook entries only (the app's
201
- * binding names them; plan A1). Its intent
200
+ * binding names them). Its intent
202
201
  * still reaches the ranker, on the `band` out-port a spec
203
202
  * concatenates in with the lore, and its `share` is what
204
203
  * halves the pool the lore sources divide: the
@@ -247,7 +246,7 @@ export declare const sessionHistory: import("@serene-pub/sdk").Pinned<import("@s
247
246
  };
248
247
  };
249
248
  /**
250
- * Read, at last (R-7 P5; it was declared and read by nothing
249
+ * Read, at last (it was declared and read by nothing
251
250
  * from the day it was written, allow-listed in the
252
251
  * declared-reads guard until this landed). `normal` is no
253
252
  * ordering at all; see `BAND_PRIORITIES` in the SDK for
@@ -284,7 +283,7 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
284
283
  /**
285
284
  * The entries this scan **found and then excluded** — an
286
285
  * entry's own selective logic said *not here* — as verdicts
287
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
286
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
288
287
  * another mechanism brings in (by meaning, by name) is the
289
288
  * same entry the author ruled out, and
290
289
  * `core:task/eligibility@1` marks it ineligible with this
@@ -295,7 +294,7 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
295
294
  scope: string;
296
295
  /**
297
296
  * **Whose private lore this read is for** — a participant
298
- * reference (`character:<id>`), additive, 2026-09-17 (W1).
297
+ * reference (`character:<id>`), additive, 2026-09-17.
299
298
  *
300
299
  * Character-lore visibility is decided at the host read against
301
300
  * ONE subject, and until this port existed that subject was the
@@ -325,7 +324,7 @@ export declare const lorebookTriggers: import("@serene-pub/sdk").Pinned<import("
325
324
  * Nothing read it and nothing seeded a row for it, so it rendered as
326
325
  * an empty picker. A source template belongs on the node whose job
327
326
  * is the rendering — a `render-entries` task, when one is bound
328
- * (culled unbound, plans/29 R-2); two declarations of one idea, one
327
+ * (culled: declared, never bound); two declarations of one idea, one
329
328
  * of them inert, is how they drift.
330
329
  */
331
330
  readonly params: {
@@ -652,7 +651,7 @@ export declare const worldLore: import("@serene-pub/sdk").Pinned<import("@serene
652
651
  /**
653
652
  * The entries this scan **found and then excluded** — an
654
653
  * entry's own selective logic said *not here* — as verdicts
655
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
654
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
656
655
  * another mechanism brings in (by meaning, by name) is the
657
656
  * same entry the author ruled out, and
658
657
  * `core:task/eligibility@1` marks it ineligible with this
@@ -760,7 +759,7 @@ export declare const worldLore: import("@serene-pub/sdk").Pinned<import("@serene
760
759
  description: string;
761
760
  };
762
761
  /**
763
- * Declared on all three lanes, held by one: since R-7 P2 a spec
762
+ * Declared on all three lanes, held by one: since 2026-09-15 a spec
764
763
  * names ONE owner for the seven knobs and the other lanes read the
765
764
  * owner's slot, so this is one row governing world lore, character
766
765
  * lore and history alike — not one row per lane. World lore
@@ -855,7 +854,7 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
855
854
  /**
856
855
  * The entries this scan **found and then excluded** — an
857
856
  * entry's own selective logic said *not here* — as verdicts
858
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
857
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
859
858
  * another mechanism brings in (by meaning, by name) is the
860
859
  * same entry the author ruled out, and
861
860
  * `core:task/eligibility@1` marks it ineligible with this
@@ -866,7 +865,7 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
866
865
  scope: string;
867
866
  /**
868
867
  * **Whose private lore this read is for** — a participant
869
- * reference (`character:<id>`), additive, 2026-09-17 (W1).
868
+ * reference (`character:<id>`), additive, 2026-09-17.
870
869
  *
871
870
  * Character-lore visibility is decided at the host read against
872
871
  * ONE subject, and until this port existed that subject was the
@@ -985,7 +984,7 @@ export declare const characterLore: import("@serene-pub/sdk").Pinned<import("@se
985
984
  description: string;
986
985
  };
987
986
  /**
988
- * Declared on all three lanes, held by one: since R-7 P2 a spec
987
+ * Declared on all three lanes, held by one: since 2026-09-15 a spec
989
988
  * names ONE owner for the seven knobs and the other lanes read the
990
989
  * owner's slot, so this is one row governing world lore, character
991
990
  * lore and history alike — not one row per lane. World lore
@@ -1099,7 +1098,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1099
1098
  /**
1100
1099
  * The entries this scan **found and then excluded** — an
1101
1100
  * entry's own selective logic said *not here* — as verdicts
1102
- * `{ source, id, reason }` (C2, 2026-10-02). A copy of one that
1101
+ * `{ source, id, reason }` (2026-10-02). A copy of one that
1103
1102
  * another mechanism brings in (by meaning, by name) is the
1104
1103
  * same entry the author ruled out, and
1105
1104
  * `core:task/eligibility@1` marks it ineligible with this
@@ -1207,7 +1206,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1207
1206
  description: string;
1208
1207
  };
1209
1208
  /**
1210
- * Declared on all three lanes, held by one: since R-7 P2 a spec
1209
+ * Declared on all three lanes, held by one: since 2026-09-15 a spec
1211
1210
  * names ONE owner for the seven knobs and the other lanes read the
1212
1211
  * owner's slot, so this is one row governing world lore, character
1213
1212
  * lore and history alike — not one row per lane. World lore
@@ -1297,7 +1296,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1297
1296
  }>;
1298
1297
  /**
1299
1298
  * **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).
1299
+ * reading sees them (built 2026-10-02).
1301
1300
  *
1302
1301
  * A presence says *this member, at this point of their own life, is here from
1303
1302
  * this date until that one* (`cast_presences`). The host reads the scope
@@ -1314,7 +1313,7 @@ export declare const historyEntries: import("@serene-pub/sdk").Pinned<import("@s
1314
1313
  *
1315
1314
  * What it is for: `core:task/eligibility@1`'s presence rule, which gates the
1316
1315
  * lore of a member who is not in the world at `at`. A custom retrieval reads it
1317
- * the same way (plan E-11).
1316
+ * the same way.
1318
1317
  * @experimental
1319
1318
  */
1320
1319
  export declare const castPresences: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
@@ -1342,7 +1341,7 @@ export declare const vectorSearch: import("@serene-pub/sdk").Pinned<import("@ser
1342
1341
  }, {
1343
1342
  /**
1344
1343
  * Several query vectors, one ranked list each — a list, so
1345
- * `json@1` (was `vector@1` until 2026-09-17, U5d review W9):
1344
+ * `json@1` (was `vector@1` until 2026-09-17):
1346
1345
  * what `embed-text@1`'s `vectors` publishes and what the
1347
1346
  * host's search reads.
1348
1347
  */
@@ -1351,7 +1350,7 @@ export declare const vectorSearch: import("@serene-pub/sdk").Pinned<import("@ser
1351
1350
  /**
1352
1351
  * **Whose private lore this search may return** — a participant
1353
1352
  * reference, with `core:query/character-lore@1`'s exact
1354
- * semantics (C3, 2026-10-02): unwired, `null` or empty, the
1353
+ * semantics (2026-10-02): unwired, `null` or empty, the
1355
1354
  * scope decides as it always did; a `character:<id>` reads
1356
1355
  * that character's own private lore and nobody else's; any
1357
1356
  * other reference reads none. The leak guard for a search
@@ -1528,7 +1527,7 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1528
1527
  /**
1529
1528
  * **Whose private lore this search may return** — a participant
1530
1529
  * reference, with `core:query/character-lore@1`'s exact
1531
- * semantics (C3, 2026-10-02): unwired, `null` or empty, the
1530
+ * semantics (2026-10-02): unwired, `null` or empty, the
1532
1531
  * scope decides as it always did; a `character:<id>` reads
1533
1532
  * that character's own private lore and nobody else's; any
1534
1533
  * other reference reads none. The leak guard for a search
@@ -1544,7 +1543,7 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1544
1543
  readonly facet: "weights";
1545
1544
  readonly schema: {
1546
1545
  /**
1547
- * **On by default — 5** (R5, ruled 2026-09-30: all supported
1546
+ * **On by default — 5** (ruled 2026-09-30: all supported
1548
1547
  * retrieval is on by default; built 2026-10-02). It was 0,
1549
1548
  * the `maxRecursionDepth` / `admitThreshold` convention of
1550
1549
  * "turned on rather than arrived at"; the ruling replaced
@@ -1576,8 +1575,8 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1576
1575
  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
1576
  };
1578
1577
  /**
1579
- * The recalled lines' **share** — a band-namespaced field
1580
- * (§7), because this definition publishes lore on `main`
1578
+ * The recalled lines' **share** — a band-namespaced field,
1579
+ * because this definition publishes lore on `main`
1581
1580
  * and its own band on `messages`. Published as the band's
1582
1581
  * intent at the head of `messages` whenever `maxMessages`
1583
1582
  * turns the half on; the cap is `maxMessages`, which
@@ -1631,8 +1630,8 @@ export declare const entitySearch: import("@serene-pub/sdk").Pinned<import("@ser
1631
1630
  } | undefined;
1632
1631
  }>;
1633
1632
  /**
1634
- * Documentation search — the guide genre's one retrieval mechanism (plans/29
1635
- * R-18; built 2026-09-16 as U5g).
1633
+ * Documentation search — the guide genre's one retrieval mechanism (built
1634
+ * 2026-09-16).
1636
1635
  *
1637
1636
  * The app compiles its docs — its own guides and the SDK's — into a section
1638
1637
  * index at build time (title, anchor, body text per heading). This reads the
@@ -1754,7 +1753,7 @@ export declare const mentionSpans: import("@serene-pub/sdk").Pinned<import("@ser
1754
1753
  readonly facet: "weights";
1755
1754
  readonly schema: {
1756
1755
  /**
1757
- * **On by default — 8** (R5, ruled 2026-09-30: all supported
1756
+ * **On by default — 8** (ruled 2026-09-30: all supported
1758
1757
  * retrieval is on by default; built 2026-10-02). It was 0.
1759
1758
  * Still the mechanism's one switch: 0 turns it off.
1760
1759
  *
@@ -1859,7 +1858,7 @@ export declare const entityLink: import("@serene-pub/sdk").Pinned<import("@seren
1859
1858
  /**
1860
1859
  * **Whose private lore this search may return** — a participant
1861
1860
  * reference, with `core:query/character-lore@1`'s exact
1862
- * semantics (C3, 2026-10-02): unwired, `null` or empty, the
1861
+ * semantics (2026-10-02): unwired, `null` or empty, the
1863
1862
  * scope decides as it always did; a `character:<id>` reads
1864
1863
  * that character's own private lore and nobody else's; any
1865
1864
  * other reference reads none. The leak guard for a search
@@ -1905,7 +1904,7 @@ export declare const network: import("@serene-pub/sdk").Pinned<import("@serene-p
1905
1904
  * A Task, not a Query, even though it reads the cast: what it *is* is the
1906
1905
  * resolution — which characters appear, which get named, which scenario wins —
1907
1906
  * 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).
1907
+ * host like any other (a Task never holds host services itself).
1909
1908
  *
1910
1909
  * Separate from Assemble on purpose. Assemble allocates a budget and renders;
1911
1910
  * this decides what there is to render. A plugin that wants different character
@@ -1916,8 +1915,8 @@ export declare const sessionCast: import("@serene-pub/sdk").Pinned<import("@sere
1916
1915
  main: string;
1917
1916
  cast: string;
1918
1917
  /**
1919
- * The seated envoys on their own (PLAN-turn-order §4.4,
1920
- * additive 2026-09-21): `{ slug, key, origin, name, speaks,
1918
+ * The seated envoys on their own (additive
1919
+ * 2026-09-21): `{ slug, key, origin, name, speaks,
1921
1920
  * default, position, removedAt }` per seat, live and departed,
1922
1921
  * in seat order — the rows `main` already carries under
1923
1922
  * `envoys`, offered as a port so a pool or a strategy can be
@@ -1932,7 +1931,7 @@ export declare const sessionCast: import("@serene-pub/sdk").Pinned<import("@sere
1932
1931
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
1933
1932
  }>;
1934
1933
  /**
1935
- * The session's settings document, re-read (PLAN-turn-order §4.12, R13).
1934
+ * The session's settings document, re-read.
1936
1935
  *
1937
1936
  * Every core inlet that takes a session already publishes the document on
1938
1937
  * its `session` port, resolved once by the host at run start. This node is
@@ -2085,14 +2084,14 @@ export declare const relationshipsKnown: import("@serene-pub/sdk").Pinned<import
2085
2084
  } | undefined;
2086
2085
  }>;
2087
2086
  /**
2088
- * The narrative graph as a retrieval **mechanism** (ruling 2026-09-10, Q1).
2087
+ * The narrative graph as a retrieval **mechanism** (ruling 2026-09-10).
2089
2088
  *
2090
2089
  * ⚠ 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
2090
+ * reasons, and the second is the stronger: the project's vocabulary retires *arm* in
2092
2091
  * favour of **mechanism**, and every sibling in this package is named for what
2093
2092
  * it retrieves rather than for the machinery — `entity-search`,
2094
2093
  * `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
2094
+ * those siblings, which is prose a user reads; an id is a frozen
2096
2095
  * contract, which is the one place a retired word should not land.
2097
2096
  *
2098
2097
  * The two nodes above are a *dump*: they hand the whole graph section to the
@@ -2130,7 +2129,7 @@ export declare const relationshipsKnown: import("@serene-pub/sdk").Pinned<import
2130
2129
  * means exactly what it means on the two nodes above: on/off plus a ceiling,
2131
2130
  * with an absent value uncapped and 0 leaving it out altogether.
2132
2131
  *
2133
- * ## Nobody speaking: the cast-wide read (genre plan F6(a), 2026-09-29)
2132
+ * ## Nobody speaking: the cast-wide read (2026-09-29)
2134
2133
  *
2135
2134
  * The three sections are claims about a SPEAKER, and a scope whose
2136
2135
  * `currentCharacterId` is null has none — an Adventure turn is the narrator's
@@ -2252,12 +2251,12 @@ export declare const relationshipSearch: import("@serene-pub/sdk").Pinned<import
2252
2251
  /**
2253
2252
  * The lore-link hop: relationships one edge from an entry
2254
2253
  * this turn's keyword scan chose, with an entry at an end
2255
- * (NOMENCLATURE §17 *lore link*).
2254
+ * (a *lore link*).
2256
2255
  *
2257
2256
  * `true` is what every run before it did, so the default
2258
2257
  * moves nothing. Off, the hop is not walked at all — no
2259
2258
  * link read, no second scan — and the band holds cast ties
2260
- * only. Adventure's preset turns it off (F6(a)): a place
2259
+ * only. Adventure's preset turns it off: a place
2261
2260
  * link belongs to the place ("From here:"), and a hop would
2262
2261
  * spend the band on a door no section renders.
2263
2262
  */
@@ -2276,7 +2275,7 @@ export declare const relationshipSearch: import("@serene-pub/sdk").Pinned<import
2276
2275
  } | undefined;
2277
2276
  }>;
2278
2277
  /**
2279
- * 🚧 **A transcript's attachments** (PLAN-composer-attachments §3.5, 2026-10-02).
2278
+ * 🚧 **A transcript's attachments** (2026-10-02).
2280
2279
  *
2281
2280
  * Takes the history read's rows and publishes, per message id, the files its
2282
2281
  * active revision shows — `core:image` and `core:file` parts, in part order —
@@ -2359,15 +2358,15 @@ export declare const availableTools: import("@serene-pub/sdk").Pinned<import("@s
2359
2358
  * Create a message.
2360
2359
  *
2361
2360
  * 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
2361
+ * happened to be present. That was an implicit branch, and specs may not branch because
2363
2362
  * implicit branches are unreadable: two specs that did different things looked identical,
2364
2363
  * and the receipt could not tell you which had happened. Two ids, two names, no inference.
2365
2364
  *
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.
2365
+ * Gate-eligible, so it publishes the discriminated write result rather than raw ids.
2366
+ * Under async review this is a proposal a reviewer may still reject.
2368
2367
  */
2369
2368
  /**
2370
- * The create pipeline's read (24 §12, T8): what the session's cast wants to
2369
+ * The create pipeline's read: what the session's cast wants to
2371
2370
  * say first — one entry per character in position order, each carrying the
2372
2371
  * full greeting history (the first text seeds the message, the rest become
2373
2372
  * swipes), interpolated against the session's first persona.
@@ -2387,8 +2386,8 @@ export declare const sessionGreetings: import("@serene-pub/sdk").Pinned<import("
2387
2386
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2388
2387
  }>;
2389
2388
  /**
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
2389
+ * A seated envoy's **declared greeting**, interpolated
2390
+ * (2026-09-28) — the line an envoy opens a new session with
2392
2391
  * (`EnvoyDecl.greeting`): the Lair's Castellan introduces the game.
2393
2392
  *
2394
2393
  * The create pipeline's read, beside `session-greetings@1`, which stays the
@@ -2462,7 +2461,7 @@ export declare const turnPlan: import("@serene-pub/sdk").Pinned<import("@serene-
2462
2461
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2463
2462
  }>;
2464
2463
  /**
2465
- * The session's **annex** (PLAN-turn-order §4.3, R6): read one owner's
2464
+ * The session's **annex**: read one owner's
2466
2465
  * document out of `sessions.annex`.
2467
2466
  *
2468
2467
  * The annex is the pipeline layer's free field, namespaced by owner key — a
@@ -2480,12 +2479,12 @@ export declare const sessionAnnex: import("@serene-pub/sdk").Pinned<import("@ser
2480
2479
  }, {
2481
2480
  scope: string;
2482
2481
  /**
2483
- * `'ai'` for the prompt-safe view (R57): only the values the
2482
+ * `'ai'` for the prompt-safe view: only the values the
2484
2483
  * model's context may carry — those whose audience holds `ai`,
2485
2484
  * `participant`, or the `speaker` below. Absent is everything,
2486
2485
  * as a pipeline reads it. A literal.
2487
2486
  *
2488
- * `'template'` (typed templates P6) reads what a template may
2487
+ * `'template'` reads what a template may
2489
2488
  * reference: every DECLARED key of every owner in scope — core
2490
2489
  * and the enabled plugins, for the session's genre — as
2491
2490
  * `{ <owner>: { <key>: value } }`. `owner` and `sharedAnnex`
@@ -2526,17 +2525,136 @@ export declare const sessionAnnex: import("@serene-pub/sdk").Pinned<import("@ser
2526
2525
  };
2527
2526
  } | undefined;
2528
2527
  }>;
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
- }>;
2528
+ /**
2529
+ * The messages a summary is drawn from — both pins on one export, the way a
2530
+ * pinned constructor carries its version at the call site (04 §4b):
2531
+ * `C.summarizeSource.v1(…)` for the shared summarize specs,
2532
+ * `C.summarizeSource.v2(…)` for a genre's summarize-scene. `id` and
2533
+ * `descriptor` stay `@1`'s, so nothing that held this export changes
2534
+ * meaning; `@2`'s descriptor rides its constructor
2535
+ * (`typeof C.summarizeSource.v2` types a binding).
2536
+ * @internal
2537
+ */
2538
+ export declare const summarizeSource: {
2539
+ id: "core:query/summarize-source@1";
2540
+ descriptor: import("@serene-pub/sdk").Descriptor<{
2541
+ main: string;
2542
+ messages: string;
2543
+ }, {
2544
+ scope: string;
2545
+ request: string;
2546
+ }, "core:query/summarize-source@1"> & {
2547
+ kind: 'query';
2548
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2549
+ };
2550
+ v2: import("@serene-pub/sdk").NodeCtor<import("@serene-pub/sdk").Descriptor<{
2551
+ main: string;
2552
+ /** The story's rows on the story channel, oldest first. */
2553
+ messages: string;
2554
+ /** The aside rows inside the range, oldest first, each carrying its channel. */
2555
+ asides: string;
2556
+ }, {
2557
+ scope: string;
2558
+ request: string;
2559
+ }, "core:query/summarize-source@2"> & {
2560
+ kind: 'query';
2561
+ slots?: {
2562
+ readonly params: {
2563
+ readonly kind: "parameters";
2564
+ readonly facet: "behavior";
2565
+ readonly schema: {
2566
+ /** The story's lane — `main` for every core genre. */
2567
+ readonly channel: {
2568
+ readonly type: "string";
2569
+ readonly default: "main";
2570
+ readonly label: {
2571
+ readonly en: "Story channel";
2572
+ };
2573
+ readonly description: {
2574
+ readonly en: "Which of the session's channels holds the story. The chat log is 'main'.";
2575
+ };
2576
+ };
2577
+ /**
2578
+ * Channels read as asides: rows matched by prefix
2579
+ * (`sanctum` matches `sanctum:2`), each attached to the
2580
+ * story line before it. Empty reads the story alone.
2581
+ */
2582
+ readonly asides: {
2583
+ readonly type: "list";
2584
+ readonly item: {
2585
+ readonly type: "text";
2586
+ };
2587
+ readonly label: {
2588
+ readonly en: "Aside channels";
2589
+ };
2590
+ readonly description: {
2591
+ 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.";
2592
+ };
2593
+ };
2594
+ };
2595
+ };
2596
+ } | undefined;
2597
+ }> & {
2598
+ descriptor: import("@serene-pub/sdk").Descriptor<{
2599
+ main: string;
2600
+ /** The story's rows on the story channel, oldest first. */
2601
+ messages: string;
2602
+ /** The aside rows inside the range, oldest first, each carrying its channel. */
2603
+ asides: string;
2604
+ }, {
2605
+ scope: string;
2606
+ request: string;
2607
+ }, "core:query/summarize-source@2"> & {
2608
+ kind: 'query';
2609
+ slots?: {
2610
+ readonly params: {
2611
+ readonly kind: "parameters";
2612
+ readonly facet: "behavior";
2613
+ readonly schema: {
2614
+ /** The story's lane — `main` for every core genre. */
2615
+ readonly channel: {
2616
+ readonly type: "string";
2617
+ readonly default: "main";
2618
+ readonly label: {
2619
+ readonly en: "Story channel";
2620
+ };
2621
+ readonly description: {
2622
+ readonly en: "Which of the session's channels holds the story. The chat log is 'main'.";
2623
+ };
2624
+ };
2625
+ /**
2626
+ * Channels read as asides: rows matched by prefix
2627
+ * (`sanctum` matches `sanctum:2`), each attached to the
2628
+ * story line before it. Empty reads the story alone.
2629
+ */
2630
+ readonly asides: {
2631
+ readonly type: "list";
2632
+ readonly item: {
2633
+ readonly type: "text";
2634
+ };
2635
+ readonly label: {
2636
+ readonly en: "Aside channels";
2637
+ };
2638
+ readonly description: {
2639
+ 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.";
2640
+ };
2641
+ };
2642
+ };
2643
+ };
2644
+ } | undefined;
2645
+ };
2646
+ };
2647
+ v1: import("@serene-pub/sdk").NodeCtor<import("@serene-pub/sdk").Descriptor<{
2648
+ main: string;
2649
+ messages: string;
2650
+ }, {
2651
+ scope: string;
2652
+ request: string;
2653
+ }, "core:query/summarize-source@1"> & {
2654
+ kind: 'query';
2655
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
2656
+ }>;
2657
+ };
2540
2658
  /**
2541
2659
  * The keywords an entry is proposed to be found by — **without a model**.
2542
2660
  *
@@ -2697,8 +2815,7 @@ export declare const graphScenes: import("@serene-pub/sdk").Pinned<import("@sere
2697
2815
  * — this is the `current` view, and the temporal registry that would give the
2698
2816
  * other one is not built (see docs/stats-and-states.md).
2699
2817
  *
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,
2818
+ * `version` is the session's **state version**: a counter every applied change moves, in turn order,
2702
2819
  * under a lock. A run that reads state here and later asks to change it
2703
2820
  * hands the version back as `base` on `resolve-state-changes@1` /
2704
2821
  * `set-state@1`, so a change proposed against a state that has since moved
@@ -2979,7 +3096,7 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
2979
3096
  *
2980
3097
  * ## Why `propose` is the default
2981
3098
  *
2982
- * The three writers do not have equal authority (`DESIGN-stats-and-states.md`).
3099
+ * The three writers do not have equal authority.
2983
3100
  * A person editing a bar is authoritative; a genre's own script rolling damage
2984
3101
  * is authoritative because the genre author wrote the arithmetic; a **model**
2985
3102
  * is neither, and a model that could set a number silently is a model that can
@@ -2991,7 +3108,7 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
2991
3108
  * ## Why it is a Task
2992
3109
  *
2993
3110
  * 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
3111
+ * is worse: the one-live-row rule allows a spec **one** write-class Consumer and that one is the
2995
3112
  * message. A damage roll that also saves a reply would be unspecifiable. What
2996
3113
  * makes it defensible rather than a hole is that these rows are not the run's
2997
3114
  * primary artifact — every one of them is anchored to a message and retracted
@@ -3004,6 +3121,14 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
3004
3121
  * item line survives on `resolve-state-changes@1`, which turns it into this). One
3005
3122
  * port because one turn's changes are one ordered list, and splitting them
3006
3123
  * would let a spec apply half of them.
3124
+ *
3125
+ * 🚧 A **clock line** `{ kind: 'clock', by, unit }` (live scenes §6, ★3) is
3126
+ * the state-keeper asking to move the session's story clock forward. `propose`
3127
+ * holds it as a **clock proposal** (`state_proposals.kind` `clock`), whose
3128
+ * Accept advances the clock; `apply` passes it over — neither applied nor
3129
+ * refused — because a moved clock is announced through a host seam a task does
3130
+ * not have: a spec that applies the keeper's clock wires *Advance story clock*
3131
+ * from `resolve-state-changes@1`'s `clock` out-port (Adventure's trusted arm).
3007
3132
  */
3008
3133
  /**
3009
3134
  * Changes a model NAMED, turned into changes `set-state` can write.
@@ -3012,7 +3137,7 @@ export declare const statTrail: import("@serene-pub/sdk").Pinned<import("@serene
3012
3137
  *
3013
3138
  * "Verity" becomes a cast row by looking her up in this session's cast, which
3014
3139
  * 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
3140
+ * services. That also buys the scoping refusal for free: the cast it
3016
3141
  * matches against is the cast of the session on the `scope` port and no other.
3017
3142
  *
3018
3143
  * ## Why this is a node and not a leniency inside `set-state`
@@ -3051,6 +3176,14 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3051
3176
  changes: string;
3052
3177
  /** One sentence per change that named something not here. */
3053
3178
  refused: string;
3179
+ /**
3180
+ * 🚧 The clock move the `clock` port resolved, `{ by, unit }` —
3181
+ * absent when there is none. What `core:task/clock-step@1`'s
3182
+ * `step` takes, so a spec that applies the keeper's clock
3183
+ * (Trust the narrator) moves it through *Advance story
3184
+ * clock*; the same move rides `changes` for `propose`.
3185
+ */
3186
+ clock: string;
3054
3187
  }, {
3055
3188
  /**
3056
3189
  * `[{ owner, slot, value } | { owner, entryId, delta }]` as a
@@ -3062,7 +3195,7 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3062
3195
  changes: string;
3063
3196
  /**
3064
3197
  * Who a change that names no `owner` is for, as participant
3065
- * references (lair re-plan R10, 2026-09-28): each such change
3198
+ * references (2026-09-28): each such change
3066
3199
  * is made once per reference, the same slot and value on each —
3067
3200
  * the Lair's Whisper writes its one line on every recipient the
3068
3201
  * press collected (`core:inlet/user-message@1.recipients`). A
@@ -3106,7 +3239,27 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3106
3239
  */
3107
3240
  plan: string;
3108
3241
  /**
3109
- * The **state version** this turn read (U5f): the session-state
3242
+ * 🚧 **A clock proposal** (live scenes §6, ★3, 2026-10-13): the
3243
+ * keeper's answer, whose `clock` list (`[{ by, unit }]`, empty
3244
+ * on the ordinary turn) is how much story time the scene took.
3245
+ * The whole answer for `plan`'s reason — a reference has no
3246
+ * sub-path — and a bare `{ by, unit }` reads the same. The
3247
+ * first entry resolves onto `changes` as `{ kind: 'clock', by,
3248
+ * unit }` (what `set-state` proposes) and onto the `clock`
3249
+ * out-port; forward only — a whole `by` above zero, within
3250
+ * `CLOCK_STEP_MAX`, in one of `STORY_TIME_UNITS` — and only
3251
+ * when the session's clock could move by it. Anything else is
3252
+ * a sentence on `refused`. 🚧 A well-formed ask the story
3253
+ * cannot take (no clock yet, a date the calendar cannot place)
3254
+ * also rides `changes` as `{ kind: 'clock', by, unit, skipped
3255
+ * }`, `skipped` saying why, for `set-state` to write to the
3256
+ * ledger (live scenes §15 G16) — never onto `clock`.
3257
+ * Optional: unwired, no clock move.
3258
+ * ⚠ Not the planner's `timeOfDay` hint, which is a world stat.
3259
+ */
3260
+ clock: string;
3261
+ /**
3262
+ * The **state version** this turn read: the session-state
3110
3263
  * query's `version`. Passed through onto every resolved change
3111
3264
  * as `base`, so `set-state` can tell a delta against the state
3112
3265
  * the model saw from one against a state that has since moved.
@@ -3142,8 +3295,7 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3142
3295
  * all to a genre that needs to see the book: on a **create** run there is no
3143
3296
  * conversation to scan, so the window is empty and only always-on entries are
3144
3297
  * 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).
3298
+ * of these as the secret*, or *who are the suspects?* had no door at all.
3147
3299
  *
3148
3300
  * This is that door, and it is deliberately dull: **no mechanism runs, nothing
3149
3301
  * is scored, nothing is ranked.** `main` and `entries` carry one bare list of
@@ -3161,7 +3313,7 @@ export declare const resolveStateChanges: import("@serene-pub/sdk").Pinned<impor
3161
3313
  * `fingerprint`, and history's `year` / `month` / `day`. That is the contract
3162
3314
  * worth having: a task written against a retrieved entry reads a listed one
3163
3315
  * 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).
3316
+ * step (the vocabularies are reconciled at the host's read, not merged).
3165
3317
  * The one addition is asked for: `withLinks` puts each row's lore links on it
3166
3318
  * as `links` (`LoreLinkRow[]`), said from that row.
3167
3319
  *
@@ -3220,7 +3372,7 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
3220
3372
  *
3221
3373
  * Empty or absent lists every entry type.
3222
3374
  *
3223
- * Named `entryTypes` rather than `types` (R3): *type* alone
3375
+ * Named `entryTypes` rather than `types`: *type* alone
3224
3376
  * is the word four other vocabularies use — a node type, a
3225
3377
  * session type, a part type — and a parameter may not take
3226
3378
  * the bare noun.
@@ -3283,7 +3435,7 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
3283
3435
  };
3284
3436
  /**
3285
3437
  * Each row's **lore links**, on the row as `links`
3286
- * (`LoreLinkRow[]`) — places plan B2, 2026-09-29. Drizzle's
3438
+ * (`LoreLinkRow[]`) — 2026-09-29. Drizzle's
3287
3439
  * `with: { … }` in spirit: the listing stays a listing, and a
3288
3440
  * reader that wants a room's ways out says so.
3289
3441
  *
@@ -3315,4 +3467,26 @@ export declare const lorebookEntries: import("@serene-pub/sdk").Pinned<import("@
3315
3467
  };
3316
3468
  } | undefined;
3317
3469
  }>;
3470
+ /**
3471
+ * 🚧 The **likeness images** of everyone on stage, as one media list — the
3472
+ * Scene action's references.
3473
+ *
3474
+ * Stage order: the switched-on cast in seat order, then the personas in
3475
+ * theirs — the order `core:var/likenesses@1` lays the tag lines out in, so
3476
+ * the n-th picture and the n-th tag line are the same person. Each one's
3477
+ * likeness image, else their avatar (`likenessOf`); someone with neither,
3478
+ * or whose file is gone or is not an image, is skipped. Not capped here:
3479
+ * the picture step's host caps references at the drawing sheet's maximum
3480
+ * and says so.
3481
+ * @experimental
3482
+ */
3483
+ export declare const likenessImages: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
3484
+ main: string;
3485
+ references: string;
3486
+ }, {
3487
+ scope: string;
3488
+ }, "core:query/likeness-images@1"> & {
3489
+ kind: 'query';
3490
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
3491
+ }>;
3318
3492
  //# sourceMappingURL=queries.d.ts.map