capdag plan says why a way is not offered, in words a person reads
A way the planner finds and does not offer is named by its steps’ titles, and where a step refused
what it was given, capdag plan says how in the titles the fabric publishes:
not offered: JSON to YAML: JSON to YAML's input takes JSON Record (List Marker: none); it is given JSON Record (List Marker: not said)
The line names the input the step was refused at and what it takes against what it is given, each
by its media title, with every published dim the two differ in. A dim’s state is the title of one
of its values, any (some value, whichever), none (no value) or not said (a value or none).
Two media that refine one published type, such as a JSON record that is no list and one that does
not say, read apart by their dims rather than by the one title they share. A difference no
published dim says is given by the two media URNs instead. A step that takes no input reads
<step> takes no input; it is given <media>, and a refusal at no step’s input, such as a cap the
registry does not hold, is the planner’s own reason. -v adds the way by URN and the planner’s
own words under it. Before, the line was not offered: <strand>: <reason>, the way and the
reason by URN alone.
Under --json the excluded record carries the same structure beside strand and reason:
steps (cap_urn, title) and refusal (cap_urn, cap_title, input with name, accepts
and differences, and given). Each media is its urn with its title, or title_unavailable
and why. differences is dims, each with dim, dim_title and the takes and given states,
and unworded, the keys no dim says; or unavailable and why.
A title is never made from a URN. A media title or a dim the registry cannot give is named as such for that way alone, and the plan still offers its other ways.
In the Rust library, ExcludedCandidate gains steps (ExcludedStep) and refusal
(StrandRefusal, with input as a RefusingInput, and given). Each media is a TitledMedia
with a MediaTitle, Defined or Unavailable. differences is a DimDifferences, Said with
its DimDifferences and unworded keys, or Unavailable. Each side of a dim is a DimState:
Value, Any, None or Open.
Reading dims synchronously
The Rust library’s FabricRegistry gains get_dim_synchronously, which reads a dim and fetches it
when it is not cached, as get_cached_cap and get_cached_media_def do for caps and media.
dim_publishing_tag finds the dim whose values carry a tag key among every dim the registry’s
manifest names. It fails, naming both, when two dims publish the same key.