Skip to content

flow value envelopes: a false macro type-mismatch switches off the date-text check, so a value that faults on every matching row registers clean #39107

Backlog

Description

@objectstack-fleet

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Filing gate: ① (a product defect with a named landing point and a measured reproduction) · Source: fleet — the contract review of PR #39072 (record 7339916410, M1). The seat ruled option (a) on #38959 (claim amendment there): PR #39072 keeps this gate's current answer, and the shape is carried here. ⛔ Not a claim.

维护者速读

  • 出了什么事:流程的"赋值表达式"里,如果前半段用宏遍历日期字段(如 [record.due_date].exists(d, d > '2026-01-01')),检查会误以为类型不匹配,结果把"日期文本运算"检查一并关掉了。后半段那些运行时必然出错的写法因此被放过,流程照常注册。
  • 用户看到的:流程注册成功,每次条件为真时运行出错。
  • 要你做什么:要。修它会让"今天已能注册的已存流程"在加载时被拒(收窄存量元数据),需要你同意走收窄路线(宣告 BREAKING、迁移说明),或者选择只在发布时报错、加载时仍放行。

What is measured

Expected

The maintainer chooses one of:

  • (A) refuse at publish and at registration, as a declared narrowing with a migration;
  • (B) refuse at publish only, and log at registration so stored flows keep loading.

Then pin the envelope door and a registration reading.

Dedupe: #38959 / PR #39072 (the parent), #39104 (a different Timestamp shape).

Grading: area:workflow · Bug · Suggested-grade: p2 · reach: measured at validateExpression, os validate and registerFlow.

Activity

  1. added
    bug
    priority:p2
    needs-user-decision
    area:workflow
    domain:server
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Ruled · option B · 2026-12-02T09:21Z

    Ruling-ref: maintainer (Warren), project thread, 2026-12-02T09:20Z「39107 从安全的角度应该怎么选」→ triage recommended B → 2026-12-02T09:21Z verbatim「b」.

    • Ruled: (B) refuse at publish only (os validate and the publish gate), and log at registration so stored flows keep loading. No narrowing of stored metadata; no BREAKING note.
    • Reason given with the recommendation: the faulting values fail the run, they do not bypass permissions or expose data; refusing at registration would stop already-stored flows from loading after an upgrade (the same class as 老软件包视图里的表单被新框架拒收:HotCRM 6.x/7.0 等已发布版本读不了(挡云端升级) #39101). The registration log line lets a later, announced narrowing (A) be sized first.
    • Pin the envelope door and a registration reading (a stored flow with each measured value loads and logs).
    • needs-user-decision → pm:queue; grade unchanged (p2). ⛔ Not a claim.
  3. added
    pm:queue
    and removed
    needs-user-decision
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowbugdomain:serverpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions