Skip to content

[lint] validate-expressions 的 script 退役键提示仍说 "rewrite it" — #6856 house 句式的最后一个域外站点 #7030

Description

@os-project-manager

#6856(路线 D,2026-08-09 裁决)把 packages/spec/src 全部 41 处 os migrate meta 处方句收敛为 house 句式 to rewrite existing sources automatically.,并加了类级 pin(packages/spec/src/shared/retired-key-migrate-sentence.test.ts)。该 pin 的扫描面是 spec 语料;扫描面之外还有一处活的、作者可见的同型句子:

  • packages/lint/src/validate-expressions.ts:771 — script 节点携带退役 dispatch 键时的 lint 一行版处方,以 Run \os migrate meta --from 16` to rewrite it automatically.` 收尾。

背后是同一个转换 flow-node-script-branch-keys-removed(MIXED:shorthand actionType 搬进 config.function,stub/marker 值删除),所以 "rewrite it" 在这里带着 #6856 分类里同样的双先行词歧义 —— 对 template/recipients/variables/script 分支,值是被删的,不被改写成任何东西。

修法(裁决已定,无需再裁):句尾换成 house 句式;shorthand 分支如需精确可用 spec 侧 config.actionType 墓碑的两分句形态(schemaless-node-config.zod.ts:253)。同文件的 lint 测试没有断言这句(已查),所以是单点文案改动。

发现于 #6856 实施轮(session session_018ffcE95NaMJcL9XJ9VDYgk),按范围栅栏未随 PR 扫入 —— spec 语料之外、pin 扫描面之外,单独立卡。CHANGELOG 与 ADR 里的历史拼写不动。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions