docs(formula): document 7.6 expression syntax changes (ADR-0032)#1527
Merged
Conversation
Update the objectstack-formula skill and the formula guide for the 7.6 /
ADR-0032 behavior so AI + human authors stop writing the old form:
- Predicates are bare CEL — explicit warning against `{record.x}` brace-in-CEL
(the #1491 root cause; `{…}` is a CEL map literal → parse error).
- Malformed expressions no longer fail silently: `objectstack build` fails with
a located, schema-aware message, and the runtime throws (not silent false).
Mentions the `validate_expression` agent tool.
- Template holes: `{{ path | formatter[:arg] }}` whitelist (currency/number/
percent/date/datetime/upper/lower/trim/truncate/default/json) with defined
value→string semantics; single-brace `{x}` is not a valid hole.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Updates the
objectstack-formulaskill and the formula guide for the 7.6 / ADR-0032 expression changes, so AI and human authors stop writing the pre-7.6 form (Decision 4 — "correctness is training data"). Docs/skills only.Changes
<Callout>against{record.x}brace-in-CEL (the Record-change trigger plugin loads but flows never fire on data writes (7.4.1) #1491 root cause —{…}is a CEL map literal → parse error). Braces belong only in{{ }}templates.objectstack buildnow fails with a located, schema-aware message and the runtime throws. Mentions thevalidate_expressionagent tool.{{ path | formatter[:arg] }}whitelist (currency/number/percent/date/datetime/upper/lower/trim/truncate/default/json) + value→string semantics; single-brace{x}is not a valid hole.(
references/shared/expression.mdxis auto-generated from the spec — left untouched.)🤖 Generated with Claude Code