feat(ttp): E.1.5 RuleEngine contract — CompiledRule, RuleSchema, RuleEngine ABC

This commit is contained in:
2026-05-01 06:30:12 -04:00
parent a703f9eda7
commit cb9d183c20
4 changed files with 291 additions and 0 deletions

View File

@@ -2288,6 +2288,8 @@ Contracts ship in this order, one commit per step:
**E.1.5 — RuleEngine contract** (`decnet/ttp/impl/rule_engine.py`)
**Status:** ✅ done.
- `class CompiledRule(NamedTuple)`: rule_id, rule_version, name,
applies_to, match_spec, emits, evidence_fields, **state**
(`RuleState`).