@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/outlets.js CHANGED
@@ -8,21 +8,21 @@
8
8
  import { S } from '@serene-pub/sdk';
9
9
  import { describeOutletDefinition, pin } from '@serene-pub/sdk';
10
10
  /**
11
- * An author defaulting review ON for their own consumer — and unable to forbid it (F14).
11
+ * An author defaulting review ON for their own consumer — and unable to forbid it.
12
12
  *
13
- * Bound 2026-09-17 (plans/29 R-2): the host's commit for it existed and no
13
+ * Bound 2026-09-17: the host's commit for it existed and no
14
14
  * binding reached it. `target` is the row the part lands on — the same port
15
15
  * `update-message` takes, fed from an earlier write in the document (the reply's
16
- * placeholder, R-17) or from the inlet's `messageId`. An update whose target is
16
+ * placeholder) or from the inlet's `messageId`. An update whose target is
17
17
  * an earlier write is the same row, so placing this after `create-message` is
18
- * one live row, not two (F7). The host reads the id off `target`, or off the
18
+ * one live row, not two. The host reads the id off `target`, or off the
19
19
  * media reference's own `messageId` where a caller outside the graph set one.
20
20
  * @experimental
21
21
  */
22
22
  export const attachImage = pin(describeOutletDefinition({
23
23
  id: 'core:outlet/attach-image@1',
24
24
  effects: 'write',
25
- /** The image is a reference to an asset this run rendered; nothing to retype (R-15 review fields). */
25
+ /** The image is a reference to an asset this run rendered; nothing to retype. */
26
26
  review: { fields: [] },
27
27
  timeoutMs: 5000,
28
28
  reviewDefault: 'on',
@@ -30,7 +30,7 @@ export const attachImage = pin(describeOutletDefinition({
30
30
  ports: { in: { target: S.rowIds, image: S.image }, out: { main: S.writeResult } },
31
31
  }));
32
32
  /**
33
- * The create pipeline's write (24 §12, T8): seed the collected greetings as
33
+ * The create pipeline's write: seed the collected greetings as
34
34
  * the session's first messages — one assistant message per entry, the full
35
35
  * list as its swipe history, redirected to the genre's declared greeting
36
36
  * channel when that is not `main`.
@@ -39,7 +39,7 @@ export const attachImage = pin(describeOutletDefinition({
39
39
  export const seedGreetings = pin(describeOutletDefinition({
40
40
  id: 'core:outlet/seed-greetings@1',
41
41
  effects: 'write',
42
- /** The greetings are the cards' own text and the channel the genre's: approve or refuse (R-15 review fields). */
42
+ /** The greetings are the cards' own text and the channel the genre's: approve or refuse. */
43
43
  review: { fields: [] },
44
44
  timeoutMs: 5000,
45
45
  causesEvent: 'core:event/message-created@1',
@@ -47,10 +47,10 @@ export const seedGreetings = pin(describeOutletDefinition({
47
47
  in: {
48
48
  greetings: S.json,
49
49
  /**
50
- * The channel the greetings land on (20 §7) — the genre's
50
+ * The channel the greetings land on — the genre's
51
51
  * declared greeting channel, written by the create specs as a
52
52
  * literal (`createChat.ts`, `adventure.ts`). Absent is `main`.
53
- * Declared 2026-09-16 (U2 residual): the host read it off the
53
+ * Declared 2026-09-16: the host read it off the
54
54
  * payload while no declaration supplied it.
55
55
  */
56
56
  channel: S.text,
@@ -59,22 +59,22 @@ export const seedGreetings = pin(describeOutletDefinition({
59
59
  },
60
60
  }));
61
61
  /**
62
- * Write a message — complete, or as the run's **placeholder** (R-17).
62
+ * Write a message — complete, or as the run's **placeholder**.
63
63
  *
64
64
  * A pipeline that wants a message creates it itself. The reply specs put this
65
65
  * node straight after the inlet with `generating: true`: the row it inserts is
66
66
  * empty and generating, it is the run's live row (`liveRow` — an oracle's
67
67
  * stream lands in it, and Stop finalises it), and the spec's last node is an
68
68
  * `update-message` that fills it. That create → update pair on one row inside
69
- * one run is the run's **one live row** (F7). Without `generating` (or a
69
+ * one run is the run's **one live row**. Without `generating` (or a
70
70
  * claimed `row`) the message is complete, and an ordinary write — a pipeline
71
71
  * may write as many as it likes, just never a second on the live row's
72
72
  * channel. `message-created` fires on the create, which is now genuinely the
73
73
  * moment the row exists.
74
74
  *
75
75
  * `reviewDefault: 'off'` — review of a reply, when an admin enables it, lands
76
- * on the *update* of the primary row and never on this create by default
77
- * (R-21 (3)): a placeholder is a write, and an admin who gates this node gets
76
+ * on the *update* of the primary row and never on this create by default:
77
+ * a placeholder is a write, and an admin who gates this node gets
78
78
  * a run that shows nothing until approved, which is honest and rarely wanted.
79
79
  * Turning it on is still the admin's to do.
80
80
  * @public
@@ -82,7 +82,7 @@ export const seedGreetings = pin(describeOutletDefinition({
82
82
  export const createMessage = pin(describeOutletDefinition({
83
83
  id: 'core:outlet/create-message@1',
84
84
  effects: 'write',
85
- /** The text may be reviewed; who speaks, which row and which channel are the run's identity (R-15 review fields). */
85
+ /** The text may be reviewed; who speaks, which row and which channel are the run's identity. */
86
86
  review: { fields: ['text'] },
87
87
  reviewDefault: 'off',
88
88
  liveRow: true,
@@ -90,12 +90,12 @@ export const createMessage = pin(describeOutletDefinition({
90
90
  causesEvent: 'core:event/message-created@1',
91
91
  slots: {
92
92
  /**
93
- * The write hook (18 §4a): one chain rewrites the final output, the
93
+ * The write hook: one chain rewrites the final output, the
94
94
  * other decides where a streamed reply stops. Stop is a verdict —
95
95
  * min-reduction across every attached script, and the connection's
96
- * own guards join the same union at dispatch (18 §4b), which is why
96
+ * own guards join the same union at dispatch, which is why
97
97
  * order never needs ruling. `speakerName` and `castNames` are
98
- * extras: readable, never writable, by construction (18 §6a).
98
+ * extras: readable, never writable, by construction.
99
99
  */
100
100
  scripts: {
101
101
  kind: 'scripts',
@@ -130,18 +130,18 @@ export const createMessage = pin(describeOutletDefinition({
130
130
  * cast row — the side-character fact `{ name, characterId, known }`
131
131
  * off `side-character-turn@1`'s `sideCharacter` port. Stored
132
132
  * beside the message under `metadata.sideCharacter` (was
133
- * `metadata.speaker` until U5g, 2026-09-16 — that key is the
134
- * participant reference now, on the row as on the inlet, R1),
133
+ * `metadata.speaker` until 2026-09-16 — that key is the
134
+ * participant reference now, on the row as on the inlet),
135
135
  * where the run and the receipt read it from; it never writes a
136
136
  * cast row and never enters the rotation.
137
137
  *
138
138
  * Was `speaker` until 2026-09-16 — the inlet's port of that
139
- * name is a participant reference now (R-18 (3)).
139
+ * name is a participant reference now.
140
140
  */
141
141
  sideCharacter: S.json,
142
142
  /**
143
- * Who is speaking, as a **participant reference** (R-18 (3);
144
- * U5g, 2026-09-16) — `character:<id>` or `envoy:<slug>`, the
143
+ * Who is speaking, as a **participant reference**
144
+ * (2026-09-16) — `character:<id>` or `envoy:<slug>`, the
145
145
  * inlet's `speaker`. Stored beside the message as
146
146
  * `metadata.speaker`; it is the only identity an envoy's turn
147
147
  * carries, since an envoy has no row for `characterId` to name.
@@ -180,10 +180,10 @@ export const createMessage = pin(describeOutletDefinition({
180
180
  */
181
181
  instructions: S.text,
182
182
  /**
183
- * The channel the row lands on (20 §7). Absent is `main`, so a
183
+ * The channel the row lands on. Absent is `main`, so a
184
184
  * pipeline that has never heard of channels writes where it
185
185
  * always did; a channel the session's genre never declared is
186
- * refused at the write. Declared 2026-09-16 (U2 residual) for
186
+ * refused at the write. Declared 2026-09-16 for
187
187
  * the same reason `seed-greetings` declares its own.
188
188
  */
189
189
  channel: S.text,
@@ -196,8 +196,8 @@ export const createMessage = pin(describeOutletDefinition({
196
196
  */
197
197
  row: S.rowIds,
198
198
  /**
199
- * Message **blocks** to post with the row (20 §6; R-15
200
- * *Forms*; U5d, 2026-09-17): a list of `MessageBlock` — text,
199
+ * Message **blocks** to post with the row
200
+ * (2026-09-17): a list of `MessageBlock` — text,
201
201
  * tables, meters, and the two interactive kinds, `choices` and
202
202
  * `form`, which are **forms** when they carry an `addressee`.
203
203
  * The host validates the tree (`checkMessageBlocks`), refuses
@@ -246,7 +246,7 @@ export const createMessage = pin(describeOutletDefinition({
246
246
  * Update an existing message — finish a placeholder, or edit a settled row.
247
247
  *
248
248
  * `target` takes `row-ids@1`, and a `write-result@1` from earlier in the same
249
- * run is assignable to it (09-B B4): the reply specs wire `$.placeholder.messageId`
249
+ * run is assignable to it: the reply specs wire `$.placeholder.messageId`
250
250
  * here, which is the create → update pair that makes the pipeline own its row.
251
251
  * The other case is unchanged — the id comes from outside the run because the
252
252
  * user clicked a message, so it is on the inlet.
@@ -257,7 +257,7 @@ export const createMessage = pin(describeOutletDefinition({
257
257
  * target is edited and marked so. That is the row's own state, not a flag a
258
258
  * spec could get wrong.
259
259
  *
260
- * Where review lands on a reply (R-21 (3)): when an admin turns review on
260
+ * Where review lands on a reply: when an admin turns review on
261
261
  * for a reply's message writes, it is THIS node that parks — the placeholder
262
262
  * ships `reviewDefault: 'off'` and declares no default here either, so nothing
263
263
  * gates by default and a reviewer who asks for one sees the content, not an
@@ -268,7 +268,7 @@ export const createMessage = pin(describeOutletDefinition({
268
268
  export const updateMessage = pin(describeOutletDefinition({
269
269
  id: 'core:outlet/update-message@1',
270
270
  effects: 'write',
271
- /** The text may be reviewed; the row may not, nor the reasoning trace (R-15 review fields). */
271
+ /** The text may be reviewed; the row may not, nor the reasoning trace. */
272
272
  review: { fields: ['text'] },
273
273
  timeoutMs: 5000,
274
274
  causesEvent: 'core:event/message-updated@1',
@@ -292,7 +292,7 @@ export const updateMessage = pin(describeOutletDefinition({
292
292
  * the model produced one. Stored beside the message as the
293
293
  * reasoning fold reads it; absent means none. Shown folded,
294
294
  * and never re-sent to the model: the prompt transcript reads
295
- * a row's text alone (decision D5, 2026-09-27).
295
+ * a row's text alone (decided 2026-09-27).
296
296
  */
297
297
  reasoning: S.text,
298
298
  /**
@@ -361,7 +361,7 @@ export const deleteMessage = pin(describeOutletDefinition({
361
361
  },
362
362
  }));
363
363
  /**
364
- * Write the session's turn order (PLAN-turn-order §4.2, §4.4; R5) — the ONE
364
+ * Write the session's turn order — the ONE
365
365
  * write path for `sessions.metadata.turnOrder`, and the only outlet that
366
366
  * writes `metadata` at all.
367
367
  *
@@ -408,14 +408,14 @@ export const setTurnOrder = pin(describeOutletDefinition({
408
408
  },
409
409
  }));
410
410
  /**
411
- * Write one owner's document into the session's annex (§4.3).
411
+ * Write one owner's document into the session's annex.
412
412
  *
413
413
  * Merged into what is there by default — a spec that keeps one key does not
414
414
  * have to carry the rest — and written under
415
415
  * `pg_advisory_xact_lock(hashtext('annex'), sessionId)` through `jsonb_set`,
416
416
  * so two specs writing two owners' documents at once cannot lose each
417
- * other's. Causes `core:event/annex-changed@1` (R30, the modder pass,
418
- * reversing §4.3's "no causesEvent"): a package's state is the annex, and a
417
+ * other's. Causes `core:event/annex-changed@1` (a later
418
+ * ruling, reversing the original "no causesEvent"): a package's state is the annex, and a
419
419
  * genre that wants its turn order to answer that state binds the event in
420
420
  * the open, where the event map draws it — not through a back door.
421
421
  * @experimental
@@ -499,7 +499,7 @@ export const setAnnexField = pin(describeOutletDefinition({
499
499
  effects: 'write',
500
500
  causesEvent: 'core:event/annex-changed@1',
501
501
  reviewDefault: 'off',
502
- /** The payload was judged at the door and is judged again here — approve or refuse, never rewrite (R-15 review fields). */
502
+ /** The payload was judged at the door and is judged again here — approve or refuse, never rewrite. */
503
503
  review: { fields: [] },
504
504
  timeoutMs: 2000,
505
505
  ports: {
@@ -630,6 +630,42 @@ export const branchSession = pin(describeOutletDefinition({
630
630
  out: { main: S.writeResult, sessionId: S.writeResult },
631
631
  },
632
632
  }));
633
+ // ── Backdrop (DESIGN-image-generation §6.4, ruling §9.4; 2026-10-12) ───────
634
+ /**
635
+ * 🚧 Set the session's **backdrop**: `sessions.backdropMediaId`, the picture
636
+ * the Backdrop widget shows behind or beside the Stage — session state, a
637
+ * role pointer like a card's avatar, never a message part.
638
+ *
639
+ * `media` is a media list (what `core:oracle/generate-image@1` publishes);
640
+ * the host takes the FIRST image in it, keyed or not, and refuses a file
641
+ * that belongs to neither this session nor the user the run acts as (the
642
+ * rule `create-message`'s media keeps). A list with no image in it writes
643
+ * nothing, causes no event and publishes a null `mediaId` — it never
644
+ * clears: a person clears a backdrop, a pipeline replaces it. Runs in the
645
+ * session scope the run was started in.
646
+ *
647
+ * Causes `core:event/backdrop-set@1` when the pointer moved. Publishes the
648
+ * write result on `main` and the file id now set on `mediaId` (null when
649
+ * nothing was written).
650
+ *
651
+ * ⚠ Not the app background (`user_settings.background_media_id`), not a
652
+ * message attachment, and not the retired *scene image* pins.
653
+ * @experimental
654
+ */
655
+ export const setBackdrop = pin(describeOutletDefinition({
656
+ id: 'core:outlet/set-backdrop@1',
657
+ i18n: { name: { en: 'Set backdrop' } },
658
+ effects: 'write',
659
+ causesEvent: 'core:event/backdrop-set@1',
660
+ reviewDefault: 'off',
661
+ /** A reference to a picture the run rendered; nothing to retype. */
662
+ review: { fields: [] },
663
+ timeoutMs: 5000,
664
+ ports: {
665
+ in: { media: S.mediaList },
666
+ out: { main: S.writeResult, mediaId: S.json },
667
+ },
668
+ }));
633
669
  // ── Sprites (DESIGN-sprites §5, 2026-09-24; in-pipeline 2026-10-05) ─────────
634
670
  /**
635
671
  * Record a line's **shown sprite**. Writes it on the line's ACTIVE swipe
@@ -687,6 +723,100 @@ export const showSprite = pin(describeOutletDefinition({
687
723
  },
688
724
  },
689
725
  }));
726
+ /**
727
+ * 🚧 File pictures as a card's **sprites** — the end of the Sprite set fill.
728
+ *
729
+ * For every item of `media` that carries a series `key`: a `sprites` row in
730
+ * the set named `setName` (the card's default set when the name is blank or
731
+ * gone), under the sprite label that key was drawn for, with
732
+ * `source: 'generated'` and the picture as its file. The label comes from
733
+ * `series` (each item's `vars.label`); with no series the key is the label.
734
+ *
735
+ * - An **empty sprite** waiting under the label is filled first.
736
+ * - Otherwise the picture is added beside what is there — a **variant** —
737
+ * so a second picture under one key, or a run that redraws a label, never
738
+ * replaces a sprite.
739
+ * - An item with **no key** (surplus the host kept) is ignored.
740
+ * - A key in `series` that brought no picture is reported on `missing`.
741
+ *
742
+ * The picture becomes the card's file (provenance: `files.character_id`), so
743
+ * it carries the card's visibility and stays out of the card's gallery like
744
+ * every sprite. Refused unless the run's person owns the card or is an admin.
745
+ *
746
+ * Causes `core:event/sprites-attached@1` when at least one row was written.
747
+ * About a card, not a session: it writes no session row.
748
+ * @experimental
749
+ */
750
+ export const attachSprite = pin(describeOutletDefinition({
751
+ id: 'core:outlet/attach-sprite@1',
752
+ i18n: { name: { en: 'Attach as sprites' } },
753
+ effects: 'write',
754
+ causesEvent: 'core:event/sprites-attached@1',
755
+ reviewDefault: 'off',
756
+ /** References to pictures the run drew; nothing to retype. */
757
+ review: { fields: [] },
758
+ timeoutMs: 15000,
759
+ ports: {
760
+ in: {
761
+ media: S.mediaList,
762
+ characterId: S.rowIds,
763
+ setName: S.text,
764
+ /** The series the pictures were drawn for — the key → sprite label map. */
765
+ series: S.imageSeries,
766
+ },
767
+ out: {
768
+ main: S.writeResult,
769
+ /** `[{ label, spriteId }]`, one per row written, in media order. */
770
+ attached: S.json,
771
+ /** Sprite labels the series asked for that came back with no picture. */
772
+ missing: S.json,
773
+ },
774
+ },
775
+ }));
776
+ /**
777
+ * 🚧 **Offer** pictures to a card — put them in the card's **gallery** for a
778
+ * person to pick from (the end of Portrait).
779
+ *
780
+ * Each image in `media` becomes a picture of the card's gallery, after the
781
+ * pictures already there, in media order. Nothing is chosen for the person:
782
+ * the avatar and the likeness image are left as they are. *Use as avatar*
783
+ * and *Use as likeness image* on the gallery tile are the person's, later.
784
+ *
785
+ * - An item that is not an image is skipped.
786
+ * - A picture must be the run person's own file or already the card's — a
787
+ * media reference is an address anyone could type, and the gallery would
788
+ * re-publish whatever it names under the card's visibility.
789
+ * - A picture that is already one of the card's files stays where it is.
790
+ *
791
+ * `offered` is `[{ mediaId, key }]`, one per picture placed, with the series
792
+ * key it was drawn for (`null` for surplus the host kept unkeyed). Refused
793
+ * unless the run's person owns the card or is an admin.
794
+ *
795
+ * Causes `core:event/media-offered@1` when at least one picture was placed.
796
+ * About a card, not a session: it writes no session row.
797
+ * @experimental
798
+ */
799
+ export const offerMedia = pin(describeOutletDefinition({
800
+ id: 'core:outlet/offer-media@1',
801
+ i18n: { name: { en: 'Offer to the gallery' } },
802
+ effects: 'write',
803
+ causesEvent: 'core:event/media-offered@1',
804
+ reviewDefault: 'off',
805
+ /** References to pictures the run drew; nothing to retype. */
806
+ review: { fields: [] },
807
+ timeoutMs: 15000,
808
+ ports: {
809
+ in: {
810
+ media: S.mediaList,
811
+ characterId: S.rowIds,
812
+ },
813
+ out: {
814
+ main: S.writeResult,
815
+ /** `[{ mediaId, key }]`, one per picture placed, in media order. */
816
+ offered: S.json,
817
+ },
818
+ },
819
+ }));
690
820
  // ── The story clock (DESIGN-story-time P3, 2026-09-28) ──────────────────────
691
821
  /**
692
822
  * Move a session's **story clock** — the session's own story now — by `by` of
@@ -696,14 +826,22 @@ export const showSprite = pin(describeOutletDefinition({
696
826
  *
697
827
  * Moves the session's clock only, never the book's or its line's present. A
698
828
  * session with no clock of its own starts from its line's present. Refused
699
- * with a sentence — the run halts — when the session has no lorebook, when
700
- * there is no present to start from, and when the result does not land in
701
- * the book's calendar; never clamped, never a silent no-op.
829
+ * with a sentence — the run halts, unless the spec says `onRefusal: 'skip'`
830
+ * — when the session has no lorebook, when there is no present to start
831
+ * from, and when the result does not land in the book's calendar; never
832
+ * clamped, never a silent no-op.
702
833
  *
703
834
  * `by` and `unit` in-ports, when wired, win over the parameters. To advance
704
835
  * once per reply, place it in a spec bound to the reply's event, which runs
705
836
  * after the reply is saved. (No ordering-only in-port: an unread port is a
706
837
  * declared control no run consults — `declaredReads`.)
838
+ *
839
+ * 🚧 Every move it makes is written to the session's state ledger, anchored
840
+ * where the world's changes are (live scenes §15 G5, 2026-10-13): the person
841
+ * reads it under the message ("Time passes: 3 hours (… → …)"), and a delete,
842
+ * swipe or regenerate of that message takes it back as it takes values back.
843
+ * Why the clock moved is the spec's to say (`cause`), never inferred from
844
+ * the run's inlet.
707
845
  * @experimental
708
846
  */
709
847
  export const advanceStoryClock = pin(describeOutletDefinition({
@@ -750,11 +888,49 @@ export const advanceStoryClock = pin(describeOutletDefinition({
750
888
  by: S.json,
751
889
  /** One of the units; wins over the `unit` parameter when wired. */
752
890
  unit: S.text,
891
+ /**
892
+ * 🚧 **Why the clock moves** (live scenes §15 G4, 2026-10-13),
893
+ * a literal: `'action'` — a person's press (*Time passes…*);
894
+ * `'keeper'` — the state-keeper's move under Trust the
895
+ * narrator; `'tick'` — a reply's fixed tick. An action's and
896
+ * the keeper's move are **time actions** the boundary watcher
897
+ * may begin a new scene at; a tick never is. Unwired reads as
898
+ * `'action'`.
899
+ *
900
+ * ## A port, not a parameter, and the call site is what decides
901
+ *
902
+ * As `show-sprite@1`'s `source`: a literal in the node's
903
+ * config, because why a step moves the clock is a structural
904
+ * fact of the document, not a knob for the panel. It was the
905
+ * host's to infer from the run's inlet until 2026-10-13, and a
906
+ * keeper's move on a reply turn was then never a time action.
907
+ * It also decides what a swipe or a regenerate takes back: a
908
+ * tick stands (the re-driven reply never ticks again), every
909
+ * other move goes with the reply.
910
+ */
911
+ cause: S.text,
912
+ /**
913
+ * 🚧 **What a refusal does** (live scenes §15 G7), a literal:
914
+ * `'halt'` (unwired) stops the run with the sentence;
915
+ * `'skip'` moves nothing, puts the sentence on `skipped` and
916
+ * on the session's state ledger, and lets the run finish — for
917
+ * a step that runs after other changes already landed, which
918
+ * a halt would leave looking like a failed turn. Every core
919
+ * spec's skips: Adventure's keeper steps and its *Time
920
+ * passes…*, Chat's reply tick, and Chat's and the Lair's *Time
921
+ * passes…* (live scenes §15 G12).
922
+ */
923
+ onRefusal: S.text,
753
924
  },
754
925
  out: {
755
926
  main: S.writeResult,
756
927
  /** The session's story clock as it now stands: `{ year, month?, day?, hour?, minute? }`. */
757
928
  clock: S.json,
929
+ /**
930
+ * 🚧 Why the clock did not move, under `onRefusal: 'skip'` —
931
+ * the sentence the person reads; empty when it moved.
932
+ */
933
+ skipped: S.text,
758
934
  /** It spelled through the book's calendar. */
759
935
  label: S.text,
760
936
  },
@@ -782,16 +958,16 @@ export const answerForm = pin(describeOutletDefinition({
782
958
  i18n: { name: { en: 'Answer the form' } },
783
959
  effects: 'write',
784
960
  reviewDefault: 'off',
785
- /** The answer may be corrected at the gate; which form, and who answers, may not (R-15 review fields). */
961
+ /** The answer may be corrected at the gate; which form, and who answers, may not. */
786
962
  review: { fields: ['answer'] },
787
963
  /**
788
- * A write's timeout, not a run's (was 600000 until 2026-09-17, U5d
789
- * review W2): the commit checks the answer, asks the cycle caps and
964
+ * A write's timeout, not a run's (was 600000 until
965
+ * 2026-09-17): the commit checks the answer, asks the cycle caps and
790
966
  * **collects** the fire — the action's run is dispatched by the host
791
967
  * after this run's receipt is saved, outside any node timeout, as
792
968
  * this run's child. A grandchild parked at review parks nothing here.
793
969
  *
794
- * Thirty seconds rather than a write's usual five (U5d review S-a,
970
+ * Thirty seconds rather than a write's usual five (changed
795
971
  * the same day): the commit does database work of its own — the
796
972
  * block off the row, the session, the routing, a cap refusal's
797
973
  * receipt — and under PGlite contention (a full test run, a busy
@@ -827,7 +1003,7 @@ export const answerForm = pin(describeOutletDefinition({
827
1003
  export const attachAudio = pin(describeOutletDefinition({
828
1004
  id: 'core:outlet/attach-audio@1',
829
1005
  effects: 'write',
830
- /** A reference to rendered audio; nothing to retype (R-15 review fields). */
1006
+ /** A reference to rendered audio; nothing to retype. */
831
1007
  review: { fields: [] },
832
1008
  timeoutMs: 5000,
833
1009
  causesEvent: 'core:event/message-updated@1',
@@ -837,7 +1013,7 @@ export const attachAudio = pin(describeOutletDefinition({
837
1013
  /**
838
1014
  * Write the finished entry. Gate-eligible, so it publishes a write result.
839
1015
  *
840
- * ## Which kind of entry — the pipeline's decision, at last (L3, 2026-09-17)
1016
+ * ## Which kind of entry — the pipeline's decision, at last (2026-09-17)
841
1017
  *
842
1018
  * The host's commit case has said since the four summarize namespaces were
843
1019
  * written that *which kind of entry comes from the pipeline that ran*. It did
@@ -861,7 +1037,7 @@ export const attachAudio = pin(describeOutletDefinition({
861
1037
  * ## `links`, or a second write
862
1038
  *
863
1039
  * Linking a new entry takes one of two shapes, and both exist on purpose.
864
- * (A pipeline may write many times — F7 limits only the live row — so
1040
+ * (A pipeline may write many times — only the live row is limited to one — so
865
1041
  * `core:outlet/link-lore-entries@1` may also follow this outlet in the same
866
1042
  * run, each its own transaction.)
867
1043
  *
@@ -876,7 +1052,7 @@ export const attachAudio = pin(describeOutletDefinition({
876
1052
  *
877
1053
  * Each entry of `links` is a name or an entry id, or a `LoreLinkInput` —
878
1054
  * `{ to, linkType?, reverseLinkType?, name?, description? }` — for one that
879
- * says more (places plan B2, 2026-09-29). Absent on nearly every write, and an
1055
+ * says more (2026-09-29). Absent on nearly every write, and an
880
1056
  * empty list is the same as none. A link the list states twice, or one the
881
1057
  * session already reads, is written once: see `linkLoreEntries` on idempotence.
882
1058
  * @internal
@@ -887,7 +1063,7 @@ export const createLoreEntry = pin(describeOutletDefinition({
887
1063
  effects: 'write',
888
1064
  /**
889
1065
  * Both the name and the content may be edited before the entry lands
890
- * (R-15 review fields). `links` is deliberately not among them: the
1066
+ *. `links` is deliberately not among them: the
891
1067
  * gate's form edits values a reader can retype, and a list of
892
1068
  * references is not one — a reviewer who disagrees with a room's exits
893
1069
  * refuses the write.
@@ -915,7 +1091,7 @@ export const createLoreEntry = pin(describeOutletDefinition({
915
1091
  content: S.text,
916
1092
  /**
917
1093
  * Links to write from this entry in the same commit — see the
918
- * note above on F7. Names, entry ids, or `LoreLinkInput`s.
1094
+ * note above on the live row. Names, entry ids, or `LoreLinkInput`s.
919
1095
  */
920
1096
  links: S.json,
921
1097
  },
@@ -923,7 +1099,7 @@ export const createLoreEntry = pin(describeOutletDefinition({
923
1099
  },
924
1100
  }));
925
1101
  /**
926
- * Link two lore entries (L2, 2026-09-17).
1102
+ * Link two lore entries (2026-09-17).
927
1103
  *
928
1104
  * ## The gap it closes
929
1105
  *
@@ -938,7 +1114,7 @@ export const createLoreEntry = pin(describeOutletDefinition({
938
1114
  * ## Both ends, and the one scope
939
1115
  *
940
1116
  * `from` is an entry id — or, straight off `create-lore-entry@1`, its
941
- * `entryId` write result, which is assignable to `row-ids@1` (09-B B4). `to`
1117
+ * `entryId` write result, which is assignable to `row-ids@1`. `to`
942
1118
  * is an id **or a name**, resolved within the session's own lorebook, case
943
1119
  * and surrounding space ignored. A name is the half that makes the law below
944
1120
  * survivable, and it is also the half that can be wrong in two ways, so both
@@ -953,14 +1129,14 @@ export const createLoreEntry = pin(describeOutletDefinition({
953
1129
  *
954
1130
  * ## After a create
955
1131
  *
956
- * It may follow `core:outlet/create-lore-entry@1` in the same run (F7 limits
957
- * only the live row), linking by name what that write created — which is why
1132
+ * It may follow `core:outlet/create-lore-entry@1` in the same run (only the
1133
+ * live row is limited to one), linking by name what that write created — which is why
958
1134
  * `to` takes one; a later run can do the same. Each write is its own
959
1135
  * transaction, so a failed link leaves the entry behind. When the entry and
960
1136
  * its links are one thought, `create-lore-entry`'s own `links` in-port writes
961
1137
  * the edges in the row's transaction instead — the shape a room-builder wants.
962
1138
  *
963
- * ## What the link says (places plan B2, 2026-09-29)
1139
+ * ## What the link says (2026-09-29)
964
1140
  *
965
1141
  * The row is a **relationship**, and it carries the relationship's whole
966
1142
  * descriptor — the same four words the lorebook's own link form edits:
@@ -1012,7 +1188,7 @@ export const linkLoreEntries = pin(describeOutletDefinition({
1012
1188
  effects: 'write',
1013
1189
  /**
1014
1190
  * The link itself is what a reviewer judges, so its words both ways,
1015
- * its name and its description may be retyped (R-15 review fields). The
1191
+ * its name and its description may be retyped. The
1016
1192
  * two ends may not: they are the run's own identity, and a reviewer
1017
1193
  * re-aiming them would link a pair nobody judged — the rule
1018
1194
  * `delete-message@1` states.
@@ -1073,7 +1249,7 @@ export const graphProposal = pin(describeOutletDefinition({
1073
1249
  id: 'core:outlet/graph-proposal@1',
1074
1250
  i18n: { name: { en: 'Propose graph changes' } },
1075
1251
  effects: 'write',
1076
- /** The proposal is what the review screen exists to edit (R-15 review fields). */
1252
+ /** The proposal is what the review screen exists to edit. */
1077
1253
  review: { fields: ['proposal'] },
1078
1254
  timeoutMs: 10000,
1079
1255
  causesEvent: 'core:event/graph-proposal-created@1',