- Accepts protocol 1 and 2 (utils/protocol.js); v2 bodies checked with the
contracts' zod schemas (400 INVALID_REQUEST), v1 unchanged
- v2 register/heartbeat carry product (409 WRONG_PRODUCT on a mismatch),
register stores the install's public key, stats stored per product
- v2 replies add linkedProducts (the church's other installs in use with a
public key); v1 replies unchanged
- Licence tokens carry customerId and product
- Until releases per product, only Events installs get releases / "behind"
- Tests: every contract sample through the real routes, replies checked
against the contract response schemas
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>