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
feat(cli): validate all flat record-scoped predicates at build time (ADR-0032) (#2187)
Extends the action-predicate guard to the remaining flat record-scoped sites,
catching bare field references that silently mis-behave at runtime:
- field conditional rules (requiredWhen/readonlyWhen/conditionalRequired/visibleWhen) — fail-open when broken
- sharing-rule condition (security: which rows a principal sees)
- lifecycle hook condition (skips handler when false)
- nested `when` on conditional validation rules
formula: add `parent` to record-scope namespace roots — master-detail inline
grids inject the header record as `parent` for a child field's readonlyWhen
(ADR-0036, #1581), so `parent.status` is legitimate, not a bare ref.
Verified: full monorepo build 76 tasks clean (zero false positives across all
examples + platform bundles); cli validator suite 25 cases (5 new).
Deeply-nested UI visibility (view/page tree, object field-group visibleOn,
app-nav) is deferred — it needs a recursive walker + per-node scope rules.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments