Chronicle.Confidentiality.PiiAndEncryptedCombinedNotSupported exception (cratis_chronicle v3.16.1)

Copy Markdown View Source

Raised when a property, or the concept it resolves metadata from, carries both Chronicle.Compliance.pii/1,2 and Chronicle.Confidentiality.encrypted/1,2,3.

This is not merely redundant - it corrupts the value. The kernel applies every matching handler for a property in sequence, so a value marked both ways is encrypted first under the PII key and then again under the Encrypted key; releasing it decrypts with the wrong key against ciphertext, which fails loudly (a padding/authentication error) rather than returning a wrong value. A value needs exactly one protection: pii for personal data with a lawful basis for erasure, encrypted for an operational secret with none.