Workstream: Integration · Part of #89
Context
A core advantage over hooks: rule expressions can be type-checked against schema field types at parse/apply, so a bad rule fails before deploy instead of on a live request.
Scope
- Type-check every rule expression against the schema's field types at apply time.
- Validate result-type compatibility (
@compute result matches field type; @require is boolean; @default(expr:) matches field type).
- Surface failures with
file:line.
Acceptance
apply rejects type-incorrect rules; valid rules pass. Covered by the validation pipeline (sf-validate).
Dependencies: Suggested order: follows #103; pairs with #91. Soft.
Workstream: Integration · Part of #89
Context
A core advantage over hooks: rule expressions can be type-checked against schema field types at
parse/apply, so a bad rule fails before deploy instead of on a live request.Scope
@computeresult matches field type;@requireis boolean;@default(expr:)matches field type).file:line.Acceptance
applyrejects type-incorrect rules; valid rules pass. Covered by the validation pipeline (sf-validate).Dependencies: Suggested order: follows #103; pairs with #91. Soft.