pub fn path_role(path: &str) -> Option<&'static str>Expand description
Repository role of a component from its implementation paths, by generic
directory convention (never repository names): test, fixture, benchmark,
example, and docs trees are structure, not production architecture.
A single non-production role when every path shares it, mixed when
production and non-production mix, production otherwise. Deterministic.
Repository role of ONE path by generic directory convention (never
repository names). None means no non-production segment matched — the
caller maps that to production. Shared by component aggregation,
skeleton labeling, and atlas scope filtering so all three agree on
what “fixture” (etc.) means.