Platform, harness and docs

warehouse-harness-template

Canonical Go-service harness template for the warehouse-systems fleet: Makefile, CI, lefthook, arch-fitness tests, .claude/ guides. Versioned; instantiate via make new-service.

language Python · default branch develop · not a registered context · GitHub ↗ · engineering study ↗

Architecture fitness

83%5 / 6 checks

warehouse-harness-template: 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)100% of 29pass
Domain layer purityatomic · static · triggered · automated0 files under internal/domain importing an adapter or a framework marker0 of 8 filespass
Adapter symmetryatomic · static · triggered · automatedboth inbound/ and outbound/ adapters exist under internal/adapters/NaNfail
In-repo architecture testsholistic · static · triggered · automated>= 1 *_fitness_test.go under internal/architecture/9 files, 43 test functionspass
Test investmentatomic · static · triggered · automated>= 0.8 test lines per code line at HEAD1.21 test lines per code linepass
CI greenholistic · dynamic · triggered · automated>= 90% of decided Actions runs green over the last four ISO weeks100% greenpass

Not applicable here: Contracts, Events, ADRs, MCP.

Risks

  • No adapters under internal/adapters/: the hexagon is not built.

Evidence

Adapters and binaries

in: none · out: none · cmd:

In-repo fitness tests

43 test functions in 9 files: 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 · mcp_authority_fitness_test.go · no_go_files_at_root_fitness_test.go · outbox_relay_cap_fitness_test.go · runtime_no_memory_fitness_test.go

Test investment

9,279 test lines against 7,677 code lines at HEAD.