class_policy
class_policy
¶
Machine probe and ordered policy for a generated class map.
Classes¶
Functions:¶
parse_class_hint
¶
'after opencode' → ('after', 'opencode'); 'first' → ('first', None).
Raises ValueError on any other shape — a profile hint is a seating instruction, not free text.
Source code in src/marianne/instruments/class_policy.py
probe_builtin_profiles
¶
Probe effective shipped names and additional profiles with class_hints.
Same-named user/venue overrides supply the actual execution contract for shipped names. Additional user names need a hint: their ranking is a decision the profile's author makes, not the writer (GH #469).
Source code in src/marianne/instruments/class_policy.py
select_class_chains
¶
Apply the policy table, preserving priority and a four-entry cap.
Source code in src/marianne/instruments/class_policy.py
explain_hinted_exclusions
¶
One line per (hinted profile, class) the policy refused, saying why.
A first-run user who wrote a local http profile with
class_hints: {workhorse: first} otherwise sees workhorse: empty
and nothing that says an http endpoint has no filesystem (GH #494).