Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
e5daf06
feat(extensions): add Web of Things context extension
marcschier Oct 29, 2026
1418500
Align WoT extension identity with xRegistry
marcschier Oct 29, 2026
0f0c219
fix(wot): address identity, digest and event scope feedback
marcschier Oct 29, 2026
83539d5
docs(wot): clarify payload member and affordance naming
marcschier Oct 29, 2026
e6856c2
ci: skip flaky RFC Editor link checks
marcschier Oct 29, 2026
2cc6898
docs(opcua): clarify WoT writer and sequence mappings
marcschier Oct 29, 2026
a06d523
docs(opcua): add combined WoT telemetry example
marcschier Oct 29, 2026
fb77f3a
docs(wot): align CloudEvents Thing source mapping
marcschier Oct 31, 2026
6842f78
docs(opcua): preserve sequence string ordering
marcschier Oct 31, 2026
b3784a2
docs(wot): generalize source URI mapping
marcschier Oct 31, 2026
8552ac4
docs: remove dead UNCTAD spreadsheet link
marcschier Oct 31, 2026
67f6198
docs(wot): add MQTT source example
marcschier Oct 31, 2026
d9c6527
Revert unrelated classification and tool changes
marcschier Oct 31, 2026
376091f
docs: update UNCTAD legislation reference
marcschier Oct 31, 2026
47ad438
docs(wot): version event contracts in types
marcschier Oct 31, 2026
36411e0
docs: align WoT and OPC UA with xRegistry Event Context
marcschier Nov 12, 2026
6f3f097
docs: require WoT event context
marcschier Nov 12, 2026
88e6152
docs(opcua): make mapping choices normative
marcschier Nov 12, 2026
4ad755a
docs(opcua): recommend WoT message type mapping
marcschier Nov 12, 2026
d7e4c23
docs(opcua): keep message type in each event
marcschier Nov 12, 2026
a51945b
docs(opcua): require source metadata when absent elsewhere
marcschier Nov 12, 2026
d997746
docs(opcua): require WoT message type mapping
marcschier Nov 12, 2026
b56c272
docs: address local review feedback on WoT and OPC UA
marcschier Nov 12, 2026
a1a9883
docs(opcua): address remaining review feedback
marcschier Nov 12, 2026
3fb6540
docs(opcua): read message type from retained envelope when present
marcschier Nov 12, 2026
0f6537f
Define Descriptor Reference and direct TD subject mapping
marcschier Nov 14, 2026
0f58777
Align Descriptor schema selection and native metadata ranges
marcschier Nov 14, 2026
2b122bb
Pin relocated WoT Descriptor profile reference
marcschier Nov 14, 2026
1c4caca
Add subject Descriptor indirection and OPC UA Descriptor profile
marcschier Nov 15, 2026
75c2fa8
Address Descriptor extension review feedback
marcschier Nov 15, 2026
dde5187
Use type-keyed Descriptor buckets in CloudEvents profiles
marcschier Nov 19, 2026
ae46cce
Group Descriptor selectors under their profile data
marcschier Nov 19, 2026
32e9d72
Allow Descriptor-driven WoT subject selection
marcschier Nov 19, 2026
db8dd33
Use Descriptor throughout the reference extension
marcschier Nov 19, 2026
7c07c4c
Simplify the Descriptor Reference extension
marcschier Nov 19, 2026
8850c32
Clarify Descriptor retrieval and event profile rules
marcschier Nov 19, 2026
50f93bf
Define portable Descriptor documents and profiles
marcschier Nov 20, 2026
ae6fb09
Refine Descriptor bundling and OpenUSD prim selection
marcschier Nov 20, 2026
aa61647
Define OpenUSD field-to-prim mappings
marcschier Nov 20, 2026
f6c5f1d
Add Descriptor entry profile schemas
marcschier Nov 20, 2026
89ffe91
Address Descriptor and OPC UA review findings
marcschier Nov 20, 2026
00433c9
Clarify the Descriptor Reference extension
marcschier Nov 20, 2026
b782353
Tighten Descriptor Reference wording
marcschier Nov 20, 2026
7485bad
Clarify the WoT, OPC UA, and OpenUSD extensions
marcschier Nov 20, 2026
6ac67d4
Require Descriptor lookup for WoT events
marcschier Nov 20, 2026
1270546
Clarify Descriptor retrieval failures
marcschier Nov 21, 2026
b13b194
Clarify Descriptor entries and bundle documentation
marcschier Nov 23, 2026
794d90b
Remove entityid from CloudEvents Descriptors
marcschier Nov 23, 2026
d9b06dc
Simplify the CloudEvents Descriptor format
marcschier Nov 23, 2026
47e7c30
Simplify Descriptor class name constraints
marcschier Nov 23, 2026
278dcbd
Tighten Descriptor, OPC UA, and OpenUSD prose
marcschier Nov 24, 2026
dc3914a
Define described-entity source identity
marcschier Nov 27, 2026
9764801
Align actor and asset source examples
marcschier Nov 27, 2026
22477ec
Specify OpenUSD consistency for paired payload fields
marcschier Nov 27, 2026
b9e3c1f
Define inline Descriptor identifier aliases
marcschier Nov 27, 2026
d3a18f2
Clarify Descriptor document and bundle rules
marcschier Nov 30, 2026
745b9d7
Flatten CloudEvents Descriptor properties
marcschier Dec 2, 2026
5edf640
Address inline feedback on Descriptor profiles
marcschier Dec 2, 2026
77b60e4
Clarify event-stream rules in Descriptor extensions
marcschier Dec 2, 2026
08705c5
Clarify WoT projection and Descriptor wording
marcschier Dec 2, 2026
7536d01
Merge commit '5391e18c64aafafddcf7ba078e40e07d48352fb1' into HEAD
marcschier Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cloudevents/extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ for more information.
- [Data Classification](data-classification.md)
- [Dataref (Claim Check Pattern)](dataref.md)
- [Deprecation](deprecation.md)
- [Descriptor Reference](descriptor.md)
- [Distributed Tracing](distributed-tracing.md)
- [Expiry Time](expirytime.md)
- [OPC UA](opcua.md)
- [OpenUSD](openusd.md)
- [Partitioning](partitioning.md)
- [Recorded Time](recordedtime.md)
- [Sampling](sampledrate.md)
- [Sequence](sequence.md)
- [Severity](severity.md)
- [Web of Things](wot.md) (Core attribute mapping profile)
139 changes: 139 additions & 0 deletions cloudevents/extensions/descriptor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# Descriptor Reference

The `describedby` attribute lets a Producer link to information shared by
several events instead of repeating it in each event. An HTTP `GET` of the
URL returns a JSON object called a Descriptor document.

The [examples](#examples) show Descriptor documents for pump telemetry
and asset identifiers.

## Notational Conventions

As with the main [CloudEvents specification](../spec.md), the key words "MUST",
"MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as
described in [RFC 2119](https://tools.ietf.org/html/rfc2119).

However, the scope of these key words is limited to when this extension is
used. An attribute marked as "REQUIRED" needs to be included when the event
uses this extension.

## Attributes

### describedby

- Type: `URI`
- Description: The URL of the Descriptor document for this event.
- Constraints:
- The Producer MUST include `describedby` when using this extension.
- The Producer MUST supply a non-empty absolute HTTP(S) URL without a
fragment.
- The URL MUST support retrieval of the Descriptor document by HTTP `GET`.
A successful response serving the Descriptor document MUST use
`Content-Type: application/json`.

The hosting implementation is a Publisher choice. A static HTTP server or an
[xRegistry](https://xregistry.io) server can serve the document.

## Descriptor document

A Descriptor document MUST be a JSON object. Its top-level property names
MUST be unique within the object. Extensions MAY reserve top-level property
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" }
  ]
}


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".

and linked representations stable for the intended use and replay and MUST
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.

| 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.

| --- | --- |
| `schema` | [Payload schema](#schema) |
| `endpoint` | [Endpoint Group](#endpoint) |
| `identifiers` | [Entity aliases](#identifiers) |
| `opcua` | [OPC UA writer metadata](opcua.md#descriptor-property) |
| `thingdescription`, `thingmodel` | [Web of Things properties](wot.md#wot-descriptor-properties) |
| `usdasset` | [OpenUSD asset selection](openusd.md#asset-selection) |

### Schema
Comment thread
duglin marked this conversation as resolved.
Resolved

`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???

it MUST be a non-empty, case-insensitive string and MUST use the
[xRegistry format identifier][Schema Formats] for formats defined there.
Examples include `JsonSchema/draft-07`, `Avro/1.9`, and `XSD/1.1`.
The rules for the event stream or the protocol binding define how to use
`schema` and `dataschema`.

### 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?

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.


`identifiers` is a non-empty array of aliases for the described entity.
Each alias MUST be an object with exactly two string members:

| Member | Meaning |
| --- | --- |
| `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?

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?

## Examples

### Pump telemetry

The Descriptor points to the pump's Thing Description and the schema for
the reported data. `opcua` supplies the publisher and writer
identifiers for a stream that uses the combined WoT and OPC UA mapping.

```json
{
"thingdescription": {
"pump7": {
"url": "https://devices.example/pump7/td.json",
"affordanceselector": "/properties/processData"
}
},
"schema": {
"url": "https://schemas.example/pump-process-data/versions/3"
},
"opcua": {
"opcuapublisherid": "UInt16:12",
"opcuadatasetwriterid": 17
}
}
```

### Asset identifiers

The Descriptor for Pump 7 gives its serial number and site asset tag. The
serial number retains its leading zeros.

```json
{
"identifiers": [
{ "scheme": "https://manufacturer.example/id/serial", "value": "000147" },
{ "scheme": "https://site.example/id/asset-tag", "value": "Pump-7" }
]
}
```

[Endpoint Group]: https://github.com/xregistry/spec/blob/main/endpoint/spec.md
[Absolute URI]: https://www.rfc-editor.org/rfc/rfc3986#section-4.3
[Schema Formats]: https://github.com/xregistry/spec/blob/main/schema/spec.md#43-schema-formats
Loading
Loading