You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Destructive or expensive tool calls need a human decision — and that decision may take hours. The wait must be durable: it has to survive restarts, passivation and shard rebalancing. Event sourcing makes this nearly free.
Scope
Tools flagged requiresApproval: true persist approval-requested and park the turn (state awaiting-approval).
approval-decision command resumes (approved → execute tool; rejected → report to the model / fail the turn per policy).
Part of the agents epic #421.
Rationale
Destructive or expensive tool calls need a human decision — and that decision may take hours. The wait must be durable: it has to survive restarts, passivation and shard rebalancing. Event sourcing makes this nearly free.
Scope
requiresApproval: truepersistapproval-requestedand park the turn (stateawaiting-approval).approval-decisioncommand resumes (approved → execute tool; rejected → report to the model / fail the turn per policy).ApprovalGatehelper actor + HTTP example (approve/reject endpoint) for the examples app.Documentation
"Human in the loop" docs page (EN + DE); JSDoc; CHANGELOG; example in examples/agents.
Acceptance
Relates
Epic #421; depends on #424 (AgentActor). #205 (persistent ask — the generalized primitive; migrate when it lands), #168 (Reminders).