Record Form Assignment
Record that staff sent, linked, or handed over these forms for this patient.
Called at the moment staff act, from the surfaces that reach no other endpoint: an
SMS send goes out as a chat draft carrying no form id, and Copy Form Link issues no
request at all. Without a row those forms have no sender, and a {provider.*} fill
refuses.
Gated like the form list this is sent from, because writing a row here decides whose name a later consent carries.
Not a fill gate. It records who handed the form over — it never decides who may open one. Any authenticated patient can still open any form by path, which is deliberate: intake forms are shared as public links.
A stale form id records the rest rather than failing the batch. The console fires this without awaiting it — the forms have already gone out either way — so refusing the whole batch over one archived form would silently strand every other form in the send, with nothing on screen to say why.

