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.

Architectural fitness functions, targets and fleet results
FunctionCharacteristicAxesTargetPassRate
Ports-and-adapters layoutStructure (separation of concerns)atomic · static>= 95% of source files inside cmd/ or internal/ (Go) or src/ (TypeScript)48 / 5391%
Domain layer purityCoupling (dependency direction)atomic · static0 files under internal/domain importing an adapter or a framework marker49 / 49100%
Adapter symmetryStructure (ports and adapters)atomic · staticboth inbound/ and outbound/ adapters exist under internal/adapters/47 / 4996%
Contract-first APIsContracts (interoperability)atomic · static>= 1 OpenAPI and/or AsyncAPI spec under apis/ (or repo root)47 / 47100%
Event naming disciplineContracts (event-driven integration)atomic · static100% of distinct event types in the AsyncAPI specs match com.warehouse.<sub>.<ctx>.<entity>.<Event>22 / 22100%
In-repo architecture testsGovernance (fitness functions that ship with the code)holistic · static>= 1 *_fitness_test.go under internal/architecture/48 / 4998%
Decision recordsGovernance (documented rationale)atomic · static>= 1 architecture decision record54 / 54100%
MCP server isolationStructure (one context, one MCP surface)atomic · statica separate cmd/mcp binary when the context declares an MCP server42 / 42100%
Test investmentEvolvability (safety to change)atomic · static>= 0.8 test lines per code line at HEAD48 / 5883%
CI greenDelivery (the pipeline as architect)holistic · dynamic>= 90% of decided Actions runs green over the last four ISO weeks53 / 5891%

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.

Fitness functions per project
ProjectLayoutDomain purityAdaptersContractsEventsArch testsADRsMCPTestsCIPassFitnessStudy
WES bounded contexts · 14 projects
amr-fleet-controlpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
asrs-controlpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
exception-managementpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
fulfillment-executionpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
labor-performancepasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
material-flow-controlpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
network-fulfillmentpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
network-inventory-planningpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
order-managementpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
process-path-managementpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
task-interleavingpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
warehouse-planningpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
wes-work-planningpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
workforce-managementpasspasspasspasspasspasspasspasspassfail9 / 1090study ↗
Storefront bounded contexts · 6 projects
checkoutpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
customer-paymentspasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
pricingpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
product-contentpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
product-discoverypasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
shopping-cartpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
Retail-network bounded contexts · 12 projects
customer-orderingpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
customer-returnspasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
delivery-promisepasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
last-mile-deliverypasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
linehaul-transportationpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
node-performancepasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
node-topologypasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
offer-availabilitypasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
order-sourcingpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
seller-inboundpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
shipping-and-trackingpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
vendor-connectivitypasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
WMS bounded contexts · 10 projects
dock-schedulingpasspasspasspassnot applicablepasspasspasspasspass9 / 9100study ↗
facility-layoutpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
inbound-receivingpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
inventory-storagepasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
outbound-shippingpasspasspasspasspasspasspasspasspassfail9 / 1090study ↗
pick-face-replenishmentpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
product-masterpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
returns-processingpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
slotting-optimizationpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
yard-managementpasspasspasspasspasspasspasspasspasspass10 / 10100study ↗
Platform, harness and docs · 10 projects
e2e-testsfailpassfailnot applicablenot applicablefailpassnot applicablepasspass4 / 757study ↗
ecosystemnot applicablenot applicablenot applicablenot applicablenot applicablenot applicablenot applicablenot applicablefailfail0 / 20study ↗
equipment-emulatorpasspasspasspassnot applicablepasspassnot applicablepasspass8 / 8100study ↗
iqvo-assets-controlpasspasspasspassnot applicablepasspassnot applicablefailfail6 / 875study ↗
payment-provider-simulatorpasspasspasspassnot applicablepasspassnot applicablepasspass8 / 8100study ↗
provisioningnot applicablenot applicablenot applicablenot applicablenot applicablenot applicablenot applicablenot applicablefailpass1 / 250study ↗
warehouse-docsnot applicablenot applicablenot applicablenot applicablenot applicablenot applicablepassnot applicablefailfail1 / 333study ↗
warehouse-harness-templatepasspassfailnot applicablenot applicablepassnot applicablenot applicablepasspass5 / 683study ↗
warehouse-infranot applicablenot applicablenot applicablenot applicablenot applicablenot applicablepassnot applicablefailpass2 / 367study ↗
warehouse-ops-agentpasspasspasspassnot applicablepasspassnot applicablepasspass8 / 8100study ↗
Frontends and BFFs · 6 projects
landing-pagenot applicablenot applicablenot applicablenot applicablenot applicablenot applicablepassnot applicablefailpass2 / 367study ↗
storefront-bffpasspasspasspassnot applicablepasspassnot applicablepasspass8 / 8100study ↗
storefront-webfailnot applicablenot applicablenot applicablenot applicablenot applicablepassnot applicablefailpass2 / 450study ↗
warehouse-consolefailnot applicablenot applicablenot applicablenot applicablenot applicablepassnot applicablefailpass2 / 450study ↗
warehouse-floor-clientfailnot applicablenot applicablenot applicablenot applicablenot applicablepassnot applicablefailpass2 / 450study ↗
warehouse-ui-kitfailnot applicablenot applicablenot applicablenot applicablenot applicablenot applicablenot applicablefailpass1 / 333study ↗

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 under internal/domain/.
  • The engineering study, same day: language, group, lines by class (test investment), CI success over the last four ISO weeks. check.mjs cross-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 .vN version accepted; counted from CloudEvents type: 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.