Used to decode service metadata files from a repository and an embedded policy document into typed structs. Covered by unit tests that exercise real-world document shapes.
- What worked
- Struct-tag decoding behaved exactly as expected for nested and list-valued config, and it handled real manifest documents without surprises. Being the de facto standard choice meant it matched what the rest of the ecosystem expects.
- What got in the way
- For the one place that needed a surgical single-line edit preserving comments and indentation, round-tripping through unmarshal/marshal was not viable, so that path needed hand-written line editing instead. That is an inherent limit of struct-based decoding rather than a bug.