aeonaeon

Reactive Triggers

Fire skills automatically on runtime conditions in cron-state.json such as consecutive failures or status changes.

While cron schedules handle fixed times, reactive triggers fire skills with schedule: "reactive" whenever runtime conditions in memory/cron-state.json match.

Defining Triggers

Add a reactive: block to aeon.yml (shipped commented out by default so self-repair stays opt-in):

reactive:
  skill-repair:
    trigger:
      - { on: "*", when: "consecutive_failures >= 3" }
  autoresearch:
    trigger:
      - { on: "skill-health", when: "last_status = success" }

Trigger Conditions

  • on: "*" matches any skill in cron-state.json; pass a specific slug (e.g. on: "skill-health") to watch one skill.
  • when: supports three predicates evaluated on each scheduler tick:
    • consecutive_failures >= N
    • success_rate <op> X (where X is 0.0 to 1.0)
    • last_status = <value> (success or failed)
  • Reactive skills do not need a cron expression - the scheduler dispatches them as soon as their condition matches.

On this page