- Shipped
- September 9, 2026 at 8:23 PM UTC
- Author
- Kamo
- Commit
- ec78ab4
The unit tests around this cover the pieces — the format, the type predicate, the required-field exclusion — and none of them can see the wiring. A signature_date that is correctly excluded from the required check but never WRITTEN stamps an empty box where the date of execution should be, with every one of those tests still green. Four assertions on submit itself: a row is persisted for a field the signer sent nothing for; it carries today, formatted the way the document renders it; a date the browser supplied for that field is discarded rather than persisted; and a required signature_date does not 422 the submission. The fifth is the one that makes the other four mean anything. resolveDesignJson goes through the TEMPLATE repository before the design-version one, and the first version of this test left it bare — so the design resolved to null, no field was required, nothing was stamped, and "a required signature_date does not block the submission" passed while proving nothing. buildSession now has to report three fields before the rest of the file is allowed to be believed.