Skip to content

Commit 7cf4677

Browse files
committed
docs(automation): the sourceId slot docblocks say a null envelope drops the pair rather than defaulting it
The notifyStringSlotSchema and resolveStringSlot docblocks still carried the retired 'leaves the key unset' sentence; both now match the describes and the failure text. The click-through bullet is re-wrapped. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwUogojquWFFVyz422
1 parent 87404ae commit 7cf4677

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

‎packages/services/service-automation/src/builtin/notify-node.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,10 +691,12 @@ const EMAIL_FIELD_COUNTER_PREFIX = 'notify-email-field-sends:';
691691
* [#19939] The notify value slot holding one string — `sourceId`, the
692692
* click-through record's id: the string as written, or a CEL value envelope
693693
* evaluated in the run's scope to one, through the shared per-slot resolver
694-
* (`resolveValueSlot`). `null` or a blank string leaves the key unset, as a
695-
* token that resolved to nothing did; anything else fails the node, naming
696-
* what it evaluated to — never `String(value)`. (`sourceObject` and `actorId`
697-
* are literals, read as written.)
694+
* (`resolveValueSlot`). `null` or a blank string is a written key that
695+
* resolves to nothing: the click-through pair is dropped rather than defaulted
696+
* to the trigger record (`defaultClickThroughOf` reads the written config);
697+
* anything else fails the node, naming what it evaluated to — never
698+
* `String(value)`. (`sourceObject` and `actorId` are literals, read as
699+
* written.)
698700
*/
699701
function resolveStringSlot(
700702
engine: AutomationEngine,

‎packages/spec/src/automation/io-node-config.zod.ts‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,11 @@ const NotifyRecipientsSlotSchema = z.union([
432432
/**
433433
* A notify value slot holding ONE string — `sourceId` (#19939): the string as
434434
* written, or a CEL value envelope the executor evaluates per run to a string.
435-
* An envelope that evaluates to `null` or a blank string leaves the key unset,
436-
* as a token that resolved to nothing did; anything else that is not a string
437-
* fails the node, naming what it evaluated to. A `{…}` token in the string is
438-
* refused by the one value-slot judge.
435+
* An envelope that evaluates to `null` or a blank string is a written key that
436+
* resolves to nothing: the click-through pair is dropped rather than defaulted
437+
* to the trigger record; anything else that is not a string fails the node,
438+
* naming what it evaluated to. A `{…}` token in the string is refused by the
439+
* one value-slot judge.
439440
*/
440441
function notifyStringSlotSchema(key: string, what: string, example: string, description: string) {
441442
const rule =
@@ -651,9 +652,9 @@ function notifyLiteralRefusals(cfg: {
651652
* and link nowhere; a delete's record is gone once the write lands, so it
652653
* is not linked; a before-create run's record has no id until the driver
653654
* issues one at the write, after the hook, so it links only when the
654-
* caller wrote the id. An
655-
* explicit pair or an explicit `actionUrl` is the author's word and wins,
656-
* and a half-written pair is still dropped, never defaulted. The executor
655+
* caller wrote the id. An explicit pair or an explicit `actionUrl` is the
656+
* author's word and wins, and a half-written pair is still dropped, never
657+
* defaulted. The executor
657658
* owns the default (`defaultClickThroughOf` in service-automation's
658659
* `notify-node.ts`); the schema shape is unchanged by it.
659660
* - The historical aliases (`to`/`subject`/`body`/`url`, nested

0 commit comments

Comments
 (0)