pub fn log_rule_evaluation(
input_quin: &NQuin,
results: &[RuleResult],
contract_hash: u64,
) -> Result<()>Expand description
Logs a rule-evaluation audit event to the WAL.
For each RuleResult in results, appends a q42:ruleEvaluation Quin to the
WAL with:
subject= the evaluated Quin’s subjectpredicate=q_hash("q42:ruleEvaluation")object=q_hash(rule_name)(the rule that was evaluated)context= the contract graph hashmetadata= bit 0 = passed/failed; bits [8..15] = result count
This ensures every rule evaluation is durable, replayable, and auditable —
the general-purpose event API complement to log_adversarial_conduct.