Why it matters
Freeze fixtures per platform and fail CI on parser drift.
Practical steps
- Draw the boundary for arch contract tests: what belongs in the bot process vs a worker.
- Implement freeze fixtures per platform and fail CI on parser drift behind a narrow interface so platforms can share it.
- Make arch contract tests idempotent at the message/update id layer.
- Add contract tests between the adapter and the core for arch contract tests.
- Document failure modes and ownership of arch contract tests for on-call.
Watch out for
- Copy-pasting outdated snippets for arch contract tests without re-reading current official docs.
- Shipping arch contract tests to production without a staging rehearsal and a documented rollback.