Skip to content

Commit 34b93ec

Browse files
committed
changeset: the advisory-rule date verdict codes
Claude-Session: https://claude.ai/code/session_01Utp6CbJFWadws6f9r4B8Ke Co-authored-by: Claude <noreply@anthropic.com>
1 parent 091455d commit 34b93ec

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/formula': patch
3+
---
4+
5+
fix(formula): an advisory validation rule's date verdict says the rule is skipped and the write proceeds
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
- **`@objectstack/formula`: two codes join `ExpressionRefusalCode`** (`EXPRESSION_REFUSAL_CODES`), with the params of the code each splits from: `date-arithmetic-fail-open` and `date-text-arithmetic-fail-open`.
11+
- On an advisory (`severity: 'warning'` / `'info'`) validation rule (`faultOutcome: 'fail-open'`), date arithmetic used to be told "this faults at runtime, so the field silently evaluates to null". There is no field there, and nothing reads null: the rule is skipped and logged, and the write proceeds. The verdict now closes on the sentence `type-mismatch-fail-open` already uses for that outcome. This replaces the earlier note that an advisory rule keeps `date-arithmetic` / `date-text-arithmetic`.
12+
- A formula field keeps `date-arithmetic` / `date-text-arithmetic` and the null sentence. A consumer keyed to the old codes on an advisory rule re-keys to the new ones.
13+
- The grade is unchanged: the verdict is an error, as before. What is refused, warned or passed is unchanged.
14+
- `@objectstack/lint` and `@objectstack/mcp` `validate_expression` already pass `faultOutcome: 'fail-open'` for an advisory rule, so both serve the new sentence with no change of their own.

0 commit comments

Comments
 (0)