Resync hq ADR references 0044-0054 -> 0039-0049 after the hq record reconciliation
This commit is contained in:
+3
-3
@@ -4,7 +4,7 @@
|
||||
// credential — just the broker's topic routing). Declared as emits/consumes on the manifest so the
|
||||
// mesh knows the event graph.
|
||||
//
|
||||
// Identity and provenance ride as AMQP headers, not in the body (novox/hq ADR 0047): a consumer —
|
||||
// Identity and provenance ride as AMQP headers, not in the body (novox/hq ADR 0042): a consumer —
|
||||
// or the broker, or an audit tool — reads who/when/what without parsing the payload, and the body
|
||||
// is only the domain payload. This surface hides the header/exchange/queue mechanics; a module
|
||||
// names a type and a body and never sees the wire.
|
||||
@@ -44,7 +44,7 @@ export interface EmitOptions {
|
||||
/**
|
||||
* Emit an event. Source and node come from the environment the runtime set for the module
|
||||
* (MESH_MODULE, MESH_NODE), so a module names only the type and the body; the sdk stamps the
|
||||
* ADR 0047 headers (id, source, node, time) and the runtime rides them on the broker.
|
||||
* ADR 0042 headers (id, source, node, time) and the runtime rides them on the broker.
|
||||
*/
|
||||
export async function emit<T>(type: string, body: T, opts: EmitOptions = {}): Promise<void> {
|
||||
const source = process.env.MESH_MODULE ?? "unknown";
|
||||
@@ -72,7 +72,7 @@ export async function on<T>(pattern: string, handler: (event: Event<T>) => Promi
|
||||
});
|
||||
}
|
||||
|
||||
/** Rebuild the Event a handler sees from a broker envelope's headers (ADR 0047) and body. */
|
||||
/** Rebuild the Event a handler sees from a broker envelope's headers (ADR 0042) and body. */
|
||||
function fromEnvelope<T>(env: Envelope<T>): Event<T> {
|
||||
const h = env.headers ?? ({} as EventHeaders);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user