Data UI Backlog

Hook registry (parameterized, data-only)

Implement the curated hook registry so models can attach behavior as pure data: (:keyword args...). Generalizes the current *validation-map* (keyword → function only).

Entry shape: name + parameter schema + factory. Factory closes over parameters and returns a contract-conforming closure.

Two contracts, one registry concept:

Surface forms at every hook site (same as README):

MVP first slice: validation path (compile-validations accepts parameterized forms). Seed entries needed soon: :max-length, :in-range (ratings 1–5), and keep existing keyword entries (:required, :email, …) as zero-arg registry entries.

Do not name this "validation registry" or "function registry" — lifecycle hooks use the same mechanism. Name: hook registry.

Slot
17800
Status
60 Done
Tags
backend, compiler
Contributors
Donnie