design: root sum FromJSON duplicates domain wire tags — new domain constructor silently breaks root parsing #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
IR.Action,IR.Condition,IR.Policyroot parsers hardcode every leaf wire tag:Each domain module also parses its own "type" tag. So adding a constructor to e.g. `IR.Domain.System.Condition` compiles cleanly, ToJSON emits it, domain FromJSON accepts it — but the root parser rejects it as "unknown condition type". No compiler error links the two places; the failure shows up only at decode time (or never, if no roundtrip test covers the new tag).
Options:
Either way, one source of truth per tag.