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

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.js CHANGED
@@ -1165,6 +1165,212 @@ export const castPresences = pin(describeQueryDefinition({
1165
1165
  },
1166
1166
  },
1167
1167
  }));
1168
+ /**
1169
+ * 🚧 **Minutes a round is worth** — the session's round worth, as a whole
1170
+ * number and as a clock step.
1171
+ *
1172
+ * It reads the session's `roundWorth` genre field from the settings document
1173
+ * (the cascade applied: the session's value, else its preset's, else the
1174
+ * genre's, else the field's default). `minutes` is a whole number ≥ 0; `step`
1175
+ * is `{ by: minutes, unit: 'minutes' }`, exactly what `core:task/clock-step@1`'s
1176
+ * `step` in-port takes; `main` is `{ minutes, step }`. All of it is 0 when the
1177
+ * genre places no `roundWorth` field (it has not opted in) or the session sets
1178
+ * 0 (off).
1179
+ *
1180
+ * It never reads or moves the clock and does not say whether one is set: gate
1181
+ * on `core:query/cast-presences@1`'s `at` for that.
1182
+ *
1183
+ * ⚠ Not the Dungeon Crawler Planner's round minutes (the time one round took,
1184
+ * judged), and not `core:task/clock-step@1`.
1185
+ * @experimental
1186
+ */
1187
+ export const roundWorth = pin(describeQueryDefinition({
1188
+ id: 'core:query/round-worth@1',
1189
+ i18n: { name: { en: 'Minutes a round is worth' } },
1190
+ timeoutMs: 2000,
1191
+ ports: {
1192
+ in: { scope: S.sessionScope },
1193
+ out: {
1194
+ /** `{ minutes, step }`. */
1195
+ main: S.json,
1196
+ /** The round worth as a whole number of minutes, ≥ 0. */
1197
+ minutes: S.json,
1198
+ /** `{ by: minutes, unit: 'minutes' }`: what `clock-step@1`'s `step` in-port takes. */
1199
+ step: S.json,
1200
+ },
1201
+ },
1202
+ }));
1203
+ /**
1204
+ * 🚧 **Where scenes begin** — the scenes routine's code-only look back over
1205
+ * the session's `main` channel (every name here is provisional).
1206
+ *
1207
+ * It walks the channel's standing lines up to the newest line that is at least
1208
+ * `depth` rounds old (a round as the turn order counts it), evaluates the
1209
+ * session's enabled boundary triggers line by line, and returns
1210
+ * `SceneBoundary[]` in line order on `main`. **A query writes nothing.**
1211
+ *
1212
+ * Where the walk starts is derived, never stored: after the latest of the
1213
+ * channel's latest scene boundary, its latest decided or offered scene cue, and
1214
+ * a branch's last copied line. `routine` is the routine inlet's `routine` port
1215
+ * (the firing); its cadence's `n` bounds how far back a session with none of
1216
+ * those looks. `depth` keeps a line that is swiped, retaken or taken back from
1217
+ * ever being read.
1218
+ *
1219
+ * ⚠ Not the judged scene check (the sweep's model question) and not
1220
+ * `core:outlet/propose-scene-cue@1` (which places).
1221
+ * @experimental
1222
+ */
1223
+ export const sceneBoundaries = pin(describeQueryDefinition({
1224
+ id: 'core:query/scene-boundaries@1',
1225
+ i18n: { name: { en: 'Where scenes begin' } },
1226
+ timeoutMs: 5000,
1227
+ slots: {
1228
+ params: {
1229
+ kind: 'parameters',
1230
+ facet: 'behavior',
1231
+ schema: {
1232
+ depth: {
1233
+ type: 'integer',
1234
+ default: 2,
1235
+ min: 1,
1236
+ max: 50,
1237
+ label: { en: 'Rounds it waits' },
1238
+ description: {
1239
+ en: 'Only lines at least this many rounds old are read, so a line that is swiped, retaken or taken back is never read.',
1240
+ },
1241
+ },
1242
+ },
1243
+ },
1244
+ },
1245
+ ports: {
1246
+ in: { scope: S.sessionScope, routine: S.json },
1247
+ out: { main: S.json },
1248
+ },
1249
+ }));
1250
+ /**
1251
+ * 🚧 **The scene due a summary** — the scene summaries routine's code-only look
1252
+ * at the session's `main` channel (every name here is provisional).
1253
+ *
1254
+ * `main` is **the oldest** finished scene on `main` that is due a summary, as
1255
+ * its scene id (a number), or `null` when none is due. Due: it closed at least
1256
+ * `depth` rounds ago (a round as the turn order counts it), it is not
1257
+ * summarized, and nobody has decided about it — a summary a person saved, a
1258
+ * review a person discarded, a failed run, a run going or a review waiting are
1259
+ * never taken; the session's **Summaries** is not *Never*; and no turns are
1260
+ * taken back. At most one scene per run. **A query writes nothing.**
1261
+ *
1262
+ * ⚠ Not *Summarize all* (the app's `scenesToSummarize`: every unsummarized
1263
+ * scene, a person's press) and not `core:outlet/summarize-finished-scene@1`
1264
+ * (which starts the summary).
1265
+ * @experimental
1266
+ */
1267
+ export const sceneSummaryDue = pin(describeQueryDefinition({
1268
+ id: 'core:query/scene-summary-due@1',
1269
+ i18n: { name: { en: 'The scene due a summary' } },
1270
+ timeoutMs: 5000,
1271
+ slots: {
1272
+ params: {
1273
+ kind: 'parameters',
1274
+ facet: 'behavior',
1275
+ schema: {
1276
+ depth: {
1277
+ type: 'integer',
1278
+ default: 6,
1279
+ min: 1,
1280
+ max: 50,
1281
+ label: { en: 'Rounds after it ends' },
1282
+ description: {
1283
+ en: 'A scene is summarized once it ended at least this many rounds ago, so its lines have stopped changing.',
1284
+ },
1285
+ },
1286
+ },
1287
+ },
1288
+ },
1289
+ ports: {
1290
+ in: { scope: S.sessionScope },
1291
+ out: { main: S.json },
1292
+ },
1293
+ }));
1294
+ /**
1295
+ * 🚧 **Earlier scenes** — the summaries of this session's finished scenes, for
1296
+ * the block *Earlier in the story* (every name here is provisional).
1297
+ *
1298
+ * `main` is `{ maxTokens: number | null, scenes: Array<{ sceneId: number,
1299
+ * name: string, summary: string, firstLineId: number }> }`: the session's
1300
+ * closed `main`-channel scenes with a usable summary (`summaryStatus =
1301
+ * 'done'`, a person's or the routine's) that are not compiled into a history
1302
+ * entry, in story order (oldest first, by where each scene starts: its opening
1303
+ * line, else its smallest selected line), at most the newest 200. `name` is
1304
+ * the scene's name as shown; `firstLineId` is its first line's message id.
1305
+ * `maxTokens` is `floor(share × budget.total)`, or `null` when `budget` is
1306
+ * unwired (then the block is not capped).
1307
+ *
1308
+ * It returns data, never rendered text: `core:task/assemble@2` decides which
1309
+ * scenes show (only those whose first line is older than the first line the
1310
+ * prompt keeps) and fits them to `maxTokens`.
1311
+ *
1312
+ * ⚠ Not `core:query/scene-summary-due@1` (the routine's look, one scene), not
1313
+ * `core:spec/scene-summaries` (the routine that writes the summaries) and not
1314
+ * `core:query/session-history@1`. **A query writes nothing.**
1315
+ * @experimental
1316
+ */
1317
+ export const earlierScenes = pin(describeQueryDefinition({
1318
+ id: 'core:query/earlier-scenes@1',
1319
+ i18n: { name: { en: 'Earlier scenes' } },
1320
+ timeoutMs: 2000,
1321
+ slots: {
1322
+ params: {
1323
+ kind: 'parameters',
1324
+ facet: 'weights',
1325
+ schema: {
1326
+ share: {
1327
+ type: 'number',
1328
+ min: 0,
1329
+ max: 1,
1330
+ default: 0.15,
1331
+ label: { en: 'Share — earlier scenes' },
1332
+ description: {
1333
+ en: 'How much of the context window the summaries of earlier scenes may take. When they do not fit, the oldest are left out first.',
1334
+ },
1335
+ },
1336
+ },
1337
+ },
1338
+ },
1339
+ ports: {
1340
+ in: { scope: S.sessionScope, budget: S.budget },
1341
+ out: { main: S.json },
1342
+ },
1343
+ }));
1344
+ /**
1345
+ * 🚧 **One cast member**, as the scope session reads them — their line, their
1346
+ * clock, the session's own notes over the book.
1347
+ *
1348
+ * `member` is `seated-member:<castMemberId>`, `player-seat:<seatId>` (that
1349
+ * seat's cast member), or a cast member id (a number) of the session's
1350
+ * lorebook or its own. Anything else, a seat with no cast member, or a member
1351
+ * the session doesn't read is refused with a sentence.
1352
+ *
1353
+ * `main` is `CastMemberV1` (`@serene-pub/sdk`): the member, the card version
1354
+ * they follow, which fields they follow, and the character profile as the
1355
+ * session reads it.
1356
+ * @experimental
1357
+ */
1358
+ export const castMember = pin(describeQueryDefinition({
1359
+ id: 'core:query/cast-member@1',
1360
+ i18n: { name: { en: 'Cast member' } },
1361
+ timeoutMs: 2000,
1362
+ ports: {
1363
+ in: {
1364
+ scope: S.sessionScope,
1365
+ /** `seated-member:<id>`, `player-seat:<id>`, or a cast member id. */
1366
+ member: S.json,
1367
+ },
1368
+ out: {
1369
+ /** `CastMemberV1`. */
1370
+ main: S.json,
1371
+ },
1372
+ },
1373
+ }));
1168
1374
  /** @experimental */
1169
1375
  export const vectorSearch = pin(describeQueryDefinition({
1170
1376
  id: 'core:query/vector-search@1',
@@ -2746,6 +2952,14 @@ export const graphScenes = pin(describeQueryDefinition({
2746
2952
  * declaration default, with absence meaning **inherit** rather than zero, and
2747
2953
  * derived slots computed rather than read.
2748
2954
  *
2955
+ * 🚧 Each `cast.byId` entry carries `ref` (the seat's participant reference,
2956
+ * as the host fills it), `castMemberId` (the seat's cast member) and `cardId`
2957
+ * (the member's active card on the timeline; null when card-less). A reader
2958
+ * looks an entry up by `ref` or `castMemberId` (or takes the owner's `key` off
2959
+ * `session-state@1`'s owners), never by building or parsing the key: it is an
2960
+ * opaque owner key — `player_seat:<id>`, 🚧 `seated_member:<id>` from the
2961
+ * flip, ⏳ the card id before it.
2962
+ *
2749
2963
  * A Query, and a plain one: what it is is a read. There is no as-of parameter
2750
2964
  * — this is the `current` view, and the temporal registry that would give the
2751
2965
  * other one is not built (see docs/stats-and-states.md).
@@ -2888,7 +3102,8 @@ export const lorebookState = pin(describeQueryDefinition({
2888
3102
  /**
2889
3103
  * One owner: `"world"`, `{ kind: 'cast_member', id }` or
2890
3104
  * `{ kind: 'location', id }` (the session kinds `session`,
2891
- * `session_cast`, `session_location` are translated). Optional.
3105
+ * 🚧 `seated_member`, ⏳ `session_cast`, `session_location` are
3106
+ * translated). Optional.
2892
3107
  */
2893
3108
  owner: S.json,
2894
3109
  /** 🚧 `'main'`, `'mostRecent'`, `'session'` or a branch id of this book. Optional. */
package/dist/tasks.d.ts CHANGED
@@ -1480,6 +1480,15 @@ export declare const assemble: import("@serene-pub/sdk").Pinned<import("@serene-
1480
1480
  * records.
1481
1481
  */
1482
1482
  decisions: string;
1483
+ /**
1484
+ * 🚧 Optional: the summaries of earlier scenes, fed only by
1485
+ * `core:query/earlier-scenes@1`'s `main`. Unwired, the block is
1486
+ * empty and the prompt is what it was. The binding renders into
1487
+ * `earlierScenes` only the scenes whose first line is older than
1488
+ * the first line the prompt keeps, newest first under
1489
+ * `maxTokens`, and its transcript fit counts the block.
1490
+ */
1491
+ earlierScenes: string;
1483
1492
  /**
1484
1493
  * The finished chat lines, from `core:task/process-messages@1`.
1485
1494
  *
@@ -1571,6 +1580,11 @@ export declare const assemble: import("@serene-pub/sdk").Pinned<import("@serene-
1571
1580
  readonly optional: true;
1572
1581
  readonly description: 'History entries that fit the budget, laid out.';
1573
1582
  };
1583
+ readonly earlierScenes: {
1584
+ readonly type: 'string';
1585
+ readonly optional: true;
1586
+ readonly description: 'The summaries of earlier scenes whose lines are no longer in the prompt, laid out.';
1587
+ };
1574
1588
  readonly currentDate: {
1575
1589
  readonly type: 'string';
1576
1590
  readonly optional: true;
@@ -1727,6 +1741,7 @@ export declare const assemble: import("@serene-pub/sdk").Pinned<import("@serene-
1727
1741
  readonly worldLore: "core:var/world-lore@1";
1728
1742
  readonly characterLore: "core:var/character-lore@1";
1729
1743
  readonly history: "core:var/history@1";
1744
+ readonly earlierScenes: "core:var/earlier-scenes@1";
1730
1745
  readonly currentDate: "core:var/current-date@1";
1731
1746
  };
1732
1747
  /**
@@ -3319,7 +3334,8 @@ export declare const turnNarrator: import("@serene-pub/sdk").Pinned<import("@ser
3319
3334
  * genre's narrate action; a plain narrator reply when unset), unless a
3320
3335
  * narration already landed since the person's line.
3321
3336
  *
3322
- * `modes` is `{ 'side-cast': …, 'narrator-interjections': … }` — `full` or
3337
+ * `modes` is `{ 'side-cast': …, 'narrator-interjections': … }` (plus `narrator-every`,
3338
+ * 1–3: the narrator's cadence in rounds; absent = every round) — `full` or
3323
3339
  * `off` each, the genre's voices settings as the turn-order spec reads them
3324
3340
  * (`core:script/unprompted-modes`, 2026-10-20; was the retired background
3325
3341
  * tasks' modes); a key absent or `off` adds nothing, so the order passes
@@ -3407,7 +3423,7 @@ export declare const turnPool: import("@serene-pub/sdk").Pinned<import("@serene-
3407
3423
  readonly en: "All";
3408
3424
  };
3409
3425
  readonly description: {
3410
- readonly en: "Ones switched off in the cast too.";
3426
+ readonly en: "The same as Active today, kept so presets that name it still load. A benched character never takes a turn.";
3411
3427
  };
3412
3428
  }, {
3413
3429
  readonly key: "none";
@@ -3420,7 +3436,7 @@ export declare const turnPool: import("@serene-pub/sdk").Pinned<import("@serene-
3420
3436
  readonly en: "Characters";
3421
3437
  };
3422
3438
  readonly description: {
3423
- readonly en: "Which of the session's characters may take a turn. 'All' admits ones switched off in the cast; a removed character never is.";
3439
+ readonly en: "Which of the session's characters may take a turn. A benched or removed character never does, whichever is picked; 'All' is the same as 'Active'.";
3424
3440
  };
3425
3441
  };
3426
3442
  readonly personas: {
@@ -5213,12 +5229,12 @@ export declare const picturePlacement: import("@serene-pub/sdk").Pinned<import("
5213
5229
  * and whether it moves at all (2026-10-13, PROPOSAL-live-scenes §6).
5214
5230
  *
5215
5231
  * Two uses, one shape. *Time passes…* hands it the press's collected
5216
- * `step` (`input.clockStep`), which wins. Chat's reply hands it nothing and
5217
- * reads its own parameters — **By** (0, the default, is off) and **Unit** —
5218
- * exposed as the session setting *Each reply advances the clock by …*. Either
5219
- * way the step publishes `moves` (true when `by` is a whole number other than
5220
- * zero), and the *Advance story clock* outlet sits behind a junction on it,
5221
- * so a step of nothing is never written and never refused. Pure: no read, no
5232
+ * `step` (`input.clockStep`), which wins. The round tick and the Lair's
5233
+ * keeper hand it the round worth's `step` (`core:query/round-worth@1`). Its
5234
+ * own **By** (0, the default, is off) and **Unit** answer when nothing is
5235
+ * handed. Either way the step publishes `moves` (true when `by` is a whole
5236
+ * number other than zero), and the *Advance story clock* outlet sits behind a
5237
+ * junction on it, so a step of nothing is never written and never refused. Pure: no read, no
5222
5238
  * model, never the clock itself.
5223
5239
  * @experimental
5224
5240
  */
@@ -5234,9 +5250,10 @@ export declare const clockStep: import("@serene-pub/sdk").Pinned<import("@serene
5234
5250
  /** A collected step, `{ by, unit }` — wins over the parameters when it reads. */
5235
5251
  step: string;
5236
5252
  /**
5237
- * When truthy, the clock does not move (`moves` false). Chat's
5238
- * reply wires the row it re-drives (`input.messageId`), so a
5239
- * regenerate, a swipe or an extend never ticks the clock twice.
5253
+ * When truthy, the clock does not move (`moves` false). Nothing in
5254
+ * core wires it since 2026-11-11; a pipeline that re-drives a row
5255
+ * wires it (`input.messageId`) so a regenerate never moves the
5256
+ * clock twice.
5240
5257
  */
5241
5258
  unless: string;
5242
5259
  }, "core:task/clock-step@1"> & {
@@ -5639,7 +5656,7 @@ export declare const reckoningDuties: import("@serene-pub/sdk").Pinned<import("@
5639
5656
  * JSON call every few turns that looks back over the story and files what is
5640
5657
  * worth keeping. Each duty is a switch; the routine's mode decides whether
5641
5658
  * what it files is written (`full`) or held for review (`review`). Publishes
5642
- * `modes` keyed `summary`, `lore`, `cast`, `relationships`, `world-state`,
5659
+ * `modes` keyed `lore`, `cast`, `relationships`, `world-state`,
5643
5660
  * `scenes`, `goals`, `goal-reached`, `scene-moved-on` — the keys the sweep's scripts and
5644
5661
  * junctions read — and `any`. Duties that write a lorebook read Off in a
5645
5662
  * session with none. *Mark goals reached* (`goal-reached`) is read by the
@@ -5668,17 +5685,6 @@ export declare const sweepDuties: import("@serene-pub/sdk").Pinned<import("@sere
5668
5685
  readonly kind: "parameters";
5669
5686
  readonly facet: "behavior";
5670
5687
  readonly schema: {
5671
- summary: {
5672
- type: 'boolean';
5673
- default: boolean;
5674
- reach: 'owner';
5675
- label: {
5676
- en: string;
5677
- };
5678
- description: {
5679
- en: string;
5680
- };
5681
- };
5682
5688
  lore: {
5683
5689
  type: 'boolean';
5684
5690
  default: boolean;
@@ -5999,7 +6005,7 @@ export declare const cueLines: import("@serene-pub/sdk").Pinned<import("@serene-
5999
6005
  * comment the message renderer never shows, even while the reply streams. This step takes every such block out of
6000
6006
  * the reply (`text`, what is saved) and reads the last one: `make` is `'character'`, `'lorebook'` or `''`, and
6001
6007
  * `draft` its JSON, for `create-character@1` / `create-lorebook@1` behind a junction on `make`. One model call per
6002
- * turn — the reply's own — and no tool loop. Pure (the SDK's `readLibraryDraft`). ⚠ Not `parse-json@1` (a whole reply
6008
+ * turn — the reply's own — and no tool loop. Also turns a plain `See: /docs/<path>` line into a markdown link. Pure (the SDK's `readLibraryDraft`). ⚠ Not `parse-json@1` (a whole reply
6003
6009
  * read as JSON) and not `parse-tool-call@1`.
6004
6010
  * @experimental
6005
6011
  */
package/dist/tasks.js CHANGED
@@ -1155,6 +1155,11 @@ const ASSEMBLE_TEMPLATE_SCOPE = {
1155
1155
  description: 'Lore bound to a cast member that fit the budget, laid out — only what this speaker may see.',
1156
1156
  },
1157
1157
  history: { type: 'string', optional: true, description: 'History entries that fit the budget, laid out.' },
1158
+ earlierScenes: {
1159
+ type: 'string',
1160
+ optional: true,
1161
+ description: 'The summaries of earlier scenes whose lines are no longer in the prompt, laid out.',
1162
+ },
1158
1163
  currentDate: { type: 'string', optional: true, description: 'The story’s current date, laid out.' },
1159
1164
  sessionMessages: {
1160
1165
  type: 'list',
@@ -1285,6 +1290,7 @@ export const assemble = pin(describeTaskDefinition({
1285
1290
  worldLore: 'core:var/world-lore@1',
1286
1291
  characterLore: 'core:var/character-lore@1',
1287
1292
  history: 'core:var/history@1',
1293
+ earlierScenes: 'core:var/earlier-scenes@1',
1288
1294
  currentDate: 'core:var/current-date@1',
1289
1295
  },
1290
1296
  /**
@@ -1435,6 +1441,15 @@ export const assemble = pin(describeTaskDefinition({
1435
1441
  * records.
1436
1442
  */
1437
1443
  decisions: S.decisions,
1444
+ /**
1445
+ * 🚧 Optional: the summaries of earlier scenes, fed only by
1446
+ * `core:query/earlier-scenes@1`'s `main`. Unwired, the block is
1447
+ * empty and the prompt is what it was. The binding renders into
1448
+ * `earlierScenes` only the scenes whose first line is older than
1449
+ * the first line the prompt keeps, newest first under
1450
+ * `maxTokens`, and its transcript fit counts the block.
1451
+ */
1452
+ earlierScenes: S.json,
1438
1453
  /**
1439
1454
  * The finished chat lines, from `core:task/process-messages@1`.
1440
1455
  *
@@ -2786,7 +2801,8 @@ export const turnNarrator = pin(turnStrategy('core:task/turn-narrator@1', 'Narra
2786
2801
  * genre's narrate action; a plain narrator reply when unset), unless a
2787
2802
  * narration already landed since the person's line.
2788
2803
  *
2789
- * `modes` is `{ 'side-cast': …, 'narrator-interjections': … }` — `full` or
2804
+ * `modes` is `{ 'side-cast': …, 'narrator-interjections': … }` (plus `narrator-every`,
2805
+ * 1–3: the narrator's cadence in rounds; absent = every round) — `full` or
2790
2806
  * `off` each, the genre's voices settings as the turn-order spec reads them
2791
2807
  * (`core:script/unprompted-modes`, 2026-10-20; was the retired background
2792
2808
  * tasks' modes); a key absent or `off` adds nothing, so the order passes
@@ -2865,14 +2881,16 @@ export const turnPool = pin(describeTaskDefinition({
2865
2881
  {
2866
2882
  key: 'all',
2867
2883
  label: { en: 'All' },
2868
- description: { en: 'Ones switched off in the cast too.' },
2884
+ description: {
2885
+ en: 'The same as Active today, kept so presets that name it still load. A benched character never takes a turn.',
2886
+ },
2869
2887
  },
2870
2888
  { key: 'none', label: { en: 'None' } },
2871
2889
  ],
2872
2890
  default: 'active',
2873
2891
  label: { en: 'Characters' },
2874
2892
  description: {
2875
- en: "Which of the session's characters may take a turn. 'All' admits ones switched off in the cast; a removed character never is.",
2893
+ en: "Which of the session's characters may take a turn. A benched or removed character never does, whichever is picked; 'All' is the same as 'Active'.",
2876
2894
  },
2877
2895
  },
2878
2896
  personas: {
@@ -4619,12 +4637,12 @@ export const picturePlacement = pin(describeTaskDefinition({
4619
4637
  * and whether it moves at all (2026-10-13, PROPOSAL-live-scenes §6).
4620
4638
  *
4621
4639
  * Two uses, one shape. *Time passes…* hands it the press's collected
4622
- * `step` (`input.clockStep`), which wins. Chat's reply hands it nothing and
4623
- * reads its own parameters — **By** (0, the default, is off) and **Unit** —
4624
- * exposed as the session setting *Each reply advances the clock by …*. Either
4625
- * way the step publishes `moves` (true when `by` is a whole number other than
4626
- * zero), and the *Advance story clock* outlet sits behind a junction on it,
4627
- * so a step of nothing is never written and never refused. Pure: no read, no
4640
+ * `step` (`input.clockStep`), which wins. The round tick and the Lair's
4641
+ * keeper hand it the round worth's `step` (`core:query/round-worth@1`). Its
4642
+ * own **By** (0, the default, is off) and **Unit** answer when nothing is
4643
+ * handed. Either way the step publishes `moves` (true when `by` is a whole
4644
+ * number other than zero), and the *Advance story clock* outlet sits behind a
4645
+ * junction on it, so a step of nothing is never written and never refused. Pure: no read, no
4628
4646
  * model, never the clock itself.
4629
4647
  * @experimental
4630
4648
  */
@@ -4668,9 +4686,10 @@ export const clockStep = pin(describeTaskDefinition({
4668
4686
  /** A collected step, `{ by, unit }` — wins over the parameters when it reads. */
4669
4687
  step: S.json,
4670
4688
  /**
4671
- * When truthy, the clock does not move (`moves` false). Chat's
4672
- * reply wires the row it re-drives (`input.messageId`), so a
4673
- * regenerate, a swipe or an extend never ticks the clock twice.
4689
+ * When truthy, the clock does not move (`moves` false). Nothing in
4690
+ * core wires it since 2026-11-11; a pipeline that re-drives a row
4691
+ * wires it (`input.messageId`) so a regenerate never moves the
4692
+ * clock twice.
4674
4693
  */
4675
4694
  unless: S.json,
4676
4695
  },
@@ -4988,7 +5007,7 @@ export const reckoningDuties = pin(describeTaskDefinition({
4988
5007
  * JSON call every few turns that looks back over the story and files what is
4989
5008
  * worth keeping. Each duty is a switch; the routine's mode decides whether
4990
5009
  * what it files is written (`full`) or held for review (`review`). Publishes
4991
- * `modes` keyed `summary`, `lore`, `cast`, `relationships`, `world-state`,
5010
+ * `modes` keyed `lore`, `cast`, `relationships`, `world-state`,
4992
5011
  * `scenes`, `goals`, `goal-reached`, `scene-moved-on` — the keys the sweep's scripts and
4993
5012
  * junctions read — and `any`. Duties that write a lorebook read Off in a
4994
5013
  * session with none. *Mark goals reached* (`goal-reached`) is read by the
@@ -5000,7 +5019,7 @@ export const sweepDuties = pin(describeTaskDefinition({
5000
5019
  i18n: {
5001
5020
  name: { en: 'Look back over the story' },
5002
5021
  description: {
5003
- en: 'Switches for what is filed every few turns: a summary, lore, people, how they stand, the world, places, goals. How it lands is the routine’s mode.',
5022
+ en: 'Switches for what is filed every few turns: lore, people, how they stand, the world, places, goals. How it lands is the routine’s mode.',
5004
5023
  },
5005
5024
  },
5006
5025
  timeoutMs: 500,
@@ -5009,7 +5028,6 @@ export const sweepDuties = pin(describeTaskDefinition({
5009
5028
  kind: 'parameters',
5010
5029
  facet: 'behavior',
5011
5030
  schema: {
5012
- summary: duty('Summarize the story', 'Files a summary of what happened in the lorebook’s history.', true),
5013
5031
  lore: duty('Add to the lore', 'Files new facts the story established as lorebook entries.', true),
5014
5032
  cast: duty('Note new people', 'Files the people the story introduced as lorebook entries.', true),
5015
5033
  relationships: duty('Track relationships', 'Proposes how the characters now stand with each other, for you to look over.', false),
@@ -5158,7 +5176,7 @@ export const cueLines = pin(describeTaskDefinition({
5158
5176
  * comment the message renderer never shows, even while the reply streams. This step takes every such block out of
5159
5177
  * the reply (`text`, what is saved) and reads the last one: `make` is `'character'`, `'lorebook'` or `''`, and
5160
5178
  * `draft` its JSON, for `create-character@1` / `create-lorebook@1` behind a junction on `make`. One model call per
5161
- * turn — the reply's own — and no tool loop. Pure (the SDK's `readLibraryDraft`). ⚠ Not `parse-json@1` (a whole reply
5179
+ * turn — the reply's own — and no tool loop. Also turns a plain `See: /docs/<path>` line into a markdown link. Pure (the SDK's `readLibraryDraft`). ⚠ Not `parse-json@1` (a whole reply
5162
5180
  * read as JSON) and not `parse-tool-call@1`.
5163
5181
  * @experimental
5164
5182
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serene-pub/contracts",
3
- "version": "0.6.0-pr-7",
3
+ "version": "0.6.0-pr-8",
4
4
  "description": "Generated, frozen type declarations for one Serene Pub release: @serene-pub/contracts@0.6.x compiles against Serene Pub 0.6.x.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/SerenePub/serene-pub-sdk/tree/main/contracts#readme",
@@ -40,13 +40,13 @@
40
40
  "./package.json": "./package.json"
41
41
  },
42
42
  "peerDependencies": {
43
- "@serene-pub/sdk": "^0.6.0-pr-7"
43
+ "@serene-pub/sdk": "^0.6.0-pr-8"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsc -p tsconfig.build.json"
47
47
  },
48
48
  "devDependencies": {
49
- "@serene-pub/sdk": "0.6.0-pr-7"
49
+ "@serene-pub/sdk": "0.6.0-pr-8"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public",