Refuse an undeclared field a before-hook writes — the post-hook half of the declared-field door, one envelope on every driver #19276
pr-automation.yml
on: pull_request
Check PR Size
12s
Check Changeset
50s
Auto Label
13s
Annotations
1 notice
|
Check Changeset:
.changeset/post-hook-undeclared-field-door.md#L0
ADR-0087 exemption (no-migration-prescription): No metadata key, spec symbol, Zod schema, object definition or stored representation is added, removed or renamed. This narrows which run-time record payload the engine accepts after the `before*` hooks have run; an undeclared key was never a declarable metadata surface, so `objectstack migrate meta` has nothing in a stored source to rewrite. The remedy for an affected hook body is to declare the field on the object or stop writing it, which is authoring guidance, not a mechanical rewrite of stored metadata.
|