@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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/inlets.d.ts +112 -50
- package/dist/inlets.js +118 -53
- package/dist/oracles.d.ts +308 -19
- package/dist/oracles.js +288 -40
- package/dist/outlets.d.ts +194 -44
- package/dist/outlets.js +231 -55
- package/dist/queries.d.ts +253 -79
- package/dist/queries.js +248 -88
- package/dist/tasks.d.ts +920 -176
- package/dist/tasks.js +788 -145
- package/package.json +3 -3
package/dist/queries.js
CHANGED
|
@@ -77,7 +77,7 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
77
77
|
*
|
|
78
78
|
* ⚠ **Not read when `budget` is wired** (history window,
|
|
79
79
|
* 2026-10-03): that read is sized by the context window,
|
|
80
|
-
* which belongs to the sampling config
|
|
80
|
+
* which belongs to the sampling config — a count
|
|
81
81
|
* of rows beside it is the same number entered twice, and
|
|
82
82
|
* the count is what moved the prompt's first line on every
|
|
83
83
|
* turn once a session passed it. Every shipped reply wires
|
|
@@ -91,7 +91,7 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
91
91
|
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.',
|
|
92
92
|
},
|
|
93
93
|
/**
|
|
94
|
-
* The channel this history reads
|
|
94
|
+
* The channel this history reads. A session's
|
|
95
95
|
* lanes are the mode's declaration; a pipeline chooses
|
|
96
96
|
* which one builds its context — the map narrator reads
|
|
97
97
|
* `map`, the chat pipeline reads `main`, and a custom
|
|
@@ -103,7 +103,7 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
103
103
|
description: "Which of the session's channels this history reads. The chat log is 'main'.",
|
|
104
104
|
},
|
|
105
105
|
/**
|
|
106
|
-
* **Only the unplayed talk** (
|
|
106
|
+
* **Only the unplayed talk** (2026-09-28):
|
|
107
107
|
* the rows of a side channel written since the story's
|
|
108
108
|
* newest generated line — the newest visible `main` row
|
|
109
109
|
* whose role is not `user`. Of those it keeps a person's own
|
|
@@ -125,8 +125,7 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
125
125
|
},
|
|
126
126
|
},
|
|
127
127
|
/**
|
|
128
|
-
* **Side channels as talk** (
|
|
129
|
-
* the R9 follow-up, 2026-09-28): on every channel but
|
|
128
|
+
* **Side channels as talk** (2026-09-28): on every channel but
|
|
130
129
|
* `main`, keep only the talk — a person's own lines and the
|
|
131
130
|
* replies a run fired ON that channel wrote there — by the
|
|
132
131
|
* rule `unplayedOnly` uses, without its bound. A row a
|
|
@@ -150,14 +149,14 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
150
149
|
},
|
|
151
150
|
/**
|
|
152
151
|
* The transcript's intent, on the node that produces the
|
|
153
|
-
* transcript (
|
|
152
|
+
* transcript (built 2026-09-16 — see
|
|
154
153
|
* `bandIntentFields`). `weight: 0.4` and `minInclude: 6`
|
|
155
154
|
* were here once, moved to the ranker's per-source map as
|
|
156
155
|
* `share.messages` and `minEntries.messages`, and are back
|
|
157
|
-
*
|
|
156
|
+
* on the source, where a source's intent belongs, at the numbers
|
|
158
157
|
* the map held: half the window is `MESSAGE_FILL_FRACTION`,
|
|
159
158
|
* and six is the minimum the map carried for the one band
|
|
160
|
-
*
|
|
159
|
+
* allowed a minimum (recent conversation; lore has none).
|
|
161
160
|
*
|
|
162
161
|
* ⚠ **No shipped spec ranks a message candidate** —
|
|
163
162
|
* `main` carries the transcript rows for
|
|
@@ -166,7 +165,7 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
166
165
|
* keep it so: `entity-search`'s past lines publish on
|
|
167
166
|
* their own `recalledLines` band, and `vector-search`
|
|
168
167
|
* asks the index for lorebook entries only (the app's
|
|
169
|
-
* binding names them
|
|
168
|
+
* binding names them). Its intent
|
|
170
169
|
* still reaches the ranker, on the `band` out-port a spec
|
|
171
170
|
* concatenates in with the lore, and its `share` is what
|
|
172
171
|
* halves the pool the lore sources divide: the
|
|
@@ -209,7 +208,7 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
209
208
|
},
|
|
210
209
|
},
|
|
211
210
|
/**
|
|
212
|
-
* Read, at last (
|
|
211
|
+
* Read, at last (it was declared and read by nothing
|
|
213
212
|
* from the day it was written, allow-listed in the
|
|
214
213
|
* declared-reads guard until this landed). `normal` is no
|
|
215
214
|
* ordering at all; see `BAND_PRIORITIES` in the SDK for
|
|
@@ -248,12 +247,12 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
248
247
|
*
|
|
249
248
|
* Not read with `unplayedOnly` (the talk keeps its `limit`)
|
|
250
249
|
* or a wired `messageId` (one row). There was a `budget`
|
|
251
|
-
* in-port once (culled 2026-09-16
|
|
250
|
+
* in-port once (culled 2026-09-16): declared and read by
|
|
252
251
|
* nothing. This one has a reader.
|
|
253
252
|
*/
|
|
254
253
|
budget: S.budget,
|
|
255
254
|
/**
|
|
256
|
-
* **One row, by id** (
|
|
255
|
+
* **One row, by id** (2026-09-28): wired —
|
|
257
256
|
* `$.input.messageId`, the message a press on a message's ⋮
|
|
258
257
|
* was made on — the read is exactly that row, whatever its
|
|
259
258
|
* channel, as a one-row transcript; `limit`, `budget`,
|
|
@@ -269,10 +268,10 @@ export const sessionHistory = pin(describeQueryDefinition({
|
|
|
269
268
|
out: {
|
|
270
269
|
/**
|
|
271
270
|
* Transcript rows, on both — `messages@1` (was
|
|
272
|
-
* `context-candidates@1` until 2026-09-17
|
|
271
|
+
* `context-candidates@1` until 2026-09-17: the
|
|
273
272
|
* value had always been rows, for `process-messages` and
|
|
274
273
|
* `prose-transcript`, and the intent rides `band` alone).
|
|
275
|
-
* Neither is a candidates list (
|
|
274
|
+
* Neither is a candidates list (ruled the same day): a spec that
|
|
276
275
|
* wires either into a merge, a concat or `assemble`'s
|
|
277
276
|
* `candidates` gets a `validate()` warning naming `band` — the
|
|
278
277
|
* host drops rows handed as candidates rather than ranking them.
|
|
@@ -470,12 +469,12 @@ const ADMIT_THRESHOLD = {
|
|
|
470
469
|
},
|
|
471
470
|
};
|
|
472
471
|
/**
|
|
473
|
-
* Where a source's intent lives: **on the source** (
|
|
474
|
-
* 2026-09-15, built 2026-09-16
|
|
472
|
+
* Where a source's intent lives: **on the source** (ruled
|
|
473
|
+
* 2026-09-15, built 2026-09-16).
|
|
475
474
|
*
|
|
476
475
|
* `share`, `maxEntries`, `minEntries` and `priority` used to be five-band maps
|
|
477
|
-
* on `core:task/rank-hybrid@1`. That
|
|
478
|
-
*
|
|
476
|
+
* on `core:task/rank-hybrid@1`. That design was rejected, and for this
|
|
477
|
+
* reason: a per-source map on the ranker has to be kept in step by hand with
|
|
479
478
|
* whichever sources exist, goes silently stale when one is added, and a
|
|
480
479
|
* plugin's retrieval definition cannot take part at all without somebody
|
|
481
480
|
* editing the ranker. So each of the five retrieval definitions declares its
|
|
@@ -490,11 +489,11 @@ const ADMIT_THRESHOLD = {
|
|
|
490
489
|
* that tuned nothing selects exactly what it selected before: `messages` 0.5
|
|
491
490
|
* (which is `MESSAGE_FILL_FRACTION`), the three lore bands 0.1667 / 0.1667 /
|
|
492
491
|
* 0.1666, relationships 0; ceilings 50 / 20 / 15 / 10 and none; a minimum of 6
|
|
493
|
-
* on the conversation alone
|
|
492
|
+
* on the conversation alone. Migration 0135 moves every stored value to
|
|
494
493
|
* the node that owns it now.
|
|
495
494
|
*
|
|
496
|
-
* ⚠ **`minEntries` is declared on `session-history` alone.**
|
|
497
|
-
*
|
|
495
|
+
* ⚠ **`minEntries` is declared on `session-history` alone.** The ruling:
|
|
496
|
+
* *per-source minimums are removed everywhere except recent
|
|
498
497
|
* conversation*. A minimum is a promise to spend budget on a source whether or
|
|
499
498
|
* not it scored, and the one way an entry the ranker turned down could come
|
|
500
499
|
* back in; declaring one on a lore lane would reopen exactly that door, so
|
|
@@ -594,7 +593,7 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
594
593
|
timeoutMs: 2000,
|
|
595
594
|
/**
|
|
596
595
|
* All three lore lanes through one port, so all three bands — each a
|
|
597
|
-
* top-level template name with its variable
|
|
596
|
+
* top-level template name with its variable.
|
|
598
597
|
* Policy, not contract: the candidates are the same either side of it.
|
|
599
598
|
*/
|
|
600
599
|
bands: { worldLore: varWorldLore, characterLore: varCharacterLore, history: varHistory },
|
|
@@ -606,7 +605,7 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
606
605
|
* Nothing read it and nothing seeded a row for it, so it rendered as
|
|
607
606
|
* an empty picker. A source template belongs on the node whose job
|
|
608
607
|
* is the rendering — a `render-entries` task, when one is bound
|
|
609
|
-
* (culled
|
|
608
|
+
* (culled: declared, never bound); two declarations of one idea, one
|
|
610
609
|
* of them inert, is how they drift.
|
|
611
610
|
*/
|
|
612
611
|
params: {
|
|
@@ -614,8 +613,8 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
614
613
|
facet: 'weights',
|
|
615
614
|
schema: {
|
|
616
615
|
/**
|
|
617
|
-
* The three bands' intents, first, as on the lanes
|
|
618
|
-
*
|
|
616
|
+
* The three bands' intents, first, as on the lanes
|
|
617
|
+
* (2026-09-16). This node produces world
|
|
619
618
|
* lore, character lore AND history through one port, so it
|
|
620
619
|
* declares all three — namespaced, `worldLoreShare` … —
|
|
621
620
|
* and publishes three band intents at the head of its
|
|
@@ -744,7 +743,7 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
744
743
|
ports: {
|
|
745
744
|
/**
|
|
746
745
|
* ⚠ No `text` in-port, and this and the three lore lanes had one
|
|
747
|
-
* (culled 2026-09-16
|
|
746
|
+
* (culled 2026-09-16). It was filled by no spec and read by
|
|
748
747
|
* no handler — the scan derives its window from `scope`, which is
|
|
749
748
|
* where it actually comes from — and each of the four carried a
|
|
750
749
|
* standing excuse in `wiring.test.ts` saying so.
|
|
@@ -753,7 +752,7 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
753
752
|
scope: S.sessionScope,
|
|
754
753
|
/**
|
|
755
754
|
* **Whose private lore this read is for** — a participant
|
|
756
|
-
* reference (`character:<id>`), additive, 2026-09-17
|
|
755
|
+
* reference (`character:<id>`), additive, 2026-09-17.
|
|
757
756
|
*
|
|
758
757
|
* Character-lore visibility is decided at the host read against
|
|
759
758
|
* ONE subject, and until this port existed that subject was the
|
|
@@ -782,7 +781,7 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
782
781
|
/**
|
|
783
782
|
* The entries this scan **found and then excluded** — an
|
|
784
783
|
* entry's own selective logic said *not here* — as verdicts
|
|
785
|
-
* `{ source, id, reason }` (
|
|
784
|
+
* `{ source, id, reason }` (2026-10-02). A copy of one that
|
|
786
785
|
* another mechanism brings in (by meaning, by name) is the
|
|
787
786
|
* same entry the author ruled out, and
|
|
788
787
|
* `core:task/eligibility@1` marks it ineligible with this
|
|
@@ -799,7 +798,7 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
799
798
|
* time they shared a weight, a minimum and a share of the window there. They
|
|
800
799
|
* are not alike: character lore is bound to whoever is speaking and world
|
|
801
800
|
* lore is not, and an install that wants a lot of one and little of the
|
|
802
|
-
* other had no way to say so. (Since
|
|
801
|
+
* other had no way to say so. (Since 2026-09-16 it can on either shape:
|
|
803
802
|
* that node declares one intent per band it produces, namespaced —
|
|
804
803
|
* `bandIntentFieldsOf` — from the same `LORE_BANDS` table these read.)
|
|
805
804
|
*
|
|
@@ -858,14 +857,14 @@ export const lorebookTriggers = pin(describeQueryDefinition({
|
|
|
858
857
|
*/
|
|
859
858
|
/**
|
|
860
859
|
* The seven lore knobs, declared once and worn by all three lore lanes —
|
|
861
|
-
* every one of them **`shared`** (
|
|
860
|
+
* every one of them **`shared`** (ruled 2026-09-15; the marker
|
|
862
861
|
* 2026-09-16, see `FieldDecl.shared`): a spec wires the three lanes' `params`
|
|
863
862
|
* to ONE node — core's `respond` puts them on `gather.worldLore.read` and the
|
|
864
863
|
* other two lanes read that slot through `slot.params({ node })` — so a person
|
|
865
864
|
* tuning them tunes them once, for world lore, character lore and history
|
|
866
865
|
* together. The wording below says so: it is the owner's label a panel shows,
|
|
867
866
|
* and an owner labelled "world lore" while governing three sources was the
|
|
868
|
-
* lie
|
|
867
|
+
* lie a review found.
|
|
869
868
|
*
|
|
870
869
|
* The lane's own intent (`bandIntentFields` above) sits beside them in the
|
|
871
870
|
* same slot, UNMARKED: through the same reference a lane's share is the
|
|
@@ -908,7 +907,7 @@ const loreScanFields = () => ({
|
|
|
908
907
|
description: 'A ceiling on how far entries may trigger further entries via keywords found in their text, however deep an individual entry asks to go. It never follows links between entries.',
|
|
909
908
|
},
|
|
910
909
|
/**
|
|
911
|
-
* Declared on all three lanes, held by one: since
|
|
910
|
+
* Declared on all three lanes, held by one: since 2026-09-15 a spec
|
|
912
911
|
* names ONE owner for the seven knobs and the other lanes read the
|
|
913
912
|
* owner's slot, so this is one row governing world lore, character
|
|
914
913
|
* lore and history alike — not one row per lane. World lore
|
|
@@ -945,7 +944,7 @@ const loreSlots = (band, defaults) => ({
|
|
|
945
944
|
/** @experimental */
|
|
946
945
|
export const worldLore = pin(describeQueryDefinition({
|
|
947
946
|
id: 'core:query/world-lore@1',
|
|
948
|
-
/** The band this lane publishes — a top-level template name
|
|
947
|
+
/** The band this lane publishes — a top-level template name. */
|
|
949
948
|
bands: { worldLore: varWorldLore },
|
|
950
949
|
i18n: { name: { en: 'World lore' } },
|
|
951
950
|
timeoutMs: 2000,
|
|
@@ -969,7 +968,7 @@ export const worldLore = pin(describeQueryDefinition({
|
|
|
969
968
|
/**
|
|
970
969
|
* The entries this scan **found and then excluded** — an
|
|
971
970
|
* entry's own selective logic said *not here* — as verdicts
|
|
972
|
-
* `{ source, id, reason }` (
|
|
971
|
+
* `{ source, id, reason }` (2026-10-02). A copy of one that
|
|
973
972
|
* another mechanism brings in (by meaning, by name) is the
|
|
974
973
|
* same entry the author ruled out, and
|
|
975
974
|
* `core:task/eligibility@1` marks it ineligible with this
|
|
@@ -982,7 +981,7 @@ export const worldLore = pin(describeQueryDefinition({
|
|
|
982
981
|
/** @experimental */
|
|
983
982
|
export const characterLore = pin(describeQueryDefinition({
|
|
984
983
|
id: 'core:query/character-lore@1',
|
|
985
|
-
/** The band this lane publishes — a top-level template name
|
|
984
|
+
/** The band this lane publishes — a top-level template name. */
|
|
986
985
|
bands: { characterLore: varCharacterLore },
|
|
987
986
|
i18n: { name: { en: 'Character lore' } },
|
|
988
987
|
timeoutMs: 2000,
|
|
@@ -996,7 +995,7 @@ export const characterLore = pin(describeQueryDefinition({
|
|
|
996
995
|
scope: S.sessionScope,
|
|
997
996
|
/**
|
|
998
997
|
* **Whose private lore this read is for** — a participant
|
|
999
|
-
* reference (`character:<id>`), additive, 2026-09-17
|
|
998
|
+
* reference (`character:<id>`), additive, 2026-09-17.
|
|
1000
999
|
*
|
|
1001
1000
|
* Character-lore visibility is decided at the host read against
|
|
1002
1001
|
* ONE subject, and until this port existed that subject was the
|
|
@@ -1025,7 +1024,7 @@ export const characterLore = pin(describeQueryDefinition({
|
|
|
1025
1024
|
/**
|
|
1026
1025
|
* The entries this scan **found and then excluded** — an
|
|
1027
1026
|
* entry's own selective logic said *not here* — as verdicts
|
|
1028
|
-
* `{ source, id, reason }` (
|
|
1027
|
+
* `{ source, id, reason }` (2026-10-02). A copy of one that
|
|
1029
1028
|
* another mechanism brings in (by meaning, by name) is the
|
|
1030
1029
|
* same entry the author ruled out, and
|
|
1031
1030
|
* `core:task/eligibility@1` marks it ineligible with this
|
|
@@ -1057,7 +1056,7 @@ export const characterLore = pin(describeQueryDefinition({
|
|
|
1057
1056
|
*/
|
|
1058
1057
|
export const historyEntries = pin(describeQueryDefinition({
|
|
1059
1058
|
id: 'core:query/history-entries@1',
|
|
1060
|
-
/** The band this lane publishes — a top-level template name
|
|
1059
|
+
/** The band this lane publishes — a top-level template name. */
|
|
1061
1060
|
bands: { history: varHistory },
|
|
1062
1061
|
i18n: { name: { en: 'History entries' } },
|
|
1063
1062
|
timeoutMs: 2000,
|
|
@@ -1077,7 +1076,7 @@ export const historyEntries = pin(describeQueryDefinition({
|
|
|
1077
1076
|
/**
|
|
1078
1077
|
* The entries this scan **found and then excluded** — an
|
|
1079
1078
|
* entry's own selective logic said *not here* — as verdicts
|
|
1080
|
-
* `{ source, id, reason }` (
|
|
1079
|
+
* `{ source, id, reason }` (2026-10-02). A copy of one that
|
|
1081
1080
|
* another mechanism brings in (by meaning, by name) is the
|
|
1082
1081
|
* same entry the author ruled out, and
|
|
1083
1082
|
* `core:task/eligibility@1` marks it ineligible with this
|
|
@@ -1089,7 +1088,7 @@ export const historyEntries = pin(describeQueryDefinition({
|
|
|
1089
1088
|
}));
|
|
1090
1089
|
/**
|
|
1091
1090
|
* **Who is in the world, and when** — the cast's presences, as the session's
|
|
1092
|
-
* reading sees them (
|
|
1091
|
+
* reading sees them (built 2026-10-02).
|
|
1093
1092
|
*
|
|
1094
1093
|
* A presence says *this member, at this point of their own life, is here from
|
|
1095
1094
|
* this date until that one* (`cast_presences`). The host reads the scope
|
|
@@ -1106,7 +1105,7 @@ export const historyEntries = pin(describeQueryDefinition({
|
|
|
1106
1105
|
*
|
|
1107
1106
|
* What it is for: `core:task/eligibility@1`'s presence rule, which gates the
|
|
1108
1107
|
* lore of a member who is not in the world at `at`. A custom retrieval reads it
|
|
1109
|
-
* the same way
|
|
1108
|
+
* the same way.
|
|
1110
1109
|
* @experimental
|
|
1111
1110
|
*/
|
|
1112
1111
|
export const castPresences = pin(describeQueryDefinition({
|
|
@@ -1251,7 +1250,7 @@ export const vectorSearch = pin(describeQueryDefinition({
|
|
|
1251
1250
|
in: {
|
|
1252
1251
|
/**
|
|
1253
1252
|
* Several query vectors, one ranked list each — a list, so
|
|
1254
|
-
* `json@1` (was `vector@1` until 2026-09-17
|
|
1253
|
+
* `json@1` (was `vector@1` until 2026-09-17):
|
|
1255
1254
|
* what `embed-text@1`'s `vectors` publishes and what the
|
|
1256
1255
|
* host's search reads.
|
|
1257
1256
|
*/
|
|
@@ -1260,7 +1259,7 @@ export const vectorSearch = pin(describeQueryDefinition({
|
|
|
1260
1259
|
/**
|
|
1261
1260
|
* **Whose private lore this search may return** — a participant
|
|
1262
1261
|
* reference, with `core:query/character-lore@1`'s exact
|
|
1263
|
-
* semantics (
|
|
1262
|
+
* semantics (2026-10-02): unwired, `null` or empty, the
|
|
1264
1263
|
* scope decides as it always did; a `character:<id>` reads
|
|
1265
1264
|
* that character's own private lore and nobody else's; any
|
|
1266
1265
|
* other reference reads none. The leak guard for a search
|
|
@@ -1338,7 +1337,7 @@ export const entitySearch = pin(describeQueryDefinition({
|
|
|
1338
1337
|
facet: 'weights',
|
|
1339
1338
|
schema: {
|
|
1340
1339
|
/**
|
|
1341
|
-
* **On by default — 5** (
|
|
1340
|
+
* **On by default — 5** (ruled 2026-09-30: all supported
|
|
1342
1341
|
* retrieval is on by default; built 2026-10-02). It was 0,
|
|
1343
1342
|
* the `maxRecursionDepth` / `admitThreshold` convention of
|
|
1344
1343
|
* "turned on rather than arrived at"; the ruling replaced
|
|
@@ -1366,8 +1365,8 @@ export const entitySearch = pin(describeQueryDefinition({
|
|
|
1366
1365
|
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.",
|
|
1367
1366
|
},
|
|
1368
1367
|
/**
|
|
1369
|
-
* The recalled lines' **share** — a band-namespaced field
|
|
1370
|
-
*
|
|
1368
|
+
* The recalled lines' **share** — a band-namespaced field,
|
|
1369
|
+
* because this definition publishes lore on `main`
|
|
1371
1370
|
* and its own band on `messages`. Published as the band's
|
|
1372
1371
|
* intent at the head of `messages` whenever `maxMessages`
|
|
1373
1372
|
* turns the half on; the cap is `maxMessages`, which
|
|
@@ -1419,7 +1418,7 @@ export const entitySearch = pin(describeQueryDefinition({
|
|
|
1419
1418
|
* nothing filled and nothing read — `loreFor` derives its window
|
|
1420
1419
|
* from `scope` — and this declaration refused to ship a fifth with
|
|
1421
1420
|
* the same standing excuse written for it. Theirs are culled now
|
|
1422
|
-
* (2026-09-16
|
|
1421
|
+
* (2026-09-16); the window comes from `scope`, which is where
|
|
1423
1422
|
* it actually comes from.
|
|
1424
1423
|
*/
|
|
1425
1424
|
in: {
|
|
@@ -1427,7 +1426,7 @@ export const entitySearch = pin(describeQueryDefinition({
|
|
|
1427
1426
|
/**
|
|
1428
1427
|
* **Whose private lore this search may return** — a participant
|
|
1429
1428
|
* reference, with `core:query/character-lore@1`'s exact
|
|
1430
|
-
* semantics (
|
|
1429
|
+
* semantics (2026-10-02): unwired, `null` or empty, the
|
|
1431
1430
|
* scope decides as it always did; a `character:<id>` reads
|
|
1432
1431
|
* that character's own private lore and nobody else's; any
|
|
1433
1432
|
* other reference reads none. The leak guard for a search
|
|
@@ -1455,8 +1454,8 @@ export const entitySearch = pin(describeQueryDefinition({
|
|
|
1455
1454
|
},
|
|
1456
1455
|
}));
|
|
1457
1456
|
/**
|
|
1458
|
-
* Documentation search — the guide genre's one retrieval mechanism (
|
|
1459
|
-
*
|
|
1457
|
+
* Documentation search — the guide genre's one retrieval mechanism (built
|
|
1458
|
+
* 2026-09-16).
|
|
1460
1459
|
*
|
|
1461
1460
|
* The app compiles its docs — its own guides and the SDK's — into a section
|
|
1462
1461
|
* index at build time (title, anchor, body text per heading). This reads the
|
|
@@ -1485,7 +1484,7 @@ export const docsSearch = pin(describeQueryDefinition({
|
|
|
1485
1484
|
en: "Finds the documentation sections that answer the person's latest question, so the guide can ground its answer in them — and finds none when the docs do not cover it.",
|
|
1486
1485
|
},
|
|
1487
1486
|
},
|
|
1488
|
-
/** Its own band, a top-level template name
|
|
1487
|
+
/** Its own band, a top-level template name. */
|
|
1489
1488
|
bands: { docsExcerpts: varDocsExcerpts },
|
|
1490
1489
|
timeoutMs: 2000,
|
|
1491
1490
|
optional: true,
|
|
@@ -1547,7 +1546,7 @@ export const mentionSpans = pin(describeQueryDefinition({
|
|
|
1547
1546
|
facet: 'weights',
|
|
1548
1547
|
schema: {
|
|
1549
1548
|
/**
|
|
1550
|
-
* **On by default — 8** (
|
|
1549
|
+
* **On by default — 8** (ruled 2026-09-30: all supported
|
|
1551
1550
|
* retrieval is on by default; built 2026-10-02). It was 0.
|
|
1552
1551
|
* Still the mechanism's one switch: 0 turns it off.
|
|
1553
1552
|
*
|
|
@@ -1695,7 +1694,7 @@ export const entityLink = pin(describeQueryDefinition({
|
|
|
1695
1694
|
/**
|
|
1696
1695
|
* **Whose private lore this search may return** — a participant
|
|
1697
1696
|
* reference, with `core:query/character-lore@1`'s exact
|
|
1698
|
-
* semantics (
|
|
1697
|
+
* semantics (2026-10-02): unwired, `null` or empty, the
|
|
1699
1698
|
* scope decides as it always did; a `character:<id>` reads
|
|
1700
1699
|
* that character's own private lore and nobody else's; any
|
|
1701
1700
|
* other reference reads none. The leak guard for a search
|
|
@@ -1724,7 +1723,7 @@ export const network = pin(describeQueryDefinition({
|
|
|
1724
1723
|
* A Task, not a Query, even though it reads the cast: what it *is* is the
|
|
1725
1724
|
* resolution — which characters appear, which get named, which scenario wins —
|
|
1726
1725
|
* and that is a decision anyone should be able to replace. The read reaches the
|
|
1727
|
-
* host like any other (
|
|
1726
|
+
* host like any other (a Task never holds host services itself).
|
|
1728
1727
|
*
|
|
1729
1728
|
* Separate from Assemble on purpose. Assemble allocates a budget and renders;
|
|
1730
1729
|
* this decides what there is to render. A plugin that wants different character
|
|
@@ -1741,8 +1740,8 @@ export const sessionCast = pin(describeQueryDefinition({
|
|
|
1741
1740
|
main: S.sessionCast,
|
|
1742
1741
|
cast: S.sessionCast,
|
|
1743
1742
|
/**
|
|
1744
|
-
* The seated envoys on their own (
|
|
1745
|
-
*
|
|
1743
|
+
* The seated envoys on their own (additive
|
|
1744
|
+
* 2026-09-21): `{ slug, key, origin, name, speaks,
|
|
1746
1745
|
* default, position, removedAt }` per seat, live and departed,
|
|
1747
1746
|
* in seat order — the rows `main` already carries under
|
|
1748
1747
|
* `envoys`, offered as a port so a pool or a strategy can be
|
|
@@ -1754,7 +1753,7 @@ export const sessionCast = pin(describeQueryDefinition({
|
|
|
1754
1753
|
},
|
|
1755
1754
|
}));
|
|
1756
1755
|
/**
|
|
1757
|
-
* The session's settings document, re-read
|
|
1756
|
+
* The session's settings document, re-read.
|
|
1758
1757
|
*
|
|
1759
1758
|
* Every core inlet that takes a session already publishes the document on
|
|
1760
1759
|
* its `session` port, resolved once by the host at run start. This node is
|
|
@@ -1911,14 +1910,14 @@ export const relationshipsKnown = pin(describeQueryDefinition({
|
|
|
1911
1910
|
},
|
|
1912
1911
|
}));
|
|
1913
1912
|
/**
|
|
1914
|
-
* The narrative graph as a retrieval **mechanism** (ruling 2026-09-10
|
|
1913
|
+
* The narrative graph as a retrieval **mechanism** (ruling 2026-09-10).
|
|
1915
1914
|
*
|
|
1916
1915
|
* ⚠ The ruling calls this an *arm*, and the id deliberately does not. Two
|
|
1917
|
-
* reasons, and the second is the stronger:
|
|
1916
|
+
* reasons, and the second is the stronger: the project's vocabulary retires *arm* in
|
|
1918
1917
|
* favour of **mechanism**, and every sibling in this package is named for what
|
|
1919
1918
|
* it retrieves rather than for the machinery — `entity-search`,
|
|
1920
1919
|
* `vector-search`, `world-lore`. The word survives in the *descriptions* on
|
|
1921
|
-
* those siblings, which is prose a user reads
|
|
1920
|
+
* those siblings, which is prose a user reads; an id is a frozen
|
|
1922
1921
|
* contract, which is the one place a retired word should not land.
|
|
1923
1922
|
*
|
|
1924
1923
|
* The two nodes above are a *dump*: they hand the whole graph section to the
|
|
@@ -1956,7 +1955,7 @@ export const relationshipsKnown = pin(describeQueryDefinition({
|
|
|
1956
1955
|
* means exactly what it means on the two nodes above: on/off plus a ceiling,
|
|
1957
1956
|
* with an absent value uncapped and 0 leaving it out altogether.
|
|
1958
1957
|
*
|
|
1959
|
-
* ## Nobody speaking: the cast-wide read (
|
|
1958
|
+
* ## Nobody speaking: the cast-wide read (2026-09-29)
|
|
1960
1959
|
*
|
|
1961
1960
|
* The three sections are claims about a SPEAKER, and a scope whose
|
|
1962
1961
|
* `currentCharacterId` is null has none — an Adventure turn is the narrator's
|
|
@@ -1990,7 +1989,7 @@ export const relationshipSearch = pin(describeQueryDefinition({
|
|
|
1990
1989
|
...relationshipSlots('graph relationships').params,
|
|
1991
1990
|
schema: {
|
|
1992
1991
|
/**
|
|
1993
|
-
* The band's intent
|
|
1992
|
+
* The band's intent, on the one relationship read
|
|
1994
1993
|
* that ranks. `share` is 0, which is what the ranker's map
|
|
1995
1994
|
* held: the band ships inert and the share is its switch —
|
|
1996
1995
|
* every candidate leaves as `excluded_group_disabled` with
|
|
@@ -2015,12 +2014,12 @@ export const relationshipSearch = pin(describeQueryDefinition({
|
|
|
2015
2014
|
/**
|
|
2016
2015
|
* The lore-link hop: relationships one edge from an entry
|
|
2017
2016
|
* this turn's keyword scan chose, with an entry at an end
|
|
2018
|
-
* (
|
|
2017
|
+
* (a *lore link*).
|
|
2019
2018
|
*
|
|
2020
2019
|
* `true` is what every run before it did, so the default
|
|
2021
2020
|
* moves nothing. Off, the hop is not walked at all — no
|
|
2022
2021
|
* link read, no second scan — and the band holds cast ties
|
|
2023
|
-
* only. Adventure's preset turns it off
|
|
2022
|
+
* only. Adventure's preset turns it off: a place
|
|
2024
2023
|
* link belongs to the place ("From here:"), and a hop would
|
|
2025
2024
|
* spend the band on a door no section renders.
|
|
2026
2025
|
*/
|
|
@@ -2067,7 +2066,7 @@ export const relationshipSearch = pin(describeQueryDefinition({
|
|
|
2067
2066
|
},
|
|
2068
2067
|
}));
|
|
2069
2068
|
/**
|
|
2070
|
-
* 🚧 **A transcript's attachments** (
|
|
2069
|
+
* 🚧 **A transcript's attachments** (2026-10-02).
|
|
2071
2070
|
*
|
|
2072
2071
|
* Takes the history read's rows and publishes, per message id, the files its
|
|
2073
2072
|
* active revision shows — `core:image` and `core:file` parts, in part order —
|
|
@@ -2148,15 +2147,15 @@ export const availableTools = pin(describeQueryDefinition({
|
|
|
2148
2147
|
* Create a message.
|
|
2149
2148
|
*
|
|
2150
2149
|
* Split from the old `commitMessage`, which decided new-vs-update from whether an id
|
|
2151
|
-
* happened to be present
|
|
2150
|
+
* happened to be present. That was an implicit branch, and specs may not branch because
|
|
2152
2151
|
* implicit branches are unreadable: two specs that did different things looked identical,
|
|
2153
2152
|
* and the receipt could not tell you which had happened. Two ids, two names, no inference.
|
|
2154
2153
|
*
|
|
2155
|
-
* Gate-eligible, so it publishes the discriminated write result rather than raw ids
|
|
2156
|
-
*
|
|
2154
|
+
* Gate-eligible, so it publishes the discriminated write result rather than raw ids.
|
|
2155
|
+
* Under async review this is a proposal a reviewer may still reject.
|
|
2157
2156
|
*/
|
|
2158
2157
|
/**
|
|
2159
|
-
* The create pipeline's read
|
|
2158
|
+
* The create pipeline's read: what the session's cast wants to
|
|
2160
2159
|
* say first — one entry per character in position order, each carrying the
|
|
2161
2160
|
* full greeting history (the first text seeds the message, the rest become
|
|
2162
2161
|
* swipes), interpolated against the session's first persona.
|
|
@@ -2176,8 +2175,8 @@ export const sessionGreetings = pin(describeQueryDefinition({
|
|
|
2176
2175
|
},
|
|
2177
2176
|
}));
|
|
2178
2177
|
/**
|
|
2179
|
-
* A seated envoy's **declared greeting**, interpolated
|
|
2180
|
-
* 2026-09-28) — the line an envoy opens a new session with
|
|
2178
|
+
* A seated envoy's **declared greeting**, interpolated
|
|
2179
|
+
* (2026-09-28) — the line an envoy opens a new session with
|
|
2181
2180
|
* (`EnvoyDecl.greeting`): the Lair's Castellan introduces the game.
|
|
2182
2181
|
*
|
|
2183
2182
|
* The create pipeline's read, beside `session-greetings@1`, which stays the
|
|
@@ -2261,7 +2260,7 @@ export const turnPlan = pin(describeQueryDefinition({
|
|
|
2261
2260
|
},
|
|
2262
2261
|
}));
|
|
2263
2262
|
/**
|
|
2264
|
-
* The session's **annex
|
|
2263
|
+
* The session's **annex**: read one owner's
|
|
2265
2264
|
* document out of `sessions.annex`.
|
|
2266
2265
|
*
|
|
2267
2266
|
* The annex is the pipeline layer's free field, namespaced by owner key — a
|
|
@@ -2306,12 +2305,12 @@ export const sessionAnnex = pin(describeQueryDefinition({
|
|
|
2306
2305
|
in: {
|
|
2307
2306
|
scope: S.sessionScope,
|
|
2308
2307
|
/**
|
|
2309
|
-
* `'ai'` for the prompt-safe view
|
|
2308
|
+
* `'ai'` for the prompt-safe view: only the values the
|
|
2310
2309
|
* model's context may carry — those whose audience holds `ai`,
|
|
2311
2310
|
* `participant`, or the `speaker` below. Absent is everything,
|
|
2312
2311
|
* as a pipeline reads it. A literal.
|
|
2313
2312
|
*
|
|
2314
|
-
* `'template'`
|
|
2313
|
+
* `'template'` reads what a template may
|
|
2315
2314
|
* reference: every DECLARED key of every owner in scope — core
|
|
2316
2315
|
* and the enabled plugins, for the session's genre — as
|
|
2317
2316
|
* `{ <owner>: { <key>: value } }`. `owner` and `sharedAnnex`
|
|
@@ -2326,8 +2325,8 @@ export const sessionAnnex = pin(describeQueryDefinition({
|
|
|
2326
2325
|
},
|
|
2327
2326
|
}));
|
|
2328
2327
|
// ── Summarization ───────────────────────────────────────────────────────────
|
|
2329
|
-
/** The messages a summary is drawn from, already scoped and ordered.
|
|
2330
|
-
|
|
2328
|
+
/** The messages a summary is drawn from, already scoped and ordered (`@1`). */
|
|
2329
|
+
const summarizeSourceAt1 = pin(describeQueryDefinition({
|
|
2331
2330
|
id: 'core:query/summarize-source@1',
|
|
2332
2331
|
i18n: { name: { en: 'Messages to summarize' } },
|
|
2333
2332
|
timeoutMs: 5000,
|
|
@@ -2336,6 +2335,107 @@ export const summarizeSource = pin(describeQueryDefinition({
|
|
|
2336
2335
|
out: { main: S.messages, messages: S.messages },
|
|
2337
2336
|
},
|
|
2338
2337
|
}));
|
|
2338
|
+
/**
|
|
2339
|
+
* 🚧 A **scene's** messages, by range and lane — the source a genre-owned
|
|
2340
|
+
* summarize-scene spec reads (live scenes §13–§14, 2026-10-13).
|
|
2341
|
+
*
|
|
2342
|
+
* ## Why a second version, not a widened first
|
|
2343
|
+
*
|
|
2344
|
+
* `@1` hands on one flat list of the rows a request named. A scene is a
|
|
2345
|
+
* RANGE on one lane (`openedAt` … `closedAt`, message ids), and what the
|
|
2346
|
+
* genre counts as story and as aside differs by genre: the Lair's Sanctum is
|
|
2347
|
+
* talk the party never hear, which a summary should read as context and never
|
|
2348
|
+
* as events. So this version splits its output — `messages` (the story) and
|
|
2349
|
+
* `asides` (each side-channel row, attached by the host to the story line
|
|
2350
|
+
* before it) — and that is a different contract, not a wider one. `@1`
|
|
2351
|
+
* stays for the shared summarize specs that resolve against it.
|
|
2352
|
+
*
|
|
2353
|
+
* ## Who decides which channels
|
|
2354
|
+
*
|
|
2355
|
+
* The SPEC, through `params` (`channel`, `asides`) — the builder writes its
|
|
2356
|
+
* genre's choice onto its Default preset, exactly as `session-history@1`'s
|
|
2357
|
+
* `channel` already works. A request may name `channel` / `asides` too (the
|
|
2358
|
+
* scene row's own lane, say), and a value the request carries wins over the
|
|
2359
|
+
* param, because it is the narrower statement.
|
|
2360
|
+
*
|
|
2361
|
+
* ## The request
|
|
2362
|
+
*
|
|
2363
|
+
* `{ sceneId?, messageIds?, channel?, asides?: string[], openedAt?,
|
|
2364
|
+
* closedAt?, limit? }` on the `summarize-request@1` payload. `openedAt` /
|
|
2365
|
+
* `closedAt` are message ids bounding the range, inclusive; `closedAt` absent
|
|
2366
|
+
* reads to the newest row (an open scene). `messageIds` is the transition
|
|
2367
|
+
* path (`scenes:create`'s ticked rows) and wins when present. An empty span
|
|
2368
|
+
* is not an error: the source hands on two empty lists and the drafting map
|
|
2369
|
+
* runs zero times. A channel the session has never written is the same — an
|
|
2370
|
+
* aside on a lane with no rows contributes nothing, never a refusal.
|
|
2371
|
+
*
|
|
2372
|
+
* ## The rows
|
|
2373
|
+
*
|
|
2374
|
+
* `@1`'s `summarize_source` row shape — `id`, `role`, `senderName` (the
|
|
2375
|
+
* sender as the session names them), `content` — plus `channel` on every
|
|
2376
|
+
* row, so the transcript template's `aside` section can say where a line was
|
|
2377
|
+
* written. `render-transcript@1` reads these and nothing else.
|
|
2378
|
+
* @experimental
|
|
2379
|
+
*/
|
|
2380
|
+
const summarizeSourceAt2 = pin(describeQueryDefinition({
|
|
2381
|
+
id: 'core:query/summarize-source@2',
|
|
2382
|
+
i18n: { name: { en: 'Scene to summarize' } },
|
|
2383
|
+
timeoutMs: 5000,
|
|
2384
|
+
slots: {
|
|
2385
|
+
params: {
|
|
2386
|
+
kind: 'parameters',
|
|
2387
|
+
facet: 'behavior',
|
|
2388
|
+
schema: {
|
|
2389
|
+
/** The story's lane — `main` for every core genre. */
|
|
2390
|
+
channel: {
|
|
2391
|
+
type: 'string',
|
|
2392
|
+
default: 'main',
|
|
2393
|
+
label: { en: 'Story channel' },
|
|
2394
|
+
description: {
|
|
2395
|
+
en: "Which of the session's channels holds the story. The chat log is 'main'.",
|
|
2396
|
+
},
|
|
2397
|
+
},
|
|
2398
|
+
/**
|
|
2399
|
+
* Channels read as asides: rows matched by prefix
|
|
2400
|
+
* (`sanctum` matches `sanctum:2`), each attached to the
|
|
2401
|
+
* story line before it. Empty reads the story alone.
|
|
2402
|
+
*/
|
|
2403
|
+
asides: {
|
|
2404
|
+
type: 'list',
|
|
2405
|
+
item: { type: 'text' },
|
|
2406
|
+
label: { en: 'Aside channels' },
|
|
2407
|
+
description: {
|
|
2408
|
+
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.",
|
|
2409
|
+
},
|
|
2410
|
+
},
|
|
2411
|
+
},
|
|
2412
|
+
},
|
|
2413
|
+
},
|
|
2414
|
+
ports: {
|
|
2415
|
+
in: { scope: S.sessionScope, request: S.summarizeRequest },
|
|
2416
|
+
out: {
|
|
2417
|
+
main: S.messages,
|
|
2418
|
+
/** The story's rows on the story channel, oldest first. */
|
|
2419
|
+
messages: S.messages,
|
|
2420
|
+
/** The aside rows inside the range, oldest first, each carrying its channel. */
|
|
2421
|
+
asides: S.messages,
|
|
2422
|
+
},
|
|
2423
|
+
},
|
|
2424
|
+
}));
|
|
2425
|
+
/**
|
|
2426
|
+
* The messages a summary is drawn from — both pins on one export, the way a
|
|
2427
|
+
* pinned constructor carries its version at the call site (04 §4b):
|
|
2428
|
+
* `C.summarizeSource.v1(…)` for the shared summarize specs,
|
|
2429
|
+
* `C.summarizeSource.v2(…)` for a genre's summarize-scene. `id` and
|
|
2430
|
+
* `descriptor` stay `@1`'s, so nothing that held this export changes
|
|
2431
|
+
* meaning; `@2`'s descriptor rides its constructor
|
|
2432
|
+
* (`typeof C.summarizeSource.v2` types a binding).
|
|
2433
|
+
* @internal
|
|
2434
|
+
*/
|
|
2435
|
+
export const summarizeSource = {
|
|
2436
|
+
...summarizeSourceAt1,
|
|
2437
|
+
v2: Object.assign(summarizeSourceAt2.v2, { descriptor: summarizeSourceAt2.descriptor }),
|
|
2438
|
+
};
|
|
2339
2439
|
/**
|
|
2340
2440
|
* The keywords an entry is proposed to be found by — **without a model**.
|
|
2341
2441
|
*
|
|
@@ -2528,8 +2628,7 @@ export const graphScenes = pin(describeQueryDefinition({
|
|
|
2528
2628
|
* — this is the `current` view, and the temporal registry that would give the
|
|
2529
2629
|
* other one is not built (see docs/stats-and-states.md).
|
|
2530
2630
|
*
|
|
2531
|
-
* `version` is the session's **state version
|
|
2532
|
-
* order*; 30 §U5f): a counter every applied change moves, in turn order,
|
|
2631
|
+
* `version` is the session's **state version**: a counter every applied change moves, in turn order,
|
|
2533
2632
|
* under a lock. A run that reads state here and later asks to change it
|
|
2534
2633
|
* hands the version back as `base` on `resolve-state-changes@1` /
|
|
2535
2634
|
* `set-state@1`, so a change proposed against a state that has since moved
|
|
@@ -2807,7 +2906,7 @@ export const statTrail = pin(describeQueryDefinition({
|
|
|
2807
2906
|
*
|
|
2808
2907
|
* ## Why `propose` is the default
|
|
2809
2908
|
*
|
|
2810
|
-
* The three writers do not have equal authority
|
|
2909
|
+
* The three writers do not have equal authority.
|
|
2811
2910
|
* A person editing a bar is authoritative; a genre's own script rolling damage
|
|
2812
2911
|
* is authoritative because the genre author wrote the arithmetic; a **model**
|
|
2813
2912
|
* is neither, and a model that could set a number silently is a model that can
|
|
@@ -2819,7 +2918,7 @@ export const statTrail = pin(describeQueryDefinition({
|
|
|
2819
2918
|
* ## Why it is a Task
|
|
2820
2919
|
*
|
|
2821
2920
|
* It writes, which a Task is not otherwise supposed to do, and the alternative
|
|
2822
|
-
* is worse:
|
|
2921
|
+
* is worse: the one-live-row rule allows a spec **one** write-class Consumer and that one is the
|
|
2823
2922
|
* message. A damage roll that also saves a reply would be unspecifiable. What
|
|
2824
2923
|
* makes it defensible rather than a hole is that these rows are not the run's
|
|
2825
2924
|
* primary artifact — every one of them is anchored to a message and retracted
|
|
@@ -2832,6 +2931,14 @@ export const statTrail = pin(describeQueryDefinition({
|
|
|
2832
2931
|
* item line survives on `resolve-state-changes@1`, which turns it into this). One
|
|
2833
2932
|
* port because one turn's changes are one ordered list, and splitting them
|
|
2834
2933
|
* would let a spec apply half of them.
|
|
2934
|
+
*
|
|
2935
|
+
* 🚧 A **clock line** `{ kind: 'clock', by, unit }` (live scenes §6, ★3) is
|
|
2936
|
+
* the state-keeper asking to move the session's story clock forward. `propose`
|
|
2937
|
+
* holds it as a **clock proposal** (`state_proposals.kind` `clock`), whose
|
|
2938
|
+
* Accept advances the clock; `apply` passes it over — neither applied nor
|
|
2939
|
+
* refused — because a moved clock is announced through a host seam a task does
|
|
2940
|
+
* not have: a spec that applies the keeper's clock wires *Advance story clock*
|
|
2941
|
+
* from `resolve-state-changes@1`'s `clock` out-port (Adventure's trusted arm).
|
|
2835
2942
|
*/
|
|
2836
2943
|
/**
|
|
2837
2944
|
* Changes a model NAMED, turned into changes `set-state` can write.
|
|
@@ -2840,7 +2947,7 @@ export const statTrail = pin(describeQueryDefinition({
|
|
|
2840
2947
|
*
|
|
2841
2948
|
* "Verity" becomes a cast row by looking her up in this session's cast, which
|
|
2842
2949
|
* is a read of the host and therefore a Query's job — a Task is handed no
|
|
2843
|
-
* services
|
|
2950
|
+
* services. That also buys the scoping refusal for free: the cast it
|
|
2844
2951
|
* matches against is the cast of the session on the `scope` port and no other.
|
|
2845
2952
|
*
|
|
2846
2953
|
* ## Why this is a node and not a leniency inside `set-state`
|
|
@@ -2889,7 +2996,7 @@ export const resolveStateChanges = pin(describeQueryDefinition({
|
|
|
2889
2996
|
changes: S.json,
|
|
2890
2997
|
/**
|
|
2891
2998
|
* Who a change that names no `owner` is for, as participant
|
|
2892
|
-
* references (
|
|
2999
|
+
* references (2026-09-28): each such change
|
|
2893
3000
|
* is made once per reference, the same slot and value on each —
|
|
2894
3001
|
* the Lair's Whisper writes its one line on every recipient the
|
|
2895
3002
|
* press collected (`core:inlet/user-message@1.recipients`). A
|
|
@@ -2933,7 +3040,27 @@ export const resolveStateChanges = pin(describeQueryDefinition({
|
|
|
2933
3040
|
*/
|
|
2934
3041
|
plan: S.json,
|
|
2935
3042
|
/**
|
|
2936
|
-
*
|
|
3043
|
+
* 🚧 **A clock proposal** (live scenes §6, ★3, 2026-10-13): the
|
|
3044
|
+
* keeper's answer, whose `clock` list (`[{ by, unit }]`, empty
|
|
3045
|
+
* on the ordinary turn) is how much story time the scene took.
|
|
3046
|
+
* The whole answer for `plan`'s reason — a reference has no
|
|
3047
|
+
* sub-path — and a bare `{ by, unit }` reads the same. The
|
|
3048
|
+
* first entry resolves onto `changes` as `{ kind: 'clock', by,
|
|
3049
|
+
* unit }` (what `set-state` proposes) and onto the `clock`
|
|
3050
|
+
* out-port; forward only — a whole `by` above zero, within
|
|
3051
|
+
* `CLOCK_STEP_MAX`, in one of `STORY_TIME_UNITS` — and only
|
|
3052
|
+
* when the session's clock could move by it. Anything else is
|
|
3053
|
+
* a sentence on `refused`. 🚧 A well-formed ask the story
|
|
3054
|
+
* cannot take (no clock yet, a date the calendar cannot place)
|
|
3055
|
+
* also rides `changes` as `{ kind: 'clock', by, unit, skipped
|
|
3056
|
+
* }`, `skipped` saying why, for `set-state` to write to the
|
|
3057
|
+
* ledger (live scenes §15 G16) — never onto `clock`.
|
|
3058
|
+
* Optional: unwired, no clock move.
|
|
3059
|
+
* ⚠ Not the planner's `timeOfDay` hint, which is a world stat.
|
|
3060
|
+
*/
|
|
3061
|
+
clock: S.json,
|
|
3062
|
+
/**
|
|
3063
|
+
* The **state version** this turn read: the session-state
|
|
2937
3064
|
* query's `version`. Passed through onto every resolved change
|
|
2938
3065
|
* as `base`, so `set-state` can tell a delta against the state
|
|
2939
3066
|
* the model saw from one against a state that has since moved.
|
|
@@ -2958,6 +3085,14 @@ export const resolveStateChanges = pin(describeQueryDefinition({
|
|
|
2958
3085
|
changes: S.json,
|
|
2959
3086
|
/** One sentence per change that named something not here. */
|
|
2960
3087
|
refused: S.json,
|
|
3088
|
+
/**
|
|
3089
|
+
* 🚧 The clock move the `clock` port resolved, `{ by, unit }` —
|
|
3090
|
+
* absent when there is none. What `core:task/clock-step@1`'s
|
|
3091
|
+
* `step` takes, so a spec that applies the keeper's clock
|
|
3092
|
+
* (Trust the narrator) moves it through *Advance story
|
|
3093
|
+
* clock*; the same move rides `changes` for `propose`.
|
|
3094
|
+
*/
|
|
3095
|
+
clock: S.json,
|
|
2961
3096
|
},
|
|
2962
3097
|
},
|
|
2963
3098
|
}));
|
|
@@ -2979,8 +3114,7 @@ export const resolveStateChanges = pin(describeQueryDefinition({
|
|
|
2979
3114
|
* all to a genre that needs to see the book: on a **create** run there is no
|
|
2980
3115
|
* conversation to scan, so the window is empty and only always-on entries are
|
|
2981
3116
|
* admitted — and a genre asking *is there a room called the Cellar?*, *pick one
|
|
2982
|
-
* of these as the secret*, or *who are the suspects?* had no door at all
|
|
2983
|
-
* (plans/genres §10 G13/G14, §11 L4).
|
|
3117
|
+
* of these as the secret*, or *who are the suspects?* had no door at all.
|
|
2984
3118
|
*
|
|
2985
3119
|
* This is that door, and it is deliberately dull: **no mechanism runs, nothing
|
|
2986
3120
|
* is scored, nothing is ranked.** `main` and `entries` carry one bare list of
|
|
@@ -2998,7 +3132,7 @@ export const resolveStateChanges = pin(describeQueryDefinition({
|
|
|
2998
3132
|
* `fingerprint`, and history's `year` / `month` / `day`. That is the contract
|
|
2999
3133
|
* worth having: a task written against a retrieved entry reads a listed one
|
|
3000
3134
|
* without a second shape to learn, and there is no second projection to keep in
|
|
3001
|
-
* step (
|
|
3135
|
+
* step (the vocabularies are reconciled at the host's read, not merged).
|
|
3002
3136
|
* The one addition is asked for: `withLinks` puts each row's lore links on it
|
|
3003
3137
|
* as `links` (`LoreLinkRow[]`), said from that row.
|
|
3004
3138
|
*
|
|
@@ -3064,7 +3198,7 @@ export const lorebookEntries = pin(describeQueryDefinition({
|
|
|
3064
3198
|
*
|
|
3065
3199
|
* Empty or absent lists every entry type.
|
|
3066
3200
|
*
|
|
3067
|
-
* Named `entryTypes` rather than `types
|
|
3201
|
+
* Named `entryTypes` rather than `types`: *type* alone
|
|
3068
3202
|
* is the word four other vocabularies use — a node type, a
|
|
3069
3203
|
* session type, a part type — and a parameter may not take
|
|
3070
3204
|
* the bare noun.
|
|
@@ -3119,7 +3253,7 @@ export const lorebookEntries = pin(describeQueryDefinition({
|
|
|
3119
3253
|
},
|
|
3120
3254
|
/**
|
|
3121
3255
|
* Each row's **lore links**, on the row as `links`
|
|
3122
|
-
* (`LoreLinkRow[]`) —
|
|
3256
|
+
* (`LoreLinkRow[]`) — 2026-09-29. Drizzle's
|
|
3123
3257
|
* `with: { … }` in spirit: the listing stays a listing, and a
|
|
3124
3258
|
* reader that wants a room's ways out says so.
|
|
3125
3259
|
*
|
|
@@ -3172,4 +3306,30 @@ export const lorebookEntries = pin(describeQueryDefinition({
|
|
|
3172
3306
|
},
|
|
3173
3307
|
}));
|
|
3174
3308
|
// ── core:query/lorebook-entries@1 ───────────────────────────────── end ──────
|
|
3309
|
+
// ── core:query/likeness-images@1 (DESIGN-image-generation §5, §6.4) ──────────
|
|
3310
|
+
/**
|
|
3311
|
+
* 🚧 The **likeness images** of everyone on stage, as one media list — the
|
|
3312
|
+
* Scene action's references.
|
|
3313
|
+
*
|
|
3314
|
+
* Stage order: the switched-on cast in seat order, then the personas in
|
|
3315
|
+
* theirs — the order `core:var/likenesses@1` lays the tag lines out in, so
|
|
3316
|
+
* the n-th picture and the n-th tag line are the same person. Each one's
|
|
3317
|
+
* likeness image, else their avatar (`likenessOf`); someone with neither,
|
|
3318
|
+
* or whose file is gone or is not an image, is skipped. Not capped here:
|
|
3319
|
+
* the picture step's host caps references at the drawing sheet's maximum
|
|
3320
|
+
* and says so.
|
|
3321
|
+
* @experimental
|
|
3322
|
+
*/
|
|
3323
|
+
export const likenessImages = pin(describeQueryDefinition({
|
|
3324
|
+
id: 'core:query/likeness-images@1',
|
|
3325
|
+
i18n: {
|
|
3326
|
+
name: { en: 'Likeness images' },
|
|
3327
|
+
description: { en: "Everyone on stage's likeness image, in stage order." },
|
|
3328
|
+
},
|
|
3329
|
+
timeoutMs: 2000,
|
|
3330
|
+
ports: {
|
|
3331
|
+
in: { scope: S.sessionScope },
|
|
3332
|
+
out: { main: S.mediaList, references: S.mediaList },
|
|
3333
|
+
},
|
|
3334
|
+
}));
|
|
3175
3335
|
//# sourceMappingURL=queries.js.map
|