Watchfire
v0.1
The context (AgentCtx)
What a run gets (AgentCtx). name(), run_id(), cancellation (cancelled(), is_cancelled(), token()),
heartbeat(), sleep(d) and interval(d) (both return false once cancelled), http(), rate_limited(host),
app(), db(), service::<T>(), checkpoint(&state) / checkpoint_get::<T>() (JSON that survives restarts),
emit(event, payload) (to on_event agents), counter(name).inc() / .add(n) (saved in the run record),
log().info(..) (a tracing event with agent and run fields, also kept for Agents::logs),
spawn_child(name, agent) (a supervised child named <agent>.<name>, stopped when the run ends) and
dispatch(job).