Skip to content

Error Recovery: Deterministic condition→action rule engine (as EventHandler plugin) #321

Description

@RyanTheRobothead

Implement a RuleEngineEventHandler that ships in the plugin system introduced by PR #312, generalizing the hard-coded behavior of the MVP's default ErrorHandler (which only pauses workflows on node-error events).

Scope:

  • Rule definitions: match on event source/type/severity/message patterns, or combinations.
  • Actions: retry workflow step, restart node, run recovery workflow, send notification (delegates to NotificationHandler), pause workflow (matches current ErrorHandler), escalate.
  • Configurable via YAML/API.
  • Guard rails: max retries, cooldown windows, circuit breakers — prevents infinite recovery loops.

Layers on top of #322 for the action primitives. First substantial scope-cut from #247 Error Manager Service.


Roadmap metadata

Roadmap note: Depends on #338 — rule evaluation against the DB cannot run inline in log_event without slowing ingestion.

Generated as part of the MADSci → 1.0 roadmap. See docs/roadmap.md for context.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions