You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(formula): a bare date ordering before a record. date arithmetic still slips past the flow-condition refusal (follow-up of #36333) #36377
Follow-up of PR #36333 (#34946), carried from contract review 7076631700 S1 (should-fix, non-blocking) and its nits N1–N3. Filed under the maintainer's 2026-11-22 07:49Z rule that should-fix items go to their own card.
S1 (by code read, not yet run; measure first). A flow condition that orders a bare date field against a text literal AND-ed before a root read's date arithmetic, e.g. due_date > "2026-01-01" && record.due_date + 1 > 5, is accepted, though it faults on every run. In packages/formula/src/cel-engine.ts the bare pass meets the Timestamp-vs-string ordering first and confirmAgainstDateText stands it down; the record-root pass types bare names and roots together (buildTypedEnv(bareTypes, 'flattened', …)), meets the same ordering first, sees it is not isDateArith and answers null; recordRootDateTextIssue then asks recordRootReadsFaultDateArith, which types the roots alone, meets record.due_date + 1 first and stands down as "answered by firstTypeMismatch". All-root and all-bare spellings are refused; only the mixed one falls through. Not a regression (main accepts it too).
Fix direction from the review: when the root pass's first fault is not date arithmetic, also ask the roots-only typing, or have the stand-down ask firstTypeMismatch's actual answer.
Nits (same card, optional):
N1: offendingRecordRead names the first Timestamp field read through a root in field-map order, which can be a read other than the one in the arithmetic.
N2: a bare-and-root pair under unproven names reports the bare verdict at run-may-fail.
Done when: S1 measured; if confirmed, the mixed spelling is refused at os validate and the publish door like the other two, pinned with an ablation; nits pinned or split off. Narrowing (newly refused) ⇒ declare it as #36333 did.
Triage: lands in domain:server (packages/formula flow-condition check) · pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before a record. date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.
Triage: lands in domain:server (packages/formula flow-condition check) · pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before a record. date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(packages/formulaflow-condition check) ·pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before arecord.date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(packages/formulaflow-condition check) ·pm:queue; rationale: area:build (writing metadata; it had no area) · Bug · a bare date ordered against a text literal AND-ed before arecord.date arithmetic (due_date > "2026-01-01" && record.due_date + 1 > 5) is accepted though it faults on every run. By code read; measure first. Follow-up of #34946 → p2 as filed · size S.fix(formula)!: a flow condition's record. / previous. date arithmetic…