Assert transient task references are not serialized (#99300)
### What? Assert in debug builds that transient `TaskId`s and packed `RawVc` references are not serialized by bincode or serde. ### Why? Transient tasks do not survive a restart. #99383 avoids serializing suspended operations by waiting for them to settle; this encoding-time guard catches transient references that reach any remaining serialization path. If we don't filter transient task references, then warm builds attempt to recover missing tasks which is ambiguous with a GC bug. ### How? Replace the derived bincode `Encode` and serde `Serialize` implementations for both types with equivalent implementations that validate transience before delegating to the same underlying fields. Existing wire formats, deserialization, and release-mode behavior remain unchanged. Stacked on #99249, above #99383. <!-- fleet e2b0931e-5002-47b5-b5e1-3a96fbc88cab --> --------- Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Luke Sandberg <210140+lukesandberg@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment