docs(adr-015): cross-feature events and background jobs

Also folds in the spec correction noted in the plan's known follow-up
\#1: subscribe takes consumerFeature: string as a second arg between
descriptor and handler. § 3.3 and § 5.4 updated.
This commit is contained in:
2026-05-08 17:05:05 +02:00
parent 04899de98c
commit c531b81544
2 changed files with 114 additions and 1 deletions

View File

@@ -141,6 +141,7 @@ export interface IEventBus {
subscribe<T>(
descriptor: EventDescriptor<string, z.ZodType<T>>,
consumerFeature: string,
handler: EventHandler<T>,
): void;
}
@@ -321,7 +322,7 @@ export function bindProductionMarketingPages(config: SanitizedConfig): void {
onAuthUserSignedUpHandler(queue),
),
);
bus.subscribe(userSignedUpEvent, onAuthUserSignedUp);
bus.subscribe(userSignedUpEvent, "marketing-pages", onAuthUserSignedUp);
}
```