Queues outlive releases
A command may wait through several deployments, especially during incidents or customer review. An unversioned decoder can reinterpret a field whose meaning changed. The public AISwapLab request schema and your internal command schema should remain distinct.
What to do next
- 01
Version the envelope
Store a local payload_version alongside immutable approved inputs and action identity. Keep transport metadata and scheduling fields outside the creative payload so operational upgrades do not require rewriting approved intent.
- 02
Decode through explicit adapters
Support old envelopes with deterministic adapters that preserve their effective values. Reject or quarantine unsupported versions with a clear reason instead of guessing defaults that were not present when the user approved the action.
- 03
Test pending-work upgrades
Create old-version fixtures, upgrade the worker and verify the exact outbound supported request remains unchanged. Include rollback workers if your deployment policy allows them to encounter commands created by the newer release.
A concrete example
Illustrative example: envelope v1 stores an explicitly resolved size under an older local field name. A v2 decoder maps that name without changing the value. It does not substitute v2's new default size for an already approved action.
Before you call it ready
- Every durable command declares its local version.
- Adapters preserve approved effective values.
- Unsupported versions enter an inspectable state.
When to stop or choose another method
Stop changing the interpretation of pending commands by overwriting defaults or assuming all saved payloads match today's application types.
