Preserve null collections in effective YAML

This commit is contained in:
2026-09-07 12:03:45 +00:00
parent 47b3e5b55b
commit 3ec54b8c72
5 changed files with 170 additions and 12 deletions

View File

@@ -128,7 +128,13 @@ valid overlay remains accepted.
## 4. Preserve null versus empty collections in effective YAML
Status: Open — P2
Status: Resolved — P2
Resolution: Effective YAML is now emitted from the credential-safe JSON value
projection through an output-only YAML-node conversion. Explicit nulls, empty maps,
empty slices, booleans, strings, and exact JSON numbers retain their semantic types.
Public show/diff tests cover null and empty maps and slices, while digest,
credential-redaction, deterministic output, and exact-integer coverage remain intact.
**Evidence:** `internal/config/effective_pipeline.go:154` marshals the typed
projection directly with `yaml.Marshal`. The encoder emits nil slices as `[]`