fn normalize_context(v: Value) -> Value
Flattens the nested trace-snapshot shape into the flat input shape. A value that is already flat passes through essentially unchanged.