This annex defines deterministic rule identity derivation requirements for the Trust-State Standard.
Rule identity ensures that invariant logic used during evaluation is cryptographically bound to conformity artifacts and replay validation.
All implementations SHALL derive rule identity exactly as defined herein.
A rule definition SHALL be expressed as a structured object subject to canonical serialization as defined in Annex A.
Rule identity SHALL be defined as:
RULE_HASH = SHA256(canonical_rule_byte_sequence)
The canonical_rule_byte_sequence SHALL be the UTF-8 encoded byte sequence produced under Annex A.
Given identical rule structure and content, independent implementations MUST derive byte-identical canonical representations and identical RULE_HASH values.
Any variation in canonical representation or hash output SHALL constitute non-conformance.
Modification of any rule field, logic expression, or structural component SHALL result in a new canonical byte sequence and therefore a new RULE_HASH.
Rule identity SHALL NOT be overridden, aliased, or substituted.
RULE_HASH SHALL be embedded within conformity artifacts and used as a mandatory input to deterministic replay validation.