warehouse-systems fleet · executive briefing

vendor-connectivity

The one front door vendors use to receive orders, confirm them and ship
eight capabilitys11 events out · 14 in14 recorded decisions

This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic. · November 2026

the short version · read this if nothing else

Vendor connectivity gives vendors one published API, so the fleet reaches the retail network through one seam

1

Every release to a node becomes a purchase order with a deadline to accept or reject.

2

Every write answers at once with a transaction id that vendors poll to reconcile.

3

Agents can already read orders, shipments and scorecards through nine read-only MCP tools.

The ask

Guard the simulation knobs so test settings never reach production vendors, then build the return-advice seam.

why it exists

Vendors need one clear, stable door into the retail network

Supporting subdomain in the partner tier. It publishes the Vendor API and its Published Language: vendors register nodes, declare operational profiles, send inventory feeds, poll purchase orders, acknowledge them in full inside the acknowledgement window, request labels and confirm shipment, and report what their dock received against seller inbound shipments…

Today

Vendors run fulfillment nodes and must take purchase orders, acknowledge them in time, ship, and report what arrived.

The catch

Writes make four synchronous calls to sibling contexts, and test-only failure knobs could hurt real vendors if misapplied.

what it does

Vendors onboard, take orders, ship and report receipts in one place

Vendor onboarding

Sets each vendor's acknowledgement window and blocks writes while suspended.

Releases become purchase orders

Turns each release to a node into an order the vendor must fully accept or reject.

Expiry and cancellation

Expires unanswered orders and cancels ones whose release was withdrawn.

Async transactions

Every write returns a transaction id the vendor polls for success or failure.

Labels and shipment

Vendors request shipping labels and confirm the shipment went out.

Inbound receipts

Vendors see inbound shipment trees and report what their dock received.

who it talks to

Four contexts feed it, four build on what it publishes

LISTENS TO · 14 EVENT TYPESIS HEARD BY · 4 CONTEXTSnode-topology5offer-availability3order-sourcing3seller-inbound3node-performance8order-sourcing4seller-inbound1shipping-and-tracking1vendorconnectivitybadge = event types on that edge · derived from the CloudEvents types each repo declares
the shared language

Purchase orders, deadlines and async transactions are the language

THE LANGUAGEOF THE DOMAINVendorAccountPurchaseOrderacknowledgement windowSubmissionInboundShipmentInboundReceiptvendor nodeoperational profile
REST19 operations over 18 paths on :8080
MCPRead-only MCP server (cmd/mcp, :8090, Streamable HTTP…
A2ARead-only A2A agent (cmd/a2a, :8093…
how it is built

A hexagonal core publishes a stable API vendors can build against

DRIVERS · INBOUNDOUTBOUND · ADAPTERSREST API :808019 operations over 18 pathsMCP tools :8090Read-only MCP server…Kafka consumer · 14 eventsCatalogItemPackLevelRetiredCatalogItemPackagingDeclaredDOMAIN COREVendorAccountPurchaseOrderacknowledgement windowSubmissionPostgreSQLPostgreSQLKafka producer · 11 eventsInboundReceiptSubmittedPurchaseOrderAcceptedTransactional outboxrelay · DLQ on x-dlq-*commands inevents inevents outstorage / infra
event traffic · CloudEvents 1.0 on Kafka

11 events go out and 14 come in, all as CloudEvents

CONSUMED · BY SOURCE · 14PUBLISHED · BY ENTITY · 11node-topology 5offer-availability 3order-sourcing 3seller-inbound 36 purchaseorder3 vendoraccount1 inboundreceipt1 submissionCatalogItemPackLevelRetiredCatalogItemPackagingDeclaredListingCreatedFulfillmentCancelledFulfillmentReleaseWithdrawnFulfillmentReleasedToNodeInboundReceiptSubmittedPurchaseOrderAcceptedPurchaseOrderCancelledPurchaseOrderExpiredPurchaseOrderIssuedPurchaseOrderRejected
how we know it is healthy

Traces, metrics and logs follow every vendor call; queue health is dark

OpenTelemetry OTLP/gRPC to in-cluster Collector -> Jaeger (traces) + Prometheus (metrics); JSON slog logs on stdout collected by Alloy into Loki (fleet standard, ADR 0008)

What we watch

  • request log with request id per vendor call
  • mcp.tool and a2a.skill OTel spans
  • Business counter vendor.submissions.processed (outcome succeeded|failed, reason = the Err code) from the submission processor…
  • traceparent propagated onto outbox-published events; consumer spans per sibling topic

What stops a bad change

  • make check (vet + lint + unit + coverage gate 90%)
  • godog BDD suite must pass
  • architecture tests (dependency direction)
  • mutation tests (gremlins) with thresholds efficacy 99, mutant-coverage 99 (the fleet standard)
  • govulncheck vulnerability scan
by the numbers

14 decisions, 20 BDD feature files and 4 migrations back the API

14
Architecture decisions
#24 of 45 in the fleet
4
DB migrations
#22 of 45 in the fleet
20
BDD feature files
#8 of 45 in the fleet
11
Events published
#8 of 45 in the fleet

Ranked against all 45 briefed repositories (dot = one repository, highest on the left).

One-command workflows (make)

helpbuildvetfmtfmt-checklinttestcoverageintegrationbddarch-testmutationmutation-fullvuln
what comes next

Next: build return advice, guard the knobs and measure receipts

NOW1Build the acceptedreturn-advice seamBuild the acceptedreturn-advice seam (ADR0014: GET/vendor/return-advices,POST/vendor/return-outcomes,RETURN_OUTCOMEsubmissions): notevidenced in …NEXT2Addreceipt-discrepancyanalyticsAdd receipt-discrepancyanalytics (expected vsreceived quantities pervendor) to a reportssurface: the analyticschannel carries onlyPurchaseOrderCancelledNEXT3Guard thesimulation knobsin productionGuard the simulationknobs: TX_FAILURE_RATE,PO_REDELIVERY_RATE andthe others are empty bydefault(values.yaml:127-130)but a production guardis not evidenced in …LATER4Add outbox,consumer-lag anddead-letterAdd queue-healthinstruments:observability.md:48states there is nooutbox-depth,consumer-lag ordead-letter metricLATER5Close therepository-secretspackagingClose the packagingfollow-up: repositorysecrets(before-first-release.mdrow 11, ask the repoadmin)
what could go wrong · and what we do about it

Our biggest risk is sync calls tying vendors to four services

Writes depend on four synchronous sibling calls

Write path makes four synchronous in-org calls (node-topology, offer-availability, shipping-and-tracking…

→

No mitigation on the roadmap yet: this one needs an owner.

Simulation knobs could disrupt real vendors

Hostile-network simulation knobs (TX_PROCESSING_DELAY, TX_FAILURE_RATE, PO_REDELIVERY_RATE, RATE_LIMIT_RPS) are runtime settings…

→

The knobs are empty by default in the chart; a production guard is the next step.

Expiry and cancellation can race each other

Purchase-order expiry and cancellation race against order-sourcing release withdrawal; reconciliation depends on event ordering

→

No mitigation on the roadmap yet: this one needs an owner.

Auth is off by decision; vendorId is not security

Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide auth revert; CLAUDE.md:23,44)…

→

No mitigation on the roadmap yet: this one needs an owner.

the decision we need

Guard the simulation knobs so test settings never reach production vendors, then build the return-advice seam.

WHAT ISVendors run fulfillment nodes andmust take purchase orders,acknowledge them in time, ship, andreport what arrived.THE CATCHWrites make four synchronous callsto sibling contexts, and test-onlyfailure knobs could hurt realvendors if misapplied.WHAT COULD BEKnobs are guarded, returns flowthrough the accepted seam, andreports show expected versusreceived per vendor.
Why it matters

Vendor connectivity gives vendors one published API, so the fleet reaches the retail network through one seam

appendix · for the engineers in the room

The fine print: how it is put together

StyleHexagonal (ports & adapters), Open Host Service with Published Language, event-driven DDD, transactional outbox
Layoutcmd/{api,mcp,a2a} composition roots; internal/domain {purchaseorder, vendor, submission, inbound, network, shared}…
StoragePostgreSQL (pgx v5): vendor accounts, purchase orders, submissions, inbound shipments/receipts, inbox, transactional outbox, global idempotency keys…
TestingUnit + 90% coverage gate; integration on real PostgreSQL and Kafka via testcontainers; godog BDD (20 .feature files incl…
REST19 operations over 18 paths on :8080: /vendor/purchase-orders, /vendor/purchase-orders/{poNumber}, /vendor/acknowledgements, /vendor/inventory…
Go 1.27.4PostgreSQL via pgx v5Kafka via segmentio/kafka-goCloudEvents 1.0 envelopeOpenTelemetrychi HTTP routerMCP go-sdka2a-go v2React/Vite MFE consoleHelm/Kubernetes