AGENTS.md
Twelve services in one repository, in Go, Python and TypeScript, communicating over gRPC and Kafka.
Find your way
| Path | Language | Test command |
| — | — | — |
| services/gateway | Go | make -C services/gateway test |
| services/billing | Go | make -C services/billing test |
| services/recommendations | Python | make -C services/recommendations test |
| services/notifications | TypeScript | make -C services/notifications test |
| proto/ | Protobuf | make proto-lint |
Every service has a Makefile with test, lint and run targets. Use them instead of language-specific commands.
Contracts
- APIs are defined in
proto/. Change the proto first, runmake proto-gen, then update services. Never hand-edit generated code undergen/. - Proto changes must be backward compatible: add fields with new numbers, never reuse or renumber, never change types.
make proto-breakingchecks this against main. - Kafka event schemas live in
schemas/events/and follow the same rules.
Local environment
make upstarts Kafka, Postgres and all services with docker compose.make up SERVICES="gateway billing"starts a subset.
Rules
- A change that touches more than one service needs a short plan in the PR description: order of deploys and how old and new versions coexist.
- Each service owns its database. Never read another service’s tables.