Skip to main content

Module labels

Module labels 

Source
Expand description

Fleet labels — a central, many-to-many taxonomy over fleets.

Labels live in one registry (~/.mur/labels.yaml), never in each fleet.yaml: renaming a label must not rewrite N fleet files, and the registry is also where label order (hence chip order) is kept.

A fleet’s primary label is simply the first entry of its ordered assignment list — there is deliberately no separate primary: field, so the two can never disagree.

Structs§

Label
LabelRegistry
The whole taxonomy: an ordered list of labels plus fleet → label-ids.

Functions§

valid_label_id
A label id must be a filesystem-safe lowercase slug: it is used as a map key in YAML and shown as a chip. Same character class as valid_fleet_name, so a hand-edited ../evil can never enter the registry.