Skip to content

Semantic tag namespaces - Generate every spec namespace and SemanticTagNamespaceID with Alchemy - #75131

Open
raul-marquez-csa wants to merge 5 commits into
project-chip:masterfrom
raul-marquez-csa:generate-semantic-tag-namespaces
Open

raul-marquez-csa wants to merge 5 commits into
project-chip:masterfrom
raul-marquez-csa:generate-semantic-tag-namespaces

Conversation

@raul-marquez-csa

@raul-marquez-csa raul-marquez-csa commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds every semantic tag namespace in the spec, plus a SemanticTagNamespaceID enum of their IDs, generated by Alchemy instead of typed by hand, which lets code use any standard namespace and tag by name and lets CI reject hand edits to the file.

Included in this PR

  • Regenerate the namespace ID enum and every namespace's tag enum from the spec with Alchemy (semantic-tag-namespace-enums.xml)
  • Remove the file from the hand-maintained list, so the Alchemy metadata check rejects hand edits from now on (alchemy_allowlists.yaml)
  • Regenerate global-structs.xml and service-area-cluster.xml, whose tag fields now use the Common* enums; the Service Area file also picks up current Alchemy output (optional attributes, command field IDs, mandatoryConform)
  • Regenerate the ZAP output (Enums.h, EnumsCheck.h, Structs.h, Objects.py, MTRBaseClusters.h, .matter files)
  • Tag enums and namespace IDs follow the spec namespace names (CommonLocationTag / kCommonLocation), so every ID matches its tag enum; tag values are unchanged, and CommonLocationTag gains Zone from the spec
  • The five tag enums that already existed (AreaTypeTag, LandmarkTag, LocationTag, PositionTag, RelativePositionTag) keep their old names as aliases in a new CompatGlobalEnumNames.h, which the generated clusters/shared/Enums.h includes. CompatEnumNames.h is only reached through cluster-enums.h, so code that includes only the per-cluster headers, as code-driven clusters do, would not see aliases there
  • In-tree code moves to the new names (all-devices-app, rvc-app, and the Service Area, Bridged Device Basic Information and Ecosystem Information servers)
  • Darwin keeps its shipped names (LandmarkTag, PositionTag, RelativePositionTag) through availability.yaml renames; CommonAreaTag stays provisional and CommonLocationTag stays in the future release, as their old names were
  • Generated with Alchemy main plus Name semantic tag namespaces from the spec, with errata for the exceptions alchemy#102 and Resolve a tag field's namespace from a direct link to the namespace alchemy#103, and the errata in https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/13734; none is merged yet, so the files get regenerated once an Alchemy release includes both and the errata merges

After this PR

  • Tag changes start in the spec (src/namespaces/Namespace-*.adoc); the SDK file is then regenerated with Alchemy and zap_regen_all.py, never edited by hand
  • Two namespaces that map to the same enum name stop the Alchemy run; the fix is a type-names override in the spec's Alchemy errata
  • The file is generated with the same -a feature list and provisional-policy=loose as the cluster XMLs, so it includes the in-progress namespaces (Alarm Severity, Electrical Distribution); a run without that list deletes their enums
  • A tag renamed in the spec carries through to the SDK; a rename that changes a .matter name needs the skip-protocol-compatibility label
  • Existing hand-typed namespace constants in the examples keep working; moving them to the new enum is a follow-up

Testing

Regenerated and checked with:

alchemy zap --sdkRoot=./connectedhomeip/ --specRoot=./connectedhomeip-spec/ \
    --provisional-policy=loose \
    -a access-closure,add-core-modes,add-humidity-controller,ambientsensorfusion,ambientsensingunion,audio-messages,camera-av-analytics,cameras-remote-zones,CurrentHue-scenable,deprecate-im-revision-field,device-location,electrical-sensor-alarm,energy-auxswitch-device-type,energy-electrical-protection,groups-soft-deprecation,hrap-pdc,hrap-proxy,humidistat,hvac-critical-protection,nv-persist-updates,octstr-length-limit,onoff-q-improvement,pqc,predictive-occupancy,q-phase-3,powerrange,proximity-ranging,encrypted-advertising-data,remove-nonvolatile-PS,resource-medium,scenes-fixes,smoke-concentration-tcr,streaming-casting-speakers,tariff-externalid,thermostat-min-setpoint-duration,thermostat-sensors,tstatmode,uwb-ranging,obsolete,cameras-modify-zones-sensitivity \
    ./connectedhomeip-spec/src/namespaces/*.adoc
./scripts/tools/zap_regen_all.py
./scripts/tools/zap/check_alchemy_metadata.py --root .

The same alchemy zap command runs again with ./connectedhomeip-spec/src/app_clusters/ServiceArea.adoc in place of the namespaces, which also writes global-structs.xml. Alchemy's edit to zcl.json and zcl-with-test-extensions.json is left out, since it drops Service Area's FeatureMap keepDefault from #74614.

  • Unit tests: TestServiceAreaCluster, TestBridgedDeviceBasicInformationCluster, TestEcosystemInformationCluster, TestBatteryStorage
  • Builds: linux-x64-tests-clang, all-devices-app, rvc-app, gn check
  • The aliases: the old-name Bridged Device Basic Information files from master build and pass their tests
  • Against this PR's previous push, every .matter change is a rename or the dropped CommonClosureTag

Related issues

Add missing namespaces to semantic-tag-namespace-enums.xml #34700

… adding every namespace and a namespace ID enum
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The Matter models and generated APIs add common and domain-specific semantic-tag enums, expand namespace identifiers, and rename several existing tag types. CommonLocationTag adds kZone = 4, and location descriptor fields use CommonAreaTag. Application code and generated structures update references to the renamed types. A compatibility header provides aliases for five legacy enum names.

Suggested reviewers: andy31415, tersal

Merge Risk: Low · up to c7f0b

This change moves semantic-tag enums and namespace IDs to generated output with renamed types. External Python scripts that use the old enum names will need updates. The developer instructions in Interface.h still describe the old hand-edit workflow. Neither issue should block merging, but both are worth addressing.

Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 6.25% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly describes generating semantic-tag namespaces and the SemanticTagNamespaceID enum with Alchemy.
Description check Passed The description explains the generated enums, affected files, compatibility aliases, and reported validation steps.
Full details: Docstring Coverage

Explanation

Docstring coverage is 6.25% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 48 functions across 28 files. (146 skipped: 144 unsupported, 2 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ast-grep (0.51.1)

src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

ast-grep timed out on this file

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@andy31415 andy31415 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is ok even with the TV room case change (likely not that used and generally provisional) but would welcome another set of eyes/reviews here.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up Comments

Nitpick Add unit assertions for the SemanticTagNamespaceId numeric values.

465-465: Trivial · Functional Correctness · Quick win

Add unit assertions for the SemanticTagNamespaceId numeric values.

No test in this change or the repository asserts the numeric SemanticTagNamespaceId values. The added namespace enum has no test coverage for kClosureWindow = 0x47 (71) or kClosureCabinet = 0x48 (72). A regression that swapped these values would not fail a test. The current generated values match the source XML, so this is a coverage gap, not a current defect. The shared guideline asks for unit tests on changes unless testing is impossible, which this generated enum does not appear to be.

As per coding guidelines: "Unit tests are required for all changes unless unit testing is impossible (e.g., platform-specific code)."

Source: Coding guidelines

Open the source location

Nitpick Add unit tests for the SemanticTagNamespaceId validator.

809-809: Trivial · Maintainability & Code Quality · Low value

Add unit tests for the SemanticTagNamespaceId validator.

No test calls EnsureKnownEnumValue(Globals::SemanticTagNamespaceId). Add assertions that a declared ID such as kCommonClosure is preserved. Add assertions that a reserved gap ID such as 0x09 maps to kUnknownEnumValue. The current switch matches the declared members, so these tests guard against future generator regressions.

As per coding guidelines: "Unit tests are required for all changes unless unit testing is impossible (e.g., platform-specific code)." This gap is not a defect at head. The guideline applies to the generated output, but generator output is also checked by check_alchemy_metadata.py, so this remains a follow-up.

Open the source location

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 42ad099a-c41c-484b-81f3-7c9dc387eb61
Commits

Reviewing files that changed from the base of the PR and between 3cf3e9b and f9d4d07.

Files selected for processing: 144
  • examples/air-purifier-app/air-purifier-common/air-purifier-app.matter
  • examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter
  • examples/air-quality-sensor-app/air-quality-sensor-common/icd-lit-air-quality-sensor-app.matter
  • examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
  • examples/all-clusters-app/realtek/data_model/all-clusters-app.matter
  • examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
  • examples/bridge-app/bridge-common/bridge-app.matter
  • examples/camera-app/camera-common/camera-app.matter
  • examples/chef/devices/icd_rootnode_contactsensor_ed3b19ec55.matter
  • examples/chef/devices/multi_column_switch.matter
  • examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
  • examples/chef/devices/rootnode_airpurifier_73a6fe2651.matter
  • examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter
  • examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter
  • examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter
  • examples/chef/devices/rootnode_castingvideoplayer_contentapp_34699714e7.matter
  • examples/chef/devices/rootnode_chime_9991598b3f.matter
  • examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
  • examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter
  • examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
  • examples/chef/devices/rootnode_contactsensor_lightsensor_occupancysensor_temperaturesensor_pressuresensor_flowsensor_humiditysensor_airqualitysensor_powersource_367e7cea91.matter
  • examples/chef/devices/rootnode_cooktop_cooksurface_d3c174cc88.matter
  • examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
  • examples/chef/devices/rootnode_dimmablepluginunit_f8a9a0b9d4.matter
  • examples/chef/devices/rootnode_dishwasher_cc105034fe.matter
  • examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
  • examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
  • examples/chef/devices/rootnode_extractorhood_0359bf807d.matter
  • examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
  • examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
  • examples/chef/devices/rootnode_genericswitch_2dfff6e516.matter
  • examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter
  • examples/chef/devices/rootnode_heatpump_87ivjRAECh.matter
  • examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
  • examples/chef/devices/rootnode_laundrydryer_01796fe396.matter
  • examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter
  • examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
  • examples/chef/devices/rootnode_microwaveoven_37420684d3.matter
  • examples/chef/devices/rootnode_modeselect_6860d3a65a.matter
  • examples/chef/devices/rootnode_mounteddimmableloadcontrol_a9a1a87f2d.matter
  • examples/chef/devices/rootnode_mountedonoffcontrol_ec30c757a6.matter
  • examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
  • examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
  • examples/chef/devices/rootnode_onofflight_samplemei.matter
  • examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
  • examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
  • examples/chef/devices/rootnode_oven_temperaturecontrolledcabinet_cooktop_cooksurface_738dd18832.matter
  • examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
  • examples/chef/devices/rootnode_pump_5f904818cc.matter
  • examples/chef/devices/rootnode_rainsensor_a7aa5d7738.matter
  • examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter
  • examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter
  • examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter
  • examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter
  • examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
  • examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
  • examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
  • examples/chef/devices/rootnode_waterfreezedetector_dd94a13a16.matter
  • examples/chef/devices/rootnode_waterheater_21bd13d651.matter
  • examples/chef/devices/rootnode_waterleakdetector_0b067acfa3.matter
  • examples/chef/devices/rootnode_watervalve_6bb39f1f67.matter
  • examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
  • examples/closure-app/closure-common/closure-app.matter
  • examples/closure-app/silabs/data_model/closure-thread-app.matter
  • examples/closure-app/silabs/data_model/closure-wifi-app.matter
  • examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app-wifi.matter
  • examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app.matter
  • examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
  • examples/contact-sensor-app/nxp/zap-lit/contact-sensor-app.matter
  • examples/contact-sensor-app/nxp/zap-sit/contact-sensor-app.matter
  • examples/dishwasher-app/dishwasher-common/dishwasher-app.matter
  • examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter
  • examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter
  • examples/electrical-protection-app/electrical-protection-common/electrical-protection-app.matter
  • examples/energy-gateway-app/energy-gateway-common/energy-gateway-app.matter
  • examples/evse-app/evse-common/evse-app.matter
  • examples/fabric-bridge-app/fabric-bridge-common/fabric-bridge-app.matter
  • examples/jf-admin-app/jfa-common/jfa-app.matter
  • examples/laundry-washer-app/nxp/zap/laundry-washer-app.matter
  • examples/light-switch-app/light-switch-common/icd-lit-light-switch-app.matter
  • examples/light-switch-app/light-switch-common/light-switch-app.matter
  • examples/light-switch-app/qpg/zap/switch.matter
  • examples/light-switch-app/realtek/data_model/icd-lit-light-switch-app.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_11.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_2.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_8.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app.matter
  • examples/lighting-app-data-mode-no-unique-id/lighting-common/lighting-app.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
  • examples/lighting-app/esp32/data_model/lighting-app.matter
  • examples/lighting-app/lighting-common/lighting-app.matter
  • examples/lighting-app/nxp/zap/lighting-on-off.matter
  • examples/lighting-app/qpg/zap/light.matter
  • examples/lighting-app/realtek/data_model/lighting-app-extended-color.matter
  • examples/lighting-app/realtek/data_model/lighting-app.matter
  • examples/lighting-app/silabs/data_model/lighting-thread-app.matter
  • examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
  • examples/lighting-app/stm32/data_model/lighting-app.matter
  • examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
  • examples/lock-app/lock-common/lock-app.matter
  • examples/lock-app/nxp/zap/lock-app.matter
  • examples/lock-app/qpg/zap/lock.matter
  • examples/lock-app/realtek/data_model/lock-app.matter
  • examples/lock-app/silabs/data_model/lock-app.matter
  • examples/log-source-app/log-source-common/log-source-app.matter
  • examples/microwave-oven-app/microwave-oven-common/microwave-oven-app.matter
  • examples/network-manager-app/network-manager-common/network-manager-app.matter
  • examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
  • examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
  • examples/placeholder/linux/apps/app1/config.matter
  • examples/placeholder/linux/apps/app2/config.matter
  • examples/pump-app/pump-common/pump-app.matter
  • examples/pump-app/silabs/data_model/pump-thread-app.matter
  • examples/pump-app/silabs/data_model/pump-wifi-app.matter
  • examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
  • examples/refrigerator-app/refrigerator-common/refrigerator-app.matter
  • examples/refrigerator-app/silabs/data_model/refrigerator-thread-app.matter
  • examples/refrigerator-app/silabs/data_model/refrigerator-wifi-app.matter
  • examples/rvc-app/rvc-common/rvc-app.matter
  • examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter
  • examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
  • examples/terms-and-conditions-app/terms-and-conditions-common/terms-and-conditions-app.matter
  • examples/thermostat/nxp/zap/thermostat_matter_br.matter
  • examples/thermostat/nxp/zap/thermostat_matter_eth.matter
  • examples/thermostat/nxp/zap/thermostat_matter_thread.matter
  • examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
  • examples/thermostat/qpg/zap/thermostaticRadiatorValve.matter
  • examples/thermostat/thermostat-common/thermostat.matter
  • examples/thread-br-app/thread-br-common/thread-br-app.matter
  • examples/tv-app/tv-common/tv-app.matter
  • examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
  • examples/virtual-device-app/virtual-device-common/virtual-device-app.matter
  • examples/water-heater-app/water-heater-common/water-heater-app.matter
  • examples/water-leak-detector-app/water-leak-detector-common/water-leak-detector-app.matter
  • examples/window-app/common/window-app.matter
  • src/app/zap-templates/zcl/data-model/chip/alchemy_allowlists.yaml
  • src/app/zap-templates/zcl/data-model/chip/semantic-tag-namespace-enums.xml
  • src/controller/data_model/controller-clusters.matter
  • src/controller/python/matter/clusters/Objects.py
  • src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
  • zzz_generated/app-common/clusters/shared/Enums.h
  • zzz_generated/app-common/clusters/shared/EnumsCheck.h

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@raul-marquez-csa raul-marquez-csa added the skip-protocol-compatibility Marker that protocol backwards compatibility checks are to be skipped label Nov 3, 2026
@raul-marquez-csa

Copy link
Copy Markdown
Contributor Author

I think it is ok even with the TV room case change (likely not that used and generally provisional) but would welcome another set of eyes/reviews here.

The backwards compatibility check fails only on the kMediaTVRoom rename, so I added the skip-protocol-compatibility label.

@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.87%. Comparing base (7ebb53c) to head (c7f0bfd).
⚠️ Report is 273 commits behind head on master.

Files with missing lines Patch % Lines
.../all-devices-common/device-factory/DeviceFactory.h 0.00% 30 Missing ⚠️
...s/robotic-vacuum-cleaner/impl/RvcSimulationLogic.h 0.00% 4 Missing ⚠️
...common/device/types/closure-panel/ClosurePanel.cpp 0.00% 2 Missing ⚠️
...ll-devices-common/device/types/closure/Closure.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #75131      +/-   ##
==========================================
+ Coverage   56.78%   56.87%   +0.09%     
==========================================
  Files        2143     2149       +6     
  Lines      141324   141557     +233     
  Branches    16601    16598       -3     
==========================================
+ Hits        80245    80510     +265     
+ Misses      61079    61047      -32     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…ature list, adding the in-progress namespaces

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick comments: 2
src/app/zap-templates/zcl/data-model/chip/semantic-tag-namespace-enums.xml: 1

467-483: Trivial · Maintainability & Code Quality · Low value

Add a test that checks the values of the three new semantic-tag enums.

No unit test asserts the numeric values of AlarmSeverityTag, ElectricalDistributionFormFactorTag, or ElectricalDistributionOverVoltageTag, or the new SemanticTagNamespaceId values. A regenerated value swap would pass the metadata check and the generated EnsureKnownEnumValue checks. Add a test that asserts each name-to-value pair from the spec.

As per coding guidelines: "Unit tests are required for all changes unless unit testing is impossible (e.g., platform-specific code)."

Source: Coding guidelines

zzz_generated/app-common/clusters/shared/EnumsCheck.h: 1

474-478: Trivial · Maintainability & Code Quality · Low value

Add a unit test for the over-voltage tag validator.

No unit test calls EnsureKnownEnumValue(Globals::ElectricalDistributionOverVoltageTag). A change that drops the kLineToLine case would pass the current tests. Add assertions that kLineToLine stays known and that an unlisted value maps to kUnknownEnumValue.

As per coding guidelines: "Unit tests are required for all changes unless unit testing is impossible."

Source: Coding guidelines

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec7e0d9e-32ab-4025-9b13-f4e27be69dde
Commits

Reviewing files that changed from the base of the PR and between cc16477 and 1b5e950.

Files selected for processing: 143
  • examples/air-purifier-app/air-purifier-common/air-purifier-app.matter
  • examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter
  • examples/air-quality-sensor-app/air-quality-sensor-common/icd-lit-air-quality-sensor-app.matter
  • examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
  • examples/all-clusters-app/realtek/data_model/all-clusters-app.matter
  • examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
  • examples/bridge-app/bridge-common/bridge-app.matter
  • examples/camera-app/camera-common/camera-app.matter
  • examples/chef/devices/icd_rootnode_contactsensor_ed3b19ec55.matter
  • examples/chef/devices/multi_column_switch.matter
  • examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
  • examples/chef/devices/rootnode_airpurifier_73a6fe2651.matter
  • examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter
  • examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter
  • examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter
  • examples/chef/devices/rootnode_castingvideoplayer_contentapp_34699714e7.matter
  • examples/chef/devices/rootnode_chime_9991598b3f.matter
  • examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
  • examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter
  • examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
  • examples/chef/devices/rootnode_contactsensor_lightsensor_occupancysensor_temperaturesensor_pressuresensor_flowsensor_humiditysensor_airqualitysensor_powersource_367e7cea91.matter
  • examples/chef/devices/rootnode_cooktop_cooksurface_d3c174cc88.matter
  • examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
  • examples/chef/devices/rootnode_dimmablepluginunit_f8a9a0b9d4.matter
  • examples/chef/devices/rootnode_dishwasher_cc105034fe.matter
  • examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
  • examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
  • examples/chef/devices/rootnode_extractorhood_0359bf807d.matter
  • examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
  • examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
  • examples/chef/devices/rootnode_genericswitch_2dfff6e516.matter
  • examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter
  • examples/chef/devices/rootnode_heatpump_87ivjRAECh.matter
  • examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
  • examples/chef/devices/rootnode_laundrydryer_01796fe396.matter
  • examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter
  • examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
  • examples/chef/devices/rootnode_microwaveoven_37420684d3.matter
  • examples/chef/devices/rootnode_modeselect_6860d3a65a.matter
  • examples/chef/devices/rootnode_mounteddimmableloadcontrol_a9a1a87f2d.matter
  • examples/chef/devices/rootnode_mountedonoffcontrol_ec30c757a6.matter
  • examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
  • examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
  • examples/chef/devices/rootnode_onofflight_samplemei.matter
  • examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
  • examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
  • examples/chef/devices/rootnode_oven_temperaturecontrolledcabinet_cooktop_cooksurface_738dd18832.matter
  • examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
  • examples/chef/devices/rootnode_pump_5f904818cc.matter
  • examples/chef/devices/rootnode_rainsensor_a7aa5d7738.matter
  • examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter
  • examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter
  • examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter
  • examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter
  • examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
  • examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
  • examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
  • examples/chef/devices/rootnode_waterfreezedetector_dd94a13a16.matter
  • examples/chef/devices/rootnode_waterheater_21bd13d651.matter
  • examples/chef/devices/rootnode_waterleakdetector_0b067acfa3.matter
  • examples/chef/devices/rootnode_watervalve_6bb39f1f67.matter
  • examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
  • examples/closure-app/closure-common/closure-app.matter
  • examples/closure-app/silabs/data_model/closure-thread-app.matter
  • examples/closure-app/silabs/data_model/closure-wifi-app.matter
  • examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app-wifi.matter
  • examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app.matter
  • examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
  • examples/contact-sensor-app/nxp/zap-lit/contact-sensor-app.matter
  • examples/contact-sensor-app/nxp/zap-sit/contact-sensor-app.matter
  • examples/dishwasher-app/dishwasher-common/dishwasher-app.matter
  • examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter
  • examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter
  • examples/electrical-protection-app/electrical-protection-common/electrical-protection-app.matter
  • examples/energy-gateway-app/energy-gateway-common/energy-gateway-app.matter
  • examples/evse-app/evse-common/evse-app.matter
  • examples/fabric-bridge-app/fabric-bridge-common/fabric-bridge-app.matter
  • examples/jf-admin-app/jfa-common/jfa-app.matter
  • examples/laundry-washer-app/nxp/zap/laundry-washer-app.matter
  • examples/light-switch-app/light-switch-common/icd-lit-light-switch-app.matter
  • examples/light-switch-app/light-switch-common/light-switch-app.matter
  • examples/light-switch-app/qpg/zap/switch.matter
  • examples/light-switch-app/realtek/data_model/icd-lit-light-switch-app.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_11.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_2.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_8.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app.matter
  • examples/lighting-app-data-mode-no-unique-id/lighting-common/lighting-app.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
  • examples/lighting-app/esp32/data_model/lighting-app.matter
  • examples/lighting-app/lighting-common/lighting-app.matter
  • examples/lighting-app/nxp/zap/lighting-on-off.matter
  • examples/lighting-app/qpg/zap/light.matter
  • examples/lighting-app/realtek/data_model/lighting-app-extended-color.matter
  • examples/lighting-app/realtek/data_model/lighting-app.matter
  • examples/lighting-app/silabs/data_model/lighting-thread-app.matter
  • examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
  • examples/lighting-app/stm32/data_model/lighting-app.matter
  • examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
  • examples/lock-app/lock-common/lock-app.matter
  • examples/lock-app/nxp/zap/lock-app.matter
  • examples/lock-app/qpg/zap/lock.matter
  • examples/lock-app/realtek/data_model/lock-app.matter
  • examples/lock-app/silabs/data_model/lock-app.matter
  • examples/log-source-app/log-source-common/log-source-app.matter
  • examples/microwave-oven-app/microwave-oven-common/microwave-oven-app.matter
  • examples/network-manager-app/network-manager-common/network-manager-app.matter
  • examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
  • examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
  • examples/placeholder/linux/apps/app1/config.matter
  • examples/placeholder/linux/apps/app2/config.matter
  • examples/pump-app/pump-common/pump-app.matter
  • examples/pump-app/silabs/data_model/pump-thread-app.matter
  • examples/pump-app/silabs/data_model/pump-wifi-app.matter
  • examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
  • examples/refrigerator-app/refrigerator-common/refrigerator-app.matter
  • examples/refrigerator-app/silabs/data_model/refrigerator-thread-app.matter
  • examples/refrigerator-app/silabs/data_model/refrigerator-wifi-app.matter
  • examples/rvc-app/rvc-common/rvc-app.matter
  • examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter
  • examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
  • examples/terms-and-conditions-app/terms-and-conditions-common/terms-and-conditions-app.matter
  • examples/thermostat/nxp/zap/thermostat_matter_br.matter
  • examples/thermostat/nxp/zap/thermostat_matter_eth.matter
  • examples/thermostat/nxp/zap/thermostat_matter_thread.matter
  • examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
  • examples/thermostat/qpg/zap/thermostaticRadiatorValve.matter
  • examples/thermostat/thermostat-common/thermostat.matter
  • examples/thread-br-app/thread-br-common/thread-br-app.matter
  • examples/tv-app/tv-common/tv-app.matter
  • examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
  • examples/virtual-device-app/virtual-device-common/virtual-device-app.matter
  • examples/water-heater-app/water-heater-common/water-heater-app.matter
  • examples/water-leak-detector-app/water-leak-detector-common/water-leak-detector-app.matter
  • examples/window-app/common/window-app.matter
  • src/app/zap-templates/zcl/data-model/chip/semantic-tag-namespace-enums.xml
  • src/controller/data_model/controller-clusters.matter
  • src/controller/python/matter/clusters/Objects.py
  • src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
  • zzz_generated/app-common/clusters/shared/Enums.h
  • zzz_generated/app-common/clusters/shared/EnumsCheck.h

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

…-tag-namespaces

# Conflicts:
#	examples/air-purifier-app/air-purifier-common/air-purifier-app.matter
#	examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter
#	examples/air-quality-sensor-app/air-quality-sensor-common/icd-lit-air-quality-sensor-app.matter
#	examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
#	examples/all-clusters-app/realtek/data_model/all-clusters-app.matter
#	examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
#	examples/bridge-app/bridge-common/bridge-app.matter
#	examples/camera-app/camera-common/camera-app.matter
#	examples/chef/devices/icd_rootnode_contactsensor_ed3b19ec55.matter
#	examples/chef/devices/multi_column_switch.matter
#	examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
#	examples/chef/devices/rootnode_airpurifier_73a6fe2651.matter
#	examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter
#	examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter
#	examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter
#	examples/chef/devices/rootnode_castingvideoplayer_contentapp_34699714e7.matter
#	examples/chef/devices/rootnode_chime_9991598b3f.matter
#	examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
#	examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter
#	examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
#	examples/chef/devices/rootnode_contactsensor_lightsensor_occupancysensor_temperaturesensor_pressuresensor_flowsensor_humiditysensor_airqualitysensor_powersource_367e7cea91.matter
#	examples/chef/devices/rootnode_cooktop_cooksurface_d3c174cc88.matter
#	examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
#	examples/chef/devices/rootnode_dimmablepluginunit_f8a9a0b9d4.matter
#	examples/chef/devices/rootnode_dishwasher_cc105034fe.matter
#	examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
#	examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
#	examples/chef/devices/rootnode_extractorhood_0359bf807d.matter
#	examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
#	examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
#	examples/chef/devices/rootnode_genericswitch_2dfff6e516.matter
#	examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter
#	examples/chef/devices/rootnode_heatpump_87ivjRAECh.matter
#	examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
#	examples/chef/devices/rootnode_laundrydryer_01796fe396.matter
#	examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter
#	examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
#	examples/chef/devices/rootnode_microwaveoven_37420684d3.matter
#	examples/chef/devices/rootnode_modeselect_6860d3a65a.matter
#	examples/chef/devices/rootnode_mounteddimmableloadcontrol_a9a1a87f2d.matter
#	examples/chef/devices/rootnode_mountedonoffcontrol_ec30c757a6.matter
#	examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
#	examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
#	examples/chef/devices/rootnode_onofflight_samplemei.matter
#	examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
#	examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
#	examples/chef/devices/rootnode_oven_temperaturecontrolledcabinet_cooktop_cooksurface_738dd18832.matter
#	examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
#	examples/chef/devices/rootnode_pump_5f904818cc.matter
#	examples/chef/devices/rootnode_rainsensor_a7aa5d7738.matter
#	examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter
#	examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter
#	examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter
#	examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter
#	examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
#	examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
#	examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
#	examples/chef/devices/rootnode_waterfreezedetector_dd94a13a16.matter
#	examples/chef/devices/rootnode_waterheater_21bd13d651.matter
#	examples/chef/devices/rootnode_waterleakdetector_0b067acfa3.matter
#	examples/chef/devices/rootnode_watervalve_6bb39f1f67.matter
#	examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
#	examples/closure-app/closure-common/closure-app.matter
#	examples/closure-app/silabs/data_model/closure-thread-app.matter
#	examples/closure-app/silabs/data_model/closure-wifi-app.matter
#	examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app-wifi.matter
#	examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app.matter
#	examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
#	examples/contact-sensor-app/nxp/zap-lit/contact-sensor-app.matter
#	examples/contact-sensor-app/nxp/zap-sit/contact-sensor-app.matter
#	examples/dishwasher-app/dishwasher-common/dishwasher-app.matter
#	examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter
#	examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter
#	examples/electrical-protection-app/electrical-protection-common/electrical-protection-app.matter
#	examples/energy-gateway-app/energy-gateway-common/energy-gateway-app.matter
#	examples/evse-app/evse-common/evse-app.matter
#	examples/fabric-bridge-app/fabric-bridge-common/fabric-bridge-app.matter
#	examples/jf-admin-app/jfa-common/jfa-app.matter
#	examples/laundry-washer-app/nxp/zap/laundry-washer-app.matter
#	examples/light-switch-app/light-switch-common/icd-lit-light-switch-app.matter
#	examples/light-switch-app/light-switch-common/light-switch-app.matter
#	examples/light-switch-app/qpg/zap/switch.matter
#	examples/light-switch-app/realtek/data_model/icd-lit-light-switch-app.matter
#	examples/light-switch-app/realtek/data_model/light-switch-app-1_to_11.matter
#	examples/light-switch-app/realtek/data_model/light-switch-app-1_to_2.matter
#	examples/light-switch-app/realtek/data_model/light-switch-app-1_to_8.matter
#	examples/light-switch-app/realtek/data_model/light-switch-app.matter
#	examples/lighting-app-data-mode-no-unique-id/lighting-common/lighting-app.matter
#	examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter
#	examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
#	examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
#	examples/lighting-app/esp32/data_model/lighting-app.matter
#	examples/lighting-app/lighting-common/lighting-app.matter
#	examples/lighting-app/nxp/zap/lighting-on-off.matter
#	examples/lighting-app/qpg/zap/light.matter
#	examples/lighting-app/realtek/data_model/lighting-app-extended-color.matter
#	examples/lighting-app/realtek/data_model/lighting-app.matter
#	examples/lighting-app/silabs/data_model/lighting-thread-app.matter
#	examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
#	examples/lighting-app/stm32/data_model/lighting-app.matter
#	examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
#	examples/lock-app/lock-common/lock-app.matter
#	examples/lock-app/nxp/zap/lock-app.matter
#	examples/lock-app/qpg/zap/lock.matter
#	examples/lock-app/realtek/data_model/lock-app.matter
#	examples/lock-app/silabs/data_model/lock-app.matter
#	examples/log-source-app/log-source-common/log-source-app.matter
#	examples/microwave-oven-app/microwave-oven-common/microwave-oven-app.matter
#	examples/network-manager-app/network-manager-common/network-manager-app.matter
#	examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
#	examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
#	examples/placeholder/linux/apps/app1/config.matter
#	examples/placeholder/linux/apps/app2/config.matter
#	examples/pump-app/pump-common/pump-app.matter
#	examples/pump-app/silabs/data_model/pump-thread-app.matter
#	examples/pump-app/silabs/data_model/pump-wifi-app.matter
#	examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
#	examples/refrigerator-app/refrigerator-common/refrigerator-app.matter
#	examples/refrigerator-app/silabs/data_model/refrigerator-thread-app.matter
#	examples/refrigerator-app/silabs/data_model/refrigerator-wifi-app.matter
#	examples/rvc-app/rvc-common/rvc-app.matter
#	examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter
#	examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
#	examples/terms-and-conditions-app/terms-and-conditions-common/terms-and-conditions-app.matter
#	examples/thermostat/nxp/zap/thermostat_matter_br.matter
#	examples/thermostat/nxp/zap/thermostat_matter_eth.matter
#	examples/thermostat/nxp/zap/thermostat_matter_thread.matter
#	examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
#	examples/thermostat/qpg/zap/thermostaticRadiatorValve.matter
#	examples/thermostat/thermostat-common/thermostat.matter
#	examples/thread-br-app/thread-br-common/thread-br-app.matter
#	examples/tv-app/tv-common/tv-app.matter
#	examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
#	examples/virtual-device-app/virtual-device-common/virtual-device-app.matter
#	examples/water-heater-app/water-heater-common/water-heater-app.matter
#	examples/water-leak-detector-app/water-leak-detector-common/water-leak-detector-app.matter
#	examples/window-app/common/window-app.matter
#	src/app/zap-templates/zcl/data-model/chip/semantic-tag-namespace-enums.xml
#	src/controller/data_model/controller-clusters.matter
#	src/controller/python/matter/clusters/Objects.py
#	src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
#	zzz_generated/app-common/clusters/shared/Enums.h
#	zzz_generated/app-common/clusters/shared/EnumsCheck.h
…keeping the five existing tag enum names as aliases
@mergify mergify Bot removed the conflict label Nov 10, 2026
@raul-marquez-csa raul-marquez-csa changed the title Semantic tag namespaces - Add every spec namespace and a namespace ID enum, generated by Alchemy Semantic tag namespaces - Generate every spec namespace and SemanticTagNamespaceID with Alchemy Nov 10, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Update the semantic-tag generation instructions. · Interface.h:38-41

examples/all-devices-app/all-devices-common/device/api/Interface.h:38-41
Minor · Maintainability & Code Quality · Quick win

Update the semantic-tag generation instructions.

Line 38 tells developers to edit semantic-tag-namespace-enums.xml, and Line 41 says the file is hand-maintained. This change makes Alchemy the source of that file. If a developer follows these instructions, the metadata check rejects the hand edit. Replace the instructions with the Alchemy generation workflow and remove the stale TODO. The PR objectives state that the file is no longer hand-maintained.

Additional comments: 1

src/controller/python/matter/clusters/Objects.py-316-316: 1

316-316: Major · Data Integrity & Integration · Heavy lift

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Preserve the legacy Python enum names.

The parent revision exported Globals.Enums.AreaTypeTag, LandmarkTag, LocationTag, and SemanticTagNamespaceId. This revision replaces those names without Python aliases. Existing controller scripts that access a legacy name now raise AttributeError, even though the enum values remain available under new names. Add aliases through the Python generation path so regeneration retains them. (raw.githubusercontent.com)

As per coding guidelines, “Public APIs often have consumers outside this tree, so source compatibility is something to think about when changing or extending them.”

Also applies to: 788-788

Source: Coding guidelines

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c756a56f-b6d7-44c9-ace7-311ff169161c
Commits

Reviewing files that changed from the base of the PR and between 1b5e950 and c7f0bfd.

Files selected for processing: 174

  • examples/air-purifier-app/air-purifier-common/air-purifier-app.matter
  • examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter
  • examples/air-quality-sensor-app/air-quality-sensor-common/icd-lit-air-quality-sensor-app.matter
  • examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
  • examples/all-clusters-app/realtek/data_model/all-clusters-app.matter
  • examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
  • examples/all-devices-app/all-devices-common/device-factory/DeviceFactory.h
  • examples/all-devices-app/all-devices-common/device/api/Interface.h
  • examples/all-devices-app/all-devices-common/device/types/battery-storage/BatteryStorage.cpp
  • examples/all-devices-app/all-devices-common/device/types/battery-storage/tests/TestBatteryStorage.cpp
  • examples/all-devices-app/all-devices-common/device/types/closure-panel/ClosurePanel.cpp
  • examples/all-devices-app/all-devices-common/device/types/closure/Closure.cpp
  • examples/all-devices-app/all-devices-common/device/types/closure/impl/ClosureVariants.cpp
  • examples/all-devices-app/all-devices-common/device/types/cooktop/impl/LoggingCooktop.cpp
  • examples/all-devices-app/all-devices-common/device/types/irrigation-system/impl/ValveConfigurations.cpp
  • examples/all-devices-app/all-devices-common/device/types/oven/impl/LoggingOven.cpp
  • examples/all-devices-app/all-devices-common/device/types/refrigerator/impl/LoggingRefrigerator.cpp
  • examples/all-devices-app/all-devices-common/device/types/robotic-vacuum-cleaner/impl/RvcSimulationLogic.h
  • examples/all-devices-app/all-devices-common/device/types/room-air-conditioner/impl/LoggingRoomAirConditionerWithSensors.cpp
  • examples/all-devices-app/all-devices-common/device/types/window-covering/WindowCoveringVariants.cpp
  • examples/bridge-app/bridge-common/bridge-app.matter
  • examples/camera-app/camera-common/camera-app.matter
  • examples/chef/devices/icd_rootnode_contactsensor_ed3b19ec55.matter
  • examples/chef/devices/multi_column_switch.matter
  • examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
  • examples/chef/devices/rootnode_airpurifier_73a6fe2651.matter
  • examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter
  • examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter
  • examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter
  • examples/chef/devices/rootnode_castingvideoplayer_contentapp_34699714e7.matter
  • examples/chef/devices/rootnode_chime_9991598b3f.matter
  • examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
  • examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter
  • examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
  • examples/chef/devices/rootnode_contactsensor_lightsensor_occupancysensor_temperaturesensor_pressuresensor_flowsensor_humiditysensor_airqualitysensor_powersource_367e7cea91.matter
  • examples/chef/devices/rootnode_cooktop_cooksurface_d3c174cc88.matter
  • examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
  • examples/chef/devices/rootnode_dimmablepluginunit_f8a9a0b9d4.matter
  • examples/chef/devices/rootnode_dishwasher_cc105034fe.matter
  • examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
  • examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
  • examples/chef/devices/rootnode_extractorhood_0359bf807d.matter
  • examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
  • examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
  • examples/chef/devices/rootnode_genericswitch_2dfff6e516.matter
  • examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter
  • examples/chef/devices/rootnode_heatpump_87ivjRAECh.matter
  • examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
  • examples/chef/devices/rootnode_laundrydryer_01796fe396.matter
  • examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter
  • examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
  • examples/chef/devices/rootnode_microwaveoven_37420684d3.matter
  • examples/chef/devices/rootnode_modeselect_6860d3a65a.matter
  • examples/chef/devices/rootnode_mounteddimmableloadcontrol_a9a1a87f2d.matter
  • examples/chef/devices/rootnode_mountedonoffcontrol_ec30c757a6.matter
  • examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
  • examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
  • examples/chef/devices/rootnode_onofflight_samplemei.matter
  • examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
  • examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
  • examples/chef/devices/rootnode_oven_temperaturecontrolledcabinet_cooktop_cooksurface_738dd18832.matter
  • examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
  • examples/chef/devices/rootnode_pump_5f904818cc.matter
  • examples/chef/devices/rootnode_rainsensor_a7aa5d7738.matter
  • examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter
  • examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter
  • examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter
  • examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter
  • examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
  • examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
  • examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
  • examples/chef/devices/rootnode_waterfreezedetector_dd94a13a16.matter
  • examples/chef/devices/rootnode_waterheater_21bd13d651.matter
  • examples/chef/devices/rootnode_waterleakdetector_0b067acfa3.matter
  • examples/chef/devices/rootnode_watervalve_6bb39f1f67.matter
  • examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
  • examples/closure-app/closure-common/closure-app.matter
  • examples/closure-app/silabs/data_model/closure-thread-app.matter
  • examples/closure-app/silabs/data_model/closure-wifi-app.matter
  • examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app-wifi.matter
  • examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app.matter
  • examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
  • examples/contact-sensor-app/nxp/zap-lit/contact-sensor-app.matter
  • examples/contact-sensor-app/nxp/zap-sit/contact-sensor-app.matter
  • examples/dishwasher-app/dishwasher-common/dishwasher-app.matter
  • examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter
  • examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter
  • examples/electrical-protection-app/electrical-protection-common/electrical-protection-app.matter
  • examples/energy-gateway-app/energy-gateway-common/energy-gateway-app.matter
  • examples/evse-app/evse-common/evse-app.matter
  • examples/fabric-bridge-app/fabric-bridge-common/fabric-bridge-app.matter
  • examples/jf-admin-app/jfa-common/jfa-app.matter
  • examples/laundry-washer-app/nxp/zap/laundry-washer-app.matter
  • examples/light-switch-app/light-switch-common/icd-lit-light-switch-app.matter
  • examples/light-switch-app/light-switch-common/light-switch-app.matter
  • examples/light-switch-app/qpg/zap/switch.matter
  • examples/light-switch-app/realtek/data_model/icd-lit-light-switch-app.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_11.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_2.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app-1_to_8.matter
  • examples/light-switch-app/realtek/data_model/light-switch-app.matter
  • examples/lighting-app-data-mode-no-unique-id/lighting-common/lighting-app.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
  • examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
  • examples/lighting-app/esp32/data_model/lighting-app.matter
  • examples/lighting-app/lighting-common/lighting-app.matter
  • examples/lighting-app/nxp/zap/lighting-on-off.matter
  • examples/lighting-app/qpg/zap/light.matter
  • examples/lighting-app/realtek/data_model/lighting-app-extended-color.matter
  • examples/lighting-app/realtek/data_model/lighting-app.matter
  • examples/lighting-app/silabs/data_model/lighting-thread-app.matter
  • examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
  • examples/lighting-app/stm32/data_model/lighting-app.matter
  • examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
  • examples/lock-app/lock-common/lock-app.matter
  • examples/lock-app/nxp/zap/lock-app.matter
  • examples/lock-app/qpg/zap/lock.matter
  • examples/lock-app/realtek/data_model/lock-app.matter
  • examples/lock-app/silabs/data_model/lock-app.matter
  • examples/log-source-app/log-source-common/log-source-app.matter
  • examples/microwave-oven-app/microwave-oven-common/microwave-oven-app.matter
  • examples/network-manager-app/network-manager-common/network-manager-app.matter
  • examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
  • examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
  • examples/placeholder/linux/apps/app1/config.matter
  • examples/placeholder/linux/apps/app2/config.matter
  • examples/pump-app/pump-common/pump-app.matter
  • examples/pump-app/silabs/data_model/pump-thread-app.matter
  • examples/pump-app/silabs/data_model/pump-wifi-app.matter
  • examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
  • examples/refrigerator-app/refrigerator-common/refrigerator-app.matter
  • examples/refrigerator-app/silabs/data_model/refrigerator-thread-app.matter
  • examples/refrigerator-app/silabs/data_model/refrigerator-wifi-app.matter
  • examples/rvc-app/linux/RvcAppCommandDelegate.cpp
  • examples/rvc-app/rvc-common/rvc-app.matter
  • examples/rvc-app/rvc-common/src/rvc-service-area-delegate.cpp
  • examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter
  • examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
  • examples/terms-and-conditions-app/terms-and-conditions-common/terms-and-conditions-app.matter
  • examples/thermostat/nxp/zap/thermostat_matter_br.matter
  • examples/thermostat/nxp/zap/thermostat_matter_eth.matter
  • examples/thermostat/nxp/zap/thermostat_matter_thread.matter
  • examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
  • examples/thermostat/qpg/zap/thermostaticRadiatorValve.matter
  • examples/thermostat/thermostat-common/thermostat.matter
  • examples/thread-br-app/thread-br-common/thread-br-app.matter
  • examples/tv-app/tv-common/tv-app.matter
  • examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
  • examples/virtual-device-app/virtual-device-common/virtual-device-app.matter
  • examples/water-heater-app/water-heater-common/water-heater-app.matter
  • examples/water-leak-detector-app/water-leak-detector-common/water-leak-detector-app.matter
  • src/app/clusters/bridged-device-basic-information-server/BridgedDeviceBasicInformationCluster.cpp
  • src/app/clusters/bridged-device-basic-information-server/BridgedDeviceBasicInformationCluster.h
  • src/app/clusters/bridged-device-basic-information-server/tests/TestBridgedDeviceBasicInformationCluster.cpp
  • src/app/clusters/ecosystem-information-server/ecosystem-information-server.cpp
  • src/app/clusters/ecosystem-information-server/ecosystem-information-server.h
  • src/app/clusters/service-area-server/service-area-cluster-objects.h
  • src/app/clusters/service-area-server/tests/TestServiceAreaCluster.cpp
  • src/app/common/BUILD.gn
  • src/app/common/CompatGlobalEnumNames.h
  • src/app/zap-templates/templates/app/clusters-shared-Enums.h.zapt
  • src/app/zap-templates/zcl/data-model/chip/global-structs.xml
  • src/app/zap-templates/zcl/data-model/chip/semantic-tag-namespace-enums.xml
  • src/app/zap-templates/zcl/data-model/chip/service-area-cluster.xml
  • src/controller/data_model/controller-clusters.matter
  • src/controller/python/matter/clusters/Objects.py
  • src/darwin/Framework/CHIP/templates/availability.yaml
  • src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
  • zzz_generated/app-common/clusters/ServiceArea/Structs.h
  • zzz_generated/app-common/clusters/shared/BUILD.gn
  • zzz_generated/app-common/clusters/shared/Enums.h
  • zzz_generated/app-common/clusters/shared/EnumsCheck.h
  • zzz_generated/app-common/clusters/shared/Structs.h

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@mergify mergify Bot added the conflict label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app conflict controller darwin examples chef Changes in examples/chef examples review - pending skip-protocol-compatibility Marker that protocol backwards compatibility checks are to be skipped

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants