@@ -248,15 +248,18 @@ function notifyValuePhrase(value: unknown): string {
248248
249249// ─── notify email-field recipient (ruling 6377731715 on #25496, letter B) ──
250250//
251- // The one recipient form that is an email ADDRESS rather than a user: the
252- // address held in an `email`-typed field of the record that triggered the
253- // flow — for a person who is not a user, such as an applicant who came in
254- // through a public form (ADR-0138 guest model). It NAMES the field, so a free
255- // string or an expression can never parse as it: a string in `recipients` is
256- // a user id or an audience selector, an envelope is a CEL value, and this arm
257- // is a closed object whose one key holds a field's machine name. Which field
258- // that is, and that it is `email`-typed, is judged where the flow's trigger
259- // and the object's fields meet — `@objectstack/lint`'s
251+ // The recipient form for an email ADDRESS the RECORD supplies, rather than a
252+ // user: the address held in an `email`-typed field of the record that
253+ // triggered the flow — for a person who is not a user, such as an applicant
254+ // who came in through a public form (ADR-0138 guest model). (An address the
255+ // AUTHOR writes out as a string is the other way to one: an author constant,
256+ // sent as written — ruling 6386629237 on #25647, letter B; see the
257+ // `recipients` docblock below.) It NAMES the field, so a free string or an
258+ // expression can never parse as it: a string in `recipients` is a user id, an
259+ // audience selector or an address written out, an envelope is a CEL value,
260+ // and this arm is a closed object whose one key holds a field's machine
261+ // name. Which field that is, and that it is `email`-typed, is judged where
262+ // the flow's trigger and the object's fields meet — `@objectstack/lint`'s
260263// `validateNotifyEmailFieldRecipients`, a reference-integrity rule, so every
261264// authoring command and the runtime publish door refuse it.
262265//
@@ -321,9 +324,10 @@ function emailFieldRecipientRefusal(value: unknown): string {
321324 * recipient leads with.
322325 */
323326const NOTIFY_RECIPIENTS_RULE =
324- '`recipients` is who the notification goes to: a recipient — a user id, or an audience selector such as '
325- + '`team:ID` — written as a string; a list of them, each a string or a CEL value envelope; one CEL value '
326- + 'envelope, `{ dialect: \'cel\', source: \'…\' }`, that evaluates to a recipient or a list of them; or an '
327+ '`recipients` is who the notification goes to: a recipient — a user id, an audience selector such as '
328+ + '`team:ID`, or an email address written out, an author constant sent as written — as a string; a list of '
329+ + 'them, each a string or a CEL value envelope; one CEL value envelope, `{ dialect: \'cel\', source: \'…\' }`, '
330+ + 'that evaluates to a recipient or a list of them; or an '
327331 + 'email-field recipient, `{ emailField: \'applicant_email\' }`, the address in an `email`-typed field of the '
328332 + 'record that triggered the flow.' ;
329333
@@ -352,7 +356,11 @@ function notifyRecipientsRefusal(input: unknown): string {
352356 * one value OR a list of them (#19939; the ledger's `eachElement`):
353357 *
354358 * - a **string** is one recipient as written — a user id, or an audience
355- * selector the messaging service resolves (`team:ID`, an email address);
359+ * selector the messaging service resolves (such as `team:ID`); an email
360+ * address written out as a string is no audience selector but an **author
361+ * constant**, sent as written: to the user who holds it, or else, on the
362+ * `email` channel, to the address itself (ruling 6386629237 on #25647,
363+ * letter B);
356364 * - a **list** holds one entry per recipient, each a string as written or a
357365 * CEL value envelope evaluated per run — an entry that evaluates to a list
358366 * (a multi-user field, a list variable) adds EACH of its recipients, so a
@@ -363,6 +371,15 @@ function notifyRecipientsRefusal(input: unknown): string {
363371 * the whole value only, names an `email`-typed field of the triggering
364372 * record whose address is the recipient.
365373 *
374+ * An address a CEL value envelope EVALUATES to is not an author constant: one
375+ * a user holds resolves to that user, and one that NO user holds is to fail
376+ * the node with a located message pointing to `{ emailField }` (the same
377+ * ruling). That refusal is PLANNED, not made: the runtime half (#25647, which
378+ * may ride #25571's files) has not landed, so until it does such an address is
379+ * still handed to the messaging service as written. The describes below say
380+ * "planned" for that reason — ⛔ they claim no refusal the runtime does not
381+ * make yet; when the runtime half lands, it rewrites them as made.
382+ *
366383 * An envelope that evaluates to `null` or a blank string adds no recipient,
367384 * as a token that resolved to nothing did, and the executor's guard still
368385 * fails a node left with none, naming the sources that evaluated to nothing
@@ -392,7 +409,9 @@ const NotifyRecipientsSlotSchema = z.union([
392409 + 'string; a list of them, each a string or a CEL value envelope `{ dialect: \'cel\', source }` evaluated per '
393410 + 'run (an entry that evaluates to a list adds each of its recipients); one envelope evaluating to a '
394411 + 'recipient or a list; or `{ emailField }`, the address in an `email`-typed field of the triggering record '
395- + '— a `{…}` template token is refused' ,
412+ + '— a `{…}` template token is refused. An email address written out as a string is an author constant, '
413+ + 'sent as written; one an envelope evaluates to resolves to the user who holds it, and failing the node on '
414+ + 'one no user holds, pointing to `{ emailField }`, is planned and not made yet' ,
396415 xExpression : 'value' ,
397416 } ) ;
398417
@@ -636,7 +655,11 @@ export const NotifyConfigSchema = lazySchema(() => strictObject({
636655 + 'whole value, `{ emailField: \'applicant_email\' }`: the address in that `email`-typed field of the record '
637656 + 'that triggered the flow, for a person who is not a user — the node then names `email` as its only channel. '
638657 + 'Delivery to an email-field recipient is not live yet: until the messaging service resolves the form, a '
639- + 'run that reaches the node fails there.' ,
658+ + 'run that reaches the node fails there. An email address written out as a string is no audience selector '
659+ + 'but an author constant, sent as written: to the user who holds it, or else, on the `email` channel, to '
660+ + 'the address itself. An address an envelope evaluates to is not one: it resolves to the user who holds it, '
661+ + 'and one that no user holds is planned to fail the node, pointing to `{ emailField }` — that refusal is not '
662+ + 'made yet, so until it is, such an address is still handed to the messaging service as written.' ,
640663 ) ,
641664 /**
642665 * Inline notification title — the NON-localizable content path, and a
0 commit comments