Build a realm
Write realm.ts and the source or resources it references. Start with the complete examples
in Composing a realm. Check the definition with TypeScript, then ask
the host to validate and install the captured source. No declaration generation step exists.
Handler compilation is separate: compiling guest code does not create another realm declaration.
The host checks all references to handlers. An absent handlers block declares none. A goal,
producer, consumer, channel, lens or app naming an undeclared handler is refused with its name.
Conventional actions, events and legacy webhooks in a captured realm are declarations in
the wrong profile: the host refuses each, naming the field, and never executes it.

