Architecture assessment · counted 29 Nov 2026
Is the architecture still the architecture?
Every project assessed with ten architectural fitness functions — objective integrity checks on structure, coupling, contracts, governance and delivery, each with a stated target and each counted from the repositories. Nothing on these pages is judged by a person; a check either meets its target or it does not, and every miss is listed as a risk.
Fitness functions, not grades. The term is Ford, Parsons and Kua's (Building Evolutionary Architectures, foreword by Martin Fowler): any mechanism that gives an objective integrity assessment of an architectural characteristic. The characteristic → check → target shape borrows the utility tree of the SEI's ATAM. The thresholds are stated, not tuned; a failing project is a finding, not a verdict.
How to read it
What a fitness function is
- Definition. “An architectural fitness function provides an objective integrity assessment of some architectural characteristic(s)” — Ford, Parsons & Kua, Building Evolutionary Architectures (2nd ed. with Sadalage). Martin Fowler keeps the term in his bliki and framed the book as monitoring “the architectural state” of a system that evolves.
- Axes. Each function is classified atomic or holistic, static or dynamic, triggered or continual, automated or manual. Nine of ours are atomic · static · triggered · automated; CI green is the one holistic · dynamic check.
- Already in the fleet. The repositories ship their own fitness functions as Go tests under
internal/architecture/— event envelopes, catalogue shape, Kafka writer topics, MCP authority. This assessment counts 1,826 of those test functions across 472 files instead of re-judging what they protect.
What this page borrows from ATAM
- Utility tree. The SEI's Architecture Tradeoff Analysis Method elicits quality attributes, refines them into scenarios with measurable responses, and analyses the architecture against them. Our utility tree is the table below: characteristic → check → target.
- Risks. ATAM reports risks and sensitivity points. Here, every missed target is a risk line on the project's page, with the measured value that missed it.
- What we do not do. ATAM's stakeholder brainstorm, tradeoff points and cost/benefit analysis need people in a room; this is one repository-reading script. Tradeoffs are not assessed — that is the method's biggest blind spot, stated rather than papered over.
Strongest signals in this run
- Median project fitness 100% of applicable checks met; 458 of 481 checks pass fleet-wide.
- 10 of 58 projects miss test investment (>= 0.8 test lines per code line at HEAD). 5 of 53 projects miss ports-and-adapters layout (>= 95% of source files inside cmd/ or internal/ (Go) or src/ (TypeScript)). 5 of 58 projects miss ci green (>= 90% of decided Actions runs green over the last four ISO weeks).
- Domain purity holds in every service that has a domain layer: 49 of 49 at zero framework imports.
The ten fitness functions
Characteristic → check → target, ATAM's utility-tree shape. A function that does not apply to a project (no Go code, no events, no MCP surface) is counted as n/a, never as a pass.
| Function | Characteristic | Axes | Target | Pass | Rate |
|---|---|---|---|---|---|
| Ports-and-adapters layout | Structure (separation of concerns) | atomic · static | >= 95% of source files inside cmd/ or internal/ (Go) or src/ (TypeScript) | 48 / 53 | 91% |
| Domain layer purity | Coupling (dependency direction) | atomic · static | 0 files under internal/domain importing an adapter or a framework marker | 49 / 49 | 100% |
| Adapter symmetry | Structure (ports and adapters) | atomic · static | both inbound/ and outbound/ adapters exist under internal/adapters/ | 47 / 49 | 96% |
| Contract-first APIs | Contracts (interoperability) | atomic · static | >= 1 OpenAPI and/or AsyncAPI spec under apis/ (or repo root) | 47 / 47 | 100% |
| Event naming discipline | Contracts (event-driven integration) | atomic · static | 100% of distinct event types in the AsyncAPI specs match com.warehouse.<sub>.<ctx>.<entity>.<Event> | 22 / 22 | 100% |
| In-repo architecture tests | Governance (fitness functions that ship with the code) | holistic · static | >= 1 *_fitness_test.go under internal/architecture/ | 48 / 49 | 98% |
| Decision records | Governance (documented rationale) | atomic · static | >= 1 architecture decision record | 54 / 54 | 100% |
| MCP server isolation | Structure (one context, one MCP surface) | atomic · static | a separate cmd/mcp binary when the context declares an MCP server | 42 / 42 | 100% |
| Test investment | Evolvability (safety to change) | atomic · static | >= 0.8 test lines per code line at HEAD | 48 / 58 | 83% |
| CI green | Delivery (the pipeline as architect) | holistic · dynamic | >= 90% of decided Actions runs green over the last four ISO weeks | 53 / 58 | 91% |
Every project, function by function
✓ meets the target, ✗ misses it, · not applicable. The last columns count applicable checks passed, the fitness share, and link to the project's engineering study.
| Project | Layout | Domain purity | Adapters | Contracts | Events | Arch tests | ADRs | MCP | Tests | CI | Pass | Fitness | Study |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WES bounded contexts · 14 projects | |||||||||||||
| amr-fleet-control | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| asrs-control | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| exception-management | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| fulfillment-execution | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| labor-performance | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| material-flow-control | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| network-fulfillment | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| network-inventory-planning | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| order-management | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| process-path-management | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| task-interleaving | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| warehouse-planning | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| wes-work-planning | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| workforce-management | pass | pass | pass | pass | pass | pass | pass | pass | pass | fail | 9 / 10 | 90 | study ↗ |
| Storefront bounded contexts · 6 projects | |||||||||||||
| checkout | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| customer-payments | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| pricing | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| product-content | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| product-discovery | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| shopping-cart | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| Retail-network bounded contexts · 12 projects | |||||||||||||
| customer-ordering | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| customer-returns | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| delivery-promise | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| last-mile-delivery | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| linehaul-transportation | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| node-performance | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| node-topology | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| offer-availability | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| order-sourcing | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| seller-inbound | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| shipping-and-tracking | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| vendor-connectivity | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| WMS bounded contexts · 10 projects | |||||||||||||
| dock-scheduling | pass | pass | pass | pass | not applicable | pass | pass | pass | pass | pass | 9 / 9 | 100 | study ↗ |
| facility-layout | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| inbound-receiving | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| inventory-storage | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| outbound-shipping | pass | pass | pass | pass | pass | pass | pass | pass | pass | fail | 9 / 10 | 90 | study ↗ |
| pick-face-replenishment | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| product-master | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| returns-processing | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| slotting-optimization | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| yard-management | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | 10 / 10 | 100 | study ↗ |
| Platform, harness and docs · 10 projects | |||||||||||||
| e2e-tests | fail | pass | fail | not applicable | not applicable | fail | pass | not applicable | pass | pass | 4 / 7 | 57 | study ↗ |
| ecosystem | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | fail | fail | 0 / 2 | 0 | study ↗ |
| equipment-emulator | pass | pass | pass | pass | not applicable | pass | pass | not applicable | pass | pass | 8 / 8 | 100 | study ↗ |
| iqvo-assets-control | pass | pass | pass | pass | not applicable | pass | pass | not applicable | fail | fail | 6 / 8 | 75 | study ↗ |
| payment-provider-simulator | pass | pass | pass | pass | not applicable | pass | pass | not applicable | pass | pass | 8 / 8 | 100 | study ↗ |
| provisioning | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | fail | pass | 1 / 2 | 50 | study ↗ |
| warehouse-docs | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | pass | not applicable | fail | fail | 1 / 3 | 33 | study ↗ |
| warehouse-harness-template | pass | pass | fail | not applicable | not applicable | pass | not applicable | not applicable | pass | pass | 5 / 6 | 83 | study ↗ |
| warehouse-infra | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | pass | not applicable | fail | pass | 2 / 3 | 67 | study ↗ |
| warehouse-ops-agent | pass | pass | pass | pass | not applicable | pass | pass | not applicable | pass | pass | 8 / 8 | 100 | study ↗ |
| Frontends and BFFs · 6 projects | |||||||||||||
| landing-page | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | pass | not applicable | fail | pass | 2 / 3 | 67 | study ↗ |
| storefront-bff | pass | pass | pass | pass | not applicable | pass | pass | not applicable | pass | pass | 8 / 8 | 100 | study ↗ |
| storefront-web | fail | not applicable | not applicable | not applicable | not applicable | not applicable | pass | not applicable | fail | pass | 2 / 4 | 50 | study ↗ |
| warehouse-console | fail | not applicable | not applicable | not applicable | not applicable | not applicable | pass | not applicable | fail | pass | 2 / 4 | 50 | study ↗ |
| warehouse-floor-client | fail | not applicable | not applicable | not applicable | not applicable | not applicable | pass | not applicable | fail | pass | 2 / 4 | 50 | study ↗ |
| warehouse-ui-kit | fail | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | not applicable | fail | pass | 1 / 3 | 33 | study ↗ |
Method, sources and blind spots
Where the numbers come from
- git: the file tree of
origin/<default>in each clone, after a fetch — the same rule as the engineering study. Layout, adapters, contracts, event types, architecture tests and ADRs are read from the tree; domain imports are read file by file underinternal/domain/. - The engineering study, same day: language, group, lines by class (test investment), CI success over the last four ISO weeks.
check.mjscross-checks the two files agree. - Applicability: hexagonal checks apply to Go services, the
src/layout to TypeScript apps, event naming only where an AsyncAPI spec exists, MCP isolation only where the context declares an MCP server. A check with nothing to measure is n/a, published as n/a.
Definitions
- Event grammar:
com.warehouse.<subdomain>.<context>.<entity>.<Event>, an optional trailing.vNversion accepted; counted from CloudEventstype:declarations in the AsyncAPI specs, which are the contract source of truth. - Framework markers for domain purity: kafka-go, sqlx, echo, gin, gorm, pgx, go-redis, nats, grpc, net/http, database/sql, plus the repo's own
internal/adapters. Domain → domain and domain → application ports are not violations. - Thresholds are stated in each function's target. They were written once, from the fleet's own standards (ADR 0008, the CloudEvents mandate, the harness checklist), not fitted to the data.
Blind spots
- Static shape, mostly. Nine of ten functions read structure at HEAD. Runtime characteristics — latency, availability, degradation under load — are not measured here; CI green is the only dynamic signal.
- No tradeoff analysis. ATAM's tradeoff and sensitivity points need human analysis; a script cannot say that a failing check is the right price for something else. Failed checks are risks, not instructions.
- Counts, not semantics. An ADR file exists or it does not; the script cannot tell a good decision record from a thin one. The same goes for every pass on this page.
- One point in time. Unlike the weekly engineering reports, this assessment has no history yet; it will be recounted, and drift will become visible only then.