ADR 0013: Seller status is an integration fact
Status
Accepted (2026-11-08).
Context
Network gap G48: a suspended seller's listings stay live, because
offer-availability never learns of the suspension. seller-inbound already
raises SellerSuspended and SellerReinstated (ADR 0002, SuspendSeller /
ReinstateSeller), but publishes them ONLY on
retailnetwork.seller-inbound.analytics, the analytics-only topic (ADR 0004).
No sibling context can rely on an analytics-only fact, so the seller's status
never reaches the context that decides whether its listings are offered.
Decision
-
Both events are published ONLY on
retailnetwork.seller-inbound.eventsfrom now on. The estate rule is that integration events go only to.eventsand analytics-only events only to.analytics, so they leave the analytics topic. Type strings are unchanged:com.retailnetwork.partner.seller-inbound.seller.SellerSuspendedandcom.retailnetwork.partner.seller-inbound.seller.SellerReinstated.dataschemabecomesurn:retailnetwork:seller-inbound:events:SellerSuspended:v1/urn:retailnetwork:seller-inbound:events:SellerReinstated:v1.subject= Kafka key =sellerId. -
Data fields unchanged. Each payload carries at least
sellerIdplus the instant (suspendedAt/reinstatedAt, RFC 3339). Both instants were already required fields, so no field is added. The optionalreasonofSellerSuspendedis kept (omitted when empty). The exact fields:SellerSuspended:sellerId(required),suspendedAt(required, RFC 3339 UTC),reason(optional, omitted when empty).SellerReinstated:sellerId(required),reinstatedAt(required, RFC 3339 UTC).
apis/asyncapi.yamldocuments both on the events channel withConsumers: offer-availabilityin the message description and lists the exact fields. -
CloudEvents type-catalogue ADR (0004): both rows move to stream
events(table row andtype: ... stream: eventslines). -
The encoder's routing (
streamForininternal/adapters/outbound/kafka/encoder.go) sends both events to the events topic; the golden encoder tests pin the new topic and dataschema. -
MCP and REST are unaffected: neither exposes stream or topic names.
Consequences
- offer-availability consumes both events and suppresses and restores the seller's listings; that decision, its read model and its inbox are recorded in offer-availability's own ADR.
- The analytics stream loses the two events; it keeps
SellerOnboarded,InboundPlanConfirmed,InboundDiscrepancyRecordedandSellerComplianceViolationRecorded. Nothing consumes the analytics topic today:git grep -n 'seller-inbound.analytics'across this repo finds only the producer (TopicAnalyticsin the encoder), the end-to-end test that reads back what this service itself produced, the AsyncAPI channel and the documentation; no consumer, chart subscription or consumer group names it. - The events topic now carries seller facts keyed by
sellerIdnext to the shipment facts keyed byshipmentId; consumers already dispatch on the fulltypeand ignore types they do not act on, so existing consumers of the events topic (vendor-connectivity, node-performance) are unaffected. SellerOnboardedstays analytics-only; a consumer that needs it is a new decision.