Skip to content

Commit 5d2ce34

Browse files
fix(spec): the save door reads ctx.text?.( as a literal text-key ask (#35686)
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu19ctjaTjyM4gmWfgBPNRmc)_ Fixes #35512 Clause-②: no (narrowing) Metadata-protocol: narrowed Skills-docs: none — skills/objectstack-data/references/data-hooks.md and skills/objectstack-ui/rules/actions.md already teach "an undeclared key is refused at save when asked for literally, else at run" without naming a call shape; this diff makes that sentence hold for the optional-call shape, so nothing new is taught. The one hand-written page that names the call shape, content/docs/automation/hooks.mdx (~499), now names `ctx.text?.('key')` beside `ctx.text('key')` ## 维护者速读 - 用户无感的作者面变化:写钩子或脚本动作的作者,用可选调用 `ctx.text?.(` 的写法去取一句没声明的文案时,保存时就被拒,以前要等运行时才报错。 - 属于"组织语言文案"那组工作:兑现钩子与动作文案字段已经写明的承诺,即按字面取的未声明文案在保存时就被拒。 - 若出错,受影响的是用 `ctx.text?.(` 写法取了未声明文案的钩子或动作,保存会被拒;声明那句文案即可通过,本改动可直接撤回。 - 无 ## What changes - `TEXT_CALL` in `packages/spec/src/data/hook-refusal-codes.ts`, the one literal key reader behind both save doors (`HookSchema` at `hook.zod.ts` and `ActionSchema` at `action.zod.ts`, through `hookTextKeysAskedIn`), now also reads `ctx.text?.('k')`, awaited or not. So an undeclared key asked for in that shape is refused at save with the existing `undeclaredHookTextKeyAtSave` / `undeclaredActionTextKeyAtSave` sentence, at `body.source` (or `handler` for an in-process hook handler). The masking of comments and longer strings and the snake_case key group are unchanged. - Shape decisions: whitespace or a line break around `?.` is read (`ctx.text ?. ('k')`), matching the reader's existing whitespace tolerance around the dot. The card's second shape, non-null `ctx.text!('k')`, is deliberately NOT read (patch round 1, L2 S1 on 7025732554): it is TypeScript with no JavaScript form. A handler's `!` is erased before the save reads `Function.prototype.toString()`, so `main` already reads it as the plain call; in a `js` body it is a syntax error (an action is refused as `action-body-does-not-compile`, a hook body never runs). So the card's `!(` ask is moot, and a pin documents why. `ctx?.text(` and `ctx!.text(` are left out: `ctx` is the bound parameter and is never optional in the type. - The refusal sentence's echo stays `` (`ctx.text('k')`) ``. It names the call, not the spelling the author used, and it reads correctly for both read shapes (the plain call and `?.`). Its bytes, which tests pin, are unchanged. - Rider (accepted L1 nit on PR #35510): the TSDoc that describes the literal-only save check now names the `?.(` shape. That covers `HookSchema.texts`, `HookContext.text`, `ActionSchema.texts`, the two internal docblocks beside the doors, and the header comments above `TEXT_CALL`. `.describe()` strings are unchanged. - ADR-0087: a registered semantic entry, `hook-action-text-key-optional-call-refused`. The `narrowed` kind refuses `no-migration-prescription`, and there is no mechanical rewrite. - Changeset: `@objectstack/spec` `minor` (the kind is `narrowed`), with a BREAKING FROM/TO section and the fix. ## Tests - Pins in `packages/spec/src/data/hook-texts.test.ts` and `packages/spec/src/ui/action-texts.test.ts`, one per shape (`ctx.text?.(`, `await ctx.text?.(`) for each door. A lit pin checks that an undeclared key is refused at `body.source` with the exact sentence. A dark pin checks that a declared key, and a computed key in that shape, still pass save. The hook file also has a reader pin for whitespace and a line break around `?.`, a `handler`-path pin (an inline handler asking `ctx.text?.('undeclared')` is refused at `handler`, the strict-TypeScript case; an action has no handler path), and a pin that `ctx.text!('k')` is not read, with the reason. - On head 0acd17d both files are green (51/51). - Ablation on head 0acd17d: replacing the optional-call arm `text(?:\s*\?\.)?\s*\(` with the old `text\s*\(` (one occurrence) turned 8 of the 51 tests red. The restore was proved by an empty `git diff HEAD`. (The earlier 12-red-first and 13-red readings were taken on 269566b, before patch round 1 removed the `!(` arm.) - `pnpm --filter @objectstack/spec test`: 859 files / 27461 tests passed. `pnpm --filter @objectstack/spec typecheck`: exit 0. ## Acceptance notes - `ctx?.text(` and `ctx!.text(` are still not read at save (see above). If one of them is used with an undeclared key, the runtime refuses it when the code runs. - A real producer of the new shape already exists in this tree with a declared key: `packages/spec/src/data/hook-context-text.test.ts:43` (`ctx.text?.('follow_up_subject', …)`), and it stays green. The runtime's own `ctx.text!(String(key), …)` in `packages/runtime/src/sandbox/quickjs-runner.ts` is host TypeScript, never a saved body. The break is the hook half only: `ActionSchema.texts` is unreleased (pending changeset), so the action half ships already narrowed (L2 N1). ## Verification Two-minute check: `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/data/hook-texts.test.ts src/ui/action-texts.test.ts`, including the two `ctx.text?.(` shape rows per door and the handler pin. Read first, by risk: 1. `packages/spec/src/data/hook-refusal-codes.ts`: the `TEXT_CALL` regex hunk (the `(?:\s*\?\.)?` arm) and its header comment on why `!` is not read. 2. `.changeset/35512-text-call-shapes.md`: the declarations and the BREAKING section. 3. `packages/spec/src/migrations/entries/semantic/18.hook-action-text-key-optional-call-refused.ts`. All the local readings below were taken at head `269566b8`. <details><summary>Local gates (derived list, 96 commands)</summary> - `pnpm --filter @objectstack/spec build`: VERDICT command-exit 0. `check:generated`: all 14 artifacts are up to date (exit 0). - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 96 commands, and I ran all 96. On the first pass, 86 exited 0. - Six spec gates exited 3 (PREREQUISITE NOT MET: dist predated a later TSDoc rewrap). After a spec rebuild they exited 0: `check:api-surface`, `check:browser-reachable-entries`, `check:dual-source-exports`, `check:entry-nameability`, `check:exported-any` (and `check:docs` / `check:authorable-surface` again). - Four gates were missing workspace builds on the first pass and exited 0 once the dogfood/cli closure was built: the cli `migrate-meta-engine-guidance` test (3/3), `check:doc-formula-expressions`, `check:lean-entry-closure` and `check:dual-build-cjs-loads`. - NOT MEASURED: `check-plugin-teardown-shape.mjs --self-test`, because the shallow clone cannot reach its battery. CI runs it. - Changeset gates, each exit 0: `check-adr-0087-registration` (registered `hook-action-text-key-optional-call-refused`), `check-changeset-no-major` and `check-empty-changeset`. - `--ran` reconciliation: 96 derived, 96 run, 0 UNRUN. - `overlap-check --branch=HEAD`: VERDICT clean exit 0, against origin/main 03865ae. </details> <details><summary>Dogfood battery (owed by the narrowing arm)</summary> - I built the `@objectstack/dogfood^...` closure under the lock (exit 0), then ran `pnpm --filter @objectstack/dogfood test` at `269566b8`. - Result: VERDICT command-exit 0, Test Files 482 passed / 3 skipped (485), Tests 4092 passed / 68 skipped (4160). No failures. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgX6mQpVU8yUysiRAFC)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9b6db73 commit 5d2ce34

8 files changed

Lines changed: 142 additions & 20 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
fix(spec): the save door refuses an undeclared text key asked for as `ctx.text?.('k')`, as it already did for `ctx.text('k')`
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: narrowed
9+
10+
**BREAKING** for a hook that declares `texts` and whose code asks for a key `texts` does not declare through the optional call `ctx.text?.('k')`. Action `texts` is read the same way from the release that introduces it, so no released action is affected.
11+
12+
- FROM: `HookSchema` refused a key asked for literally and not declared in `texts` only for the plain call `ctx.text('k')`. `ctx.text?.('k')` and `await ctx.text?.('k')` with an undeclared key parsed green, and the runtime refused the key only when the hook ran.
13+
- TO: the optional call is refused at save with the sentence the plain call already gets, at `body.source` for a `js` body or at `handler` for an in-process handler. Whitespace or a line break around `?.` is read too.
14+
- Fix: declare the key under `texts.KEY` with the sentence the record keeps, or ask for one of the declared keys. A declared key is accepted in both shapes.
15+
16+
A key that arrives any other way (a variable, a computed name) is still judged when the code runs.
17+
18+
<!-- adr-0087: registered hook-action-text-key-optional-call-refused -->

‎content/docs/automation/hooks.mdx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,9 @@ export const leadFollowUp = {
497497
the organization's choice. Catch it if the hook should write anyway.
498498
- **Only declared text is translated.** A string the hook builds itself is
499499
written as it is. A key `texts` does not declare is refused when the hook is
500-
saved if the hook names it literally in `ctx.text('key')`, otherwise when the
501-
hook runs, as a `500` that names the hook and the key.
500+
saved if the hook names it literally in `ctx.text('key')` or
501+
`ctx.text?.('key')`, otherwise when the hook runs, as a `500` that names the
502+
hook and the key.
502503
- **It works whichever way the hook is written** — a TypeScript `handler` and a
503504
sandboxed `js` body get the same `ctx.text`. An `expression` body cannot ask
504505
for one, so `texts` is refused there.

‎packages/spec/src/data/hook-refusal-codes.ts‎

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,9 @@ function undeclaredRefusalReasonAtRun(
423423
* (parameter 4).
424424
*
425425
* The same two halves as a refusal code: a key the hook's source asks for
426-
* LITERALLY and `texts` does not declare is refused at save
427-
* ({@link hookTextKeysAskedIn}); any other key is refused when the hook runs.
426+
* LITERALLY — `ctx.text('key'` or `ctx.text?.('key'` — and `texts` does not
427+
* declare is refused at save ({@link hookTextKeysAskedIn}); any other key is
428+
* refused when the hook runs.
428429
*/
429430

430431
/**
@@ -433,16 +434,26 @@ function undeclaredRefusalReasonAtRun(
433434
*/
434435
export const HOOK_TEXT_KEY_PATTERN = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
435436

436-
/** `ctx.text('key'` — the call a hook's code asks for a declared text with. */
437+
/**
438+
* `ctx.text('key'` — the call a hook's code asks for a declared text with — and
439+
* its optional-call shape `ctx.text?.('key'`, which strict TypeScript reaches
440+
* for because `HookContext.text` is optional. Both ask for the key literally.
441+
*
442+
* A non-null `ctx.text!('key'` is not read: it is TypeScript with no
443+
* JavaScript form. A handler's `!` is erased before the save reads
444+
* `Function.prototype.toString()`, so it arrives as the plain call; in a `js`
445+
* body it is a syntax error, and the body never runs.
446+
*/
437447
const TEXT_CALL = new RegExp(
438-
String.raw`(?<![\w$.])ctx\s*\.\s*text\s*\(\s*(?<tquote>['"\x60])(?<key>[a-z][a-z0-9]*(?:_[a-z0-9]+)*)\k<tquote>`,
448+
String.raw`(?<![\w$.])ctx\s*\.\s*text(?:\s*\?\.)?\s*\(\s*(?<tquote>['"\x60])(?<key>[a-z][a-z0-9]*(?:_[a-z0-9]+)*)\k<tquote>`,
439449
'g',
440450
);
441451

442452
/**
443-
* The text keys a hook's source asks for LITERALLY — `ctx.text('key', …)` —
444-
* in first-seen order: the cases a save can decide. A key that arrives any
445-
* other way (a variable, a computed value) is left to the run-time refusal.
453+
* The text keys a hook's source asks for LITERALLY — `ctx.text('key', …)` or
454+
* `ctx.text?.('key', …)` — in first-seen order:
455+
* the cases a save can decide. A key that arrives any other way (a variable,
456+
* a computed value) is left to the run-time refusal.
446457
* Comments and longer strings are blanked first, as for a refusal code.
447458
*/
448459
export function hookTextKeysAskedIn(source: string): string[] {

‎packages/spec/src/data/hook-texts.test.ts‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,43 @@ describe('Hook.texts — a key the source asks for literally is refused at save
105105
expect(hookTextKeysAskedIn(source)).toEqual(['follow_up_subject']);
106106
});
107107

108+
// The optional-call shape is a literal ask too: strict TypeScript reaches for
109+
// it once `HookContext.text` is optional.
110+
const SHAPES = [
111+
['ctx.text?.(', (k: string) => `ctx.text?.('${k}')`],
112+
['await ctx.text?.(', (k: string) => `await ctx.text?.('${k}', { lead: ctx.input.name })`],
113+
] as const;
114+
115+
it.each(SHAPES)('refuses an undeclared key asked for as %s at save, with the same sentence', (_shape, ask) => {
116+
const r = HookSchema.safeParse({ ...base, body: body(`const s = ${ask('follow_up_title')};`), texts });
117+
expect(r.success).toBe(false);
118+
const issue = r.error!.issues.find((i) => i.path.join('.') === 'body.source')!;
119+
expect(issue.message).toBe(undeclaredHookTextKeyAtSave('follow_up_title', ['follow_up_subject'], 'body.source'));
120+
});
121+
122+
it.each(SHAPES)('CONTROL: a declared key asked for as %s, and a computed key in that shape, pass the save', (_shape, ask) => {
123+
const computed = ask('follow_up_subject').replace("'follow_up_subject'", 'k');
124+
const source = `${ask('follow_up_subject')};\nconst k = pick(); ${computed};`;
125+
expect(HookSchema.safeParse({ ...base, body: body(source), texts }).success).toBe(true);
126+
expect(hookTextKeysAskedIn(source)).toEqual(['follow_up_subject']);
127+
});
128+
129+
it('reads the optional call with whitespace or a line break around the operator', () => {
130+
expect(hookTextKeysAskedIn("ctx.text ?. ('a_key'); ctx.text\n ?.('b_key');")).toEqual(['a_key', 'b_key']);
131+
});
132+
133+
it('refuses an inline handler asking ctx.text?.() for an undeclared key, at handler (the strict-TypeScript case)', () => {
134+
const handler = async (ctx: any) => { await ctx.text?.('follow_up_title'); };
135+
const r = HookSchema.safeParse({ ...base, handler, texts });
136+
expect(r.success).toBe(false);
137+
const issue = r.error!.issues.find((i) => i.path.join('.') === 'handler')!;
138+
expect(issue.message).toBe(undeclaredHookTextKeyAtSave('follow_up_title', ['follow_up_subject'], 'handler'));
139+
});
140+
141+
it('does not read a non-null ctx.text!() — TypeScript only: a handler reaches the save with the `!` erased, and a js body holding it never compiles', () => {
142+
expect(hookTextKeysAskedIn("ctx.text!('a_key');")).toEqual([]);
143+
});
144+
108145
it('a hook that declares no texts is not read for ctx.text calls (the run-time fault names it)', () => {
109146
expect(HookSchema.safeParse({ ...base, body: body("await ctx.text('anything');") }).success).toBe(true);
110147
expect(undeclaredHookTextAtRun('lead_follow_up', 'anything', [])).toMatch(/hook 'lead_follow_up' asked for text 'anything'.*declared: none/);

‎packages/spec/src/data/hook.zod.ts‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,9 @@ function refuseUndeclaredLiteralRefusalCode(
337337
/**
338338
* [#34374, ruling 6913660232 parameter 7] The object-level check that refuses
339339
* `texts` nothing could ask for, and a key a hook's source asks for literally
340-
* (`ctx.text('key')`) that `texts` does not declare — the refusal catalogue's
341-
* two halves above, for the sentences a hook writes into a record.
340+
* (`ctx.text('key')` or `ctx.text?.('key')`) that `texts` does not declare —
341+
* the refusal catalogue's two halves above, for the sentences a hook writes
342+
* into a record.
342343
*/
343344
function refuseUndeclaredLiteralTextKey(
344345
hook: {
@@ -816,8 +817,8 @@ export const HookSchema = lazySchema(() => strictObject(
816817
* hook builds itself is written as it is (parameter 4).
817818
*
818819
* A key the hook's source asks for literally that `texts` does not declare
819-
* is refused at save; any other undeclared key is refused when the hook
820-
* runs. Served on every path a hook runs on — a sandboxed `js` body and an
820+
* — `ctx.text('key')` or `ctx.text?.('key')` — is refused at save; any
821+
* other undeclared key is refused when the hook runs. Served on every path a hook runs on — a sandboxed `js` body and an
821822
* in-process `handler` — and refused on a hook whose code cannot ask for one
822823
* (an `expression` body, or neither a body nor a handler). Keyed by hook
823824
* name, not by object. Absent: `ctx.text` has nothing to answer.
@@ -1939,8 +1940,9 @@ export const HookContextSchema = lazySchema(() => z.object({
19391940
*
19401941
* The runtime binds it on every path a hook runs on — a sandboxed `js` body
19411942
* and an in-process `handler` (`buildHookTextSurface`). The save-time check
1942-
* reads the literal spelling `ctx.text('key'`, so a key asked for through
1943-
* an alias or a computed name is only judged when the hook runs.
1943+
* reads the literal spellings `ctx.text('key'` and `ctx.text?.('key'`, so a
1944+
* key asked for through an alias or a computed name is only judged when the
1945+
* hook runs.
19441946
*
19451947
* Runtime-only, like {@link api} and {@link notice}: a live function, so the
19461948
* RUNTIME schema is `z.unknown()` (JSON Schema `{}`) and the type is a static
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
import type { SemanticMigration } from '../../types.js';
4+
5+
// The D3 entry for the save door's literal `ctx.text` reader reading the
6+
// optional-call shape `ctx.text?.('key')` (ruling 6913660232 parameter 7: a
7+
// key asked for literally that `texts` does not declare is refused at save).
8+
// It narrows the hook's accept set, the released half; the action half
9+
// (`ActionSchema.texts`) ships already narrowed. No key is removed, so there is
10+
// no tombstone and no D2 conversion: which sentence the author meant is a
11+
// judgement about the hook.
12+
export const entry: SemanticMigration = {
13+
id: 'hook-action-text-key-optional-call-refused',
14+
surface:
15+
'hook.body.source / hook.handler on a hook that declares texts: a literal optional call ctx.text?.(KEY), '
16+
+ 'awaited or not, whose KEY texts does not declare. A type: script action\'s body.source is read the same '
17+
+ 'way from the release that introduces action texts, so no released action is affected',
18+
replacement:
19+
'Declare the key under texts.KEY with the sentence the record keeps, or ask for one of the declared keys. '
20+
+ 'The optional call stays legal for a declared key.',
21+
reason:
22+
'A key a hook asks for literally that its texts does not declare was refused at save only for the plain '
23+
+ 'call ctx.text(KEY). The optional call ctx.text?.(KEY), which strict TypeScript reaches for because '
24+
+ 'HookContext.text is optional, passed the save, and the runtime refused the key only when the hook ran, '
25+
+ 'as a fault naming the hook and the key. The save now refuses it with the same sentence, at body.source '
26+
+ 'or handler. A key that arrives any other way (a variable, a computed name) is still judged when the code '
27+
+ 'runs. There is no mechanical rewrite: the hook already failed at run time for that key, and whether to '
28+
+ 'declare it or ask for another is a judgement about the sentence.',
29+
acceptanceCriteria:
30+
'objectstack validate reports no issue at body.source or handler for any hook that declares texts, and '
31+
+ 'every key its code asks for through ctx.text or the optional call ctx.text?.( is a key of its texts.',
32+
};

‎packages/spec/src/ui/action-texts.test.ts‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,27 @@ describe('Action.texts — a key the body asks for literally is refused at save
130130
expect(ActionSchema.safeParse({ ...base, body: body(source), texts: TEXTS }).success).toBe(true);
131131
});
132132

133+
// The optional-call shape is a literal ask too, read by the one key reader
134+
// the hook door shares. (An action's door reads `body.source` alone: it has
135+
// no handler path.)
136+
const SHAPES = [
137+
['ctx.text?.(', (k: string) => `ctx.text?.('${k}')`],
138+
['await ctx.text?.(', (k: string) => `await ctx.text?.('${k}', { subject: input.subject })`],
139+
] as const;
140+
141+
it.each(SHAPES)('refuses an undeclared key asked for as %s at save, with the same sentence', (_shape, ask) => {
142+
const r = ActionSchema.safeParse({ ...base, body: body(`const line = ${ask('email_body')};`), texts: TEXTS });
143+
expect(r.success).toBe(false);
144+
const issue = issuesOf(r).find((i) => i.path.join('.') === 'body.source')!;
145+
expect(issue.message).toBe(undeclaredActionTextKeyAtSave('email_body', ['email_subject']));
146+
});
147+
148+
it.each(SHAPES)('CONTROL: a declared key asked for as %s, and a computed key in that shape, pass the save', (_shape, ask) => {
149+
const computed = ask('email_subject').replace("'email_subject'", 'k');
150+
const source = `${ask('email_subject')};\nconst k = pick(); ${computed};`;
151+
expect(ActionSchema.safeParse({ ...base, body: body(source), texts: TEXTS }).success).toBe(true);
152+
});
153+
133154
it('CONTROL: an action that declares no texts is not read for ctx.text calls (the run-time fault names it)', () => {
134155
expect(ActionSchema.safeParse({ ...base, body: body("await ctx.text('anything');") }).success).toBe(true);
135156
expect(undeclaredActionTextAtRun('send_email', 'anything', [])).toMatch(/^action 'send_email' asked for text 'anything'.*declared: none/);

‎packages/spec/src/ui/action.zod.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,9 +1572,9 @@ const actionObject = () => strictObject({
15721572
* rejects the call. A string the body builds itself is written as it is
15731573
* (parameter 4).
15741574
*
1575-
* A key the body asks for literally that `texts` does not declare is
1576-
* refused at save; any other undeclared key is refused when the action
1577-
* runs, as a fault naming the action and the key. Served where an action
1575+
* A key the body asks for literally that `texts` does not declare —
1576+
* `ctx.text('key')` or `ctx.text?.('key')` — is refused at save; any other
1577+
* undeclared key is refused when the action runs, as a fault naming the action and the key. Served where an action
15781578
* runs code of its own: a `type: 'script'` action's sandboxed `js` body —
15791579
* which is also what `os build` lowers an inline `target` function to.
15801580
* Refused on every other action: another `type` (its `target` is a URL,
@@ -2658,8 +2658,8 @@ export type ActionText = z.input<typeof ActionTextSchema>;
26582658
* [#34374 PR2] The object-level check on an action's `texts`, the twin of
26592659
* `HookSchema`'s: `texts` nothing the action runs could ask for is refused at
26602660
* `texts`, and a key the body's source asks for literally
2661-
* (`ctx.text('key')`) that `texts` does not declare is refused at
2662-
* `body.source`, one issue each. A key that arrives any other way is the
2661+
* (`ctx.text('key')` or `ctx.text?.('key')`) that `texts` does not declare is
2662+
* refused at `body.source`, one issue each. A key that arrives any other way is the
26632663
* run-time refusal's.
26642664
*/
26652665
function refuseUndeclaredLiteralActionTextKey(

0 commit comments

Comments
 (0)