WES bounded contexts · Generic/Supporting domain
order-management
Order Management bounded context (study project) — order intake, allocation, promise dates, release. Consumes inventory-storage and wes-work-planning via their published REST APIs only.
Architecture fitness
100%10 / 10 checks
| Function | Axes | Target | Measured | Result |
|---|---|---|---|---|
| Ports-and-adapters layout | atomic · static · triggered · automated | >= 95% of source files inside cmd/ or internal/ (Go) or src/ (TypeScript) | 98% of 386 | pass |
| Domain layer purity | atomic · static · triggered · automated | 0 files under internal/domain importing an adapter or a framework marker | 0 of 25 files | pass |
| Adapter symmetry | atomic · static · triggered · automated | both inbound/ and outbound/ adapters exist under internal/adapters/ | NaN | pass |
| Contract-first APIs | atomic · static · triggered · automated | >= 1 OpenAPI and/or AsyncAPI spec under apis/ (or repo root) | 3 specs (OpenAPI + AsyncAPI) | pass |
| Event naming discipline | atomic · static · triggered · automated | 100% of distinct event types in the AsyncAPI specs match com.warehouse.<sub>.<ctx>.<entity>.<Event> | 18 of 18 types (100%) | pass |
| In-repo architecture tests | holistic · static · triggered · automated | >= 1 *_fitness_test.go under internal/architecture/ | 10 files, 41 test functions | pass |
| Decision records | atomic · static · triggered · automated | >= 1 architecture decision record | 57 records | pass |
| MCP server isolation | atomic · static · triggered · automated | a separate cmd/mcp binary when the context declares an MCP server | NaN | pass |
| Test investment | atomic · static · triggered · automated | >= 0.8 test lines per code line at HEAD | 1.87 test lines per code line | pass |
| CI green | holistic · dynamic · triggered · automated | >= 90% of decided Actions runs green over the last four ISO weeks | 94% green | pass |
Risks
- Every applicable fitness function meets its target in this run.
Evidence
Adapters and binaries
in: a2a, http, kafka, mcp · out: analyticsstore, events, inventorystorage, kafka, kafkacatalog, kafkacptschedule, kafkapathcapacity, memory, pathcapacity, postgres, productclassificationcopy, system, telemetry · cmd: a2a, mcp, order, order-projector, order-reports
API contracts
asyncapi.yaml · openapi-reports.yaml · openapi.yaml
In-repo fitness tests
41 test functions in 10 files: a2a_fitness_test.go · catalogue_fitness_test.go · events_fitness_test.go · integration_coverage_fitness_test.go · kafka_dlq_shutdown_fitness_test.go · kafka_writer_acks_fitness_test.go · kafka_writer_topic_fitness_test.go · mcp_authority_fitness_test.go · mcp_optional_inputs_fitness_test.go · outbox_relay_fitness_test.go
Test investment
51,264 test lines against 27,371 code lines at HEAD.