Agent Event Watch Workflow

lesson autonomous active autonomous/agent-event-watch-workflow.md View on GitHub

Agent Event Watch Workflow

Rule

When a significant upcoming event could change strategy or trigger action, create a named watch task documenting what to look for and what to do when the result appears.

Context

Events like trade settlements, deployment completions, PR reviews, or external data arrivals that are time-bounded, appear in a predictable location, and map to a decision or action.

Detection

Pattern

Watch task structure (4 sections):

  1. Context: What the event is, why it matters, baseline metrics
  2. Trigger: Exact condition that fires the task (file path, PR state, etc.)
  3. Analysis: What to compute once data is in
  4. Action: Exactly what to do, in order

Trigger check — built into Phase 1 of every session:

# File-based trigger
[[ -f "path/to/result" ]] && echo "TRIGGERED"

# GitHub trigger
gh pr view 123 --json state -q '.state'

When triggered: Act in the same session. Don't defer. Pre-defined thresholds map outcome to action (scale up / hold / reduce).

Outcome

Related

Match Keywords

event watch watch task settlement watch upcoming event scheduled result event trigger monitor for result waiting for outcome