Translation Rules
COGANT's rule engine maps program-graph patterns to Active Inference roles. This section explains how rules are structured, how they are resolved when they conflict, how to author your own, and how to debug a rule that is not firing as expected.
Contents
| Page | Description | Level |
|---|---|---|
| Overview | What a translation rule is and how the engine evaluates it | Beginner |
| Configuration and Precedence | Rule loading, ordering, and precedence policy | Intermediate |
| Core Rules Summary | The shipped baseline rule set | Beginner |
| Rule Application | How a rule is matched against a node and applied | Intermediate |
| Custom Rules | Authoring your own translation rules | Intermediate |
| Language-Specific Variants | Per-language rule overrides | Intermediate |
| Heuristic Rules | Soft / heuristic rules and when to use them | Advanced |
| Conflict Resolution | What happens when two rules disagree | Advanced |
| Rule Set Management | Versioning and distributing rule sets | Intermediate |
| Performance | Profiling and optimizing rule evaluation | Advanced |
| Testing Rules | Unit-testing custom rules | Intermediate |
| Debugging | Diagnosing rules that fail to fire or fire incorrectly | Intermediate |
| See Also | Cross-links to related documentation | Beginner |
Recommended Reading Order
- Overview — understand the rule data model.
- Core Rules Summary — see what ships out of the box.
- Rule Application — learn the matcher's behavior.
- Custom Rules — write your first rule.
- Testing Rules — lock the new rule's behavior in.
- Configuration and Precedence and Conflict Resolution — fit it into a real rule set.
- Language-Specific Variants, Heuristic Rules — handle edge cases.
- Performance and Debugging — operational concerns once your rule set grows.
Related modules
- ../concepts/role_assignment.md — conceptual background for what rules do.
- ../plugins/README.md — shipping rule packs as plugins.
- ../reference/README.md — canonical rule schema.
- ../cookbook/README.md — short recipes for common rule-authoring tasks.
Agent notes: AGENTS.md - Hub: ../index.md