resonate-human-in-the-loop-pattern-typescript
Installation
SKILL.md
Resonate Human-in-the-Loop Pattern (TypeScript)
SDK version: This skill reflects
@resonatehq/sdkv0.11.4 (current on npm).
Overview
The Human-in-the-Loop (HITL) pattern enables workflows to pause execution and wait for human input—decisions, approvals, reviews, or interventions. The workflow suspends (not blocks resources) and resumes exactly where it left off when the human responds, whether that's seconds, hours, or days later.
Core mechanism: Create a durable promise with an explicit ID, communicate that ID to a human (via email, UI, webhook), and yield* await the promise until it's externally resolved.