pub fn derive_properties(attrs_json: &str) -> NodePropertiesExpand description
Derive NodeProperties from a JSON-serialized attrs string.
Detection precedence (DP-1, DP-3):
node_type= “root” / “host” / “proc” → corresponding varianterror_codepresent → ErrorSTATUSkey present → Actor- none of the above → Error(“unknown_node_type”)
DP-2 / DP-4: this function is total — malformed attrs never
panic; view decode failures map to NodeProperties::Error
with a malformed_* code.
AV-3 / IA-6: view decoders ignore unknown keys.