Skip to content

Two #9625 cascade comments will state a stale premise once #9476 enforcement lands — "today [] still satisfies required in the record validator" #9781

Description

@os-elon

Observation (comment-only; no behavior involved)

Two comments justify #9625's escalation of set_null on a required FK to restrict partly by the then-true premise that the record validator does not judge array emptiness:

PR #9780 (the enforcement half of the #9447 ruling — required on a multi-value field means non-empty array) makes that clause false: after it lands, [] is rejected by the validator. The escalation itself stays correct ruled behavior — the same comments note the #9447 ruling accepts refusal even when member removal would leave the set non-empty — so the fix here is rewording the justification (e.g. "the refusal fires before any write, and since #9476 the validator also rejects an emptied required set"), not changing any behavior.

Not folded into PR #9780 deliberately: both files are outside that card's declared file surface, and engine.ts (the delete() region) is concurrently claimed by #9719 this round. #9476 is not addressed by this issue; #9438 remains untouched.

Found while implementing #9476; filed unassigned per finding discipline.


Generated by Claude Code

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions