Repository navigation
Add CMDP extension types wire format for DQM metrics - #20
Closed
VanitasCodes wants to merge 1 commit into
Closed
VanitasCodes wants to merge 1 commit into
VanitasCodes wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved moderate issues affect wire-format correctness and payload bounds validation.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Adds MsgPack extension wire-format documentation for CMDP DQM matrices and histograms.
Changes:
- Defines Matrix, Histogram1D, and Histogram2D payloads.
- Documents numeric types, endianness, and metric integration.
- Describes compatibility with unknown extensions.
| File | Review summary |
|---|---|
docs/framework_reference/protocols.md |
Adds structured metric extension specifications. Findings: inaccurate extension code-range documentation (moderate, 2 votes); missing matrix bounds and checked arithmetic (moderate, 1 vote); missing histogram bounds and checked arithmetic (moderate, 1 vote); canonical RFC documentation should be updated or linked (nit, 2 votes). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| structured 2D data such as matrices and histograms. | ||
|
|
||
| These types use the MsgPack Extension format, which stores a tuple of an integer type code and a byte array payload. | ||
| MsgPack reserves type codes `[0, 127]` for application-defined use. |
Comment on lines
+239
to
+243
| ### CMDP Extension Types for Structured Metrics | ||
|
|
||
| The standard CMDP metric payload carries scalar values (integers, floats, strings, booleans, timestamps) encoded as native | ||
| MsgPack types. For data quality monitoring, CMDP is extended with application-specific MsgPack Extension types that carry | ||
| structured 2D data such as matrices and histograms. |
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.


This adds a wire format specification to the CMDP protocol documentation for structured data quality monitoring (DQM) metrics. The specification defines three MsgPack extension types that allow CMDP to carry dense 2D matrices and histograms alongside the existing scalar metric values.
The extension types are:
All numeric fields within ext payloads use little-endian byte order for zero-copy compatibility with x86 and NumPy. The existing CMDP metric payload format is unchanged. Deserializers that do not understand the new extension types encounter an unknown MsgPack ext object in the value position and can skip it gracefully.
This is the specification groundwork for the C++ and Python implementations that will follow in subsequent commits.