Skip to content

Add Descriptor references and WoT/OPC UA CloudEvents mappings - #1406

Open
marcschier wants to merge 61 commits into
cloudevents:mainfrom
marcschier:wot-context-extension
Open

marcschier wants to merge 61 commits into
cloudevents:mainfrom
marcschier:wot-context-extension

Conversation

@marcschier

@marcschier marcschier commented Oct 29, 2026 •

Copy link
Copy Markdown

Consumers often need information shared across an event stream, such as a payload schema, a Thing Description, or OPC UA writer metadata. A single describedby URL lets Producers publish that information separately instead of repeating it in each event.

Proposed Changes

  • Descriptor Reference: Adds describedby, an HTTP(S) URL that returns a JSON object. Extensions define their own top-level properties and value shapes. A static HTTP server can serve a Descriptor; xRegistry hosting is specified separately in xregistry/spec#796.
  • Web of Things: Requires describedby for the WoT mapping. Its Descriptor selects a Thing Description and, optionally, an affordance. The mapping defines how to name and version event types while preserving the Core meanings of source and subject.
  • OPC UA: Defines the opcua property for shared publisher, writer, and dataset metadata, and the mapping for events that also use WoT. Standalone OPC UA does not require a Descriptor. In both mappings, an event's dataschema takes precedence over the Descriptor's schema property.
  • OpenUSD: Defines the usdasset property so one event can reference one or more assets and associate the event or individual payload fields with prims.
  • Adds profile schemas and examples and updates the extension index.

Release Note

Add the Descriptor Reference extension and define how WoT, OPC UA, and OpenUSD events use shared descriptions.

Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/opcua.md Resolved
Comment thread cloudevents/extensions/opcua.md Resolved
Comment thread cloudevents/extensions/opcua.md Resolved
Comment thread cloudevents/extensions/opcua.md Resolved

@marcschier marcschier left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Feedback from review: Try to first make due with the core header vocabulary, and source is a perfect place for wotid and version is part of it.

Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/wot.md Resolved
Comment thread cloudevents/extensions/opcua.md Resolved
Comment thread tools/test_verify.py Resolved
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
@marcschier
marcschier force-pushed the wot-context-extension branch from 328daf2 to b9e3c1f Compare November 27, 2026 14:22
Comment thread cloudevents/extensions/descriptor.md Resolved
Comment thread cloudevents/extensions/descriptor.md Outdated
Comment on lines +15 to +16
"inspection": {
"class": "endpoint",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Both "inspection" and "endpoint" seem pretty generic words - should they have namespaces?

Also, if I remember correctly, "class" is what we define in this spec, and "inspection" is (sort of) instance specific... I think it might be better to invert this:

{
  "entries": {
    "io.xregistry.endpoint": {
      "com.bigco.inspection": { .... }
    }
  }
}

So that a consumer can quickly find the entries of interest based on "class" - then each variant of that class is grouped and all in one spot. This is easier than having to scan all entries for a certain class.

Unless you want to be able to group all info about "inspection" under one object???

I'm not sure that's better for reuse though. Let's say there are 5 different "classes" (or related bits of metadata) and each might have a certain value that's duplicated for each "class". Would it be good to have a single entry for that class that isn't linked to one app-specific set of metadata? Does this even make sense?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

inspection is local to this Descriptor, so another Descriptor can use the same name without a collision. endpoint is a well-known class defined here. A consumer that knows the entry name can look it up directly; one looking for all endpoints can scan or index by class. Grouping by class would help that second lookup and still allow several entries of a class. It would also change the JSON shape for every profile, so I'd compare the two lookups on the call before switching.

Comment thread cloudevents/extensions/descriptor.md Outdated
}
```

A static HTTP server or an [xRegistry](https://xregistry.io) server can serve

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's remove this from here and save it for the definition of the url attribute below because this is basically going to be a normative statement about it's value and what it points to. I'd like it to say something like: it can be any absolute URI - abstract or concrete. And if concrete, then we have no requirement on how it's hosted. Needs wordsmithing.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The hosting point and the identifier question are separate. describedby currently points to a document the client can retrieve with HTTP GET; an entry's url links to a document that can be included in a bundle. If we allow abstract URIs in either field, we need to decide what clients do when the value cannot be dereferenced. The identifiers entry already provides a place for aliases that need no retrieval.

Comment thread cloudevents/extensions/descriptor.md Outdated
### describedby

- Type: `URI`
- Description: The URL of the Descriptor for this event.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

s/Descriptor/Descriptor document/

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The describedby description now says “The URL of the Descriptor document for this event.” See d3a18f2.

Comment thread cloudevents/extensions/descriptor.md Outdated
- Constraints:
- REQUIRED.
- MUST be a non-empty absolute HTTP(S) URL without a fragment.
- The URL MUST support retrieval of the Descriptor by HTTP `GET`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Descriptor document

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The HTTP GET requirement now refers to the “Descriptor document” in d3a18f2.

Comment thread cloudevents/extensions/descriptor.md Outdated
- REQUIRED.
- MUST be a non-empty absolute HTTP(S) URL without a fragment.
- The URL MUST support retrieval of the Descriptor by HTTP `GET`.
A successful response serving the Descriptor metadata MUST use

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

s/metadata/document/

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Changed “Descriptor metadata” to “Descriptor document” in the response media-type rule in d3a18f2.

Comment thread cloudevents/extensions/descriptor.md Outdated
}
```

Extensions MAY add members to the document and its entries.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How about:

Additional extension attributes MAY be specified within each entry and at the top-level JSON
object (see the `...` above). Consumers are expected to silently ignore unknown
extension attributes, unless environmental constraints dictate strict adherence to
well-known metadata.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

d3a18f2 allows extension members at the top level and in entries. Consumers should ignore unknown members unless the applicable profile or deployment requires rejection.

Comment thread cloudevents/extensions/descriptor.md Resolved
Comment thread cloudevents/extensions/descriptor.md Resolved
Comment thread cloudevents/extensions/descriptor.md Resolved
Comment thread cloudevents/extensions/descriptor.md Resolved
Comment thread cloudevents/extensions/descriptor.md Resolved
Signed-off-by: Marc <marcschier@hotmail.com>
Replace shared entries and bundling with extension-owned properties. Update profile schemas and examples and incorporate inline feedback.

Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
Signed-off-by: Marc <marcschier@hotmail.com>
@marcschier

Copy link
Copy Markdown
Author

@duglin - please see if this now matches what we discussed

Signed-off-by: Marc <marcschier@hotmail.com>
reserves `age` and defines it as an integer can use `"age": 18`.

Consumers SHOULD ignore properties they do not recognize, including
extension members within a profile's objects, unless the applicable

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

let's drop the word "profile" (and "member") since you never really define it, and I think it would easier to not define a new term and instead just refer to it as you already have been... e.g. "property".
So: Consumers SHOULD ignore properties they do not recognize, including extension nested properties.

I think we can just stop there because the SHOULD implies they can reject if it they need to and we don't define how they know that and, more importantly, we don't say what to do if they do reject it. All of that is out of scope for us.

profile or deployment requires rejection. Each profile defines which
inputs it needs and how to handle unavailable or invalid inputs.

For a published Descriptor version, the Publisher MUST keep its properties

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure we can say MUST in these two spots - that could imply "forever". Let's either use SHOULD or talk about how it's "STRONGLY RECOMMENDED".

publish a new version when those inputs change.

## Descriptor properties

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we need an intro sentence for this section. Something like:
This specification defines the following well-known Descriptor properties. In the future, additional commonly used properties can be added by submitting a change request to this specification.


`schema` is an object. Its REQUIRED `url` MUST be an absolute,
fragment-free HTTP(S) URL of a schema document for the event's `data`.
The OPTIONAL `format` identifies the linked schema's format. When present,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What "format" attribute? is this old?

I think we may need to explain why this is here since CE itself defines a schema URL attribute. If we keep it, and I'm not sure we should, then we should make it clear that this would probably only be used when schemaurl isn't in the CE AND there are other properties in the Descriptor doc because 'schema' being the only one is kind of silly when they should just use the CE attribute. But I'm really not sure we should encourage people to NOT use the CE one..... except maybe in cases where most consumers don't need it???

names. An extension that reserves a name specifies the property's value
type and schema, including any nested structure, and defines any selection
rules. The schema can allow any JSON type. For example, an extension that
reserves `age` and defines it as an integer can use `"age": 18`.

@duglin duglin Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's add a sample Descriptor doc near this first paragraph. Having a concrete doc to look at will help people grok it. In fact, I think it would be good to show the format and the a sample.
e.g.

Pseudo-json:

{
  "NAME": ANY *
}

Where NAME and a non-empty string and ANY is any valid JSON data type.
And the doc MAY contain zero or more properties.

Example:

{
  "endpoint": "URL",
  "identifiers": [
    { "scheme": "URL", "value: "xxx" }
  ]
}


### Endpoint

`endpoint` is an object. Its REQUIRED `url` MUST be an absolute,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it's just a URL not an object, right?

| `scheme` | An [absolute URI][Absolute URI] identifying the identifier scheme. |
| `value` | The identifier in that scheme, represented as a string. |

Two identifiers match only if both strings match exactly. Consumers MUST

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

2 strings?

fragment-free HTTP(S) URL of an xRegistry [Endpoint Group][Endpoint Group]'s
metadata.

### Identifiers

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think more info is needed here to explain when this one should be used - it's too generic to just say it's an alias.


Two identifiers match only if both strings match exactly. Consumers MUST
NOT normalize either string, including by changing case or percent-encoding.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Aren't you missing the definition of the other ones?


## Descriptor properties

| Property | Definition |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you may want to include, in the section that fully defines each, a pseudo json showing the format for each - at least in the non-scalar cases, and a concrete example. Keeping it short, of course.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants