Skip to content

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
  1. Overview — understand the rule data model.
  2. Core Rules Summary — see what ships out of the box.
  3. Rule Application — learn the matcher's behavior.
  4. Custom Rules — write your first rule.
  5. Testing Rules — lock the new rule's behavior in.
  6. Configuration and Precedence and Conflict Resolution — fit it into a real rule set.
  7. Language-Specific Variants, Heuristic Rules — handle edge cases.
  8. Performance and Debugging — operational concerns once your rule set grows.

Agent notes: AGENTS.md - Hub: ../index.md