Learn / Wiring
How the assembly uses a wiring
- Routing takes the first claimant in list order.
routereturns anOption:Somewhen the Message is this wiring's,Noneotherwise. A key-value mirror returnsNonefor another mirror'sMirrorRestored; that is what lets the tag beshared. A placement folds a Message when its wrapper unwraps it, and ignores the rest the same way. initsteps run placements first (shallowest first), then wirings in list order. A mirror'srestoreis an ordinary Command in the returned config; whoever mounts the app dispatches it like any other startup Command.- Subscriptions merge by key. A duplicate key throws, as
Subscription.aggregatedoes. The merged record carries the union of the items' service requirements, so a Remote wiring pullsRemoteClientinto the runtime'sresourceslayer type. urlfolds everyonUrl. Itsinitapplies each wiring's URL read to the Model; itsonUrlChangebuilds the Message a wiring routes.modulecollects contracts. Placements contribute a contract owning their Model path; each wiring contributes its own contract as-is, soModule.validatesees every owner in the one list. A wiring with no contract (nothing owned, nothing observed) contributes nothing.