Why it matters
Share domain modules; keep transport packages separate.
Practical steps
- Draw the boundary for arch shared kernels: what belongs in the bot process vs a worker.
- Implement share domain modules; keep transport packages separate behind a narrow interface so platforms can share it.
- Make arch shared kernels idempotent at the message/update id layer.
- Add contract tests between the adapter and the core for arch shared kernels.
- Document failure modes and ownership of arch shared kernels for on-call.
Watch out for
- Copy-pasting outdated snippets for arch shared kernels without re-reading current official docs.
- Shipping arch shared kernels to production without a staging rehearsal and a documented rollback.