CodecContext

interface CodecContext

Marker for typed key-value context that flows through codec chains.

Direction is encoded in the key: DecodeKey keys are visible only to DecodeContext, EncodeKey keys only to EncodeContext. A CodecKey extends both for legitimate bidirectional configuration. Keys are compared by identity and should be Kotlin objects — KSP enforces object-only implementations once that validation pass lands.

Inheritors