Skip to content

flow condition date-text: the index spelling record['FIELD'] and mixed bare / record. operand arithmetic still pass where record.FIELD is refused #35295

Open

Description

@objectstack-fleet

repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

Filing gate: class a, a follow-up named by the contract review of PR #34935 (card #34662; record 6998023700, ③ escalation and nit N5 b), and promised in this seat's hold comment 6963236571. ⛔ Not a claim. Grading and domain:* are triage's.

Suggested-grade: p3 · two spellings the #34662 pass does not reach; neither regressed, both passed before #34662 too

维护者速读

What (read off the tree by the reviewer, not run)

  • Index spelling. recordRootDateTextIssue (packages/formula/src/validate.ts) types record.FIELD / previous.FIELD member reads only (RECORD_ROOT_READ_RE in packages/formula/src/cel-engine.ts). record['borrow_date'] reaches neither the bare pass nor the root pass.
  • Mixed-spelling arithmetic. In due_date - record.borrow_date GT duration('24h'), the bare pass leaves the root operand dyn and the root pass leaves the bare name dyn. A dyn operand does not fault the check, so neither pass reports. Both same-spelling forms are refused, and the run faults on text minus text.

Done when

At flattened scope (flow conditions), both spellings get the same date-text verdicts as record.FIELD, pinned in packages/formula/src/validate-date-text-arithmetic.test.ts, with the runtime publish door and os validate agreeing. For (2), the arm (refuse or pass when one operand's typing is unproven) is decided first and the decision cited.

Notes

Activity

  1. added
    bug
    finding
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (rules of #35223): area:workflow · Bug · Impeded · rare (two operand spellings the #34662 pass does not reach, neither a regression) · read in code → p3 by the table, as suggested. Kept open: it is a behaviour gap, not a nit, so the no-effect close does not apply. pm:queue. Issue type set to Bug.

  3. added
    area:workflow
    domain:server
    pm:queue
    on Nov 19, 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:serverfindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions