Skill 1.1.2
Design workflows, including agents, subagents, control loops, and human-in-the-loop
Key Concepts
A subagent is an agent invoked by another agent to complete a bounded subtask and return a result, often with its own context window so that the parent's context stays small. A control loop is the plan-act-observe cycle in which an agent calls tools and decides whether it is finished. Every loop needs explicit termination: a goal check, a maximum number of iterations, a token or time budget, or escalation to a person when progress stalls.
Human-in-the-loop steps are placed where an error would be costly or irreversible: before payments, external communications, data deletion or policy exceptions. In Foundry workflows and Microsoft Agent Framework workflows, a human-input step pauses the workflow, persists its state in a checkpoint and resumes when the person responds.