WES bounded contexts · Supporting domain

network-fulfillment

Network Fulfillment (Supporting Subdomain) -- the anti-corruption layer between the warehouse-systems fleet and an external retail fulfillment network (Amazon Selling Partner API): network-originated demand, the acknowledgement clock, and capacity-aware advertised availability

language Go · default branch develop · bounded context network-fulfillment · GitHub ↗ · engineering study ↗

Architecture fitness

100%10 / 10 checks

network-fulfillment: fitness functions that apply to this project
FunctionAxesTargetMeasuredResult
Ports-and-adapters layoutatomic · static · triggered · automated>= 95% of source files inside cmd/ or internal/ (Go) or src/ (TypeScript)96% of 422pass
Domain layer purityatomic · static · triggered · automated0 files under internal/domain importing an adapter or a framework marker0 of 7 filespass
Adapter symmetryatomic · static · triggered · automatedboth inbound/ and outbound/ adapters exist under internal/adapters/NaNpass
Contract-first APIsatomic · static · triggered · automated>= 1 OpenAPI and/or AsyncAPI spec under apis/ (or repo root)2 specs (OpenAPI + AsyncAPI)pass
Event naming disciplineatomic · static · triggered · automated100% of distinct event types in the AsyncAPI specs match com.warehouse.<sub>.<ctx>.<entity>.<Event>7 of 7 types (100%)pass
In-repo architecture testsholistic · static · triggered · automated>= 1 *_fitness_test.go under internal/architecture/9 files, 35 test functionspass
Decision recordsatomic · static · triggered · automated>= 1 architecture decision record37 recordspass
MCP server isolationatomic · static · triggered · automateda separate cmd/mcp binary when the context declares an MCP serverNaNpass
Test investmentatomic · static · triggered · automated>= 0.8 test lines per code line at HEAD1.96 test lines per code linepass
CI greenholistic · dynamic · triggered · automated>= 90% of decided Actions runs green over the last four ISO weeks94% greenpass

Risks

  • Every applicable fitness function meets its target in this run.

Evidence

Adapters and binaries

in: a2a, http, kafka, mcp, poller · out: analyticsstore, events, eventwire, fleetrest, inboundreceiving, inventoryclient, kafka, memory, ordermanagement, pathcapacitycache, postgres, processpathcache, productmaster, producttranslation, replayclass, retailnetwork, system, telemetry · cmd: a2a, mcp, netfulfil, netfulfil-projector, netfulfil-reports

API contracts

asyncapi.yaml · openapi.yaml

In-repo fitness tests

35 test functions in 9 files: a2a_fitness_test.go · catalogue_fitness_test.go · events_fitness_test.go · kafka_dlq_shutdown_fitness_test.go · kafka_writer_acks_fitness_test.go · kafka_writer_topic_fitness_test.go · outbox_relay_cap_fitness_test.go · runtime_no_memory_fitness_test.go · tzdata_fitness_test.go

Test investment

55,384 test lines against 28,299 code lines at HEAD.