Before the first release: outbound-shipping
The first merge to main runs docker-publish and release (.github/workflows/ci.yml). Two services built from the same template (pick-face-replenishment, task-interleaving) each needed a rework because packaging was missing or wrong when that moment came. This service is built on develop, not deployed: it has a Dockerfile and a Helm chart (charts/outbound-shipping/) but no warehouse-infra registration (no apps.yaml entry, no helm values, no pinned image), so only the platform rows are open. Work through the open rows on a feature branch, before the first develop to main PR. Delete a row only when the service really does not have that part, and say so in the PR.
Dockerfile and .dockerignore were generated from the fleet reference. The chart is not generated: it is shaped by what the service runs (six consumer groups, an MCP deployment, no frontend, projector, reports, sweep, A2A or separate relay) and was adapted from the sibling charts (IQVO/dock-scheduling, IQVO/returns-processing). Its components and values are listed in the runbook.
Chart rows updated in the PR that added charts/outbound-shipping/; the platform rows were last checked against origin/develop on 2026-11-09.
| # | Item | Done when | Guarded by | State on develop |
|---|---|---|---|---|
| 1 | Real runtime only. cmd/api wires Postgres and Kafka; the in-memory adapters (internal/adapters/outbound/memory) are test doubles. No *_MODE fallback, no default that boots healthy without DATABASE_URL or KAFKA_BROKERS. | cmd/** does not import the memory package; the binary exits at boot on a missing DATABASE_URL, KAFKA_BROKERS or consumer group id. | TestRuntimeBinaryHasNoInMemoryAdapters (internal/architecture/runtime_no_memory_fitness_test.go). The boot-error text lives in cmd/api/config.go. | Done. |
| 2 | No Go file at the repo root. The godog runner lives in features/ (package features_test), binaries in cmd/<name>/, the rest in internal/. | ls *.go at the root prints nothing; make bdd still finds TestFeatures. | TestNoGoFilesAtRepoRoot (no_go_files_at_root_fitness_test.go). | Done. |
| 3 | Dockerfile builds every cmd/*. | docker build . succeeds; ENTRYPOINT ["./api"] is the main binary; EXPOSE 8080 matches the default ADDR (:8080). The MCP binary listens on MCP_ADDR (:8090) and has no EXPOSE. | The docker-publish job builds and pushes the image on a push to main. There is no PR-time image build job in ci.yml (no trivy-scan). | Dockerfile present and loops over cmd/* (builds /app/api and /app/mcp). Not built by CI before the first push to main. |
| 4 | .dockerignore excludes docs, charts, harness and test output. | Build context is small; .git, .claude/, docs/, charts/ are not sent. | none: review once. | Present. |
| 5 | Helm chart charts/outbound-shipping/ with Chart.yaml name: outbound-shipping. The directory name, the chart name and the helm package file name in the release job must all be outbound-shipping. | helm lint charts/outbound-shipping and helm template with the required values both pass. | The release job packages outbound-shipping-<version>.tgz. There is no helm-lint job in this repository's ci.yml. | Done: charts/outbound-shipping/ (helm lint passes with ci/default-values.yaml and ci/all-components-values.yaml; Chart.yaml version and appVersion are 0.1.0 and the release job overrides both at package time). |
| 6 | DATABASE_URL comes from a Secret (secretKeyRef), never from the ConfigMap or a literal. Do the same for MIGRATIONS_DATABASE_URL if a direct DSN is used. | helm template shows secretKeyRef for DATABASE_URL; the ConfigMap has no DSN. | chart test (row 8). | Done (render_test.sh). |
| 7 | Pod hardening and shutdown room. runAsNonRoot, readOnlyRootFilesystem: true (the service writes nothing to disk), allowPrivilegeEscalation: false, capabilities.drop: [ALL]; terminationGracePeriodSeconds above the binary's shutdown bounds (the consumers' drain plus 10 s of HTTP drain, see the runbook). | Values and Deployment carry all of it. | chart test (row 8). | Done (render_test.sh). |
| 8 | Chart tests in charts/outbound-shipping/tests/ (render_test.sh, test_service_selectors.py): env ConfigMap mounted with envFrom, mandatory values refuse to render, every env var cmd/api reads is rendered (see Configuration), no *_MODE, Secret for the DSN, hardening, grace period, every Service selects exactly one Deployment. | bash charts/outbound-shipping/tests/render_test.sh prints PASS. | The chart-tests job runs every tests/*.sh and test_*.py. It only warns when the directory is empty, so an absent test passes CI: this checklist is the guard. | Done: render_test.sh and test_service_selectors.py exist, so chart-tests runs them (it still passes vacuously if they are ever deleted). |
| 9 | Consumer group ids are chart values: the six *_CONSUMER_GROUP variables, stable and service-prefixed, never derived from the pod name. | Each is rendered from config.* and refuses to render empty. | chart test (row 8). | Done (render_test.sh). |
| 10 | Optional CI jobs match the service. ci.yml has api-lint (spectral over both specs) and chart-tests; it has no web and no docs-api-drift job. | No job is permanently red or skipped for a missing directory. | first PR's CI run. | api-lint runs. The site's own build is a separate workflow, docs.yml. |
| 11 | Registry access. Images push to ghcr.io/iqvo with the Actions token (packages: write on docker-publish and release, already in ci.yml). | A dry run of docker-publish on a throwaway branch, or ask the repo admin. | none. | Configured in ci.yml; never exercised (no push to main yet). |
| 12 | govulncheck is clean before the PR to main (vuln installs @latest; make vuln runs the same). | make vuln exits 0. | vuln job (a docker-publish prerequisite). | Runs in CI on every push and PR. |
| 13 | Platform registration. The service is listed in warehouse-infra terraform/apps.yaml (route, database, Argo application) and in the Kong edge under /api/outbound-shipping. | The app appears in warehouse-infra on origin/develop. | warehouse-infra's own generators and tests. | Open: no entry. Not part of the original template checklist; added because it is what separates "built" from "deployed". |
Keep the file: it is the service's packaging record. It prevents three failures seen before: a runtime that can run without Postgres or Kafka (row 1), Go files at the root (row 2), and a release that fails on the first push to main because packaging was never built (rows 3 to 9).