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.
Architecture fitness
83%5 / 6 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) | 100% of 29 | pass |
| Domain layer purity | atomic · static · triggered · automated | 0 files under internal/domain importing an adapter or a framework marker | 0 of 8 files | pass |
| Adapter symmetry | atomic · static · triggered · automated | both inbound/ and outbound/ adapters exist under internal/adapters/ | NaN | fail |
| In-repo architecture tests | holistic · static · triggered · automated | >= 1 *_fitness_test.go under internal/architecture/ | 9 files, 43 test functions | pass |
| Test investment | atomic · static · triggered · automated | >= 0.8 test lines per code line at HEAD | 1.21 test lines per code line | pass |
| CI green | holistic · dynamic · triggered · automated | >= 90% of decided Actions runs green over the last four ISO weeks | 100% green | pass |
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.