Change:
prone ways to obtain such information. Note that the "instance" URI reference may be relative; this means <del> that it must be resolved relative to the document's base URI, as per I-D.ietf-core-coral. 2.1. This section presents a series of examples of the basic vocabulary in CoRAL textual format (Section 4 of I-D.ietf-core-coral).  The examples are fictitious.  No identification with actual products is intended or should be inferred.  All examples involve the same CoAP problem type with semantics of "unknown key id", defined in the fictitious namespace "http://vocabulary.private-api.example". Note that CoRAL documents are exchanged in CoRAL binary format (Section 3 of I-D.ietf-core-coral) in practice.  This includes the use of I-D.ietf-core-href as an alternative to URIs that is optimized for constrained nodes. The example in fig-example-minimalist has the most compact representation.  It avoids any non-mandatory element.  This is suitable for a constrained receiver that happens to have precise knowledge of the semantics associated with the "type". The example in fig-example-full-fledged has all the mandatory as well as the optional elements populated.  This format is appropriate for a less constrained receiver (for example, an edge gateway forwarding to a log server that needs to gather as much contextual information as possible, including the problem "headline", details about the error condition, and an error-specific instance URL). 3. This document defines an initial set of Problem Detail types that match the corresponding CoAP response codes in the 4.xx (client error) and 5.xx (server error) space.  See tbl-response-code-types. </del> <ins> that it must be resolved relative to the representation's base URI, as per STD66. </ins> <del> When using one such problem type, an application MUST make sure that the type matches the CoAP response code in the underlying CoAP transaction. </del> <ins> Note that the "response code" value is a numeric representation of the actual code, so it does not take the usual form that resembles an HTTP status code -- "4.04 Not found" is represented by the number 132. </ins> <del> If a title element is used in the Problem Details payload, it SHOULD be populated with the title corresponding to the type. </del> <ins> 3. </ins> <del> The types defined in this document reflect the state of the relevant portion of the "CoAP Codes" registry at the time of writing. </del> <ins> This specification defines a generic problem type container with only a minimal set of attributes to make it usable. It is expected that applications will extend the base format by defining new attributes. These new attributes fall into two categories: generic and application specific. Generic attributes will be allocated in the "standard-problem-detail- entries" slot according to the registration procedure defined in new- spdk. Application-specific attributes will be allocated in the "custom- problem-detail-entries" slot according to the procedure described in new-cpdk. 3.1. Beyond the Standard Problem Detail keys defined in cddl, additional Standard Problem Detail keys can be registered for use in the "standard-problem-detail-entries" slot (see iana-spdk). Standard Problem Detail keys are negative integers, so they never can conflict with Custom Problem Detail keys defined for a specific application domain (which are unsigned integers or URIs.) In summary, the keys for Standard Problem Detail entries are in a global namespace that is not specific to a particular application domain. Consumers of a Concise Problem Details instance MUST ignore any Standard Problem Detail entries that they do not recognize; this allows problem details to evolve. 3.2. Applications may extend the Problem Details data item with additional entries to convey additional, application-specific information. Such new entries are allocated in the "custom-problem-detail-entries" slot, and carry a nested map specific to that application.  The map key can either be an (absolute!)  URI (controlled by the entity defining this extension), or an unsigned integer.  Only the latter needs to be registered (iana-cpdk). Within the nested map any number of attributes can be given for a single extension.  The semantics of each custom attribute MUST be described in the documentation for the extension; for extension that are registered (i.e., are identified by an unsigned int) that documentation goes along with the registration. The unsigned integer form allows a more compact representation, in exchange, authors are expected to comply with the required registration and documentation process.  In comparison, the URI form is less space-efficient but requires no registration.  It is therefore useful for experimenting during the development cycle and for applications deployed in environments where producers and consumers of Concise Problem Details are more tightly integrated. (The URI form thus covers the potential need we might otherwise have for a "private use" range for the unsigned integers.) Note that the URI given for the extension is for identification purposes only and, even if dereferenceable in principle, MUST NOT be dereferenced in the normal course of handling problem details (i.e., outside diagnostic/debugging procedures involving humans). An example of a custom extension using a URI as "custom-problem- detail-entries" key is shown in fig-example-custom-with-uri. Obviously, an SDO like 3GPP can also easily register such a custom problem detail entry to receive a more efficient unsigned integer key; the same example but using a registered unsigned int as "custom- problem-detail-entries" key is shown in fig-example-custom-with-uint. In summary, the keys for the maps used inside Custom Problem Detail entries are defined specifically to the identifier of that Custom Problem Detail entry, the documentation of which defines these internal entries, typically chosen to address a given application domain.  Consumers of a Concise Problem Details instance MUST ignore any Custom Problem Detail entries, or keys inside the Custom Problem Detail entries, that they do not recognize; this allows Custom Problem Detail entries to evolve and include additional information in the future. </ins> 4. <del> In the following sections we introduce specific (albeit "common enough") use cases, and define the extensions to the basic format needed to support them. 4.1. </del> <ins> The security and privacy considerations outlined in Section 5 of RFC7807 apply in full. </ins> <del> Consumers of Problem Details might be located at the far end of a logging and analytics pipeline.  For example, this might be the case when a CoAP server or CoAP API gateway is located in an edge gateway node and forwards its logs to a cloud collector, which in turn aggregates a potentially huge number of different servers and transactions (see fig-log-pipeline). </del> <ins> 5. </ins> <del> It is quite common in a situation like the above that an already deployed server is temporarily put in "tracing mode" to diagnose a failure.  In this case having a separate channel for the tracing info provides a superior solution (in terms of ease of ingesting and processing) to overloading the "detail" field and having to write ad- hoc filtering logics to extract the relevant information from it. Cost-wise, the producer would not incur any added overhead while, from the transport perspective, the slight increase in bandwidth to support the extra structuring is typically dwarfed by the (verbose) content of the diagnostic payload.  The same mechanism would also be useful during the development and test of a new application, giving the developer insight into the internal state of the application. </del> <ins> 5.1. </ins> <del> The additional protocol element is: </del> <ins> This specification defines a new sub-registry for Standard Problem Detail Keys in the CoRE Parameters registry IANA.core-parameters, with the policy "specification required" RFC8126. </ins> <del> "diag" (text) - a string.  It may contain anything of user's choice: extra information complementing the what already present in "detail", a stack trace, a distributed trace span ending in an error condition, etc. </del> <ins> Each entry in the registry must include: </ins> <del> Leaking private or sensitive data SHOULD be avoided. </del> <ins> Initial entries in this sub-registry are as follows: </ins> <del> 4.1.1. </del> <ins> 5.2. </ins> <del> The example in fig-example-diag-stack has a "diag" element with a stack trace associated with the error condition. </del> <ins> This specification defines a new sub-registry for Custom Problem Detail Keys in the CoRE Parameters registry IANA.core-parameters, with the policy "first come first served" RFC8126. </ins> <del> 5. </del> <ins> Each entry in the registry must include: </ins> <del> Problem type definitions MAY extend the Problem Details document with additional elements to convey additional, problem-specific information. </del> <ins> Initial entries in this sub-registry are as follows: </ins> <del> Clients consuming problem details MUST ignore any such elements that they do not recognize; this allows problem types to evolve and include additional information in the future. </del> <ins> 5.3. </ins> <del> 5.1. </del> <ins> IANA is requested to add the following Media-Type to the "Media Types" registry IANA.media-types. </ins> <del> The example in fig-example-ext-full has all the basic elements as well as an additional, type-specific element. </del> <ins> 5.4. </ins> <del> 6. </del> <ins> IANA is requested to register a Content-Format number in the IANA.core-parameters sub-registry, within the "Constrained RESTful Environments (CoRE) Parameters" Registry IANA.core-parameters, as follows: </ins> <del> Problem Details for CoAP APIs are serialized in the CoRAL binary format.  See Section 11 of RFC7252 for security considerations relating to CoAP.  See Section 7 of I-D.ietf-core-coral for security considerations relating to CoRAL. </del> <ins> TBD1 is to be assigned from the space 256..999. </ins> <del> The security and privacy considerations outlined in Section 5 of RFC7807 apply in full. </del> <ins> In the registry as defined by RFC7252 at the time of writing, the column "Content-Type" is called "Media type" and the column "Content Coding" is called "Encoding". </ins> <del> 7. </del> <ins> 5.5. </ins> <del> TODO. </del> <ins> In the registry "IANA.cbor-tags" IANA.cbor-tags, IANA has registered CBOR Tag 38.  IANA is requested to replace the reference for this registration with tag38, RFC XXXX. </ins>

Discussion:
This PR provides the write-up of the discussed at the interim. Note that it branches off Carsten's "bundled" PR ()
I did a little bit of editing. Comments welcome...