Repository navigation
Description
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
维护者速读
- 现象:a flow condition passes timestamp(record.<date field>) while the same call over the bare name is refused: record.FIELD reads are not typed for the date-text verdicts there #34662 之后,流程条件里
timestamp(record.borrow_date)会像裸字段名一样被拒。但另外两种写法仍然放行:(1) 下标写法timestamp(record['borrow_date']);(2) 一边裸名、一边record.的日期相减,如due_date - record.borrow_date GT duration('24h')。两种写法运行时都会出错。 - 为什么要修:同一个错误换个写法就绕过校验,作者发布时得不到提示。
- 需要你做的:(2) 需要定一个分支:裸名那一侧类型未证实时,判拒还是放行。见下文。
What (read off the tree by the reviewer, not run)
- Index spelling.
recordRootDateTextIssue(packages/formula/src/validate.ts) typesrecord.FIELD/previous.FIELDmember reads only (RECORD_ROOT_READ_REinpackages/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 operanddynand the root pass leaves the bare namedyn. Adynoperand 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
- Lands after PR fix(formula)!: a flow condition's record. / previous. read of a date field takes the date-text verdicts, so timestamp(record.DATE_FIELD) is refused as its bare name is #34935 (same files:
validate.ts,cel-engine.ts). - Narrows the accept-set:
Clause-②: no (narrowing),Metadata-protocol: narrowed, an ADR-0087 semantic entry, and the dogfood battery on the final head, as a flow condition passes timestamp(record.<date field>) while the same call over the bare name is refused: record.FIELD reads are not typed for the date-text verdicts there #34662 did. - Dedupe:
record['borrow_date'],recordRootDateTextIssue,index spelling date-text: only a flow condition passes timestamp(record.<date field>) while the same call over the bare name is refused: record.FIELD reads are not typed for the date-text verdicts there #34662 itself.
Activity
objectstack-fleet commentedon Nov 19, 2026
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.