Repository navigation
Resolve inherited conformance for blank derived cluster entries in dm - #110
Merged
Merged
Conversation
|
This pull request is merged. |
cecille
approved these changes
Dec 2, 2026
cecille
left a comment
Contributor
There was a problem hiding this comment.
I know nothing about go, but I asked my bot to take a look and then interrogated it about a bunch of stuff I didn't understand (aka a lot of things) and it seemed pretty confident this was OK.
hasty
self-requested a review
December 2, 2026 21:58
hasty
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a derived cluster in the Matter specification leaves the Conformance cell blank on an inherited element (to indicate no change from the base cluster),
alchemy dmpreviously emitted no conformance element in the generated Data Model XML. Downstream consumers such asconnectedhomeip'sspec_parsing.pytreat missing conformance tags asoptionalConform, which causes derived cluster overrides to overwrite the base cluster'smandatoryConformwithoptionalConform(for example in the derivedMode_*clusters afterconnectedhomeip-specPR #13292 and inOperationalState_Oven/OperationalState_RVC).Approach
resolveConformanceindm/inherit.goto resolve blank conformances on derived cluster elements by walkingcluster.ParentClusterread-only without mutating the derived overlay entity (following the same pattern ascommandAccessDirectionindm/command.go).resolveConformanceinto derived cluster DM renderers for attributes, struct/command/event fields, commands, events, features, enum items, and bitmap bitfields.dm/inherit_test.gocovering multi-level inheritance, explicit override preservation, non-mutation of overlays, sibling field references, and all element types.Testing
go test ./...andgo vet ./...pass.alchemy dmrun against the Matter specification (includingspec_sha8bbc51199e3fa2bcbc84d35ee05dfb5102eff425): only the 11 derivedMode_*clusters andOperationalState_Oven/OperationalState_RVCchange, restoring the expected inherited conformance tags with zero new warnings.