A site's lane configuration overlays the composed one, entry by entry
A site can recolour, rename or add lanes. What it stores is a patch on the shipped vocabulary; serving it as a replacement freezes the vocabulary at the moment it was saved.
The rule
- A stored site-level lane configuration MUST be served as an overlay on the vocabulary composed beneath it (SCH-41), not as a replacement.
- Lanes MUST be merged per id: a stored entry MUST replace the entry of the same id whole (SCH-44), and an entry the stored value does not mention MUST be served as composed, after the stored ones, so the site's ordering survives.
- A widening compatibility rule MUST be declared on a lane entry, and MAY name that entry's lane at either end.
- The effective compatibility rules MUST be the union of the rules declared by the effective lane entries, plus the generated rules (SCH-39, SCH-43), served as one list of
from/topairs. - A rule therefore leaves only with the entry that declares it: a lane added after the overlay was saved arrives with every rule it declares, and a site removes a rule by redefining the entry that declares it.
- Scalar keys MUST be stored-wins.
- Serving a stored overlay wholesale is a defect: every lane added after it was saved would go missing, and by SCH-10's coupling every port carrying such a lane would be compatible with nothing, not even with itself.
What it means
A site's stored lane configuration is read as a set of edits on top of the vocabulary beneath it, never as the whole vocabulary. A lane the site never mentions is not missing from what gets served: it is carried over exactly as composed. The only exception is ordering: unmentioned lanes are appended after the stored ones, so a site's own ordering choices still show first.
Compatibility rules travel with the lane entry that declares them. That is what keeps a lane shipped after the site saved its configuration usable: it reaches the site with every rule it declares, in both directions, because nothing the site stored replaced its entry. The same reading tells a site how to drop a rule it disagrees with: redefine the entry that declares it. Leaving a rule out of some other entry removes nothing.
Example
A site recoloured string and added a lane of its own, before a messages
lane existed in the shipped vocabulary:
{
"version": "0.9.0",
"dataTypes": [
{ "id": "string", "name": "Text", "description": "Recoloured by the site.", "color": "rebeccapurple", "category": "basic", "enabled": true },
{ "id": "site_custom", "name": "Site Custom", "description": "A type only this site declares.", "color": "var(--fd-node-slate)", "category": "basic", "enabled": true,
"compatibility": [{ "from": "site_custom", "to": "string" }] }
]
}Serving this recolours string and keeps site_custom and its rule, exactly
as stored. It also serves messages, a lane the stored value never mentions,
with the one-way rules into array and json that the shipped messages
entry declares.